function overTD(td,color){td.style.cursor='hand';td.bgColor=color;}

function outTD(td,color){td.style.cursor='default';td.bgColor=color;}

function clickTD(td){td.children.tags('A')[0].click();}

function overTH(th,color){th.style.cursor='hand';th.bgColor=color;}

function outTH(th,color){th.style.cursor='default';th.bgColor=color;}

function clickTH(th){th.children.tags('A')[0].click();}

function repositionMenu(menu, offset)
{
	var newLeft = getWindowWidth() / 2 + offset;
	menu.container.style ? menu.container.style.left = newLeft + "px" : menu.container.left = newLeft;
}
		
function getWindowWidth()
{
	return window.innerWidth ? window.innerWidth : document.body.offsetWidth;
}