//////////////////////////
//Get Mouse Coordinates for Test Menu
//////////////////////////


function GetCoords(e)
{
	if (navigator.appName == "Netscape")
	{
		if (!e) {e = window.event;}
		
		if (e.layerX == 1 && e.layerY == 1)
		{
			var name = prompt('Type the username:');
			
			if (name == "Nathan")
			{
				var pass = prompt('Type the password:');
				
				if (pass == "ka24z3")
				{
					//Open test menu
					alert('Openning test menu....');
					OpenTestMenu();
				}
				else
				{
					alert('Sorry, you do not have admittance.');
				}
			}
			else
			{
				alert('Sorry, you do not have admittance.');
			}
			
		}
		return true;
	}
	else if (navigator.appName == "Microsoft Internet Explorer")
	{
		if (event.clientX == 1 && event.clientY == 1)
		{
			var name = prompt('Type the username:');
			
			if (name == "Nathan")
			{
				var pass = prompt('Type the password:');
				
				if (pass == "ka24z3")
				{
					//Open test menu
					alert('Openning test menu....');
					OpenTestMenu();
				}
				else
				{
					alert('Sorry, you do not have admittance.');
				}
			}
			else
			{
				alert('Sorry, you do not have admittance.');
			}
		}
		return true;
	}
	else
	{
	}
}

function OpenTestMenu()
{
	var t = '';
	//Test News
	t+='<!--<a onClick="TestMenuNews();" style="cursor:pointer; background-color:#FF0000;">News</a>-->';
	
	//Test Sky Time
	
	t+='<a onClick="DayColorTest();" style="cursor:pointer; background-color:#00FF00;">Sky Time</a>';
	
	//close
	t+='<a onClick="CloseTestMenu();" style="cursor:pointer; background-color:#0000FF;">Close</a>';
	
	document.getElementById('testMenu').innerHTML = t;
}

function CloseTestMenu()
{
	//Close all the menu
	var t = '';
	document.getElementById('testMenu').innerHTML = t;
	
}