<!--
//**************************************************/
//  © 1997-2004  Nortia Technologies.   All rights reserved.
//
//	File:			incTopBanner.js		
//	Author(s):		ks
//  Created:		1/13/2004	
//	Description:	Top banner image manipulation and common functions
//	Dependencies:
//	Functions:		
//	Notes:
//	TODO:		
//	History:
//		
//**************************************************/
// random number generator 
function randInt (Num) {
 	var now = new Date();
 	var rand = Math.round(Num * Math.cos(now.getTime()));
 	if (rand < 0) rand = - rand; 
 	if (rand == 0) rand++;
  return rand;
}

// checks the file name and manipulates it accordinglyfunction swapImage(img, bImageOn) {	// if the image should be on and is not, turn it on	if (bImageOn && img.src.indexOf("_on")==-1) {
		img.src=img.src.replace(".gif", "_on.gif");	} else { // turn it off		img.src=img.src.replace("_on", "");	}}
// stuff to do once the page is loaded
function initClient() {

	var img = document.images["topright"];
	
	// get a handle to the image, and randomly pick one of 9 images
	img.src = img.src.slice(0, img.src.lastIndexOf("/")) + "/topright/image" + randInt(9) + ".jpg";
	
}