var $j=jQuery.noConflict();var tabs=function(){var currentTabId=null;var defaultTabId="SelectSearch";return{init:function(){$j("#SearchBar div.searchType").hide();if(currentTabId==null){if($j.url.param("s")==undefined){
currentTabId=defaultTabId;}else{try{currentTabId=$j.url.param("s");
}catch(err){}if($(currentTabId)==null){currentTabId=defaultTabId;}}}$j("#"+currentTabId).show({duration:200,complete:function(){if($("ResultCountHeader")!=null){$j.scrollTo("#ResultCountHeader",200);}}});$j("#"+currentTabId+"Tab a").addClass("active");$j("#"+currentTabId+"Instruction").show();},selectOne:function(tab,targetId){if(targetId==currentTabId){return;}if(typeahead && typeahead.closeContext){typeahead.closeContext();}$j("#dump").html("");$j("#InstructionBlock").show();$j("#"+currentTabId+"Tab a").removeClass("active");$j("#"+currentTabId+"Instruction").hide();if(document.all){$j("#"+currentTabId).slideUp({duration:300,complete:function(){$j("#"+targetId).slideDown({duration:300,complete:function(){if(typeahead && typeahead.setTopPosition){typeahead.setTopPosition();}}});}});}else{if(currentTabId.toLowerCase()=="geographysearch")
{var swf=document.getElementById("Main");
if(swf && swf.callkillSharedObject){swf.callkillSharedObject();}}
$j("#"+currentTabId).slideUp({duration:200,complete:function(){$j("#"+targetId).slideDown({duration:300,easing:'easeOutBack',complete:function(){if(typeahead && typeahead.setTopPosition){typeahead.setTopPosition();}}});}});}$j("#"+targetId+"Tab a").addClass("active");$j("#"+targetId+"Instruction").show();currentTabId=targetId;}}}();var jobpost=function(){var currentOpen=null;var currentApply=null;return{applyWarn:function(jobpostId){sendToAFriend.closePanel(jobpostId);var panel=null;if($("ApplyWindowInner")!=null){panel=$("ApplyWindowInner");}else{panel=$("ApplyWindowInner_"+jobpostId);}if(panel==null){return;}if(currentApply !=null && $("ApplyWindowInner")==null){var temp=currentApply;$j("#ApplyWindowInner_"+jobpostId).slideUp();}currentApply=jobpostId;$j(panel).slideDown();},applyWarnDistributed:function(jobpostId){$j.ajax({type:"POST",url:"/ajaxpro/HealthCommLLC.com.rightjobonline.hca.JobSearch,HealthCommLLC.com.rightjobonline.hca.ashx",data:'{"jobpostId":"'+jobpostId+'"}',contentType:"application/json;charset=utf-8",dataType:"json",global:false,timeout:1000*60,beforeSend:function(xhr){xhr.setRequestHeader("X-AjaxPro-Method","GetApplyPanel");},success:function(response,textStatus){$j("#ApplyWindow_"+jobpostId).html(response.value);jobpost.applyWarn(jobpostId);},error:function(xhr,textStatus,exceptionObj){},complete:function(xhr,textStatus){}});jobpost.applyWarn(jobpostId);},applyCancel:function(jobpostId){var panel=null;if($("ApplyWindowInner")!=null){panel=$("ApplyWindowInner");}else{panel=$("ApplyWindowInner_"+jobpostId);}if(currentApply !=null && panel !=null){$j(panel).slideUp();currentApply=null;}},apply:function(jobpostId,jobdetailReferralId){$j.ajax({type:"POST",url:"/ajaxpro/HealthCommLLC.com.rightjobonline.hca.JobSearch,HealthCommLLC.com.rightjobonline.hca.ashx",data:'{"jobpostId":"'+jobpostId+'","jobdetailReferralId":"'+jobdetailReferralId+'"}',contentType:"application/json;charset=utf-8",dataType:"json",global:false,timeout:1000*60,beforeSend:function(xhr){xhr.setRequestHeader("X-AjaxPro-Method","IncrementApplyCount");},success:function(response,textStatus){},error:function(xhr,textStatus,exceptionObj){alert("Error applying :"+exceptionObj.Message);},complete:function(xhr,textStatus){}});if(currentApply !=null){if($("ApplyWindowInner")!=null){panel=$("ApplyWindowInner");}else{panel=$("ApplyWindowInner_"+jobpostId);}if(panel==null){return;}$j(panel).slideUp();currentApply=null;}},readMore:function(jobpostId,isInadequate){var closedHeight=15;var unitOfMeasure="em";var openHeight=$("JobContent_"+jobpostId).getHeight();isInadequate=(isInadequate==null || isInadequate==undefined)? true :isInadequate;var scrollDuration=isInadequate ? 0 :800;var contentTruncateDuration=isInadequate ? 0 :100;var contentFullDuration=isInadequate ? 0 :200;if(jobpostId==currentOpen){$j("#JobContentTruncated_"+jobpostId).show(contentTruncateDuration);$j("#JobContent_"+jobpostId).animate({height:"toggle"},{duration:contentFullDuration,complete:function(){if(scrollDuration==0){$j.scrollTo("#JobSpecificTitle_"+jobpostId);}else{$j.scrollTo("#JobSpecificTitle_"+jobpostId,scrollDuration,{easing:'easeOutBack'});}$j("#ReadMoreText_"+jobpostId).html("read more...");}});currentOpen=null;return;}if(currentOpen !=null){$j("#JobContentTruncated_"+currentOpen).show(contentTruncateDuration);$j("#JobContent_"+currentOpen).animate({height:"toggle"},{duration:contentFullDuration,complete :function(){$j("#ReadMoreText_"+currentOpen).html("read more...");$j("#JobContentTruncated_"+jobpostId).hide(contentTruncateDuration);$j("#JobContent_"+jobpostId).animate({height:"toggle"},{duration:0,complete:function(){if(scrollDuration==0){$j.scrollTo("#JobSpecificTitle_"+jobpostId);}else{$j.scrollTo("#JobSpecificTitle_"+jobpostId,scrollDuration,{easing:'easeOutBack'});}currentOpen=jobpostId;$j("#ReadMoreText_"+currentOpen).html("close");}});}});return;}$j("#JobContentTruncated_"+jobpostId).hide(contentTruncateDuration);$j("#JobContent_"+jobpostId).animate({height:"toggle"},{duration:contentFullDuration,complete:function(){if(scrollDuration==0){$j.scrollTo("#JobSpecificTitle_"+jobpostId);}else{$j.scrollTo("#JobSpecificTitle_"+jobpostId,scrollDuration,{easing:'easeOutBack'});}currentOpen=jobpostId;$j("#ReadMoreText_"+jobpostId).html("close");}});},openSendToAFriend:function(jobpostId){jobpost.applyCancel(jobpostId);$j("#SendToAFriendTarget_"+jobpostId).html("Opening...");$j.ajax({type:"POST",url:"/ajaxpro/HealthCommLLC.com.rightjobonline.hca.JobSearch,HealthCommLLC.com.rightjobonline.hca.ashx",data:'{"jobpostId":"'+jobpostId+'"}',contentType:"application/json;charset=utf-8",dataType:"json",global:false,timeout:1000*60,beforeSend:function(xhr){xhr.setRequestHeader("X-AjaxPro-Method","GetSendToAFriendForm");},success:function(response,textStatus){$j("#SendToAFriendTarget_"+jobpostId).html(response.value);},error:function(xhr,textStatus,exceptionObj){},complete:function(xhr,textStatus){}});},isLoggedIn:function(){var isLogged=false;$j.ajax({type:"POST",url:"/ajaxpro/HealthCommLLC.com.rightjobonline.hca.JobSearch,HealthCommLLC.com.rightjobonline.hca.ashx",data:'',contentType:"application/json;charset=utf-8",dataType:"json",global:false,timeout:1000*60,async:false,beforeSend:function(xhr){xhr.setRequestHeader("X-AjaxPro-Method","IsLoggedIn");},success:function(response,textStatus){isLogged=response.value;},error:function(xhr,textStatus,exceptionObj){alert("error determining your status :"+exceptionObj.Message);},complete:function(xhr,textStatus){}});return isLogged;}};}();var sendToAFriend=function(){var successColor="#cfd9e6";var errorColor="#fbcb8e";var verifyColor="#669966";return{closePanel:function(jobpostId){$j("#SendToAFriendTarget_"+jobpostId).html("");},submitForm:function(jobpostId){var firstName=$("FriendFirstName_"+jobpostId);var lastName=$("FriendLastName_"+jobpostId);var emailAddress=$("FriendEmailAddress_"+jobpostId);var message=$("FriendMessage_"+jobpostId);$j.ajax({type:"POST",url:"/ajaxpro/HealthCommLLC.com.rightjobonline.hca.JobSearch,HealthCommLLC.com.rightjobonline.hca.ashx",data:'{"jobpostId":"'+jobpostId+'","firstName":"'+firstName.value+'","lastName":"'+lastName.value+'","emailAddress":"'+emailAddress.value+'","message":"'+message.value+'"}',contentType:"application/json;charset=utf-8",dataType:"json",global:false,timeout:1000*60,beforeSend:function(xhr){xhr.setRequestHeader("X-AjaxPro-Method","SendToAFriend");},success:function(response,textStatus){$j("#SendToAFriendTarget_"+jobpostId).html("<div class=\"stfMailSuccess\">Thank you,your message has been sent.</div>");},error:function(xhr,textStatus,exceptionObj){$j("#SendToAFriendTarget_"+jobpostId).html("error ::"+exceptionObj.Message);},complete:function(xhr,textStatus){}});},validate:function(jobpostId){var firstName=$("FriendFirstName_"+jobpostId);var lasstName=$("FriendLastName_"+jobpostId);var emailAddress=$("FriendEmailAddress_"+jobpostId);var errorCount=0;errorCount+=sendToAFriend.hasValue(firstName);errorCount+=sendToAFriend.hasValue(lasstName);errorCount+=sendToAFriend.hasValue(emailAddress);if(errorCount==0){sendToAFriend.submitForm(jobpostId);}},login:function(jobpostId){var username=$("Username_"+jobpostId);var password=$("Password_"+jobpostId);var errorCount=0;errorCount+=sendToAFriend.hasValue(username);errorCount+=sendToAFriend.hasValue(password);if(errorCount > 0){return;}var isLoggedIn=false;var errorMessage=null;$j.ajax({type:"POST",url:"/ajaxpro/HealthCommLLC.com.rightjobonline.hca.Login,HealthCommLLC.com.rightjobonline.hca.ashx",data:'{"username":"'+username.value+'","password":"'+password.value+'"}',contentType:"application/json;charset=utf-8",dataType:"json",global:false,timeout:1000*60,async:false,beforeSend:function(xhr){xhr.setRequestHeader("X-AjaxPro-Method","SignIn");},success:function(response,textStatus){if(typeof(response.error)=="object"){isLoggedIn=false;errorMessage=response.error.Message;}else{isLoggedIn=true;}},error:function(xhr,textStatus,exceptionObj){},complete:function(xhr,textStatus){}});if(isLoggedIn){sendToAFriend.closePanel(jobpostId);jobpost.openSendToAFriend(jobpostId);}else{$j("#LoginResponse_"+jobpostId).html(errorMessage);}},signup:function(jobpostId){var FirstName=$("FirstName_"+jobpostId);var LastName=$("LastName_"+jobpostId);var EmailAddress=$("EmailAddress_"+jobpostId);var errorCount=0;errorCount+=sendToAFriend.hasValue(FirstName);errorCount+=sendToAFriend.hasValue(LastName);errorCount+=sendToAFriend.hasValue(EmailAddress);if(errorCount > 0){return;}$j.ajax({type:"POST",url:"/ajaxpro/HealthCommLLC.com.rightjobonline.hca.CreateAccount,HealthCommLLC.com.rightjobonline.hca.ashx",data:'{"firstName":"'+FirstName.value+'","lastName":"'+LastName.value+'","emailAddress":"'+EmailAddress.value+'"}',contentType:"application/json;charset=utf-8",dataType:"json",global:false,timeout:1000*60,async:false,beforeSend:function(xhr){xhr.setRequestHeader("X-AjaxPro-Method","SignUp");},success:function(response,textStatus){if(typeof(response.error)=="object"){$j("#SignupResponse_"+jobpostId).html("Error signing up :"+response.error.Message);}else{$j("#SignupResponse_"+jobpostId).html(response.value+"<br /><br />Once you have received the email and activated your account,<a href=\"\" onclick=\"sendToAFriend.signupVerified("+jobpostId+");return false;\">please click here</a>.");}},error:function(xhr,textStatus,exceptionObj){alert("error determining your status :"+exceptionObj.Message);},complete:function(xhr,textStatus){}});},signupVerified:function(jobpostId){jobpost.openSendToAFriend(jobpostId);},canUseEmail:function(obj,jobpostId){if(obj.value.length==0){return;}var val=obj.value;$j(obj).css({"background-color":verifyColor});$(obj).value="Verifying...";$j.ajax({type:"POST",url:"/ajaxpro/HealthCommLLC.com.rightjobonline.hca.CreateAccount,HealthCommLLC.com.rightjobonline.hca.ashx",data:'{"address":"'+val+'"}',contentType:"application/json;charset=utf-8",dataType:"json",global:false,timeout:1000*60,async:false,beforeSend:function(xhr){xhr.setRequestHeader("X-AjaxPro-Method","CanUseEmail");},success:function(response,textStatus){if(typeof(response.error)=="object"){$j(obj).css({"background-color":errorColor});$(obj).value="";$j("#SignupResponse_"+jobpostId).html("That does not appear to be a valid email address.");}else{if(response.value.IsOk==true){$j(obj).css({"background-color":successColor});$(obj).value=response.value.Input;$j("#SignupResponse_"+jobpostId).html("");}else{$j(obj).css({"background-color":errorColor});$(obj).value="";if(response.value.Message=="That address is currently in use."){$j("#SignupResponse_"+jobpostId).html(response.value.Message);}else{$j("#SignupResponse_"+jobpostId).html("That does not appear to be a valid email address.");}}}},error:function(xhr,textStatus,exceptionObj){},complete:function(xhr,textStatus){}});},hasValue:function(obj){if(obj.value==""){$j(obj).css({"background-color":errorColor});return 1;}$j(obj).css({"background-color":successColor});return 0;}};}();var jobReferral=function(){return{saveJob:function(jobpostId,btn){$j.ajax({type:"POST",url:"/ajaxpro/HealthCommLLC.com.rightjobonline.hca.JobSearchCampus,HealthCommLLC.com.rightjobonline.hca.ashx",data:'{"jobpostId":"'+jobpostId+'"}',contentType:"application/json;charset=utf-8",dataType:"json",global:false,timeout:1000*60,beforeSend:function(xhr){xhr.setRequestHeader("X-AjaxPro-Method","SaveReferralJob");},success:function(response,textStatus){$j(btn).css("background-position","0 -58px");},error:function(xhr,textStatus,exceptionObj){alert("Error saving job.\n\n"+exceptionObj.Message+"\n\nRemove this alert and put in some nicer UI feedback");},complete:function(xhr,textStatus){}});},saveJobReturn:function(jobpostId,returnUrl,btn){if(returnUrl==null || returnUrl==""){alert("derp derp bad return url");return;}$j.ajax({type:"POST",url:"/ajaxpro/HealthCommLLC.com.rightjobonline.hca.JobSearchCampus,HealthCommLLC.com.rightjobonline.hca.ashx",data:'{"jobpostId":"'+jobpostId+'"}',contentType:"application/json;charset=utf-8",dataType:"json",global:false,timeout:1000*60,beforeSend:function(xhr){xhr.setRequestHeader("X-AjaxPro-Method","SaveReferralJob");},success:function(response,textStatus){location.href=returnUrl;},error:function(xhr,textStatus,exceptionObj){alert("Error saving job.\n\n"+exceptionObj.Message+"\n\nRemove this alert and put in some nicer UI feedback");},complete:function(xhr,textStatus){}});}}}();var jobsearch=function(){var rssSaved=false;return{saveRss:function(obj){if(rssSaved){return;}$j("#RssTarget").html("Saving...");$j.ajax({type:"POST",url:"/ajaxpro/HealthCommLLC.com.rightjobonline.hca.JobSearch,HealthCommLLC.com.rightjobonline.hca.ashx",data:'',contentType:"application/json;charset=utf-8",dataType:"json",global:false,timeout:1000*60,beforeSend:function(xhr){xhr.setRequestHeader("X-AjaxPro-Method","SaveRssFeed");},success:function(response,textStatus){$j("#RssTarget").html("<a href=\"/"+response.value+".rss\">View this RSS feed</a>");rssSaved=true;},error:function(xhr,textStatus,exceptionObj){$j("#RssTarget").html("Error saving RSS");},complete:function(xhr,textStatus){}});},saveJob:function(obj,jobpostId){$j(obj).html("Saving....");$j.ajax({type:"POST",url:"/ajaxpro/HealthCommLLC.com.rightjobonline.hca.JobSearch,HealthCommLLC.com.rightjobonline.hca.ashx",data:'{"jobpostId":"'+jobpostId+'"}',contentType:"application/json;charset=utf-8",dataType:"json",global:false,timeout:1000*60,beforeSend:function(xhr){xhr.setRequestHeader("X-AjaxPro-Method","SaveJobPost");},success:function(response,textStatus){if(response.value=="Saved"){$j(obj).html("Saved");$j(obj).addClass("saved");sendToAFriend.closePanel();$j("#SendToAFriendTarget_"+jobpostId).html("<div class=\"signupToSave\">Thank you,this job has been saved.</div>");setTimeout("sendToAFriend.closePanel("+jobpostId+")",4000);}else{jobsearch.saveJobSignup(jobpostId);}},error:function(xhr,textStatus,exceptionObj){},complete:function(xhr,textStatus){}});},saveJobSignup:function(jobpostId){sendToAFriend.closePanel();$j("#SendToAFriendTarget_"+jobpostId).html("<div class=\"signupToSave\"><h4>Like This Job?</h4> <p>To save a job you must log in or sign up. Creating an account is easy and simple. <a href=\"/CreateAccount.aspx\">Sign up now!</a></p></div>");setTimeout("sendToAFriend.closePanel("+jobpostId+")",5000);},saveJobSignupClear:function(jobpostId){}};}();var $j=jQuery.noConflict();var lb=function(){var isOpen=false;var doResize=true;var LBBackPanel=null;var LBInnerPanel=null;var locID=null;return{init:function(){if($("LBBackPanel")==null || $("LBInnerPanel")==null){return;}LBBackPanel=$("LBBackPanel");LBInnerPanel=$("LBInnerPanel");LBBackPanel.observe("click",lb.closePanel);$j(".FacilityLocatorButton").live("click",function(){lb.display();return false;});lb.setSize();Event.observe(window,"resize",lb.hasResized);lb.getLocID();},getLocID:function(){var flashvars={};if($("locID")!=null){flashvars.locID=$("locID").value;}var params={};params.menu="false";params.scale="exactfit";params.bgcolor="#003d79";params.wmode="window";params.allowscriptaccess="always";var attributes={};attributes.id="hcaFacilityLocator";attributes.align="middle";swfobject.embedSWF("http://www.beanurseathca.com/flashapps/facilitylocatorV2/FacilityLocator.swf",
"LBInnerPanel-c","967","561",
"10.0.0","/map/RJplayerProductInstall.swf",
flashvars,params,attributes
);},hasResized:function(){doResize=true;lb.setSize();},hasScrolled:function(){doResize=true;},display:function(){if(doResize){lb.setSize();}$j(LBBackPanel).show();$j(LBInnerPanel).show();isOpen=true;},closePanel:function(){$j(LBBackPanel).hide();$j(LBInnerPanel).hide();isOpen=false;},doResize:function(){if(!doResize){}lb.setSize();},setSize:function(){var winH=$j(window).height();var winW=$j(window).width();var scrT=$j(window).scrollTop();$j(LBBackPanel).css({"height":$j(window).height()+"px","width":winW+"px"
});$j(LBInnerPanel).css({"top":(scrT+((winH - LBInnerPanel.getHeight())/2))+"px","left":((winW - LBInnerPanel.getWidth())/2)+"px"
});}}}();var loggingOut=function(){return{init:function(){$j("#LinkLogout a").bind("click",loggingOut.doIt);$j("#accountnav").append("<div id=\"LogoutMessage\">Logging out...</div>");},doIt:function(e){e.preventDefault();$j("#LogoutMessage").fadeIn(500);setTimeout("loggingOut.logout();",1000);},logout:function(){location.href=$j("#LinkLogout a").attr("href");}};}();var killSO=function(){
return{init:function(){var swf=document.getElementById("Main");
if(swf && swf.callkillSharedObject){swf.callkillSharedObject();}}};}();$j(document).ready(function(){lb.init()});Event.observe(window,"load",loggingOut.init);Event.observe(window,"unload",killSO.init);
