
// -----------------------
// FUNCTION: fHoverImage
// DESCRIPTION: A function that changes the image for the hovered state.
// ARGUMENTS: sElementId
// RETURN: None
// -----------------------
function fHoverImage(sImageCollection,sElementId){
	var sObjName = eval(fGetImageCollection(sImageCollection) + sElementId + 'Hover.src');
	document.getElementById(sElementId).childNodes[0].src = sObjName;
}


// -----------------------
// FUNCTION: fChangeClassName
// DESCRIPTION: A function to change the className of an ID
// ARGUMENTS: changeID, classname
// ARGUMENT VALUES: changeID = the ID of the element to change, classname = the class name to change element to
// RETURN: None
// -----------------------
function fChangeClassName(changeID, classname) {
	document.getElementById(changeID).className = classname;
}

// FUNCTION: fGoURL
// DESCRIPTION: A function that redirects the browser to the received url
// ARGUMENTS: sUrl
// RETURN: None
// ----------------------
function fGoURL(sUrl) {
	if(sUrl.match('http://')){
		window.open(sUrl);
	} else {
		window.location = sUrl;
	}
}



