<!--

// global javascripts

// browser compatibility check
if (!(document.getElementById || document.all)) {
	// redirect to browser incompatibility page
	alert('Please upgrade your browser to use our site fully.');
}
var ie = (document.all) ? 1 : 0;
var ns4 = (document.layers) ? 1 : 0;
var ns6 = (document.getElementById) ? 1 : 0;

// rollovers
function swap(img,state){
	if (document.all){
		document.all[img].src = state ?  '/images/'+img+'_on.gif' : '/images/'+img+'_off.gif';
	} else if (document.getElementById){
		document.getElementById(img).src = state ?  '/images/'+img+'_on.gif' : '/images/'+img+'_off.gif';
	}
}

// function to go to new site and close popup
function goPopSite(url){
	var mainWin = window.opener;
	location.mainWin.href = url;
	mainWin.focus();
	window.close();
}

// function to open advert popup
function openPopup(url){
	// check for cookie
	if (document.cookie.indexOf("adPop") == -1){
		var params = 'height=580,width=536,directories=no,location=no,menubar=no,resizable=yes,scrollbars=no,toolbar=no,screenX=100,screenY=50,left=100,top=50';
		// 6/17/05: disable popup
		/* var popWin = window.open(url,'imgWindow',params);
		if (popWin){
			popWin.focus();
		}
		*/
		
		// set cookie
		// 6/17/05: comment out cookie set since script is now disabled
		// document.cookie="adPop=general; expires=''; path=/;"
	}
}

//-->