if(navigator.userAgent.indexOf("MSIE")!=-1)
  sethide="none";
else
  sethide="no";
function setsubmenu(ind)
{
  if (document.getElementById('submenu').style.display = "none")
  {
	document.getElementById('submenu').style.display = "";
  }
  if (document.getElementById('submenu2').style.display = "none")
  {
	document.getElementById('submenu2').style.display = "";
  }
  
  var submenu=Array();
  submenu[0]=new Array()
  submenu[0][0]="<a href=\"./communitycalendar.php\">Community</a>";
  submenu[0][1]="<a href=\"./businesscalendar.php\">Business</a>";
  submenu[0][2]="<a href=\"./artscalendar.php\">Arts</a>";
  submenu[0][3]="<a href=\"./sportcalendar.php\">Sport</a>";
  submenu[0][4]="<a href=\"./childcalendar.php\">Children</a>";
  submenu[1]=new Array();
  submenu[2]=new Array();
  submenu[3]=new Array();
  submenu[3][0]="<a href=\"./vacancies.php\">&nbsp;Vacancies</a>";
  submenu[3][1]="<a href=\"./resume.php\">&nbsp;Resumes</a>";
  submenu[4]=new Array();
  submenu[4][0]="<a href=\"./restaurantguide.php\">Restaurant Guide</a>";
  submenu[4][1]="<a href=\"./restaurantreviews.php\">Restaurant Reviews</a>";
  submenu[5]=new Array();
  submenu[5][0]="<a href=\"./realestateoffer.php\">&nbsp;Offered</a>";
  submenu[5][1]="<a href=\"./realestatewant.php\">&nbsp;Wanted</a>";
  submenu[6]=new Array();
  submenu[6][0]="<a href=\"./artscalendar.php\">Arts Calendar</a>";
  submenu[6][1]="<a href=\"./culturepicks.php\">Culture Picks</a>";
  submenu[6][2]="<a href=\"./culturereviews.php\">Culture Reviews</a>";
  submenu[7]=new Array();
  submenu[7][0]="<a href=\"./childcalendar.php\">Children Calendar</a>";
  submenu[7][1]="<a href=\"./placeschild.php\">Children Venues</a>";
  submenu[7][2]="<a href=\"./dinningwithchild.php\">Dining Out with children</a>";
  submenu[8]=new Array();
  submenu[8][0]="<a href=\"./businesscalendar.php\">Business calendar</a>";
  submenu[8][1]="<a href=\"./tradeshowcalendar.php\">Trade show calendar</a>";
  submenu[8][2]="<a href=\"./prinrussia.php\">The PR-Russia Wire</a>";
  submenu[8][3]="<a href=\"./opportunities.php\">Business Opportunities</a>";
  submenu[8][4]="<a href=\"./associations.php\">Business Associations</a>";
 
var tabtop1="<table width=\"70\" height=\"23\" cellpadding=0 cellspacing=0 border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td colspan=\"3\" height=\"100%\"></td></tr>";
var tabtop="<table width=\"87\" height=\"23\" cellpadding=0 cellspacing=0 border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td colspan=\"3\" width=100 height=\"100%\"></td></tr>";
var tabbot="<tr><td colspan=\"4\" height=\"49%\"></td></tr></table>";
var rst2 =  "<tr><td width=\"20\"></td></tr>";
var rstr2 = "";  

  var rstr="";
  var cl=document.getElementById("submenu");
  var cl2=document.getElementById("submenu2");
  if(!isNaN(ind)&&ind<submenu.length)
  {
  
    for(i=0;i<submenu[ind].length;i++)
	{
      rstr+="<tr><td width=\"20\"  class=\"ar_white_12_bd\">&nbsp;&nbsp;&nbsp;</td><td><table border=0 cellpadding=0 cellspacing=0 width=155><tr><td width=\"10\" align=\"left\" nowrap><img src=\"./images/transp.gif\" width=\"10\" height=\"0\" alt=\"\" border=\"0\"><img src=\"./images/white_bullet.gif\" width=\"5\" height=\"9\" alt=\"\"></td><td border=\"1\" width=\"99%\" align=\"left\" class=\"ar_white_12_bd\">"+submenu[ind][i]+"</td><td width=\"10\" nowrap></td></tr></table>";
	  rstr2+="<tr><td width=10  class=\"ar_white_12_bd\">&nbsp;&nbsp;&nbsp;&nbsp;</td><td width=\"100%\"><table border=0 cellpadding=0 cellspacing=0 width=4 align=left><tr><td width=\"10\" align=\"left\" nowrap><img src=\"./images/transp.gif\" width=\"10\" height=\"0\" alt=\"\" border=\"0\"><img src=\"./images/white_bullet.gif\" width=\"5\" height=\"9\" alt=\"\"></td><td width=\"99%\" align=\"left\" class=\"ar_white_12_bd\">"+submenu[ind][i]+"</td><td width=\"0\" nowrap></td></tr></table>";
	}
	if ((ind==3)||(ind==5))
	{
		cl2.innerHTML=tabtop1+tabbot;
		cl.innerHTML=tabtop+rstr2+tabbot;
	}
	else
	{
		cl.innerHTML = tabtop+tabbot;
		cl2.innerHTML = tabtop1+rstr+tabbot;
		scrollBy(500, 0);
	}
    
	
  }
  else
    cl.innerHTML=tabtop+rst2+tabbot;
}

function hidesubmenu()
{
	setTimeout('document.getElementById("submenu").style.display = "none"', 5000);
//	document.getElementById('submenu').style.display = "none";
}

function hidesubmenu2()
{
	setTimeout('document.getElementById("submenu2").style.display = "none"', 5000);
}


