if (top.location != self.location) {
	top.location=self.location
}

//IMAGE SLIDESHOW FUNCTIONS

//set the header slide show parameters
//set duration for each image
duration = 2.5;


//set image paths, *****use path relative to the particular page
var pixNamePrefix = "../src/media/headerTiles/van";
var pixFileExtension = "gif";
var numOfImages = 15;

//initialization
arrSrcPath = new Array(numOfImages);
var strNumOfImages = "" + numOfImages;
for(iTER=0; iTER<=numOfImages-1; iTER++) 
{
	var strPixID = "" + (iTER + 1);
	while(strPixID.length < strNumOfImages.length){
		strPixID = "0" + strPixID;
	}
    	arrSrcPath[iTER] = pixNamePrefix + strPixID + "." + pixFileExtension;
 	//alert(iTER + " " + arrSrcPath[iTER]);
}

//set corresponding urls
url = ["http://freewarejava.com", "http://javascriptkit.com", "http://dynamicdrive.com", "http://www.geocities.com"]


//Not to edit below this point
arrPix=[]; count=0;
function switchSlide() {
var n=(count+1)%arrSrcPath.length;
if (arrPix[n] && (arrPix[n].complete || arrPix[n].complete==null)) {
//document.getElementById("header").style.background = "#eaebec url(gifs/van02.gif) no-repeat";
document.getElementById("header").style.background = "#eaebec url(" + arrPix[count=n].src + ") no-repeat";
//alert(arrPix[count].src );
//document.getElementById("header").style.background = "#eaebec url(gifs/van02.gif) no-repeat";

//document["Ad_Image"].src = ads[ct=n].src;
}
arrPix[n=(count+1)%arrSrcPath.length] = new Image;
arrPix[n].src = arrSrcPath[n];
setTimeout("switchSlide()",duration*1000);
}
function autoSlideShow(){
location.href = url[ct];
} onload = function(){
if (document.images)
switchSlide();
}

//The manual slideshow is manualSlideShow() with Previous and Next links


