zetOverlays();function zetOverlays(){loc=0;if(document.getElementById('artikelpost'))loc=document.getElementById('artikelpost');if(document.getElementById('homeposts'))loc=document.getElementById('homeposts');if(loc==0)return;a=loc.getElementsByTagName('a');for(i=0;i<a.length;i++){if(a[i].href.indexOf('.jpg')!=-1||a[i].href.indexOf('.JPG')!=-1||a[i].href.indexOf('.jpeg')!=-1||a[i].href.indexOf('.JPEG')!=-1||a[i].href.indexOf('.png')!=-1||a[i].href.indexOf('.PNG')!=-1||a[i].href.indexOf('.gif')!=-1||a[i].href.indexOf('.GIF')!=-1||a[i].href.indexOf('.bmp')!=-1){a[i].onclick=function(){checkOverlay(this);return false;}
b=a[i].childNodes;for(j=0;j<b.length;j++){if(b[j].tagName=='IMG'){}
else{a[i].className='imgLink';}}}}}
function checkOverlay(obj){if(!document.getElementById('overlay')){maakOverlay(obj);}
else{toonOverlay(obj);}}
function maakOverlay(obj){overlay=document.createElement('div');overlay.id='overlay';overlay.setAttribute('title','Klik om te sluiten');theImg=document.createElement('img');theImg.id='overlayImage';theImg.setAttribute('alt','');overlay.appendChild(theImg);document.body.appendChild(overlay);overlay.onclick=function(){hideOverlay(this);}
toonOverlay(obj)}
function toonOverlay(obj){overlay=document.getElementById('overlay');theImg=document.getElementById('overlayImage');theImg.setAttribute('title',obj.getAttribute('title'));theImg.src=obj.href;overlay.className='zichtbaar';if(obj.className=='imgLink')obj.className='imgLink visited';}
function hideOverlay(overlay){overlay.className='verborgen';theImg=document.getElementById('overlayImage');theImg.src='';theImg.setAttribute('title','');}
var staf_confirmtext='Mieuw!';stafform='<form method="post" action="/index.php" id="stafForm" onSubmit="return staf_Submit();">';stafform+='<h2>Mail dit artikel naar...</h2>';stafform+='<label for="stafToName" id="stafLblToName">Naam van je vriend</label><input name="staf_friendname" id="stafToName" type="text"><br>';stafform+='<label for="stafToMail" id="stafLblToMail">Mail van je vriend</label><input name="staf_friendemail" id="stafToMail" type="text"><br>';stafform+='<label for="stafFromName" id="stafLblFromName">Jouw naam</label><input name="staf_myname" id="stafFromName" type="text"><br>';stafform+='<label for="stafFromMail" id="stafLblFromMail">Jouw mail</label><input name="staf_myemail" id="stafFromMail" type="text"><br>';stafform+='<input type="hidden" name="staf_url" id="stafUrl" value="'+document.location.href+'"  />';stafform+='<input type="hidden" name="staf_title" id="stafTitle" value="'+document.title+'"  />';stafform+='<input type="Submit" value="Mieuw!">';stafform+='<p><a href="javascript:staf_Reset();">Toch maar liever niet...</a></p>';stafform+='</form>';function initStaf(){httpStaf=staf_getHTTPObject();stafLnk=document.getElementById('stafLink');if(stafLnk){stafLnk.href='javascript:void(0);';stafLnk.title='';stafLnk.onclick=function(){if(!document.getElementById('stafBlock')){stafBlock=document.createElement('div');stafBlock.id='stafBlock';document.body.appendChild(stafBlock);}
if(!document.getElementById('overlay')){overlayer=document.createElement('div');overlayer.id='overlay';document.body.appendChild(overlayer);}
overlayer.innerHTML='';overlayer.style.display='block';overlayer.onclick=function(){staf_Reset();}
stafBlock.innerHTML=stafform;stafBlock.className='staf-on';document.getElementById('stafUrl').value=document.URL;document.getElementById('stafBlock').style.display='block';return false;}}}
function staf_Reset(){document.getElementById('stafBlock').style.display='none';document.getElementById('overlay').style.display='none';}
function staf_Error(stafErrorArr){document.getElementById('stafLblFromName').style.color="#000";document.getElementById('stafLblFromMail').style.color="#000";document.getElementById('stafLblToName').style.color="#000";document.getElementById('stafLblToMail').style.color="#000";for(i=0;i<stafErrorArr.length;i++){document.getElementById(stafErrorArr[i]).style.color='#f00';}}
function staf_Submit(){if(httpStaf.readyState==4||httpStaf.readyState==0){httpStaf.open("POST",SendStaf,true);httpStaf.setRequestHeader('Content-Type','application/x-www-form-urlencoded');params='url='+document.getElementById('stafUrl').value;params+='&fromname='+document.getElementById('stafFromName').value;params+='&frommail='+document.getElementById('stafFromMail').value;params+='&toname='+document.getElementById('stafToName').value;params+='&tomail='+document.getElementById('stafToMail').value;params+='&title='+document.getElementById('stafTitle').value;httpStaf.send(params);var theMails='aan:' + document.getElementById('stafToMail').value + ' van: ' + document.getElementById('stafFromMail').value;httpStaf.onreadystatechange=function(){if(httpStaf.readyState==4){results=httpStaf.responseText;if(results.substring(0,5)=="Array"){results=eval(results);staf_Error(results);}else{document.getElementById("stafForm").innerHTML=staf_confirmtext;Mint.TT.behavior.record('MailAFriend',theMails);setTimeout('staf_Reset()',1000);}}}}else{setTimeout('staf()',400)}
return false;}
function staf_getHTTPObject(){var xmlhttp;if(!xmlhttp&&typeof XMLHttpRequest!='undefined'){try{xmlhttp=new XMLHttpRequest();}catch(e){xmlhttp=false;}}
return xmlhttp;}
var SendStaf='/w';SendStaf+='p';SendStaf+='-c';SendStaf+='onte';SendStaf+='nt/pl';SendStaf+='ugi';SendStaf+='ns/se';SendStaf+='nd';SendStaf+='toaf';SendStaf+='ri';SendStaf+='end/s';SendStaf+='endt';SendStaf+='oafrie';SendStaf+='nd.php?st';SendStaf+='af=true';initStaf();
if(document.getElementById('subscribe')){oudeHTML=document.getElementById('subscribe').innerHTML;formulier=' of ontvang de nieuwste berichten via e-mail:<form action="http://www.feedburner.com/fb/a/emailverify" method="post" target="popupwindow" onsubmit="window.open(\'http://www.feedburner.com/fb/a/emailverifySubmit?feedId=1585386\', \'popupwindow\', \'scrollbars=yes,width=550,height=520\');return true"><p><input type="text" style="width:140px" name="email"/><input type="hidden" value="http://feeds.feedburner.com/~e?ffid=1585386" name="url"/><input type="hidden" value="The Daily Mieuw" name="title"/><input type="hidden" name="loc" value="en_US"/><input type="submit" value="Doen!" /></p></form>';document.getElementById('subscribe').innerHTML=oudeHTML+formulier;}
