function headerTabOver(div, type)
{
	div.firstChild.style.height = "31px";
	catDiv = document.getElementById("headerTextDivDefault");
	textDiv = document.getElementById("headerTextDivSpecial");
	innerTextDiv = document.getElementById("headerTextDivSpecialText");
	text = "";
	switch(type)
	{
		case "home":
			text = "Welcome to Noodan Free Games.  We are glad to have you as a guest on our arcade.";
			break;
		case "games":
			text = "Webmasters - get a 1:1 Traffic Trade with Noodan Free Games!";
			break;
		case "bookmark":
			text = "Click here to save Noodan Free Games in your favorites folder";
			break;
		case "register":
			text = "Becoming a member at Noodan Free Games is easy and has many benefits";
			break;
		case "forum":
			text = "Browse our database of games";
			break;
		case "contact":
			text = "Contact us at Noodan Free Games and let us know what you think";
			break;
	}
	innerTextDiv.innerHTML = text;
	catDiv.style.display = "none";
	textDiv.style.display = "inline";
}
function headerTabOut(div)
{
	div.firstChild.style.height = "25px";
	catDiv = document.getElementById("headerTextDivDefault");
	textDiv = document.getElementById("headerTextDivSpecial");
	catDiv.style.display = "inline";
	textDiv.style.display = "none";

}
function bookmarksite(title, url)
{
	if (document.all)
	{
		window.external.AddFavorite(url, title);
  	}
  	else if (window.sidebar)
  	{
		window.sidebar.addPanel(title, url, "");
	}
}
function popRecoverPassword(URL)
{
	winpops=window.open(URL,"","width=440,height=200,left=100,top=100,status=0,scrollbars=0,resizable=1,menubar=0,location=0,toolbar=0");
	winpops.focus();
}
function popUpAvatar(URL)
{
	winpops=window.open(URL,"","width=644,height=565,left=100,top=100,status=0,scrollbars=0,resizable=1,menubar=0,location=0,toolbar=0");
	winpops.focus();
}
function popUpGame(URL)
{
	winpops=window.open(URL,"","width=800,height=600,left=100,top=100,status=0,scrollbars=0,resizable=1,menubar=0,location=0,toolbar=0");
	winpops.focus();
}
function popUpFavorite(URL)
{
	winpops=window.open(URL,"","width=200,height=100,left=100,top=100,status=0,scrollbars=0,resizable=1,menubar=0,location=0,toolbar=0")
	winpops.focus();
}
function popComments(URL)
{
	winpops=window.open(URL,"","width=440,height=400,left=100,top=100,status=0,scrollbars=1,resizable=1,menubar=0,location=0,toolbar=0")
	winpops.focus();
}

function gameThumbOver(div)
{
	var titleDiv = div.firstChild;
	setDivOpacity(titleDiv, .8);
}
function gameThumbOut(div)
{
	var titleDiv = div.firstChild;
	setDivOpacity(titleDiv, 0);

}
function setDivOpacity(div, num)
{
	div.style.opacity = num;
	div.style.MozOpacity = num;
	div.style.filter = 'alpha(opacity=' + (num*100) + ')';
}
