function preloadImages() {
	if (document.images) {
		for (var i = 0; i < preloadImages.arguments.length; i++) {
			(new Image()).src = preloadImages.arguments[i];
		}
	}
}

function roll(img_name, img_src)
   {
   document[img_name].src = img_src;
   }

   
/* DHTML FUNCTIONS */

var isNav4, isIE4, isNav6 = false;
var range = "";
var styleObj = "";

if (navigator.appVersion.charAt(0) >= 4) {
	if (navigator.appName == "Netscape") {
		if (navigator.appVersion.charAt(0) >= 5) {
			isNav6 = true;
		}
		else {
			isNav4 = true;
		}
	}
	else {
		isIE4 = true;
		range = "all.";
		styleObj = ".style";
	}
}

function getObject(obj) {
	var theObj;
	if (typeof obj == "string") {
		if (isNav6) {
			theObj = document.getElementById(obj);
			if (theObj != null) theObj = theObj.style;
		}
		else {
			theObj = eval("document." + range + obj);
			if (theObj != null) theObj = eval("theObj" + styleObj);
		}
	}
	else {
		theObj = obj;
	}
	return theObj;
}

function show () {
	var theObj;
	for (var i = 0; i < show.arguments.length; i++) {
		theObj = getObject(show.arguments[i]);
		if (theObj != null) {
			theObj.display = "block";
			theObj.visibility = "visible";
		}
	}
}

function hide () {
	var theObj;
	for (var i = 0; i < hide.arguments.length; i++) {
		theObj = getObject(hide.arguments[i]);
		if (theObj != null) {
			theObj.display = "none";
			theObj.visibility = "hidden";
		}
	}
}

function menuActive () {
	var theObj;
	for (var i = 0; i < menuActive.arguments.length; i++) {
		theObj = getObject(menuActive.arguments[i]);
		if (theObj != null) {
			theObj.color = "#536D89";
			theObj.backgroundColor = "#FFFFFF";
		}
	}
}

function menuInActive () {
	var theObj;
	for (var i = 0; i < menuInActive.arguments.length; i++) {
		theObj = getObject(menuInActive.arguments[i]);
		if (theObj != null) {
			theObj.color = "#3F9BA4";
			theObj.backgroundColor = "";
		}
	}
}
