document.onmousemove=dragMove;var _W=window,_D=document,popupEl,nrSteps=20,dragObj,dragX,dragY,dragZ=1,xmlhttp=false;_D.onmouseup=function(){try{dragObj=_D.onselectstart=_D.onmousemove=null}catch(e){}};var _currX=parseInt(0),_currY=parseInt(0);var is=new sniff(),op=is.opera;window.onload=init;function getCode(sHTML){if(sHTML.indexOf("<br>\n<b>Notice</b>:")>-1){return sHTML+'<p></p>';}else{sHTML=sHTML.replace(/[<]/g,'&lt;');sHTML=sHTML.replace(/[>]/g,'&gt;');return sHTML.replace(/&lt;div/g,'<br/><br/>&lt;div');}};function format_url(url){var this_anchor="";var parts=url.split("#");if(parts.length>1){this_anchor="#"+parts[1];};if(parts.length>0)url=parts[0];if(url.indexOf("stage=")==-1){if(url.indexOf("?")>0){url=url+"&stage=";}else{url=url+"?stage=";}};return url+this_anchor;};function rewrite_urls(){if(!document.getElementsByTagName)return false;var links=document.getElementsByTagName("a");for(var i=0;i<links.length;i++){if(links[i].className.match("doPopups")){links[i].onclick=function(){if((popupEl)&&(popupEl.getAttribute('title')==this.title)){killPopup(1);this.href="";}else{var _id='';if(typeof this.id!='undefined')_id=this.id;if(_id==""){_id="-1;-2;-1;-1";};var sUrl=format_url(this.href);makePopupAbs(null,_id,'',sUrl,this.title);return false;}}}else if(((links[i].className.match("intern_link"))||(links[i].href.indexOf("ruurd.eu")>0))){links[i].href=format_url(links[i].href);if(links[i].className.match("intern_link")){links[i].target="_self";}else if(links[i].className.match("extern_link")){links[i].target="_blank";}}};var forms=document.getElementsByTagName("form");for(var i=0;i<forms.length;i++){forms[i].action=format_url(forms[i].action);}};function init(){rewrite_urls();};function getElementStyle(_Object,IEStyleProp,CSSStyleProp){if(_Object.currentStyle){return _Object.currentStyle[IEStyleProp];}else if(window.getComputedStyle){var compStyle=window.getComputedStyle(_Object,"");return compStyle.getPropertyValue(CSSStyleProp);};return"";};function getElementStyleByID(elemID,IEStyleProp,CSSStyleProp){var elem=document.getElementById(elemID);if(elem.currentStyle){return elem.currentStyle[IEStyleProp];}else if(window.getComputedStyle){var compStyle=window.getComputedStyle(elem,"");return compStyle.getPropertyValue(CSSStyleProp);};return"empty";};function getPosition(theElement){var positionX=0;var positionY=0;while(theElement!=null){positionX+=theElement.offsetLeft;positionY+=theElement.offsetTop;theElement=theElement.offsetParent;};return new Array(positionX,positionY);;};function sniff(){var t=this,T=true,F=false,n=navigator,ua=n.userAgent.toLowerCase();t.ver=parseInt(n.appVersion);t.mac=ua.indexOf('mac')!=-1;t.win=!t.mac&&ua.indexOf('wind')!=-1||ua.indexOf('16bit')!=-1;t.safari=ua.indexOf('safari')!=-1;t.firefox=ua.indexOf('firefox')!=-1;t.chrome=ua.indexOf('chrome')!=-1;t.konq=ua.indexOf('konqueror')!=-1;t.khtml=t.safari||t.konq;t.opera=_W.opera?T:F;t.opera5=ua.indexOf('opera 5')!=-1||ua.indexOf('opera/5')!=-1;t.opera6=ua.indexOf('opera 6')!=-1||ua.indexOf('opera/6')!=-1;t.opera7=t.opera&&_D.createComment?T:F;t.ie5=t.ie55=t.ie6=F;t.ie=_D.all&&!t.opera&&ua.indexOf('msie')!=-1?T:F;if(t.ie){t.ieBox=_D.compatMode!='CSS1Compat';t.ie5=!_D.fireEvent?T:F;t.ie55=_D.fireEvent&&!_D.createComment?T:F;t.ie6=_D.fireEvent&&_D.createComment?T:F
t.ie4=_D.body&&(_D.body.clientWidth||_D.body.clientHeight);var ver=n.appVersion;var thestart=parseFloat(ver.indexOf("MSIE"))+1;t.ver=parseFloat(ver.substring(thestart+4,thestart+7));};t.gecko=!t.khtml&&!_D.all&&!t.opera&&_D.getElementById?T:F;t.ns4=n.appName=='Netscape'&&t.ver==4};function gE(e){if(_D.getElementById)return _D.getElementById(e);if(_D.all)return _D.all[e]};function sE(e){e.style.visibility='visible'};function hE(e){e.style.visibility='hidden'};function SE(e){e.style.display=''};function HE(e){e.style.display='none'};function sX(e,x){op?e.style.pixelLeft=x:e.style.left=x+'px'};function sY(e,y){op?e.style.pixelTop=y:e.style.top=y+'px'};function sW(e,w){op?e.style.pixelWidth=w:e.style.width=w+'px'};function sH(e,h){op?e.style.pixelHeight=h:e.style.height=h+'px'};function wH(e,h){e.innerHTML=h};function SW(e,w){op?e.style.pixelWidth=w:e.style.width=w+'px'};function SH(e,h){op?e.style.pixelHeight=h:e.style.height=h+'px'};if(!xmlhttp&&typeof XMLHttpRequest!='undefined'){xmlhttp=new XMLHttpRequest();};function getWinSize(what){if(what=='height')return(is.ie)?(is.ieBox)?_D.body.clientHeight:_D.documentElement.clientHeight:_W.innerHeight;if(what=='width')return(is.ie)?(is.ieBox)?_D.body.clientWidth:_D.documentElement.clientWidth:_W.innerWidth;};function calcLoc(_width,_height){var _clientHeight=getWinSize("height");var _clientWidth=getWinSize("width");if(_width==-1)_width=_clientWidth-100;if(_height==-1)_height=(_clientHeight/2);_currY=parseInt(_currY)+10;if((parseInt(_currY)+parseInt(_height))>_clientHeight){_currY=_clientHeight-(_height/4);}else if(parseInt(_currY)<10)_currY=10;if(parseInt(_currX)<10)_currX=10;return new Array(parseInt(_currX),parseInt(_currY),parseInt(_width),parseInt(_height),parseInt(_clientWidth),parseInt(_clientHeight));};function PopUp(url,title,_width,_height){makePopupAbs(null,'-1;-2;'+_width+';'+_height,'',url,title);};function makePopup(e,width,height,url,title){var setlocation='-1;-1;'+String(width)+';'+String(height);makePopupAbs(e,String(setlocation),'',url,title);};function makePopupAbs(e,setlocation,style,url,title){part=setlocation.split(";");var left=Number(part[0]);var top=Number(part[1]);var _loc=calcLoc(part[2],part[3]);var _clientHeight=_loc[5];var _clientWidth=_loc[4];var width=_loc[2];var height=_loc[3];if((popupEl)&&(popupEl.getAttribute('title')==title)){killPopup(1);return;};killPopup(1);if(!e){e=new Object();};var calcWidth=(width>2);if(left<0){var sl;if(left==-2){e.clientX=_loc[0];}else{if(calcWidth)e.clientX=(_clientWidth/2)-(width/2);else
e.clientX=(_clientWidth/2);};left=e.clientX;if((is.ie)&&(is.ver<9)){sl=(is.ieBox)?_D.body.scrollLeft:_D.documentElement.scrollLeft;}else{sl=_W.pageXOffset;}}else{sl=-1;};if(!calcWidth){width=(getWinSize("width")-left+width);};var calcHeight=(height>2);if(top<0){var st;if(top==-3){if(calcHeight)e.clientY=_loc[1]-(height/2);else
e.clientY=_loc[1];}else if(top==-2){e.clientY=_loc[1];}else{if(calcHeight)e.clientY=(_clientHeight/2)-(height/2);else
e.clientY=(_clientHeight/2);};top=e.clientY;if(is.ie){st=(is.ieBox)?_D.body.scrollTop:_D.documentElement.scrollTop;}else{st=_W.pageYOffset;};st+=1;}else{st=-1;};if(arguments.length!=5){title="";};if(!calcHeight){height=(getWinSize("height")-top+height);};popupEl=_D.createElement('div');popupEl.className='popup';popupEl.setAttribute('id','captionWindow');popupEl.setAttribute('title',title);popupEl.onmousedown=function(event){dragStart(event,this)};_D.body.appendChild(popupEl);sizePopup(url,left+sl,top+st,width,height,nrSteps,title,style);};function finishFunc(){_D.body.removeChild(popupEl);popupEl=null;_D.onmousemove=dragMove;};function killPopup(now){if(popupEl){if(now)finishFunc();else
setTimeout("finishFunc()",10);}};function mouseOver(obj){if(is.ie)obj.filters.alpha.opacity=100;else obj.style.opacity=1;};function mouseOut(obj){if(is.ie)obj.filters.alpha.opacity=40;else obj.style.opacity=0.4;};function sizePopup(url,left,top,width,height,step,title,style){var html,mouse;var _class="popup";var _scrolling="yes";if(style!=""){part=style.split(";");if(typeof part[0]!="undefined")_scrolling=part[0];if(typeof part[1]!="undefined")_class=part[1];};if(step<0){if(is.ie){SW(popupEl,width+2);SH(popupEl,height+1);var transstyle_1="filter:alpha(opacity=40);";}else{var transstyle_1="opacity:0.4;";};if(title!=''){html='<table id="popupCaption" class="popupCaption" cellpadding="0" cellspacing="1"><tr>';html+='<td width="99%" align="center"><span id="caption" ><b>'+title+'</b></span></td>';html+='<td width="1%" align="right"><a href="javascript:void(0);"><img id="btnClose" style="border:0;'+transstyle_1+'" onmouseover="mouseOver(this);" onmouseout="mouseOut(this);" src="../_images/popup_close1.gif" align="right" class="ptr" width="12" height="11" vspace="5" hspace="5" alt="X" title="sluit/close" onclick="killPopup(false)" /></a></td></tr></table>';}else{html='<div id="popupCaption" class="popupCaption"><a href="javascript:void(0);"><img id="btnClose" style="border:0;'+transstyle_1+'" onmouseover="mouseOver(this);" onmouseout="mouseOut(this);" src="../_images/popup_close1.gif" align="right" class="ptr" width="12" height="11" vspace="5" hspace="5" alt="X" title="sluit/close" onclick="killPopup(false)" /></a></div>';};if(url.substr(0,1)=="^"){var elem=document.getElementById(url.substr(1,url.length));wH(popupEl,html+'<div id="divbody" class="popup" style="overflow:auto; width:'+(width-2)+'px;height:'+(height-24)+'px;padding:0px" id="message">'+elem.innerHTML+'</div>');popupEl.onmousedown=null;var eCap=document.getElementById('popupCaption');eCap.setAttribute('style','cursor:default');}else if(url.substr(0,1)=="+"){var elem=document.getElementById(url.substr(1,url.length));wH(popupEl,html+'<div id="divbody" class="popup" style="overflow:auto; width:'+(width-2)+'px;height:'+(height-24)+'px;padding:0px" id="message">'+getCode(elem.innerHTML)+'</div>');popupEl.onmousedown=null;var eCap=document.getElementById('popupCaption');eCap.setAttribute('style','cursor:default');}else{if(is.ie)iWidth=width;else
var iWidth=width-2;wH(popupEl,html+'<iframe class="'+_class+'" frameborder="0" src="'+url+'" scrolling="'+_scrolling+'" style="width:'+(iWidth)+'px;height:'+(height-24)+'px;padding:0px" id="captionFrame"></iframe>');};return;};sX(popupEl,left+step*width/nrSteps/2);sY(popupEl,top+step*height/nrSteps/2);SW(popupEl,width-step*width/nrSteps);SH(popupEl,height-step*height/nrSteps+(is.safari?2:0));setTimeout("sizePopup('"+url+"',"+left+","+top+","+width+","+height+","+(step-1)+",'"+title+"','"+style+"')",0);};function disableSelection(target){if(typeof target.onselectstart!="undefined"){target.onselectstart=function(){return false;}}else if(typeof target.style.MozUserSelect!="undefined"){target.style.MozUserSelect="none";}else{target.onmousedown=function(){return false;}};target.style.cursor="default";};function dragStart(e,el){if(!e)e=_W.event;dragObj=el;dragObj.style.zIndex=dragZ++;dragX=e.clientX-dragObj.offsetLeft;dragY=e.clientY-dragObj.offsetTop;_D.onmousemove=dragMove;_D.onselectstart=function(){return false};disableSelection(dragObj);};function dragMove(e){if(!e)e=_W.event;if(dragObj){var toX=e.clientX-dragX;var toY=e.clientY-dragY
sX(dragObj,(toX<0?0:toX));sY(dragObj,(toY<0?0:toY));};if((is.ie)&&(is.ver<9)){_currX=e.clientX+_D.body.scrollLeft;_currY=e.clientY+_D.body.scrollTop;}else{_currX=e.pageX;_currY=e.pageY;};if(_currX<0){_currX=0;};if(_currY<0){_currY=0;}};function roll_over(img_name,img_src){document[img_name].src=img_src;};function bookmark(url,title){if((navigator.appName=="Microsoft Internet Explorer")&&(parseInt(navigator.appVersion)>=4)){window.external.AddFavorite(url,title);}else if(navigator.appName=="Netscape"){window.sidebar.addPanel(title,url,"");}else{alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");}};var addBookmarkObj={linkText:'bookmark',addTextLink:function(parId){var a=addBookmarkObj.makeLink(parId);if(!a)return;a.appendChild(document.createTextNode(addBookmarkObj.linkText));},addImageLink:function(parId,imgPath){if(!imgPath||isEmpty(imgPath))return;var a=addBookmarkObj.makeLink(parId);if(!a)return;var img=document.createElement('img');img.title=img.alt=addBookmarkObj.linkText;img.src=imgPath;a.appendChild(img);},makeLink:function(parId){if(!document.getElementById||!document.createTextNode)return null;parId=((typeof(parId)=='string')&&!isEmpty(parId))?parId:'addBookmarkContainer';var cont=document.getElementById(parId);if(!cont)return null;var a=document.createElement('a');a.href=location.href;if(window.opera){a.rel='sidebar';}else{a.onclick=function(){addBookmarkObj.exec(this.href,this.title);return false;}};a.title=document.title;return cont.appendChild(a);},exec:function(url,title){var buttonStr=is.Mac?'Command/Cmd':'CTRL';if(window.external&&(!document.createTextNode||(typeof(window.external.AddFavorite)=='unknown'))){window.external.AddFavorite(url,title);}else if(is.konq){makePopup(null,500,20,'','You need to press CTRL + B to bookmark my site.');return false;}else if(is.opera7){void(0);}else if(window.home||is.safari){makePopup(null,500,20,'','You need to press '+buttonStr+' + D to bookmark my site.');return false;}else if(!window.print||is.mac){makePopup(null,500,20,'','You need to press Command/Cmd + D to bookmark my site.');return false;}else{makePopup(null,500,20,'','In order to bookmark this site you need to do so manually '+'through your browser.');return false;}}};function isEmpty(s){return((s=='')||/^\s*$/.test(s));};function dss_addEvent(el,etype,fn){if(el.addEventListener&&(!window.opera||opera.version)&&(etype!='load')){el.addEventListener(etype,fn,false);}else if(el.attachEvent){el.attachEvent('on'+etype,fn);}else{if(typeof(fn)!="function")return;if(typeof(window.earlyNS4)=='undefined'){window.earlyNS4=((navigator.appName.toLowerCase()=='netscape')&&(parseFloat(navigator.appVersion)<4.02)&&document.layers);};if((typeof(el['on'+etype])=="function")&&!window.earlyNS4){var tempFunc=el['on'+etype];el['on'+etype]=function(e){var a=tempFunc(e),b=fn(e);a=(typeof(a)=='undefined')?true:a;b=(typeof(b)=='undefined')?true:b;return(a&&b);}}else{el['on'+etype]=fn;}}};dss_addEvent(window,'load',addBookmarkObj.addTextLink);function move_box_top(an,box){var ctop=0;var obj=an;while(obj.offsetParent){ctop+=obj.offsetTop;obj=obj.offsetParent;};if(document.body.currentStyle&&document.body.currentStyle['marginTop']){ctop+=parseInt(document.body.currentStyle['marginTop']);};box.style.top=ctop+'px';};function move_box_left(an,box){var cleft=0;var obj=an;while(obj.offsetParent){cleft+=obj.offsetLeft;obj=obj.offsetParent;};box.style.left=cleft+'px';};function hide_other_alone(obj){if(!document.getElementsByTagName)return;var all_divs=document.body.getElementsByTagName("DIV");for(i=0;i<all_divs.length;i++){if(all_divs.item(i).style.position!='absolute'||all_divs.item(i)==obj||!all_divs.item(i).alonePopupBox){continue;};all_divs.item(i).style.display='none';};return;};function show_hide_box(an,setlocation,default_page,style,vScroll,hScroll){if((an.href==null)||(an.href==''))an.href=default_page;var href=an.href;var boxdiv=document.getElementById(href);var part=setlocation.split(";");var left=Number(part[0]);var top=Number(part[1]);var width=Number(part[2]);var height=Number(part[3]);var part=style.split(";");var borderStyle=part[0];var showClose=part[1];var backGround=part[2];if(boxdiv!=null){if(boxdiv.style.display=='none'){hide_other_alone(boxdiv);if(left==-1){move_box_left(an,boxdiv);}else{boxdiv.style.left=left+'px';};if(top==-1){move_box_top(an,boxdiv);}else{boxdiv.style.top=top+'px';};boxdiv.style.display='block';if(!boxdiv.contents.contentWindow)boxdiv.contents.src=href;}else
boxdiv.style.display='none';return false;};hide_other_alone(null);boxdiv=document.createElement('div');boxdiv.setAttribute('id',href);boxdiv.alonePopupBox=1;boxdiv.style.display='block';boxdiv.style.position='absolute';boxdiv.style.width=width+'px';boxdiv.style.height=height+'px';boxdiv.style.border=borderStyle;boxdiv.style.textAlign='right';boxdiv.style.padding='4px';boxdiv.style.background=backGround;document.body.appendChild(boxdiv);var offset=0;if(showClose==1){var close_href=document.createElement('a');close_href.href='javascript:void(0);';close_href.onclick=function(){show_hide_box(an,setlocation,default_page,borderStyle,vScroll,hScroll);};close_href.appendChild(document.createTextNode('[x]'));close_href.setAttribute('title','sluit/close');boxdiv.appendChild(close_href);offset=close_href.offsetHeight;};var contents=document.createElement('iframe');contents.overflowX=hScroll;contents.overflowY=vScroll;contents.frameBorder='0';contents.style.width=width+'px';contents.style.height=(height-offset)+'px';boxdiv.contents=contents;boxdiv.appendChild(contents);if(left==-1){move_box_left(an,boxdiv);}else{boxdiv.style.left=left+'px';};if(top==-1){move_box_top(an,boxdiv);}else{boxdiv.style.top=top+'px';};if(contents.contentWindow)contents.contentWindow.document.location.replace(href);return false;};function toggleMe(a,b){var e1=document.getElementById(a);var e2=document.getElementById(b);if(!e1)return true;if(e1.style.display=="none"){e1.style.display="block"}else{e1.style.display="none"};if(!e2)return true;if(e2.style.display=="block"){e2.style.display="none"};return true;};function getURLParameters(){var sURL=window.document.URL.toString();var result=new Array();if(sURL.indexOf("?")>0){var arrParams=sURL.split("?");var arrURLParams=arrParams[1].split("&");var i=0;for(i=0;i<arrURLParams.length;i++){var sParam=arrURLParams[i].split("=");result[sParam[0]]=sParam[1];}};return result;};function isValue(test_var){return typeof test_var!='undefined'&&test_var!="";};function setCookie(c_name,value,expiredays){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+escape(value)+((expiredays==null)?"":";expires="+exdate.toGMTString());};function getCookie(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}};return"";}
