function ieHashUpdate(){if($("hframe")!=undefined&&$("hframe").src!="/blank.php?"+window.location.hash.substring(1)){$("hframe").src="/blank.php?"+window.location.hash.substring(1)}}function submitSearch(a){if(checkSearch()){if($("loginBlock")){$("loginBlock").hide()}$("advancedSearchLink").hide();if(a){Cookie.set("_searchType",a,100)}var b=submitAjaxForm("topSearch",true);window.location.hash="#"+b;ieHashUpdate();resetHash=true;AjaxTabs.SetTabURL("results","/resultstab.php?"+b);AjaxTabs.FocusTab("results")}return false}var loadBubble=false;var prevOffset=false;var AjaxTabs={CountTabs:function(){var a=document.getElementById("tabList");return a.childNodes.length},TabNames:function(b,a,c){if(typeof(this.tabName)=="undefined"){this.tabName=new Array();this.tabIdSet=new Array()}if(b!=""){this.tabName[history.length+1]=b;this.tabIdSet[history.length+1]=a}else{for(this.i=0;this.i<this.tabIdSet.length;this.i++){if(this.tabIdSet[this.i]==c){return this.tabName[this.i]}}}return"Jobs on LinkUp"},CloseTab:function(d){var f="results";var b=false;closedTabs[closedTabs.length]=d;if($("bubble")&&$("bubble").visible()){$("bubble").hide()}if($("company-insider-info-window")){$("company-insider-info-window").hide()}var a=document.getElementById("tabList");for(var e=0;e<a.childNodes.length;e++){if(a.childNodes[e]&&a.childNodes[e].tagName=="LI"){if(a.childNodes[e].getAttribute("id")==d){a.removeChild(a.childNodes[e])}}}var c=document.getElementById("tabPanels");for(e=0;e<c.childNodes.length;e++){if(c.childNodes[e]&&c.childNodes[e].tagName=="DIV"){if(c.childNodes[e].getAttribute("id")=="panel_"+d){c.removeChild(c.childNodes[e])}}}for(e=0;e<a.childNodes.length;e++){if(a.childNodes[e]&&a.childNodes[e].tagName=="LI"){f=a.childNodes[e].getAttribute("id");if(a.childNodes[e].getAttribute("tabColor")+"selected"==a.childNodes[e].className){b=true}}}if(b==false){if((window.location.hash.indexOf(d)!=-1)&&(window.location.hash.indexOf("&jobHash")!=-1)){if(f!="results"){this.newHash=window.location.hash.substring(1,window.location.hash.indexOf("&jobHash"))+"&jobHash="+f}else{this.newHash=window.location.hash.substring(1,window.location.hash.indexOf("&jobHash"))}if(this.newHash.substring(1,1)!="#"){this.newHash="#"+this.newHash}this.newHash=unescape(this.newHash);this.wentBack=false;this.curSpot=historyStack.indexOf(window.location.hash);for(this.i=historyStack.length;this.i>=0;this.i--){if(this.newHash==historyStack[this.i]){this.wentBack=true;history.go(historyStack[this.i]);break}}if(this.wentBack==false){window.location.hash=this.newHash;ieHashUpdate()}prevHash=unescape(window.location.hash)}this.FocusTab(f)}return true},CreateNewTab:function(b,a,f,d,h){var c=document.createElement("span");c.setAttribute("id","tabSpan"+b);c.className=h;c.setAttribute("tabColor",h);if(a=="Jobs on LinkUp"){a=this.TabNames("","",b)}else{this.TabNames(a,b)}if(d){c.innerHTML='<div class="tabHandle">'+a+'</div> <img src="/images/tabs/x.png" class="closeButton" onclick="AjaxTabs.CloseTab(\''+b+"');return true;\" />";if(!loadBubble&&!Cookie.get("_bubble")){c.innerHTML+='<div id="bubble"><p style="color:black;font-size:13px">Welcome to LinkUp &#8212; the web\'s fastest growing<br/>Job Search Engine!</p><p>All jobs found on LinkUp are direct from over 22,000 company websites (not from other job sites). As a result, LinkUp\'s jobs are always current, often unadvertised, &amp; never fake.</p><p>We update our site daily, so please come back often!</p><a href="#" onmouseover="window.clearTimeout(fadeBubble)" onclick="document.getElementById(\'bubble\').style.display=\'none\';return false;" class="close">Close bubble</a></div>';fadeBubble=window.setTimeout("Effect.Fade('bubble', {duration:1})",10000);loadBubble=true;Cookie.set("_bubble",1,100)}}else{c.innerHTML='<div class="tabHandle">'+a+"</div>"}var e=document.getElementById(b);var g=e;if(e==null){g=document.createElement("li")}g.className=h;g.setAttribute("id",b);g.setAttribute("tabId",b);g.setAttribute("tabLabel",a);g.setAttribute("tabColor",h);g.onclick=function(){if(document.getElementById(b)){AjaxTabs.FocusTab(b)}return false};if(d){g.setAttribute("tabIsCloseable","1")}else{g.setAttribute("tabIsCloseable","0")}g.setAttribute("isFocused","true");g.appendChild(c);if(e==null){document.getElementById("tabList").appendChild(g)}newPanel=document.createElement("div");newPanel.setAttribute("id","panel_"+b);newPanel.setAttribute("panelURL",f);newPanel.setAttribute("tabColor",h);newPanel.className=h+" Panel";if(d){newPanel.style.overflow="hidden"}else{}newPanel.style.position="absolute";newPanel.style.top="0";newPanel.style.left="0";newPanel.style.width="100%";newPanel.style.height="100%";document.getElementById("tabPanels").appendChild(newPanel);this.FocusTab(b);this.RefreshTab(b)},GetFocusedTabId:function(){var a=document.getElementById("tabList");for(var b=0;b<a.childNodes.length;b++){if(a.childNodes[b]&&a.childNodes[b].tagName=="LI"){if(a.childNodes[b].getAttribute("tabColor")+"selected"==a.childNodes[b].className){return a.childNodes[b].getAttribute("id")}}}return false},FocusTab:function(d){var f=this.GetFocusedTabId();if(f==d){return true}if((d.length==32)&&(window.location.hash.indexOf("&jobHash")==-1)){this.locationHashPrefix="";if(window.location.hash.substring(window.location.hash.length-1)!="&"){this.locationHashPrefix="&"}window.location.hash=window.location.hash+this.locationHashPrefix+"jobHash="+d;prevHash=unescape(window.location.hash)}else{if((d=="results")&&(window.location.hash.indexOf("&jobHash")!=-1)){window.location.hash=window.location.hash.substring(1,window.location.hash.indexOf("&jobHash"));prevHash=unescape(window.location.hash)}}ieHashUpdate();historyStack.push(unescape(window.location.hash));var a=document.getElementById("tabList");for(var c=0;c<a.childNodes.length;c++){if(a.childNodes[c]&&a.childNodes[c].tagName=="LI"){var e=a.childNodes[c].getAttribute("tabColor");if(e==null){e=""}var b=a.childNodes[c].getAttribute("tabId");if(b==d){a.childNodes[c].className=e+"selected";$("panel_"+b).show();document.getElementById("panel_"+b).style.zIndex=99;$("panel_"+b).addClassName("activePanel");$("panel_"+b).removeClassName("inactivePanel");f=b;if(b=="results"&&prevOffset){$("tabPanels").scrollTop=prevOffset;prevOffset=false}}else{a.childNodes[c].className=e;$("panel_"+b).addClassName("inactivePanel");$("panel_"+b).removeClassName("activePanel");if(b!=null){if(b=="results"){prevOffset=$("tabPanels").scrollTop}$("panel_"+b).hide();document.getElementById("panel_"+b).style.zIndex=5}}}}},RefreshTab:function(b){var a=document.getElementById("panel_"+b);var c=a.getAttribute("panelURL").replace("#","%23");$("panel_"+b).update('<div class="loadingBox"><img src="/images/tabs/indicator.gif" />Please wait while we get your results...</div>');new Ajax.Request(c,{method:"get",evalJS:"force",onSuccess:function(d){$("panel_"+b).update(d.responseText)}})},TabExists:function(d){var f=false;var a=document.getElementById("tabList");for(var c=0;c<a.childNodes.length;c++){if(a.childNodes[c]&&a.childNodes[c].tagName=="LI"){var b=a.childNodes[c].getAttribute("tabId");var e=a.childNodes[c].getAttribute("id");if(b==d){f=true}if(e==d){a.childNodes[c].setAttribute("tabId",d)}}}return f},OpenTab:function(b,a,d,c,e){if(closedTabs.indexOf(b)!=-1){closedTabs[closedTabs.indexOf(b)]=null;closedTabs.compact()}if(this.TabExists(b)){this.FocusTab(b)}else{this.CreateNewTab(b,a,d,c,e)}},SetTabURL:function(b,a){document.getElementById("panel_"+b).setAttribute("panelURL",a);this.RefreshTab(b)}};var Cookie={set:function(c,e,b){var a="";if(b!=undefined){var f=new Date();f.setTime(f.getTime()+(86400000*parseFloat(b)));a="; expires="+f.toGMTString()}return(document.cookie=escape(c)+"="+escape(e||"")+a)},get:function(a){var b=document.cookie.match(new RegExp("(^|;)\\s*"+escape(a)+"=([^;\\s]*)"));return(b?unescape(b[2]):null)},erase:function(a){var b=Cookie.get(a)||true;Cookie.set(a,"",-1);return b},accept:function(){if(typeof navigator.cookieEnabled=="boolean"){return navigator.cookieEnabled}Cookie.set("_test","1");return(Cookie.erase("_test")==="1")}};function resizeFrame(a){$(a).setStyle({top:"0",height:"100%"});this.fullHeight=$(a).getHeight();$(a).setStyle({height:(this.fullHeight-20)+"px",top:"20px"})}function resizeFrameIESix(a){this.docHeight=Element.getHeight(document.body);this.newHeight=this.docHeight-100;$("frame_"+a).setStyle({top:"20px",height:newHeight+"px"});$("frameWrapper_"+a).setStyle({top:"0",height:newHeight+"px"})}function resizeResultsIESix(){this.docHeight=Element.getHeight(document.body);this.newHeight=this.docHeight-86;$(tabPanels).setStyle({height:newHeight+"px"})}function hFrameLoaded(a){if(ignoreLocationChange){ignoreLocationChange=false;return}var b=String(a);if(b.length==1&&b.charAt(0)=="?"){b=""}else{if(b.length>=2&&b.charAt(0)=="?"){b=b.substring(1)}}if(window.location.hash!=b){window.location.hash=b}}var resetHash=false;var prevHash=false;function checkHashResults(){if(resetHash==false&&window.location.hash!=""&&(unescape(prevHash)!=unescape(window.location.hash))){this.jobID=false;hashValue=window.location.hash;if(hashValue.substring(0,1)=="/"){hashValue=hashValue.substring(1)}if(hashValue.substring(0,1)=="#"){hashValue=hashValue.substring(1)}if(hashValue.indexOf("&jobHash")!=-1){this.jobID=hashValue.substring(hashValue.indexOf("&jobHash")+9,hashValue.indexOf("&jobHash")+41)}if((this.jobID!=false)&&(closedTabs.indexOf(this.jobID)!=-1)){this.curInStack=historyStack.indexOf(prevHash);this.destInStack=historyStack.indexOf(hashValue);if((historyStack.length>this.destInStack-1)&&(this.curInStack>this.destInStack)){if(historyStack[this.destInStack-1]){window.location.hash=historyStack[this.destInStack-1];ieHashUpdate();var a=setTimeout(checkHashResults,100);return false}}else{if(this.destInStack>0){if(historyStack[this.destInStack+1]){window.location.hash=historyStack[this.destInStack+1];ieHashUpdate();var a=setTimeout(checkHashResults,100);return false}}}}if((prevHash.indexOf("&jobHash")==-1)&&(hashValue.indexOf("&jobHash")==-1)){AjaxTabs.SetTabURL("results","/resultstab.php?"+hashValue)}if(this.jobID!=false){if($("panel_"+this.jobID)==undefined){AjaxTabs.OpenTab(this.jobID,"Jobs on LinkUp","rediriframe.php?hash="+this.jobID,true,"")}AjaxTabs.FocusTab(this.jobID)}else{AjaxTabs.FocusTab("results")}prevHash=unescape(window.location.hash);ieHashUpdate()}else{if(resetHash){prevHash=unescape(window.location.hash);resetHash=false;ieHashUpdate()}}var a=setTimeout(checkHashResults,100)}checkHashResults.toString=function(){return"checkHashResults();"};var pageTracker=false;function gaSSDSLoad(d){var c=(("https:"==document.location.protocol)?"https://ssl.":"http://www."),b,a;a=document.createElement("script");a.src=c+"google-analytics.com/ga.js";a.type="text/javascript";a.onloadDone=false;a.onload=function(){a.onloadDone=true;gaInit(d)};a.onreadystatechange=function(){if(("loaded"===a.readyState||"complete"===a.readyState)&&!a.onloadDone){a.onloadDone=true;gaInit(d)}};document.getElementsByTagName("head")[0].appendChild(a)}function gaInit(a){pageTracker=_gat._getTracker(a)}function prettyTime(a){this.returnVal="";if(a>86400){this.day=Math.floor(a/86400);a=a-this.day*86400;this.returnVal+=this.day+" day";if(this.day>1){this.returnVal+="s"}}if(a>3600){if(this.returnVal.length>1){this.returnVal+=", "}this.hour=Math.floor(a/3600);a=a-this.hour*3600;this.returnVal+=this.hour+" hour";if(this.hour>1){this.returnVal+="s"}}if(a>60){if(this.returnVal.length>1){this.returnVal+=", "}this.minute=Math.floor(a/60);a=a-this.minute*60;this.returnVal+=this.minute+" minute";if(this.minute>1){this.returnVal+="s"}}if(a>0){if(this.returnVal.length>1){this.returnVal+=", "}this.returnVal+=a+" second";if(a>1){this.returnVal+="s"}}return this.returnVal}function editRow(a){$$(".options_"+a).each(Element.hide);$$(".optionSave_"+a).each(Element.show)}function cancelRow(a){$$(".optionSave_"+a).each(Element.hide);$$(".options_"+a).each(Element.show)}function setRPXNow(){if(typeof RPXNOW!=="undefined"){RPXNOW.token_url=rpxNowToken;RPXNOW.realm="linkup";RPXNOW.overlay=true;RPXNOW.language_preference="en"}else{setTimeout("setRPXNow()",500)}};