// <--
// ------------------------------ Roller Over Image Functions -------------------------------------- //
function initRollovers() {
	if (!document.getElementById) return
	
	var aPreLoad = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');

	for (var i = 0; i < aImages.length; i++) {		
		if (aImages[i].className == 'imgover') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '-o'+ftype);

			aImages[i].setAttribute('hsrc', hsrc);
			
			aPreLoad[i] = new Image();
			aPreLoad[i].src = hsrc;
			
			aImages[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}	
			
			aImages[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('-o'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}

window.onload = initRollovers;

// ------------------------------------ Image pop ups --------------------------------------- //
function popup(url,name,height,width) {
	var newWindow = window.open(url, name, "height="+height+",width="+width+",toolbar=no,menubar=no,scrollbars=yes,resizable=yes,status=no");
	newWindow.focus();
	return newWindow;
}

// -------------------------------- Show Progress of Upload ---------------------------------- //
function showProgress() {
	document.getElementById('uploadprogress').style.display = 'block';    
   	return true;
}

// --------------------------------------- Print Page --------------------------------------- //
function printPage() {
	window.print();  
}

// --------------------------------------- Submit Form --------------------------------------- //
function submitForm(formName)
{
	setTimeout("document."+formName+".submit()",2000);
}
// -->
