(function(a){var o=[];a.ajaxQueue=function(h){var k=a.extend({},a.ajaxQueue.defaults,h);if(h.key!==""){var g=(new Date).getTime();o[h.key]=g;k.success=function(m){if(o[h.key]===g){k.done();typeof h.success!=="undefined"&&h.success(m);k.analytics(k)}};k.error=function(m,r,n){if(o[h.key]===g){k.done();typeof h.error!=="undefined"&&h.error(m,r,n);k.analytics(k)}};a.ajax(k)}};a.ajaxQueue.cancel=function(h){if(h in o){o[h]=0;return true}else return false};a.ajaxQueue.defaults={key:"",type:"POST",dataType:"json",
cache:false,timeout:3E4,done:function(){},gaFields:[],gaURL:"",analytics:function(){if(typeof btiPageTracker!=="undefined"||typeof clientPageTracker!=="undefined"){var h=this.url;if(this.gaURL.length)h=this.gaURL;for(var k=this.data,g=this.gaFields,m=0;m<g.length;m++)if(typeof k[g[m]]!=="undefined"&&k[g[m]].length)h=h+"/"+g[m]+"/"+k[g[m]];typeof btiPageTracker!=="undefined"&&btiPageTracker._trackPageview(h);typeof clientPageTracker!=="undefined"&&clientPageTracker._trackPageview(h)}}}})(jQuery);
(function(a){function o(g,m,r,n){if(typeof k!=="undefined"&&k!==g)h(k,true);else if(k===g){h(k,false);return}g.appendTo(a("body")).css({position:"absolute","background-color":"white",border:"2px solid silver",padding:0,width:"380px",zIndex:1E3}).find("div").css({padding:"8px","font-size":"8pt"}).end().find("div:first").css({borderBottom:"2px solid silver",fontWeight:"bold"});g.addClass("ui-corner-br ui-corner-bl");var u=m.offset().left,i=m.offset().top;switch(r){case "right":u=u+m.outerWidth()-g.outerWidth();
i+=m.outerHeight();break;case "left":i+=m.outerHeight();break}g.css({left:u,top:i});if(typeof k!="undefined"&&k!=g){g.show();typeof n!="undefined"&&n()}else g.slideDown("fast",n);k=g;a(document).bind("click.pu.blurHide",function(p){p.button==0&&h(g)})}function h(g,m){if(typeof m!="undefined"&&m)g.hide();else{g.slideUp("fast");k=undefined}a(document).unbind("click.pu.blurHide")}var k;a.fn.popout=function(g){var m=a(this);if(typeof g==="string")if(g==="hide")h(m);else{if(g==="show"){g=m.data("options");
o(m,g.anchor,g.side,g.onShow)}}else{g=a.extend({},g);m.data("options",g);g.triggers.click(function(r){o(m,g.anchor,g.side,g.onShow);r.stopPropagation();r.preventDefault()});a(".bti-popout-close-button").css({"float":"right",padding:"0px","margin-top":"-2px",cursor:"pointer"}).click(function(r){h(m);r.preventDefault()});m.click(function(r){r.stopPropagation()});return m}}})(jQuery);
jQuery.cookie=function(a,o,h){if(typeof o!="undefined"){h=h||{};if(o===null){o="";h.expires=-1}var k="";if(h.expires&&(typeof h.expires=="number"||h.expires.toUTCString)){if(typeof h.expires=="number"){k=new Date;k.setTime(k.getTime()+h.expires*24*60*60*1E3)}else k=h.expires;k="; expires="+k.toUTCString()}var g=h.path?"; path="+h.path:"",m=h.domain?"; domain="+h.domain:"";h=h.secure?"; secure":"";document.cookie=[a,"=",encodeURIComponent(o),k,g,m,h].join("")}else{o=null;if(document.cookie&&document.cookie!=
""){h=document.cookie.split(";");for(k=0;k<h.length;k++){g=jQuery.trim(h[k]);if(g.substring(0,a.length+1)==a+"="){o=decodeURIComponent(g.substring(a.length+1));break}}}return o}};(function(a){a.fn.serializeObject=function(){var o={},h=this.serializeArray();a.each(h,function(){if(o[this.name]){o[this.name].push||(o[this.name]=[o[this.name]]);o[this.name].push(this.value||"")}else o[this.name]=this.value||""});return o}})(jQuery);
(function(a){function o(){n.css({"background-image":"url(/pics/gui/btitip/arrow_left.gif)","background-position":"left center"})}function h(){n.css({"background-image":"url(/pics/gui/btitip/arrow_right.gif)","background-position":"right center"})}function k(){n.css({"background-image":"url(/pics/gui/btitip/arrow_top.gif)","background-position":"center top"})}function g(){n.css({"background-image":"url(/pics/gui/btitip/arrow_bottom.gif)","background-position":"center bottom"})}function m(i,p){var l=
i.offset(),t=n.outerHeight(true),q=n.outerWidth(true),z=i.outerHeight(true);i=i.outerWidth(true);var s={};n.show();for(var D in p.positions){switch(p.positions[D]){case "top":s.left=l.left-q/2+i/2;s.top=l.top-t-1;g();break;case "right":s.left=l.left+i+2;s.top=l.top-t/2+z/2;o();break;case "left":s.left=l.left-q-2;s.top=l.top-t/2+z/2;h();break;case "bottom":s.left=l.left-q/2+i/2;s.top=l.top+z+1;k();break}n.offset(s);if(r(n))break}}function r(){var i=a(window),p=i.width()+i.scrollLeft(),l=i.height()+
i.scrollTop();i=[n.offset().top<=i.scrollTop(),p<=n.offset().left+n.width(),l<=n.offset().top+n.height(),i.scrollLeft()>=n.offset().left];for(p=i.length;p--;)if(i[p])return false;return true}var n,u;a.btip={};a.btip.$activeTarget=null;a.btip.eventHandle=0;a.btip.create=function(){n=a('<div id="btiTip" class="ui-helper-hidden ui-corner-all"></div>').appendTo("body");u=a('<div id="btiTipContent"></div>').appendTo(n);n.css({position:"absolute",left:"-999em",padding:"8px","background-repeat":"no-repeat",
"z-index":"9999"});u.css({border:"2px #C3C3C3 solid","background-color":"#FFFFFF",padding:"5px"}).addClass("ui-corner-all");a(window).resize(function(){a.btip.closeActive()}).scroll(function(){a.btip.closeActive()});n.mouseenter(function(){clearTimeout(a.btip.eventHandle)}).mouseleave(function(){a.btip.closeActive()})};a.btip.on=function(i,p){clearTimeout(a.btip.eventHandle);a.btip.closeActive();typeof n==="undefined"&&a.btip.create();var l=a.extend({},a.fn.btip.defaults,p);l.height!=null&&u.css("height",
l.height);l.width!=null&&u.css("width",l.width);a.btip.eventHandle=setTimeout(function(){function t(q){u.html(q.content);m(i,q);i.addClass("btipOn");a.btip.$activeTarget=i;q.postShow(i)}if(typeof l.ajaxURL==="string"){if(typeof l.ajaxCache!=="boolean")l.ajaxCache=true;a.ajax({url:l.ajaxURL,cache:l.ajaxCache,success:function(q){l.content=q;t(l)},error:function(){l.content="Error getting content"},dataType:"html"})}else t(l)},l.onDelay)};a.btip.off=function(i){clearTimeout(a.btip.eventHandle);if(typeof i!=
"object")i={};typeof n==="undefined"&&a.btip.create();i=a.extend({},a.fn.btip.defaults,i);a.btip.eventHandle=setTimeout(function(){a.btip.closeActive()},i.offDelay)};a.btip.toggle=function(i,p){clearTimeout(a.btip.eventHandle);if(typeof p!="object")p={};typeof n==="undefined"&&a.btip.create();p=a.extend({},a.fn.btip.defaults,p);i.hasClass("btipOn")?a.btip.off(p):a.btip.on(i,p)};a.btip.closeActive=function(){clearTimeout(a.btip.eventHandle);if(a.btip.$activeTarget!=null){n.hide();a.btip.$activeTarget.removeClass("btipOn");
a.btip.$activeTarget=null}};a.fn.btip=function(i,p){var l=this,t=a(l);typeof n==="undefined"&&a.btip.create();if(typeof i==="undefined"&&typeof p==="undefined")p={triggers:["none"]};if(typeof i==="object")p=i;var q=a.extend({},a.fn.btip.defaults,p);if(typeof i==="string")q.content=i;if(typeof q.triggers==="object"&&q.triggers.length>0&&q.triggers[0]!="none")for(var z in q.triggers)switch(q.triggers[z]){case "hover":t.mouseenter(function(){l.btipOn()}).mouseleave(function(){l.btipOff()});break;case "mouseleave":t.mouseleave(function(){l.btipOff()});
case "click":t.click(function(){l.btipToggle()});break}l.btipOn=function(){a.btip.on(t,q)};l.btipOff=function(){a.btip.off(q)};l.btipToggle=function(){a.btip.toggle(t,q)};l.btipContent=function(s){if(typeof s==="string")q.content=s};l.btipStopEvent=function(){clearTimeout(a.btip.eventHandle)};return l};a.fn.btip.defaults={content:null,triggers:["hover"],positions:["right","left","top","bottom"],height:null,width:null,onDelay:0,offDelay:0,toggleDelay:0,ajaxURL:null,ajaxCache:true,postShow:function(){}}})(jQuery);
function CompanyWebsite(a){LittleWindow2=open(a,"CompanyWebsite","fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0")}function CompanyInfo(a){LittleWindow3=open("/searchv3/detail/companyinfo.cfm?display=none&job_id="+a,"CompanyInfo","width=450,height=500,fullscreen=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0")}
(function(a){function o(){a("#bti-key").hide();a(".bti-facet-group").hide();a(".ui-tabs-selected").removeClass("ui-state-active").removeClass("ui-tabs-selected")}function h(){a("#bti-page-loading").hide();b.$main.show()}function k(d){d=a(d);var e=d.attr("type")!="button";e?d.text("saving..."):d.val("Saving...");a.ajaxQueue({key:"saveJob",url:b.urls.saveJob,data:{cmd:"save",save_job:d.attr("job")},success:function(c){if(c.message!=="")alert(c.message);else{e?d.text("saved"):d.val("Saved");var f=a(".bti-navbaroption");
f.each(function(j){var v;if(f[j].pathname==="/jobs/saved"||f[j].pathname==="jobs/saved")v=a(f[j]);if(typeof v!=="undefined"){j=e?d.parents(".bti-job-snippet"):a("#bti-search-detail-body");var x=v.offset(),y=j.offset(),w=j.clone().css({"background-color":"white","border-color":"silver","border-width":"1px","border-style":"dashed"}).appendTo("body");w.text("").css({position:"absolute",left:y.left,top:y.top,width:j.width(),height:j.height(),zIndex:1E3,opacity:0.6});w.animate({top:x.top,left:x.left,height:30,
width:20,opacity:0.3},800,function(){w.fadeOut().remove();v.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 g(d,e){a.address.value("/results/"+u()+"/"+(typeof d!=="undefined"?d:1)+","+(typeof e!=="undefined"?e:false))}function m(d,e){var c=r();i(c);c.page=d;c.pageChangeOnly=e;b.$autocomplete.autocomplete("close");b.$keywords.addClass("bti-search-loading");d=a(window).scrollTop();
e=d+a(window).height();var f=a("#bti-toolbar").offset().top;f>=d&&f<=e||a(document).scrollTop(0);a.ajaxQueue({key:"searchResults",url:b.urls.search,data:c,gaFields:["keywords","location","filter"],done:function(){b.$keywords.removeClass("bti-search-loading")},success:function(j){N();b.$results.html(j.output);I(j);J();if(b.navDirection!=0)b.navDirection>0?B(b.jobIDs[0]):B(b.jobIDs[b.jobIDs.length-1]);else if(b.$results.is(":hidden")){b.$results.slideDown();b.$detail.slideUp()}},error:function(){alert("There was a problem running your search.  Please try again.")}})}
function r(){var d={};d.keywords="";d.filter="";d.location="";d.customFilter=b.$customFilter.val();d.resultsPerPage=b.$resultsPerPage.val();d.noStem=b.$nostem.attr("checked");d.titlesOnly=b.$titlesOnly.attr("checked");if(b.$telecommute.attr("checked"))d.telecommute=true;if(b.$special.attr("checked"))d.special=b.$special.val();d.age=b.$age.val();d.minSalary=b.$minSalary.val().replace(/[^0-9]/g,"");b.$minSalary.val(d.minSalary);d.salary_open=b.$salaryOpen.attr("checked");d.showMoreOptions=b.$moreOptionsButton.text()===
b.lessText;var e=a("#bti-search-facets").find(".ui-tabs-selected").find("a").attr("href");if(typeof e!="undefined")d.selectedTab=e;e=b.$sort.val();if(e!=="")d.sort=e.toUpperCase();d.view=b.$view.val();var c=[];b.$events.each(function(){var j=a(this);j.attr("checked")&&c.push(j.val())});d.event_id=c.join(",");if(!b.$keywords.hasClass("bti-disabled"))d.keywords=b.$keywords.val();if(b.$location.val()!=b.$location.attr("title"))d.location=b.$location.val()+",500";var f=[];a(".bti-filter-group:visible").each(function(){var j=
[];a(".bti-filter",this).each(function(){var v=a(this).parent().attr("id").split("-")[2];j.push(v+":"+a(this).attr("slug"))});j.length>0&&f.push("("+j.join(" OR ")+")")});d.filter=f.join(" AND ");return d}function n(d){d=r();var e="";for(var c in d)if(d[c]!="")e+=c+"="+escape(d[c])+"&";return e.substring(0,e.length-1)}function u(){return n(r())}function i(d){if(d===undefined)d=r();d=n(d);a.cookie("btiJSCriteria",d)}function p(d){var e={};if(d!==null){d=d.split("&");for(var c in d){var f=d[c].split("=");
e[f[0]]=unescape(f[1])}}l(e)}function l(d){s(false);var e={};for(key in d)e[key.toLowerCase()]=d[key];typeof e.selectedtab!=="undefined"&&e.selectedtab!="undefined"&&e.selectedtab!==""&&b.$tabs.tabs("select",e.selectedtab);typeof e.keywords!=="undefined"&&b.$keywords.val(e.keywords).blur();typeof e.customfilter!=="undefined"&&b.$customFilter.val(e.customfilter).trigger("syncCustomFilter");typeof e.resultsperpage!=="undefined"&&b.$resultsPerPage.val(e.resultsperpage);typeof e.location!=="undefined"&&
b.$location.val(e.location.split(",")[0]).blur();d=false;if(typeof e.nostem!=="undefined"&&(e.nostem==true||e.nostem=="true"))b.$nostem.attr("checked",true);if(typeof e.titlesonly!=="undefined"&&(e.titlesonly==true||e.titlesonly=="true"))b.$titlesOnly.attr("checked",true);typeof e.age!=="undefined"&&e.age!==""&&b.$age.val(e.age);typeof e.sort!=="undefined"&&e.sort!==""&&b.$sort.val(e.sort);typeof e.view!=="undefined"&&e.view!==""&&b.$view.val(e.view);if(typeof e.minsalary!=="undefined"&&e.minsalary!==
""){b.$minSalary.val(e.minsalary);d=true}if(typeof e.salary_open!=="undefined"&&(e.salary_open==true||e.salary_open=="true")){b.$salaryOpen.attr("checked",true);d=true}if(typeof e.event_id!=="undefined"&&e.event_id!==""){var c=(new String(e.event_id)).split(",");b.$events.each(function(){var j=a(this);a.inArray(parseInt(j.val()),c)&&j.attr("checked",true)});d=true}if(typeof e.telecommute!=="undefined"&&(e.telecommute==true||e.telecommute=="true")){b.$telecommute.attr("checked",true);d=true}if(typeof e.special!==
"undefined"&&e.special!=""){b.$telecommute.attr("checked",true);d=true}if(typeof e.showmoreoptions==="boolean"&&e.showmoreoptions)d=true;d&&t();if(typeof e.filter!=="undefined"&&e.filter!=""){b.$filterGroups.hide();C();e=e.filter.replace(/[()]/g,"").replace(/:/g,"-").split(" ");for(var f=0;f<e.length;f++){d=e[f].toUpperCase();d!==""&&d!=="OR"&&d!=="AND"&&K(a("#"+e[f]),false)}}else b.$filters.slideUp()}function t(){b.$advancedOptions.show();b.$facetHint.hide();b.$moreOptionsButton.html(b.lessText)}
function q(d){var e=b.$moreOptionsButton;o();if(typeof d==="undefined"||d)e.text()===b.lessText?b.$advancedOptions.slideToggle():b.$advancedOptions.slideToggle("slow");else b.$advancedOptions.slideToggle();(function(){b.$facetHint.toggle()})();e.text(e.text()===b.moreText?b.lessText:b.moreText)}function z(){var d={};a.extend(d,{searchData:u()},a("#bti-save-form").serializeObject());a.ajaxQueue({key:"saveSearch",url:b.urls.save,data:d,success:function(e){b.$saveDialog.popout("hide");b.$loadDialog.find("div").eq(1).html(e.output);
b.$loadDialog.popout("show")},error:function(){alert("There was a problem saving your search.  Please try again.")}})}function s(d){O(d);D(d);E(d)}function D(){b.$age.val("");b.$nostem.attr("checked",false);b.$titlesOnly.attr("checked",false);b.$minSalary.val("");b.$salaryOpen.attr("checked",false);b.$events.attr("checked",false);b.$telecommute.attr("checked",false);b.$special.attr("checked",false)}function O(){b.$keywords.val("").blur();b.$location.val("").blur();b.$sort.val("")}function E(d){a(".bti-filter").remove();
b.$facetAllButtons.addClass("bti-dim");if(typeof d==="undefined"||d){b.$filterGroups.hide();C();b.$filters.slideUp()}}function N(){b.formDirty=false;b.countdown=0}function F(){if(b.countdown<1||!b.formDirty){b.formDirty=true;setTimeout(L,1E3)}b.countdown=2}function L(){if(b.countdown<1&&b.formDirty){g(1,false);b.countdown=0}else{b.countdown--;b.formDirty&&setTimeout(L,1E3)}}function I(d){if(d.facetCount){d=d.facets;var e="",c="",f="",j="";a(".bti-filter").find("span").html(" (0)").end().addClass("bti-tempzero");
a(".bti-facet-term").addClass("bti-tempzero");for(var v=0,x=d.length;v<x;v++){e=d[v].KEY.toLowerCase();c=d[v].DATA.DATA;for(var y=0,w=c.length;y<w;y++){f=c[y];j="#"+e+"-"+f[2];a(j).find("span").html(" ("+f[1]+")").parent().removeClass("bti-tempzero");a(j+"-filter").find("span").html(" ("+f[1]+")").parent().removeClass("bti-tempzero")}}a(".bti-tempzero").addClass("bti-dim");a(".bti-facet-term:not(.bti-tempzero)").removeClass("bti-dim")}}function J(){var d=a("#bti-results-list");a("td",d).addClass("bti-separator");
a("td:last",d).addClass("bti-table-right");a("th",d).addClass("bti-results-header").addClass("ui-widget-header");var e=a("#bti-pagination"),c=e.attr("sort");c=c.toLowerCase().split(",");b.sortField="";b.sortOrder="";b.$sortHeaders.removeClass("bti-active-sort bti-sort-asc bti-sort-desc");if(c[0].length){c=c[0].split(" ");b.sortField=c[0];b.sortOrder=c[1];a("#bti-sort-"+b.sortField).addClass("bti-active-sort bti-sort-"+b.sortOrder)}else b.$location.hasClass("bti-disabled")||a("#bti-sort-distance").addClass("bti-active-sort bti-sort-asc");
if(e.attr("location")!==""&&e.attr("locationParsed")===""){b.$location.val("").addClass("ui-state-error").blur();a.btip.on(b.$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(){a.btip.off();b.$location.removeClass("ui-state-error")},4E3)}b.jobIDs=e.attr("jobs").split(",");b.pageStart=parseInt(e.attr("start"));b.page=parseInt(e.attr("page"));
b.totalPages=parseInt(e.attr("totalPages"));b.totalHomeResults=parseInt(e.attr("homeTotal"));b.totalResults=parseInt(e.attr("total"));a(".bti-detail-records",b.$detail).html(parseInt(e.attr("total")));a(".bti-filter-new",b.$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");b.$facetHint=a("#bti-search-facet-hint");
b.$moreOptionsButton.text()===b.lessText&&b.$facetHint.hide();b.$facetHint.html(b.$facetHintText.html());a("#bti-link-dialog").popout({triggers:a("#bti-link-icon"),anchor:a("#bti-pagination"),side:"right",onShow:function(){a.btip.off();b.$linkText=a("#bti-link-text");b.$linkText.val("http://"+location.host+"/jobs#/results/"+u());b.$linkText.focus();b.$linkText.select()}});a("#bti-rpp").change(function(){b.$resultsPerPage.val(a("#bti-rpp option:selected").val());g()});d.trigger("initResultsComplete",
d)}function B(d){a.address.value("/detail/"+d)}function P(d){b.$results.hide();b.$detail.show();var e=a("#bti-search-detail-loading"),c=true;setTimeout(function(){c&&e.fadeIn("fast")},400);a.ajaxQueue({key:"jobDetail",url:b.urls.detail,data:{display:"none",job:d,keywords:b.$keywords.val()!==b.$keywords.attr("title")?b.$keywords.val():""},gaFields:["job"],success:function(f){var j=a(".bti-detail-back");if(f.success){b.currentJob=a.inArray(d,b.jobIDs);Q();a("#bti-search-detail-body").html(f.output);
b.navDirection=0;a(".bti-detail-back-btn").hide();a(".bti-save-job").attr("onclick","");a("#bti-link-dialog").popout({triggers:a("#bti-detail-link-icon"),anchor:a("#bti-addthis-links"),side:"right",onShow:function(){a.btip.off();b.$linkText=a("#bti-link-text");b.$linkText.val(a("#permaDetailLink").attr("permaLink"));b.$linkText.focus();b.$linkText.select()}})}else if(f.message==="login"){alert("Please login to view the job detail");document.location="/login"}else{f.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.");j.click()}},error:function(){alert("There was a problem loading the requested job.  Please try again.")},complete:function(){c=false;e.fadeOut("fast")}})}function Q(){var d=b.currentJob+1;if(d>=b.jobIDs.length)d=-1;var e=b.currentJob-1;a(".bti-detail-prev").toggleClass("bti-disabled",e<0&&b.page===1);a(".bti-detail-next").toggleClass("bti-disabled",d<0&&b.page>=b.totalPages);a(".bti-detail-record").html(b.pageStart+b.currentJob);
if(b.pageStart+b.currentJob===b.totalHomeResults&&b.totalHomeResults!==b.totalResults){a(".bti-detail-next").hide();a(".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{a(".bti-detail-next").show();a(".bti-detail-external-note").html("").hide()}}function K(d,e){e&&a.ajaxQueue.cancel("searchResults");var c="#bti-group-"+
d.parent().attr("group"),f=a(c);d.filter("a").html();var j=d.attr("slug"),v=a(".bti-filter",c);if(typeof e==="undefined")e=true;for(var x=0,y=v.size();x<y;x++){var w=a(v.get(x));if(w.attr("slug")===j){w.css("border");w.focus();return}}b.recentTab=b.$tabs.tabs("option","selected");var A=a(d).clone().attr("id",d.attr("id")+"-filter").click(function(G){G.preventDefault()}).addClass("bti-filter bti-filter-new").find("span").addClass("bti-filter-new").end().removeClass("bti-dim").removeClass("bti-empty-facet").appendTo(f).show();
a('<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(){a(this).removeClass("ui-state-disabled")},function(){a(this).addClass("ui-state-disabled")}).click(function(G){M(a(this).parent());a.ajaxQueue.cancel("searchResults");F();G.preventDefault()}).prependTo(A);f.append(document.createTextNode(" "));b.$filters.is(":hidden")&&b.$filters.show();if(f.is(":hidden")){f.show();a(c+"-all-button").removeClass("bti-dim");
C()}if(e){e=A.offset();c=d.offset();var H=A.clone().appendTo("body");H.css({position:"absolute",left:c.left,top:c.top,width:d.width(),zIndex:1E3});A.addClass("bti-invisible");H.animate({top:e.top,left:e.left},"slow",function(){A.removeClass("bti-invisible");H.remove()});F()}}function M(d){if(d.siblings().length===1){a("#"+d.parent().attr("id")+"-all-button").addClass("bti-dim");d.parent().hide();C();a(".bti-filter-group:visible").length===0&&b.$filters.slideUp()}d.remove()}function C(){var d=false;
a(".bti-operator").hide();b.$filterGroups.each(function(){var e=a(this);if(e.is(":visible")){d&&e.prev(".bti-operator").fadeIn();d=true}})}var b={};b.formDirty=false;b.recentTab=-1;b.navDirection=0;b.currentMoreSection=undefined;b.urls={};b.urls.search="/searchV3/ajax/search.cfm";b.urls.save="/searchv3/ajax/saveSearch.cfm";b.urls.detail="/searchv3/ajax/detail.cfm";b.urls.autocomplete="/searchv3/ajax/autocomplete.cfm";b.urls.jobdetailtip="/searchv3/ajax/jobdetailtip.cfm";b.urls.saveJob="/searchv3/ajax/saveJob.cfm";
b.lessText="CLOSE ADVANCED SEARCH OPTIONS";b.moreText="ADVANCED SEARCH";b.lastSearchString="";a(function(){b.$main=a("#bti-search");if(b.$main.length===0||typeof btiConfig.browseMode!=="undefined"&&btiConfig.browseMode)b.$main.length===1&&h();else{b.$tabs=a("#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(){b.formDirty&&g(1,false)}).find("ul").show().end();b.$tabs.replaceAll("#bti-search-facet-placeholder").css({border:"none"});
b.$criteria=a("#bti-search-criteria").replaceAll("#bti-search-title").show();b.$main.find("div.bti-facet-label, div.bti-filter-group").hide().end();b.$facetTerms=a(".bti-facet-term",a("#bti-search-facets")).addClass("ui-corner-all bti-facet-term-js").find("span").addClass("bti-facet-counts").end();b.$facetAllButtons=a(".bti-facet-all-button").addClass("bti-facet-all-button-js");h();a("#bti-key").show();a(".bti-facet-all-button").addClass("ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only").addClass("bti-dim");
b.$results=a("#bti-search-results");b.$filters=a("#bti-active-filters");b.$filterGroups=a(".bti-filter-group",b.$filters);b.$detail=a("#bti-search-detail");b.$searchButton=a("#bti-search-button");b.$advancedOptions=a("#bti-advanced");b.$facetHintText=a("#bti-facet-hint-text");b.$facetHint=a("#bti-search-facet-hint");b.$emptyFacetTerms=a(".bti-empty-facet").hide();b.$sortHeaders=a(".bti-sort");b.$sort=a("#bti-search-sort");b.$view=a("#bti-search-view");b.$tooltip=a("#bti-tooltip");b.$tooltipContent=
a("#bti-tooltip-content");b.$tooltipArrow=a("#bti-tooltip-arrow");b.$moreOptionsButton=a("#bti-search-more-button");a(".ui-bti-search-button,.ui-bti-search-button-small").hover(function(){a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")});a(".bti-popout-close-button").hover(function(){a(this).toggleClass("ui-state-hover")});o();b.$tabs.bind("tabsselect",function(){a(".bti-facet-group").show();a("#bti-key").show()});b.$moreOptionsButton.click(function(c){q(true);
i();c.preventDefault()});b.$keywords=a("#bti-search-keywords");b.$location=a("#bti-search-location");b.$age=a("#bti-search-age");b.$minSalary=a("#bti-search-min-salary");b.$salaryOpen=a("#bti-search-salary-open");b.$nostem=a("#bti-search-nostem");b.$titlesOnly=a("#bti-search-titles-only");b.$telecommute=a("#bti-search-telecommute");b.$special=a("#bti-search-special");b.$events=a("input[name='event_id']");b.$customFilter=a("#bti-search-customfilter");b.$resultsPerPage=a("#bti-search-rpp");b.$events.length>
0&&t();b.$location.mouseenter(function(){var c=a(this);a.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(){a(this);a.btip.off()});var d=b.$searchButton.offset().left+b.$searchButton.outerWidth(),e=b.$age.offset().left+b.$age.outerWidth();b.$keywords.width(b.$keywords.width()+(d-e)+2);if(typeof btiConfig!=="undefined"){l(btiConfig.criteria);I(btiConfig)}J();a("#bti-search-clear-filters").click(function(c){E();
g(1);c.preventDefault()});b.$tabs.delegate(".bti-facet-term","click",function(c){K(a(this),true);b.formDirty=true;c.preventDefault()}).delegate(".bti-facet-all-button","click",function(c){var f=false;a(".bti-filter",a("#"+a(this).attr("facet"))).each(function(){M(a(this));f=true});if(f){F();g(1)}c.preventDefault()}).delegate("#bti-show-empty","click",function(c){var f=a(this),j=a("#bti-show-empty-verb");if(f.text()==="Show"){f.text("Hide");j.text("Showing");b.$emptyFacetTerms.show()}else{f.text("Show");
j.text("Hiding");b.$emptyFacetTerms.hide()}c.preventDefault()});a("#bti-search-keywords, #bti-search-location").bind("blur change",function(){var c=a(this),f=c.attr("title"),j=c.val();if(j===""||j===f){c.attr("maxlength",1E3);c.val(f);c.addClass("bti-disabled")}else{c.attr("maxlength",c.attr("charlimit"));c.removeClass("bti-disabled")}}).bind("focus",function(c){c=a(c.currentTarget);c.hasClass("bti-disabled")?c.val("").removeClass("bti-disabled"):c.select()}).change().keyup(function(c){var f=a(this);
f.attr("maxlength",f.attr("charlimit"));if(c.keyCode===13){g(1,false);b.$autocomplete.autocomplete("close");c.preventDefault()}}).change(function(){var c=a(this),f=c.attr("title");c=c.val();c!==""&&c!==f&&b.$sort.val("")});b.$searchButton.click(function(c){g(1,false);c.preventDefault();return false});b.$autocomplete=a("#bti-search-keywords").autocomplete({source:b.urls.autocomplete,minLength:2});b.$saveDialog=a("#bti-save-dialog").popout({triggers:a("#bti-search-save"),anchor:a("#bti-toolbar-bottom"),
side:"left",onShow:function(){a("#bti-save-name").focus()}});a("#bti-load-dialog").delegate(".bti-load-agent","click",function(c){p(a(this).attr("data"));g(1);a("#bti-load-dialog").hide();c.preventDefault()}).delegate(".bti-delete-agent","click",function(c){var f=a(this);if(confirm("Are you sure you want to permanently delete this saved search?")){a.ajaxQueue({key:"deleteSavedSearch",url:b.urls.save,data:{action:"delete",agent_id:f.attr("id")},success:function(j){b.$loadDialog.find("div").eq(1).html(j.output);
b.$loadDialog.popout("show")},error:function(){alert("There was a problem deleting your saved search.  Please try again.")}});c.preventDefault()}});b.$loadDialog=a("#bti-load-dialog").popout({triggers:a("#bti-search-load"),anchor:a("#bti-toolbar-bottom"),side:"left"});a("#bti-search-reset").click(function(c){if(confirm("Are you sure you want to clear all of your search criteria?")){a(this).trigger("resetButtonClick");s();g(1)}c.preventDefault()});a("#bti-save-go").click(function(){z()});b.$results.delegate(".bti-search-next, .bti-search-prev, .bti-search-page",
"click",function(c){g(a(this).attr("page"),true);c.preventDefault()}).delegate(".bti-detail-link","click",function(c){clearTimeout(a.btip.eventHandle);a.btip.closeActive();typeof a.btip.eventHandle!="undefined"&&clearTimeout(a.btip.eventHandle);B(a(this).attr("job"));c.preventDefault()}).delegate("#bti-search-facet-hint a","click",function(c){q(true);b.$tabs.tabs("select",a(this).attr("facetgroup"));i();c.preventDefault()}).delegate(".bti-close-more-box","hover",function(){a(this).toggleClass("ui-state-hover")}).delegate(".bti-popout-close-button",
"hover",function(){a(this).toggleClass("ui-state-hover")}).delegate(".bti-more-link","click",function(c){c.preventDefault();c=a("#bti-more-"+a(this).attr("job"));if(typeof b.currentMoreSection==="undefined"){c.slideDown();b.currentMoreSection=c}else if(b.currentMoreSection.attr("id")===c.attr("id")){c.slideUp();b.currentMoreSection=undefined}else{b.currentMoreSection.slideUp();c.slideDown();b.currentMoreSection=c}}).delegate(".bti-close-more-box","click",function(c){var f="#bti-more-"+a(this).attr("job");
a(f).slideUp("slow");b.currentMoreSection=undefined;c.preventDefault()}).delegate(".bti-detail-link-indeed","mousedown",function(c){var f=a(this);f.attr("href",f.attr("hrefurl"));c.preventDefault()}).delegate("#bti-results-clear-filter","click",function(c){E();g(1);c.preventDefault()}).delegate("#bti-results-reset","click",function(c){s();b.$keywords.focus();g(1);c.preventDefault()}).delegate("#bti-results-save","click",function(c){a("#bti-search-save").click();c.preventDefault();c.stopPropagation()}).delegate(".bti-deeplink",
"click",function(c){var f=a(this).attr("format");f="http://"+location.host+"/jobs?"+u()+"&display="+f;f=f.replace(/showFacets=[^&]*&*/,"");f=f.replace(/selectedTab=[^&]*&*/,"");location.href=f;c.preventDefault()}).delegate(".bti-sort","click",function(c){var f=a(this).attr("sort").split(" "),j=f[0];f=f.length===1?"asc":f[1];if(j==="distance")b.$sort.val("");else if(j==="relevance")b.$sort.val("");else{if(j===b.sortField)f=b.sortOrder==="desc"?"asc":"desc";b.$sort.val(j+" "+f)}g(1,true);c.preventDefault()}).delegate(".bti-view-mode",
"click",function(c){var f=a(this).attr("mode");b.$view.val(f);g(1,true);c.preventDefault()}).delegate(".bti-featured-employer","click",function(){document.location=a(this).attr("location")}).delegate("#bti-rss-icon","mouseenter",function(){var c=a(this);a.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(){a(this);a.btip.off()}).delegate("#bti-link-icon",
"mouseenter",function(){var c=a(this);a.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(){a(this);a.btip.off()}).delegate("#bti-xml-icon","mouseenter",function(){var c=a(this);a.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(){a(this);a.btip.off()}).delegate("#bti-linkedin-hover-icon","mouseenter",function(){var c=a(this);a.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(){a.btip.off()}).delegate("#bti-linkedin-hover-icon","click",function(c){a.btip.off();c.preventDefault()}).delegate("#bti-linkedin-click-icon",
"mouseenter",function(){var c=a(this);a.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(){a(this);a.btip.off()}).delegate("#bti-linkedin-click-icon","click",function(c){a(this);a.btip.off();c.preventDefault()}).delegate(".linkedin,.linkedin-hover","click",function(c){var f=a(this);a.btip.toggle(f,
{content:'<iframe id="li-frame" width="220" height="250" scrolling="no" frameborder="no" src="http://www.linkedin.com/companyInsider?data&companyName='+encodeURIComponent(f.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=a(this);a.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(){a.btip.off({offDelay:500})}).delegate(".bti-detail-link-tip","mouseenter",function(){var c=a(this);a.btip.on(c,{ajaxURL:"/searchv3/ajax/jobdetailtip.cfm?jobid="+c.attr("job"),onDelay:300,width:350})}).delegate(".bti-detail-link-tip",
"mouseleave",function(){a(this);a.btip.off({offDelay:500})}).delegate(".bti-save-job","click",function(c){k(this);c.preventDefault()});a("body").delegate("#bti-jobdesc-link","click",function(){a.btip.$activeTarget.click();a.btip.closeActive()});b.$main.delegate(".bti-emp-jobs","click",function(c){var f=a(this);s();b.$keywords.val('employer:"'+f.attr("employer")+'"').blur();g(1);c.preventDefault()});b.$detail.delegate(".bti-detail-prev, .bti-detail-next","click",function(c){var f=a(this);b.navDirection=
f.hasClass("bti-detail-next")?1:-1;f=b.currentJob+b.navDirection;if(f>=0&&f<b.jobIDs.length){B(b.jobIDs[f]);b.navDirection=0}else{f=b.page+b.navDirection;if(f>=1&&f<=b.totalPages)g(f,true);else{alert("There are no more jobs.");b.navDirection=0}}c.preventDefault()}).delegate("#bti-detail-link-icon","mouseenter",function(){var c=a(this);a.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(){a(this);a.btip.off()}).delegate(".bti-detail-back","click",function(c){if(b.$detail.is(":visible")){b.$results.show();b.$detail.hide()}g(b.page,true);c.preventDefault()}).delegate("#addThis","mouseover",function(){var c=a("#addThisData");return addthis_open(this,"",c.attr("snLink"),c.attr("snTitle"))}).delegate(".bti-save-job","click",function(c){k(this);c.preventDefault()});i()}});a.address.externalChange(function(d){if(d.pathNames[0]==="results")if(b.$detail.is(":visible")){b.$results.show();
b.$detail.hide()}});a.address.change(function(d){if(d.pathNames[0]==="detail")P(d.pathNames[1]);else if(d.pathNames[0]==="results"||d.pathNames.length<1){var e=d.pathNames.length>2?d.pathNames[2].split(","):[1,false],c=parseInt(e[0]);e=e[1];d=d.pathNames.length>1?d.pathNames[1]:"";if(b.$detail.is(":visible")&&!e){b.$results.show();b.$detail.hide()}if(b.lastSearchString!==d||parseInt(b.page)!==c){p(d);m(c,e);b.lastSearchString=d}}})})(jQuery);