// as of 01/03/05: all the dynamic stuff in this site is tested on Windows XP with 
// IE 6.029
// NS 7.2
// Opera 7.5

function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

//browser check
isNS4 = (document.layers) ? true : false;
isIE4 = (document.all && !document.getElementById) ? true : false;
isIE5 = (document.all && document.getElementById) ? true : false;
isNS6 = (!document.all && document.getElementById) ? true : false;
isNS = (isNS4 || isNS6) ? true : false;
isIE = (isIE4 || isIE5) ? true : false;

function close_me() {
	opener.focus();
	setTimeout("self.close()", 200);
}

var newBrWindow = null;
function new_win(url) {
	if(url.indexOf("http") == -1){
		window.opener.location.href = url;
		window.opener.focus();
	}else{
		newBrWindow=window.open(url,'newBrWindow','width=700,height=450,location=1,scrollbars=1,resizable=1,status=1,menubar=1,toolbar=1');
		newBrWindow.focus();
	}
}

var newBrWindow = null;
function LaunchSignUp(url) {
	if(url.indexOf("http") == -1){
		window.opener.location.href = url;
		window.opener.focus();
	}else{
		newBrWindow=window.open(url,'newBrWindow','left=20 top=20 width=800,height=680,location=1,scrollbars=1,resizable=1,status=1,menubar=0,toolbar=0');
		newBrWindow.focus();
	}
}

var contactWin = null;
function LaunchContactForm2(topic) {
	var url = "../pages/contact_form.asp?topic="+topic;
	contactWin=window.open(url,'contactWin','left=200,top=250,width=500,height=600,location=no,scrollbars=no,resizable=no,status=no');
	contactWin.focus();
}
