//(c) 2000 Bureau Angenent


var expDays = 365;
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
var timerID=0
var newWindow = null
var brOK=false;
var mie=false;
var aver=parseInt(navigator.appVersion.substring(0,1));
var aname=navigator.appName;



function checkbrOK()
{if(aname.indexOf("Internet Explorer")!=-1)
   {if(aver>=4) brOK=navigator.javaEnabled();
    mie=true;
   }
 if(aname.indexOf("Netscape")!=-1)  
   {if(aver>=4) brOK=navigator.javaEnabled();}
}



function hulp(){
var newWindow1=null
newWindow1=window.open("hulp.html","Helpscherm","width=500,height=350,scrollbars")
newWindow1.focus()


}

function popUpWindow(){
var newWindow2=null
newWindow2=window.open("naam0.html","Smart","width=220,height=330")
newWindow2.focus()

}

function kantoorWindow(naam){
var newWindow3=null
newWindow3=window.open(naam,"Kantoor","width=400,height=450,scrollbars")
newWindow3.focus()

}


function blend(foto){
	if (document.all){
		document.images[0].filters.blendTrans.apply()}
	document.images[0].src=eval(foto+".src");
	if (document.all){
		document.images[0].filters.blendTrans.play()}
}



function closeWindow(){ 
	if (newWindow2 != null){
	newWindow2.close()
	}

}

function niets(){
}


function even(imgName){
    	document[imgName].src=eval("knop_" + imgName + "_even.src")
	
}

function down(imgName){
    	document[imgName].src=eval("knop_" + imgName + "_down.src")
	
}

function totZiens(){
       	var VisitorName = GetCookie('VisitorName')
              if (VisitorName == null){
		VisitorName = "bezoeker"
	}
              var newWindow3=null
	newWindow3=window.open("feedback.htm","Feedback","scrollbars,width=300,height=550")
	newWindow3.focus()

		
}

function totZiens2(){
       	var VisitorName = GetCookie('VisitorName')
              if (VisitorName == null){
		VisitorName = "bezoeker"
	}
              alert("Tot ziens, " + VisitorName +"! Leuk dat je mijn Smart kwam bekijken.")
		
}



function timer(time){
		time=time*1000
		timerID=setTimeout('loadPage()',time)
}






function loadPage(){
		window.location.href=volgende

}






function kiesFoto2(){
        var VisitorName = GetCookie('VisitorName')
                if (VisitorName != null) {
                window.location="naam1.html"      
                } else {
                window.location="naam3.html"  
                }
}





function pakNaam(){

                var VisitorName = document.forms[0].Naam.value;
                SetCookie ('VisitorName', VisitorName, exp)
                

}



function schrijfNaam(){
        var VisitorName = GetCookie('VisitorName')
                if (VisitorName != null) {
                 document.write(VisitorName)       
                }
        
}


function plaatsNaam(){
        var VisitorName = GetCookie('VisitorName')
                if (VisitorName != null) {
                 document.forms[0].Naam.value=VisitorName
                }
        
}

function getCookieVal (offset) {  
        var endstr = document.cookie.indexOf (";", offset);  
        if (endstr == -1)    
                endstr = document.cookie.length;  
                return unescape(document.cookie.substring(offset, endstr));
}


function GetCookie (name) {  
        var arg = name + "=";  
        var alen = arg.length;  
        var clen = document.cookie.length;  
        var i = 0;  
        while (i < clen) {    
        var j = i + alen;    
        if (document.cookie.substring(i, j) == arg)      
                return getCookieVal (j);    
                i = document.cookie.indexOf(" ", i) + 1;    
                if (i == 0) break;   
        }  
        return null;
}


function SetCookie (name, value) {  
        var argv = SetCookie.arguments;  
        var argc = SetCookie.arguments.length;  
        var expires = (argc > 2) ? argv[2] : null;  
        var path = (argc > 3) ? argv[3] : null;  
        var domain = (argc > 4) ? argv[4] : null;  
        var secure = (argc > 5) ? argv[5] : false;  

        document.cookie = name + "=" + escape (value) + 
        ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
        ((path == null) ? "" : ("; path=" + path)) +  
        ((domain == null) ? "" : ("; domain=" + domain)) +    
        ((secure == true) ? "; secure" : "");
}

function wisCookie (name) {  
        var exp = new Date();  
        exp.setTime (exp.getTime() - 1);  
        var cval = GetCookie (name);  
        document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}








