function msieversion() {
var ua = window.navigator.userAgent
var msie = ua.indexOf ( "MSIE " )
if ( msie > 0 ) // is Microsoft Internet Explorer; return version number
return parseInt ( ua.substring ( msie+5, ua.indexOf ( ".", msie ) ) )
else
return 0 // is other browser
}
var NS  = navigator.appName == "Netscape" ? true : false;
var IE = (navigator.appName.substring(0,9) == "Microsoft") && (!NS) ? true : false;
var brversion = IE ? msieversion() : parseFloat(navigator.appVersion);
if (!IE && !NS && navigator.appName == '')
{
		IE = true;
		brversion = 3;
}
/*function ShowOldBrowserPage()
{
	if ((brversion < 4) && (NS || IE))
	{
		  document.writeln("<html><head></head>")
		  document.writeln("<body bgcolor=#000fff>")
		  document.writeln("<font face=verdana color=#0000ff>Sorry, but some of our activities may not work in ")
		  document.writeln("Internet Explorer 3. To enjoy all of KiddoNet\'s activities, we suggest ")
		  document.writeln("that you upgrade your version of Internet Explorer.")
		  document.writeln('<font color="#000080" size="4" face="Arial"><strong>Download IE </strong></font><a href="http://www.microsoft.com/ie/download/"><font color="#000080" size="4" face="Arial"><strong><img src="images/ie-download.gif" border="0" width="88" height="31"></strong></font></font>')
		  document.writeln("</body></html>")
	}
}*/

function AlertIe3()
{
	if ((brversion < 4) && (NS || IE))
	{
		 alert("Sorry, but some of our activities may not work in Internet Explorer 3. To enjoy all of KiddoNet's activities, we suggest that you upgrade your version of Internet Explorer.")
	}
}

isGirlSense = false;

function CorrectDomain()
{
	if(self.location.href.toLowerCase().indexOf('http://kiddonet.com')!=-1)
	{
		currentLocation = "" + self.location;
		re = /http\:\/\/kiddonet\.com/gi;
		newLocation = currentLocation.replace(re, "http://www.kiddonet.com");	
		self.location.replace(newLocation);
	}	
	if(self.location.href.toLowerCase().indexOf('kidonet.com')!=-1)
	{
		currentLocation = "" + self.location;
		re = /kidonet\.com/gi;
		newLocation = currentLocation.replace(re, "kiddonet.com");	
		self.location.replace(newLocation);
	}	
	if(self.location.href.toLowerCase().indexOf('kngirl.com')!=-1)
	{
		currentLocation = "" + self.location;
		re = /kngirl\.com/gi;
		newLocation = currentLocation.replace(re, "kiddonet.com");	
		self.location.replace(newLocation);
	}
	if(self.location.href.toLowerCase().indexOf('girlsense.com')!=-1)
	{
		isGirlSense = true;

		newLocation = ("/premium/index.pl");	
		//self.location.replace(newLocation);
		self.location.href = (newLocation);
	}
	if(self.location.href.toLowerCase().indexOf('starnetinteractive.com')!=-1)
	{
		isGirlSense = true;

		newLocation = ("http://www.girlsense.com/premium/index.pl");	
		//self.location.replace(newLocation);
		self.location.href = (newLocation);
	}
}

