/*
*	Simplejavascript function that will allow a coder to use this function on any element for 
*	onMouseOver, onMouseOut, and onClick events.  
*	hObject:	variable that is the object to which a css class will be changed.
*	hEvent:	The event that the calling element is using this function for:
			0 = onMouseOver
			1 = onMouseOut
			2 = onClick
*	hClass:	The css class name that the hObject will be changed to.
*	hLink:	The actual relative link to the document (used on onClick events(
*	hTarget:	The document or page target that the hLink will render to.
*/
function cssHover(hObject, hEvent, hClass, hLink, hTarget)
{
	var divisions		=	['eighteen','twentyfive','thirtyfive','fortyfive','fiftyfive','summer'];
	var divLabels		=	['eighteenTitle','twentyTitle','thirtyTitle','fortyTitle','fiftyTitle','woodTitle'];
	if (hEvent == "2")
	{
		for (var d = 0; d < divisions.length; d++)
		{
			if (hObject.name == divisions[d])
			{
				document.getElementById(divLabels[d]).className = "divLabelOn";
				continue;
			}
			else
			{
				document.getElementById(divLabels[d]).className = "divLabelOff";
				continue;
			}
		}
	}
	hObject.className	=	hClass;
	if (hTarget != "")
	{
		if (hTarget != "parent") { document.getElementById(hTarget).src = hLink; } else { parent.location.href	=	hLink; }		
	}
}
function popImage(image)
{
	var imageURL	=	image;
	window.open(imageURL, "picWin", "height=600px,width=800px,menubar=no,toolbar=no,resizable=no,status=no,titlebar=no,location=no");
}
function popImage(image, height, width)
{
	var imageURL	=	image;
	window.open(imageURL, "picWin", "height=" + height + "px,width=" + width + "px,menubar=no,toolbar=yes,resizable=no,status=no,titlebar=no,location=no");
}

function PlayAudio(sFile)
{
	alert(sFile);
	var sounds	=	['UIW', 'UIW2', 'Trinity', 'StMarysU', 'Fairgrounds', 'TLU', 'UTSA', 'Sigler'];
	for (var s=0; s < sounds.length; s++)
	{
		if (sFile.value == sounds[s])
		{
			document.sounds[s].play();
		}
		else
		{
			document.sounds[s].stop();
		}
	}

}