
var debug=false;var ShowAlerts=false;var ErrorMessages=[];var alerts='';var ExpandTextareas=false;var resourcesFolder='/5/resources/';var doCheckPopupBlocker=false;var env;var showScreenInfo=false;var dosetRoundedCorners=true;var supportedbrowser=true;var supportedscreen=true;var prototypeAvailable=false;var ConsoleAvailable=false;var isIE6=false;var minW="1176";var minH="1500";if(!OldBrowserMsg){var OldBrowserMsg="WARNING: The browser that you are using (__browser__ __version__) doesn't support some features of this website.<br />Some elements of this site may not be displayed correctly. <a href=\"http://www.google.com/search?q=download+web+browser\">Using a different browser is highly recommended</a>.";}
function PrototypeTest(){if(typeof(Prototype)=="undefined"){return false;}
prototypeAvailable=true;log('Prototype Version: '+Prototype.Version);}
function ConsoleTest(){if(typeof(window.console)=="undefined"){return false;}
ConsoleAvailable=true;log('Console available');}
function isobject(o){return(typeof o!='object')?true:false;}
function findObj(theObj,theDoc){var p,i,foundObj;if(!theDoc)
theDoc=document;if((p=theObj.indexOf("?"))>0&&parent.frames.length){theDoc=parent.frames[theObj.substring(p+1)].document;theObj=theObj.substring(0,p);}
if(!(foundObj=theDoc[theObj])&&theDoc.all)
foundObj=theDoc.all[theObj];for(i=0;!foundObj&&i<theDoc.forms.length;i++)
foundObj=theDoc.forms[i][theObj];for(i=0;!foundObj&&theDoc.layers&&i<theDoc.layers.length;i++)
foundObj=findObj(theObj,theDoc.layers[i].document);if(!foundObj&&document.getElementById)
foundObj=document.getElementById(theObj);return foundObj;}
function addLoadEvent(func){var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}
else{window.onload=function(){if(oldonload){oldonload();}
func();}}}
addloadevent=addLoadEvent;RegisterOnLoad=addLoadEvent;addLoadListener=addLoadEvent;function addEventSimple(obj,evt,fn){if(obj.addEventListener)
obj.addEventListener(evt,fn,false);else
if(obj.attachEvent)
obj.attachEvent('on'+evt,fn);}
function removeEventSimple(obj,evt,fn){if(obj.removeEventListener)
obj.removeEventListener(evt,fn,false);else
if(obj.detachEvent)
obj.detachEvent('on'+evt,fn);}
if(!Array.prototype.push){Array.prototype.push=function(item){this[this.length]=item;return this.length;}}
if(!Array.prototype.shift){Array.prototype.shift=function(){firstElement=this[0];this.reverse();this.length=Math.max(this.length-1,0);this.reverse();return firstElement;}}
if(!Array.prototype.unshift){Array.prototype.unshift=function(){this.reverse();for(var i=arguments.length-1;i>=0;i--){this[this.length]=arguments[i]}
this.reverse();return this.length}}
String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,'');}
function getElementsByClassName(classname,node){if(!node)
node=document.getElementsByTagName("body")[0];var a=[];var re=new RegExp('\\b'+classname+'\\b');var els=node.getElementsByTagName("*");for(var i=0,j=els.length;i<j;i++)
if(re.test(els[i].className))
a.push(els[i]);return a;}
function CreateRoundedCorners(className,containerId){dump("CreateRoundedCorners");className=(className!=null)?className:"rounded";containerId=(containerId!=null)?containerId:"container";var allcorners='<div class="topleft"><!-- tl --></div><div class="topright"><!-- tr --></div><div class="bottomleft"><!-- bl --></div><div class="bottomright"><!-- br --></div>';var topcorners='<div class="topleft"><!-- tl --></div><div class="topright"><!-- tr --></div>';var bottomcorners='<div class="bottomleft"><!-- bl --></div><div class="bottomright"><!-- br --></div>';var corners=allcorners;var els=getElementsByClassName(className,document.getElementById(containerId));for(var i=0,j=els.length;i<j;i++){dump('Adding Rounded Corners to '+els[i].id);if(typeof Element!=undefined)Element.insert(els[i],corners);}}
function SetRoundedCorners(){CreateRoundedCorners();}
env={sw:0,sH:0,aW:0,aH:0,cD:0,pW:0,pH:0,wW:0,wH:0,sX:0,sY:0,sU:0,uW:0,uH:0,init:function(){env.sW=screen.width;env.sH=screen.height;env.aW=screen.availWidth;env.aH=screen.availHeight;env.cD=screen.colorDepth;if(debug)
log("Screen size: "+env.sW+"px x "+env.sH+"px");if(debug)
log("Screen available size: "+env.aW+"px x "+env.aH+"px");if(debug)
log("Screen colordepth: "+env.cD+"bit");arrPageSizes=env.getPageSize();env.pW=arrPageSizes[0];env.pH=arrPageSizes[1];env.wW=arrPageSizes[2];env.wH=arrPageSizes[3];if(debug)
log("Page size: "+env.pW+"px x "+env.pH+"px");if(debug)
log("Window size: "+env.wW+"px x "+env.wH+"px");var arrPageScroll=env.getPageScroll();env.sX=arrPageScroll[0];env.sY=arrPageScroll[1];if(debug)
log("Scrolling: "+env.sX+" x "+env.sY);arrScreenUsage=env.getScreenUsage();env.sU=arrScreenUsage[2];env.uW=arrScreenUsage[3];env.uH=arrScreenUsage[4];if(debug)
log("Total Screen Usage: "+env.sU+"% / Width: "+env.uW+"% / Height: "+env.uH+"%");},calculatePageSize:function(output){var arrPageSizes=env.getPageSize();env.pW=arrPageSizes[0];env.pH=arrPageSizes[1];env.wW=arrPageSizes[2];env.wH=arrPageSizes[3];if(debug)
dump("Page size: "+env.pW+"px x "+env.pH+"px");if(debug)
dump("Window size: "+env.wW+"px x "+env.wH+"px");},calculatePageScroll:function(output){var arrPageScroll=env.getPageScroll();env.sX=arrPageScroll[0];env.sY=arrPageScroll[1];if(debug)
dump("Scrolling: "+env.sX+" x "+env.sY);},calculateScreenUsage:function(){arrScreenUsage=env.getScreenUsage();env.sU=arrScreenUsage[2];env.uW=arrScreenUsage[3];env.uH=arrScreenUsage[4];if(debug)
dump("Total Screen Usage: "+env.sU+"% / Width: "+env.uW+"% / Height: "+env.uH+"%");},getPageSize:function(){var xScroll,yScroll;if(window.innerHeight&&window.scrollMaxY){xScroll=window.innerWidth+window.scrollMaxX;yScroll=window.innerHeight+window.scrollMaxY;}
else
if(document.body.scrollHeight>document.body.offsetHeight){xScroll=document.body.scrollWidth;yScroll=document.body.scrollHeight;}
else{xScroll=document.body.offsetWidth;yScroll=document.body.offsetHeight;}
var windowWidth,windowHeight;if(self.innerHeight){if(document.documentElement.clientWidth){windowWidth=document.documentElement.clientWidth;}
else{windowWidth=self.innerWidth;}
windowHeight=self.innerHeight;}
else
if(document.documentElement&&document.documentElement.clientHeight){windowWidth=document.documentElement.clientWidth;windowHeight=document.documentElement.clientHeight;}
else
if(document.body){windowWidth=document.body.clientWidth;windowHeight=document.body.clientHeight;}
if(yScroll<windowHeight){pageHeight=windowHeight;}
else{pageHeight=yScroll;}
if(xScroll<windowWidth){pageWidth=xScroll;}
else{pageWidth=windowWidth;}
arrayPageSize=new Array(pageWidth,pageHeight,windowWidth,windowHeight);return arrayPageSize;},getPageScroll:function(){var xScroll,yScroll;if(self.pageYOffset){yScroll=self.pageYOffset;xScroll=self.pageXOffset;}
else
if(document.documentElement&&document.documentElement.scrollTop){yScroll=document.documentElement.scrollTop;xScroll=document.documentElement.scrollLeft;}
else
if(document.body){yScroll=document.body.scrollTop;xScroll=document.body.scrollLeft;}
arrayPageScroll=new Array(xScroll,yScroll);return arrayPageScroll;},getScreenUsage:function(){var screensize,windowsize,PercentageTotal,PercentageWidth,PercentageHeight;screensize=env.sW*env.sH;windowsize=env.wW*env.wH;PercentageTotal=Math.ceil((windowsize/screensize)*100);PercentageWidth=Math.ceil((env.wW/env.sW)*100);PercentageHeight=(Math.ceil(env.wH/env.sH)*100);arrayScreenUsage=new Array(screensize,windowsize,PercentageTotal,PercentageWidth,PercentageHeight);return arrayScreenUsage;}}
function calcHeight(el,minHeight,minWidth){var f,c,minHeight,minWidth,fHeight,fWidth,newHeight,newWidth;var name='calcHeight';var extraHeight=50;var extraWidth=50;var setHeight=true;var setWidth=true;minHeight=typeof(minHeight)!='undefined'?minHeight:600;minWidth=typeof(minWidth)!='undefined'?minWidth:740;newHeight=minHeight;newWidth=minWidth;fHeight=minHeight;fWidth=minWidth;f=document.getElementById(el);if(typeof f=='undefined'||f.tagName.toLowerCase()!='iframe'){log(name+' : invalid target element');return false;}
c=(document.getElementById("Content"))?document.getElementById("Content"):document.getElementById("content");if(c==null){c=(document.getElementById("jobcontent"))?document.getElementById("jobcontent"):document.getElementById("container");}
if(typeof $$!='undefined'){if($('stepstone-de-v5')!=null){}
if($$("body")[0].hasClassName("popup")&&$$("body")[0].hasClassName("job")){log(name+' : iframe style.height set to '+f.style.height);setWidth=false;f.style.width="99.5%";f.setAttribute('width','99.5%');$$("body")[0].addClassName("iframe");}
if($$("body")[0].hasClassName("joblayout960")){log(name+' : joblayout960');minHeight=1000;minWidth=960;newHeight=minHeight;newWidth=minWidth;}}else{log(name+' : no prototype');}
if(setHeight){f.style.height=fHeight+"px";f.style.minHeight=fHeight+"px";f.setAttribute('height',fHeight);log(name+' : iframe style.height set to '+f.style.height);}
if(setWidth){f.style.width=fWidth+"px";f.setAttribute('width',fWidth);log(name+' : iframe style.width set to '+f.style.width);}
try{f.setAttribute("frameBorder","0");try{f.frameBorder=0;}catch(e){}
var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1?32:0
if(f.contentDocument&&f.contentDocument.body.scrollHeight){log(name+' : ns6 syntax trying body.scrollHeight');newHeight=f.contentDocument.body.scrollHeight+extraHeight;newWidth=f.contentDocument.body.scrollWidth+extraWidth;}else if(f.contentDocument&&f.contentDocument.documentElement.offsetHeight){log(name+' : ns6 syntax trying documentElement.offsetHeight');newHeight=f.contentDocument.documentElement.offsetHeight+extraHeight;newWidth=f.contentDocument.documentElement.offsetWidth+extraWidth;}else if(f.contentDocument&&f.contentDocument.body.offsetHeight){log(name+' : ns6 syntax trying body.offsetHeight');newHeight=f.contentDocument.body.offsetHeight+FFextraHeight+extraHeight;newWidth=f.contentDocument.body.offsetWidth+extraWidth;}else if(f.Document&&f.Document.body.scrollHeight){log(name+' : ie5+ syntax trying body.scrollHeight');newHeight=f.Document.body.scrollHeight+extraHeight;newWidth=f.Document.body.scrollWidth;}else{log(name+" error: problem getting the frame body dimensions");}
log(name+' : fHeight: '+newHeight+' minHeight: '+minHeight+' / fWidth: '+newWidth+' minWidth: '+minWidth);fHeight=(parseInt(newHeight)>=parseInt(minHeight))?newHeight:minHeight;fWidth=(parseInt(newWidth)>=parseInt(minWidth))?newWidth:minWidth;log(name+' : fHeight: '+fHeight+' / fWidth: '+fWidth);if(setHeight){f.style.height=fHeight+"px";f.style.minHeight=fHeight+"px";f.setAttribute('height',fHeight);log(name+' : iframe height set to '+fHeight);}
if(setWidth){f.style.width=fWidth+"px";f.setAttribute('width',fWidth);log(name+' : iframe width set to '+fWidth);}
if(c!=null&&typeof c=='object'){c.style.minHeight=fHeight+"px";log(name+' : c.style ok');}
return true;}catch(err){log(name+' : error : '+err.description);if(err.description=='undefined'){f.style.height=minHeight+"px";log(name+' set height to '+minHeight+'px');}
return false;}}
calcheight=calcHeight;CalcHeight=calcHeight;function checkPopupBlocker(){var name="checkPopupBlocker";var msg=name+" "+new Date();if(typeof Cookies.popUpsBlocked=='string'){cookie=Cookies.popUpsBlocked;var popUpsBlocked=cookie;msg+=" : popUpsBlocked:"+popUpsBlocked;log(msg);return true;}
if(typeof Cookies.popUpsBlocked=='undefined'){var mine=window.open('','','width=1,height=1,left=-1000px,top=-1000px,scrollbars=no');msg+=" : no Cookies.popUpsBlocked: mine:"+typeof mine;if(mine){var popUpsBlocked=false;msg+=" : closing mine";mine.close();}else{var popUpsBlocked=true;}
msg+=" : popUpsBlocked:"+popUpsBlocked;if(typeof Cookies.cookiecheck=='string'){msg+=" : setting Cookies.cookiecheck";Cookies.create('popUpsBlocked',popUpsBlocked);}}else{msg+=";Cookies.popUpsBlocked:"+Cookies.popUpsBlocked;}
if(typeof Cookies.cookiecheck=='undefined'){msg+=" : setting Cookies.cookiecheck";Cookies.create('cookiecheck',true);}
log(msg);return true;}
var Cookies={init:function(){var allCookies=document.cookie.split('; ');for(var i=0;i<allCookies.length;i++){var cookiePair=allCookies[i].split('=');this[cookiePair[0]]=cookiePair[1];}},create:function(name,value,days){if(days){var date=new Date();date.setTime(date.getTime()+(days*24*60*60*1000));var expires="; expires="+date.toGMTString();}
else
var expires="";document.cookie=name+"="+value+expires+"; path=/";this[name]=value;},erase:function(name){this.create(name,'',-1);this[name]=undefined;}};function setCookie(name,value,expiredays){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=name+"="+escape(value)+
((expiredays==null)?"":";expires="+exdate.toGMTString());}
function toggleCookie(name,expiredays,undefValue){if(getCookie(name)=="")
setCookie(name,undefValue,expiredays);else
if(getCookie(name)==1)
setCookie(name,0,expiredays);else
setCookie(name,1,expiredays);}
function getCookie(name){if(document.cookie.length>0){start=document.cookie.indexOf(name+"=");if(start!=-1){start=start+name.length+1;end=document.cookie.indexOf(";",start);if(end==-1)
end=document.cookie.length;return unescape(document.cookie.substring(start,end));}}
return"";}
function PopUp(url,name,w,h,scroll,menubar){var Window=null;LeftPosition=(screen.width)?(screen.width-w)/2:0;TopPosition=(screen.height)?(screen.height-h)/2:0;if(menubar==null){menubar=0;}
settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=1,menubar='+menubar;Window=window.open(url,"_blank",settings);}
function address(e){e=e.replace(/ dot /g,".");e=e.replace(/ at /g,"@");document.write(e);}
function noSpam(u,d,t){l="mailto:"+u+"@"+d+"."+t;window.location=l;}
function send(a,s,t){var url;url="mailto:"+a;if(s){url+='?subject='+s;}
if(t){date=new Date;if(debug)
dump(url+' is clicked on '+date.toString());}
window.location=url.toString();}
sendmail=send;mail=send;function url(u,t){var u;if(t=='_blank'){window.open=u;}
else{window.location=u;}}
goto=url;function hide(obj){el=findObj(obj);if(debug)
log('found: '+el.id);el.style.display='none';}
function log(msg){if(ErrorMessages&&typeof ErrorMessages=='object'){ErrorMessages.push(msg);}}
function dump(msg){if(msg!=null&&msg.length>0){alerts=msg;}
else{for(var i=0;i<ErrorMessages.length;i++){alerts+=ErrorMessages[i]+'\r\n';}}
if(debug){if(window.console&&console.log){console.log(alerts);}
else{if(window.opera&&opera.postError){opera.postError(alerts);}
else{if(window.alert&&ShowAlerts){alert(alerts);}}}}}
var FormHelpers={init:function(){if(ExpandTextareas){addLoadEvent(this.ExpandTextareas);}},ExpandTextareas:function(){var ts;ts=document.getElementsByTagName('textarea');for(var i=0;i<ts.length;i++){t=ts[i];log('Expanding:'+ts[i].id);ts[i].className+=' expand';ts[i].originalHeight=ts[i].offsetHeight;ts[i].onkeyup=function(){if(this.scrollHeight-Math.round(this.originalHeight/30)>this.originalHeight){this.style.height=this.scrollHeight+'px';}}}},validateEmail:function(strEmail){if(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,16})+$/.test(strEmail)){return true;}
else{return false;}},Trim:function(s){while(s.substring(0,1)==' '){s=s.substring(1,s.length);}
return s;},GoSelect:function(obj){if(typeof obj!='undefined'&&window){window.location=obj.options[obj.selectedIndex].value;}}};var BrowserDetect={init:function(theMsg){this.msg=theMsg;this.browser=this.searchString(this.dataBrowser)||"unknown";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"unknown";this.userAgent=this.browser+' '+this.version;this.OS=this.searchString(this.dataOS)||"unknown";this.check=this.checkBrowser(this.dataBrowser);this.checkVersion();},searchString:function(data){for(var i=0;i<data.length;i++){var dataString=data[i].string;var dataProp=data[i].prop;this.versionSearchString=data[i].versionSearch||data[i].identity;if(dataString){if(dataString.indexOf(data[i].subString)!=-1)
return data[i].identity;}
else
if(dataProp)
return data[i].identity;}},checkBrowser:function(data){for(var i=0;i<data.length;i++){required=data[i].required;if(this.browser==data[i].identity){if(this.browser==data[i].identity&&required){if(this.version>=data[i].required){return true;}
else{return false;}}
else{return true;}}}},searchVersion:function(dataString){var index=dataString.indexOf(this.versionSearchString);if(index==-1)
return;return parseFloat(dataString.substring(index+this.versionSearchString.length+1));},checkVersion:function(targetBrowser,minVersion){if(this.msg==null||this.msg.length==0)
return false;var Msg=this.msg.replace("__browser__",this.browser).replace("__version__",this.version);if(!this.check){supportedbrowser=false;this.resetCSS();document.write('<div id="goldbar">'+Msg+' <a href="#" onclick="javascript:hide(\'goldbar\');">X</a></div>');}},resetCSS:function(){document.write('<link rel="stylesheet" type="text/css" href="'+resourcesFolder+'css/reset.css" />');},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",required:"3"},{prop:window.opera,identity:"Opera",required:"8"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox",required:"2"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE",required:"6.0"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.userAgent,subString:"iphone",identity:"iphone"},{string:navigator.userAgent,subString:"ipod",identity:"ipod"},{string:navigator.platform,subString:"WinCE",identity:"Windows Mobile"},{string:navigator.platform,subString:"palm",identity:"palm"},{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"},{string:navigator.userAgent,subString:"symbian",identity:"symbian"},{string:navigator.userAgent,subString:"android",identity:"android"}]};function checkHeight(id){var el=findObj(id);if(!el){return false;}
return el.offsetHeight;}
function moveToTop(el,dif){dif+=5;el.style.top='-'+dif/1.75+'px';}
function removeElement(el){d=findObj(el);d.parentNode.removeChild(document.getElementById(el));}
function createPhoto(){photo=document.createElement('div');photo.setAttribute("id","Photo");thebox=findObj('DynamicBox');if(debug)
log('thebox:'+thebox.id);if(typeof thebox!='undefined'){thebox.appendChild(photo);}}
function domFunction(f,a){var n=0;var t=setInterval(function(){var c=true;n++;if(typeof document.getElementsByTagName!='undefined'&&(document.getElementsByTagName('body')[0]!=null||document.body!=null)){c=false;if(typeof a=='object'){for(var i in a){if((a[i]=='id'&&document.getElementById(i)==null)||(a[i]=='tag'&&document.getElementsByTagName(i).length<1)){c=true;break;}}}
if(!c){f();clearInterval(t);}}
if(n>=60){clearInterval(t);}},250);};addLoadEvent(ConsoleTest);addLoadEvent(PrototypeTest);BrowserDetect.init(OldBrowserMsg);if(debug)log('\n\nBrowser: '+BrowserDetect.userAgent+' / supported: '+supportedbrowser);FormHelpers.init();Cookies.init();if(doCheckPopupBlocker){checkPopupBlocker();}
addLoadEvent(env.init);if((BrowserDetect.browser.toLowerCase()=="explorer")&&(BrowserDetect.version<7)){var isIE6=true;}
if(dosetRoundedCorners){var rounding=new domFunction(function(){if(!document.getElementById('Footer'))return false;CreateRoundedCorners();},{'Footer':'id'});}
function randomiseList(element){if(!document.getElementById||!document.getElementsByTagName)return false;if(!document.getElementById(element))return false;var elem=document.getElementById(element);var quotes=elem.getElementsByTagName("li");var quote_count=quotes.length;var random_num=Math.floor((Math.random()*quote_count));for(var i=0;i<quote_count;i++){if(quotes[i]==quotes[random_num]){addClass(quotes[i],"selected");}else{addClass(quotes[i],"hide");}}}
function addClass(element,value){if(!element.className){element.className=value;}else{newClassName=element.className;newClassName+=" ";newClassName+=value;element.className=newClassName;}}
if(typeof OA_show!='function'){function OA_show(){dump("Dummy OA_show : was not defined");}}
if(showScreenInfo){addEventSimple(window,"resize",env.calculatePageSize);addEventSimple(window,"resize",env.calculateScreenUsage);addEventSimple(window,"scroll",env.calculatePageScroll);}
addLoadEvent(dump);function PriceListToggle(sec){var t=$(sec);if(t==null)return false;if(t.style.display=='none'){t.style.display='';$(sec+'-Link').style.backgroundPosition='left -8px';t.focus();}
else{t.style.display='none';$(sec+'-Link').style.backgroundPosition='left 3px';}}
function alignFrontContentBoxes(){var frontContent=$$('div.columnContent');if(frontContent==null)return false;var fC1=frontContent[0];var fC2=frontContent[1];if(fC1.getHeight()>fC2.getHeight()){fC2.style.height=fC1.getHeight()+'px';}else{fC1.style.height=fC2.getHeight()+'px';}}