
var timerID=null;var timerOn=false;var timecount=500;var what=null;var newbrowser=true;var check=false;var layerRef;var styleSwitch;function init(){if(document.layers){layerRef="document.layers";styleSwitch="";visibleVar="show";screenSize=window.innerWidth;what="ns4";}else if(document.all){layerRef="document.all";styleSwitch=".style";visibleVar="visible";screenSize=document.body.clientWidth+18;what="ie";}else if(document.getElementById){layerRef="document.getElementByID";styleSwitch=".style";visibleVar="visible";what="moz";}else{what="none";newbrowser=false;}
check=true;}
function showLayer(layerName){if(check){if(what=="none"){return;}else if(what=="moz"){document.getElementById(layerName).style.visibility="visible";}else{eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');}}else{return;}}
function hideLayer(layerName){if(check){if(what=="none"){return;}else if(what=="moz"){document.getElementById(layerName).style.visibility="hidden";}else{eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');}}else{return;}}
function hideAll(){hideLayer('MENU_BLOK1');hideLayer('MENU_BLOK2');hideLayer('MENU_BLOK3');hideLayer('MENU_BLOK4');hideLayer('MENU_BLOK5');}
function startTime(){if(timerOn==false){timerID=setTimeout("hideAll()",timecount);timerOn=true;}}
function stopTime(){if(timerOn){clearTimeout(timerID);timerID=null;timerOn=false;}}
var controls=new Array();var depth=0;function showItem(ItemNr){depth=(ItemNr.length/2)-1;controls[depth]=ItemNr;if(document.getElementById(ItemNr).style.display==''){document.getElementById(ItemNr).style.display='none';}else{document.getElementById(ItemNr).style.display='';}}
var slideCache=new Array();function InitSlideShow(){RunSlideShow('slideshow','http://www.mijnshop.be/layout/flash0.jpg;http://www.mijnshop.be/layout/flash1.jpg;http://www.mijnshop.be/layout/flash2.jpg;http://www.mijnshop.be/layout/flash3.jpg;http://www.mijnshop.be/layout/flash4.jpg;http://www.mijnshop.be/layout/flash5.jpg;http://www.mijnshop.be/layout/flash6.jpg;http://www.mijnshop.be/layout/flash7.jpg',5);}
function RunSlideShow(pictureName,imageFiles,displaySecs){var imageSeparator=imageFiles.indexOf(";");var nextImage=imageFiles.substring(0,imageSeparator);if(document.all){document.getElementById(pictureName).style.filter="blendTrans(duration=1)";document.getElementById(pictureName).filters.blendTrans.Apply();}
document.getElementById(pictureName).src=nextImage;if(document.all){document.getElementById(pictureName).filters.blendTrans.Play();}
var futureImages=imageFiles.substring(imageSeparator+1,imageFiles.length)
+';'+nextImage;setTimeout("RunSlideShow('"+pictureName+"','"+futureImages+"',"+displaySecs+")",displaySecs*1000);imageSeparator=futureImages.indexOf(";");nextImage=futureImages.substring(0,imageSeparator);if(slideCache[nextImage]==null){slideCache[nextImage]=new Image;slideCache[nextImage].src=nextImage;}}
function SubmitAanvraag(){if(document.form1.naam.value==""||document.form1.voornaam.value==""||document.form1.straat.value==""||document.form1.nummer.value==""||document.form1.postcode.value==""||document.form1.woonplaats.value==""||document.form1.voornaam.value==""||document.form1.telefoon.value==""||document.form1.gsm.value==""){alert("U moet minstens het eerste blok volledig invullen zodat wij u kunnen contacteren.");return false;}
return true;}
function SubmitContact(){var filter=/^[\w\.-]+@[\w\.-]+\.[a-zA-Z]{2,4}$/;if(document.form2.naam.value==""||document.form2.telefoon.value==""||!filter.test(document.form2.email.value)){alert("U moet minstens het eerste blok volledig invullen zodat wij u kunnen contacteren.");return false;}
return true;}
