legacyWidgetsPopup=new Object;legacyWidgetsPopup.list=new Object;legacyWidgetsPopup.backups=new Object;legacyWidgetsPopup.filterBox=new Object;legacyWidgetsPopup.filterBox.active=false;YAHOO.util.Event.onDOMReady(function(){widgetInit()});function widgetInit(a,e){var f;if(e){f=YAHOO.util.Dom.getElementsByClassName("widget","a",a)}else{f=YAHOO.util.Dom.getElementsByClassName("widgetmain","div",a)}for(i=0;i<f.length;i++){var c=f[i].getAttribute("name");legacyWidgetsPopup.list[c]=new Object;legacyWidgetsPopup.list[c].ready=false;legacyWidgetsPopup.list[c].adjustXY={0:0,1:0};var b=document.getElementsByName(c);for(wi=0;wi<b.length;wi++){if(b[wi].tagName=="A"){legacyWidgetsPopup.list[c].link=b[wi];if(b[wi].id==""){b[wi].id=c+"--link"}b[wi].setAttribute("href","javascript:void(0);");YAHOO.util.Event.removeListener(b[wi],"click",legacyWidgetsPopup.show);YAHOO.util.Event.addListener(b[wi],"click",legacyWidgetsPopup.show)}else{if(b[wi].tagName=="DIV"){if(b[wi].id==""){b[wi].id=c+"--div"}legacyWidgetsPopup.list[c].div=b[wi]}}}}}legacyWidgetsPopup.showTooltipPopup=function(e,a,d){var c=document.getElementById(e);var b=document.getElementById(e+"Widget");if(!b&&c){var b=document.createElement("div");b.id=e+"Widget";b.className="widgetmain";b.setAttribute("close","click");b.setAttribute("xwidth","250");b.setAttribute("xmaxwidth","true");c.setAttribute("name",e+"Widget");b.style.display="none";var f='<table style="">';f+="<tbody>";f+='<tr class="topbar"><td style="">';f+='	<a href="javascript:void(widgetclose(""+linkID + "Widget"+""));" >X</a>';f+="		"+a;f+="</td></tr>";f+='<tr class="actionlist"><td style="">';f+='			<div style="padding:0px 5px;">';f+="			"+d;f+="			</div>";f+="		</td></tr></tbody></table>";b.innerHTML=f;c.parentNode.appendChild(b);legacyWidgetsPopup.show({target:c})}else{legacyWidgetsPopup.show({target:c})}};legacyWidgetsPopup.showNeedToChangeAccountDetails=function(c){var b=document.getElementById(c);var a=document.getElementById(c+"Widget");if(!a&&b){var a=document.createElement("div");a.id=c+"Widget";a.className="widgetmain";a.setAttribute("close","click");a.setAttribute("xwidth","250");a.setAttribute("xmaxwidth","true");a.style.display="none";var d='<table style="">';d+='<tbody><tr class="topbar"><td style="">';d+='	<a href="javascript:void(widgetclose(""+linkID + "Widget"+""));" >X</a>';d+="		Changing Account Details";d+="</td></tr>";d+='<tr class="actionlist"><td style="">';d+='			<div style="padding:0px 5px;">';d+='			If you need to change either the person name or company name on your account please send the information along with the reasons for the change to <a href="mailto:headhunter.changes@bountyjobs.com" style="display:inline; background-color:transparent;">headhunter.changes@bountyjobs.com</a>';d+="			</div>";d+="		</td></tr></tbody></table>";a.innerHTML=d;b.parentNode.appendChild(a)}new Popup(c,c+"Widget").popupAction()};legacyWidgetsPopup.setReview=function(m,g,c,h,p,b,l,f){if(h!="YES"&&h!="NO"&&h!="MAYBE"){setReview(g,h,p,f);return}var n=document.getElementById(m);var k=document.getElementById(m+"Widget");if(!k&&n){var k=document.createElement("div");k.id=m+"Widget";k.className="widgetmain";k.setAttribute("close","click");k.setAttribute("xwidth","450");k.setAttribute("xmaxwidth","true");k.style.display="none";var d='<table style="">';d+='<tbody><tr class="topbar"><td style="">';d+='	<a href="javascript:void(widgetclose(""+linkId + "Widget"+""));" >X</a>';d+="		Feedback for "+c+": "+p;d+="</td></tr>";d+='<tr class="actionlist"><td style="">';d+='			<div style="padding:0px 5px;">';d+="			  <form onsubmit=\"javascript:return validateReviewReason('reviewWidgetForm"+m+'\');" action="/posting/editPosting.do" method="post" id="reviewWidgetForm'+m+'" name="reviewWidgetForm'+m+'" style="margin:7px 0 0 10px;">';d+='					<input type="hidden" name="dispatch" value="saveReview"/>';d+='					<input type="hidden" name="subject" value="dummy"/>';d+='					<input type="hidden" name="review" value="'+h+'"/>';d+='					<input type="hidden" name="reviewDescription" value="'+p+'"/>';d+='					<input type="hidden" name="rejectionReason" value=""/>';d+='					<input type="hidden" name="submissionId" value="'+g+'"/>';d+='					<input type="hidden" name="finishedForward" value="'+f+'"/>';if(h=="NO"){d+='			<span class="label_lgb">Reasons:</span><br />';d+='			<div id="rejectReview-'+g+'"></div><br />'}d+='			    <span class="label_lgb">Comments:</span><br />	';d+='			    <textarea rows="6" cols="45" class="reviewWidgetComments"';d+='			    name="messageText" id="'+m+'WidgetComments" onfocus="clearOptionalComment(this);"';d+="			    >(Optional)</textarea>	        <br />&nbsp;";d+='			    <div class="miscAlignButtons">';d+='			    	<input type="submit" style="font-size:12px;" value="Send Feedback" class="submitG_w140"/>&nbsp;&nbsp;';d+='			    	<a style="background-color:white; left:138px;" href="javascript:void(widgetclose(\''+m+"Widget'));\" >Cancel</a>";d+="			    </div><br/>";d+="			  </form>";d+="			</div>";d+="		</td></tr></tbody></table>";k.innerHTML=d;n.parentNode.appendChild(k);if(h=="NO"){var a=document.getElementById("rejectDropdown-"+g);var o=document.getElementById("rejectReview-"+g);o.appendChild(a);o;var e=o.getElementsByTagName("a");if(e&&e[0]){e[0].style.paddingLeft="0px"}a.style.display=""}}else{var j=document.getElementById(m+"WidgetComments");j.value="(Optional)"}new Popup(m,m+"Widget").popupAction()};legacyWidgetsPopup.requestReviewerMousedown=function(a){};legacyWidgetsPopup.requestReviewer=function(g,d,a,f,c){var j=document.getElementById(g);var h=document.getElementById(g+"Widget");if(!h&&j){var h=document.createElement("div");h.id=g+"Widget";h.className="widgetmain";h.setAttribute("close","click");h.setAttribute("xwidth","250");h.setAttribute("xmaxwidth","true");h.style.display="none";var b='<table style="">';b+='<tbody><tr class="topbar"><td style="">';b+='	<a href="javascript:void(widgetclose(""+linkId + "Widget"+""));" >X</a>';b+="		Request Feedback";b+="</td></tr>";b+='<tr class="actionlist"><td style="">';b+='			<div style="padding:0px 5px;">';b+='			  <form action="/posting/editPosting.do" method="post" name="requestReviewerWidgetForm'+g+'" style="margin:7px 0 0 10px;">';b+='					<input type="hidden" name="dispatch" value="requestReviewer"/>';b+='					<input type="hidden" name="reviewerId" value="'+a+'"/>';b+='					<input type="hidden" name="reviewerName" value="'+f+'"/>';b+='					<input type="hidden" name="submissionId" value="'+d+'"/>';b+='					<input type="hidden" name="finishedForward" value="'+c+'"/>';b+='			    <span class="label_lgb">Additional Comments:</span>';b+='			    <textarea rows="6" cols="45" class="requestReviewerWidgetComments"';b+='			    name="messageText" id="'+g+'WidgetComments" onfocus="clearOptionalComment(this);"';b+="			    >(Optional)</textarea>	        <br />&nbsp;";b+='			    <div class="miscAlignButtons">';b+='			    	<input id="requestFeedbackButton'+g+'" onclick="javascript:var ele=document.getElementById(\'requestFeedbackButton'+g+"'); if(!ele.disabled){BJUtil.disable(ele);ele.disabled=true; widgetclose('"+g+"Widget'); this.form.submit(); return true;} else { return false;}\"";b+='			    		type="submit" style="font-size:12px;" value="Request Feedback" class="submitG_w140"/>&nbsp;&nbsp;';b+='			    	<a style="left:138px;background-color:white; " href="javascript:void(widgetclose(\''+g+"Widget'));\" >Cancel</a>";b+="			    </div><br/>";b+="			  </form>";b+="			</div>";b+="		</td></tr></tbody></table>";h.innerHTML=b;j.parentNode.appendChild(h)}else{var e=document.getElementById(g+"WidgetComments");e.value="(Optional)"}new Popup(g,g+"Widget").popupAction()};legacyWidgetsPopup.remindReviewer=function(l,h,c,a,k,g,f){var m=document.getElementById(l);var j=document.getElementById(l+"Widget");var d="Please log on to your BountyJobs account at www.bountyjobs.com in order to review the candidate's resume and provide your feedback.";if(!j&&m){var j=document.createElement("div");j.id=l+"Widget";j.className="widgetmain";j.setAttribute("close","click");j.setAttribute("xwidth","450");j.setAttribute("xmaxwidth","true");j.style.display="none";var e='<table style="">';e+='<tbody><tr class="topbar"><td style="">';e+='	<a href="javascript:void(widgetclose(""+linkId + "Widget"+""));" >X</a>';e+="		Remind Reviewer";e+="</td></tr>";e+='<tr class="actionlist"><td style="">';e+='			<div style="padding:0px 5px;">';e+='			  <form action="/posting/editPosting.do" method="post" name="remindReviewerWidgetForm'+l+'" style="margin:7px 0 0 10px;">';e+='					<input type="hidden" name="dispatch" value="remindReviewer"/>';e+='					<input type="hidden" name="reviewerId" value="'+a+'"/>';e+='					<input type="hidden" name="reviewerName" value="'+k+'"/>';e+='					<input type="hidden" name="submissionId" value="'+h+'"/>';e+='					<input type="hidden" name="finishedForward" value="'+f+'"/>';e+='			    <span class="label_lgb">Subject:</span>';e+='			    <textarea rows="2" cols="45" class="remindReviewerWidgetSubject"';e+='			    name="messageSubject" id="'+l+'WidgetSubject" ';e+="			    >Awaiting feedback about "+c+" for "+g+"</textarea>	        <br />&nbsp;";e+='			    <br /><span class="label_lgb">Message:</span>';e+='			    <textarea rows="6" cols="45" class="remindReviewerWidgetComments"';e+='			    name="messageText" id="'+l+'WidgetComments"';e+="			    >"+d+"</textarea>	        <br />&nbsp;";e+='			    <div class="miscAlignButtons">';e+='			    	<input type="submit" style="font-size:12px;" value="Send Reminder" class="submitG_w120"/>&nbsp;&nbsp;';e+='			    	<a style="left:118px;background-color:white;" href="javascript:void(widgetclose(\''+l+"Widget'));\" >Cancel</a>";e+="			    </div><br/>";e+="			  </form>";e+="			</div>";e+="		</td></tr></tbody></table>";j.innerHTML=e;m.parentNode.appendChild(j)}else{}new Popup(l,l+"Widget").popupAction();var b=document.getElementById(l+"WidgetComments");if(b.value==d){b.value="\n\n\n"+b.value}};legacyWidgetsPopup.showCompanyDescriptorHelp=function(c){var b=document.getElementById(c);var a=document.getElementById(c+"Widget");if(!a&&b){var a=document.createElement("div");a.id=c+"Widget";a.className="discountTypePopup";a.style.display="none";var d='<div style="margin:7px 7px 7px 0px;">';d+="The Short Description is shown in lieu of your company's name when a recruiter has never been engaged to any of your posted bounties.";d+="</div>";a.innerHTML=d;b.parentNode.appendChild(a)}new Popup(c,c+"Widget").popupAction()};legacyWidgetsPopup.resize=function(f,k){var j=legacyWidgetsPopup.list[f].div;var n=legacyWidgetsPopup.list[f].link;var h=YAHOO.util.Dom.getElementsByClassName("pWidget4_Title","div",j)[0];var b=YAHOO.util.Dom.getElementsByClassName("pWidget4_Top","div",j)[0];var o=YAHOO.util.Dom.getElementsByClassName("pWidget4_Close","div",j)[0];var g=YAHOO.util.Dom.getElementsByClassName("pWidget4_Content","div",j)[0];var e=YAHOO.util.Dom.getElementsByClassName("pWidget4_Box","div",j)[0];var a=(h.offsetWidth+o.offsetWidth)+"px";if(typeof b.style.minWidth!="undefined"){b.style.minWidth=a}else{o.style.cssFloat="none";o.style.styleFloat="none";b.style.width=a}var m={0:12,1:5};var d=n.getAttribute("aligned");var c=n.getAttribute("positioned");if(d=="right"){}if(c=="bottom"){}type="legacyWidget";if(YAHOO.util.Dom.hasClass(j,"tooltipWidget")||YAHOO.util.Dom.hasClass(n,"tooltipWidgetLink")){type="tooltip"}widgetPopup(n.id,j.id,type,m,d);if(parseInt(j.style.width)>900){}if(typeof b.style.minWidth=="undefined"){if(g.offsetWidth>b.offsetWidth){b.style.width=g.offsetWidth+"px"}}if(Bounty.widgets.widget[j.id].getOption("hasShadow")){Bounty.widgets.shadow.update(j);if(YAHOO.env.ua.ie>=7){setTimeout("Bounty.widgets.shadow.update('"+j.id+"')",50)}}if(a=="0px"&&!k){setTimeout("legacyWidgetsPopup.resize('"+f+"',true)",5)}if((e.offsetWidth-2)>b.offsetWidth){b.style.width=(e.offsetWidth-2)+"px"}if(g){var l=g.getElementsByTagName("table");if(l&&l[0]){l[0].style.width="100%"}}};legacyWidgetsPopup.show=function(c){if(!c){var c=window.event}var d;if(typeof c=="string"){d=document.getElementById(c)}else{d=c.target?c.target:c.srcElement}if(d.tagName!="A"&&d.parentNode.tagName=="A"){d=d.parentNode}if(d){var b=d.getAttribute("name");if(!b||b==""){b=d.id}if(typeof legacyWidgetsPopup.list[b]=="undefined"){legacyWidgetsPopup.list[b]=new Object;legacyWidgetsPopup.list[b].link=d;legacyWidgetsPopup.list[b].div=document.getElementById(b)}else{if(typeof legacyWidgetsPopup.list[b].link.id!="undefined"&&typeof d.id!="undefined"&&d.id!=legacyWidgetsPopup.list[b].link.id){legacyWidgetsPopup.list[b].link=d}}var a=legacyWidgetsPopup.list[b].div;if(!legacyWidgetsPopup.list[b].ready){a=legacyWidgetsPopup.prepare(b)}legacyWidgetsPopup.list[b].lastTime=new Date().getTime();legacyWidgetsPopup.resize(b)}};legacyWidgetsPopup.prepare=function(e){var y=legacyWidgetsPopup.list[e].div;var m=legacyWidgetsPopup.list[e].link;var a="";if(typeof m!="undefined"&&m&&m.childNodes&&typeof m.childNodes[0]!="undefined"&&typeof m.childNodes[0].nodeValue!="undefined"){a=((m.childNodes[0].nodeValue))}if(typeof legacyWidgetsPopup.list[e].div=="undefined"){}if(typeof y.id=="undefined"||y.id==""){y.id="LegacyWidgetPopup-"+e}if(typeof m.id=="undefined"||m.id==""){m.id="LegacyWidgetButton-"+e}if(y.getAttribute("isSetup")=="true"){legacyWidgetsPopup.list[e].ready=true;y.style.visibility="visible";return y}else{if(typeof y.outerHTML=="string"){legacyWidgetsPopup.backups[e]=String(y.outerHTML)}else{var k=y.parentNode;var d=document.createElement(k.tagName);d.appendChild(y);legacyWidgetsPopup.backups[e]=String(d.innerHTML);k.appendChild(y);if(typeof d.parentNode!="undefined"&&d.parentNode){d.parentNode.removeChild(d)}}}canHaveChildren=true;if(a&&typeof a=="string"){if(a.indexOf("Take Action")>-1){canHaveChildren=false}}else{a=""}Bounty.widgets.widget[y.id]=new Bounty.widgets.widgetTemplate(y.id);Bounty.widgets.widget[y.id].setOptions({toggleVisibilityOnly:true,canHaveChildren:canHaveChildren,hasBackdrop:false,hasShadow:true});var j=parseInt(y.getAttribute("xwidth"));if(j<125||String(j)=="NaN"){j="125"}var f=YAHOO.util.Dom.getElementsByClassName("topbar","tr",y);var A="";if(f&&f[0]){var u=f[0].getElementsByTagName("td");for(r=0;r<u.length;r++){A=(u[r].lastChild.nodeValue).replace(/^\s+|\s+$/g,"")}}else{var f=YAHOO.util.Dom.getElementsByClassName("addCHNote_title","div",y);if(f&&f[0]){var u=YAHOO.util.Dom.getElementsByClassName("addCHNote_title_text","div",f[0]);A=(u[0].lastChild.nodeValue).replace(/^\s+|\s+$/g,"");f[0].style.display="none"}}if((A==""&&y.className=="pWidgetInfo")){var f=YAHOO.util.Dom.getElementsByClassName("pWidgetInfo_Name","div",y);if(f&&f[0]){A=(f[0].lastChild.nodeValue).replace(/^\s+|\s+$/g,"");f[0].style.display="none"}}if(A==""&&a!=""){A=a;if(j==125){y.style.width="300px"}}var n='<div class="pWidget4_Box';if(A==""||A=="false"){n+=" pWidget4_Box_noTitle"}n+='" id="'+y.id+'_Box">';n+='  <div class="pWidget4_Top" id="'+y.id+'_Top">';n+='    <div id="'+y.id+'_Close" class="pWidget4_Close">';n+="       <div>X";n+="       </div>";n+="    </div>";n+='    <div class="clear"></div>';n+="  </div>";n+='  <div id="'+y.id+'_Title" class="pWidget4_Title">';n+="    "+A;n+="  </div>";n+="</div>";var p=document.createElement("div");p.id=y.id+"_Content";p.className="pWidget4_Content";if(YAHOO.env.ua.gecko){var o=y.innerHTML;y.innerHTML="";p.innerHTML=o}else{var g=YAHOO.util.Dom.getChildrenBy(y,function(B){return B.parentNode==y});for(r=0;r<g.length;r++){if(g[r].parentNode==y){p.appendChild(g[r])}}}y.innerHTML=n;if(y.className=="pWidgetInfo"){}else{if(String(y.className).indexOf("addCHNote")>=0){y.className+=" pWidgetCHNote"}else{y.className=""}}y.style.visibility="visible";var w=document.getElementById(y.id+"_Box");w.appendChild(p);if(typeof w.style.minWidth!="undefined"){w.style.minWidth=j+"px";var t=y.getAttribute("xmaxwidth");if(t!=null){t=parseInt(t);if(isNaN(t)||t<j){t=j}w.style.maxWidth=t+"px"}}else{w.style.width=j+"px"}Bounty.widgets.shadow.add(y);var b=YAHOO.util.Dom.getElementsByClassName("actionlist","tr",y);var s=0;legacyWidgetsPopup.list[e].submenus=new Array();submenuIndentBar=-1;for(listId=0;listId<b.length;listId++){var x=b[listId].getElementsByTagName("a");var l=0;for(var r=0;r<x.length;r++){l++;s++;if((l%2)){x[r].className=x[r].className+" altBgColor1"}else{x[r].className=x[r].className+" altBgColor2"}if(x[r].getAttribute("indent")!=null){x[r].style.paddingLeft=parseInt(x[r].getAttribute("indent"))+"px"}if(x[r].getAttribute("submenu")!=null&&x[r].getAttribute("submenu")=="on"){if(!x[r].id){x[r].id=(e+"--submenuLink-"+legacyWidgetsPopup.list[e].submenus.length)}var z=legacyWidgetsPopup.list[e].submenus.push(x[r].id)-1;var c=document.createElement("div");c.id=(e+"--submenuBox-"+z);x[r].setAttribute("submenuBox",c.id);x[r].setAttribute("parentWidgetName",e);c.style.display="none";submenuIndentBar=parseInt(x[r].getAttribute("indent"));YAHOO.util.Dom.insertAfter(c,x[r]);if(YAHOO.env.ua.gecko){x[r].href="javascript:legacyWidgetsPopup.submenu.toggle('"+x[r].id+"');"}else{YAHOO.util.Event.addListener(x[r],"mousedown",function(){legacyWidgetsPopup.submenu.toggle(this)})}}else{if(submenuIndentBar>=0&&x[r].getAttribute("indent")!=null){var c=document.getElementById((e+"--submenuBox-"+(legacyWidgetsPopup.list[e].submenus.length-1)));if(c&&x[r].getAttribute("indent")>submenuIndentBar){c.appendChild(x[r])}else{submenuIndentBar=-1}}}}}if(submenuIndentBar>=0){}if(s==0&&y.className==""){var h=YAHOO.util.Dom.getElementsByClassName("pWidget4_Box","div",y)[0];if(y.getElementsByTagName("form").length>0){YAHOO.util.Dom.addClass(h,"pWidgetSingleForm")}else{YAHOO.util.Dom.addClass(h,"pWidgetSimpleBox")}}y.closeObjId=y.id+"_Close";YAHOO.util.Event.addListener(y.id+"_Close","mousedown",function(){profileClose(this,true)});YAHOO.util.Event.addListener(y.id+"_Close","mouseover",function(){YAHOO.util.Dom.addClass(this,"closeHover")});YAHOO.util.Event.addListener(y.id+"_Close","mouseout",function(){YAHOO.util.Dom.removeClass(this,"closeHover")});var v;var v=new YAHOO.util.DD(y);v.setHandleElId(y.id+"_Title");v.setHandleElId(y.id+"_Top");document.getElementById(y.id+"_Title").style.cursor="move";document.getElementById(y.id+"_Top").style.cursor="move";y.style.zIndex="6";legacyWidgetsPopup.list[e].ready=true;if(YAHOO.env.ua.ie<=6&&YAHOO.env.ua.ie>1){YAHOO.util.Dom.getElementsByClassName("pWidget4_Content","div",y)[0].style.background="white"}else{if(YAHOO.env.ua.gecko||YAHOO.env.ua.webkit){var q=YAHOO.util.Dom.getElementsByClassName("pWidget4_Content","div",y)[0];if(q){if(YAHOO.env.ua.gecko){q.innerHTML=String(q.innerHTML).replace(new RegExp("&lt;wbr /&gt;","g"),"<wbr />")}else{q.innerHTML=String(q.innerHTML).replace(new RegExp("&lt;wbr /&gt;","g"),"&shy;")}}}}y.setAttribute("isSetup","true");document.body.appendChild(y);widgetInit(y,true);BJUtil.gbuttons.isSetup=false;BJUtil.gbuttons.init(y);return y};legacyWidgetsPopup.submenu=new Object;legacyWidgetsPopup.submenu.toggle=function(d){if(typeof d=="string"){d=document.getElementById(d)}var c=document.getElementById(d.getAttribute("submenuBox"));var e=(d.getAttribute("xwidth"));if(c.style.display=="none"){c.style.display="block"}else{e=(d.getAttribute("prevwidth"));c.style.display="none"}var b=d.getAttribute("parentWidgetName");var a=document.getElementById(b);d.setAttribute("prevwidth",a.getAttribute("xwidth"));a.style.width=e+"px";a.setAttribute("xwidth",e);legacyWidgetsPopup.resize(b)};function _attach_event(a,c,b){if(a.attachEvent){return a.attachEvent("on"+c,b)}if(a.addEventListener){return a.addEventListener(c,b,false)}return false}pp=new Array();pp_current=null;var pp_cache=new Array();var pp_scheduled=false;function Popup(b,a){this.popupAction=function(){if(typeof legacyWidgetsPopup.list[b]!="undefined"){if(typeof legacyWidgetsPopup.list[b].lastTime!="undefined"&&(new Date().getTime()-legacyWidgetsPopup.list[b].lastTime>1500)){if((typeof Bounty.widgets.widget[a]!="undefined"&&Bounty.widgets.widget[a].isVisible())){widgetclose(a);return}}return}pp_cache.push({0:b,1:a});var c=document.getElementById(a);var d=document.getElementById(b);if(!c||!d){if(!pp_scheduled){YAHOO.util.Event.onDOMReady(function(){dynamicWidgetsInit()})}}else{dynamicWidgetsInit();legacyWidgetsPopup.show({target:d})}};if(typeof buttonid!="undefined"){this.button_id=buttonid}this.element_id=a}function dynamicWidgetsInit(){while(pp_cache.length>0){var f=pp_cache.pop();var g=document.getElementById(f[0]);var b=document.getElementById(f[1]);if(b&&g){legacyWidgetsPopup.list[g.id]=new Object;legacyWidgetsPopup.list[g.id].ready=false;legacyWidgetsPopup.list[g.id].link=g;YAHOO.util.Event.addListener(g,"click",legacyWidgetsPopup.show);legacyWidgetsPopup.list[g.id].div=b}}pp_scheduled=false;return;var b=document.getElementById(element_id);var g=document.getElementById(button_id);if(!b||!g){return}var e="";try{if(g.getAttribute("name")!=null){e=g.getAttribute("name")}}catch(d){}if(typeof e=="undefined"||e==""){var a=new Date;var c="";try{if(g.id!=null){c=g.id}}catch(d){}if(c==""){try{if(b.id!=null){c=b.id}}catch(d){}}if(c==""){c="dynamicLegacyPopup"+(a.getTime())}if(typeof c!="undefined"){e=c+(a.getTime())}else{return}try{if(b.id==null){b.id=c}}catch(d){b.id=c}g.setAttribute("name",e);b.setAttribute("name",e)}legacyWidgetsPopup.list[e].link=g;YAHOO.util.Event.addListener(g,"click",legacyWidgetsPopup.show);legacyWidgetsPopup.list[e].div=b}function widgetclose(a){if(typeof Bounty.widgets.widget[a]!="undefined"&&Bounty.widgets.widget[a].isVisible()){Bounty.widgets.widget[a].forwardAllChildren();Bounty.widgets.closeWidget(a)}else{}}function getPopupById(c){for(var a=0;a<pp.length;a++){if(pp[a].button_id==c){return pp[a]}}var b=getPopupByWidgetId(c.replace("-link",""));return b}function getPopupByWidgetId(b){for(var a=0;a<pp.length;a++){if(pp[a].element_id==b){return pp[a]}}return null}function popupReject(a,l,b){var e=document.getElementById("reject"+a);var f;var k;var d;var c=0;var j=0;var h="";if((!(typeof candidatesTableAjax.rejectsLoaded=="undefined"||!candidatesTableAjax.rejectsLoaded)&&(candidatesTableAjax.initialShowInactive!=candidatesTableAjax.isShowInactive))){}if(b&&b=="candidateWidget"){f=document.getElementById("actionWidgetCandidateWidget");d="actionTableCandidateWidget";k=YAHOO.util.Dom.getXY(f.id);e.actionBoxOverride=b}else{f=document.getElementById(h+"actionWidget"+a);if(f==null){f=findElemByPartialId("div",h+"actionWidget"+a)}d=h+"actionTable"+a;k=YAHOO.util.Dom.getXY(f.id);e.actionBoxOverride=""}e.style.visibility="hidden";var g=getPopupById(h+"reject-link"+a);if(g==null){g=getPopupByWidgetId(h+"reject"+a)}g.popupAction();e.style.marginLeft="0px";e.style.marginTop="0px";if(k!=false){rejectBox_xy=YAHOO.util.Dom.getXY("reject"+a);c=(k[0]-rejectBox_xy[0])-(e.offsetWidth-document.getElementById(d).offsetWidth);j=(k[1]-rejectBox_xy[1]);if(navigator.appName=="Microsoft Internet Explorer"&&l){c=c-129;j=j+13}}e.style.marginLeft=c+"px";e.style.marginTop=j+"px";e.style.visibility=""}function findElemByPartialId(c,d){var a=document.getElementsByTagName(c);for(var b=0;b<a.length;b++){if(a[b]!=null&&a[b].id!=null&&a[b].id.indexOf(d)!=-1){return a[b]}}return null};
