
get_null = function() { return null; }
if (!document.getElementById) {
	document.getElementById = get_null;
}

function expand(s)
{
  var td = s;
  var d = td.getElementsByTagName("div").item(0);
  td.className = "menuHover";
  td.background = "http://www.planetbollywood.com/images/topnavBG2.gif";
  ypos=findYpos();
  d.style.position="absolute";
  d.style.top=ypos;
  d.className = "menuHover";
}

function collapse(s)
{
  var td = s;
  var d = td.getElementsByTagName("div").item(0);
  td.className = "menuNormal";
  td.background = "http://www.planetbollywood.com/images/topnavBG.gif";
  d.className = "menuNormal";
}

function findYpos()
{
  var t = document.getElementById("menuTbl").offsetTop;
  var h = document.getElementById("menuTbl").offsetHeight;
  return t+h;
}

var undefined;
var currentTab;

if (currentTab == undefined) currentTab = Titles.length;

document.write("<table background=\"http://www.planetbollywood.com/images/topnavBG.gif\" cellspacing=\"0\" cellpadding=\"0\" id=\"menuTbl\"><tr>");
for (var i = 0; i < Titles.length; i++) 
	{
	document.write ("<td width=\"2\"><img src=\"http://www.planetbollywood.com/images/topnavEdge.gif\" width=\"2\" height=\"22\" border=\"0\"></td>");
	if (i == currentTab)
		{
		document.write ("<td nowrap background=\"http://www.planetbollywood.com/images/bluebg0.gif\" height=\"22\" width=\""+MenuWidth[i]+"\">");
		}
	else
		{
		document.write ("<td nowrap height=\"22\" width=\""+MenuWidth[i]+"\" onmouseover=\"expand(this);\" onmouseout=\"collapse(this);\">");
		}

		document.write("<center><a class=\"new1\" href=\""+subLinks[i][0]+"\">"+Titles[i]+"</a></center>");
		document.write("<div class=\"menuNormal\">");
		document.write("<table cellspacing=\"0\" cellpadding=\"0\" class=\"menu\" width=\"130\">");
		for(var j=0;j<subMenus[i].length;j++)
			{
			if(subMenus[i][j]!="")
				{
				document.write("<tr>");
				document.write("<td align=\"center\" class=\"submenuNormal\" ><a class=\"submenuitem\" href=\""+subLinks[i][j]+"\">"+subMenus[i][j]+"</a></td>");
				//class=\"menuitem\" after +"
				document.write("</tr>");
				}
			}
		document.write("</table>");
		document.write("</div>");
	document.write("</td>");
	}
 document.write("</tr></table>");
