if(window!= top){top.location.href=location.href;}window.defaultStatus = " ";if (top.location != location) {top.location.href = document.location.href ;}

var xmlHttp;function GetXmlHttpObject( handler ) {var objXmlHttp = null;
if (navigator.userAgent.indexOf("Opera") >= 0) {alert ("Deze browser wordt niet ondersteund.");return;}
if (navigator.userAgent.indexOf("MSIE") >= 0) {var strName = "Msxml2.XMLHTTP";if (navigator.appVersion.indexOf("MSIE 5.5") >= 0) {strName = "Microsoft.XMLHTTP";}
try {objXmlHttp = new ActiveXObject('Microsoft.XMLHTTP');objXmlHttp.onreadystatechange = handler;return objXmlHttp;}
catch(e) {alert("Activeer ActiveX om gebruik te kunnen maken van deze knop.\nZie de helppagina (onderdeel instellingen) voor uitleg.");return;}}
if (navigator.userAgent.indexOf("Mozilla") >= 0 ) {objXmlHttp = new XMLHttpRequest();objXmlHttp.onload = handler;objXmlHttp.onerror = handler;return objXmlHttp;}}
function changeinfo() {if (xmlHttp.readyState == 4 || xmlHttp.readyState == "complete") {if ( xmlHttp.status == 200 ) {alert ( xmlHttp.responseText );} else {alert ( xmlHttp.statusText );}}}

function Reload(bannerid){var banner = document.getElementById(bannerid);banner.src = banner.src;}

function nieuwsbriefaanmelden() {if(emailcheck(document.getElementById('nieuwsbrief').value)==false){alert('Ongeldig e-mailadres!');return false;}
else{var url = "js/edit.php?sid=" + Math.round(999*Math.random()) + "&nieuwsbrief=" + document.getElementById('nieuwsbrief').value;
xmlHttp = GetXmlHttpObject( changeinfo );xmlHttp.open("GET", url , true);xmlHttp.send( null );document.getElementById('nieuwsbrief').value='';}}

function mijngogames(){var url = "js/edit.php?mijngogames=1&sid=" + Math.round(999*Math.random()) + "&gameid=" + document.getElementById('gameid').value + "&sesid=" + document.getElementById('sesid').value;xmlHttp = GetXmlHttpObject( changeinfo );xmlHttp.open("GET", url , true);xmlHttp.send( null );}

function stuurdoor() {if(emailcheck(document.getElementById('adres0').value)==false){alert('Ongeldig e-mailadres!');return false;}
else if(emailcheck(document.getElementById('adres1').value)==false){alert('Ongeldig e-mailadres!');return false;}
else if (document.getElementById('tekst').value.length<'1'){alert('Je hebt geen bericht ingevuld!');return false;}
else{document.getElementById('tekst').value = document.getElementById('tekst').value.replace(/\n/g,'nextrule');
var url = "js/edit.php?stuurdoor=1&sid=" + Math.round(999*Math.random()) + "&spelnaam=" + document.getElementById('spelnaam').value + "&spelurl=" + document.getElementById('spelurl').value + "&adres0=" + document.getElementById('adres0').value + "&adres1=" + document.getElementById('adres1').value + "&tekst=" + document.getElementById('tekst').value;
xmlHttp = GetXmlHttpObject( changeinfo );xmlHttp.open("GET", url , true);xmlHttp.send( null );
document.getElementById('adres0').value='';document.getElementById('adres1').value='';document.getElementById('tekst').value='';}}

function contact() {if (document.getElementById('uwnaam').value.length<'1'){alert('Je hebt geen naam ingevuld!');return false;}
else if (!(/^([a-zA-Z0-9_ \.\-])+$/.test(document.getElementById('uwnaam').value))){alert('Je naam mag geen speciale tekens bevatten!');return false;}
else if (document.getElementById('uwemail').value.length<'1'){alert('Je hebt geen e-mailadres ingevuld!');return false;}
else if(emailcheck(document.getElementById('uwemail').value)==false){alert('Ongeldig e-mailadres!');return false;}
else if (document.getElementById('onderwerp').value.length<'1'){alert('Je hebt geen onderwerp gekozen!');return false;}
else if (document.getElementById('bericht').value.length<'1'){alert('Je hebt geen bericht ingevuld!');return false;}
else if (document.getElementById('bericht').value.length<'10'){alert('Je bericht is te kort!');return false;}
else if (document.getElementById('bericht').value.length>'5000'){alert('Je bericht is te lang!');return false;}
else{document.getElementById('bericht').value = document.getElementById('bericht').value.replace(/\n/g,'nextrule');
var url = "js/edit.php?contact=1&sid=" + Math.round(999*Math.random()) + "&uwnaam=" + document.getElementById('uwnaam').value + "&uwemail=" + document.getElementById('uwemail').value + "&lid=" + document.getElementById('lid').value + "&vip=" + document.getElementById('vip').value + "&onderwerp=" + document.getElementById('onderwerp').value + "&bericht=" + document.getElementById('bericht').value + "&kopie=" + document.getElementById('kopie').checked + "&geenreactie=" + document.getElementById('geenreactie').checked;
xmlHttp = GetXmlHttpObject( changeinfo );xmlHttp.open("GET", url , true);xmlHttp.send( null );
document.getElementById('uwnaam').value='';document.getElementById('uwemail').value='';document.getElementById('onderwerp').options[0].selected='true';document.getElementById('bericht').value='';document.getElementById('kopie').checked=false;document.getElementById('geenreactie').checked=false;}}

