// eXnetcom INC.
// function definition - default (for web server)
// Copyright eXnetcom INC. All Rights Reserved.


// On Click POPUP WINDOW --------------------///
function win_open1(uri,nm) {
    window.open(uri,nm,"width=430,height=550 toolbar=0,location=0,directories=0,status=no,menubar=1,scrollbars=no,resizable=no,left=0,top=0");
}

function win_open2(uri,nm) {
    window.open(uri,nm,"width=486,height=500 toolbar=0,location=0,directories=0,status=no,menubar=1,scrollbars=1,resizable=no,left=0,top=0");
}


// Standards Compliant Rollover Script ------///
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;


// Iframe Resize ------///
function iFrameHeight() {
	var h = 0;
	var Opera = window.opera ? true : false;
	if (Opera) {
		h = document.getElementById('blockrandom').contentDocument.getElementById('inHeight').offsetHeight + 20;
		document.getElementById('blockrandom').setAttribute("height",h);
	} else if ( !document.all ) {
		h = document.getElementById('blockrandom').contentDocument.height;
		document.getElementById('blockrandom').style.height = h + 60 + 'px';
	} else if( document.all ) {
		h = document.frames('blockrandom').document.body.scrollHeight;
		document.all.blockrandom.style.height = h + 20 + 'px';
	}
}



