function setupCompanyKings(a){$(".right_container h4").corner("8px");$(".post_a_review").corner("8px top");$(".google_map").corner("8px");if(a.industryId){$("#industryId option[@value='"+a.industryId+"']").attr("selected","selected")}$("#industryId").bind("change",function(){location.href=a.baseUri+"?industryId="+$(this).val()})}function setupSuperCities(b){$(".post_a_review").corner("8px top");var a=new GoogleMaps($("#map"),37.0625,-95.677068,3,{controls:["GSmallMapControl"],shadow:b.shadow,markerImg:b.markerImg,markerBigImg:b.markerBigImg,markers:$(".superCityLocation")});a.centerToCountry(b.country||"united states");if(b.industryId){$("#industryId option[@value='"+b.industryId+"']").attr("selected","selected")}if(b.order){$("#order option[@value='"+b.order+"']").attr("selected","selected")}if(b.country){$("#country option[@value='"+b.country+"']").attr("selected","selected")}$("#industryId").bind("change",function(){var c=location.href;if(c.indexOf("industryId=")!=-1){c=c.replace(/industryId=[1-9]+/,"industryId="+$(this).val())}else{if(c.indexOf("?")!=-1){c+="&industryId="+$(this).val()}else{c+="?industryId="+$(this).val()}}location.href=c});$("#order").bind("change",function(){var c=location.href;if(c.indexOf("order=")!=-1){c=c.replace(/order=[^&$]*/,"order="+$(this).val())}else{if(c.indexOf("?")!=-1){c+="&order="+$(this).val()}else{c+="?order="+$(this).val()}}location.href=c});$("#country").bind("change",function(){var c=location.href;if(c.indexOf("country=")!=-1){c=c.replace(/country=[^&$]*/,"country="+$(this).val())}else{if(c.indexOf("?")!=-1){c+="&country="+$(this).val()}else{c+="?country="+$(this).val()}}location.href=c})}function setupMoneyMakers(b){$(".right_container h4").corner("8px");$(".post_a_review").corner("8px top");$(".google_map").corner("8px");var a=new GoogleMaps($("#map"),37.0625,-95.677068,3,{controls:["GSmallMapControl"],shadow:b.shadow,markerImg:b.markerImg,markerBigImg:b.markerBigImg,companyMarkers:$(".superCityLocation")});a.centerToCountry(b.mapCountry||"united states");if(b.companyIndustryId){$("#companyIndustryId option[@value='"+b.companyIndustryId+"']").attr("selected","selected")}if(b.companyLocationCountry){$("#companyLocationCountry option[@value='"+b.companyLocationCountry+"']").attr("selected","selected")}if(b.cityIndustryId){$("#cityIndustryId option[@value='"+b.cityIndustryId+"']").attr("selected","selected")}if(b.mapCountry){$("#mapCountry option[@value='"+b.mapCountry+"']").attr("selected","selected")}$("#companyIndustryId").bind("change",function(){var c=location.href;if(c.indexOf("companyIndustryId=")!=-1){c=c.replace(/companyIndustryId=[1-9]+/,"companyIndustryId="+$(this).val())}else{if(c.indexOf("?")!=-1){c+="&companyIndustryId="+$(this).val()}else{c+="?companyIndustryId="+$(this).val()}}location.href=c});$("#companyLocationCountry").bind("change",function(){var c=location.href;if(c.indexOf("companyLocationCountry=")!=-1){c=c.replace(/companyLocationCountry=[^&$]*/,"companyLocationCountry="+$(this).val())}else{if(c.indexOf("?")!=-1){c+="&companyLocationCountry="+$(this).val()}else{c+="?companyLocationCountry="+$(this).val()}}location.href=c});$("#cityIndustryId").bind("change",function(){var c=location.href;if(c.indexOf("cityIndustryId=")!=-1){c=c.replace(/cityIndustryId=[1-9]+/,"cityIndustryId="+$(this).val())}else{if(c.indexOf("?")!=-1){c+="&cityIndustryId="+$(this).val()}else{c+="?cityIndustryId="+$(this).val()}}location.href=c});$("#mapCountry").bind("change",function(){var c=location.href;if(c.indexOf("mapCountry=")!=-1){c=c.replace(/mapCountry=[^&$]*/,"mapCountry="+$(this).val())}else{if(c.indexOf("?")!=-1){c+="&mapCountry="+$(this).val()}else{c+="?mapCountry="+$(this).val()}}location.href=c});$(".detail_container > .row").bind("mouseover",function(){var c=$(".locationId",$(this)).attr("title");a.highlightMarker($(".num",$("#"+c)).attr("title"))});$(".detail_container > .row").bind("mouseout",function(){var c=$(".locationId",$(this)).attr("title");a.unHighlightMarker($(".num",$("#"+c)).attr("title"))})}function setupBestWorkLife(a){$(".right_container h4").corner("8px");$(".post_a_review").corner("8px top");if(a.industryId){$("#industryId option[@value='"+a.industryId+"']").attr("selected","selected")}$("#industryId").bind("change",function(){location.href=a.baseUri+"?industryId="+$(this).val()})}function shareReview(d){var h=encodeURIComponent($("#share-information > #title").html());var c=encodeURIComponent($("#share-information > #url").html());var f="";switch(d){case"facebook":postPopUp("http://www.facebook.com/sharer.php?u="+c+"&t="+h,"facebook","toolbar=0,status=0,height=436,width=646,scrollbars=yes,resizable=yes");break;case"digg":var b="";postPopUp("http://digg.com/remote-submit?phase=2&url="+c+"&title="+h+"&bodytext="+f,"digg","toolbar=0,status=0,height=450,width=650,scrollbars=yes,resizable=yes");break;case"delicious":postPopUp("http://del.icio.us/post?v=4&partner=nyt&noui&jump=close&url="+c+"&title="+h+"&bodytext="+f,"delicious","toolbar=0,status=0,height=400,width=700,scrollbars=yes,resizable=no");break;case"yahoobuzz":postPopUp("http://buzz.yahoo.com/article/new_york_times/"+c,"yahoobuzz","scrollbars=yes,resizable=yes");break;case"mixx":try{var a="&title="+h+"&description="+f+"&tags=jobreview,career,job,review,jobulous&partner=JOBULOUS";postPopUp("http://mini.mixx.com/submit/story?page_url="+c+a,"mixx","toolbar=0,status=0,height=550,width=700,scrollbars=yes,resizable=no")}catch(g){postPopUp("http://mini.mixx.com/submit/story?page_url="+c+"&title="+h+"&partner=JOBULOUS","mixx","toolbar=0,status=0,height=550,width=700,scrollbars=yes,resizable=no")}break;case"linkedin":postPopUp("http://www.linkedin.com/shareArticle?mini=true&url="+c+"&title="+h+"&summary="+f+"&source=Jobulous.com","Linkedin","toolbar=0,status=0,height=550,width=700,scrollbars=yes,resizable=no");break;case"myspace":postPopUp("http://www.myspace.com/Modules/PostTo/Pages/?u="+c+"&t="+h+"&c=","myspace","toolbar=0,status=0,height=436,width=646,scrollbars=yes,resizable=yes");break;case"stumbleupon":postPopUp("http://www.stumbleupon.com/submit?url="+c+"&title="+h,"stumbleupon","toolbar=0,status=0,height=436,width=646,scrollbars=yes,resizable=yes");break;case"reddit":postPopUp("http://www.reddit.com/login?dest=%2Fsubmit%3Furl%3D"+c,"reddit","toolbar=0,status=0,height=436,width=646,scrollbars=yes,resizable=yes");break}}function postPopUp(b,a,d){var c=window.open(b,a,d)}function getSharePasskey(){return""}function getShareURL(){return"http://getshareurl.com"}function createYahooBuzzOnLoad(){window.yahooBuzzOnLoad=function(){var a=function(){s_code_linktrack("Article-Tool-Share-YahooBuzz")};return function(){if(typeof(window.yahooBuzzOnLoad)!="function"){window.yahooBuzzOnLoad=null}var b=document.getElementById("yahooBuzzBadge-form");if(b){if(b.addEventListener){b.addEventListener("click",a,true)}else{if(b.attachEvent){b.attachEvent("click",a)}else{b.onmousedown=a}}}}}()};