//<script>

var sImagePath;
var oMenu = new menu();
var bLoaded = false;

function checkDivHide(left,top,width,height)
{	
	if(bLoaded)
	{	
		if (window.event.x < left || window.event.x > (left+width) || window.event.y > (top+height))
		{
			hideAll();	
		}
	}	
}

function showHideDiv(menuIndex)
{	
	if(bLoaded)
	{
		oMenu.showHideDiv(menuIndex);
	}	
}

function hideAll()
{
	if(bLoaded)
	{
		oMenu.hideAll()
	}	
}

function changeBgColour(obj)
{
	oMenu.changeBgColour(obj)
}


function init()
{
	document['img'+iPageId].src = sImagePath + iPageId + ".gif";
	bLoaded = true;
}

document.onclick = hideAll;

//</script>