function berichtplaatsen(){if (document.reageer.bericht.value.length<'1'){alert('Je hebt geen bericht ingevuld!');return false;}else if (document.reageer.bericht.value.length<'3'){alert('Je bericht moet minimaal uit 3 tekens bestaan!');return false;}else if(document.reageer.bericht.value.length > '200'){alert('Het bericht mag maximaal uit 200 tekens bestaan.');return false;}}
function smile(smiley){document.reageer.bericht.value+=smiley;document.reageer.bericht.focus();}
function docheck(){
char = eval(document.reageer.bericht.value.length);var dif = eval(char-200);var value = document.reageer.bericht.value.substr(0,char-dif);document.reageer.bericht.value = value;var left = '0';}
function doleft(){total = eval('200');char = eval(document.reageer.bericht.value.length);left = eval(total - char);
if (left<='-1'){var dif = eval(char - 200);var value = document.reageer.bericht.value.substr(0,char-dif);document.reageer.bericht.value = value;var left = '0';}
document.getElementById('left').innerHTML = left + ' tekens over';}

function checkCapsLock( e ) {
var myKeyCode=0;
var myShiftKey=false;
var myMsg='Caps Lock staat aan.\nOm te voorkomen dat je wachtwoord onjuist is,\ndien je Caps Lock uit te zetten.';
if ( document.all ) {myKeyCode=e.keyCode;myShiftKey=e.shiftKey;}
else if ( document.layers ) {myKeyCode=e.which;myShiftKey=( myKeyCode == 16 ) ? true : false;}
else if ( document.getElementById ) {myKeyCode=e.which;myShiftKey=( myKeyCode == 16 ) ? true : false;}
if ( ( myKeyCode >= 65 && myKeyCode <= 90 ) && !myShiftKey ) {if(document.activeElement.value==''){alert( myMsg );}}
else if ( ( myKeyCode >= 97 && myKeyCode <= 122 ) && myShiftKey ) {if(document.activeElement.value==''){alert( myMsg );}}}

if (!document.getElementById) {if(!document.all) {if(!document.layers) {event = "";}}}function b() {}
var tooltip;function a(txt) {txt='<img src=images/thumb2/' + txt  + '.jpg class=s>';if (!tooltip) return;var evt = 'event';var cntnt = wrapTip(txt);goTooltip(evt,cntnt);}
function an(txt) {txt='<img src=images/thumb2/' + txt  + '.jpg class=s><img src=images/nieuw2.gif class=sn2>';if (!tooltip) return;var evt = 'event';var cntnt = wrapTip(txt);goTooltip(evt,cntnt);}
function wrapTip(txt) {var cntnt = "";if (document.layers) {
cntnt = '<table bgcolor="' + tipBorderColor + '" width="' + tipWidth + '" cellspacing="0" cellpadding="' + tipBorderWidth + '" border="0"><tr><td><table bgcolor="' + tipBgColor + '" width="100%" cellspacing="0" cellpadding="' + tipPadding + '" border="0"><tr><td><div style="font-family:' + tipFontFamily + '; font-size:' + tipFontSize + '; color:' + tipFontColor + ';">' + txt  + '</div></td></tr></table></td></tr></table>';} else cntnt = txt;return cntnt;}
var tipFollowMouse = true;var tipWidth = 89;var tipOffX= 8;var tipOffY= 12;var tipFontFamily = "Verdana, arial, helvetica, sans-serif";var tipFontSize= "9px";
var tipLineHeight= 1.2;var tipFontColor = "#000000";var tipBgColor = "lavender";var tipBgImg = "";var tipPadding = 2;var tipBorderColor = "#4C4E52";
var tipBorderWidth = 1;var tipBorderStyle = "groove";

