// ********
// file:	 siteImageRotator.js
// Author:   Jie Li -- jli@sabatinoday.com
// Copyright 2007
// Date:     05/19/2007
// Revision: 1.0
// *******

// Constructor for SiteImageRotator
function SiteImageRotator(strName, strImagePath, strDescription) {
	this.strName = strName;
	this.strImagePath = strImagePath;
	this.strDescription = strDescription;
} // SiteImageRotator()

// methods for Event Class
SiteImageRotator.prototype.print = function() {
	var page="";		
		page += '<img src="' + this.strImagePath + '">';		
	document.write(page);	
} // SiteImageRotator.prototype.print()
SiteImageRotatorList = new Array(6);
SiteImageRotatorList[1] = new SiteImageRotator('', '/Portals/0/home/imageRotate_01.jpg', '');
SiteImageRotatorList[2] = new SiteImageRotator('', '/Portals/0/home/imageRotate_02.jpg', '');
SiteImageRotatorList[3] = new SiteImageRotator('', '/Portals/0/home/imageRotate_03.jpg', '');
SiteImageRotatorList[4] = new SiteImageRotator('', '/Portals/0/home/imageRotate_04.jpg', '');
SiteImageRotatorList[5] = new SiteImageRotator('', '/Portals/0/home/imageRotate_05.jpg', '');
SiteImageRotatorList[6] = new SiteImageRotator('', '/Portals/0/home/imageRotate_06.jpg', '');

// start creating random numbers
rnd.today=new Date();
rnd.seed=rnd.today.getTime();
function rnd() {
        rnd.seed = (rnd.seed*9301+49297) % 233280;
        return rnd.seed/(233280.0);
};
function rand(number) {
        return Math.ceil(rnd()*number);
};
var SiteImageRotatorPicked = SiteImageRotatorList[rand(6)];
// print SiteImageRotator profile
SiteImageRotatorPicked.print();