function bgOn(name)
{
	name.className = 'listHover';
}
function bgOff(name)
{
	name.className = 'list';
}
function borderOn(name)
{
	name.className = 'borderHover';
}
function borderOff(name)
{
	name.className = 'border';
}
function goLink(location)
{
	document.location.href = location;
}
function redirect(url)
{
	document.location = url;
}
function goContact(location)
{
	document.location.href = "mailto:" + location + "@" + "mayhembaseballclub.com";
}

function searchBlur()
{
	var id = "mayhemSearch";
	var inp = (document.getElementById) ? 
		document.getElementById(id) : (document.all) ? 
			document.all[id] : (document.layers) ? 
				getLyrRef(id,document) : null;
	
	if(inp.type == 'text')
	{
		inp.setAttribute('rel', inp.defaultValue);
		inp.setAttribute('class', inp.className);
		
		inp.onfocus = function()
		{
			if(this.value == this.getAttribute('rel'))
			{
				this.value = '';
				this.className = '';
			}
			else
			{
				return false;
			}
		}
		
		inp.onblur = function()
		{
			if(this.value == '')
			{
				this.value = this.getAttribute('rel');
				this.className = this.getAttribute('class');
			}
			else
			{
				return false;
			}
		}
		
		inp.onload = function()
		{
			this.value = this.getAttribute('rel')
			this.className = this.getAttribute('class')
		}
	}
}

if(document.childNodes)
{
	window.onload = searchBlur;
}