function dynObj(id,x,y,w,h) {this.el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? getLyrRef(id,document): null;
if (!this.el) return null;this.doc = (document.layers)? this.el.document: this.el;
this.css = (this.el.style)? this.el.style: this.el;var px = (document.layers)? "": "px";this.x = x || 0;if (x) this.css.left = this.x+px;this.y = y || 0;if (y) this.css.top = this.y+px;
this.width = w? w: (this.el.offsetWidth)? this.el.offsetWidth: (this.css.clip.width)? this.css.clip.width: 0;
this.height = h? h: (this.el.offsetHeight)? this.el.offsetHeight: (this.css.clip.height)? this.css.clip.height: 0;
if (w){ (document.layers)? this.css.clip.width=w+px: this.css.width=w+px;}if (h){ (document.layers)? this.css.clip.height=h+px: this.css.height=h+px;}
this.obj = id + "dynObj"; eval(this.obj + "=this");}function dw_show() { this.css.visibility = "visible"; }function dw_hide() { this.css.visibility = "hidden"; }
function dw_shiftTo(x,y) {if (x!=null) this.x=x; if (y!=null) this.y=y;
if (this.css.moveTo) {this.css.moveTo(Math.round(this.x),Math.round(this.y));} else {this.css.left=Math.round(this.x)+"px";this.css.top=Math.round(this.y)+"px";}}
function dw_shiftBy(x,y) {this.shiftTo(this.x+x,this.y+y);}
function dw_writeLyr(cntnt) {if (typeof this.doc.innerHTML!="undefined") {this.doc.innerHTML = cntnt;} else if (document.layers) {this.doc.write(cntnt);this.doc.close();}}
function dw_setBgClr(bg) {if (document.layers) this.doc.bgColor=bg;else this.css.backgroundColor=bg;}
dynObj.prototype.show = dw_show;dynObj.prototype.hide = dw_hide;dynObj.prototype.shiftTo = dw_shiftTo;
dynObj.prototype.shiftBy = dw_shiftBy;dynObj.prototype.writeLyr = dw_writeLyr;dynObj.prototype.setBgClr=dw_setBgClr;
function getLyrRef(lyr,doc) {if (document.layers) {var theLyr;for (var i=0; i<doc.layers.length; i++) {theLyr = doc.layers[i];if (theLyr.name == lyr) return theLyr;
else if (theLyr.document.layers.length > 0)if ((theLyr = getLyrRef(lyr,theLyr.document)) != null)return theLyr;}return null;}}
dynObj.prototype.centerIn = function(outer) {var outWd, outHt, inWd, inHt, x, y;
if (eval(outer)==window) {outWd=getWinWidth();outHt=getWinHeight();} else {outWd=outer.width;outHt=outer.height;}
inWd=this.width;inHt=this.height;x=Math.round((outWd-inWd)/2);y=Math.round((outHt-inHt)/2);this.shiftTo(x,y);}
function getWidth(obj,id) {var wd=0;if (document.getElementById||document.all) {var elem;
if (id)elem = (document.getElementById)? document.getElementById(id): document.all[id];else elem = obj;
if (elem.offsetWidth) wd = elem.offsetWidth;  } else if (obj.document) wd = obj.document.width;return wd;}
function getHeight(obj,id) {var ht=0;if (document.getElementById||document.all) {var elem;if (id)elem = (document.getElementById)? document.getElementById(id): document.all[id];
else elem = obj;if (elem.offsetHeight) ht = elem.offsetHeight;  } else if (obj.document) ht = obj.document.height;return ht;}
function getWinWidth() {var winWd = 0;if (document.documentElement && document.documentElement.clientWidth)winWd = document.documentElement.clientWidth;
else if (document.body && document.body.clientWidth)winWd = document.body.clientWidth;else if (document.body && document.body.offsetWidth)
winWd = document.body.offsetWidth;else if (window.innerWidth) winWd = window.innerWidth-18;return winWd;}
function getWinHeight() {var winHt = 0;if (document.documentElement && document.documentElement.clientHeight)winHt = document.documentElement.clientHeight;
else if (document.body && document.body.clientHeight)winHt = document.body.clientHeight;else if (window.innerHeight) winHt = window.innerHeight-18;return winHt;}
function getScrollY() {var scroll_y = 0;if (document.documentElement && document.documentElement.scrollTop)scroll_y = document.documentElement.scrollTop;
else if (document.body && document.body.scrollTop)scroll_y = document.body.scrollTop;
else if (window.pageYOffset)scroll_y = window.pageYOffset;else if (window.scrollY)scroll_y = window.scrollY;return scroll_y;}
function getScrollX() {var scroll_x = 0;if (document.documentElement && document.documentElement.scrollLeft)scroll_x = document.documentElement.scrollLeft;
else if (document.body && document.body.scrollLeft)scroll_x = document.body.scrollLeft;else if (window.pageXOffset)scroll_x = window.pageXOffset;
else if (window.scrollX)scroll_x = window.scrollX;return scroll_x;}
var win_width, win_height, vert_scroll, hor_scroll;var tip_t1, tip_t2;var mouseX, mouseY;window.onload = initTip;window.onresize = to_do_onresize;
var origWidth, origHeight;if (document.layers) {  origWidth = window.innerWidth;  origHeight = window.innerHeight;}
function to_do_onresize() {if (document.layers) {if (window.innerWidth != origWidth || window.innerHeight != origHeight) window.location.reload();}
else {win_width = getWinWidth();win_height = getWinHeight();}}
function initTip() {tooltip = new dynObj('tipDiv');if (!tooltip) return;if (!document.layers && typeof tooltip.doc.innerHTML == "undefined"){tooltip = null;return;}
if (tooltip.el.style) {tooltip.css.width = tipWidth+"px";tooltip.css.fontFamily = tipFontFamily;tooltip.css.fontSize = tipFontSize;tooltip.css.lineHeight = tipLineHeight;tooltip.css.color = tipFontColor;
tooltip.css.backgroundColor = tipBgColor;tooltip.css.borderColor = tipBorderColor;tooltip.css.borderWidth = tipBorderWidth+"px";tooltip.css.padding = tipPadding+"px";
tooltip.css.borderStyle = tipBorderStyle;if (tipBgImg) tooltip.css.backgroundImage = "url("+tipBgImg+")";}win_width = getWinWidth();win_height = getWinHeight();}
function goTooltip(evt,cntnt) {if (tip_t1) clearTimeout(tip_t1);if (tip_t2) clearTimeout(tip_t2);
if (tipFollowMouse) {if (document.addEventListener) {document.addEventListener("mousemove",trackMouse,true);} else if (document.attachEvent) {
document.attachEvent("onmousemove",trackMouse);} else {if (document.layers && document.captureEvents)
document.captureEvents(Event.MOUSEMOVE);document.onmousemove = trackMouse;}}tooltip.writeLyr(cntnt);vert_scroll = getScrollY();hor_scroll = getScrollX();
evt = (window.event)? window.event: evt;if (evt) {mouseX = getMouseX(evt);mouseY = getMouseY(evt);}
tooltip.width = getWidth(tooltip.el);tooltip.height = getHeight(tooltip.el);
if (!document.layers)setTimeout("tooltip.height=getHeight('','tipDiv')",100);setTimeout("positionTip()",120);tip_t1=setTimeout(tooltip.obj+".show()",200);}
function positionTip() {var x, y;if ((mouseX + tipOffX + tooltip.width) > win_width + hor_scroll)x = mouseX - (tooltip.width + tipOffX);else x = mouseX + tipOffX;
if ((mouseY + tipOffY + tooltip.height) > win_height + vert_scroll)
y = (mouseY - (tooltip.height + tipOffY) > vert_scroll)?  mouseY - (tooltip.height + tipOffY): win_height + vert_scroll - (tooltip.height + tipOffY);else y = mouseY + tipOffY;tooltip.shiftTo(x,y);}
function b() {if (!tooltip) return;tip_t2=setTimeout(tooltip.obj+".hide()",200);if (tipFollowMouse) {
if (document.removeEventListener) {document.removeEventListener("mousemove",trackMouse,true);} else if (document.detachEvent) { document.detachEvent("onmousemove",trackMouse);
} else {if (document.layers && document.releaseEvents)document.releaseEvents(Event.MOUSEMOVE);document.onmousemove = null;}}}
function trackMouse(evt) {evt = (window.event)? window.event: evt;if (evt) {mouseX = getMouseX(evt);mouseY = getMouseY(evt);}positionTip();}
function getMouseX(evt) {return (evt.pageX)? evt.pageX: evt.clientX + getScrollX();}function getMouseY(evt) {return (evt.pageY)? evt.pageY: evt.clientY + getScrollY();}

