// dit kun je wijzigen
	var BeeldbreedteKM4=100;
	var BeeldhoogteKM4=75;
	var Rand=true;
	var Randkleur="silver";
	var SnelheidKM4=13;
	var PauzeKM4=1800; // 1 seconde = 1000
	var Verticaal=0;	
// hier plaats je de afbeeldingen
	AfbeeldingenKM4=new Array(
		"Fotos/2009-04-12 Pasen 2009/IMG_4869.thumb.JPG","#",
		"Fotos/2009-04-12 Pasen 2009/IMG_4870.thumb.JPG","#",
		"Fotos/2009-04-12 Pasen 2009/IMG_4915.thumb.JPG","#",
		"Fotos/2009-04-12 Pasen 2009/IMG_4917.thumb.JPG","#",
		"Fotos/2009-04-12 Pasen 2009/IMG_4919.thumb.JPG","#",
		"Fotos/2009-04-12 Pasen 2009/IMG_4928.thumb.JPG","#"
		);
// Hieronder niets wijzigen
	var BLIKM4,BMIKM4,BRIKM4,BTIKM4,HOEKKM4=0,AFBCKM4=6,MAXBKM4,RICHTINGKM4=1;
	var B_MSzKM4,HALTKM4=false;AFBVKM4=new Array(AfbeeldingenKM4.length);

	function fotoboekKM4(){
		if(document.getElementById){
			for(i=0;i<AfbeeldingenKM4.length;i+=2){
				AFBVKM4[i]=new Image();AFBVKM4[i].src=AfbeeldingenKM4[i]}
			BoekDiv=document.getElementById("Boek4");
			BLIKM4=document.createElement("img");BoekDiv.appendChild(BLIKM4);	
			BRIKM4=document.createElement("img");BoekDiv.appendChild(BRIKM4);
			BMIKM4=document.createElement("img");BoekDiv.appendChild(BMIKM4);	
			BLIKM4.style.position=BMIKM4.style.position=BRIKM4.style.position="absolute";
			BLIKM4.style.zIndex=BRIKM4.style.zIndex=0;BMIKM4.style.zIndex=1;
			BLIKM4.style.top=(Verticaal?BeeldhoogteKM4+1:0)+"px";
			BLIKM4.style.left=0+"px";
			BMIKM4.style.top=0+"px";
			BMIKM4.style.left=(Verticaal?0:BeeldbreedteKM4+1)+"px";
			BRIKM4.style.top=0+"px";
			BRIKM4.style.left=(Verticaal?0:BeeldbreedteKM4+1)+"px";
			BLIKM4.style.height=BeeldhoogteKM4+"px";
			BMIKM4.style.height=BeeldhoogteKM4+"px";
			BRIKM4.style.height=BeeldhoogteKM4+"px";
			BLIKM4.style.width=BeeldbreedteKM4+"px";
			BMIKM4.style.width=BeeldbreedteKM4+"px";
			BRIKM4.style.width=BeeldbreedteKM4+"px";
			if(Rand){
				BLIKM4.style.borderStyle=BMIKM4.style.borderStyle=BRIKM4.style.borderStyle="solid";
				BLIKM4.style.borderWidth=1+"px";
				BMIKM4.style.borderWidth=1+"px";
				BRIKM4.style.borderWidth=1+"px";
				BLIKM4.style.borderColor=BMIKM4.style.borderColor=BRIKM4.style.borderColor=Randkleur}
			BLIKM4.src=AFBVKM4[0].src;
			BLIKM4.lnk=AfbeeldingenKM4[1];
			BMIKM4.src=AFBVKM4[2].src;
			BMIKM4.lnk=AfbeeldingenKM4[3];
			BRIKM4.src=AFBVKM4[4].src;
			BRIKM4.lnk=AfbeeldingenKM4[5];
			BLIKM4.onclick=BMIKM4.onclick=BRIKM4.onclick=HYPERLINKKM4;
			BLIKM4.onmouseover=BMIKM4.onmouseover=BRIKM4.onmouseover=STOPKM4;
			BLIKM4.onmouseout=BMIKM4.onmouseout=BRIKM4.onmouseout=STARTKM4;
			AFBEELDINGENKM4()}}

	function AFBEELDINGENKM4(){
		if(!HALTKM4){
			if(Verticaal){
				B_MSzKM4=Math.abs(Math.round(Math.cos(HOEKKM4)*BeeldhoogteKM4));
				MidOffset=!RICHTINGKM4?BeeldhoogteKM4+1:BeeldhoogteKM4-B_MSzKM4;
				BMIKM4.style.top=MidOffset+"px";
				BMIKM4.style.height=B_MSzKM4+"px"}
			else{B_MSzKM4=Math.abs(Math.round(Math.cos(HOEKKM4)*BeeldbreedteKM4));
				MidOffset=RICHTINGKM4?BeeldbreedteKM4+1:BeeldbreedteKM4-B_MSzKM4;
				BMIKM4.style.left=MidOffset+"px";
				BMIKM4.style.width=B_MSzKM4+"px"}
			HOEKKM4+=SnelheidKM4/720*Math.PI;
			if(HOEKKM4>=Math.PI/2&&RICHTINGKM4){
				RICHTINGKM4=0;
				if(AFBCKM4==AfbeeldingenKM4.length)AFBCKM4=0;
				BMIKM4.src=AFBVKM4[AFBCKM4].src;
				BMIKM4.lnk=AfbeeldingenKM4[AFBCKM4+1];
				AFBCKM4+=2}
			if(HOEKKM4>=Math.PI){
				RICHTINGKM4=1;
				BTIKM4=BLIKM4;
				BLIKM4=BMIKM4;
				BMIKM4=BTIKM4;
				if(Verticaal)BMIKM4.style.top=0+"px";
				else BMIKM4.style.left=BeeldbreedteKM4+1+"px";			
				BMIKM4.src=BRIKM4.src;
				BMIKM4.lnk=BRIKM4.lnk;

				setTimeout("PAUZERENKM4()",PauzeKM4)}
			else setTimeout("AFBEELDINGENKM4()",50)}
		else setTimeout("AFBEELDINGENKM4()",50)}

	function PAUZERENKM4(){
			if(AFBCKM4==AfbeeldingenKM4.length)AFBCKM4=0;
			BRIKM4.src=AFBVKM4[AFBCKM4].src;
			BRIKM4.lnk=AfbeeldingenKM4[AFBCKM4+1];
			BMIKM4.style.zIndex=2;
			BLIKM4.style.zIndex=1;
			HOEKKM4=0;
			AFBCKM4+=2;
		setTimeout("AFBEELDINGENKM4()",50)}

	function HYPERLINKKM4(){if(this.lnk)window.location.href=this.lnk}
	function STOPKM4(){HALTKM4=true;this.style.cursor=this.lnk?"pointer":"default"}
	function STARTKM4(){HALTKM4=false}
