<!--

var winH;
var winW;

// Detect Client Browser type
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;

function getDimensions()
{
	if (parseInt(navigator.appVersion)>3) {
	 if (navigator.appName=="Netscape") {
	  winW = window.innerWidth;
	  winH = window.innerHeight;
	 }
	 if (navigator.appName.indexOf("Microsoft")!=-1)
	 {
	  winW = document.body.offsetWidth;
	  winH = document.body.offsetHeight;
	 }
	}	
}

function showSite(fn)
{
	getDimensions();

	if (winH==undefined)
	{
		 w=1012;
		 h=660;
	}
	else
	{
	
		if (winH >= 660)
		{
			 w=1012;
			 h=660;
		}
		else
		{
			w=920;
			h=600;
		}
	}
	
	document.write ('<object type="application/x-shockwave-flash" data="' + fn + '" width="' + w + '" height="' + h + '">\n');
	document.write ('<param name="movie" value="' + fn + '">\n');
	document.write ('</object>\n');
}

function goMembersOnly(jsArg) { redirect("members/");	}

function redirect(weburl)
{
	var path = window.location.pathname;
	var newLocation = window.location.host;
	var p = location.protocol;
	path = path.substring(0, path.lastIndexOf("/"));	
	// https?
	newLocation = p + "//" + newLocation + path + "/" + weburl;	
	window.location.href = newLocation;
}
// -->
