
var _W=window,_D=document,is,op,popupEl,nrSteps=15,dragObj,dragX,dragY,dragZ=1,close_n=new Image(13,13),close_h=new Image(13,13);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.mac;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.gecko=!t.khtml&&!_D.all&&!t.opera&&_D.getElementById?T:F;t.ns4=n.appName=='Netscape'&&t.ver==4}
is=new sniff(),op=is.opera;function gE(e){if(_D.getElementById)return _D.getElementById(e);if(_D.all)return _D.all[e];return false;}
function sE(e){e.style.visibility='visible'}
function hE(e){e.style.visibility='hidden'}
function SE(e){if(e){e.style.display='';}}
function HE(e){if(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 tD(e,d1,d2){e.style.display=(e.style.display==d1)?d2:d1;}
close_h.src='/pics/close_hi.gif';close_n.src='/pics/close.gif';function getWinSize(what){if(what=='height'){return(is.ie)?(is.ieBox)?_D.body.clientHeight:_D.documentElement.clientHeight:_W.innerHeight;}else if(what=='width'){return(is.ie)?(is.ieBox)?_D.body.clientWidth:_D.documentElement.clientWidth:_W.innerWidth;}
return false;}
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};}
function dragMove(e){if(!e)e=_W.event;if(dragObj){sX(dragObj,e.clientX-dragX);sY(dragObj,e.clientY-dragY);}}
function dragStop(e,el){dragObj=null;}
var mouseDown=false;function makePopup(e,width,height,color,title,url){killPopup(1);height+=24;var wh=getWinSize('height'),ww=getWinSize('width'),st,sl;if(!e){e=new Object();e.clientX=ww/2-width/2;e.clientY=wh/2-height/2;}
var top=e.clientY,left=e.clientX;if(is.ie){sl=(is.ieBox)?_D.body.scrollLeft:_D.documentElement.scrollLeft;st=(is.ieBox)?_D.body.scrollTop:_D.documentElement.scrollTop;}
else{sl=_W.pageXOffset;st=_W.pageYOffset;}
if(e.clientX+width>ww)
left=ww-width-5;if(e.clientY+height>wh)
top=wh-height-12;popupEl=_D.createElement('div');popupEl.onmousedown=function(event){mouseDown=true;dragStart(event,this)};popupEl.onmouseup=function(event){mouseDown=false;dragStop(event,this)};popupEl.className='popup';_D.body.appendChild(popupEl);sizePopup(title,url,left+sl,top+st,width,height,color,nrSteps);}
function killPopup(now){if(popupEl){var code='_D.body.removeChild(popupEl);popupEl=null;';if(now)
eval(code);else
setTimeout(code,10);}}
function switchSound(val){var nowDate=new Date();var nowPoll=nowDate.getTime();var img=new Image();img.src='/php/sound.php?set='+val+'&t='+nowPoll;}
function sizePopup(title,url,left,top,width,height,color,step){var html,mouse;if(step<0){popupEl.style.border='none';if(is.ie){sW(popupEl,width+2);sH(popupEl,height+2);}
mouse=(is.ie)?'onmouseover="this.src=close_h.src" onmouseout="this.src=close_n.src"':'';html='<table cellpadding="0" cellspacing="0" border="0">';html+='<tr>';html+='<td class="block" bgcolor="'+color+'" style="padding-left:6px;border-top: 1px solid #000;border-left: 1px solid #000"><img align="right" src="/pics/close.gif" class="ptr" alt="X" vspace="2" hspace="2" onclick="killPopup(0)" '+mouse+' />'+title.toUpperCase()+'</td>';html+='<td><img src="/pics/popup_rt.gif" height="20" width="17" alt="" /></td>';html+='</tr>';html+='<tr style="background: #7F7F7F;">';html+='<td style="border-left: 1px solid #000">';html+='<iframe frameborder="0" src="'+url+'" style="width:'+width+'px;height:'+(height-24)+'px"></iframe>';html+='</td>';html+='<td bgcolor="#000000">&nbsp;</td>';html+='</tr>';html+='<tr><td colspan="2">';html+='<table cellspacing="0" cellpadding="0" width="100%"><tr><td width="17"><img src="/pics/popup_lb.gif" height="17" width="17" alt="" border="0" /></td><td bgcolor="#000000">&nbsp;</td></tr></table>';html+='</td></tr>';html+='</table>';wH(popupEl,html);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('"+title+"','"+url+"',"+left+","+top+","+width+","+height+",'"+color+"',"+(step-1)+")",0);}
function swapShadow(el,over){var color,bgcolor,colors,txtBgColor;colors=el.id.split('_');if(over){color=colors[2];bgcolor=colors[3];txtBgColor=colors[4];}else{color=colors[3];bgcolor=colors[2];txtBgColor=colors[2];}
var table=el;table.rows[0].style.backgroundColor='#'+txtBgColor;table.rows[1].style.backgroundColor='#'+color;table.rows[0].cells[1].style.backgroundColor='#'+color;return false;}
function setStillColor(el,color){el.style.backgroundColor='#'+color;return false;}
function setTRcolor(el,what){var colors=el.id.split('_');if(what=='over')
{el.style.background='#'+colors[4];}
else if(what=='out')
{el.style.background='#'+colors[3];}}
function rollShadowText(el,over)
{var i,info,id,elArr;info=el.id.split('_');if(info.length!=6)return;if(info[0]!='roll')return;id=info[1];if(over){elArr=_D.getElementsByTagName('div');if(is.gecko&&typeof(el.id)=='string'){unloadOthers(el.id,'r');}
for(i=0;i<elArr.length;i++){if(typeof(elArr[i].id)=='string'&&elArr[i].id.substring(0,3)=='mo_'){if(elArr[i].id.substring(3)==id){elArr[i].style.display='';}else{elArr[i].style.display='none';}}}
el.rows[1].cells[1].childNodes[0].src='/pics/btn/r_b_'+info[4]+'_'+info[5]+'.gif';el.rows[1].cells[0].style.backgroundColor='#'+info[4];el.rows[0].cells[2].style.backgroundColor='#'+info[5];el.rows[0].cells[0].style.display='none';el.rows[0].cells[1].style.display='';}else{el.rows[1].cells[1].childNodes[0].src='/pics/px.gif';el.rows[1].cells[0].style.backgroundColor='#'+info[2];el.rows[0].cells[2].style.backgroundColor='#'+info[3];el.rows[0].cells[0].style.display='';el.rows[0].cells[1].style.display='none';}}
function initMenuColors(){if(_D.location.href.match('showgrid')){showGrid(true);}
var menu=gE('menu');if(!menu)
return;var nrRows=menu.rows.length,y,row,elements;for(y=0;y<nrRows;y++){row=menu.rows[y];elements=row.id.split('_');if(elements.length<4)continue;if(elements[0]=='s')continue;if(elements[0]=='h'){row.onmouseover=function(){setTRcolor(this,'over');}
row.onmouseout=function(){setTRcolor(this,'out');}}}
var e=_D.getElementById('homeButtonRow');if(e){e.style.backgroundColor=homeButtonColor;}}
var homeButtonColor;function setHomeButtonColor(color){homeButtonColor=color;}
function highlight(el){if(typeof(el.id)=='undefined')return;var info=el.id.split('_');gE('mo_'+info[1]).style.border='1px dotted #'+info[4];gE('mo_'+info[1]).style.background='#'+info[5];setTimeout(' gE("mo_'+info[1]+'").style.border="1px solid #999";gE("mo_'+info[1]+'").style.background="#999"',40);}
function swapPijl(el,over){if(typeof(el.id)=='undefined')return;var colors=el.id.split('_');var tmp='';var img=el.rows[1].cells[1].childNodes[0].childNodes[0];if(is.gecko&&typeof(el.id)=='string'&&over==true){unloadOthers(el.id,'b');}
var foo=img.lowsrc;img.lowsrc=img.src;img.src=foo;if(over){el.rows[1].cells[0].style.backgroundColor='#'+colors[4];el.rows[0].cells[2].style.backgroundColor='#'+colors[5];el.rows[0].cells[0].style.display='none';el.rows[0].cells[1].style.display='';}else{el.rows[1].cells[0].style.backgroundColor='#'+colors[2];el.rows[0].cells[2].style.backgroundColor='#'+colors[3];el.rows[0].cells[0].style.display='';el.rows[0].cells[1].style.display='none';}}
function swapPijlSmall(el,over){if(typeof(el.id)=='undefined')return;var img=el.firstChild;if(over){foo=img.getAttribute('longdesc');img.setAttribute('longdesc',img.src);img.src=foo;}else{foo=img.getAttribute('longdesc');img.setAttribute('longdesc',img.src);img.src=foo;}}
function ccOver(el,over,direction){if(typeof(el.id)=='undefined')return;var colors=el.id.split('_');var celltxt=direction=='left'?0:2;var cellimg=direction=='left'?0:0;var img,src,lowsrc;img=el.cells[1].childNodes[cellimg].childNodes[0];lowsrc=el.cells[1].childNodes[cellimg].childNodes[0].lowsrc;src=el.cells[1].childNodes[cellimg].childNodes[0].src;img.src=lowsrc;img.lowsrc=src;if(over){el.cells[celltxt].style.backgroundColor='#'+colors[4];el.cells[celltxt].childNodes[is.ie?0:1].style.color='#000';}else{el.cells[celltxt].style.backgroundColor='#'+colors[2];el.cells[celltxt].childNodes[is.ie?0:1].style.color='#000';}}
function showMap(map_id,image){var el=gE(map_id);el.src=image;}
function goLocation(loc,newWindow){alert('depricated');_D.location.href=loc;}
function showGrid(createDiv){var el,i,obj=_D.getElementsByTagName('a');for(i=0;i<=obj.length;i++){el=obj[i];if(typeof(el)=='object'){el.href=el.href+'&showgrid';}}
if(typeof(createDiv)=='boolean'&&createDiv==true){_D.write('<div id="grid" onclick="this.style.display=\'none\' ">&nbsp;</div>');}
_D.body.ondblclick=function(){hideGrid();};return true;}
function hideGrid(){var el,i,obj=_D.getElementsByTagName('a');for(i=0;i<=obj.length;i++){el=obj[i];if(el){el.href=el.href.replace('?showgrid','');}}
_D.body.ondblclick=function(){showGrid(false);};}
function display(id,x){var e=gE(id);if(e==undefined)
return;e.style.display=x;}
_D.ondblclick=function phoundryMe(event){if((is.gecko&&event.ctrlKey)||(is.ie&&window.event.ctrlKey)||(is.opera&&event.ctrlKey)){window.open('https://phoundry.pluimen.nl/phoundry/custom/phoundry_me.php?url='+escape(_D.location),'Phoundry');}
return;};_D.onloaders=new Array();window.onload=function onLoad(){for(i in _D.onloaders){eval(_D.onloaders[i]);}}