function CompanyWebsite(b){LittleWindow2=open(b,"CompanyWebsite","fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0")}function CompanyInfo(b){LittleWindow3=open("/searchv3/detail/companyinfo.cfm?display=none&job_id="+b,"CompanyInfo","width=450,height=500,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0")}
function Translator(b){var n={"12244":{custom1:"CANDIDATE",custom2:"CERTIFICATIONS"},"12867":{custom1:"CERTIFICATIONS"},"141972":{custom1:"CERTIFICATIONS",custom2:"CURRENCY"},"150523":{custom8:"JOB_TYPE"},"165392":{custom8:"JOB_TYPE"},"165403":{custom1:"PRINT1",custom2:"PRINT2",custom7:"CERTIFICATIONS",custom9:"SECTOR"},"167411":{custom1:"SPECIES",custom2:"OCCUPATION"},"167807":{custom1:"SECTOR",custom2:"PRINT2",custom3:"PRINT3",custom4:"JOB_LEVEL"},"18226":{custom7:"CERTIFICATIONS",custom9:"SECTOR"},
"18490":{custom1:"PRINT1"},"208513":{custom1:"CERTIFICATIONS"},"209944":{custom1:"WOMAN_BENEFITS",custom2:"WOMAN_ADVANCEMENT_PRACTICES",custom3:"VETERAN_BENEFITS",custom4:"VETERAN_ADVANCEMENT_PRACTICES",custom5:"VETERAN_STATUS",custom6:"SERVICE_BRANCH",custom7:"PAY_GRADE",custom8:"YEARS_OF_SERVICE",custom9:"SECURITY_CLEARANCE"},"213544":{custom1:"SPECIALTY"},"21885":{custom1:"SPECIALTY",custom2:"LANGUAGES",custom4:"SECTOR"},"21978":{custom1:"PAY_GRADE",custom2:"SERVICE_BRANCH"},"219938":{custom1:"CERTIFICATIONS"},
"229661":{custom1:"RACE"},"243094":{custom1:"SPECIALTY",custom2:"ORGANIZATION_TYPE"},"254361":{custom1:"CERTIFICATIONS"},"255444":{custom1:"SECTOR"},"26088":{custom7:"CERTIFICATIONS",custom9:"SECTOR"},"265373":{custom1:"SECTOR",custom2:"SPECIALTY",custom3:"DESIRED_SPECIALTY"},"265413":{custom1:"SECURITY_CLEARANCE",custom2:"YEARS_OF_EXPERIENCE"},"265414":{custom1:"CERTIFICATIONS"},"273842":{custom1:"SPECIALTY"},"281340":{custom1:"DENOMINATION"},"296560":{custom1:"SECTOR"},"301551":{custom1:"CERTIFICATIONS"},
"301559":{custom9:"CERTIFICATIONS"},"302948":{custom1:"SECTOR"},"307505":{custom1:"BUSINESS_TYPE"},"308413":{custom1:"SECTOR"},"310704":{custom1:"SECTOR"},"31499":{custom1:"CERTIFICATIONS"},"316469":{custom3:"DENOMINATION"},"317612":{custom1:"SECURITY_CLEARANCE",custom2:"YEARS_OF_EXPERIENCE"},"318245":{custom1:"REGION"},"318289":{custom2:"AREA_OF_RESPONSIBILITY",custom3:"PREFERRED_CERTIFICATIONS"},"318350":{custom7:"CERTIFICATIONS",custom9:"SECTOR"},"33457":{custom1:"INTEREST_AREAS"},"357545":{custom1:"INTERNATIONAL_EMPLOYMENT_ELIGIBILITY"},
"357549":{custom1:"SECTOR",custom2:"YEARS_OF_EXPERIENCE",custom5:"WORK_FUNCTION"},"41104":{custom1:"PRACTICE_TYPE",custom2:"COMMUNITY",custom3:"COMPENSATION",custom4:"BENEFITS",custom5:"CERTIFICATIONS",custom6:"WEEKEND_SCHEDULE",custom7:"NIGHT_SCHEDULE",custom8:"NORTH_AMERICAN_STATES_AND_PROVINCES"},"46278":{custom1:"SECTOR",custom2:"YEARS_OF_EXPERIENCE",custom4:"PRINT4",custom5:"WORK_FUNCTION"},"61931":{custom7:"CERTIFICATIONS",custom9:"SECTOR"},"73994":{custom1:"SECURITY_CLEARANCE"},"79240":{custom7:"CERTIFICATIONS",
custom9:"SECTOR"}}[b];this.process=function(o){if(typeof n!=="undefined")for(var q in n)o=o.replace(q,n[q].toLowerCase(),"gi");return o};return this}
(function(b){function n(){b("#bti-key").hide();b(".bti-facet-group").hide();b(".ui-tabs-selected").removeClass("ui-state-active").removeClass("ui-tabs-selected")}function o(){b("#bti-page-loading").hide();a.$main.show()}function q(d){d=b(d);var f=d.attr("type")!="button";f?d.text("saving..."):d.val("Saving...");b.ajaxQueue({key:"saveJob",url:a.urls.saveJob,data:{cmd:"save",save_job:d.attr("job")},success:function(c){if(c.message!=="")alert(c.message);else{f?d.text("saved"):d.val("Saved");var e=b(".bti-navbaroption");
e.each(function(g){var h;if(e[g].pathname==="/jobs/saved"||e[g].pathname==="jobs/saved")h=b(e[g]);if(typeof h!=="undefined"){g=f?d.parents(".bti-job-snippet"):b("#bti-search-detail-body");var j=h.offset(),l=g.offset(),k=g.clone().css({"background-color":"white","border-color":"silver","border-width":"1px","border-style":"dashed"}).appendTo("body");k.text("").css({position:"absolute",left:l.left,top:l.top,width:g.width(),height:g.height(),zIndex:1E3,opacity:0.6});k.animate({top:j.top,left:j.left,height:30,
width:20,opacity:0.3},800,function(){k.fadeOut().remove();h.animate({opacity:0.4}).animate({opacity:1}).animate({opacity:0.4}).animate({opacity:1})})}})}},error:function(){alert("There was a saving your job.  Please try again.")}})}function L(){b.address.externalChange(function(d){if(d.pathNames[0]==="results")if(a.$detail.is(":visible")){a.$results.show();a.$detail.hide()}});b.address.change(function(d){if(d.pathNames[0]==="detail")M(d.pathNames[1]);else if(d.pathNames[0]==="results"||d.pathNames.length<
1){var f=d.pathNames.length>2?d.pathNames[2].split(","):[1,false],c=parseInt(f[0]);f=f[1];d=d.pathNames.length>1?d.pathNames[1]:"";if(a.$detail.is(":visible")&&!f){a.$results.show();a.$detail.hide()}if(a.lastSearchString!==d||parseInt(a.page)!==c){A(d);N(c,f);a.lastSearchString=d}else if(B)B=false;else{b.ajaxQueue.callAnalytics({url:a.urls.search,gaURL:"",data:m(),gaFields:a.gaSearchFields});b("#bti-search").trigger("MajorViewChange",{response:null,type:"results"})}}})}function i(d,f){b.address.value("/results/"+
r(m())+"/"+(typeof d!=="undefined"?d:1)+","+(typeof f!=="undefined"?f:false))}function N(d,f){var c=m();s(c);c.page=d;c.pageChangeOnly=f;a.$autocomplete.autocomplete("close");a.$keywords.addClass("bti-search-loading");var e=b(window).scrollTop(),g=e+b(window).height(),h=b("#bti-toolbar").offset().top;h>=e&&h<=g||b(document).scrollTop(0);b.ajaxQueue({key:"searchResults",url:a.urls.search,data:c,gaFields:a.gaSearchFields,done:function(){a.$keywords.removeClass("bti-search-loading")},success:function(j){a.formDirty=
false;a.countdown=0;a.$results.html(j.output);C(j);D();if(a.navDirection!=0)a.navDirection>0?t(a.jobIDs[0]):t(a.jobIDs[a.jobIDs.length-1]);else{if(a.$results.is(":hidden")){a.$results.slideDown();a.$detail.slideUp()}b("#bti-search").trigger("MajorViewChange",{response:j,type:"results"})}a.$results.trigger("loaded",{response:j,data:c})},error:function(){alert("There was a problem running your search.  Please try again.")}})}function m(){var d={};d.keywords="";d.filter="";d.location="";d.customFilter=
a.$customFilter.val();d.resultsPerPage=a.$resultsPerPage.val();d.noStem=a.$nostem.prop("checked");d.titlesOnly=a.$titlesOnly.prop("checked");if(a.$telecommute.prop("checked"))d.telecommute=true;if(a.$special.prop("checked"))d.special=a.$special.val();d.age=a.$age.val();d.minSalary=a.$minSalary.val().replace(/[^0-9]/g,"");a.$minSalary.val(d.minSalary);d.salary_open=a.$salaryOpen.prop("checked");d.showMoreOptions=a.$moreOptionsButton.text()===a.lessText;var f=b("#bti-search-facets").find(".ui-tabs-selected").find("a").attr("href");
if(typeof f!="undefined")d.selectedTab=f.substr(1,f.length-1);f=a.$sort.val();if(f!=="")d.sort=f.toUpperCase();d.view=a.$view.val();var c=[];a.$events.each(function(){var g=b(this);g.prop("checked")&&c.push(g.val())});d.event_id=c.join(",");if(!a.$keywords.hasClass("bti-disabled"))d.keywords=a.$keywords.val().replace(/\//g," ");if(a.$location.val()!=a.$location.attr("title"))d.location=a.$location.val()+",500";var e=[];b(".bti-filter-group:visible").each(function(){var g=[];b(".bti-filter",this).each(function(){var h=
b(this).parent().attr("id").split("-")[2];g.push(h+":"+b(this).attr("slug"))});g.length>0&&e.push("("+g.join(" OR ")+")")});d.filter=e.join(" AND ");return d}function r(d){d=m();var f="",c;for(c in d)if(d[c]!="")f+=c+"="+escape(d[c])+"&";return f.substring(0,f.length-1)}function s(d){if(d===undefined)d=m();d=r(d);b.cookie("btiJSCriteria",d)}function A(d){var f={};if(d!==null){d=d.split("&");for(var c=0;c<d.length;c++){var e=d[c].split("=");f[e[0]]=unescape(e[1])}}E(f)}function E(d){u(false);var f=
false,c={};for(key in d)c[key.toLowerCase()]=d[key];if(typeof c.selectedtab!=="undefined"&&c.selectedtab!="undefined"&&c.selectedtab!==""){c.selectedtab=c.selectedtab.replace("#","");a.$tabs.tabs("select","#"+c.selectedtab);f=true}typeof c.keywords!=="undefined"&&a.$keywords.val(c.keywords).blur();typeof c.customfilter!=="undefined"&&a.$customFilter.val(c.customfilter).trigger("syncCustomFilter");typeof c.resultsperpage!=="undefined"&&a.$resultsPerPage.val(c.resultsperpage);typeof c.location!=="undefined"&&
a.$location.val(c.location.split(",")[0]).blur();if(typeof c.nostem!=="undefined"&&(c.nostem==true||c.nostem=="true"))a.$nostem.attr("checked",true);if(typeof c.titlesonly!=="undefined"&&(c.titlesonly==true||c.titlesonly=="true"))a.$titlesOnly.attr("checked",true);typeof c.age!=="undefined"&&c.age!==""&&a.$age.val(c.age);typeof c.sort!=="undefined"&&c.sort!==""&&a.$sort.val(c.sort);typeof c.view!=="undefined"&&c.view!==""&&a.$view.val(c.view);if(typeof c.minsalary!=="undefined"&&c.minsalary!==""){a.$minSalary.val(c.minsalary);
f=true}if(typeof c.salary_open!=="undefined"&&(c.salary_open==true||c.salary_open=="true")){a.$salaryOpen.attr("checked",true);f=true}if(typeof c.event_id!=="undefined"&&c.event_id!==""){var e=(new String(c.event_id)).split(",");a.$events.each(function(){var g=b(this);b.inArray(g.val(),e)>-1&&g.attr("checked",true)});f=true}if(typeof c.telecommute!=="undefined"&&(c.telecommute==true||c.telecommute=="true")){a.$telecommute.attr("checked",true);f=true}if(typeof c.special!=="undefined"&&c.special!=""){a.$telecommute.attr("checked",
true);f=true}if(typeof c.showmoreoptions==="boolean"&&c.showmoreoptions)f=true;f&&F();if(typeof c.filter!=="undefined"&&c.filter!=""){c.filter=G.process(c.filter);a.$filterGroups.hide();v();d=c.filter.replace(/[()]/g,"").replace(/:/g,"-").split(" ");for(c=0;c<d.length;c++){f=d[c].toUpperCase();f!==""&&f!=="OR"&&f!=="AND"&&H(b("#"+d[c]),false)}}else a.$filters.slideUp()}function F(){a.$advancedOptions.show();a.$facetHint.hide();a.$moreOptionsButton.html(a.lessText)}function I(d){var f=a.$moreOptionsButton;
n();if(typeof d==="undefined"||d)f.text()===a.lessText?a.$advancedOptions.slideToggle():a.$advancedOptions.slideToggle("slow");else a.$advancedOptions.slideToggle();a.$facetHint.toggle();f.text(f.text()===a.moreText?a.lessText:a.moreText)}function O(){var d={};b.extend(d,{searchData:r(m())},b("#bti-save-form").serializeObject());b.ajaxQueue({key:"saveSearch",url:a.urls.save,data:d,success:function(f){a.$saveDialog.popout("hide");a.$loadDialog.find("div").eq(1).html(f.output);a.$loadDialog.popout("show")},
error:function(){alert("There was a problem saving your search.  Please try again.")}})}function u(d){a.$keywords.val("").blur();a.$location.val("").blur();a.$sort.val("");a.$age.val("");a.$nostem.attr("checked",false);a.$titlesOnly.attr("checked",false);a.$minSalary.val("");a.$salaryOpen.attr("checked",false);a.$events.attr("checked",false);a.$telecommute.attr("checked",false);a.$special.attr("checked",false);w(d)}function w(d){b(".bti-filter").remove();a.$facetAllButtons.addClass("bti-dim");if(typeof d===
"undefined"||d){a.$filterGroups.hide();v();a.$filters.slideUp()}}function x(){if(a.countdown<1||!a.formDirty){a.formDirty=true;setTimeout(J,1E3)}a.countdown=2}function J(){if(a.countdown<1&&a.formDirty){i(1,false);a.countdown=0}else{a.countdown--;a.formDirty&&setTimeout(J,1E3)}}function C(d){if(d.facetCount){d=d.facets;var f="",c="",e="",g="";b(".bti-filter").find("span").html(" (0)").end().addClass("bti-tempzero");b(".bti-facet-term").addClass("bti-tempzero");for(var h=0,j=d.length;h<j;h++){f=d[h].KEY.toLowerCase();
c=d[h].DATA.DATA;for(var l=0,k=c.length;l<k;l++){e=c[l];g="#"+f+"-"+e[2];b(g).find("span").html(" ("+e[1]+")").parent().removeClass("bti-tempzero");b(g+"-filter").find("span").html(" ("+e[1]+")").parent().removeClass("bti-tempzero")}}b(".bti-tempzero").addClass("bti-dim");b(".bti-facet-term:not(.bti-tempzero)").removeClass("bti-dim")}}function D(){var d=b("#bti-results-list");b("td",d).addClass("bti-separator");b("td:last",d).addClass("bti-table-right");b("th",d).addClass("bti-results-header").addClass("ui-widget-header");
var f=b("#bti-pagination"),c=f.attr("sort");c=c.toLowerCase().split(",");a.sortField="";a.sortOrder="";a.$sortHeaders.removeClass("bti-active-sort bti-sort-asc bti-sort-desc");if(c[0].length){c=c[0].split(" ");a.sortField=c[0];a.sortOrder=c[1];b("#bti-sort-"+a.sortField).addClass("bti-active-sort bti-sort-"+a.sortOrder)}else a.$location.hasClass("bti-disabled")||b("#bti-sort-distance").addClass("bti-active-sort bti-sort-asc");if(f.attr("location")!==""&&f.attr("locationParsed")===""){a.$location.val("").addClass("ui-state-error").blur();
b.btip.on(a.$location,{content:'<div style="text-align:center;">Please enter a<br>valid zip code.</div>',positions:["bottom","top","left","right"],width:100,onDelay:200,offDelay:5E3,triggers:["none"]});setTimeout(function(){b.btip.off();a.$location.removeClass("ui-state-error")},4E3)}a.jobIDs=f.attr("jobs").split(",");a.pageStart=parseInt(f.attr("start"));a.page=parseInt(f.attr("page"));a.totalPages=parseInt(f.attr("totalPages"));a.totalHomeResults=parseInt(f.attr("homeTotal"));a.totalResults=parseInt(f.attr("total"));
b(".bti-detail-records",a.$detail).html(parseInt(f.attr("total")));b(".bti-filter-new",a.$filters).removeClass("bti-filter-new");d.find("tr:not(.bti-search-featured,.bti-search-pager-block):has(td):odd").addClass("bti-search-results-even");d.find("tr:not(.bti-search-featured,.bti-search-pager-block):has(td):even").addClass("bti-search-results-odd");a.$facetHint=b("#bti-search-facet-hint");a.$moreOptionsButton.text()===a.lessText&&a.$facetHint.hide();a.$facetHint.html(a.$facetHintText.html());b("#bti-link-dialog").popout({triggers:b("#bti-link-icon"),
anchor:b("#bti-pagination"),side:"right",onShow:function(){b.btip.off();a.$linkText=b("#bti-link-text");a.$linkText.val("http://"+location.host+"/jobs#/results/"+r(m()));a.$linkText.focus();a.$linkText.select()}});b("#bti-rpp").change(function(){a.$resultsPerPage.val(b("#bti-rpp option:selected").val());i()});d.trigger("initResultsComplete",d)}function t(d){b.address.value("/detail/"+d)}function M(d){a.$results.hide();a.$detail.show();var f=b("#bti-search-detail-loading"),c=true;setTimeout(function(){c&&
f.fadeIn("fast")},400);b.ajaxQueue({key:"jobDetail",url:a.urls.detail,data:{display:"none",job:d,keywords:a.$keywords.val()!==a.$keywords.attr("title")?a.$keywords.val():"",returnURL:b.address.value()},gaFields:["job"],success:function(e){var g=b(".bti-detail-back");if(e.success){a.currentJob=b.inArray(d,a.jobIDs);P();b("#bti-search-detail-body").html(e.output);a.navDirection=0;b(".bti-detail-back-btn").hide();b(".bti-save-job").attr("onclick","");b("#bti-link-dialog").popout({triggers:b("#bti-detail-link-icon"),
anchor:b("#bti-addthis-links"),side:"right",onShow:function(){b.btip.off();a.$linkText=b("#bti-link-text");a.$linkText.val(b("#permaDetailLink").attr("permaLink"));a.$linkText.focus();a.$linkText.select()}});b("#bti-search").trigger("MajorViewChange",{response:e,type:"detail"});b("#bti-search-detail-body").trigger("loaded",{response:e,id:d})}else if(e.message==="login")document.location=e.loginURL;else{e.message==="notmember"?alert("You need to be a member to view the job detail."):alert("There was a problem loading the requested job.  Please try again.");
g.click()}},error:function(){alert("There was a problem loading the requested job.  Please try again.")},complete:function(){c=false;f.fadeOut("fast")}})}function P(){var d=a.currentJob+1;if(d>=a.jobIDs.length)d=-1;var f=a.currentJob-1;b(".bti-detail-prev").toggleClass("bti-disabled",f<0&&a.page===1);b(".bti-detail-next").toggleClass("bti-disabled",d<0&&a.page>=a.totalPages);b(".bti-detail-record").html(a.pageStart+a.currentJob);if(a.pageStart+a.currentJob===a.totalHomeResults&&a.totalHomeResults!==
a.totalResults){b(".bti-detail-next").hide();b(".bti-detail-external-note").html('<b>Note:</b> You have reached the end of the job listings from the Job Board. The rest are jobs from the web. Please click "Back to Results" above then the "job title" to view the job detail.').show()}else{b(".bti-detail-next").show();b(".bti-detail-external-note").html("").hide()}}function H(d,f){f&&b.ajaxQueue.cancel("searchResults");var c="#bti-group-"+d.parent().attr("group"),e=b(c);d.filter("a").html();var g=d.attr("slug"),
h=b(".bti-filter",c);if(typeof f==="undefined")f=true;for(var j=0,l=h.size();j<l;j++){var k=b(h.get(j));if(k.attr("slug")===g){k.css("border");k.focus();return}}a.recentTab=a.$tabs.tabs("option","selected");var p=b((d[0].outerHTML||(new XMLSerializer).serializeToString(d[0])).replace(/ id=/," orig-id=")).attr("id",d.attr("id")+"-filter").click(function(y){y.preventDefault()}).addClass("bti-filter bti-filter-new").find("span").addClass("bti-filter-new").end().removeClass("bti-dim").removeClass("bti-empty-facet").appendTo(e).show();
b('<img src="/pics/gui/close.png" border="0" height="12" width="12" style="vertical-align:middle; margin:0px 4px 1px 1px;" class="ui-state-disabled">').hover(function(){b(this).removeClass("ui-state-disabled")},function(){b(this).addClass("ui-state-disabled")}).click(function(y){K(b(this).parent());b.ajaxQueue.cancel("searchResults");x();y.preventDefault()}).prependTo(p);e.append(document.createTextNode(" "));a.$filters.is(":hidden")&&a.$filters.show();if(e.is(":hidden")){e.show();b(c+"-all-button").removeClass("bti-dim");
v()}if(f){c=p.offset();e=d.offset();var z=b((p[0].outerHTML||(new XMLSerializer).serializeToString(p[0])).replace(/ id=/," orig-id=")).appendTo("body");z.css({position:"absolute",left:e.left,top:e.top,width:d.width(),zIndex:1E3});p.addClass("bti-invisible");z.animate({top:c.top,left:c.left},"slow",function(){p.removeClass("bti-invisible");z.remove()});x()}}function K(d){if(d.siblings().length===1){b("#"+d.parent().attr("id")+"-all-button").addClass("bti-dim");d.parent().hide();v();b(".bti-filter-group:visible").length===
0&&a.$filters.slideUp()}d.remove()}function v(){var d=false;b(".bti-operator").hide();a.$filterGroups.each(function(){var f=b(this);if(f.is(":visible")){d&&f.prev(".bti-operator").fadeIn();d=true}})}var a={};a.formDirty=false;a.recentTab=-1;a.navDirection=0;a.currentMoreSection=undefined;a.gaSearchFields=["keywords","location","filter"];var B=true;a.urls={};a.urls.search="/searchV3/ajax/search.cfm";a.urls.save="/searchv3/ajax/saveSearch.cfm";a.urls.detail="/searchv3/ajax/detail.cfm";a.urls.autocomplete=
"/searchv3/ajax/autocomplete.cfm";a.urls.jobdetailtip="/searchv3/ajax/jobdetailtip.cfm";a.urls.saveJob="/searchv3/ajax/saveJob.cfm";a.lessText="CLOSE ADVANCED SEARCH OPTIONS";a.moreText="ADVANCED SEARCH";a.lastSearchString="";var G;b(function(){b.address.tracker(null);a.$main=b("#bti-search");if(a.$main.length===0||typeof btiConfig.browseMode!=="undefined"&&btiConfig.browseMode)a.$main.length===1&&o();else{G=new Translator(a.$main.attr("oid"));a.$tabs=b("#bti-search-facets").tabs().find(".ui-tabs-nav").addClass("bti-tabs-nav").end().find(".ui-tabs-panel").addClass("bti-tabs-panel").end().bind("tabsselect",
function(){a.formDirty&&i(1,false)}).find("ul").show().end();a.$tabs.replaceAll("#bti-search-facet-placeholder").css({border:"none"});a.$criteria=b("#bti-search-criteria").replaceAll("#bti-search-title").show();a.$main.find("div.bti-facet-label, div.bti-filter-group").hide().end();a.$facetTerms=b(".bti-facet-term",b("#bti-search-facets")).addClass("ui-corner-all bti-facet-term-js").find("span").addClass("bti-facet-counts").end();a.$facetAllButtons=b(".bti-facet-all-button").addClass("bti-facet-all-button-js");
o();b("#bti-key").show();b(".bti-facet-all-button").addClass("ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only").addClass("bti-dim");a.$results=b("#bti-search-results");a.$filters=b("#bti-active-filters");a.$filterGroups=b(".bti-filter-group",a.$filters);a.$detail=b("#bti-search-detail");a.$searchButton=b("#bti-search-button");a.$advancedOptions=b("#bti-advanced");a.$facetHintText=b("#bti-facet-hint-text");a.$facetHint=b("#bti-search-facet-hint");a.$emptyFacetTerms=b(".bti-empty-facet").hide();
a.$sortHeaders=b(".bti-sort");a.$sort=b("#bti-search-sort");a.$view=b("#bti-search-view");a.$tooltip=b("#bti-tooltip");a.$tooltipContent=b("#bti-tooltip-content");a.$tooltipArrow=b("#bti-tooltip-arrow");a.$moreOptionsButton=b("#bti-search-more-button");b(".ui-bti-search-button,.ui-bti-search-button-small").hover(function(){b(this).addClass("ui-state-hover")},function(){b(this).removeClass("ui-state-hover")});b(".bti-popout-close-button").hover(function(){b(this).toggleClass("ui-state-hover")});n();
a.$tabs.bind("tabsselect",function(c,e){b(".bti-facet-group").show();b("#bti-key").show();b("#bti-search").trigger("FacetTabChange",{event:c,ui:e})});a.$moreOptionsButton.click(function(c){I(true);s();c.preventDefault()});a.$keywords=b("#bti-search-keywords");a.$location=b("#bti-search-location");a.$age=b("#bti-search-age");a.$minSalary=b("#bti-search-min-salary");a.$salaryOpen=b("#bti-search-salary-open");a.$nostem=b("#bti-search-nostem");a.$titlesOnly=b("#bti-search-titles-only");a.$telecommute=
b("#bti-search-telecommute");a.$special=b("#bti-search-special");a.$events=b("input[name='event_id']");a.$customFilter=b("#bti-search-customfilter");a.$resultsPerPage=b("#bti-search-rpp");L();a.$events.length>0&&F();a.$location.mouseenter(function(){var c=b(this);b.btip.on(c,{content:"Search results will be sorted by proximity and approximate distance displayed.",width:150,positions:["top","left","right","bottom"],onDelay:200})}).mouseleave(function(){b(this);b.btip.off()});var d=a.$searchButton.offset().left+
a.$searchButton.outerWidth(),f=a.$age.offset().left+a.$age.outerWidth();a.$keywords.width(a.$keywords.width()+(d-f)+2);if(typeof btiConfig!=="undefined"){E(btiConfig.criteria);C(btiConfig)}D();b("#bti-search-clear-filters").click(function(c){w();i(1);c.preventDefault()});a.$tabs.delegate(".bti-facet-term","click",function(c){H(b(this),true);a.formDirty=true;c.preventDefault()}).delegate(".bti-facet-all-button","click",function(c){var e=false;b(".bti-filter",b("#"+b(this).attr("facet"))).each(function(){K(b(this));
e=true});if(e){x();i(1)}c.preventDefault()}).delegate("#bti-show-empty","click",function(c){var e=b(this),g=b("#bti-show-empty-verb");if(e.text()==="Show"){e.text("Hide");g.text("Showing");a.$emptyFacetTerms.show()}else{e.text("Show");g.text("Hiding");a.$emptyFacetTerms.hide()}c.preventDefault()});b("#bti-search-keywords, #bti-search-location").bind("blur change",function(){var c=b(this),e=c.attr("title"),g=c.val();if(g===""||g===e){c.attr("maxlength",1E3);c.val(e);c.addClass("bti-disabled")}else{c.attr("maxlength",
c.attr("charlimit"));c.removeClass("bti-disabled")}}).bind("focus",function(c){c=b(c.currentTarget);c.hasClass("bti-disabled")?c.val("").removeClass("bti-disabled"):c.select()}).change().keyup(function(c){var e=b(this);e.attr("maxlength",e.attr("charlimit"));if(c.keyCode===13){i(1,false);a.$autocomplete.autocomplete("close");c.preventDefault()}}).change(function(){var c=b(this),e=c.attr("title");c=c.val();c!==""&&c!==e&&a.$sort.val("")});a.$searchButton.click(function(c){i(1,false);c.preventDefault();
return false});a.$autocomplete=b("#bti-search-keywords").autocomplete({source:a.urls.autocomplete,minLength:2});a.$saveDialog=b("#bti-save-dialog").popout({triggers:b("#bti-search-save"),anchor:b("#bti-toolbar-bottom"),side:"left",onShow:function(){b("#bti-save-name").focus()}});b("#bti-load-dialog").delegate(".bti-load-agent","click",function(c){A(b(this).attr("data"));i(1);b("#bti-load-dialog").hide();c.preventDefault()}).delegate(".bti-delete-agent","click",function(c){var e=b(this);if(confirm("Are you sure you want to permanently delete this saved search?")){b.ajaxQueue({key:"deleteSavedSearch",
url:a.urls.save,data:{action:"delete",agent_id:e.attr("id")},success:function(g){a.$loadDialog.find("div").eq(1).html(g.output);a.$loadDialog.popout("show")},error:function(){alert("There was a problem deleting your saved search.  Please try again.")}});c.preventDefault()}});a.$loadDialog=b("#bti-load-dialog").popout({triggers:b("#bti-search-load"),anchor:b("#bti-toolbar-bottom"),side:"left"});b("#bti-search-reset").click(function(c){if(confirm("Are you sure you want to clear all of your search criteria?")){b(this).trigger("resetButtonClick");
u();i(1)}c.preventDefault()});b("#bti-save-go").click(function(){O()});a.$results.delegate(".bti-search-next, .bti-search-prev, .bti-search-page","click",function(c){i(b(this).attr("page"),true);c.preventDefault()}).delegate(".bti-detail-link","click",function(c){clearTimeout(b.btip.eventHandle);b.btip.closeActive();typeof b.btip.eventHandle!="undefined"&&clearTimeout(b.btip.eventHandle);t(b(this).attr("job"));c.preventDefault()}).delegate("#bti-search-facet-hint a","click",function(c){I(true);a.$tabs.tabs("select",
b(this).attr("facetgroup"));s();c.preventDefault()}).delegate(".bti-close-more-box","hover",function(){b(this).toggleClass("ui-state-hover")}).delegate(".bti-popout-close-button","hover",function(){b(this).toggleClass("ui-state-hover")}).delegate(".bti-more-link","click",function(c){c.preventDefault();c=b("#bti-more-"+b(this).attr("job"));if(typeof a.currentMoreSection==="undefined"){c.slideDown();a.currentMoreSection=c}else if(a.currentMoreSection.attr("id")===c.attr("id")){c.slideUp();a.currentMoreSection=
undefined}else{a.currentMoreSection.slideUp();c.slideDown();a.currentMoreSection=c}}).delegate(".bti-close-more-box","click",function(c){var e="#bti-more-"+b(this).attr("job");b(e).slideUp("slow");a.currentMoreSection=undefined;c.preventDefault()}).delegate(".bti-detail-link-indeed","mousedown",function(c){var e=b(this);e.attr("href",e.attr("hrefurl"));c.preventDefault()}).delegate("#bti-results-clear-filter","click",function(c){w();i(1);c.preventDefault()}).delegate("#bti-results-reset","click",
function(c){u();a.$keywords.focus();i(1);c.preventDefault()}).delegate("#bti-results-save","click",function(c){b("#bti-search-save").click();c.preventDefault();c.stopPropagation()}).delegate(".bti-deeplink","click",function(c){var e=b(this).attr("format");e="http://"+location.host+"/jobs?"+r(m())+"&display="+e;e=e.replace(/showFacets=[^&]*&*/,"");e=e.replace(/selectedTab=[^&]*&*/,"");location.href=e;c.preventDefault()}).delegate(".bti-sort","click",function(c){var e=b(this).attr("sort").split(" "),
g=e[0];e=e.length===1?"asc":e[1];if(g==="distance")a.$sort.val("");else if(g==="relevance")a.$sort.val("");else{if(g===a.sortField)e=a.sortOrder==="desc"?"asc":"desc";a.$sort.val(g+" "+e)}i(1,true);c.preventDefault()}).delegate(".bti-view-mode","click",function(c){var e=b(this).attr("mode");a.$view.val(e);i(1,true);c.preventDefault()}).delegate(".bti-featured-employer","click",function(){document.location=b(this).attr("location")}).delegate("#bti-rss-icon","mouseenter",function(){var c=b(this);b.btip.on(c,
{content:"Setup an RSS feed with the search criteria you are using now.",width:150,positions:["top","left","right","bottom"],onDelay:200})}).delegate("#bti-rss-icon","mouseleave",function(){b(this);b.btip.off()}).delegate("#bti-link-icon","mouseenter",function(){var c=b(this);b.btip.on(c,{content:"Create a permanent link to these search results with the current search criteria.",width:150,positions:["top","left","right","bottom"],onDelay:200})}).delegate("#bti-link-icon","mouseleave",function(){b(this);
b.btip.off()}).delegate("#bti-xml-icon","mouseenter",function(){var c=b(this);b.btip.on(c,{content:"View these search results with the current search criteria as an XML document.",width:150,positions:["top","left","right","bottom"],onDelay:200})}).delegate("#bti-xml-icon","mouseleave",function(){b(this);b.btip.off()}).delegate("#bti-linkedin-hover-icon","mouseenter",function(){var c=b(this);b.btip.on(c,{content:"Hover over any employer to view your LinkedIn&copy; connections.",width:150,positions:["top",
"left","right","bottom"],onDelay:200})}).delegate("#bti-linkedin-hover-icon","mouseleave",function(){b.btip.off()}).delegate("#bti-linkedin-hover-icon","click",function(c){b.btip.off();c.preventDefault()}).delegate("#bti-linkedin-click-icon","mouseenter",function(){var c=b(this);b.btip.on(c,{content:'Login to your LinkedIn&copy; account and click the "linkedin" link with each job to see who you know at the hiring company.',width:150,positions:["top","left","right","bottom"]})}).delegate("#bti-linkedin-click-icon",
"mouseleave",function(){b(this);b.btip.off()}).delegate("#bti-linkedin-click-icon","click",function(c){b(this);b.btip.off();c.preventDefault()}).delegate(".linkedin,.linkedin-hover","click",function(c){var e=b(this);b.btip.toggle(e,{content:'<iframe id="li-frame" width="220" height="250" scrolling="no" frameborder="no" src="http://www.linkedin.com/companyInsider?data&companyName='+encodeURIComponent(e.attr("company"))+"&backgroundColor=FFFFFF&titleBackgroundColor=FFFFFF&textColor=4c4c4c&trackinginfo="+
encodeURIComponent(window.location)+'&isPopup=0"></iframe>',width:220});c.preventDefault()}).delegate(".linkedin-hover","mouseenter",function(){var c=b(this);b.btip.on(c,{content:'<iframe id="#li-frame" width="220" height="250" scrolling="no" frameborder="no" src="http://www.linkedin.com/companyInsider?data&companyName='+encodeURIComponent(c.attr("company"))+"&backgroundColor=FFFFFF&titleBackgroundColor=FFFFFF&textColor=4c4c4c&trackinginfo="+encodeURIComponent(window.location)+'&isPopup=0"></iframe>',
onDelay:300,width:220})}).delegate(".linkedin,.linkedin-hover","mouseleave",function(){b.btip.off({offDelay:500})}).delegate(".bti-detail-link-tip","mouseenter",function(){var c=b(this);b.btip.on(c,{ajaxURL:"/searchv3/ajax/jobdetailtip.cfm?jobid="+c.attr("job"),onDelay:300,width:350})}).delegate(".bti-detail-link-tip","mouseleave",function(){b(this);b.btip.off({offDelay:500})}).delegate(".bti-save-job","click",function(c){q(this);c.preventDefault()});b("body").delegate("#bti-jobdesc-link","click",
function(){b.btip.$activeTarget.click();b.btip.closeActive()});a.$main.delegate(".bti-emp-jobs","click",function(c){var e=b(this);u();a.$keywords.val('employer:"'+e.attr("employer")+'"').blur();i(1);c.preventDefault()});a.$detail.delegate(".bti-detail-prev, .bti-detail-next","click",function(c){var e=b(this);a.navDirection=e.hasClass("bti-detail-next")?1:-1;e=a.currentJob+a.navDirection;if(e>=0&&e<a.jobIDs.length){t(a.jobIDs[e]);a.navDirection=0}else{e=a.page+a.navDirection;if(e>=1&&e<=a.totalPages)i(e,
true);else{alert("There are no more jobs.");a.navDirection=0}}c.preventDefault()}).delegate("#bti-detail-link-icon","mouseenter",function(){var c=b(this);b.btip.on(c,{content:"Create a permanent link to this job detail.",width:150,positions:["top","left","right","bottom"],onDelay:200})}).delegate("#bti-detail-link-icon","mouseleave",function(){b(this);b.btip.off()}).delegate(".bti-detail-back","click",function(c){if(a.$detail.is(":visible")){a.$results.show();a.$detail.hide()}i(a.page,true);c.preventDefault()}).delegate("#addThis",
"mouseover",function(){var c=b("#addThisData");return addthis_open(this,"",c.attr("snLink"),c.attr("snTitle"))}).delegate(".bti-save-job","click",function(c){q(this);c.preventDefault()}).delegate("#sec_Job_Description a[href*='bti-highlight'","click",function(){var c=b(this),e=c.attr("href").replace("<span class=bti-highlight>","");e=e.replace("</span>","");c.attr({href:e,target:"_blank"})});s()}})})(jQuery);
