// Assign the last modified date to the variable lastmoddate
var lastmoddate = document.lastModified;

// Create an if statement to test the value of lastmoddate
if(lastmoddate == 0)  { 
	var pageData = "Lastmodified: Unknown<br>&copy; 2002 Copyright Shelley Biotech";
}
else  {
	var pageData = "<font class=\"copyrightText\">Lastmodified:" + lastmoddate + "<br>&copy; 2002 Copyright Shelley Biotech</font>";
}


	// Creation of the image objects
if (document.images)
{
ProductsOn=new Image(71, 33);
ProductsOn.src="images/products_on.gif";
ProductsOff=new Image(71, 33);
ProductsOff.src="images/products_off.gif";

ServicesOn=new Image(67, 33);
ServicesOn.src="images/services_on.gif";
ServicesOff=new Image(67, 33);
ServicesOff.src="images/services_off.gif";

TrainingOn=new Image(75, 33);
TrainingOn.src="images/training_on.gif";
TrainingOff=new Image(75, 33);
TrainingOff.src="images/training_off.gif";

CommonOn=new Image(157, 33);
CommonOn.src="images/common_on.gif";
CommonOff=new Image(157, 33);
CommonOff.src="images/common_off.gif";

NewsOn=new Image(98, 33);
NewsOn.src="images/news_on.gif";
NewsOff=new Image(98, 33);
NewsOff.src="images/news_off.gif";

AboutOn=new Image(106, 33);
AboutOn.src="images/about_on.gif";
AboutOff=new Image(106, 33);
AboutOff.src="images/about_off.gif";
}


// function to turn on rolled over graphic
function on(pic)  {
	if (document.images)  {
		document.images[pic].src=eval(pic + "On.src");
	}
}

// function to turn off rolled over graphic
function off(pic)  {
	if(document.images)  {
		document.images[pic].src= eval(pic + "Off.src");
    }
}

// Creating Image Objects for Product Banners
if (document.images)
{
product1Banner=new Image(71, 33);
product1Banner.src="specialrandomphotos/1.jpg";

product2Banner=new Image(71, 33);

product2Banner.src="specialrandomphotos/2.jpg";

product3Banner=new Image(71, 33);

product3Banner.src="specialrandomphotos/3.jpg";

product4Banner=new Image(71, 33);

product4Banner.src="specialrandomphotos/4.jpg";

product5Banner=new Image(71, 33);

product5Banner.src="specialrandomphotos/5.jpg";

product6Banner=new Image(71, 33);

product6Banner.src="specialrandomphotos/6.jpg";

product7Banner=new Image(71, 33);

product7Banner.src="specialrandomphotos/7.jpg";
}


// First Generate a Random number that will be used to choose the intitial product banner displayed on the page


var prodStart = Math.random()*6+1;
prodStart = Math.round(prodStart);

// Product Banner Randomizer
function bannerChanger()  {
	prodStart = Math.random()*6+1;
	prodStart = Math.round(prodStart);
	document.images['prodBanner'].src = eval("product" + prodStart + "Banner.src");
	setTimeout("bannerChanger()", 5000);
}

setTimeout("bannerChanger()", 5000);
