<!--
var slidespeed = 3000;
var slideimages = new Array();

slideimages[0] = "../images/headerNew1.jpg";
slideimages[1] = "../images/headerNew2.jpg";

var beginNR = random_num = (Math.round((Math.random()*1)+0));

function slideIt() {
	
	var pixeldelay = document.getElementById('slide').filters[0].duration*1000;
	
	document.getElementById('slide').src = slideimages[beginNR];
	document.getElementById('slide').filters[0].apply();
	document.images.slide.filters[0].play();
	
	beginNR = (beginNR<slideimages.length-1) ? beginNR + 1 : 0;
	
	setTimeout("slideIt()",slidespeed + pixeldelay);
}

function correctPNG() {

   for(var i=0; i<document.images.length; i++)
      {
	  var img = document.images[i]
	  var imgName = img.src.toUpperCase()
	  if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
	     {
		 var imgID = (img.id) ? "id='" + img.id + "' " : ""
		 var imgClass = (img.className) ? "class='" + img.className + "' " : ""
		 var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
		 var imgStyle = "display:inline-block;" + img.style.cssText 
		 if (img.align == "left") imgStyle = "float:left;" + imgStyle
		 if (img.align == "right") imgStyle = "float:right;" + imgStyle
		 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle		
		 var strNewHTML = "<span " + imgID + imgClass + imgTitle
		 + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
	     + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
		 + "(src=\'" + img.src + "\', sizingMethod='noscale');\"></span>" 
		 img.outerHTML = strNewHTML
		 i = i-1
	     }
      }
   }

function heroUsage() {
  pagina = escape(document.location.href);
  ref = escape(document.referrer);
  if((ref == "") || (ref == "undefined")){ ref = "favorieten"; }
  screensize = screen.width + "x" + screen.height;
  screencolor = (navigator.appName.indexOf("Microsoft") > -1) ? screen.colorDepth : screen.pixelDepth;
  document.frames['hero_usage'].location="../usage/statistieken_save.php?pagina="+pagina+"&referrer="+ref+"&screensize="+screensize+"&screencolor="+screencolor+"";
}

PositionX = 100;
PositionY = 100;

defaultWidth  = 500;
defaultHeight = 500;

var AutoClose = true;

if (parseInt(navigator.appVersion.charAt(0))>=4){
var isNN=(navigator.appName=="Netscape")?1:0;
var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->

function aanMelden() {

	var fout=0;
	
	if(document.form1.voornaam.value=='') {
		fout=1;
		document.form1.voornaam.className='red';
	} else {
		document.form1.voornaam.className='';
	}
		
	if(document.form1.naam.value=='') {
		fout=1;
		document.form1.naam.className='red';
	} else {
		document.form1.naam.className='';
	}
	
	if(document.form1.bedrijf.value=='') {
		fout=1;
		document.form1.bedrijf.className='red';
	} else {
		document.form1.bedrijf.className='';
	}
	
	if(document.form1.plaats.value=='') {
		fout=1;
		document.form1.plaats.className='red';
	} else {
		document.form1.plaats.className='';
	}

	if(document.form1.telefoon.value=='') {
		fout=1;
		document.form1.telefoon.className='red';
	} else {
		document.form1.telefoon.className='';
	}

	if(document.form1.email.value=='') {
		fout=1;
		document.form1.email.className='red';
	} else {
		document.form1.email.className='';
	}

	if(document.form1.klant_id.value=='') {
		fout=1;
		document.form1.klant_id.className='red';
	} else {
		document.form1.klant_id.className='';
	}

	if(!fout) {
		document.form1.submit();
	}

}
function afMelden() {

	var fout=0;
	
	if(document.form1.email.value=='') {
		fout=1;
		document.form1.email.className='red';
	} else {
		document.form1.email.className='';
	}
	
	if(!fout) {
		document.form1.submit();
	}
}
function verzendMail() {
	
	var fout=0;
	
	if(document.form1.naam.value=='') {
		fout=1;
		document.form1.naam.className='red';
	} else {
		document.form1.naam.className='';
	}
	
	if((document.form1.email.value=='') && (document.form1.telefoon.value=='')) {
		fout=1;
		document.form1.email.className='red';
		document.form1.telefoon.className='red';
	} else {
		document.form1.email.className='';
		document.form1.telefoon.className='';
	}
	
	if(document.form1.opmerking.value=='') {
		fout=1;
		document.form1.opmerking.className='red';
	} else {
		document.form1.opmerking.className='';
	}
	
	if(!fout) {
		document.form1.submit();
	}
}

function verzendBestel() {
	
	var fout=0;
	
	if(document.form1.firma.value=='') {
		fout=1;
		document.form1.firma.className='red';
	} else {
		document.form1.firma.className='';
	}
	
	if(document.form1.naam.value=='') {
		fout=1;
		document.form1.naam.className='red';
	} else {
		document.form1.naam.className='';
	}
	
	if(document.form1.voorletters.value=='') {
		fout=1;
		document.form1.voorletters.className='red';
	} else {
		document.form1.voorletters.className='';
	}
	
	if(document.form1.adres.value=='') {
		fout=1;
		document.form1.adres.className='red';
	} else {
		document.form1.adres.className='';
	}
	
	if(document.form1.plaats.value=='') {
		fout=1;
		document.form1.plaats.className='red';
	} else {
		document.form1.plaats.className='';
	}
	
	if(document.form1.telefoon.value=='') {
		fout=1;
		document.form1.telefoon.className='red';
	} else {
		document.form1.telefoon.className='';
	}
	
	if(document.form1.email.value=='') {
		fout=1;
		document.form1.email.className='red';
	} else {
		document.form1.email.className='';
	}
	
	if(!fout) {
		//alert("verzenden");
		document.form1.submit();
	}
}
function hideLayer() {

	document.getElementById('selectedLayer').style.visibility='hidden';
}

