/*
Dynamic Splash Screen effect- © Dynamic Drive (www.dynamicdrive.com)
For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use, 
Visit http://dynamicdrive.com
modified by Joe Pavlecich 5/12/06
continuously rotate images in a container
*/

//Specify the paths of the images to be used in the splash screen, if any.
//If none, empty out array (ie: preloadimages=new Array())
	var preloadimages=new Array("Photos/Kid1.jpg","Photos/Kid2.jpg", "Photos/Kid3.jpg", "Photos/Kid4.jpg")
//configure delay in miliseconds between each message (default: 2 seconds)
	var intervals=3000

//configure messages to be displayed
//If message contains apostrophe('), backslash them (ie: "I\'m fine")
	var rotateimage=new Array()
	rotateimage[0]='<img name="Child1" src="Photos/Kid1.jpg" width="170" height="178" alt="Child">'
	rotateimage[1]='<img name="Child2" src="Photos/Kid2.jpg" width="170" height="178" alt="Child">'
	rotateimage[2]='<img name="Child3" src="Photos/Kid3.jpg" width="170" height="178" alt="Child">'
	rotateimage[3]='<img name="Child4" src="Photos/Kid4.jpg" width="170" height="178" alt="Child">'
	
	var quote=new Array()
	var openingtags='<hr color="#6711AD"><p>&quot;'
	quote[0]='My Big Sister is teaching me how to play chess'
	quote[1]='I do cool stuff with my Big'
	quote[2]='I always have fun with my Big Sister'
	quote[3]='My Big Brother is like a "real" big brother!'
	var closingtags='&quot; </p><hr color="#6711AD">'

//Do not edit below this line (besides HTML code at the very bottom)

var i=0

var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
var theimages=new Array()

//preload images
if (document.images){
	for (p=0;p<preloadimages.length;p++){
		theimages[p]=new Image()
		theimages[p].src=preloadimages[p]
	}
}

function displaysplash(){

	sc_cross.style.visibility="hidden"
	sc_cross.innerHTML=rotateimage[i]
	sc_cross.style.visibility="visible"
	qc_cross.style.visibility="hidden"
	qc_cross.innerHTML=openingtags+quote[i]+closingtags
	qc_cross.style.visibility="visible"
	i++

	if(i>=rotateimage.length){
		i=0
	}
	setTimeout("displaysplash()",intervals)
}

function displaysplash_ns(){

	sc_ns.visibility="hide"
	sc_ns.document.write(rotateimage[i])
	sc_ns.document.close()
	sc_ns.visibility="show"
	qc_ns.visibility="hide"
	qc_ns.document.write(openingtags+quote[i]+closingtags)
	qc_ns.document.close()
	qc_ns.visibility="show"
	i++

	if(i>=rotateimage.length){
		i=0
	}
	setTimeout("displaysplash_ns()",intervals)
}



function positionsplashcontainer(){
	if (ie4||ns6){
		sc_cross=ns6?document.getElementById("splashcontainer"):document.all.splashcontainer
		qc_cross=ns6?document.getElementById("quotecontainer"):document.all.quotecontainer
		displaysplash()
	}
	else if (ns4){
		sc_ns=document.splashcontainerns
		sc_ns.visibility="show"
		qc_ns=document.quotecontainerns
		qc_ns.visibility="show"
		displaysplash_ns()
	}
	else{
		// need to change to a document write of full sponsor images
		window.location=targetdestination
	}
}
window.onload=positionsplashcontainer