// JavaScript Document
<!--
var menuTimerDiv;
var menuTimerTd;
var lastNavVisible;
var lastTdId;
var lastPlatId='';

function startTimer(platId,imgSrc)
{
	menuTimerDiv = setTimeout('hideNav(\'' + platId + '\',\'' + imgSrc + '\')', 1000);
}
function stopTimer()
{
	window.clearTimeout(menuTimerDiv);
}

function hideNav(platId,imgSrc){
	swapNavStyleOff(platId,imgSrc);
	hideNavDiv(platId);
	lastPlatId = '';
	lastImgSrc = '';
}
function swapLinkStyleOver(objId){
	stopTimer();
	document.getElementById(objId).className = 'navCellOver';
}
function swapLinkStyleOff(objId){
	document.getElementById(objId).className = 'navCell';
}
function swapNavStyleOver(platId,imgSrc)
{
	stopTimer();
	objImgId = document.getElementById('img' + platId);
	objImgId.src = '/sfxPictures/homepage/navigation/' + imgSrc + 'On.png';
}
function showNav(platId,imgSrc,xOffset,yOffset)
{
	if(lastPlatId != '' && lastImgSrc != '')
		hideNav(lastPlatId,lastImgSrc);
	swapNavStyleOver(platId,imgSrc);
	showNavDiv(platId,imgSrc,xOffset,yOffset);
	lastPlatId = platId;
	lastImgSrc = imgSrc;
}
function swapNavStyleOff(platId,imgSrc)
{
	//window.clearTimeout(menuTimerDiv);
	objImgId = document.getElementById('img' + platId);
	objImgId.src = '/sfxPictures/homepage/navigation/' + imgSrc + 'Off.png';
}
function showNavDiv(platId,imgSrc,xOffset,yOffset)
{
	objDivId = document.getElementById('divNav' + platId);
	objDivId.className = 'navDivOver';
	objPosImage = document.getElementById('img' + platId);
	posX = findPosX(objPosImage);
	posY = findPosY(objPosImage);
	objDivId.style.left = (posX + xOffset) + 'px';
	objDivId.style.top = (posY + yOffset) + 'px';
}
function hideNavDiv(platId)
{
	objDivId = document.getElementById('divNav' + platId);
	objDivId.className = 'navDivOff';
}

function enableGo()
{
	//Clear search box onFocus
	objSearchExpr = document.getElementById("q");
	objImgSearchGo = document.getElementById("imgSearchGo");
	objSearchExpr.value = '';
}
function disableGo()
{
	objSearchExpr.value = 'Search SoftwareFX.com';
}
//-->
