function blank()
{
}
function navigate(url)
{
	if(arguments.length && url.length)
		self.location = url;
}
function clearTimer()
{
	if(timerID)
	{
		clearTimeout(timerID);
		timerID = null;
	}
}
function hideSubNav1()
{
	if(currSubNav && timerID)
		currSubNav.style.display = "none";
}
function hideSubNav()
{
	if(currSubNav)
		timerID = setTimeout("hideSubNav1()",2000);
}
function showSubNav(id)
{
	hideSubNav1();
	currSubNav = getObject(id);
	if(currSubNav)
		currSubNav.style.display = "block";
}
function getObject(id)
{
	if(document.getElementById)
		return document.getElementById(id);
		
	if(document.all)
		return document.all[id];
		
	return null;
}
function doEyes()
{
	if(availWidth > 800)
		frames[frames.length - 2].location.replace("http://www.betterwebsites.co.uk/eyes/preload.htm");
}
function showObject(obj, display)
{
	if(obj)
		obj.style.display = display;
}
function hideTel()
{
	getObject("tel").style.display = "none";
}
function hideTag()
{
	if(currTag)
		currTag.style.display = "none";

	currTag = null;
}
function showTag()
{
	var tagNum = arguments.length ? arguments[0] : getTagNum();
	currTag = getObject("tag" + tagNum);
	if(currTag)
		currTag.style.display = "block";
}
function getTagNum()
{
	return Math.max(0,Math.round(Math.random() * numTags) - 1);
}
function doTag()
{	
	hideTag();
	if(arguments.length)
		showTag(arguments[0]);
	else
		showTag();
}
function showCells()
{
	for(var i = 0; i < 5; i++)
		showCell("td" + i);
}
function showCell(id)
{
	if(availWidth <= 800)
		getObject(id).style.display = "none";
}
function openWindow(url, winName, top, left, width, height, scrll)
{
	this.width = arguments.length > 4 ? width : 800;
	this.height = arguments.length > 5 ? height : 340;
	this.scrll = arguments.length > 6 ? scrll : "yes";
	
	return window.open(url,winName,"width="+this.width+",height="+this.height+",location=no,toolbar=no,menubar=no,titlebar=yes,scrollbars="+this.scrll+",resizable=no,top="+top+",left="+left);
}
function doLink(url, w, h, bScroll)
{	
	var left = screen.availWidth > 800 ? 60 : 0;
	var top = screen.availHeight > 600 ? 60 : 0;
	
	var width = arguments.length > 1 ? w : 640;
	var height = arguments.length > 2 ? h : 480;
	
	var scrll = arguments.length > 3 ? "yes" : "no";

	if(childWin && !childWin.closed)
	{
		childWin.location = url;
		childWin.focus();
		return;
	}				
	
	childWin = openWindow(url, "ChildWindow", top, left, width, height, scrll);
}
function killChild()
{
	try
	{
		if(childWin2 && !childWin2.closed)
			childWin2.close();
			
		if(childWin.childWin2 && !childWin.childWin2.closed)
			childWin.childWin2.close();
			
		if(childWin && !childWin.closed)
			childWin.close();
	}
	catch(ex)
	{
	//	Ignore permission denied errs
	}
}
var currSubNav = null;
var currNav = null;
var timerID = null;
var currTag = null;
var availWidth = screen.availWidth;
var childWin = null;
