/*
Horizontal Menu Bar
Copyrighted to AspirantLabs.com. This code should not be used without written permission from Aspirantlabs.com
Contact us at:  abulhassan@aspirantlabs.com
*/

var g_PopupIFrame;
function opendropdown(menuitem)
{	
	var d = menuitem;
	var d1 = d.getElementsByTagName("div")[0];
	var d2 = d.getElementsByTagName("img")[0];
	d.style.cursor = "pointer";
	if(window.addEventListener)
	{
	d1.style.marginLeft = '-2px';
	d1.style.marginTop = '2px';
	d1.style.visibility = 'visible';
	}
	else
	{
	d1.style.marginTop = '30px';
	d1.style.marginLeft = '-81px';
	var iFrame = document.createElement("IFRAME");
	iFrame.setAttribute("src", "");
	iFrame.style.position="absolute";
	iFrame.style.left = d1.offsetLeft + 'px';
	iFrame.style.top = d1.offsetTop + 'px';
	iFrame.style.width = d1.offsetWidth + 'px';
	iFrame.style.height = d1.offsetHeight + 'px';
	document.body.appendChild(iFrame);
	d1.style.zIndex=d1.style.zIndex+1
	d1.style.visibility = 'visible';
	g_PopupIFrame=iFrame;
	}
	//change the image path as required
	d2.src = 'images123/interface_main/navi-on-mouse-over_07a.gif';
}

function closedropdown(menuitem)
{
	var d = menuitem;
	d.getElementsByTagName("div")[0].style.visibility = 'hidden'; ; 
	var d2 = d.getElementsByTagName("img")[0];
	//Change the image path as required
	d2.src = 'images123/interface_main/navi-on-mouse-over_07.gif';
	if(window.addEventListener)
	{
	}
	else
	{
	document.body.removeChild(g_PopupIFrame);
	g_PopupIFrame=null;
	}
}
