<!--
// Browser sniffer
var ns4 = (document.layers); 
var ie4 = (document.all && !document.getElementById);
var ie5 = (document.all && document.getElementById);
var ns6 = (!document.all && document.getElementById);
// Attaches objects dependent on browser
function object_attach(id)
{
	var obj;
	if(ns4) obj = document.layers[id];
	else if(ie4) obj = document.all[id];
	else if(ie5 || ns6) obj = document.getElementById(id);
	return obj;
}
function cf(f)
{ if(f.q.value=='') { alert('You must enter a search!'); f.q.focus(); return false; } else { return true; } }
// Focus search box
function sf()
{ document.f.q.focus(); }
// Email address hider
function sendMail(domain,addy)
{ self.location.href = 'mai'+'lto:'+addy+'@'+domain; }
// Div switcher for search box
function switchSearch(type)
{
	switch(type)
	{
		case 'game': div_switch('p',1,1); break;
		default: div_switch('p',0,1); object_attach('p').selectedIndex=0;
	}
}
// Shows/hides div objects
function div_switch(id, bShow, bBlock)
{
	temp_Obj = object_attach(id);
	if(ns4)
	{
		if(bShow==1)
		{
			if(bBlock==1) { temp_Obj.display = "block"; }
			else { temp_Obj.visibility = "show"; }
		}
		else
		{
			if(bBlock==1) { temp_Obj.display = "none"; }
			else { temp_Obj.visibility = "hide"; }
		}
	}
	else
	{
		if(bShow==1)
		{
			if(bBlock==1) { temp_Obj.style.display = "block"; }
			else { temp_Obj.style.visibility = "visible"; }
		}
		else
		{
			if(bBlock==1) { temp_Obj.style.display = "none"; }
			else { temp_Obj.style.visibility = "hidden"; }
		}
	}
}
// -->