﻿function mmLoadMenus() 
		{ 
			//if (window.menunav) return;
        window.menunav = new Menu("root",150,22,"Tahoma,Arial",10,"#000000","#000000","#EBEFF0","#EBEFF0","left","middle",3,0,1000,5,7,true,true,true,5,false,true);
		menunav.addMenuItem("தென்றல் பேசுகிறது","location='/thendral/channels/thendralpesukirathu/thendralpesukirathu.aspx'");
		menunav.addMenuItem("சிறுகதை","location='/thendral/channels/sirukathai/sirukathai.aspx'");
		menunav.addMenuItem("சாதனையாளர்","location='/thendral/channels/saathanaiyaalar/saathanaiyaalar.aspx'");
		menunav.addMenuItem("கதிரவனை கேளுங்கள்","location='/thendral/channels/kathiravan/kathiravan.aspx'");
		menunav.addMenuItem("அமெரிக்க அனுபவம்","location='/thendral/channels/america/america.aspx'");
		menunav.addMenuItem("நூல் அறிமுகம்","location='/thendral/channels/books/books.aspx'");		
		menunav.addMenuItem("சூர்யா துப்பறிகிறார்","location='/thendral/channels/surya/surya.aspx'");
		menunav.addMenuItem("அஞ்சலி","location='/Thendral/channels/anjali/anjali.aspx'");
		menunav.addMenuItem("பயணம்","location='/Thendral/channels/payanam/payanam.aspx'");
		menunav.addMenuItem("இலக்கியம்","location='/Thendral/channels/ilakkiyam/ilakkiyam.aspx'");
		menunav.addMenuItem("கவிதைப்பந்தல்","location='/Thendral/channels/kavithai/kavithai.aspx'");
		menunav.addMenuItem("ஜோக்ஸ்","location='/Thendral/channels/jokes/jokes.aspx'");
		menunav.addMenuItem("ஆசிரியர் பக்கம்","location='/Thendral/channels/aasiriyarpakkam/aasiriyarpakkam.aspx'");
		menunav.addMenuItem("வாசகர் கடிதம்","location='/Thendral/channels/vaasagarkaditham/vaasagarkaditham.aspx'");
		menunav.addMenuItem("சிரிக்க, சிந்திக்க","location='/Thendral/channels/sirikkasinithikka/sirikkasinithikka.aspx'");
		menunav.addMenuItem("தமிழக அரசியல்","location='/Thendral/channels/arasiyal/arasiyal.aspx'");
		menunav.addMenuItem("இதோ பார், இந்தியா!","location='/Thendral/channels/ithopaarindia/ithopaarindia.aspx'");				
				menunav.hideOnMouseOut=true;
				menunav.bgColor='#b0b0b0';
				menunav.menuBorder=1;
				menunav.menuLiteBgColor='#b0b0b0';
				menunav.menuBorderBgColor='#b0b0b0';
	 
				

menunav.writeMenus();
} // mmLoadMenus()

	function onchangeofselect()
		{
			//alert("I am going")
			var link=document.f10.select.value
			window.open(link)
			//window.location.href=link
		}

	function MM_showMenu(menu, x, y, child, imgname) 
		{
			if (!window.mmWroteMenu) return;
			MM_clearTimeout();
			if (menu) 
				{
					var obj = FIND(imgname) || document.images[imgname] || document.links[imgname] || document.anchors[imgname];
					x = moveXbySlicePos (x, obj);
					y = moveYbySlicePos (y, obj);
				}
			if (document.layers) 
				{
					if (menu) 
						{
							var l = menu.menuLayer || menu;
							l.top = l.left = 1;
							hideActiveMenus();
							if (this.visibility) l = this;
							window.ActiveMenu = l;
						} 
					else 
						{
							var l = child;
						}
					if (!l) return;
					for (var i=0; i<l.layers.length; i++) 
						{ 			   
							if (!l.layers[i].isHilite) l.layers[i].visibility = "inherit";
							if (l.layers[i].document.layers.length > 0) MM_showMenu(null, "relative", "relative", l.layers[i]);
						}
					if (l.parentLayer) 
						{
							if (x != "relative") l.parentLayer.left = x || window.pageX || 0;
							if (l.parentLayer.left + l.clip.width > window.innerWidth) l.parentLayer.left -= (l.parentLayer.left + l.clip.width - window.innerWidth);
							if (y != "relative") l.parentLayer.top = y || window.pageY || 0;
							if (l.parentLayer.isContainer) 
								{
									l.Menu.xOffset = window.pageXOffset;
									l.Menu.yOffset = window.pageYOffset;
									l.parentLayer.clip.width = window.ActiveMenu.clip.width +2;
									l.parentLayer.clip.height = window.ActiveMenu.clip.height +2;
									if (l.parentLayer.menuContainerBgColor && l.Menu.menuBgOpaque ) l.parentLayer.document.bgColor = l.parentLayer.menuContainerBgColor;
						}
				}
			l.visibility = "inherit";
			if (l.Menu) l.Menu.container.visibility = "inherit";
		  } 
		else if (FIND("menuItem0")) {
		var l = menu.menuLayer || menu;	
		hideActiveMenus();
		if (typeof(l) == "string") l = FIND(l);
		window.ActiveMenu = l;
		var s = l.style;
		s.visibility = "inherit";
		if (x != "relative") 
		{
			s.pixelLeft = x || (window.pageX + document.body.scrollLeft) || 0;
			s.left = s.pixelLeft + 'px';
		}
		if (y != "relative") 
			{
				s.pixelTop = y || (window.pageY + document.body.scrollTop) || 0;
				s.top = s.pixelTop + 'px';
			}
			l.Menu.xOffset = document.body.scrollLeft;
			l.Menu.yOffset = document.body.scrollTop;
	}
		if (menu) window.activeMenus[window.activeMenus.length] = l;
		MM_clearTimeout();
	}
