//UPDATES
//10.05.02	acf	remove homePath statements
//					acf	added popProduct function
//11.07.02	acf	changed the popProduct function to have the height from 450 to 470
function showstatus(current,e,text) {
	window.status=text;
}
function hidestatus(){
	window.status="";
}
function showtip(current,e,text) {
	if (document.all) {
		thetitle=text.split('<br>')
		if (thetitle.length>1) {
			thetitles=''
			for (i=0;i<thetitle.length;i++)
				thetitles+=thetitle[i]
				current.title=thetitles
		}
		else
			current.title=text
	}
	else if (document.layers)	{
		document.tooltip.document.write('>layer bgColor="white" style="border:1px solid black;font-size:12px;">'+text+'</layer>')
		document.tooltip.document.close()
		document.tooltip.left=e.pageX+5
		document.tooltip.top=e.pageY+5
		document.tooltip.visibility="show"
	}
}
function hidetip() {
	if (document.layers)
	document.tooltip.visibility="hidden"
}
function privacy() {
	file = '/global/privacy.asp';
	props=window.open(file, 'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=660, height=350, left=187, top=209');
}
function notices() {
	file = '/global/notices.asp';
	props=window.open(file, 'poppage', 'toolbars=0, scrollbars=1, location=0, statusbars=0, menubars=0, resizable=0, width=660, height=350, left=187, top=205');
}
function getCookie (name) {
	var dcookie = document.cookie;
	var cname = name + "=";
	var clen = dcookie.length;
	var cbegin = 0;
	
	while (cbegin < clen) {
		var vbegin = cbegin + cname.length;
		if (dcookie.substring(cbegin, vbegin) == cname) {
			var vend = dcookie.indexOf (";", vbegin);
			if (vend == -1) vend = clen;
			return unescape(dcookie.substring(vbegin, vend));
		}
		cbegin = dcookie.indexOf(" ", cbegin) + 1;
		if (cbegin == 0) break;
	}
	return null;
}
function setCookie (name, value, expires) {
	if (!expires) expires = new Date();
	document.cookie = name + "=" + escape (value) + "; expires=" + expires.toGMTString() +  "; path=/";
}
function delCookie (name) {
	var expireNow = new Date();
	document.cookie = name + "=" + "; expires=Thu, 30-Oct-73 00:00:01 GMT" +  "; path=/";
}
function setCookieArray(name){
	this.length = setCookieArray.arguments.length - 1;
	for (var i = 0; i < this.length; i++) {
		data = setCookieArray.arguments[i + 1]
		setCookie (name + i, data, expdate);
	}
}
function getCookieArray(name){
	var i = 0;
	while (getCookie(name + i) != null) {
		this[i + 1] = getCookie(name + i);
		i++; this.length = i;
	}
}
function Is() {
    var agent = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.ns  = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
    this.ns2 = (this.ns && (this.major == 2));
    this.ns3 = (this.ns && (this.major == 3));
    this.ns4b = (this.ns && (this.minor < 4.04));
    this.ns4 = (this.ns && (this.major >= 4));
    this.ie   = (agent.indexOf("msie") != -1);
    this.ie3  = (this.ie && (this.major == 2));
    this.ie4  = (this.ie && (this.major >= 4));
    this.op3 = (agent.indexOf("opera") != -1);
    this.win   = (agent.indexOf("win")!=-1);
    this.mac   = (agent.indexOf("mac")!=-1);
    this.unix  = (agent.indexOf("x11")!=-1);
}
var is = new Is();

function on (img) {
	document['changeImg'].src = img.src;
}
function off () {
	document['changeImg'].src = chg.src;
}
function popProduct (product) {
	file = product + '.asp';
	props=window.open(file, 'popproduct', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=0, width=600, height=470, left=75, top=75');
}