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;



function popupcase(mylink, windowname)
{
if (!window.focus) return true;
var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else {
	href=mylink.href;
	window.open(href, windowname, 'width=450,height=410,scrollbars=no,left=200,top=200');
	}
return false;
}

function popupportrait(mylink, windowname)
{
if (!window.focus) return true;
var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else {
	href=mylink.href;
	window.open(href, windowname, 'width=450,height=550,scrollbars=no,left=200,top=200');
	}
return false;
}


function popuplandscape(mylink, windowname)
{
if (!window.focus) return true;
var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else {
	href=mylink.href;
	window.open(href, windowname, 'width=550,height=450,scrollbars=no,left=200,top=200');
	}
return false;
}


function popuppdf(mylink, windowname)
{
if (!window.focus) return true;
var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else {
	href=mylink.href;
	window.open(href, windowname, 'width=650,height=550,scrollbars=no,left=200,top=200');
	}
return false;
}



function popupinstallflash(mylink, windowname)
{
if (!window.focus) return true;
var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else {
	href=mylink.href;
	window.open(href, windowname, 'width=780,height=650,scrollbars=yes,left=200,top=200');
	}
return false;
}