<!-- 
/*
        -------------------------------------------------------------------------------------------------
        Random Image/Link JavaScript(tm) by Jim Matvichuk

        This code may be used freely as long as this copyright notice
        remains with the code.
        
                        Copyright© 1997, Jim Matvichuk
                        Jim_Matvichuk@compuserve.com
                        All rights reserved


*/

/*

// Global vars----
G_total_sa = 0;                                 // total random elements
G_day = new Date();                             // date for seed
G_seed = G_day.getTime();                       // G_seed for random number


//---CHANGE THESE ARRAY ELEMENTS TO YOUR LINK/IMAGE
//---ADD/SUBTRACT AS MANY AS YOU NEED
// Just replace your URL and image tags between the single quotes:  ae_('   your stuff here   ');

// <!-- 
// -->

ae_('<img src="assets/images/ask/askAubrey.jpg" height="161" width="161" border="0" alt="Ask Aubrey">');
ae_('<img src="assets/images/ask/askEric.jpg" height="161" width="161" border="0" alt="Ask Eric">');
ae_('<img src="assets/images/ask/askRob.jpg" height="161" width="161" border="0" alt="Ask Rob">');
ae_('<img src="assets/images/ask/askTrudy.jpg" height="161" width="161" border="0" alt="Ask Trudy">');
ae_('<img src="assets/images/ask/askZach.jpg" height="161" width="161" border="0" alt="Ask Zach">');


//------------------------------------------------------------------------------------
// Function to Create image/link Object Array
//------------------------------------------------------------------------------------
function ae_ (description) {
        G_total_sa++;
        sa [G_total_sa] = description;
}

//-------------------------------------------------------------------------------------
// function to create a random number from 1 to total number
// of array elements
//-------------------------------------------------------------------------------------

function rand() {
RN = parseInt(((G_seed - (parseInt(G_seed/1000,10) * 1000))/10)/100*G_total_sa + 1,10);
        return RN;
}

///////////////////////////////////////////////////////////////////
// CREATE THE image/link OBJECT ARRAY
function sa () {}
*/






/*
Rotating image or text(You can use for changing banners)
Author: Narayan Chand Thakur
Source: http://ncthakur.itgo.com/
This may be used freely as long as this message is intact.
*/
<!--

//you may add your image file or text below
var photos=new Array()

photos[0]="<img src='assets/images/home/ask/askAubrey1.jpg' height='127' width='110' border='0' alt='Ask Aubrey'>"
photos[1]="<img src='assets/images/home/ask/askEric1.jpg' height='127' width='110' border='0' alt='Ask Eric'>"
photos[2]="<img src='assets/images/home/ask/askRob1.jpg' height='127' width='110' border='0' alt='Ask Rob'>"
photos[3]="<img src='assets/images/home/ask/askTrudy1.jpg' height='127' width='110' border='0' alt='Ask Trudy'>"
photos[4]="<img src='assets/images/home/ask/askZach1.jpg' height='127' width='110' border='0' alt='Ask Zach'>"

var names=new Array()

names[0]="<img src='assets/images/home/ask/askAubrey2.jpg' height='47' width='64' border='0' alt='Ask Aubrey'>"
names[1]="<img src='assets/images/home/ask/askEric2.jpg' height='47' width='64' border='0' alt='Ask Eric'>"
names[2]="<img src='assets/images/home/ask/askRob2.jpg' height='47' width='64' border='0' alt='Ask Rob'>"
names[3]="<img src='assets/images/home/ask/askTrudy2.jpg' height='47' width='64' border='0' alt='Ask Trudy'>"
names[4]="<img src='assets/images/home/ask/askZach2.jpg' height='47' width='64' border='0' alt='Ask Zach'>"


//var randomnumber=Math.floor(Math.random()*5

//var whichquote=Math.floor(Math.random()*(quotes.length))

var current=Math.floor(Math.random()*(photos.length))

var ns6=document.getElementById&&!document.all

function changeItem() {

	changePhoto()
	changeName()

	if (current==(photos.length)-1) current=0
	else current++

	setTimeout("changeItem()",6000)
}

function changePhoto() {
	if (document.layers) {
		document.layer1.document.write(photos[current])
		document.layer1.document.close()
	}

	if (ns6)document.getElementById("div1").innerHTML=photos[current] 
	{
		if (document.all) {
			div1.innerHTML=photos[current]
		}
	}
}

function changeName() {
	if (document.layers) {
		document.layer2.document.write(names[current])
		document.layer2.document.close()
	}

	if (ns6)document.getElementById("div2").innerHTML=names[current] 
	{
		if (document.all) {
			div2.innerHTML=names[current]
		}
	}
}

window.onload=changeItem



//-->