// JavaScript Documentfunction rand( min, max ) {    if( max ) {        return Math.floor(Math.random() * (max - min + 1)) + min;    } else {        return Math.floor(Math.random() * (min + 1));    }}function swapFace(){	var t;		//kies random face id	nr = rand(1,26);	if(nr == 14){	nr = rand(1,13);  	}	if(nr == 15){	nr = rand(16,26);  	}	faceid = document.getElementById('face'+nr);		//vervang src door random src (001.jpg t/m 187.jpg)	newnr = rand(1,187);	if(newnr<10){		newnr = '00' + newnr;	}else if(newnr < 100){		newnr = '0' + newnr;	}	faceid.src = 'art/graphics/faces/' + newnr + '.jpg'; 			//en roep functie over x secs weer aan	t=setTimeout("swapFace()",3000); 	}addLoadEvent(function(){ swapFace(); }); function swapStyle(){	main = document.getElementById('mainsheet');	if(main.getAttribute('href')=="styles/guest.css"){		main.setAttribute('href','styles/guestprint.css');		//alert(main.getAttribute('href'));	}else{		main.setAttribute('href','styles/guest.css');	}		}
