/* Welcome to our Decomposing Pianos Slideshow code!												*//* 			The opactity routines are from here:													*//* 								http://brugbart.com/Articles/javascript-fade						*//* 			Our website is 		http://decomposingpianos.com										*//*																									*//* 		********** Please reference these in your javascript file! **********		 				*//*																									*//* 			Thanks for looking and hope you enjoy! -dp												*/var duration = 1000; /* fade duration in millisecond */var hidtime = 2500; /* time to stay hidden */var showtime = 2500; /* time to stay visible */var totaltime = 7000;var val1, val2;var numt = 7;if (document.images) {	var txtimg=new Array();	txtimg[0] = "images/winterflowers.png";	txtimg[1] = "images/dress4.png";	txtimg[2] = "images/pears.png";	txtimg[3] = "images/boxroombed.png";	txtimg[4] = "images/summerroses.png";	txtimg[5] = "images/blanket.png";	txtimg[6] = "images/twodressesfan.png";	txtimg[7] = "images/eliesashells.png";		var imageA = new Array();	for (i=0;i<=numt;i=i+1){		imageA[i] = new Image();		imageA[i].src = txtimg[i];	}}function startslideshow(){			val1 = 0;	val2 = 1;		if (document.images) {		LoadImage();		setTimeout("LoadOtherImage()",3000);		setTimeout("fadeOut()",3500);	}	}function LoadImage(){	document['img0'].src = imageA[val1].src;		val1 = val1 + 2;	if (val1>numt) {val1=0;}	setTimeout("LoadImage()",totaltime);}function LoadOtherImage(){			document['img1'].src = imageA[val2].src;		val2 = val2 + 2;	if (val2>numt) {val2=1;}	setTimeout("LoadOtherImage()",totaltime);}function fadeOut() {	for (i = 0; i <= 1; i += 0.01) {		setTimeout("SetOpa(" + (1 - i) +")", i * duration);	}	setTimeout("fadeIn()", (duration + hidtime));}function fadeIn() {	for (i = 0; i <= 1; i += 0.01) {		setTimeout("SetOpa(" + i +")", i * duration);	}	setTimeout("fadeOut()", (duration + showtime));}function SetOpa(Opa) {	document.getElementById("spot1").style.opacity = Opa;	document.getElementById("spot1").style.MozOpacity = Opa;	document.getElementById("spot1").style.KhtmlOpacity = Opa;	document.getElementById("spot1").style.filter = 'alpha(opacity=' + (Opa * 100) + ');';}
