function addMenu(x,y,z)
{
var str;
if (z==1) 

{	  

	//swap(x);
	   str = "<table width='125' height='171' border='0' cellpadding='0' cellspacing='0'>";
       str = str +"<tr>"; 
       str = str +"<td height='27' align='left' valign='middle' background='./images/topimg_drops.gif'><a href='appetizers.html' class='droplink'>Appetizers</a></td>";
       str = str +"</tr>";
       str = str +"<tr>";
       str = str +"<td height='24' align='left' valign='middle' background='./images/bg_drops.gif'><a href='desserts.html' class='droplink'>Desserts</a></td>";
       str = str +"</tr>";
       str = str +"<tr>";
       str = str +"<td height='24' align='left' valign='middle' background='./images/bg_drops.gif'><a href='madrasspecilaties.html' class='droplink'>Madras Specilaties</a></td>";
       str = str +"</tr>";
       str = str +"<tr>";
       str = str +"<td height='24' align='left' valign='middle' background='./images/bg_drops.gif'><a href='biriyanientrees.html' class='droplink'>Biriyani Entrees</a></td>";
       str = str +"</tr>";
       str = str +"<tr>";
       str = str +"<td height='24' align='left' valign='middle' background='./images/bg_drops.gif'><a href='tandooridishes.html' class='droplink'>Tandoori Dishes</a></td>";
       str = str +"</tr>";
       str = str +"<tr>";
       str = str +"<td height='24' align='left' valign='middle' background='./images/bg_drops.gif'><a href='drinks.html' class='droplink'>Drinks</a></td>";
       str = str +"</tr>";
       str = str +"<tr>";
       str = str +"<td height='24' align='left' valign='middle' background='./images/bg_drops.gif'><a href='vegentrees.html' class='droplink'>Veg Entrees</a></td>";
       str = str +"</tr>";
       str = str +"<tr>";
       str = str +"<td height='24' align='left' valign='middle' background='./images/bg_drops.gif'><a href='nonvegentrees.html' class='droplink'>Non-Veg Entrees</a></td>";
       str = str +"</tr>";
       str = str +"<tr>";
       str = str +"<td height='24' align='left' valign='middle' background='./images/bg_drops.gif'><a href='soupsalad.html' class='droplink'>Soup &amp; Salad</a></td>";
       str = str +"</tr>";
       str = str +"<tr>";
       str = str +"<td height='24' align='left' valign='middle' background='./images/dwnimg_drops.gif'><a href='sideorders.html' class='droplink'>Side Orders</a></td>";
       str = str +"</tr>";
       str = str +"</table>";
}

if(y==1) 
{	
document.getElementById('L2').style.display="none";
AdjPO(x,y); 
document.getElementById("L1").innerHTML =str; 
}	
else
{
document.getElementById('L1').style.display="block";
AdjPO(x,y); 
document.getElementById("L2").innerHTML =str; 
 }	
 
// cancelTimer(aTimer);
}
/*function swap(x)
{
//cancelTimer(aTimer);
if (x==1)
{
  document.getElementById("I1").style.color ="#ffffff"; 
 
}
if (x==2)
{
  document.getElementById("I1").style.color ="#000000"; 
 
}

if (x==3)
{
  //alert("test");
  document.getElementById("I1").style.color ="#000000"; 
 
  //MM_swapImgRestore();
}

}*/

var aTimer;

function removeMenu()
{
	ClearAll();
	/*aTimer = window.setTimeout("ClearAll();",1000);
	return false;*/
}

/*function writeDivs()
{
document.write('<div id="L1" style="position:absolute;display:none;zIndex:15;"  onmouseover="this.style.display=/'block/'" onmouseout="this.style.display=/'none/';L2.style.display=/'none/';swap(2)" ></div>');
document.write('<div id="L2" style="position:absolute;display:none;zIndex:155;" onmouseover="L1.style.display=/'block/';L2.style.display=/'block/';" onmouseout="this.style.display=/'none/';L1.style.display=/'none/';" ></div>');
}*/

function ClearAll()
{
	//window.clearTimeout(aTimer);
	document.getElementById('L1').style.display="none";
	document.getElementById('L2').style.display="none";
	//swap(3);
}

function AdjPO(Obj,Oy)
{
	var x,y,wdth,SObj;
	   SObj =eval(document.getElementById("L"+Oy));  
	   wdth =Obj.offsetWidth;
		x=0;
		y=0;
	while(Obj.offsetParent != null)
	  {
			x=x+Obj.offsetLeft;
			y=y+Obj.offsetTop+3;
			Obj = Obj.offsetParent;
	  }
	if (Oy==1)
	  SObj.style.left =eval(x + wdth)-50;
	 else
	 SObj.style.left =eval(x + wdth); 
	 SObj.style.top =y;
	 SObj.style.display="block";	
}