var TINY={};function T$(i){return document.getElementById(i)}TINY.box=function(){var p,m,b,fn,ic,iu,iw,ih,ia,f=0;return{show:function(c,u,w,h,a,t){if(!f){p=document.createElement('div');p.id='tinybox';m=document.createElement('div');m.id='tinymask';b=document.createElement('div');b.id='tinycontent';document.body.appendChild(m);document.body.appendChild(p);p.appendChild(b);m.onclick=TINY.box.hide;window.onresize=TINY.box.resize;f=1}if(!a&&!u){p.style.width=w?w+'px':'auto';p.style.height=h?h+'px':'auto';p.style.backgroundImage='none';b.innerHTML=c}else{b.style.display='none';p.style.width=p.style.height='100px'}this.mask();ic=c;iu=u;iw=w;ih=h;ia=a;this.alpha(m,1,80,3);if(t){setTimeout(function(){TINY.box.hide()},1000*t)}},fill:function(c,u,w,h,a){if(u){p.style.backgroundImage='';var x=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject('Microsoft.XMLHTTP');x.onreadystatechange=function(){if(x.readyState==4&&x.status==200){TINY.box.psh(x.responseText,w,h,a)}};x.open('GET',c,1);x.send(null)}else{this.psh(c,w,h,a)}},psh:function(c,w,h,a){if(a){if(!w||!h){var x=p.style.width,y=p.style.height;b.innerHTML=c;p.style.width=w?w+'px':'';p.style.height=h?h+'px':'';b.style.display='';w=parseInt(b.offsetWidth);h=parseInt(b.offsetHeight);b.style.display='none';p.style.width=x;p.style.height=y}else{b.innerHTML=c}this.size(p,w,h,4)}else{p.style.backgroundImage='none'}},hide:function(){TINY.box.alpha(p,-1,0,3)},resize:function(){TINY.box.pos();TINY.box.mask()},mask:function(){m.style.height=TINY.page.theight()+'px';m.style.width='';m.style.width=TINY.page.twidth()+'px'},pos:function(){var t=(TINY.page.height()/2)-(p.offsetHeight/2);t=t<10?10:t;p.style.top=(t+TINY.page.top())+'px';p.style.left=(TINY.page.width()/2)-(p.offsetWidth/2)+'px'},alpha:function(e,d,a,s){clearInterval(e.ai);if(d==1){e.style.opacity=0;e.style.filter='alpha(opacity=0)';e.style.display='block';this.pos()}e.ai=setInterval(function(){TINY.box.twalpha(e,a,d,s)},20)},twalpha:function(e,a,d,s){var o=Math.round(e.style.opacity*100);if(o==a){clearInterval(e.ai);if(d==-1){e.style.display='none';e==p?TINY.box.alpha(m,-1,0,2):b.innerHTML=p.style.backgroundImage=''}else{e==m?this.alpha(p,1,100,5):TINY.box.fill(ic,iu,iw,ih,ia)}}else{var n=o+Math.ceil(Math.abs(a-o)/s)*d;e.style.opacity=n/100;e.style.filter='alpha(opacity='+n+')'}},size:function(e,w,h,s){e=typeof e=='object'?e:T$(e);clearInterval(e.si);var ow=e.offsetWidth,oh=e.offsetHeight,wo=ow-parseInt(e.style.width),ho=oh-parseInt(e.style.height);var wd=ow-wo>w?-1:1,hd=(oh-ho>h)?-1:1;e.si=setInterval(function(){TINY.box.twsize(e,w,wo,wd,h,ho,hd,s)},20)},twsize:function(e,w,wo,wd,h,ho,hd,s){var ow=e.offsetWidth-wo,oh=e.offsetHeight-ho;if(ow==w&&oh==h){clearInterval(e.si);p.style.backgroundImage='none';b.style.display='block'}else{if(ow!=w){e.style.width=ow+(Math.ceil(Math.abs(w-ow)/s)*wd)+'px'}if(oh!=h){e.style.height=oh+(Math.ceil(Math.abs(h-oh)/s)*hd)+'px'}this.pos()}}}}();TINY.page=function(){return{top:function(){return document.body.scrollTop||document.documentElement.scrollTop},width:function(){return self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},height:function(){return self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},theight:function(){var d=document,b=d.body,e=d.documentElement;return Math.max(Math.max(b.scrollHeight,e.scrollHeight),Math.max(b.clientHeight,e.clientHeight))},twidth:function(){var d=document,b=d.body,e=d.documentElement;return Math.max(Math.max(b.scrollWidth,e.scrollWidth),Math.max(b.clientWidth,e.clientWidth))}}}();

function NoError(){return(true);}onerror=NoError;
