﻿var GtwToolsHM={AttachEvent:function(_1,_2,_3,_4){if(_1==null||_2==null||_3==null){return;}var _5=new Array();if(arguments.length>4){_5=Array.prototype.slice.call(arguments,4);}if(_1.addEventListener){_1.addEventListener(_2,function(_6){return _3.apply(_4,new Array(_6,this).concat(_5));},false);}else{if(_1.attachEvent){_1.attachEvent("on"+_2,function(_7){return _3.apply(_4,new Array(_7,this).concat(_5));});}}},AddTimer:function(_8,_9,_a){if(_8==null||_9==null||_9<1){return;}var _b=new Array();if(arguments.length>3){_b=Array.prototype.slice.call(arguments,3);}window.setTimeout(function(){_8.apply(_a,_b);},_9);},ChangeOpacity:function(_c,op,_e){if(op>100){op=100;}else{if(op<0){op=0;}}var st=_c.style;_c.style.opacity=(op>0)?op/100:0;st.MozOpacity=(op>0)?op/100:0;st.KhtmlOpacity=(op>0)?op/100:0;st.filter="alpha(opacity="+op+")";if((op<100&&_e>0)||(op>0&&_e<0)){GtwToolsHM.AddTimer(GtwToolsHM.ChangeOpacity,100,this,_c,op+_e,_e);}},GetDimensions:function(_10){var _11=0,_12=0;var _13=_10.scrollWidth,_14=_10.scrollHeight;if(_13==Number.NaN){_13=0;}if(_14==Number.NaN){_14=0;}if(window.innerWidth){_11=window.innerWidth;_12=window.innerHeight;}else{_11=document.body.parentNode.clientWidth;_12=document.body.parentNode.clientHeight;}return {width:_13,height:_14,vwidth:_11,vheight:_12};},GetPosition:function(_15){var _16=0,_17=0,_18=0,_19=0,_1a=0,_1b=0;if(_15!=null){var _1c=_15;while(_1c!=null){_16+=_1c.offsetLeft;_17+=_1c.offsetTop;_1c=_1c.offsetParent;}_1a=_16-_15.offsetLeft;_1b=_17-_15.offsetTop;}if(window.scrollX!=null){_18=window.scrollX;_19=window.scrollY;}else{_18=document.body.parentNode.scrollLeft;_19=document.body.parentNode.scrollTop;}return {x:_16,y:_17,containingblockx:_1a,containingblocky:_1b,scrollx:_18,scrolly:_19};},GetEvtPosition:function(evt){var _1e=0,_1f=0;if(evt.pageX){_1e=evt.pageX;_1f=evt.pageY;}else{_1e=evt.clientX+document.body.parentNode.scrollLeft-document.body.parentNode.clientLeft;_1f=evt.clientY+document.body.parentNode.scrollTop-document.body.parentNode.clientTop;}return {x:_1e,y:_1f};},End:true};var WidgetOptions={FilterType:{None:0,Category:"Category",StoredFilter:"StoredFilter"},Lang:{Auto:"auto",English:"en",Spanish:"es"},Output:{Widget:1,WidgetWide:2,WidgetItem:3}};function GTWWidgetHM(url,_21,_22,_23,css){this.ApiURL=url;this.Build=_22;this.Configurations=new Array();this.CssBase=css;this.Release=_21;this.TextData=new Array();this.ServiceName=_23;this.StatsTrackers=new Array();this.CheckConfig=function(_25){if(_25==null){return null;}if(typeof (_25)=="string"){_25=this.Configurations[_25];}if(_25==null||typeof (_25)!="object"||!_25.IsValid()){return null;}return _25;};this.Execute=function(_26){if(_26==null||typeof (_26)!="object"||!_26.IsValid()){return;}this.Configurations[_26.DivID]=_26;if(this.SetPage(_26,1)){GtwToolsHM.AddTimer(_26.Setup,10,_26,this);this.GetPage(_26,0,true);}};this.GetData=function(_27,_28,_29,_2a){if(_27==null||_27.DataRequested){return;}_27.DataRequested=true;var _2b=document.getElementById(_27.DivID);var _2c=_27.DivID+"-data";var _2d=document.getElementById(_2c);if(_2d!=null){_2b.parentNode.removeChild(_2d);}_2d=document.createElement("script");_2d.setAttribute("id",_2c);_2d.setAttribute("type","text/javascript");_2d.setAttribute("src",this.ApiURL+"/ws/"+this.ServiceName+".asmx/"+_27.GetMethodName(_29,_28)+"?"+_27.GetGetData(_29)+_2a+"&Release="+this.Release+"&Build="+this.Build);_2b.parentNode.appendChild(_2d);};this.GetDataEvt=function(evt,_2f,_30,_31,_32,_33){this.GetData(_30,_31,_32,_33);};this.GetItem=function(_34,_35,_36){if(_34==null){return;}_34.ResetData();var _37=WidgetOptions.Output.WidgetItem;GtwToolsHM.AddTimer(this.RenderXhtmlLoading,500,this,_34,_37,_35);GtwToolsHM.AddTimer(this.RenderXhtmlLoadingCancel,5000,this,_34,_37,_35);GtwToolsHM.AddTimer(this.GetData,10,this,_34,_36,_37,"&Item="+_35);if(_34.StatsTracking){GtwToolsHM.AddTimer(this.TrackEvent,100,this,_34,_35);}};this.GetItemEvt=function(evt,_39,_3a,_3b,_3c){this.SetEvtPos(_3a,evt);this.GetItem(_3a,_3b,_3c);return false;};this.GetPageEvt=function(evt,_3e,_3f,_40){this.SetEvtPos(_3f,evt);this.GetPage(_3f,_40,false);return false;};this.GetPage=function(_41,_42,_43){if(_41==null){return;}if(!this.SetPage(_41,_41.PageNumber+_42)){return;}var _44=_41.Mode;this.RenderXhtmlLoading(_41,_44);if(_43){GtwToolsHM.AttachEvent(document,"DOMContentLoaded",this.GetDataEvt,this,_41,_41.DataQ,_44,"");GtwToolsHM.AttachEvent(window,"load",this.GetDataEvt,this,_41,_41.DataQ,_44,"");}else{GtwToolsHM.AddTimer(this.GetData,10,this,_41,_41.DataQ,_44,"");}if(_41.StatsTracking){GtwToolsHM.AddTimer(this.TrackEvent,100,this,_41,_41.PageNumber);}};this.GetString=function(key,_46,_47){if(_46==null){return "";}var _48=this.TextData[key];if(_48==null||typeof (_48)!="string"||_48.length==0){return "";}if(_47==null){_47={};}return _48.replace(/\[dat_([a-z_0-9]+)\]/g,function(str,key){if(_46.HasValueT(key)){return _46.GetValue(key);}else{if(_47[key]!=null){return _47[key];}else{return "";}}});};this.HasConfig=function(did){return (did!=null&&this.Configurations!=null&&this.Configurations[did]!=null);};this.InitStats=function(_4c){if(!_4c.StatsTracking){return false;}var _4d=this.StatsTrackers;if(_4d.length>0){return true;}var sto=null;try{sto=_gat._getTracker("UA-11352760-2");}catch(err){}if(sto==null){return false;}sto._setDomainName("none");sto._setAllowLinker(true);sto._setAllowHash(false);_4d.push(sto);if(_4c.StatsTrackingID!=null){var _4f=/UA\-[0-9]+\-[0-9]+/g;var _50=null;while((_50=_4f.exec(_4c.StatsTrackingID))!=null){sto=null;try{sto=_gat._getTracker(_50[0]);}catch(err){}if(sto!=null){_4d.push(sto);}}}return true;};this.Reload=function(_51){_51=this.CheckConfig(_51);if(_51==null){return;}_51.ResetData();this.SetPage(_51,1);this.GetPage(_51,0,false);};this.Refresh=function(_52){_52=this.CheckConfig(_52);if(_52==null){return;}_52.ResetData();this.SetPage(_52,_52.PageNumber);this.GetPage(_52,0,false);};this.Render=function(_53,_54){_53=this.CheckConfig(_53);if(_53==null||_53.Rendered||!_53.HasData()){return;}if(this.TextData==null||this.TextData.length==0){GtwToolsHM.AddTimer(this.Render,10,this,_53,_54);return;}_53.Rendered=true;this.RenderXhtmlWidget(_53,((_54==null)?_53.Mode:_54));};this.RenderXhtmlLoading=function(_55,_56,cid){};this.RenderXhtmlLoadingCancel=function(_58,_59,cid){};this.RenderXhtmlWidget=function(_5b){};this.SetEvtPos=function(_5c,evt){_5c.EventPos=GtwToolsHM.GetEvtPosition(evt);};this.SetPage=function(_5e,_5f,end){if(_5e==null||_5f>_5e.MaxPageNumber){return false;}if(_5f<1){_5f=1;}if(end!=null&&end){_5e.MaxPageNumber=_5f;if(_5f==1){_5e.Pager=false;}}if(_5e.PageNumber==_5f&&_5e.HasData()){return false;}_5e.PageNumber=_5f;_5e.ResetData();return true;};this.TrackEvent=function(_61,_62){if(!this.InitStats(_61)){if(_61.StatsTracking){GtwToolsHM.AddTimer(this.TrackEvent,100,this,_61,_62);}return;}var _63=this.StatsTrackers;for(var i=0;i<_63.length;i++){var sto=_63[i];if(sto._getAccount()=="UA-11352760-2"){sto._trackPageview("/"+_61.ServiceID+"/"+_61.DataQ+"/"+_61.GetModeString()+"/"+_62);}else{var _66=document.location;var url=_66.pathname;var _68="/";if(_66.search!=null&&_66.search.length>0){_68="&";url+=_66.search;}else{url+=_68+_61.DataQ;}url+=_68+((_61.Mode==WidgetOptions.Output.WidgetItem)?"Item=":"Page=")+_62;sto._trackPageview(url);}}};}function WidgetConfig(sid,did,_6b){this.Data=null;this.DataRequested=false;this.DataP=new Array();this.DataQ=_6b;this.Debug=false;this.DivID=did;this.HostedStyle=false;this.Lang=WidgetOptions.Lang.Auto;this.MaxPageNumber=Number.POSITIVE_INFINITY;this.Pager=false;this.Graphics=false;this.PageNumber=1;this.Mode=WidgetOptions.Output.Widget;this.Rendered=false;this.ServiceID=sid;this.StatsTracking=false;this.AddElement=function(_6c){if(_6c==null){return;}if(this.Data==null){this.Data=new Array();}this.Data.push(_6c);};this.GetLangFiles=function(_6d,_6e,url,_70,_71){if(document.getElementById(_6e)!=null||_6d==null){return false;}var _72=document.createElement("script");_72.setAttribute("id",_6e);_72.setAttribute("type","text/javascript");_72.setAttribute("src",url+"GetLangData?Lang="+this.Lang+"&Data="+this.DataQ+"&Release="+_70+"&Build="+_71);_6d.insertBefore(_72,_6d.firstChild);return true;};this.GetModeString=function(){var _73=this.Mode;if(_73==WidgetOptions.Output.Widget){return "Widget";}else{if(_73==WidgetOptions.Output.WidgetWide){return "WidgetWide";}else{if(_73==WidgetOptions.Output.WidgetItem){return "WidgetItem";}}}return "";};this.GetModeSuffix=function(_74){if(_74==null){_74=this.Mode;}if(_74==WidgetOptions.Output.Widget){return "-widget";}else{if(_74==WidgetOptions.Output.WidgetWide){return "-widgetw";}else{if(_74==WidgetOptions.Output.WidgetItem){return "-info";}}}return "";};this.GetGetData=function(_75){var _76="ServiceId="+this.ServiceID;if(_75!=WidgetOptions.Output.WidgetItem){for(var key in this.DataP){var _78=this.DataP[key];if(_78==null||(typeof (_78)!="string"&&typeof (_78)!="number")){continue;}_76+="&"+key+"="+_78;}_76+="&PageNumber="+this.PageNumber;}if(_75==WidgetOptions.Output.Widget){_76+="&Mode=widget";}else{if(_75==WidgetOptions.Output.WidgetWide){_76+="&Mode=widgetw";}}_76+="&Callback="+this.DivID;_76+="&Lang="+this.Lang;return _76;};this.GetMethodName=function(_79,_7a){if(_7a==null){_7a=this.DataQ;}if(typeof (_7a)=="string"){return "Get"+_7a+((_79==WidgetOptions.Output.WidgetItem)?"Item":"")+"Js";}return "TestMethod";};this.GetStyleSheet=function(_7b,_7c,url,css){_7c+=this.GetModeSuffix();if(document.getElementById(_7c)!=null||_7b==null){return;}var _7f=_7b.firstChild;this.GetStyleSheetNode(_7c,url+css+".css",_7b,_7f);if(this.HostedStyle){this.GetStyleSheetNode(_7c+"-clt",url+"clt/"+this.ServiceID+".css",_7b,_7f);}return true;};this.GetStyleSheetNode=function(_80,url,_82,_83){if(_82==null){return;}var _84=document.createElement("link");_84.setAttribute("id",_80);_84.setAttribute("rel","stylesheet");_84.setAttribute("type","text/css");_84.setAttribute("media","all");_84.setAttribute("href",url);if(_83!=null){_82.insertBefore(_84,_83);}else{_82.appendChild(_84);}};this.HasData=function(){return this.Data!=null;};this.NewElement=function(_85){if(_85==null){_85=this.DataQ;}return new WidgetDataItem(_85,this);};this.IsValid=function(){if(this.ServiceID==null||this.ServiceID.length!=36||this.PageNumber<1){if(this.Debug){window.alert("["+this.ServiceID+"] is not a valid service value");}return false;}if(this.DivID==null||this.DivID.length==0||document.getElementById(this.DivID)==null){if(this.Debug){window.alert("<div> element with id ["+this.DivID+"] not found. Make sure it exists and it is placed before the <script> element that calls Execute() method.");}return false;}return true;};this.ResetData=function(){this.Data=null;this.DataRequested=false;this.Rendered=false;};this.SetFilter=function(key,_87){if(key!=null&&typeof (key)=="string"&&_87!=null){if(arguments.length>2){for(var i=2,_89=arguments.length;i<_89;i++){if(typeof (_87)=="number"&&typeof (arguments[i])=="number"){_87|=arguments[i];}}}this.DataP[key]=_87;}};this.Setup=function(_8a){if(_8a==null){return;}var _8b=document.getElementsByTagName("head");if(_8b!=null&&_8b.length==1){_8b=_8b[0];}this.GetStyleSheet(_8b,"gtw-"+_8a.ServiceName+"-style",_8a.ApiURL+"/css/",_8a.ServiceName+"v"+_8a.Release);this.GetLangFiles(_8b,"gtw-"+_8a.ServiceName+"-lang",_8a.ApiURL+"/ws/"+_8a.ServiceName+".asmx/",_8a.Release,_8a.Build);};}function WidgetDataItem(_8c,_8d){this.Owner=_8d;this.Data=null;this.DataType=_8c;this.AddItem=function(key,_8f){if(this.Data==null){this.Data=new Array();}this.Data[key]=_8f;};this.GetValue=function(key){return this.Data[key];};this.HasValue=function(key){return (this.Data!=null&&this.Data[key]!=null);};this.HasValueT=function(key){return (this.Data!=null&&this.Data[key]!=null&&this.Data[key].length>0);};}function HiringManagerConfig(sid,did){WidgetConfig.apply(this,arguments);this.DataQ="Jobs";}HiringManagerConfig.prototype=new WidgetConfig();HiringManagerConfig.prototype.constructor=HiringManagerConfig;function HiringManagerWidget(url,_96,_97,_98,css){GTWWidgetHM.apply(this,arguments);this.GetXhtmlItemPosition=function(_9a,_9b){var _9c=document.getElementById(_9a.DivID);var _9d=0,_9e=0;var _9f=_9b.style.display;GtwToolsHM.ChangeOpacity(_9b,0,null);_9b.style.display="";var dim=GtwToolsHM.GetDimensions(_9b);var pos=GtwToolsHM.GetPosition(_9b);_9b.style.display=_9f;GtwToolsHM.ChangeOpacity(_9b,100,null);var _a2=dim["vwidth"],_a3=dim["vheight"];var _a4=pos["containingblockx"],_a5=pos["containingblocky"];var _a6=pos["scrollx"]-_a4,_a7=pos["scrolly"]-_a5;var _a8=dim["width"],_a9=dim["height"];if(_a8==Number.NaN||_a8==0){_a8=500;}if(_a9==Number.NaN||_a9==0){_a9=200;}if(_9a.StoredPos!=null){_9d=_9a.StoredPos["x"];_9e=_9a.StoredPos["y"];}else{_9d=_9a.EventPos["x"]-_a4-_a8/2;_9e=_9a.EventPos["y"]-_a5-_a9/2;}if(_a8>_a2){_9d=20;}else{if(_9d+_a8>_a6+_a2){_9d=_a6+_a2-_a8-50;}}if(_a9>_a3){_9e=20;}else{if(_9e+_a9>_a7+_a3){_9e=_a7+_a3-_a9-50;}}if(_9d<_a6){_9d=_a6+20;}if(_9e<_a7){_9e=_a7+20;}return {zindex:"99",left:_9d,top:_9e};};this.RenderXhtmlElement=function(_aa,_ab,_ac){var _ad=document.getElementById(_ab.DivID);var _ae=_ad.childNodes;var _af=(_ac==WidgetOptions.Output.WidgetItem)?1:0;while(_ae.length>_af){_ad.removeChild(_ad.firstChild);}if(_ad.hasChildNodes()){_ad.insertBefore(_aa,_ad.firstChild);}else{_ad.appendChild(_aa);}if(_ac==WidgetOptions.Output.WidgetItem){var pos=this.GetXhtmlItemPosition(_ab,_aa);_aa.style.zindex=pos["zindex"];_aa.style.top=pos["top"]+"px";_aa.style.left=pos["left"]+"px";_ab.StoredPos={x:pos["left"],y:pos["top"]};GtwToolsHM.ChangeOpacity(_aa,0,20);}if(_aa.style.display.length>0){_aa.style.display="";}};this.RenderXhtmlWidget=function(_b1,_b2){if(!_b1.HasData()){return;}var _b3=this.RenderXhtmlContainer(_b1,_b2);if(_b3==null){return;}this.RenderXhtmlWidgetBody(_b3,_b1,_b2);var _b4=_b3.createTHead();var _b5=_b4.insertRow(0).insertCell(0);this.RenderXhtmlHeader(_b5,_b1.DataQ,_b2,_b1);_b4=_b3.createTFoot();_b5=_b4.insertRow(0).insertCell(0);this.RenderXhtmlFooter(_b5,_b1.DataQ,_b2,_b1);this.RenderXhtmlElement(_b3,_b1,_b2);};this.RenderXhtmlContainer=function(_b6,_b7,cid){var _b9=document.createElement("table");_b9.className=this.CssBase+_b6.GetModeSuffix(_b7);_b9.style.display="none";if(_b7==WidgetOptions.Output.WidgetItem){_b9.style.position="absolute";if(cid==null&&_b6.HasData()){cid=_b6.Data[0].GetValue("row_id");}if(cid!=null){var _ba=_b6.DivID+"_el"+cid;_b9.setAttribute("id",_ba);if(!_b6.Rendered&&document.getElementById(_ba)!=null){_b9=document.getElementById(_ba);GtwToolsHM.ChangeOpacity(_b9,0,20);_b9.style.display="";_b9=null;}}}return _b9;};this.RenderXhtmlLoading=function(_bb,_bc,cid){if(_bb.Rendered){return;}var _be=this.RenderXhtmlContainer(_bb,_bc,cid);if(_be==null){return;}if(_be.removeAttribute){_be.removeAttribute("id");}else{_be.id=null;}var _bf=_be.insertRow(-1).insertCell(0);_bf.className=this.CssBase+_bb.GetModeSuffix(_bc)+"-loading";_bf.appendChild(document.createElement("span")).appendChild(document.createTextNode("Loading ..."));var _c0=_be.createTHead();_bf=_c0.insertRow(0).insertCell(0);this.RenderXhtmlHeader(_bf,_bb.DataQ,_bc,_bb);this.RenderXhtmlElement(_be,_bb,_bc);};this.RenderXhtmlPagerLeft=function(_c1,_c2){if(_c2.Pager){var _c3=_c1.appendChild(document.createElement("a"));_c3.className=this.CssBase+"-widget-previous-page";if(_c2.Graphics||_c2.PagerGraphic){_c3.className+="-image";}else{_c3.className+="-text";}_c3.setAttribute("href","javascript:void(true)");if(_c2.PageNumber>1){GtwToolsHM.AttachEvent(_c3,"click",this.GetPageEvt,this,_c2,-1);}_c3=_c3.appendChild(document.createElement("span"));_c3.appendChild(document.createTextNode("[ < ]"));_c1.appendChild(document.createTextNode(" "));}};this.RenderXhtmlPagerRight=function(_c4,_c5){if(_c5.Pager){_c4.appendChild(document.createTextNode(" "));var _c6=_c4.appendChild(document.createElement("a"));_c6.className=this.CssBase+"-widget-next-page";if(_c5.Graphics||_c5.PagerGraphic){_c6.className+="-image";}else{_c6.className+="-text";}_c6.setAttribute("href","javascript:void(true)");if(_c5.PageNumber<_c5.MaxPageNumber){GtwToolsHM.AttachEvent(_c6,"click",this.GetPageEvt,this,_c5,1);}_c6=_c6.appendChild(document.createElement("span"));_c6.appendChild(document.createTextNode("[ > ]"));}};this.RenderXhtmlWidgetBody=function(_c7,_c8,_c9){var _ca=_c8.Data;for(var i=0,_cc=_ca.length;i<_cc;i++){var row=_c7.insertRow(-1);if(_c9==WidgetOptions.Output.Widget){this.RenderXhtmlRowWidget(_ca[i],row);}else{if(_c9==WidgetOptions.Output.WidgetWide){this.RenderXhtmlRowWidgetW(_ca[i],row);}else{if(_c9==WidgetOptions.Output.WidgetItem){this.RenderXhtmlWidgetItem(_ca[i],row);}}}}};this.HideItemEvt=function(evt,_cf,_d0,_d1){this.SetEvtPos(_d1,evt);while(_d0!=null){if(_d0.nodeType==1){var tag=_d0.nodeName.toLowerCase();if(tag=="table"){break;}}_d0=_d0.parentNode;}if(_d0!=null){_d0.style.display="none";}return false;};this.RenderXhtmlFooter=function(_d3,_d4,_d5,_d6){if(_d6.Pager&&_d5!=WidgetOptions.Output.WidgetItem){_d3.parentNode.className=this.CssBase+"-widget-pager-navigator";this.RenderXhtmlPagerLeft(_d3,_d6);this.RenderXhtmlPagerRight(_d3,_d6);}else{var _d7=_d3.parentNode.parentNode.parentNode;_d7.deleteTFoot();}};this.RenderXhtmlHeader=function(_d8,_d9,_da,_db){var _dc=this.CssBase+_db.GetModeSuffix(_da);var _dd=_d8.appendChild(document.createElement("ul"));_dd.className=_dc+"-header";var _de=null;if(_da==WidgetOptions.Output.WidgetItem){_de=_dd.appendChild(document.createElement("li"));_de.className=_dc+"-status";_de.appendChild(document.createElement("img")).setAttribute("src","http://hiring-manager.net/img/tick.png");}_de=_dd.appendChild(document.createElement("li"));_de.className=_dc+"-title";var _df=_de.appendChild(document.createTextNode(""));if(_da==WidgetOptions.Output.WidgetItem&&_db.HasData()){_df.nodeValue=_db.Data[0].GetValue("jobname");var _e0=_de;var _e1=_d8.parentNode.parentNode.parentNode;_e0.style.cursor="pointer";_e0.onmousedown=function(evt){evt=evt||window.event;var _e3=GtwToolsHM.GetEvtPosition(evt);var pos=GtwToolsHM.GetPosition(_e1);pos["dragoffsetx"]=_e3["x"]-pos["x"];pos["dragoffsety"]=_e3["y"]-pos["y"];_db.DragPos=pos;_db.Dragging=true;document.onmouseup=function(evt){_db.Dragging=false;document.onmousemove=null;};document.onmousemove=function(evt){if(!_db.Dragging){return true;}evt=evt||window.event;var _e7=_db.DragPos;var _e8=_e7["containingblockx"];var _e9=_e7["containingblocky"];var _ea=GtwToolsHM.GetEvtPosition(evt);var _eb=_ea["x"]-_e7["dragoffsetx"]-_e8;var _ec=_ea["y"]-_e7["dragoffsety"]-_e9;var _ed=0-_e8;var _ee=0-_e9;if(_ec<_ee){_ec=_ee;}if(_eb<_ed){_eb=_ed;}_e1.style.left=_eb+"px";_e1.style.top=_ec+"px";_db.StoredPos={x:_eb,y:_ec};return false;};return false;};_e0.onselectstart=function(){return false;};}else{try{var _ef=this.TextData["list_"+_d9.toLowerCase()+"_header"];if(_ef!=null){_de.innerHTML=_ef;}}catch(e){}}if(_da==WidgetOptions.Output.WidgetItem){_de=_dd.appendChild(document.createElement("li"));_de.className=_dc+"-actions";var _d8=_de.appendChild(document.createElement("a"));if(_db.Graphics){_d8.className=_dc+"-close-image";}_d8.setAttribute("href","javascript:void(true)");GtwToolsHM.AttachEvent(_d8,"click",this.HideItemEvt,this,_d8,_db);_d8=_d8.appendChild(document.createElement("span"));_d8.appendChild(document.createTextNode("X"));}};this.RenderXhtmlLoadingCancel=function(_f0,_f1,cid){var _f3=document.getElementById(_f0.DivID);if(_f3!=null&&_f3.firstChild.tBodies[0].rows[0].firstChild.className.indexOf("-loading")!=-1){_f3.removeChild(_f3.firstChild);}};this.RenderXhtmlRowLink=function(_f4,_f5,_f6,css){_f5=_f5.appendChild(document.createElement("a"));var _f8=this.GetString("list_"+_f4.DataType.toLowerCase()+"_link_title",_f4);_f5.setAttribute("title",_f8);_f5.setAttribute("href","javascript:void(true)");GtwToolsHM.AttachEvent(_f5,"click",this.GetItemEvt,this,_f4.Owner,_f4.GetValue("row_id"),null);_f5.appendChild(document.createTextNode(_f6));if(css!=null){_f5.className=css;}};this.RenderXhtmlRowWidget=function(_f9,row){var _fb=this.CssBase+_f9.Owner.GetModeSuffix();var _fc=row.insertCell(0);var _fd=_fc.appendChild(document.createElement("p"));_fd.className=_fb+"-jobtitle";var _fe=(_f9.HasValueT("code"))?"list_item_linkfull":"list_item_link";this.RenderXhtmlRowLink(_f9,_fd,this.GetString(_fe,_f9));_fd=_fc.appendChild(document.createElement("p"));_fd.className=_fb+"-metaline1";_fd.appendChild(document.createTextNode(this.GetString("list_line1_meta",_f9)));_fd=_fc.appendChild(document.createElement("p"));_fd.className=_fb+"-metaline2";_fd.appendChild(document.createTextNode(this.GetString("list_line2_meta",_f9)));_fd=_fc.appendChild(document.createElement("p"));_fd.className=_fb+"-metaline3";_fd.appendChild(document.createTextNode(this.GetString("list_line3_meta",_f9)));_fd=_fc.appendChild(document.createElement("p"));_fd.className=_fb+"-elementmenu";this.RenderXhtmlRowLink(_f9,_fd,this.GetString("list_item_view_action",_f9),_fb+"-elementmenu-info");return row;};this.RenderXhtmlRowWidgetW=function(_ff,row){var _101=this.CssBase+_ff.Owner.GetModeSuffix()+"-element";var cell=row.insertCell(0);var list=cell.appendChild(document.createElement("ul"));list.className=_101;var _104=list.appendChild(document.createElement("li"));_104.className=_101+"-title";var _105=(_ff.HasValueT("code"))?"list_itemwide_linkfull":"list_itemwide_link";this.RenderXhtmlRowLink(_ff,_104,this.GetString(_105,_ff));var _106=_101+"-metadata";_104=list.appendChild(document.createElement("li"));_104.className=_106;var _107="list_publishedin_meta";if(_ff.DataType==WidgetOptions.DataType.News){_107="list_published_meta";}else{if(_ff.DataType==WidgetOptions.DataType.Tenders){_107="list_publishedinted_meta";}}try{_104.innerHTML=this.GetString(_107,_ff,{cssbasem:_106});}catch(e){}_107=null;if(_ff.DataType==WidgetOptions.DataType.Calls){_107="list_datelimit_meta";}else{if(_ff.DataType==WidgetOptions.DataType.Programmes){_107="list_periodfull_meta";if(_ff.GetValue("period_end").length!=4){_107="list_period_meta";}}}if(_107!=null){_104=list.appendChild(document.createElement("li"));_104.className=_106;try{_104.innerHTML=this.GetString(_107,_ff,{cssbasem:_106});}catch(e){}}_104=list.appendChild(document.createElement("li"));_104.className=_101+"-description";try{_104.innerHTML=_ff.GetValue("description");}catch(e){}if(_ff.DataType!=WidgetOptions.DataType.News){_104.appendChild(document.createTextNode(" "));this.RenderXhtmlRowLink(_ff,_104,this.TextData["list_item_link_generic"]);}list=cell.appendChild(document.createElement("ul"));list.className=_101+"-menu";_104=list.appendChild(document.createElement("li"));_104.className=_101+"-menu-more";this.RenderXhtmlRowLink(_ff,_104,this.TextData["list_item_view_action"]);};this.RenderXhtmlLink=function(_108,key,data,sep){var text=data.GetValue(key+"_text");if(text==null||text.length==0){return;}var _10d=data.GetValue(key+"_prefix");var _10e=data.GetValue(key+"_suffix");var url=data.GetValue(key+"_url");if(_10d!=null&&_10d.length>0){_108.appendChild(document.createTextNode(_10d));_108.appendChild(document.createTextNode(sep));}if(url!=null&&url.length>0){_108=_108.appendChild(document.createElement("a"));_108.setAttribute("href",url);var _110=this.TextData["item_"+key+"_link_title"];if(_110!=null){_108.setAttribute("title",_110);}var evt=data.GetValue(key+"_evt");if(evt=="item"){GtwToolsHM.AttachEvent(_108,"click",this.GetItemEvt,this,data.Owner,data.GetValue(key+"_pevt1"),data.GetValue(key+"_pevt2"));}}_108.appendChild(document.createTextNode(text));if(_10e!=null&&_10e.length>0){_108.appendChild(document.createTextNode(sep));_108.appendChild(document.createTextNode(_10e));}};this.RenderXhtmlLinkList=function(_112,key,data,sep){var list=_112.appendChild(document.createElement("ul"));for(var i=0,_118=data.length;i<_118;i++){this.RenderXhtmlLink(list.appendChild(document.createElement("li")),key,data[i],sep);}};this.RenderXhtmlTextList=function(_119,key,data,sep,text){if(sep==null){sep=", ";}if(text!=null&&text.length>0){_119.appendChild(document.createTextNode(text));}for(var i=0,_11f=data.length;i<_11f;i++){if(i>0){_119.appendChild(document.createTextNode(sep));}_119.appendChild(document.createTextNode(data[i].GetValue(key+"_text")));}};this.RenderXhtmlTextListMulti=function(_120,key,item){var list=_120.appendChild(document.createElement("ul"));for(var i=2,_125=arguments.length;i<_125;i++){var key=arguments[i];var data=item.GetValue(key);if(data!=null&&data.length>0){this.RenderXhtmlTextList(list.appendChild(document.createElement("li")),key,data,null,null);}}};this.RenderXhtmlWidgetItem=function(item,row){var type=item.DataType;var cfg=item.Owner;var cell=row.insertCell(0);var list=cell.appendChild(document.createElement("dl"));list.className=this.CssBase+"-info-data";this.RenderXhtmlWidgetItemRow(list,item,"reference");this.RenderXhtmlWidgetItemRow(list,item,"jobsummary");this.RenderXhtmlWidgetItemRow(list,item,"description",item.GetValue("jobdescription"));this.RenderXhtmlWidgetItemRow(list,item,"contact");this.RenderXhtmlWidgetItemRow(list,item,"apply");list=cell.appendChild(document.createElement("ul"));list.className=this.CssBase+"-info-data-menu";var _12d=list.appendChild(document.createElement("li"));_12d.className=this.CssBase+"-info-data-menu-apply";var _12e=_12d.appendChild(document.createElement("a"));_12e.setAttribute("href","javascript:void(true)");GtwToolsHM.AttachEvent(_12e,"click",this.ApplyJobEvt,this,cell,item,cfg);_12e.appendChild(document.createTextNode(this.TextData["item_applyjob_action"]));_12d=list.appendChild(document.createElement("li"));_12d.className=this.CssBase+"-info-data-menu-close";_12e=_12d.appendChild(document.createElement("a"));_12e.setAttribute("href","javascript:void(true)");GtwToolsHM.AttachEvent(_12e,"click",this.HideItemEvt,this,_12e,cfg);_12e.appendChild(document.createTextNode(this.TextData["item_close_action"]));};this.RenderXhtmlWidgetItemRow=function(list,item,key,data,_133){if(data==null){data=this.GetString("item_"+key+"_value",item);}if(data==null||data.length==0){return;}var css=this.CssBase+"-info-data-"+key;var _135=list.appendChild(document.createElement("dt"));_135.className=css;var text=this.TextData["item_"+key+"_section"];if(text!=null){_135.appendChild(document.createTextNode(text));}_135=list.appendChild(document.createElement("dd"));_135.className=css;if(_133!=null){var args=new Array();if(arguments.length>5){args=Array.prototype.slice.call(arguments,5);}_133.apply(this,new Array(_135,key,data).concat(args));}else{if(typeof (data)=="string"){try{_135.innerHTML=data;}catch(e){}}}};this.ApplyJobEvt=function(evt,_139,_13a,item,_13c){if(_13a==null){return;}var _13d=cfg.DivID+"_applyjob";var form=document.getElementById(_13d);if(form!=null){_13a.removeChild(form);return;}form=document.createElement("iframe");form.setAttribute("id",_13d);form.setAttribute("name",_13d);form.className=this.CssBase+"-applyjob";form.setAttribute("src",encodeURI("http://hiring-manager.net/api/ws/apply.aspx?jobkey="+item.GetValue("jobkey")));form.setAttribute("frameborder","0");form.setAttribute("marginheight","0");form.setAttribute("marginwidth","0");form.setAttribute("scrolling","no");form.setAttribute("width","100%");form.setAttribute("height","450");_13a.appendChild(form);};}HiringManagerWidget.prototype.constructor=new GTWWidgetHM();HiringManagerWidget.prototype.constructor=HiringManagerWidget;var HiringManager=(HiringManager==null)?new HiringManagerWidget("http://condelway.com/api",1,"6014","hiringmanager","hiringmanager"):HiringManager;