slideShowSpeed = 6000
crossFadeDuration = 10
Pic = new Array()

Pic[0] = 'images/phoill_1.jpg'
Pic[1] = 'images/phoill_2.jpg'
Pic[2] = 'images/phoill_3.jpg'
Pic[3] = 'images/phoill_4.jpg'
Pic[4] = 'images/phoill_5.jpg'
Pic[5] = 'images/phoill_6.jpg'
Pic[6] = 'images/phoill_7.jpg'
Pic[7] = 'images/phoill_8.jpg'
Pic[8] = 'images/phoill_9.jpg'
Pic[9] = 'images/phoill_9.jpg'

p = Pic.length
preLoad = new Array()

for (i = 0; i < p; i++){
	preLoad[i] = new Image()
	preLoad[i].src = Pic[i]
}

var j
if (j==null){ 
do {
j=Math.round(Math.random()*10); 
} while(j>=10);
}

function runSlideShow(){
	if (document.images.SlideShow==undefined) { return; }
	if (document.all){
		document.images.SlideShow.style.filter="blendTrans(duration=2)"
		document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
		document.images.SlideShow.filters.blendTrans.Apply() 
	}
	if (document.images.SlideShow!=undefined) { document.images.SlideShow.src = preLoad[j].src }
	if (document.all){
		document.images.SlideShow.filters.blendTrans.Play()
	}
	j = j + 1
	if (j > (p-1)) j=0
	t = setTimeout('runSlideShow()', slideShowSpeed)
}

function showroll(img) { if (document.images[img]!=undefined) { document.images[img].className='blend100';} }
function hideroll(img,page) { if (img!=page) { document.images[img].className='blend25'; } }


// zoom galerie
var popzoomgal
function zoomgal(photo) {
	var url = "zoom.php?photo=" + photo  ;
	var w=700;
	var h=500;
	if(popzoomgal == null || popzoomgal.closed) {
		popzoomgal = window.open(url, "nl", "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,copyhistory=0,width=" + w + ",height=" + h + ",top=30,left=30");
	} else {
		popzoomgal.close()
		popzoomgal = window.open(url, "nl", "toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=0,copyhistory=0,width=" + w + ",height=" + h + ",top=30,left=30");
	}
}
