$(document).ready(function(){ if(typeof sIFR == "function"){ sIFR.replaceElement("div#header div#menu ul li.active div", named({sFlashSrc: "/flash/gothamnarrow.swf", sLinkColor: "#009fda", sWmode: "transparent"})); sIFR.replaceElement("div#header div#menu ul li div", named({sFlashSrc: "/flash/gothamnarrow.swf", sLinkColor: "#8A8C8E", sHoverColor: "#009fda", sWmode: "transparent"})); sIFR.replaceElement("p.introc", named({sFlashSrc: "/flash/sifr_gotham_light.swf", sColor: "#0091CE", sWmode: "transparent", forceSingleLine: false})); sIFR.replaceElement("div#mbody h1", named({sFlashSrc: "/flash/gothamnarrow.swf", sColor: "#009fda"})); } }); $(function(){ $("div#hpbar div:last").css({"margin" : "0px"}); $("ul.clientimgs li:first").css({"margin-left" : "0px"}); }); $(function(){ $("form.login input[name=user]").focus(function(){ if($(this).attr("value") == "Email"){ $(this).attr("value", ""); } }); $("form.login input[name=cp]").focus(function(){ if($(this).attr("value") == "Password"){ $(this).css("display", "none"); $(".login input[name=pass]").css("display", "block"); $(".login input[name=pass]").focus(); } }); $("form.login input[name=user]").blur(function(){ if($(this).attr("value") == ""){ $(this).attr("value", "Email"); } }); $("form.login input[name=pass]").blur(function(){ if($(this).attr("value") == ""){ $(this).css("display", "none"); $(".login input[name=cp]").attr("value", "Password"); $(".login input[name=cp]").css("display", "block"); } }); $("img.show").click(function(){ var desc = $(this).parents().siblings("div.descr"); if($(desc).css("display") == "none"){ $(desc).fadeIn(); $(this).attr("src", "/images/template/hide.gif"); }else{ $(desc).fadeOut(); $(this).attr("src", "/images/template/show.gif"); } }); $("select#info").change(function(){ var val = $(this).val(); if(val[0].charAt(0) == 'W'){ $("tr#emp").css("visibility", "visible"); }else{ $("tr#emp").css("visibility", "hidden"); } }); var cnt = 0; $("div#menu li").click(function(e){ var link = $(this).children('div').children('.sIFR-alternate').children('a').attr('href'); if(link.indexOf("href") == -1){ window.location = link; }else{ window.open('http://www.informimpact.com/blog/'); } }); }); function downloadPressRelease() { window.location="/informhrm/"; } function learnMore() { window.location="/successfactors/"; } function successFactorsLogo(){ window.location="/successfactors/"; }var curReg = "NA"; var clickedreg = ""; var cart = 0; $(function(){ $("#dialog").dialog({ bgiframe: true, autoOpen:false, resizable: "false", height:140, modal: true, overlay: { backgroundColor: '#000',opacity: 0.5 }, buttons: { 'Confirm': function() { window.location="?region=" + clickedreg; return true; }, Cancel: function() { $(this).dialog('close'); } } }); $("a.region").click(function(e){ e.preventDefault(); clickedreg = $(this).attr("id"); if(curReg != clickedreg && 0){ $("#dialog").dialog('open'); }else{ window.location="?region=" + clickedreg; } }) });