var ns = (navigator.appName == "Netscape");
var lastSelected =0;
function LogoMouseMove()
{
	if (ns)
	{

	}
	else
	{
		if(lastSelected!=0)
		{
			document.all["a"+lastSelected.toString(10)].style.color = "#FFFFFF"
		}
	}
}

function MouseMove(ind,color)
{
	if (ns)
	{
		if(lastSelected!=0)
		{
			var menu = document.menu
		}
	}
	else
	{
		if(lastSelected!=0)
		{
			document.all["a"+lastSelected.toString(10)].style.color = "#FFFFFF"
		}
		eval("a"+ind).style.color = color
	}
	lastSelected = ind
}

function MM_checkBrowser(NSvers,NSpass,NSnoPass,IEvers,IEpass,IEnoPass,OBpass,URL,altURL)
{ //v2.0

  var newURL = '', version = parseFloat(navigator.appVersion);
  if (navigator.appName.indexOf('Netscape') != -1)
  {
    if (version >= NSvers) {if (NSpass>0) newURL = (NSpass==1)?URL:altURL;}
    else {if (NSnoPass>0) newURL = (NSnoPass==1)?URL:altURL;}
  }
  else if (navigator.appName.indexOf('Microsoft') != -1)
  {
    if (version >= IEvers) {if (IEpass>0) newURL = (IEpass==1)?URL:altURL;}
    else {if (IEnoPass>0) newURL = (IEnoPass==1)?URL:altURL;}
  }
  else if (OBpass>0) newURL = (OBpass==1)?URL:altURL;
  if (newURL)
  {
    window.location = unescape(newURL);
    document.MM_returnValue = false;
  }
}

function DoLoad()
{
	if (ns)
	{}
	else
	{
		menu.style.pixelHeight=document.body.clientHeight
	}

	if (document.referrer.indexOf("worldwidelearn.com")>0)
		SetCookie("company","worldwidelearn")
}

function GetCookie(name)
{
	var start = document.cookie.indexOf(name+"=");
	var len = start+name.length+1;
	if ((!start) && (name != document.cookie.substring(0,name.length))) return null;
	if (start == -1) return null;
	var end = document.cookie.indexOf(";",len);
	if (end == -1) end = document.cookie.length;
	return unescape(document.cookie.substring(len,end));
}

function SetCookie(name,value,expires,path,domain,secure)
{
	document.cookie = name + "=" +escape(value) +
		( (expires) ? ";expires=" + expires.toGMTString() : "") +
		( (path) ? ";path=" + path : "") +
		( (domain) ? ";domain=" + domain : "") +
		( (secure) ? ";secure" : "");
}

//-->
