function attachNavigationEvents(){$(".menu li").mouseenter(function(){if($(this).find("ul").length>0){$(this).children("ul").slideDown("medium");$(".menu ul").not($(this).children("ul")).not($(this).parent("ul")).not($(this).parent().parent().parent()).slideUp("medium")}else{$(".menu ul").not($(this).parent("ul")).not($(this).parent().parent().parent()).slideUp("medium")}});$(".menu").mouseleave(function(){$(".menu ul").slideUp("medium")})}function displayBackground(a,b){if(b){setBackgroundColor(document.getElementById(a),"#222222");setOpacity(document.getElementById(a),75);document.getElementById(a).style.cursor="hand"}else{setBackgroundColor(document.getElementById(a),"#222222");setOpacity(document.getElementById(a),75);document.getElementById(a).style.cursor="pointer"}}function setOpacity(b,c){var a=c;if(c>100){c=a=100}else{if(c<0){c=a=0}}a/=100;if(c<1){c=1}b.style.opacity=(a);b.style.filter="alpha(opacity="+c+")"}function setBackgroundColor(b,a){b.style.background=a}var secs;var timerID=null;var timerRunning=false;var delay=1000;var focus=1;var focusAreaImageTitle="";var focusAreaImageDesc="";var imgFocus1="";var imgFocus2="";var imgFocus3="";var lblNav1="";var lblNav2="";var lblNav3="";var navDesc1="";var navDesc2="";var navDesc3="";function gotoSite(b){gotoURL(b)}function InitializeTimer(){secs=5;StopTheClock();StartTheTimer()}function stopFocus(b){StopTheClock();$("#focus1").removeClass("HasFocus");$("#focus2").removeClass("HasFocus");$("#focus3").removeClass("HasFocus");focus=b;switch(b){case 1:$("#focus1").addClass("HasFocus");$("#focusImage").attr("src",$("#"+imgFocus1).val());$("#"+focusAreaImageDesc+"").html($("#"+navDesc1+"").val());$(".main-leftNav-image-subtextTd").css("vertical-align","top");$(".main-leftNav-image-subtext").css("margin-top","10px");$(".main-leftNav-image-subtext").css("margin-bottom","10px");$("#hrefLearnMore").attr("style","color: "+$(".main-leftNav-image-subtext font").css("color")+" !important");break;case 2:$("#focus2").addClass("HasFocus");$("#focusImage").attr("src",$("#"+imgFocus2).val());$("#"+focusAreaImageDesc+"").html($("#"+navDesc2+"").val());$(".main-leftNav-image-subtextTd").css("vertical-align","middle");$(".main-leftNav-image-subtext").css("margin-top","0px");$(".main-leftNav-image-subtext").css("margin-bottom","10px");$("#hrefLearnMore").attr("style","color: "+$(".main-leftNav-image-subtext font").css("color")+" !important");break;case 3:$("#focus3").addClass("HasFocus");$("#focusImage").attr("src",$("#"+imgFocus3).val());$("#"+focusAreaImageDesc+"").html($("#"+navDesc3+"").val());$(".main-leftNav-image-subtextTd").css("vertical-align","bottom");$(".main-leftNav-image-subtext").css("margin-top","0px");$(".main-leftNav-image-subtextTd").css("padding-bottom","10px");$("#hrefLearnMore").attr("style","color: "+$(".main-leftNav-image-subtext font").css("color")+" !important");break}secs=5}function playFocus(){StartTheTimer()}function StopTheClock(){if(timerRunning){clearTimeout(timerID)}timerRunning=false}function StartTheTimer(){if(secs==0){StopTheClock();focus++;if(focus>3){focus=1}switch(focus){case 1:$("#focusImage").attr("src",$("#"+imgFocus1).val());$("#"+focusAreaImageDesc+"").html($("#"+navDesc1+"").val());$(".main-leftNav-image-subtextTd").css("vertical-align","top");$(".main-leftNav-image-subtext").css("margin-top","10px");$(".main-leftNav-image-subtext").css("margin-bottom","10px");$("#focus1").addClass("HasFocus");$("#focus2").removeClass("HasFocus");$("#focus3").removeClass("HasFocus");$("#hrefLearnMore").attr("style","color: "+$(".main-leftNav-image-subtext font").css("color")+" !important");break;case 2:$("#focusImage").attr("src",$("#"+imgFocus2).val());$("#"+focusAreaImageDesc+"").html($("#"+navDesc2+"").val());$(".main-leftNav-image-subtextTd").css("vertical-align","middle");$(".main-leftNav-image-subtext").css("margin-top","0px");$(".main-leftNav-image-subtext").css("margin-bottom","10px");$("#focus1").removeClass("HasFocus");$("#focus2").addClass("HasFocus");$("#focus3").removeClass("HasFocus");$("#hrefLearnMore").attr("style","color: "+$(".main-leftNav-image-subtext font").css("color")+" !important");break;case 3:$("#focusImage").attr("src",$("#"+imgFocus3).val());$("#"+focusAreaImageDesc+"").html($("#"+navDesc3+"").val());$(".main-leftNav-image-subtextTd").css("vertical-align","bottom");$(".main-leftNav-image-subtext").css("margin-top","0px");$(".main-leftNav-image-subtext").css("margin-bottom","10px");$("#focus1").removeClass("HasFocus");$("#focus2").removeClass("HasFocus");$("#focus3").addClass("HasFocus");$("#hrefLearnMore").attr("style","color: "+$(".main-leftNav-image-subtext font").css("color")+" !important");break}InitializeTimer()}else{$("#Text1").val(secs);secs=secs-1;timerRunning=true;timerID=self.setTimeout("StartTheTimer()",delay)}}function querySt(a){hu=window.location.search.substring(1);gy=hu.split("&");for(i=0;i<gy.length;i++){ft=gy[i].split("=");if(ft[0]==a){return ft[1]}}}function getQueryString(){var a="";var g="";var d="";var c="";var b="";var e="";var f;f=document.getElementById("txtJobTitle");if(f.value!=""){g="JobTitle="+encodeURI(f.value)}f=document.getElementById("cboJobType");if(f.options[f.selectedIndex].value!=""){d="JobType="+encodeURI(f.options[f.selectedIndex].value)}if(d=="JobType=All"){d=""}f=document.getElementById("txtLocation");if(f.value!=""){e="Location="+encodeURI(f.value)}if(g!=""&&d!=""){c="&"}if(g!=""&&d==""&&e!=""){b="&"}if(d!=""&&e!=""){b="&"}a=g+c+d+b+e;return(a)}function filterJobSearch(){var a=getQueryString();document.location.href=document.location.href.split("?",1)+((a!="")?"?"+a:"")}function getQueryVariable(a){var c=window.location.search.substring(1);var d=c.split("&");for(var b=0;b<d.length;b++){var e=d[b].split("=");if(e[0]==a){return e[1]}}}function setSelectedIndex(c,a){for(var b=0;b<c.options.length;b++){if(c.options[b].value==a){c.options[b].selected=true;return}}};
