var vMenu = [
				[
					['Know Us', 'about the company, people and their strength', 155],
					[
						['Our Profile', 'with vision & mission', 'Our Profile', './profile.htm'],
						['Our Management', 'the management team', 'Our Management', './management.htm'],
						['Awards & Credentials', 'endorsing our competence', 'Awards & Credentials', './awards.htm'],
						['Our Competence', 'achieved through innovations', 'Our Competence', './strength.htm']
					]
				],
				[
					['Solar Energy', 'advantage, myths & reality and the kyoto protocol', 155],
					[
						['Why Solar?', 'advantages of solar energy', 'Why Solar?', './whysolar.htm'],
						['Myths & Reality', 'about solar energy', 'Myths & Reality', './myths.htm'],
						['Kyoto Protocol', 'the protocol on pollution', 'Kyoto Protocol', './kyoto.htm'],
						['Carbon Credits', 'how to earn them', 'Carbon Credits', './ccredit.htm']
					]
				],
				[
					['Our Products', 'explore widest range of solar powered products', 210],
					[
						['Air Conditioners', null, 'Air Conditioners', './airconditioner.htm'],
						['Bulk Cooking System', null, 'Bulk Cooking System', './cooking.htm'],
						['Steam Generation System', null, 'Steam Generation System', './steam.htm'],
						['Dryer for Agriculture Produce', null, 'Dryer for Agriculture Produce', './dryer.htm'],
						['Street Lights', null, 'Street Lights', './slights.htm'],
						['Home Lights', null, 'Home Lights', './hlights.htm'],
						['Traffic Signals', null, 'Traffic Signals', './tsignals.htm'],
						['Pumps', null, 'Pumps', './pumps.htm'],
						['Energy Saver Controllers', null, 'Energy Saver Controllers', './escontrollers.htm'],
						['Computerized Irrigation System', null, 'Computerized Irrigation System', './cisystem.htm']
					]
				],
				[
					['How To Buy?', 'how to avail the financial assiatance for solar products', 180],
					[
						['Offset against Power Bill', 'a no capital cost formula', 'Offset against Power Bill', './billoffset.htm'],
						['Financial Assistance', 'from various govt. schemes', 'Financial Assistance', './finassistance.htm'],
						['Our Network', 'contact our representatives', 'Our Network', './network.htm']
					]
				]
			];

function RenderMenu()
{
	var i, j;
	var vHTML = '<ul class="menu">';

	for(i=0; i<vMenu.length; i++)
	{
		vHTML += '<li onmouseover="showMenu(' + i + ');" onmouseout="hideMenu(' + i + ');">';
		vHTML += '<div class="margin"><b>' + vMenu[i][0][0] + '</b><p class="small">' + vMenu[i][0][1] + '</p></div>';

		vHTML += '<div class="smenu" style="width:' + vMenu[i][0][2] + 'px"><ul>';
		for(j=0; j<vMenu[i][1].length; j++) vHTML += '<li><a title="' + vMenu[i][1][j][2] + '" href="./' + vMenu[i][1][j][3] + '">' + vMenu[i][1][j][0] + '</a></li>';
		vHTML += '</ul></div>';

		vHTML += '</li>';
	}

	vHTML += '</ul>';

	var obj = document.getElementById('menu');
	obj.innerHTML = vHTML;
}

function showMenu(itm)
{
	var obj = document.getElementById('menu'); if(!obj) return;
	obj.childNodes[0].childNodes[itm].className = 'over';
	obj.childNodes[0].childNodes[itm].childNodes[1].style.display = 'inline';
}
function hideMenu(itm)
{
	var obj = document.getElementById('menu'); if(!obj) return;
	obj.childNodes[0].childNodes[itm].className = '';
	obj.childNodes[0].childNodes[itm].childNodes[1].style.display = 'none';
}

if(window.attachEvent) window.attachEvent('onload', RenderMenu);
else window.addEventListener('load', RenderMenu, false);
