// Global JavaScripts Functions
<!--

	function changeBorderWhiteGal(imgTag)
	{
		imgTag.style.borderColor = 'blue';
		imgTag.style.filter = 'alpha(opacity=100)';
		imgTag.style.opacity = 1;
		document.getElementById("zoomImg").style.width = null;
		document.getElementById("zoomImg").style.filter = 'alpha(opacity=100)';
		document.getElementById("zoomImg").style.opacity = 1
		document.getElementById("zoomImg").src = imgTag.src;
		if (document.getElementById("zoomImg").width >= 532)
		{
			document.getElementById("zoomImg").style.width = 532;
		}
	}
	function changeBorderDefault(imgTag)
	{
		imgTag.style.borderColor = 'white';
		imgTag.style.filter = 'alpha(opacity=40)';
		imgTag.style.opacity = 0.4;
	}
	function hideImage()
	{		
		document.getElementById("zoomImg").style.filter = 'alpha(opacity=0)';
		document.getElementById("zoomImg").style.opacity = 0
	}
	
function changeBorderBlack(imgBorder)
{
	imgBorder.style.borderColor = 'blue';
}

function changeBorderWhite(imgBorder)
{
	imgBorder.style.borderColor = 'white';
}
	
function setFocus() {
 document.forms[0].elements[0].focus();
}


function displayDate() {
 var today = new Date()
 var year = today.getYear()
 if(year < 1000) {
    year += 1900
 }
 
 var monthArray = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December")
 var daysOfWeek = new Array("Sunday", "Monday","Tuesday", "Wednesday", "Thursday","Friday", "Saturday")			   
 document.write (daysOfWeek[today.getDay()] + ", " + monthArray[today.getMonth()] + " " +  today.getDate() + ", " + year)

}

var cm=null;
document.onclick = new Function("show(null)")

function getPos(el,sProp) {
 var iPos = 0
 while (el!=null) {
	iPos+=el["offset" + sProp]
	el = el.offsetParent
 }
 return iPos
}

function show(el,m) {
 if (m) {
	m.style.display='';
	m.style.pixelLeft = getPos(el,"Left")
	m.style.pixelTop = getPos(el,"Top") + el.offsetHeight
 }
 if ((m!=cm) && (cm)) cm.style.display='none'
    cm=m
}

-->
