var image_path = '/images/' ;

// This function creates an array of images to be preloaded
function doPreload() {
	var arrImages = new Array();
//	preloadImages(arrImages);
}

// This function preloads an array of images
function preloadImages(arrImagesArray) {
	for (loop = 0; loop < arrImagesArray.length; loop++) {
		preloadImage ( image_path + arrImagesArray[loop] ) ;
	}
}

// This function preloads a sinlge image
function preloadImage (strImage) {
	var objImage = new Image() ;
	objImage.src = strImage;
}

function imageRollover (intImageID, strImagePath) {
	document.images[intImageID].src = strImagePath ;
}


// This function does the rollovers for the left hand nav.
function changeColor(theColor, theId, theLayer)
{
	if (document.getElementById || document.all || document.layers)
	{
		if((document.all)||(document.getElementById))
		{
			theDocument = 'document.all.' + theId;
			theStyle = eval(theDocument + ".style");
			theStyle.backgroundColor = theColor;			
		}
		if(document.layers)
		{
			theDocument = eval('document.layers[' + theLayer + ']');
			theDocument.document.layers[0].bgColor= theColor;
		}
	}
}


function changeLeftNavColor (strColor, intID) {
			if (document.all) {
				changeColor (strColor, "left_" + intID + "a") ;
				changeColor (strColor, "left_" + intID + "b") ;
				changeColor (strColor, "left_" + intID + "c") ;
				changeColor (strColor, "left_" + intID + "d") ;
				changeColor (strColor, "left_" + intID + "e") ;
				changeColor (strColor, "left_" + intID + "f") ;
			}
			if (document.layers) {
				changeColor (strColor, "left_layer_" + intID + "a", (6*intID)+0 ) ;
				changeColor (strColor, "left_layer_" + intID + "b", (6*intID)+1 ) ;
				changeColor (strColor, "left_layer_" + intID + "c", (6*intID)+2 ) ;
				changeColor (strColor, "left_layer_" + intID + "d", (6*intID)+3 ) ;
				changeColor (strColor, "left_layer_" + intID + "e", (6*intID)+4 ) ;
				changeColor (strColor, "left_layer_" + intID + "f", (6*intID)+5 ) ;
			}
}

//This function checks for mac platform
var browser_version = parseInt(navigator.appVersion);
if  (navigator.platform == "MacPPC") {
	document.write('<link rel="Stylesheet" href="/css/mac.css" type="text/css">');
}

// Browser detection for IE
function isIE(){
 if (document.all){
	return true;
	}
return false;
}

