/////////////////////////Flyout Menus///////////

var browser = false

if ((navigator.appName == "Microsoft Internet Explorer") && 
(parseInt(navigator.appVersion) >= 4 ))
	{
	browser=true;
	}
	
var divs = document.getElementsByTagName("div");
var countOn = false;
var countID = null;
var count = 300;

function test()
{
	alert("test");
}

function startCount()
{
	if (countOn == false && browser==true)
		{
			countID=setTimeout( "hideFlyout()" , count);
			countOn = true;
		}
}

function stopCount()
{
	if (countOn==true && browser==true)
		{
			clearTimeout(countID);
            countID = null;
            countOn = false;
		}
}

function showFlyout(dPosY, dPosX, dName) 
{
	if (browser==true)
	{
		for (i=0; i<divs.length; i++) {
		 if (divs[i].id==dName) {
		 
		 	//alert(divs[i].id);
			divs[dName].style.display = "inline";
		divs[dName].style.top = dPosY;
		divs[dName].style.left = dPosX;
		 }
		 else {
		 divs[i].style.display = "none"
	     }
		}
	}
}

function hideFlyout() 
{
	if (browser==true)
	{
	    //alert(divs.length);
		//divs["smallBiz"].style.display = "none";
	    for (i=0; i<divs.length; i++) {
		 
		 divs[i].style.display = "none"
	    }
	}
}

/////////////////////////Product Index Functions///////////

function piRollOver(rollObj) 
{
	rollObj.style.backgroundColor = '#cccccc'; 
	stopCount();	
}

function piRollOut(rollObj) 
{
	rollObj.style.backgroundColor = 'transparent'; 
	startCount();	
}
