var head=document.getElementsByTagName("head")[0];function insertJavascript(a){var b=document.createElement("script");b.setAttribute("src",a);b.setAttribute("type","text/javascript");head.appendChild(b)}function insertStylesheet(a,b){b||(b="screen");var c=document.createElement("link");c.setAttribute("media",b);c.setAttribute("rel","stylesheet");c.setAttribute("href",a);c.setAttribute("type","text/css");head.appendChild(c)}var search_default="Search the site ...";
function makeactive(a){jQuery("#tab1").removeClass();jQuery("#tab2").removeClass();jQuery("#tab3").removeClass();jQuery("#tab4").removeClass();jQuery("#tab5").removeClass();jQuery("#tab6").removeClass();jQuery("#tab7").removeClass();jQuery("#tab"+a).addClass("current_search");a=0;for(var b=1;b<=7;b++)if(jQuery("#tab"+b).hasClass("current_search"))a=b;b=jQuery("#cse-search-box");b.action="";b.method="get";switch(a){case 1:jQuery("#q").val("Search the site ...");break;case 2:jQuery("#q").val("Search JobsHQ ...");
break;case 3:jQuery("#q").val("Search CarsHQ ...");break;case 4:jQuery("#q").val("Search ApartmentsHQ ...");break;case 5:jQuery("#q").val("Search HomesHQ ...");break;case 6:jQuery("#q").val("Search Marketplace ...");break;case 7:jQuery("#q").val("Search Google ...");break;default:jQuery("#q").val("Search the site ...");break}}function clearSearch(){jQuery("#q").val("")}
function searchRedirect(){var a=0,b=jQuery("#q").val();if(b!==""){for(var c=1;c<=7;c++)if(jQuery("#tab"+c).hasClass("current_search"))a=c;c="";switch(a){case 1:c="/event/search/order/date/keywords/"+b;break;case 2:c="http://www.jobshq.com/search/?keyword="+b;break;case 3:c="http://www.carshq.com/search/index.cfm?page=results&keywords="+b;break;case 4:c="http://www.apartmentshq.com/search/index.cfm?keywords="+b;break;case 5:c="http://www.homeshq.com/";break;case 6:c="/event/search_results/queryString/"+
b;break;case 7:c="/?event=googleSearch&page=google_search&cx=partner-pub-9136693947306445%3Ambzeg1-lcnf&cof=FORID%3A10&ie=ISO-8859-1&sa=Search&q="+b;break;default:c="/event/search/order/date/keywords/"+b}window.location.href=c}}var req;
function GetURL(a,b){if(b===undefined)b="processReqChange";a=a+"&rand="+Math.random();if(window.XMLHttpRequest){req=new XMLHttpRequest;req.onreadystatechange=eval(b);req.open("GET",a,true);req.send(null)}else if(window.ActiveXObject)if(req=new ActiveXObject("Microsoft.XMLHTTP")){req.onreadystatechange=eval(b);req.open("GET",a,true);req.send()}}
function LoadCounties(a){document.getElementById("county").options.length=0;GetURL("/?event=mobileCounties&state_id="+document.getElementById("state").options[document.getElementById("state").selectedIndex].value,"processReqChangeLoadCounties")}
function processReqChangeLoadCounties(){if(req.readyState==4)if(req.status==200){var a=req.responseXML.documentElement;if(a.getElementsByTagName("errors")[0].firstChild.data==0){document.getElementById("county").options[0]=new Option("","");if(a.getElementsByTagName("id"))for(var b=0;b<a.getElementsByTagName("id").length;b++)document.getElementById("county").options[document.getElementById("county").options.length]=new Option(unescape(a.getElementsByTagName("county")[b].firstChild.data),a.getElementsByTagName("id")[b].firstChild.data)}else alert(a.getElementsByTagName("errors")[0].firstChild.data)}else alert("200: There was a problem retrieving the XML data:\n"+
req.statusText)}function alertChange(){var a="none";if(document.getElementById("alert").options[document.getElementById("alert").selectedIndex].value=="weather")a="block";document.getElementById("weather_form_div").style.display=a}function footerSearch(){var a="";a="/event/search/order/date/keywords/"+jQuery("#fq").val();window.location.href=a}
function changeAction(){jQuery("#cse-search-box").action="/?event=googleSearch&page=google_search&cx=partner-pub-9136693947306445%3Ambzeg1-lcnf&cof=FORID%3A10&ie=ISO-8859-1&sa=Search"}function showLink(a){a=jQuery(a).attr("href");window.open(a,"_blank");return false}function externalLinks(){for(var a=jQuery("a"),b=0;b<a.length;b++){var c=a[b];jQuery(c).attr("href")&&jQuery(c).attr("rel")=="external"&&jQuery(c).click(function(){return showLink(this)})}}
function showHideTab(a,b,c,d){for(var e=1;e<=b;e++){var f="",g="none";if(e==a){g="block";f="active"}jQuery("#"+c+e).css("display",g);f===""?jQuery("#"+d+e).removeClass():jQuery("#"+d+e).addClass(f)}}function hideTab(a,b){jQuery("#"+a+b).css("display","none")}function update(){windowHandle.document.open();windowHandle.document.write("<br />");windowHandle.document.close()}
function popUp(a,b,c){var d=(new Date).getTime();a=window.open(a,d,"toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width="+c+",height="+b+",left=0,top=0");if(!a.opener)a.opener=self;setTimeout(function(){update()},1E3)}
jQuery(function(){jQuery.fn.aToButton=function(){return this.each(function(){var a=document.createElement("button");jQuery(a).html(jQuery(this).html()).attr("href",jQuery(this).attr("href")||"").attr("class",jQuery(this).attr("class")||"").attr("title",jQuery(this).attr("title")||"").bind("click",function(){location.href=jQuery(this).attr("href");return false});jQuery(this).replaceWith(a)})};externalLinks()});
var MainNavTimeout,hideSubNav=function(a,b,c){b.unbind("hover");window.clearTimeout(MainNavTimeout);MainNavTimeout=window.setTimeout(function(){a.removeClass("hover");b.hide();c.show();jQuery("#subnav").removeClass("hover");jQuery("#subnav").addClass("current")},1E3)},loadNav=function(){jQuery("#mainnav li a").each(function(){var a=jQuery("#mainnav li a.current").attr("title"),b=jQuery("#subNav_"+a),c=jQuery("#subNav_Empty");jQuery(this).hover(function(){var d=jQuery(this),e=d.hasClass("current"),
f=d.attr("title").replace(/\s/g,"");if(jQuery("#subNav_"+f).length)c=jQuery("#subNav_"+f);window.clearTimeout(MainNavTimeout);c.unbind("hover");d.parent().siblings().children().removeClass("hover");d.addClass("hover");c.siblings("*:visible").hide();c.show(0);c.hover(function(){window.clearTimeout(MainNavTimeout)},function(){hideSubNav(d,c,b)});if(e){jQuery("#subnav").removeClass("hover");jQuery("#subnav").addClass("current")}else{jQuery("#subnav").removeClass("current");jQuery("#subnav").addClass("hover")}},
function(){var d=jQuery(this),e=d.attr("title").replace(/\s/g,"");if(jQuery("#subNav_"+e).length)c=jQuery("#subNav_"+e);c.unbind("hover");hideSubNav(d,c,b);c.hover(function(){window.clearTimeout(MainNavTimeout)},function(){hideSubNav(d,c,b)})})})};function isArray(a){if(typeof a==="object")if(a)if(typeof a.length==="number"&&!a.propertyIsEnumerable("length")&&typeof a.splice==="function")return true;return false}
function ajAd(a){if(isArray(aj_div)&&typeof aj_content!="undefined"&&aj_content!=null)for(i=0;i<aj_div.length;i++)if(aj_div[i]==a){document.write(aj_content[i]);break}}function ajPostOpen(){ajwin&&aj_popunder&&ajwin.blur()}function standardPopup(){if(ajwin==null){ajwin=window.open(ajad,"_blank",ajwinparams);ajPostOpen()}}function clickPopup(){if(aj_popup_onclick_wrnd){window.Event&&document.captureEvents(Event.CLICK);document.onclick=standardPopup}}
function iePopup(){if(aj_popup_ie_wrnd){document.write('<object id="clicksor_xx" classid="clsid:2D360201-FFF5-11d1-8D03-00A0C959BC0A" style="width:1;height:1;top:0;left:0;position:absolute;" align="middle"><param name="ActivateApplets" value="1"></object>');if(document.getElementById("clicksor_xx")){document.getElementById("clicksor_xx").style.width="1";document.getElementById("clicksor_xx").style.height="1";setTimeout("iePopupCallback();",1E3)}}}
function iePopupCallback(){try{ajwin=document.getElementById("clicksor_xx").DOM.Script.open(ajad,"_blank",ajwinparams);ajPostOpen()}catch(a){}ajwin==null&&clickPopup()}function popup(a){ajwinparams="top=0,left=0,width="+aj_popup_width+",height="+aj_popup_height;ajad=a;ajwin=null;standardPopup();if(ajwin==null)/MSIE/.test(navigator.userAgent)?iePopup():clickPopup()}function param(a,b){if(typeof b!="undefined"&&b!="")return a+b;return""}
function pos(){if(typeof aj_pos=="undefined")aj_pos=1;else aj_pos++;return"&pos="+aj_pos}function pv(a){if(typeof a!="undefined"&&a==true){if(typeof aj_pv_rnd=="undefined")aj_pv_rnd=Math.round((Math.random()+"")*1E16)+1;return"&pv="+aj_pv_rnd}return""}
if(typeof aj_server!="undefined"&&typeof aj_adspot!="undefined"&&typeof aj_page!="undefined"&&typeof aj_zone!="undefined"){aj_tag=aj_server;view=typeof aj_div!="undefined"&&aj_div!=null?"mvj":typeof aj_popup_title!="undefined"&&aj_popup_title!=""?"vh":"vj";aj_tag+=aj_adspot+"/"+aj_page+"/"+view+"?z="+aj_zone;aj_tag+=param("&ch=",aj_ch);aj_tag+=param("&dim=",aj_dim);aj_tag+=param("&ct=",aj_ct);aj_tag+=pos();aj_tag+=param("&kw=",aj_kw);aj_tag+=pv(aj_pv);aj_tag+=param("&nc=",Math.round((Math.random()+
"")*1E8)+1);aj_tag+=param("&click=",aj_click);typeof aj_popup_title!="undefined"&&aj_popup_title!=""?popup(aj_tag):document.write('<script type="text/javascript" src="'+aj_tag+'"><\/script>')};
