// rollover

function over() {
	if (!document.getElementById) return
	var aPreLoad = new Array();
	var aPreLoad2 = new Array();
	var sTempSrc;
	var aImages = document.getElementsByTagName('img');	
	var aImages2 = document.getElementsByTagName('input');
	
	for (var i = 0; i < aImages.length; i++) {		
		if (aImages[i].className == 'over') {
			var src = aImages[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_on'+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('_on'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
	for (var i = 0; i < aImages2.length; i++) {		
		if (aImages2[i].className == 'over') {
			var src = aImages2[i].getAttribute('src');
			var ftype = src.substring(src.lastIndexOf('.'), src.length);
			var hsrc = src.replace(ftype, '_on'+ftype);
			aImages2[i].setAttribute('hsrc', hsrc);
			aPreLoad2[i] = new Image();
			aPreLoad2[i].src = hsrc;
			aImages2[i].onmouseover = function() {
				sTempSrc = this.getAttribute('src');
				this.setAttribute('src', this.getAttribute('hsrc'));
			}
			aImages2[i].onmouseout = function() {
				if (!sTempSrc) sTempSrc = this.getAttribute('src').replace('_on'+ftype, ftype);
				this.setAttribute('src', sTempSrc);
			}
		}
	}
}

window.onload = over;


// WinOpen 

function winOpen(x){
	ext_win1 = window.open(x,"winOpen","width=600,Height=700,toolbar=no,location=no,directories=no,scrollbars=yes,resizable=yes,status=yes")
}

function winNexus(x){
	ext_win1 = window.open(x,"winNexus","width=585,Height=647,toolbar=no,location=no,directories=no,scrollbars=yes,resizable=yes,status=yes")
}

function winNexus02(x){
	ext_win1 = window.open(x,"winNexus02","width=585,Height=647,toolbar=no,location=no,directories=no,scrollbars=yes,resizable=yes,status=yes")
}

function winProfile(x){
	ext_win1 = window.open(x,"winProfile","width=530,Height=600,toolbar=no,location=no,directories=no,scrollbars=yes,resizable=yes,status=yes")
}

function winProgram(x){
	ext_win1 = window.open(x,"winProgram","width=530,Height=700,toolbar=no,location=no,directories=no,scrollbars=yes,resizable=yes,status=yes")
}



// retrieveGETqs
var qsParm = new Array();
function retrieveGETqs() {
var query = window.location.search.substring(1);
var parms = query.split('&');
	for (var i=0; i<parms.length; i++) {
		var pos = parms[i].indexOf('=');
		if (pos > 0) {
			var key = parms[i].substring(0,pos);
			var val = parms[i].substring(pos+1);
			qsParm[key] = val;
		}
	}
}
