browserVer = 1;

ie4up = false;
ns4up = false;
ns6up = false;

switch( navigator.appName.toLowerCase() ) {
	case "microsoft internet explorer" :
		if( parseInt(navigator.appVersion) == 4 ) ie4up = true;
		break;
	case "netscape" :
		if( parseInt(navigator.appVersion) == 4 ) ns4up = true;
		else if( parseInt(navigator.appVersion) == 5 ) ns6up = true;
		break;
}
function fade(event) {
	var obj = window.event.srcElement;
	if (event == "on") {
		obj.style.cursor = "hand";
		obj.style.backgroundColor = "#C01212";
		obj.style.color = "#FFEBB6";
	} else {
		obj.style.backgroundColor = "#911010";
		obj.style.color = "#ffffff";
	}
}
function swapColor(prop,val) {
	var obj = window.event.srcElement;
	obj.style[prop] = val;
}
function popup(file,wide,high,name) {
	window.open(file, name,"width="+wide+",height="+high+",status=no,toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no");
}
function noscroll(file,wide,high,name) {
	window.open(file, name,"width="+wide+",height="+high+",status=no,toolbar=no,menubar=no,location=no,scrollbars=no,resizable=no");
}
function fullscreenpopup(url,winname,w,h) {
	var w = screen.width-17
   	var h = screen.height-54
   	winl=0;
   	wint=0
    winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=0'+',resizable=0'
    win = window.open(url, winname, winprops)
    if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	//return false;
}

function openwinNoScroll(file,wide,high,name) {
var winl = (screen.width - wide) / 2;
var wint = (screen.height - high) / 8;
window.open(file, name,"width="+ wide+",height="+high+",top="+wint+",left="+winl+", status=no,toolbar=no,menubar=no,location=no,scrollbars=0,resizable=no");
}

function openwin(file,wide,high,name) {
	var winl = (screen.width - wide) / 2;
	var wint = (screen.height - high) / 8;
	window.open(file, name,"width="+ wide+",height="+high+",top="+wint+",left="+winl+", status=no,toolbar=no,menubar=no,location=no,scrollbars=0,resizable=no");
}