function checkLoadListener(a,b,fn){var c,r=true,pl=_p.Listeners,d=(b=="load")?_p.WinLoadArr:_p.WinUnloadArr,e=(_w.attachEvent)?"on"+b:b;if(inArray(d,fn)>-1){return false};if(a[e]){c=a[e];a[e]=null;if(d.length>0){d.unshift(c)}else{d[0]=c}};if(b=="unload"){if(!_p.HasUnloader){_p.HasUnloader=true;var a=(_w.addEventListener)?_w:((_d.addEventListener)?_d:_w);_p.addLoadListener(a,"unload",function(){_p.RunWindowUnload()})}};d.push(fn);_p.AddListener(a,b,fn);return true}
function getName(a){var b="";if(a.id){b+=a.id+"_"};if(a.tagName){b+=a.tagName+"_"};b+=Math.random(new Date().getTime());return b}
function getGUID(a){if(typeof(a.guid)==="undefined"){a.guid=(a===_w)?"window":(a===_d)?"document":getName(a)};return a.guid}
function getDetails(o){var d="NOT AN OBJECT";if(o){d=(o===_w)?"window":(o===_d)?"document":(o.name)?o.name:(o.id)?o.id:(o.nodeName)?o.nodeName:"UNKNOWN"};return d}
AD=addEvent=function(a,b,fn,c){if(!a)return false;if(a&&(a.nodeType==3||a.nodeType==8))return false;var r=true,c=(c)?c:false,pl=(_p)?_p.Listeners:[];if(_p){if(a===_w||a===_d){if(/^(un)?load/.test(b.toLowerCase())){return checkLoadListener(a,b,fn)}}};var f="ev__"+b;if(a[f]){if(inArray(a[f],fn)>-1){return}}else{a[f]=[];a[f].eventCount=0};if(a.addEventListener){a.addEventListener(b,fn,c)}else{if(a["on"+b]){a[f][0]=a["on"+b];a["on"+b]=null;a[f].eventCount++};if(a.attachEvent){r=a.attachEvent("on"+b,function(e){RunEvents(e,a)})}else{a["on"+b]=RunEvents}};if(r){a[f].push(fn);a[f].eventCount++};if(_p){_p.AddListener(a,f,fn)};return r}
function RunEvents(e,a){var rv=true,fe;e=StandardiseEvent(e,a);var b="ev__"+e.type,c=a[b];if(c&&c.length){l=c.length;for(var i=0;i<l;i++){if(typeof(c[i])=="function"){if(Function.call){fe=c[i].call(a,e)}else{a.RunFunction=c[i];fe=a.RunFunction(e)};if(fe){rv=fe&&rv}}}};if(a.RunFunction)a.RunFunction=kill(a.RunFunction);return rv}
function kill(a){if(a){try{delete a}catch(e){};try{a=null}catch(e){}};return a}
RE=removeEvent=function(a,b,fn,c){var r=true,d=false,c=(c)?c:false;if(!a)return r;if(!fn)return r;if(a&&(a.nodeType==3||a.nodeType==8))return false;var f="ev__"+b,g=a[f];if(a[f]){var el=g.length,vl=false;for(var x=0;x<el;x++){if(typeof(g[x])=="function"&&g[x].toString()===fn.toString()){a[f][x]=kill(a[f][x]);a[f].eventCount--;break}}}else{if(a.removeEventListener){a.removeEventListener(b,fn,c)}else if(a.detachEvent){r=a.detachEvent('on'+b,RunEvents)}else{a['on'+b]=null};if(a[f].eventCount&&!isNaN(a[f].length)){a[f].eventCount--}};if(a.removeEventListener){a.removeEventListener(b,fn,c);d=true};if(a[f].eventCount==0){a[f]=kill(a[f]);if(!d){r=a.detachEvent('on'+b,RunEvents)}};if(_p){_p.RemoveListener(a,f,fn)};return r}
function inArray(a,v){if(v){for(var x=a.length;x>=0;x--){if(a[x]&&a[x].toString()===v.toString()){return x}}};return-1}
function CancelEvent(e){if(e.preventDefault){e.preventDefault()}else if(_w.event){e.returnValue=false}}
function StopPropagation(e){if(e.stopPropagation){e.stopPropagation()}else if(e.cancelBubble){e.cancelBubble=true}}
function StopEvent(e){e=GetEvent(e);StopPropagation(e);CancelEvent(e)}
function GetEvent(e,el){if(!el)el=this;e=e||(((el.ownerDocument||el.document||el).parentWindow||_w).event);if(e){e=StandardiseEvent(e)};return e}
function SetEventTarget(e){if(!e)return null;if(!e.target)e.target=e.srcElement;switch(e.type){case "mouseover":e.relatedTarget=e.fromElement;break;case "mouseout":e.relatedTarget=e.toElement};return e}
function SetEventCords(e){var a=getMouseXY(e);if(a){e.posX=a.x;e.posY=a.y}else{e.posX=0,e.posY=0};return e}
function StandardiseEvent(e){e=SetEventTarget(e);e=SetEventCords(e);return e}
function getElement(a){if(_w.event){return _w.event.srcElement}else{return a.currentTarget}}
function getTargetElement(a){if(_w.event){return _w.event.srcElement}else{return a.target}}
function GetElementFromEvent(e){var el;e=GetEvent(e);el=e.target;if(el&&el.nodeType&&el.nodeType==3){el=el.parentNode};return el}
A=addLoadEvent=function(func){DOM(func)};W=addWinLoadEvent=function(a,b){if(_p){_p.AddWindowOnLoadEvent(a,b)}else{AD(_w,"load",a)};return true}
addAfterLoadEvent=function(a){if(_p){_p.AddAfterLoadEvent(a);return true};return false}
addWinUnloadEvent=function(a){if(_p){_p.AddWindowUnloadEvent(a)}else{AD(_w,"unload",a)};return true}
DOM=addDOMLoadEvent=function(fn){if(typeof(fn)!="function"){return};if(_p&&((_b&&_b.w3cDOM)||(_d.getElementById&&_d.createElement))){_p.AddDOMLoadEvent(fn)}else{if(_p){_p.AddWindowOnLoadEvent(fn)}else{AD(_w,"load",func)}}};EL=onElementLoad=function(elID,func){if(typeof(func)!="function")return false;if(_p){if(_p[elID]){return true}else{_p.Listeners[PageLoader.Listeners.length]=[elID,"ElementLoad",func];_p.OnElement(elID,func);return true}}else{AD(_w,"load",func)}}
var _j=Jobboard={ProductName:"Jobweb",Version:3,Build:2,Company:"Strategies Group PLC",ServerType:"demo",LogDebug:"/jobboard/scripts/ajax/LogDebug.asp",FirebugLite:"/jobboard/scripts/JS/firebug/",VideoCVServer:"rtmp://arsenic.strategiesuk.net/simplevideostreaming/_definst_/",FlashPlayer:"/jobboard/flash/FlowPlayerDark.swf",FlashCounter:"/jobboard/flash/textCounter.swf",FlashMaxCurVersion:10,FlashMinVersion:[6,65],FlashWrapper:"/jobboard/flash/c.swf",CSSCounterImage:"/jobboard/images/cssCounter.png",LogJSErrors:false,SuppressJSErrors:2,EnhanceCSSDoc:false,StoreListeners:false};var _w=window,_n=navigator,_d=document;
var _db=Debugger={ready:false,debugCache:[],hasCache:false,debugCount:0,debugInterval:null,forceFirebug:false,isFirefox:(/Firefox/i.test(_n.userAgent))?true:false,debug:false,
ClearCache:function(){if(this.debugCache.length>0){for(var c=0;c<this.debugCache.length;c++){this.Log(this.debugCache[c])};this.debugCache.length=0;this.hasCache=false}},
FirebugReady:function(){if(this.CheckFirebug()){this.ClearCache();clearInterval(this.debugInterval);this.debugInterval=null}},
CheckFirebug:function(){if(this.ready){return true}else{if(this.forceFirebug&&!this.isFirefox){if((typeof(firebug)!="undefined")&&firebug.env&&firebug.env.init){return this.ready=true}else{return this.ready=false}}else{return this.ready=(typeof(_w.console)!="undefined")}}},
Log:function(a){if(this.forceFirebug&&!this.isFirefox){firebug.d.console.cmd.log(a)}else{console.log(a)}}};if(_j.ServerType=="dev"){ShowDebug=function(a){if(_db){if(!_db.debug)return;_db.debugCount++;var b=_db.debugCount.toString()+": "+a;if(!_db.CheckFirebug()){_db.debugCache.push(b);_db.hasCache=true;if(_db.debugInterval==null){_db.debugInterval=setInterval(function(){_db.FirebugReady()},1000)}}else{if(_db.hasCache){_db.ClearCache()};_db.Log(b)}}}}else{ShowDebug=function(){}}
(function(){
_b=Browser={userAgent:_n.userAgent,platform:_n.platform,name:null,version:0,gecko:false,khtml:false,webkit:false,webkitversion:0,opera:false,ie:false,ieDocMode:5,ieBrowserMode:"NA",windows:false,mac:false,linux:false,xml:false,jscript:false,javascript:false,flashEnabled:false,flashVersion:"0",cssGradeA:null,cssEnhanced:false,boxModel:false,styleFloat:"cssFloat",opacity:false,anchorsEnabled:false,regexpEnabled:false,cookieEnabled:false,imagesEnabled:false,formsEnabled:false,linksEnabled:false,framesEnabled:false,javaEnabled:false,AJAXEnabled:undefined,spoof:null,bot:null,widgeEditor:false,dom:_d.all?(_d.getElementById?2:1):(_d.getElementById?4:(_d.layers?3:0)),w3cDOM:typeof _d.getElementById!="undefined"&&typeof _d.getElementsByTagName!="undefined"&&typeof _d.createElement!="undefined",
BrowserName:function(){var a=this.userAgent;if(this.name===null){this.version=(a.match(/.+(?:ox|rv|ion|ra|ie|me)[\/:\s]([\d.]+)/i)||[])[1];if(/^\s*$/.test(a)){this.name="Blank Agent";this.spoof=true}else if(/Opera/i.test(a)||_w.opera){this.name="Opera";this.opera=true;if(!(_w.attachEvent&&_w.addEventListener)){this.spoof=true}else if(_w.opera&&!(/Opera/i.test(a))){this.spoof=true}}else if(/WebKit/i.test(a)||/Apple/i.test(a)){this.webkit=true;if(/Chrome/i.test(a)){this.name="Chrome"}else if(/Apple.*Mobile.*Safari/i.test(a)){this.name="Mobile Safari"}else{this.name="Safari"}}else if(/msie/i.test(a)&&(!_w.opera)){this.name="Internet Explorer";this.ie=true;if(!_w.attachEvent||_w.addEventListener){this.spoof=true}else if(!_w.ActiveXObject||!this.jscript){this.spoof=true};if(!this.spoof){this.ieDocMode=(_d.documentMode)?_d.documentMode:(_d.compatMode&&_d.compatMode=="CSS1Compat")?7:5;var b=parseInt(this.version);this.ieBrowserMode=(b==7)?(_d.documentMode&&/trident\/\d/i.test(a))?"Compat Mode":"IE 7 Mode":(b==8&&_d.documentMode)?"IE 8 Mode":"NA"}}else if(/Firefox/i.test(a)||_n.vendor=="Firefox"){this.name="Firefox";this.gecko=true}else if(/Firebird/i.test(a)||_n.vendor=="Firebird"){this.name="Firebird";this.gecko=true}else if(/konqueror/i.test(a)||/KHTML/i.test(a)){this.name="Konqueror";this.khtml=true}else{this.name=_n.appName;if(_n.product&&_n.product.toLowerCase()=="gecko"&&a.indexOf('gecko')!=-1){this.gecko=true}};if(this.webkit){this.webkitversion=(a.match(/AppleWebKit\/(\d+)/)[1])};if(!this.spoof&&(this.gecko||this.khtml||this.webkit)){if(_w.attachEvent||!_w.addEventListener){this.spoof=true}else if(_w.ActiveXObject||this.jscript){this.spoof=true}};if(!this.spoof&&(this.khtml||this.webkit)){if(_d.all)this.spoof=true}};return this.name},
isSpoof:function(){if(this.spoof===null){if(/(?:spoof|spoofer|fake|ripper)/i.test(this.userAgent)){this.spoof=true}else if(/[a-z1-9]{20,}/i.test(this.userAgent)){if(!this.name||this.name.length==0){this.name="Fake Agent"};this.spoof=true}else{this.spoof=false}};return this.spoof},
isBot:function(){if(this.bot===null){if(/(?:robot|bot\W|mine|archive|spider|crawl|job|@|https?:\/{2})/i.test(this.userAgent)){this.bot=true}else{this.bot=false}};return this.bot},
ScriptTest:function(){/*@cc_on;@if(@_jscript){this.jscript=true}@else*/;this.javascript=true;/*@end;@*/},
OperatingSystemTest:function(){var p=this.platform.toLowerCase();/*@cc_on;@if(@_win32){this.windows=true}@elif(@_win16){this.windows=true}@elif(@_win64){this.windows=true}@elif(@_mac){this.mac=true}@elif(@_alpha){this.linux=true}@else*/;this.windows=p?/win/i.test(p):/win/.test(this.userAgent),this.mac=p?/mac/i.test(p):/mac/.test(this.userAgent),this.linux=p?/linux/i.test(p):/linux/i.test(this.userAgent);/*@end;@*/},
SniffFlash:function(){var a=[0,0],p=_n.plugins;if(p&&typeof p["Shockwave Flash"]=="object"){var b=p["Shockwave Flash"].description;if(typeof b!="undefined"){b=b.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var c=parseInt(b.replace(/^(.*)\..*$/,"$1"),10),d=/r/.test(b)?parseInt(b.replace(/^.*r(.*)$/,"$1"),10):0;a=[c,d]}}else if(_w.ActiveXObject){var m=10;if(_j.FlashMaxCurVersion&&_j.FlashMaxCurVersion>9){m=_j.FlashMaxCurVersion+1};for(var ii=m;ii>=4;ii--){try{var f=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+ii+"');")}catch(e){}};if(typeof(f)=="object"){if(ii==6){f.AllowScriptAccess="always"};try{var b=f.GetVariable("$version");if(typeof(b)!="undefined"){b=b.replace(/^\S+\s+(.*)$/,"$1").split(",");a=[parseInt(b[0],10),parseInt(b[2],10)]}}catch(e){if(ii>4){a=[ii,0]}}}};if(a[0]==0&&a[1]==0){this.flashEnabled=false}else{this.flashEnabled=true;this.flashVersion=a[0].toString()+'.'+a[1].toString()};return},
BrowserTest:function(){this.anchorsEnabled=(_d.anchors)?"true":"false";this.regexpEnabled=(_w.RegExp)?"true":"false";_d.cookie="cookies=true";this.cookieEnabled=(_d.cookie)?"true":"false";this.imagesEnabled=(_d.images)?"true":"false";this.formsEnabled=(_d.forms)?"true":"false";this.linksEnabled=(_d.links)?"true":"false";this.framesEnabled=(_w.frames)?"true":"false";this.javaEnabled=(_n.javaEnabled());var m=_d.getElementsByTagName("meta");for(var i=0;i<m.length;i++){if(/content-type/i.test(m[i].getAttribute("http-equiv"))&&/xml/i.test(m[i].getAttribute("content"))){this.xml=true;break}};return},
CSSTest:function(){if(this.cssGradeA===null){if(this.cookieEnabled){var ck=readCookie('enhanced');if(ck===true){this.cssGradeA=true;if(_j.EnhanceCSSDoc){if(!this.cssEnhanced){enhanceDocument()}};return true}else if(ck===false){this.cssGradeA=false;return true}else{ShowDebug("cookie not set so run test now")}}};var b=false;if(this.w3cDOM){var c=_d.createElement('div');c.style.display="none";c.innerHTML='<a href="/a" style="color:red;float:left;opacity:.5;">a</a>';_d.body.appendChild(c);var a=c.getElementsByTagName("a")[0];this.opacity=a.style.opacity==="0.5";this.styleFloat=(!!a.style.cssFloat)?"cssFloat":"styleFloat";_d.body.removeChild(c);var c=_d.createElement('div');_d.body.appendChild(c);c.style.visibility='hidden';c.style.padding='10px';c.style.width='20px';var e=c.offsetWidth;if(e!=40){_d.body.removeChild(c);b=true};if(!b){c.style.position='absolute';c.style.left='10px';var f=c.offsetLeft;if(f!=10){_d.body.removeChild(c);b=true}};if(!b){this.boxModel=true};var g,h,i,td,j,k,l=_d.body.style.marginTop,c2=_d.createElement('div');html='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';j={position:'absolute',top:0,left:0,margin:0,border:0,width:'1px',height:'1px',visibility:'hidden'};for(k in j){c2.style[k]=j[k]};c2.innerHTML=html;_d.body.insertBefore(c2,_d.body.firstChild);g=c2.firstChild,h=g.firstChild,td=g.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(h.offsetTop!==5);this.doesAddBorderForTableAndCells=(td.offsetTop===5);g.style.overflow='hidden',g.style.position='relative';this.subtractsBorderForOverflowNotVisible=(h.offsetTop===-5);_d.body.style.marginTop='1px';this.doesNotIncludeMarginInBodyOffset=(_d.body.offsetTop===0);_d.body.style.marginTop=l;_d.body.removeChild(c2);if(!b){var n=_d.createElement('div');n.style.width='5px';n.style.cssFloat='left';n.style.styleFloat='left';c.appendChild(n);var o=n.cloneNode(true);c.appendChild(o);var p=n.offsetTop,q=o.offsetTop;if(p!=q){_d.body.removeChild(c);b=true}};if(!b){c.innerHTML='<ul><li style="width: 5px; float: left;">test</li><li style="width: 5px; float: left;clear: left;">test</li></ul>';var r=c.getElementsByTagName('li')[0].offsetTop,s=c.getElementsByTagName('li')[1].offsetTop;if(r==s){b=true}};if(!b){c.innerHTML='<div style="height: 20px;"></div>';c.style.padding='0';c.style.height='10px';c.style.overflow='auto';var t=c.offsetHeight;if(t!=10){_d.body.removeChild(c);b=true}};if(!b){c.innerHTML='<div style="line-height: 2; font-size: 10px;">Te<br />st</div>';c.style.padding='0';c.style.height='auto';c.style.overflow='';var t=c.offsetHeight;if(t>40){_d.body.removeChild(c);b=true}};if(!b){if(_w.onresize==false){_d.body.removeChild(c);b=true}};if(!b){if(!_w.print){_d.body.removeChild(c);b=true}};if(!b){if(_w.clientInformation&&_w.opera){_d.body.removeChild(c);b=true}};if(!b){_d.body.removeChild(c);if(_j.EnhanceCSSDoc){if(!this.cssEnhanced){enhanceDocument()}};createCookie('enhanced','true');this.cssGradeA=true;return true}};createCookie('enhanced','false');this.cssGradeA=false;return false},
GUITest:function(){this.CSSTest();if(this.w3cDOM){if(typeof(GetBody().contentEditable)!="undefined"||typeof(_d.designMode)!="undefined"){if(_b.ie||_b.gecko){this.widgeEditor=true}}}},
Settings:function(){var s="UserAgent: "+this.userAgent+"<br />",x=0;for(var p in this){if(typeof(this[p])!="function"&&p!="userAgent"){x++;s+=p+": "+this[p];if(x%4==0){s+="<br />"}else{s+=" - "}}};return s}};
_p=PageLoader={Listeners:{},DOMLoaded:false,BodyLoaded:false,WindowLoaded:false,HasUnloader:false,DoCleanUp:false,AfterLoaded:false,FreePos:[],WinUnloadArr:[],WinLoadArr:[],AfterLoadArr:[],DOMArr:[],BodyFuncs:{},DOMTimer:null,
AddWindowUnloadEvent:function(fn){if(typeof(fn)=="function"){if(inArray(this.WinUnloadArr,fn)>-1){return false};this.WinUnloadArr.push(fn);if(!this.HasUnloader){this.HasUnloader=true;var a=(_w.addEventListener)?_w:(_d.addEventListener)?_d:_w;return this.addLoadListener(a,"unload",function(){_p.RunWindowUnload()})}};return false},
AddWindowOnLoadEvent:function(fn,a){if(typeof(fn)=="function"){if(!a&&inArray(this.WinLoadArr,fn)>-1){return false};if(this.WindowLoaded){fn()}else{this.WinLoadArr.push(fn);this.AddListener(_w,"ev__load",fn);this.ShowListeners()}};return true},
OnElement:function(a,b){var f=false,c=this;if(this.WindowLoaded||this.DOMLoaded){if(this[a]){return};if(G(a)){f=true;this[a]=true;if(Function.call){b.call(a)}else{b()};return true}};if(!f){setTimeout(function(){c.OnElement(a,b)},200)};return true},
OnBody:function(a){var b=this;if(typeof(a)!="function")return false;if(this.BodyLoaded||_d.getElementsByTagName("body")[0]||_d.body){if(this.BodyFuncs[a]){return};a();this.BodyFuncs[a]=true;this.BodyLoaded=true}else{setTimeout(function(){b.OnBody(a)},200)};return},
AddAfterLoadEvent:function(fn){if(this.AfterLoaded){fn()}else{this.AfterLoadArr.push(fn);this.AddListener(_w,"ev__AfterLoad",fn)};return true},
AddDOMLoadEvent:function(fn){if(this.DOMLoaded){fn()}else{this.DOMArr.push(fn);this.AddListener(_d,"ev__DOMLoad",fn)};return true},
RunWindowUnload:function(){if(this.WinUnloadArr){for(var x=0;x<this.WinUnloadArr.length;x++){fn=this.WinUnloadArr[x];if(fn.toString()!=="function(){PageLoader.CleanUp();}"){fn()}};if(this.DoCleanUp){_p.CleanUp()}};return true},
RunWindowLoaded:function(){if(this.WindowLoaded){return}else{var da=this.DOMArr;for(var i=0;i<da.length;i++){if(da&&typeof(da)=="function"){try{da[i]()}catch(e){}}};this.WindowLoaded=true;for(var i=0;i<this.WinLoadArr.length;i++){if(typeof(this.WinLoadArr[i])=="function"){this.WinLoadArr[i]()}};this.onAfterLoaded()};return true},
RunDOMLoadFunctions:function(){if(this.DOMLoaded){return};if(_b.ie&&_b.windows){var s=_d.createElement("span");try{var t=GetBody().appendChild(s);t.parentNode.removeChild(t)}catch(e){if(!this.DOMTimer){this.DOMTimer=setInterval(function(){_p.RunDOMLoadFunctions()},10)};return}};this.BodyLoaded=true;this.DOMLoaded=true;if(this.DOMTimer){clearInterval(this.DOMTimer);this.DOMTimer=null};for(var i=0;i<this.DOMArr.length;i++){this.DOMArr[i]();this.DOMArr[i]=kill(this.DOMArr[i])};return true},
onDOMLoad:function(){if(_b.w3cDOM&&!_b.spoof){if((_b.webkit&&_b.webkitversion<525)||_b.khtml||(_b.opera&&_b.version<9)&&_d.readyState!="undefined"){_p.DOMTimer=setInterval(function(){if(/loaded|complete/.test(_d.readyState)){_p.RunDOMLoadFunctions()}},10)}else if(_d.addEventListener){AD(_d,"DOMContentLoaded",function(){RE(_d,"DOMContentLoaded",arguments.callee);_p.RunDOMLoadFunctions()},false)}else if(_d.attachEvent){AD(_d,"onreadystatechange",function(){if(_d.readyState==="complete"){RE(_d,"onreadystatechange",arguments.callee);_p.RunDOMLoadFunctions()}},false);if(_d.documentElement.doScroll&&_w==_w.top)(function(){if(this.DOMLoaded)return;try{_d.documentElement.doScroll("left")}catch(e){setTimeout(arguments.callee,0);return};_p.RunDOMLoadFunctions()})()}};this.AddWindowOnLoadEvent(function(){_p.RunDOMLoadFunctions()});return true},
Setup:function(){this.onDOMLoad();this.onWindowLoaded();if(_b.windows&&_b.ie){this.DoCleanUp=true;this.AddWindowUnloadEvent(function(){_p.CleanUp()})};return true},
CleanUp:function(){if(!_j.StoreListeners)return true;var y,a,ev,b,i,fn;for(var x in this.Listeners){a=this.Listeners[x];for(y in o){ev=o[y];if(ev&&ev.length){b=ev.replace(/^ev__/,"");for(i=0;i<ev.length;i++){fn=ev[i];if(typeof(fn)=="function"){r=RE(a,b,fn,false)}}}}};return true},
onWindowLoaded:function(){var obj;if(_w.addEventListener){obj=_w}else if(_d.addEventListener){obj=_d}else{obj=_w};this.addLoadListener(obj,"load",function(){_p.RunWindowLoaded()});return true},
onAfterLoaded:function(){if(this.DOMLoaded&&this.WindowLoaded){this.AfterLoaded=true;for(var x=0;x<this.AfterLoadArr.length;x++){this.AfterLoadArr[x]()}};return true},
RunFunctions:function(e,a,b){var rv=true;e=StandardiseEvent(e,a);if(a&&b&&b.length){for(var i=0;i<b.length;i++){if(typeof(b[i])=="function"){if(Function.call){rv=b[i].call(a,e)&&rv}else{a.RunFunction=b[i];rv=a.RunFunction(a,e)&&rv}}};if(a.RunFunction)a.RunFunction=kill(a.RunFunction)};return rv},
HasListener:function(a,b,fn){if(!this.Listeners||!this.Listeners.length)return false;var pl=this.Listeners;for(var x=0;x<pl.length;x++){if(pl[x]&&pl[x][0]===a&&pl[x][1]==b&&pl[x][2].toString()===fn.toString()){return true}};return false},
AddListener:function(a,b,fn){if(!_j.StoreListeners)return true;if(!a||!b||!fn)return false;var id=getGUID(a);var o=this.Listeners[id];if(!o){o=this.Listeners[id]={}};var es=o[b];if(!es){es=o[b]=[]};for(var x=0;x<es.length;x++){if(!es[x]||typeof(es[x])!="function"){es[x]=fn;return true}};es[x]=fn;return true},
RemoveListener:function(a,b,fn){if(!_j.StoreListeners)return true;if(!a||!b||!fn)return false;var id=a.guid;if(!id)return false;var o=this.Listeners[id];if(!o)return false;var es=o[b],ne=o[b].length,fs=fn.toString();if(!es||!es.length)return false;var r=false,el=es.length,v=false;for(var x=0;x<el;x++){if(es[x]){if(fs===es[x].toString()){es[x]=kill(es[x])}else{v=true}}};if(!v){o[b]=kill(o[b])};return r},
ShowListeners:function(){if(!_j.StoreListeners)return true;if(this.Listeners){var o;for(var x in this.Listeners){o=this.Listeners[x];for(var y in o){ev=o[y];if(ev){if(ev.length){for(i=0;i<ev.length;i++){if(ev[i]&&typeof(ev[i])=="function"){}}}else{}}}}};return},
ShowObjectListeners:function(a,b){if(!_j.StoreListeners)return true;if(a.guid){if(/^ev__/.test(b)){if(/^on/i.test(b)){b=b.replace(/^on/i,"")};b+="ev__"+b};var i;o=this.Listeners[a.guid];for(var x in o){ev=o[x];if(ev){if(ev.length){for(i=0;i<ev.length;i++){if(ev[i]&&typeof(ev[i])=="function"){}}}else{}}}};return true},
addLoadListener:function(a,b,fn){var r=true,pl=_p.Listeners,c=(b=="load")?_p.WinLoadArr:_p.WinUnloadArr,d="ev__"+b;if(inArray(c,fn)>-1){return false};if(typeof(fn)=="function"){if(a.addEventListener){a.addEventListener(b,fn,false)}else if(a.attachEvent){r=a.attachEvent("on"+b,fn)}else{a["on"+b]=fn}};this.AddListener(a,d,fn);return r}};_b.ScriptTest();_b.BrowserName();_b.isSpoof();_b.isBot();_b.OperatingSystemTest();_b.BrowserTest();_b.SniffFlash();_p.Setup();addDOMLoadEvent(function(){_b.GUITest()})
})()
if(!Array.prototype.indexOf){Array.prototype.indexOf=function(a){var b=this.length,c=Number(arguments[1])||0;c=(c<0)?Math.ceil(c):Math.floor(c);if(c<0){c+=b};for(;c<b;c++){if(c in this&&this[c]===a){return c}};return-1}};
if(!Array.prototype.push){Array.prototype.push=function(){for(var i=0;i<arguments.length;i++){this[this.length]=arguments[i]};return this.length}}
;if(!Array.prototype.unshift){Array.prototype.unshift=function(){var i=unshift.arguments.length;for(var j=this.length-1;j>=0;--j){this[j+i]=this[j]};for(j=0;j<i;++j){this[j]=unshift.argument[j]}}};
if(!Array.prototype.shift){Array.prototype.shift=function(a){var b=this[0];for(var i=1;i<this.length;++i){this[i-1]=this[i]};this.length--;return b}}
_w.onerror=function(a,b,c){if(_j.LogJSErrors){var d="msg="+enc(a)+'&url='+enc(b)+"&line="+c;X('/jobboard/scripts/ajax/logError.asp',d,'')};if(_j.SuppressJSErrors==0){return false}else{if(_j.SuppressJSErrors==1||(_j.SuppressJSErrors==2&&(_b.dom==0||_b.dom==1||_b.dom==3))){return true}else{return false}}}
var _st=_w.setTimeout,_si=_w.setInterval
_w.setTimeout=function(a,b){if(typeof a=="function"){var c=Array.prototype.slice.call(arguments,2),f=(function(){a.apply(null,c)});return _st(f,b)};return _st(a,b)}
_w.setInterval=function(a,b){if(typeof a=="function"){var c=Array.prototype.slice.call(arguments,2),f=(function(){a.apply(null,c)});return _si(f,b)};return _si(a,b)}
if(!_d.getElementsByTagName('*').length){if(_d.all){_d.getElementsByTagName=function(a){if(a=="*"){return _d.all}else{if(IsIEversion(5,2)){a=a.toUpper()};return _d.all.tags(a)}}}}
_d.getElementsByClassName=function(a){var b=new Array(),c=_d.getElementsByTagName("*");for(var i=0;i<c.length;i++){if(c[i].className.indexOf(" ")>=0){var d=c[i].className.split(" ");for(var j=0;j<d.length;j++){if(d[j]==a){b.push(c[i])}}}else if(c[i].className==a){b.push(c[i])}};return b}
function GetBody(){return _d.getElementsByTagName("body")[0]||_d.body}
function extend(o,a){if(o&&a){for(var b in a){o[b]=a[b]}}return}
function enc(a){if(typeof(encodeURIComponent)=="function"){return encodeURIComponent(a)}else{return escape(a)}}
function denc(a){if(typeof(decodeURIComponent)=="function"){return decodeURIComponent(a)}else{return unescape(a)}}
function addClass(e,c){if(e&&(e.className=="undefined")||(e.className=="")){e.className=c}else if(!hasClass(e,c)){e.className+=' '+c}}
function delClass(e,c){if(e&&e.className!="undefined")if(e.className.split(' ').length>1){e.className=e.className.replace(new RegExp(' '+c+'\\b'),'')}else{e.className=e.className.replace(new RegExp(c+'\\b'),'')}}
function hasClass(e,c){if(e&&e.className!=''){cs=e.className.split(' ');for(i=0;i<cs.length;i++){if(cs[i]==c)return true}};return false}
function toggleClass(e,c){if(hasClass(e,c)){delClass(e,c)}else{addClass(e,c)}}
GE=fncGetEmailAddr=function(a,b){return a+'@'+b}
function WinParam(p){if(p=="off"||p=="no"||p=="0"||p==0){return false}else if(p=="on"||p=="yes"||p=="1"||p==1){return true}else if(p){return true}else{return false}}
function bookmarksite(a,b){if(_w.sidebar){_w.sidebar.addPanel(a,b,"")}else if(_w.opera&&_w.print){var c=_d.createElement('a');c.setAttribute('href',b);c.setAttribute('title',a);c.setAttribute('rel','sidebar');c.click()}else if(_d.all){_w.external.AddFavorite(b,a)}};OW=OpenWin=function(a){ON('win',200,265,0,0,0,0,1,0,0,0,a,'win',"")};ON=OpenNewWin=function(a,b,c,d,e,f,g,h,i,j,k,l,m,n){if(d==0&&e==0){e=(screen.width)?(screen.width-b)/2:100;d=(screen.height)?(screen.height-c)/2:100};if(m=="modal"&&_d.all){var sF="",_rv;sF+='unadorned:'+(WinParam(i)?'1;':'0;');sF+='help:'+(WinParam(j)?'1;':'0;');sF+='status:'+(WinParam(g)?'1;':'0;');sF+='scroll:'+(WinParam(h)?'1;':'0;');sF+='resizable:'+(WinParam(f)?'1;':'0;');sF+=b?'dialogWidth:'+b+'px;':'';sF+=c?'dialogHeight:'+(parseInt(c)+(WinParam(g)?42:0))+'px;':'';sF+=d?'dialogTop:'+d+'px;':'';sF+=e?'dialogLeft:'+e+'px;':'';if(m=="modal"){_rv=_w.showModalDialog(l,n?n:"",sF);if("undefined"!=typeof(_rv)){return _rv}}}else{var sF="";sF+=b?'width='+b+',':'';sF+=c?'height='+c+',':'';sF+=d?'top='+d+',':'';sF+=e?'left='+e+',':'';sF+='resizable='+(WinParam(f)?'1,':'0,');sF+='status='+(WinParam(g)?'1,':'0,');sF+='scrollbars='+(WinParam(h)?'1,':'0,');sF+='titlebar='+(WinParam(i)?'1,':'0,');sF+='toolbar='+(WinParam(j)?'1,':'0,');sF+='menubar='+(WinParam(k)?'1,':'0,');l=l?l:'about:blank';a=a?a.replace(/ /gi,""):'win';_rv=_w.open(l,a,sF).focus();return _rv}}
function JobScroller(a,b,c){var d=this,e=false;/*@cc_on;@if(@_jscript_version==5.6){e=true}@end;@*/;var f=2000,g=1,h=1;this.CopySpeed=g;this.PauseSpeed=(h==0)?this.CopySpeed:0;this.ActualHeight='';var i="ScrollJobs"+a,j="ScrollJobsContainer"+a;this.Scroller=G(i);this.Container=G(j);this.Scroller.style.top=0;this.ScrollerHeight=this.Container.offsetHeight;if(!e&&b>c){var k=parseInt(this.ScrollerHeight/c);this.ActualHeight=parseInt(k*b)+16}else{this.ActualHeight=this.Scroller.offsetHeight};if(_w.opera||_n.userAgent.indexOf("Netscape/7")!=-1){this.Scoller.style.height=this.ScrollerHeight+"px";this.Sroller.style.overflow="scroll";return};AD(d.Container,'mouseover',function(){d.CopySpeed=d.PauseSpeed});AD(d.Container,'mouseout',function(){d.CopySpeed=g});setTimeout(function(){lefttime=setInterval(function(){d.ScrollJobs()},30)},f)}
var flag=false
JobScroller.prototype.ScrollJobs=function(){var a=this.Scroller;if(parseInt(a.style.top)>(this.ActualHeight*(-1)+8)){a.style.top=parseInt(a.style.top)-this.CopySpeed+"px"}else{a.style.top=parseInt(this.ScrollerHeight)+8+"px"}}
if(_d.getElementById){G=getEl=function(id,a){if(!a){a=_d}return a.getElementById(id)}}else if(_d.all){G=getEl=function(id,a){if(!a){a=_d}return a.all[id]}}else if(_d.layers){G=getEl=function(id,a){if(!a)a=_d;if(a.layers[id]){return a.layers[id]}else{for(var x=0,y;!y&&x<a.layers.length;x++){y=G(id,a.layers[x].document)};return y}}}else{G=getEl=function(id,a){if(!a){a=_d}return a[id]}}
function getObj(el){return(!el)?_d:(typeof(el)=="string")?G(el):el}
function setText(el,a){el=getObj(el);if(el&&a){if(el.innerText){el.innerText=a}else if(el.textContent){el.textContent=a}else if(_d.createElement){if(el.firstChild){el.firstChild.nodeValue=a}else{el.appendChild(_d.createTextNode(a))}}}}
function getText(el){el=getObj(el);var a="";if(el){if(el.innerText){a=el.innerText}else if(el.textContent){a=el.textContent}else if(el.firstChild&&el.firstChild.nodeType==3){a=el.firstChild.nodeValue}};return a}
function getFlashMovie(a){var r=null,o=G(a);if(o&&o.nodeName=="OBJECT"){if(typeof o.SetVariable!="undefined"){r=o}else{var n=o.getElementsByTagName("object")[0];if(n){r=n}}};if(!r){r=(_d[a])?_d[a]:_w[a];if(r)return r;if(_d.embeds){r=_d.embeds[a]}};return r}
function getFlashMovie2(a){if(_b.ie){var b=_d[a]}else{if(_d.embeds&&_d.embeds[a]){var b=_d.embeds[a]}};return b}
function getIframe(id){var a;if(_d.getElementById){return G(id)}else if(_w.frames&&_w.frames.length){return _w.frames[id]}}
function getIframeWin(a){if(a){if(a.contentWindow){return a.contentWindow}else if(a.contentDocument&&_b&&_b.opera){return a.contentDocument}else{return a}}}
function getIframeDoc(a){if(a){if(a.contentDocument){return a.contentDocument}else if(a.contentWindow.document){return a.contentWindow.document}else if(a.document){return a.document}}}
function getQuerystring(){var a="";if(location.href){var q=_w.location.search;if(q&&q.length>1){a=q.substring(1,q.length)}};return a}
var arrScrollers=new Array(),IFrameID=""
function AddScroller(a,b,c){var d=new Scroller(a);if(b!=""){if(!geEl(c)){alert("Scroller cannot be setup due to no loading iframe with the id of '"+c+"'");return false};d.LoadFromFile=true;IFrameID=c;d.SourceFile=b}else{d.LoadFromFile=false};arrScrollers[arrScrollers.length]=d}
function Scroller(a){var b=this,c;c=G(a);var d=a+"_firstPage",e=a+"_secondPage";if(!G(d)||!G(e)){alert("Scroller setup incorrectly must specify a first and second page (id = scrollerID_firstPage)");return false};this.ScrollerName=c.id;this.FirstPage=G(d);this.SecondPage=G(e);this.LoadFromFile=false;this.SourceFile="";this.HTML="";this.MoveInterval=50;this.ScrollDelay=20;this.CanvasColor="transparent";this.LeftPadding=0;this.canvasLeft=c.style.left;this.canvasTop=c.style.top;this.canvasWidth=c.style.width;this.canvasHeight=c.style.height;this.canvas=c;this.UpperPage="";this.LowerPage="";this.ScrollSpeed=2;this.DoPause=1;this.CopySpeed=this.ScrollSpeed;this.PauseSpeed=(this.DoPause==0)?this.CopySpeed:0}
Scroller.prototype.MoveUp=function(){this.UpperPage.style.top=parseInt(this.UpperPage.style.top)-this.CopySpeed+"px";this.LowerPage.style.top=parseInt(this.LowerPage.style.top)-this.CopySpeed+"px";if(parseInt(this.LowerPage.style.top)<=0){if(this.UpperPage.clientHeight){this.UpperPage.style.top=parseInt(this.UpperPage.style.top)+parseInt(this.UpperPage.clientHeight)*2+"px"}else{this.UpperPage.style.top=parseInt(this.UpperPage.style.top)+parseInt(this.UpperPage.innerHeight)*2+"px"};this.RotateThePages()}}
Scroller.prototype.RotateThePages=function(){if(this.UpperPage==this.FirstPage){this.UpperPage=this.SecondPage;this.LowerPage=this.FirstPage;return true};this.UpperPage=this.FirstPage;this.LowerPage=this.SecondPage;return true}
Scroller.prototype.ScrollPages=function(){var a=this;setTimeout(function(){lefttime=setInterval(function(){a.MoveUp()},a.MoveInterval)},0)}
Scroller.prototype.LaunchScroller=function(){if(this.SecondPage.clientHeight){this.SecondPage.style.top=this.SecondPage.clientHeight}else{this.SecondPage.style.top=this.SecondPage.innerHeight};this.ScrollPages()}
Scroller.prototype.MakeSecondPage=function(){var a=this;this.SecondPage.style.left=this.LeftPadding;AD(a.SecondPage,'mouseover',function(){a.CopySpeed=a.PauseSpeed});AD(a.SecondPage,'mouseout',function(){a.CopySpeed=a.ScrollSpeed});this.LowerPage=this.SecondPage;if(this.SecondPage.style){this.SecondPage.style.visibility="visible"}else{this.SecondPage.visibility="visible"};this.LaunchScroller()}
Scroller.prototype.ShowAndScroll=function(){var a=this;this.FirstPage.style.left=this.LeftPadding;this.FirstPage.style.top="0px";if(this.FirstPage.style){this.FirstPage.style.visibility="visible"}else{this.FirstPage.visibility="visible"};this.UpperPage=this.FirstPage;AD(a.FirstPage,'mouseover',function(){a.CopySpeed=a.PauseSpeed});AD(a.FirstPage,'mouseout',function(){a.CopySpeed=a.ScrollSpeed});this.MakeSecondPage()}
Scroller.prototype.FillAllPages=function(){var a;if(_d.frames){a=this.HTML[0].innerHTML}else{a=this.HTML};this.FirstPage.innerHTML=a;this.SecondPage.innerHTML=a}
Scroller.prototype.MakeCanvas=function(){var bS=false;if(this.LoadFromFile){this.FillAllPages()};if(this.canvas.clip){this.canvas.clip.width=this.canvasWidth;this.canvas.clip.height=this.canvasHeight}else{this.canvas.style.clip="rect(0 "+this.canvasWidth+" "+this.canvasHeight+" 0)"};if(this.canvas.style){bS=true;this.canvas.style.width=this.canvasWidth;this.canvas.style.height=this.canvasHeight}else{this.canvas.width=this.canvasWidth;this.canvas.height=this.canvasHeight};this.canvas.style.left=this.canvasLeft;this.canvas.style.top=this.canvasTop;this.canvas.style.backgroundColor=this.CanvasColor;if(bS){this.canvas.style.visibility="visible"}else{this.canvas.visibility="visible"}}
Scroller.prototype.FillCanvas=function(){var a=this;if(this.LoadFromFile){if(_d.frames){this.HTML=_d.frames(IFrameID).document.all.tags("body")}else{var b=G(IFrameID).contentWindow.document.body;this.HTML=b.innerHTML.toString()}};this.MakeCanvas();setTimeout(function(){a.ShowAndScroll()},a.ScrollDelay)}
var Loaded=0,intval
function LoadScrollers(){if(arrScrollers.length>=0){intval=setInterval(LoadScroller,200)}}
function LoadScroller(){if(Loaded<arrScrollers.length){var a=arrScrollers[Loaded];if(a.LoadFromFile){G(IFrameID).src=a.SourceFile};setTimeout(function(){a.FillCanvas()},100);Loaded++}else{clearInterval(intval)}}
function IsGecko(){var a=_n.userAgent,b=(a.indexOf('konqueror')!=-1)?true:false,c=((a.indexOf('safari')!=-1)&&(a.indexOf('mac')!=-1))?true:false,d=((!is_khtml)&&(_n.product)&&(_n.product.toLowerCase()=="gecko"))?true:false;if(d&&_n.appName.indexOf('gecko')==-1){return true}else{return false}}
function IsIE(){var a=_n.appName;if(!_w.opera&&a=="Microsoft Internet Explorer"){return true}else{return false}}
function IsFirefox(){if(!_w.opera&&_n.userAgent.indexOf('Firefox')!=-1){return true}else{return false}}
function IEVersion(){var a=_n.userAgent.toLowerCase(),b=_n.appVersion.toLowerCase(),c=(a.indexOf("mac")!=-1),d=b.indexOf('msie');if(d!=-1){if(c){var d=a.indexOf('msie');is_minor=parseFloat(a.substring(d+5,a.indexOf(';',d)))}else is_minor=parseFloat(b.substring(d+5,b.indexOf(';',d)));return is_minor}else{return-1}}
function IsIEversion(vs,cm){var r=-1;if(_w.opera){return r};var a=IEVersion();if(a==-1)return-1;switch(cm){case 0:if(is_minor==vs){r=1}else{r=0};break;case 1:if(is_minor>vs){r=1}else{r=0};break;case 2:if(is_minor<vs){r=1}else{r=0};break};return r}
function logJSFlash(){var p="/jobboard/inc/jwl.asp",u="js=1&f="+((_b.flashEnabled)?1:0)+"&fv="+Browser.flashVersion+"&sp="+((_b.spoof)?1:0);var i=new Image(1,1);i.src=p+"?"+u;i.onload=function(){return}}
ScriptOnDemand={};ScriptOnDemand.Loaded=Array();ScriptOnDemand.Timers={}
ScriptOnDemand.LoadScript=function(a,c){var b=_b,d=this;if(_d.createElement){var f=_d.getElementsByTagName('head')[0];if(d.Loaded.indexOf(a)==-1){var g=_d.createElement('script');g.setAttribute("type","text/javascript");g.setAttribute("src",a);if(typeof(c)=="function"){g.onload=g.onreadystatechange=function(){if((!g.readyState||g.readyState=="loaded"||g.readyState=="complete")){c();d.Loaded.push(a);f.removeChild(g);f=null;g=null}};if((b.name=="Safari"&&b.userAgent.match(/Version\/3/))||b.name=="Opera"){ScriptOnDemand.Timers[a]=setInterval(function(){if(/loaded|complete/.test(_d.readyState)){clearInterval(ScriptOnDemand.Timers[a]);c();d.Loaded.push(a);f.removeChild(g);f=null;g=null}},25)}};g.onerror=function(){throw("Error loading script: "+a+" "+e.toString());return true};f.appendChild(g)}else{if(typeof(c)=="function"){c()}}}}
function PageQuery(a){this.ParamValues={};this.ParamNo=0;var b,c="";if(a&&a.length>0){if(a.substring(0,1)!="?")a="?"+a;b=a}else{if(location.search.length>0){b=location.href}else{b=""}};this.ParseQuery=function(a){var d=/[?&]([^=]+)(?:=([^&#]*))?/g,e=/(\#.*$)/,f,h,i,j=0;while(f=d.exec(a)){h=denc(f[1]);val=denc(f[2]);if(this.ParamValues[h]){if(h&&h!="")this.ParamValues[h]=this.ParamValues[h]+","+val}else{this.ParamValues[h]=val;j++}};this.ParamNo=j;i=e.exec(a);if(i)c=i[0].replace("#","")};if(b.length){this.ParseQuery(b)};this.GetValue=function(h){if(!this.ParamValues[h])return "";return this.ParamValues[h]};this.GetAnchor=c;this.OutputParams=function(){var k="";if(this.ParamValues&&this.ParamNo>0){for(var h in this.ParamValues){k+=h+": "+this.ParamValues[h]+"\n"}};if(c!="")k+="Anchor: "+c+"\n";return k}}
function enumObj(a){for(var x in a){}}
function enhanceDocument(){if(!/\benhanced\b/.exec(_d.body.className)){_d.body.className+=' enhanced'};var a=_d.getElementsByTagName('link');for(i=0;i<a.length;i++){if(/\bbasicNoCascade\b/.exec(a[i].className)){a[i].disabled=true};if(/\benhanced\b/.exec(a[i].className)){a[i].disabled=true;a[i].disabled=false}};_b.cssEnhanced=true}
function createCookie(a,b,c){if(c){var d=new d();d.setTime(d.getTime()+(c*24*60*60*1000));var e="; expires="+d.toGMTString()}else var e="";_d.cookie=a+"="+escape(b)+e+"; path=/"}
function readCookie(a){var b=a+"=",ca=_d.cookie.split(';');for(var i=0;i<ca.length;i++){var c=ca[i];while(c.charAt(0)==' ')c=c.substring(1,c.length);if(c.indexOf(b)==0)return unescape(c.substring(b.length,c.length))};return null}
function enc(a){var c=encodeURIComponent||escape;return c(a)}
function getXmlHttp(){var a,b,c="",d=false,f=["MSXML2.XMLHTTP.5.0","MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","MICROSOFT.XMLHTTP.1.0","MICROSOFT.XMLHTTP.1","MICROSOFT.XMLHTTP"];if(typeof XMLHttpRequest!='undefined'){try{a=new XMLHttpRequest();d=true}catch(e){}};if(!d&&typeof ActiveXObject!='undefined'){for(var i=0;i<f.length;i++){b=f[i];try{new ActiveXObject(b);c=b;break}catch(e){}};if(c!=""){try{a=new ActiveXObject(c);d=true}catch(e){}}};if(!d&&_w.createRequest){try{a=_w.createRequest();d=true}catch(e){}};if(d&&typeof(a)=="object"){_b.AJAXEnabled=true}else{_b.AJAXEnabled=false};return a}
X=xmlhttpPost=function(a,b,c,d,e){var f=false;if(_b.AJAXEnabled==false){f=true}else{var g=getXmlHttp();if(typeof(g)!="object"||!_b.AJAXEnabled){f=true}};if(f){cl=_w.location.href;if(cl.indexOf('/jobboard/cands/userTest.asp')==-1){_w.location.href="/jobboard/cands/userTest.asp?er=1"};return}else{g.open("POST",a,true);g.setRequestHeader("Content-Type","application/x-www-form-urlencoded");var handler=function(){handleXMLHttpResponse(arguments.callee,arguments.callee.xmlhttp)};handler.xmlhttp=g;handler.strResultFunc=c;handler.param1=d;handler.param2=e;handler.url=a;handler.submit=b;g.onreadystatechange=handler;g.send(b)}}
function handleXMLHttpResponse(a,b){if(b.readyState==4){var c=a.param1,d=a.param2,f=a.url,g=a.strResultFunc,h=b.responseText;var i=-1;try{i=b.status;switch(i){case 404:alert('Error: Not Found. The requested URL '+f+' could not be found.');break;case 500:handleErrFullPage(h);break;default:if(h.indexOf('Error:')>-1||h.indexOf('Debug:')>-1){alert(h)}else{if(g!=''){g.call(this,h,c,d)}else{}};break}}catch(e){return}};return}
function handleErrFullPage(a){alert("handle full error = "+a);return;var b;try{b=_w.open('','errorWin');if(b){b.document.write('<html><head><title>Error Message</title></head><body>'+a+'</body></html>');b.document.close()}else{throw(a)}}catch(e){alert('An error occurred, but the error message cannot be displayed because of your browser\'s pop-up blocker.\nPlease allow pop-ups from this Web site.\n\n\The error message was\n\n'+a)}}
var gstrList='',gbReq=false;
function getMouseXY(e){if(!e)e=GetEvent(e);var a=0,b=0;if(e){if(e.pageX||e.pageY){a=parseInt(e.pageX+10);b=parseInt(e.pageY)}else if(e.clientX||e.clientY){var c=getScrollPosition();a=parseInt(e.clientX)+10+c.x;b=parseInt(e.clientY)+c.y}};var mouse={'x':a,'y':b};return mouse}
function getViewportSize(){var a=0,b=0;if(typeof self.innerWidth!='undefined'){a=self.innerWidth;b=self.innerHeight}else if(typeof _d.documentElement!='undefined'&&typeof _d.documentElement.clientWidth!='undefined'&&_d.documentElement.clientWidth!=0){a=_d.documentElement.clientWidth;b=_d.documentElement.clientHeight}else{a=_d.getElementsByTagName('body')[0].clientWidth;b=_d.getElementsByTagName('body')[0].clientHeight};var size={"width":a,"height":b};return size}
function getScrollPosition(){var x=0,y=0;if(typeof(_w.pageYOffset)=='number'){x=_w.pageXOffset;y=_w.pageYOffset}else if(typeof(_d.documentElement)!='undefined'&&(_d.documentElement.scrollLeft||_d.documentElement.scrollTop)){x=_d.documentElement.scrollLeft;y=_d.documentElement.scrollTop}else if(_d.body&&(_d.body.scrollLeft||_d.body.scrollTop)){x=_d.body.scrollLeft;y=_d.body.scrollTop};var position={'x':x,'y':y};return position}
function getPageSize(){var a=getViewportSize();if(_w.innerHeight&&_w.scrollMaxY){xScroll=_d.body.scrollWidth;yScroll=_w.innerHeight+_w.scrollMaxY}else if(_d.body.scrollHeight>document.body.offsetHeight){xScroll=_d.body.scrollWidth;yScroll=_d.body.scrollHeight}else{xScroll=_d.body.offsetWidth;yScroll=_d.body.offsetHeight};if(yScroll<a.height){pageHeight=a.height}else{pageHeight=yScroll};if(xScroll<a.width){pageWidth=a.width}else{pageWidth=xScroll};var pageSize={"pageWidth":pageWidth,"pageHeight":pageHeight,"viewportWidth":a.width,"viewportHeight":a.height};return pageSize}
function findBodyPos(a){var b=_d.body.offsetTop,c=_d.body.offsetLeft;if(_b.doesNotIncludeMarginInBodyOffset){b+=parseInt(getCSSStyle(a,"marginTop",_w),10)||0,c+=parseInt(getCSSStyle(a,"marginLeft",_w),10)||0};return{"left":c,"top":b}}
function getObjDesc(a,p){p=p||false;var s="";s+="Object Type: "+(typeof(a))+" - ";s+="Object: "+a+" - ";s+=((a===_w)?"WINDOW":(a===_d)?"DOCUMENT":(a.nodeName)?a.nodeName.toString().toUpperCase():"")+" - ";s+=((a.id)?"id: "+a.id+" - ":"");s+=((a.name)?"name: "+a.name+" - ":"");s+=((a.tagName)?"tagName: "+a.tagName+" - ":"");s+=((a.nodeType)?"nodeType: "+a.nodeType+" - ":"");s+=(!p)?(a.parentNode)?"[ PARENT DETAILS = "+getObjDesc(a.parentNode,true)+"]":"[ NO PARENT NODE ]":"";if(p)return s;return ""}
function findPos(a){getObjDesc(a);var b=0,c=0;if(!a)return{"left":b,"top":c};if(_d.documentElement["getBoundingClientRect"]){if(a===a.ownerDocument.body){return findBodyPos(a)};var e=a.getBoundingClientRect(),doc=a.ownerDocument,body=doc.body,docEl=doc.documentElement,clientTop=docEl.clientTop||body.clientTop||0,clientLeft=docEl.clientLeft||body.clientLeft||0,c=e.top+(self.pageYOffset||(_b.boxModel&&docEl.scrollTop)||body.scrollTop)-clientTop,b=e.left+(self.pageXOffset||(_b.boxModel&&docEl.scrollLeft)||body.scrollLeft)-clientLeft}else{if(a.x&&a.y){c+=a.y;b+=a.x}else{if(a===a.ownerDocument.body){return findBodyPos(a)}else{var g=a,j=g.offsetParent,k=g,doc=g.ownerDocument,computedStyle,docElem=doc.documentElement,body=doc.body,defaultView=doc.defaultView,prevComputedStyle=defaultView.getComputedStyle(g,null),c=g.offsetTop,b=g.offsetLeft;while((g=g.parentNode)&&g!==body&&g!==docElem){computedStyle=defaultView.getComputedStyle(g,null);c-=g.scrollTop,b-=g.scrollLeft;if(g===j){c+=g.offsetTop,b+=g.offsetLeft;if(_b.doesNotAddBorder&&!(_b.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(g.tagName)))c+=parseInt(computedStyle.borderTopWidth,10)||0,b+=parseInt(computedStyle.borderLeftWidth,10)||0;k=j,j=g.offsetParent};if(_b.subtractsBorderForOverflowNotVisible&&computedStyle.overflow!=="visible")c+=parseInt(computedStyle.borderTopWidth,10)||0,b+=parseInt(computedStyle.borderLeftWidth,10)||0;prevComputedStyle=computedStyle};if(prevComputedStyle.position==="relative"||prevComputedStyle.position==="static")c+=body.offsetTop,b+=body.offsetLeft;if(prevComputedStyle.position==="fixed")c+=Math.max(docElem.scrollTop,body.scrollTop),b+=Math.max(docElem.scrollLeft,body.scrollLeft)}}};return{"left":b,"top":c}}
function findPosition(a){var b=findPos(a);return{"x":b.left,"y":b.top}}
function getElementStyle(a,b,c,d){var e=(b=="")?(c=="")?"":c:b;if(e!=""){return getCSSStyle(a,e,d)}else{return ""}}
function setStyles(b,c){var js;b=getObj(b);if(!b||!c)return;for(var a in c){js=toCamelCase(a);b.style[js]=c[a]};return}
function fadeTo(a,b,to,c,d){var e=new Date().getTime()+c;var f=function(){setOpacity(a,b);if(b==to){if(typeof d=="function"){d.call(this)};return};c=e-new Date().getTime();b=(c<=50)?to:b+(to-b)/(c/50);setTimeout(f,50)};f()}
function getOpacity(a){if(_b.opacity){return a.style["opacity"]}else{var b=a.style["filter"].match(/opacity\=(\d+)/i);return b?parseFloat(b[1]/100)+"":1}}
function setOpacity(a,b){if(_b.opacity){a.style["opacity"]=b}else{a.style.zoom=1;a.style.filter=(a.style.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(b)+''=="NaN"?"":"alpha(opacity="+Math.round(b*100)+")")}}
function getBorderAndMargin(el){var a,b,c,d,pl,pr,pt,pb,ml,mr,mt,mb,bh,bw,ph,pw,mh,mw;el=getObj(el);a=parseInt(getCSSStyle(el,"border-left-width"));b=parseInt(getCSSStyle(el,"border-right-width"));c=parseInt(getCSSStyle(el,"border-bottom-width"));d=parseInt(getCSSStyle(el,"border-top-width"));bh=c+d;bw=a+b;pl=parseInt(getCSSStyle(el,"padding-left"));pr=parseInt(getCSSStyle(el,"padding-right"));pt=parseInt(getCSSStyle(el,"padding-top"));pb=parseInt(getCSSStyle(el,"padding-bottom"));ph=pt+pb;pw=pl+pr;ml=parseInt(getCSSStyle(el,"margin-left"));mr=parseInt(getCSSStyle(el,"margin-right"));mt=parseInt(getCSSStyle(el,"margin-top"));mb=parseInt(getCSSStyle(el,"margin-bottom"));mh=mb+mt;mw=ml+mr;return{"borderLeft":a,"borderRightWidth":b,"borderBottomWidth":c,"borderTopWidth":d,"borderHeight":bh,"borderWidth":bw,"paddingLeft":pl,"paddingRight":pr,"paddingHeight":ph,"paddingBottom":pb,"paddingHeight":ph,"paddingWidth":pw,"marginLeft":ml,"marginRight":mr,"marginTop":mt,"marginBottom":mb,"marginHeight":mh,"marginWidth":mw}}
function isVisible(a){while(a&&a!==_d){var es=getStyle(a,"display");if(es=='none')return false;a=a.parentNode};return true}
function getVisibleObj(a){arrEls=[];while(a&&a!==_d){var es=getStyle(a,"display");if(es=='none'){arrEls.push(a)};a=a.parentNode};return arrEls}
function Swap(a,b,c,d){var g;for(var x=0,l=b.length;x<l;x++){g=b[x];g.old={};for(var h in c){g.old[h]=g.style[h];g.style[h]=c[h]};enumObj(g.old)};d.call(a);for(var x=0,l=b.length;x<l;x++){g=b[x];for(var h in c){g.style[h]=g.old[h]};try{delete g.old}catch(e){g.old=null}}}
function getElementDimensions(el,c){el=getObj(el);if(el.style.display=="none"||el.style.display==null){el.style.display="block";el.style.display="none"};var w=0,h=0,cw=0,ch=0,bw=0,b,iw=0,ih=0,d=0,e=0,g=false;var i=getVisibleObj(el),s="Elements to make visible: ";for(var x=0;x<i.length;x++){s+=getDetails(i[x])+" - "+i[x].style.display+" - "+i[x].offsetWidth+" - "};function getElDim(){var j=el.style;w=el.offsetWidth,h=el.offsetHeight,cw=el.clientWidth,ch=el.clientHeight;if(j.pixelWidth){d=j.pixelWidth,e=j.pixelHeight;if((d>0||e>0)&&(w>0||h>0)){g=true;if(_b.boxModel&&!c){bpw=w-d,bph=h-e}}};if(el.id=="divJobtypeExtra"){enumObj(el);enumObj(el.style)};if(c||!g||!_b.boxModel){var k=getBorderAndMargin(el);bpw=k.borderWidth+k.paddingWidth;bph=k.borderHeight+k.paddingHeight}};if(i&&i.length>0){var styles={visibility:"hidden",display:"block"};Swap(el,i,styles,getElDim)}else{getElDim()};if(_b.boxModel){iw=w-bpw,ih=h-bph}else{iw=d||(w-bpw),ih=e||(h-bph)};var ret={"BoxModel":_b.boxModel,"QuirksMode":_b.quirksMode,"width":w,"height":h,"clientWidth":cw,"clientHeight":ch,"innerWidth":iw,"innerHeight":ih,"boxExtaWidth":bpw,"boxExtraHeight":bph};if(c){for(var a in k){ret[a]=k[a]}};return ret}
function getCSSStyle(el,a,b){if(!b)b=_w;doc=b.document;var c,e=getObj(el),g=e.style;if(e){if(a=="opacity"){return getOpacity(e)}else if(a=="fontSize"||a=="font-size"){return getFontSize(e).style}else if(a=="width"){return getElementDimensions(e).width}else if(a=="height"){return getElementDimensions(e).height};if(a.match(/float/i)){a=_b.styleFloat}ret=getStyle(e,a);if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){if(/(em|ex|%|in|cm|mm|pt|pc|small|medium|large|thin|thick)$/i.test(ret)){ret=getPixelSize(e,ret)}};return ret}}
function toCamelCase(a){var b=a.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase()});return b}
function toCSSProp(b){return b.replace(/([A-Z])/g,"-$1").toLowerCase()}
function getStyle(el,a){var b=getObj(el),c="",d=(b.ownerDocument||b.document||_d),e=toCamelCase(a),g=toCSSProp(a);if(typeof d.defaultView!=='undefined'&&typeof d.defaultView.getComputedStyle!=='undefined'){if(a.match(/float/i)){a="float"}var h=d.defaultView.getComputedStyle(b,null);if(h){ret=h.getPropertyValue(g)}}else if(b.currentStyle){ret=b.currentStyle[e]}else if(b.style[e]){ret=b.style[e]};return ret}
fontCache={}
function getFontSize(el){var em,px,a,fs,u,b,cn,c=false,d=false;el=(typeof(el)=="string")?G(el):el;cn=(el.id)?el.id:(el.tagName=="BODY")?"BODY":"";fs=getStyle(el,"fontSize");if(cn&&fontCache[cn]){if(fontCache[cn].style==fs){return fontCache[cn]}};u=fs.match(/^\d*\.?\d*\s*([\w%]+)$/)[1];if(fs!="1em"){a=getPixelSize(el,"1em")}else{a=px};if(u=="em"){px=em2px(fs,el);em=fs}else{if(u=="%"){if(el.tagName=="BODY"){px=getPixelSize(el,"1em")}else{var ps=getFontSize(el.parentNode||el);if(/%$/.test(ps.style)){if(ps.style==fs){d=true}};var px=((ps.px/100)*parseFloat(fs))}}else if(u=="pt"){px=Math.round(1.3333*parseFloat(fs))}else if(u=="px"){px=parseFloat(fs)}else{px=getPixelSize(el,fs)};if(d){var e=getPixelSize(el,"1em",true);if(e==px){c=false}else{if(e==a){px=e;c=true}}};em=px2em(parseFloat(px),el)};var fontSize={"style":fs,"px":px,"em":em,"emu":a,"auto":(c)?"auto":"NA"};if(cn){fontCache[cn]=fontSize};return fontSize}
function calcRealSize(a){var b,c,d,e;d=_d.createElement("div");d.style.visibility="hidden";var w=0,h=0;if(typeof a=="object"&&a!=null){e=a.style.display;a.style.display="inline";d.appendChild(a.cloneNode(true));d.style.display="inline";_d.body.appendChild(d);w=d.offsetWidth;h=d.offsetHeight;a.style.display=e;_d.body.removeChild(d)}else if(typeof a=="string"&&a!=""){e=d.style.display;d.innerHTML=a;d.style.display="inline";_d.body.appendChild(d);w=d.offsetWidth;h=d.offsetHeight;d.style.display=e;_d.body.removeChild(d)};return{width:w,height:h}}
function getPixelSize(el,a){var px,el=(!el)?_d.body:(typeof(el)=="string")?G(el):el,ue=el.tagName.toUpperCase();if(_b.w3cDOM&&_b.createElement){var b=_d.createElement("div");b.style.position="absolute";b.style.visibility='hidden';b.style.lineHeight='0';if(!force&&ue!="BODY"&&(/(%|em)$/.test(a)||ue==="IMG")){el=el.parentNode||el;b.style.height=a}else{b.style.borderStyle='solid';b.style.borderBottomWidth='0';b.style.borderTopWidth=a};el.appendChild(b);px=b.offsetHeight;el.removeChild(b)}else if(el.currentStyle&&/%$/.test(a)){var c=el.style,d=c.left,e=el.runtimeStyle.left;el.runtimeStyle.left=el.currentStyle.left;c.left=ret||0;px=c.pixelLeft;c.left=d;el.runtimeStyle.left=e};return px||0}
function px2em(px,el){if(!px||px=="0")return 0;var em=getPixelSize(el,"1em"),a=(((px/em)*100)/100).toFixed(2);return a}
function em2px(em,el){if(!em||em=="0")return 0;em=parseFloat(em)+"em";var px=getPixelSize(el,em);return px}
function getDimensions(id){var a=getElementDimensions(id,false);if(a.BoxModel){width=a.width,height=a.height}else{width=a.innerWidth+a.boxExtraWidth,height=a.innerHeight+a.boxExtraHeight};var dimensions={"width":width,"height":height};return dimensions}
function getWidth(id){var a=0,el=getObj(id);if(!el){return 0};if(_b.w3cDOM){return el.offsetWidth||el.clientWidth}else{if(_b.dom==3){a=parseInt(el.document.width)}};if(typeof(a)!='number'||a==0){var b=(el.style)?el.style:el;a=b.width||b.pixelWidth};if(a&&!/^\d+(px)?$/i.test(a)&&/^\d/.test(a)){a=getPixelSize(el,a)};return parseInt(a)}
function getHeight(id){var a=0,el=getObj(id);if(!el){return 0};if(_b.w3cDOM){return el.offsetHeight||el.clientHeight}else{if(_b.dom==3){a=parseInt(el.document.height)}};if(typeof(a)!='number'||a==0){var b=(el.style)?el.style:el;a=b.height||b.pixelHeight};if(a&&!/^\d+(px)?$/i.test(a)&&/^\d/.test(a)){a=getPixelSize(el,a)};return parseInt(a)}
function setClasses(){var a=["setFocus","setDrag","setPopup","salaryMask","setSystemHelp"],b=_d.getElementsByTagName("*");for(var i=0;i<b.length;i++){if(b[i].className.indexOf(" ")>=0){var c=b[i].className.split(" ");for(var j=0;j<c.length;j++){if(inArray(a,c[j])>=0){runSetClass(b[i],c[j])}}}else if(inArray(a,b[i].className)>=0){runSetClass(b[i],b[i].className)}}}
function runSetClass(el,a){switch(a){case "setFocus":setFocus(el);break;case "setDrag":setDraggable(el);break;case "setPopup":setPopup(el);break;case "salaryMask":setSalaryMask(el);break;case "setSystemHelp":setSystemHelp(el);break;default:break}}
function setSystemHelp(el){if(typeof(el)=="string"){el=G(el)};if(el&&el.tagName.toLowerCase()=="a"){AD(el,"click",function(e){ON('sysHelp',800,600,0,0,1,0,1,0,0,0,el.href,'sysHelp',"");StopEvent(e);return false})}}
function setSalaryMask(el){if(typeof(el)=="string")el=G(el);if(el&&el.tagName.toLowerCase()=="input"){AD(el,"keydown",function(e){SalCharMask(e,this.value)})}}
function setPopup(el){if(typeof(el)=="string")el=G(el);if(el&&el.tagName.toLowerCase()=="a"){AD(el,"click",function(){ON('win_'+el.id,400,600,0,0,1,0,1,0,0,0,el.href,'win',"");return false})}}
function setFocus(el){if(typeof(el)=="string")el=G(el);var a=findPosition(el).y,height=getViewportSize(el).height,scroll=getScrollPosition(el).y;if(el){if(a<(height+scroll)){try{el.focus()}catch(e){}}}}
function setDraggable(el){if(typeof(el)=="string")el=G(el);if(el.tagName.toLowerCase()=="div"){AD(el,"mousedown",function(e){StartDrag(e,this.id)})}}
function setFocusAll(){var a=_d.getElementsByClassName('setFocus');if(a&&a.length>0){setFocus(a[0])}}
function setDraggableAll(){var el,a=_d.getElementsByClassName("setDrag");if(a&&a.length>0){for(var x=0;x<a.length;x++){setDraggable(a[x])}}}
function setPopupAll(){var el,a=_d.getElementsByClassName("setPopup");if(a&&a.length>0){for(var x=0;x<a.length;x++){setPopup(a[x].id)}}}
function setSalaryMaskAll(){var el,a=_d.getElementsByClassName("salaryMask");if(a&&a.length>0){for(var x=0;x<a.length;x++){setSalaryMask(a[x].id)}}}
DOM(function(){setClasses()});
var currentMenu=null,lastMenuStarter=null,mytimer=null,timerOn=false,opera=_w.opera?true:false;if(!_d.getElementById){_d.getElementById=function(){return null}}
function initialiseDummy(a,b){if(a){a.onmouseover=function(){containingMenu=this.parentNode.parentNode;for(var x=0;x<containingMenu.childNodes.length;x++){if(containingMenu.childNodes[x].nodeName.toUpperCase()=="LI"){if(containingMenu.childNodes[x].getElementsByTagName("ul").length>0){containingMenu.childNodes[x].getElementsByTagName("UL").item(0).style.visibility='hidden'}}}};a.onfocus=function(){a.onmouseover()}}}
function initialiseMenu(a,b,c){var d=false;if(a==null||b==null)return;currentMenu=a;b.onmouseover=function(){if(currentMenu){if(this.parentNode.parentNode!=currentMenu){currentMenu.style.visibility="hidden";hideAllMenus(currentMenu,c)};if(this.parentNode.parentNode==c){while(currentMenu.parentNode.parentNode!=c){currentMenu.parentNode.parentNode.style.visibility="hidden";currentMenu=currentMenu.parentNode.parentNode}};currentMenu=null;this.showMenu()}};a.onmouseover=function(){if(currentMenu){currentMenu=null;this.showMenu()}};b.showMenu=function(){if(!opera){if(this.parentNode.parentNode==c){a.style.left=this.offsetLeft+"px";a.style.top=this.offsetTop+this.offsetHeight+"px";if(a.offsetWidth<this.offsetWidth)a.style.width=this.offsetWidth}else{a.style.left=this.offsetLeft+this.offsetWidth+"px";a.style.top=this.offsetTop+"px"}}else{var e=c.offsetLeft;if(this.parentNode.parentNode==c){a.style.left=this.offsetLeft-e+"px";a.style.width=this.offsetWidth;a.style.top=this.offsetHeight+"px"}else{a.style.left=this.offsetWidth-e+"px";a.style.top=this.offsetTop+"px"}};a.style.visibility="visible";currentMenu=a};b.onfocus=function(){b.onmouseover()};a.onfocus=function(){};a.showMenu=function(){a.style.visibility="visible";currentMenu=a;stopTime()};a.hideMenu=function(){if(!timerOn){mytimer=setInterval("killMenu('"+this.id+"', '"+c.id+"');",1000);timerOn=true;for(var x=0;x<a.childNodes.length;x++){if(a.childNodes[x].nodeName=="LI"){if(a.childNodes[x].getElementsByTagName("UL").length>0){menuItem=a.childNodes[x].getElementsByTagName("UL").item(0);menuItem.style.visibility="hidden"}}}}};a.onmouseout=function(b){this.hideMenu()};a.onblur=function(){this.hideMenu()};b.onmouseout=function(){for(var x=0;x<a.childNodes.length;x++){if(a.childNodes[x].nodeName=="LI"){if(a.childNodes[x].getElementsByTagName("UL").length>0){menuItem=a.childNodes[x].getElementsByTagName("UL").item(0);menuItem.style.visibility="hidden"}}};a.style.visibility="hidden"}}
function killMenu(a,b){var a=G(a),b=G(b);a.style.visibility="hidden";for(var x=0;x<a.childNodes.length;x++){if(a.childNodes[x].nodeName=="LI"){if(a.childNodes[x].getElementsByTagName("UL").length>0){menuItem=a.childNodes[x].getElementsByTagName("UL").item(0);menuItem.style.visibility="hidden"}}};while(a.parentNode.parentNode!=b){a.parentNode.parentNode.style.visibility="hidden";a=a.parentNode.parentNode};stopTime()}
function stopTime(){if(mytimer){clearInterval(mytimer);mytimer=null;timerOn=false}}
function getMenus(a,b){var c,d,e;for(var x=0;x<a.childNodes.length;x++){if(a.childNodes[x].nodeName.toUpperCase()=="LI"){if(a.childNodes[x].getElementsByTagName("UL").length>0){d=a.childNodes[x].getElementsByTagName("A").item(0);e=a.childNodes[x].getElementsByTagName("UL").item(0);getMenus(e,b);initialiseMenu(e,d,b)}else{initialiseDummy(a.childNodes[x].getElementsByTagName("A").item(0),b)}}}}
function hideAllMenus(a,b){for(var x=0;x<a.childNodes.length;x++){if(a.childNodes[x].nodeName.toUpperCase()=="LI"){if(a.childNodes[x].getElementsByTagName("UL").length>0){a.childNodes[x].getElementsByTagName("UL").item(0).style.visibility='hidden';hideAllMenus(a.childNodes[x].getElementsByTagName("UL").item(0),b)}}}}
function StartTopMenu(){if(G("topmenu")){var a=G("topmenu"),b=a.offsetLeft;getMenus(a,a)}}
A(StartTopMenu)
function setupFloatingContent(e){var a=G('contentFloat');if(a){var b=new PageQuery(),sc=b.GetValue("display"),oc=G('openContent');if(sc){openContent(e)};if(oc){AD(oc,"click",function(e){openContent(e)})}}}
DOM(function(e){setupFloatingContent(e)});var objContentFloat
function openContent(e){var cw,ch,x=0,y=0,cc=G('closeContent');if(cc){AD(cc,"click",function(e){HideObject(e,'contentFloat');StopEvent(e)})};objContentFloat=new Floater("contentFloat");setTimeout(showDiv,500)}
function showDiv(e){ShowObject(e,"contentFloat",0,0,'','',0,0);if(G('contentFloat').offsetWidth>G('container').offsetWidth){G('contentFloat').style.width=G('container').offsetWidth-100+"px"};if(G('contentFloat').offsetHeight>500){G('contentBlock').style.height="500px";G('contentBlock').style.overflow="auto"};objContentFloat.width=G('contentFloat').offsetWidth;objContentFloat.height=G('contentFloat').offsetHeight;var c=objContentFloat.CenterObject();objContentFloat.divStartLeft=c.startX;objContentFloat.divStartTop=c.startY;G('contentFloat').style.top=objContentFloat.divStartTop+"px";G('contentFloat').style.left=objContentFloat.divStartLeft+"px"}
var objFloaters={},currentFloater=null,debugCount=0,debugStep=10,objWinStats=null
function OutputWindowStats(){if(objWinStats&&typeof(objWinStats)=="object"){var a="CaptureMouse = "+objWinStats.captureMouse+", MouseX = "+objWinStats.mouseX+", MouseY = "+objWinStats.mouseY+", ScrollX = "+objWinStats.scrollX+", ScrollY = "+objWinStats.scrollY+", ViewportWidth = "+objWinStats.viewportWidth+", ViewportHeight = "+objWinStats.viewportHeight}else{}}
WindowStats=function(e){var a=this;this.mouseX=0;this.mouseY=0;this.scrollX=0;this.scrollY=0;this.viewportHeight=0;this.viewportWidth=0;this.debugMoves=10;this.debugStep=0;this.captureMouse=false;if(_d.captureEvents&&Event){_d.captureEvents(Event.MOUSEMOVE)};AD(_w,"scroll",function(e){a.UpdateScroll(e)});AD(_w,"resize",function(e){a.UpdateViewport(e)});AD(_d,"mousemove",function(e){if(a.captureMouse){a.UpdateMouse(e)}});this.UpdateWindowStats()}
WindowStats.prototype.Destroy=function(e){var a=this;this.captureMouse=false;RE(_w,"scroll",function(e){a.UpdateScroll(e)});RE(_w,"resize",function(e){a.UpdateViewport(e)});RE(_d,"mousemove",function(e){if(a.captureMouse){a.UpdateMouse(e)}});if(_d.captureEvents&&Event){_d.releaseEvents(Event.MOUSEMOVE)}}
WindowStats.prototype.UpdateWindowStats=function(e){this.UpdateMouse(e);this.UpdateScroll();this.UpdateViewport()}
WindowStats.prototype.UpdateMouse=function(e){if(!e)e=_w.event;var a=getMouseXY(e);this.mouseX=a.x;this.mouseY=a.y;if(this.debugMoves>0){if(this.debugStep==this.debugMoves){OutputWindowStats();this.debugStep=0}else{this.debugStep++}}}
WindowStats.prototype.UpdateScroll=function(e){var a=getScrollPosition();this.scrollX=a.x;this.scrollY=a.y}
WindowStats.prototype.UpdateViewport=function(){var a=getViewportSize();this.viewportHeight=a.height;this.viewportWidth=a.width;OutputWindowStats()}
ShowObject=function(e,id,a,b,c,d,f,g,i){var j,k,l;if(objFloaters[id]){j=objFloaters[id]}else{j=new Floater(e,id)};if(!j||!j.exists)return;if(!isNaN(parseInt(c))){j.internalWidth=c};if(!isNaN(parseInt(d))){j.internalHeight=d};if(!isNaN(parseInt(f))){j.internalWidthPadding=f};if(!isNaN(parseInt(g))){j.internalHeightPadding=g};var m=getDimensions(id);var w=parseInt(m.width),h=parseInt(m.height);if(isNaN(w)||w==0){if(j.internalWidth>0){j.width=j.internalWidth+j.internalWidthPadding}}else{j.width=w};if(isNaN(h)||h==0){if(j.internalHeight>0){j.height=j.internalHeight+j.internalHeightPadding}}else{j.height=h};j.origPrevMov=i;CheckHidden(j);if(a==0||b==0){var n=j.CenterObject();a=n.startX;b=n.startY};j.divStartLeft=a;j.divStartTop=b;j.divStyle.left=j.divStartLeft+j.px;j.divStyle.top=j.divStartTop+j.px;j.divStyle.display="block"}
Floater.prototype.CenterObject=function(){var a=this;var b=200,c=200;if(!isNaN(a.width)){var b=(objWinStats.viewportWidth/2)-(a.width/2);b+=objWinStats.scrollX};if(!isNaN(a.height)){var c=(objWinStats.viewportHeight/2)-(a.height/2);c+=objWinStats.scrollY};var center={"startX":b,"startY":c};return center}
CheckHidden=function(a){if(a&&objWinStats&&a.origPrevMov){if(a.width+50>objWinStats.viewportWidth||a.height+50>objWinStats.viewportHeight){a.prevMov=false}else{a.prevMov=true}}else{a.prevMov=false};return}
HideObject=function(e,id){var a,b;if(id){a=getFloatObj(id,null);if(a){b=a.divStyle}else{var el=G(id);b=(el.style)?el.style:el};b.display="none";if(a){a.intMotion=false;a.RemoveEvents();a=kill(a)};if(objFloaters[id]){objFloaters[id]=kill(objFloaters[id])}};if(objWinStats&&typeof(objWinStats)=="object"){objWinStats.Destroy()};objWinStats=kill(objWinStats)}
function Floater(e,id){this.id=id;this.el=G(id);if(!this.el){this.exists=false;return}else{this.exists=true};this.divStyle=(this.el.style)?this.el.style:this.el;this.posX=0;this.posY=0;this.posLastX=0;this.posLastY=0;this.startPosX=0;this.startPosY=0;this.divStartLeft=0;this.divStartTop=0;this.zIndex=10000;this.mousemove=null;this.mouseup=null;this.overDiv=false;this.inMotion=false;this.origPrevMov=false;this.prevMov=true;this.internalWidth=0;this.internalHeight=0;this.internalWidthPadding=0;this.internalHeightPadding=0;if(_b.dom==3){this.px=""}else{this.px="px"};objFloaters[id]=this;ShowFloaters();if(!objWinStats||typeof(objWinStats)!="object"){objWinStats=new WindowStats(e)}}
Floater.prototype.Destroy=function(e){this.RemoveEvents()}
Floater.prototype.RemoveEvents=function(e){var a=this;if(_d.captureEvents&&Event){_d.releaseEvents(Event.MOUSEDOWN|Event.MOUSEUP)};RE(_d,"mousemove",a.onmousemove);RE(_d,"mouseup",a.onmouseup);this.onmousemove=null;this.onmouseup=null;return}
function ShowFloaters(){for(var a in objFloaters){}}
function StartDrag(e,id){var a=getFloatObj(id,null);if(!a){StopEvent(e);return}else{a.inMotion=true};if(!objWinStats||typeof(objWinStats)!="object"){objWinStats=new WindowStats(e)}else{objWinStats.UpdateMouse(e)};if(_d.captureEvents&&Event){_d.captureEvents(Event.MOUSEDOWN|Event.MOUSEUP)};var el,x,y;if(!id){el=GetElementFromEvent(e)};objWinStats.captureMouse=true;objWinStats.UpdateMouse(e);a.startPosX=objWinStats.mouseX;a.startPosY=objWinStats.mouseY;if(isNaN(parseInt(a.divStyle.left))||isNaN(parseInt(a.divStyle.left))){var b=findPos(a.el);a.divStartLeft=b.left;a.divStartTop=b.top}else{a.divStartLeft=parseInt(a.divStyle.left,10);a.divStartTop=parseInt(a.divStyle.top,10)};a.divStyle.zIndex=++a.zIndex;var c=a.id;if(a.mousemove===null){a.onmousemove=function(e){Drag(e,a.id,a)};AD(_d,"mousemove",a.onmousemove)};if(a.mouseup===null){a.onmouseup=function(e){StopDrag(e,c,a)};AD(_d,"mouseup",a.onmouseup)};StopEvent(e)}
function ShowDebugStep(a){if(debugCount==debugStep){}}
function AdjustFloat(e,id,a){if(typeof(a)!="object"){if(objFloaters[id]){var a=objFloaters[id]}else{ShowDebugStep("no stored float object with this id = "+id);return}}}
function getFloatObj(id,a){if(!a||typeof(a)!="object"){if(objFloaters[id]){return objFloaters[id]}}else{return a}}
function Drag(e,id,a){if(!e){e=_w.event};a=getFloatObj(id,a);if(a){if(!a.inMotion){StopEvent(e);return};var x=objWinStats.mouseX,y=objWinStats.mouseY;if(x==0&&y==0){if(this.posLastX>=5){x=posLastX};if(this.posLastY>=5){y=posLastY}};var b=parseInt(a.divStartLeft+x-a.startPosX),c=parseInt(a.divStartTop+y-a.startPosY);if(a.prevMov){if(b<objWinStats.scrollX){b=objWinStats.scrollX}else{var d=parseInt(a.width);if(!isNaN(d)){if(b+d>objWinStats.viewportWidth+objWinStats.scrollX){b=(objWinStats.viewportWidth+objWinStats.scrollX)-d}}};if(c<objWinStats.scrollY){c=objWinStats.scrollY}else{var f=parseInt(a.height);if(!isNaN(f)){if(c+f>objWinStats.viewportHeight+objWinStats.scrollY){c=(objWinStats.viewportHeight+objWinStats.scrollY)-f}}}};a.divStyle.left=b+a.px;a.divStyle.top=c+a.px;if(x==0){if(this.posLastX<=5){this.posLastX=x}}else{this.posLastX=x};if(y==0){if(this.posLastY<=5){this.posLastY=y}}else{this.posLastY=y};StopEvent(e)};if(debugCount==debugStep){debugCount=0}else{debugCount++}}
function StopDrag(e,id,a){if(!e){e=_w.event};a=getFloatObj(id,a);if(!a){return};a.inMotion=false;a.RemoveEvents()}