// dit kun je wijzigen
	var BeeldbreedteKM2=100;
	var BeeldhoogteKM2=75;
	var Rand=true;
	var Randkleur="silver";
	var SnelheidKM2=8;
	var PauzeKM2=1800; // 1 seconde = 1000
	var Verticaal=0;	
// hier plaats je de afbeeldingen
	AfbeeldingenKM2=new Array(
		"Fotos/2009-04-12 Pasen 2009/IMG_4859.thumb.JPG","#",
		"Fotos/2009-04-12 Pasen 2009/IMG_4861.thumb.JPG","#",
		"Fotos/2009-04-12 Pasen 2009/IMG_4865.thumb.JPG","#",
		"Fotos/2009-04-12 Pasen 2009/IMG_4862.thumb.JPG","#"
		);
// Hieronder niets wijzigen
	var BLIKM2,BMIKM2,BRIKM2,BTIKM2,HOEKKM2=0,AFBCKM2=6,MAXBKM2,RICHTINGKM2=1;
	var B_MSzKM2,HALTKM2=false;AFBVKM2=new Array(AfbeeldingenKM2.length);

	function fotoboekKM2(){
		if(document.getElementById){
			for(i=0;i<AfbeeldingenKM2.length;i+=2){
				AFBVKM2[i]=new Image();AFBVKM2[i].src=AfbeeldingenKM2[i]}
			BoekDiv=document.getElementById("Boek2");
			BLIKM2=document.createElement("img");BoekDiv.appendChild(BLIKM2);	
			BRIKM2=document.createElement("img");BoekDiv.appendChild(BRIKM2);
			BMIKM2=document.createElement("img");BoekDiv.appendChild(BMIKM2);	
			BLIKM2.style.position=BMIKM2.style.position=BRIKM2.style.position="absolute";
			BLIKM2.style.zIndex=BRIKM2.style.zIndex=0;BMIKM2.style.zIndex=1;
			BLIKM2.style.top=(Verticaal?BeeldhoogteKM2+1:0)+"px";
			BLIKM2.style.left=0+"px";
			BMIKM2.style.top=0+"px";
			BMIKM2.style.left=(Verticaal?0:BeeldbreedteKM2+1)+"px";
			BRIKM2.style.top=0+"px";
			BRIKM2.style.left=(Verticaal?0:BeeldbreedteKM2+1)+"px";
			BLIKM2.style.height=BeeldhoogteKM2+"px";
			BMIKM2.style.height=BeeldhoogteKM2+"px";
			BRIKM2.style.height=BeeldhoogteKM2+"px";
			BLIKM2.style.width=BeeldbreedteKM2+"px";
			BMIKM2.style.width=BeeldbreedteKM2+"px";
			BRIKM2.style.width=BeeldbreedteKM2+"px";
			if(Rand){
				BLIKM2.style.borderStyle=BMIKM2.style.borderStyle=BRIKM2.style.borderStyle="solid";
				BLIKM2.style.borderWidth=1+"px";
				BMIKM2.style.borderWidth=1+"px";
				BRIKM2.style.borderWidth=1+"px";
				BLIKM2.style.borderColor=BMIKM2.style.borderColor=BRIKM2.style.borderColor=Randkleur}
			BLIKM2.src=AFBVKM2[0].src;
			BLIKM2.lnk=AfbeeldingenKM2[1];
			BMIKM2.src=AFBVKM2[2].src;
			BMIKM2.lnk=AfbeeldingenKM2[3];
			BRIKM2.src=AFBVKM2[4].src;
			BRIKM2.lnk=AfbeeldingenKM2[5];
			BLIKM2.onclick=BMIKM2.onclick=BRIKM2.onclick=HYPERLINKKM2;
			BLIKM2.onmouseover=BMIKM2.onmouseover=BRIKM2.onmouseover=STOPKM2;
			BLIKM2.onmouseout=BMIKM2.onmouseout=BRIKM2.onmouseout=STARTKM2;
			AFBEELDINGENKM2()}}

	function AFBEELDINGENKM2(){
		if(!HALTKM2){
			if(Verticaal){
				B_MSzKM2=Math.abs(Math.round(Math.cos(HOEKKM2)*BeeldhoogteKM2));
				MidOffset=!RICHTINGKM2?BeeldhoogteKM2+1:BeeldhoogteKM2-B_MSzKM2;
				BMIKM2.style.top=MidOffset+"px";
				BMIKM2.style.height=B_MSzKM2+"px"}
			else{B_MSzKM2=Math.abs(Math.round(Math.cos(HOEKKM2)*BeeldbreedteKM2));
				MidOffset=RICHTINGKM2?BeeldbreedteKM2+1:BeeldbreedteKM2-B_MSzKM2;
				BMIKM2.style.left=MidOffset+"px";
				BMIKM2.style.width=B_MSzKM2+"px"}
			HOEKKM2+=SnelheidKM2/720*Math.PI;
			if(HOEKKM2>=Math.PI/2&&RICHTINGKM2){
				RICHTINGKM2=0;
				if(AFBCKM2==AfbeeldingenKM2.length)AFBCKM2=0;
				BMIKM2.src=AFBVKM2[AFBCKM2].src;
				BMIKM2.lnk=AfbeeldingenKM2[AFBCKM2+1];
				AFBCKM2+=2}
			if(HOEKKM2>=Math.PI){
				RICHTINGKM2=1;
				BTIKM2=BLIKM2;
				BLIKM2=BMIKM2;
				BMIKM2=BTIKM2;
				if(Verticaal)BMIKM2.style.top=0+"px";
				else BMIKM2.style.left=BeeldbreedteKM2+1+"px";			
				BMIKM2.src=BRIKM2.src;
				BMIKM2.lnk=BRIKM2.lnk;

				setTimeout("PAUZERENKM2()",PauzeKM2)}
			else setTimeout("AFBEELDINGENKM2()",50)}
		else setTimeout("AFBEELDINGENKM2()",50)}

	function PAUZERENKM2(){
			if(AFBCKM2==AfbeeldingenKM2.length)AFBCKM2=0;
			BRIKM2.src=AFBVKM2[AFBCKM2].src;
			BRIKM2.lnk=AfbeeldingenKM2[AFBCKM2+1];
			BMIKM2.style.zIndex=2;
			BLIKM2.style.zIndex=1;
			HOEKKM2=0;
			AFBCKM2+=2;
		setTimeout("AFBEELDINGENKM2()",50)}

	function HYPERLINKKM2(){if(this.lnk)window.location.href=this.lnk}
	function STOPKM2(){HALTKM2=true;this.style.cursor=this.lnk?"pointer":"default"}
	function STARTKM2(){HALTKM2=false}
