function OpenDisclaimer() {
window.open ("../disclaimer.html", "my_new_window","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width=500,height=250,top=0,left=0")
}

function menuGoUrl(url)
{
var ptr = 0;
var urlf = "";
var url1 = "";
var url2 = "";
var tmpText = "";

tmpText = url;

	ptr = tmpText.indexOf(",");
	if (ptr > 0)
	{
		url1 = tmpText.substr(0, ptr);
		url2 = tmpText.substr(ptr+1, tmpText.length-ptr);
	}
	else
	{
		url1 = tmpText;
	}

	urlf = "../HTML/display.asp?content=" + url1 + "&t=" + t;
	if (url2 != "")
		urlf += "#" + url2;

	parent.main.location = urlf;
}

function goUrl(url)
{
var ptr = 0;
var urlf = "";
var url1 = "";
var url2 = "";
var tmpText = "";

tmpText = url;

	ptr = tmpText.indexOf(",");
	if (ptr > 0)
	{
		url1 = tmpText.substr(0, ptr);
		url2 = tmpText.substr(ptr+1, tmpText.length-ptr);
	}
	else
	{
		url1 = tmpText;
	}

	urlf = "display.asp?content=" + url1 + "&t=" + t;
	if (url2 != "")
		urlf += "#" + url2;

	parent.main.location = urlf;
}

var isNav4, isNav6, isIE4;

/*
 * Browser version snooper; determines your browser
 * (Navigator 4, Navigator 6, or Internet Explorer 4/5)
 */
function setBrowser()
{
    if (navigator.appVersion.charAt(0) == "4")
    {
        if (navigator.appName.indexOf("Explorer") >= 0)
        {
            isIE4 = true;
        }
        else
        {
            isNav4 = true;
        }
    }
    else if (navigator.appVersion.charAt(0) > "4")
    {
        isNav6 = true;
    }
}
setBrowser();

function setIdProperty( id, property, value )
{
    if (isNav6)
    {
        var styleObject = document.getElementById( id );
        if (styleObject != null)
        {
            styleObject = styleObject.style;
            styleObject[ property ] = value;
        }
        
        /*
		styleObject = getStyleBySelector( "#" + id );
        if (styleObject != null)
        {
            styleObject[property] = value;
        }
		*/
    }
    else if (isNav4)
    {
        document[id][property] = value;
    }
    else if (isIE4)
    {
         document.all[id].style[property] = value;
    }
}

function staticNavBar()
{
	var y = document.body.scrollTop
	setIdProperty("navbg", "top", y );
	setTimeout("staticNavBar()",1);
}


// Open Window fuction - input Url, width, height
// ----------------------------------------------
function OpenWindow(URL,W,H){
if (navigator.appName == "Netscape") strFeatures = "top=30,left=0,width=550,height=400,toolbar=0,menubar=1,location=0,directories=0,scrollbars=0";
	strFeatures = "top=30,left=30,width=" + W + ",height=" + H + ",toolbar=no,menubar=no,location=no,directories=no";
	objCreditsWindow = window.open(URL, "Video", strFeatures);
	window.status = "Pop Up Window";
}

// reloads the window if Nav4 resized
// ----------------------------------
function MM_reloadPage(init) {  
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_changeProp(objName,x,theProp,theValue) { //v3.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)) eval("obj."+theProp+"='"+theValue+"'");
}

// Hidde show layers
// ----------------------------------
function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v='hide')?'hidden':v; }
    obj.visibility=v; }
}

// status message
// ----------------------------------
function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

