var vMenu = [
				[
					['About Us', './images/b_about.jpg', './images/b_about_ovr.jpg', 'about.htm']
				],
				[
					['Product', './images/b_product.jpg', './images/b_product_ovr.jpg', '#', 165, 0],
					[
						[
							['Transformers', 'Transformers', '#', 200],
							[
								['Distribution Transformers', 'Distribution Transformers', 'distributiontransformer.htm'],
								['Power Transformers', 'Power Transformers', 'powertransformer.htm'],
								['Dry Type Transformers', 'Dry Type Transformers', 'drytransformer.htm'],
								['Special Duty Transformers', 'Special Duty Transformers', 'specialtransformer.htm']
							]
						],
						[
							['Switchgear', 'Switchgear', '#', 250],
							[
								['Isolators', 'Isolators', 'isolators.htm'],
								['Drop Out Fuses', 'Drop Out Fuses', 'fuses.htm'],
								['Air Break Switch', 'Air Break Switch', 'switches.htm'],
								['Terminal Connectors', 'Terminal Connectors', 'terminalconnectors.htm']
							]
						],
						[
							['Panels', 'Panels', '#', 200],
							[
								['MAKTEL Systems', 'MAKTEL Systems', 'maktelsystems.htm']
							]
						]
					]
				],
				
				[
					['Sales & Services', './images/b_salesservices.jpg', './images/b_salesservices_ovr.jpg', '#', 150, 0],
					[
						[
							['Retrofits', 'Retrofits', 'retrofits.htm']
						],						
						[
							['Service T/Rs', 'Service T/Rs', 'servicetrs.htm']
						]
					]
				],
				[
					['Projects', './images/b_project.jpg', './images/b_project_ovr.jpg', 'projects.htm']
				],
				[
					['Facilities', './images/b_facilities.jpg', './images/b_facilities_ovr.jpg', 'facilities.htm']
				],
				[
					['Imp Links', './images/b_implink.jpg', './images/b_implink_ovr.jpg', '#', 200, -139],
					[
						[
							['Client Certificates', 'Client Certificates', 'certificates.htm']
						],
						[
							['Key Clientel', 'Key Clientele', 'clientele.htm']
						],
						[
							['Test Reports - Transformer', 'Test Reports - Transformer', 'transformertestreports.htm']
						],
						[
							['Test Reports - Switchgear', 'Test Reports - Switchgear', 'switchgeartestreports.htm']
						]
					]
				],
				[
					['Contact', './images/b_contact.jpg', './images/b_contact_ovr.jpg', '#', 200, -153],
					[
						[
							['Pre-Sales/Service Inquiry', 'Pre-Sales/Service Inquiry', 'inquiry.php?frmdanky=pssi']
						],
						[
							['Post Sales/Service Visit', 'Post Sales/Service Visit', 'inquiry.php?frmdanky=pssv']
						],
						[
							['Post Sales/Services Feedback', 'Post Sales/Services Feedback', 'inquiry.php?frmdanky=pssf']
						],
						[
							['Post Your Suggestions', 'Post Your Suggestions', 'inquiry.php?frmdanky=pys']
						],
						[
							['Contact Details', 'Contact Details', 'contact.htm']
						]
					]
				]				
			];
var vTemp = window.location.href.toLowerCase().split('/');
var vSelf = vTemp[vTemp.length-1];

function LoadMenu()
{
	var i, j, k;
	var vTemp = '';
	var vHTML = '';
	var vIsPage = false;
	
	var obj = document.getElementById('menu'); if(!obj) return;
	
	vHTML = '<ul class="level1">';
	
	for(i=0; i<vMenu.length; i++)
	{
		vTemp = '';
		vIsPage = false;
		
		if(vSelf==vMenu[i][0][3]) vIsPage = true;
		
		if(vMenu[i].length>1)
		{
			vTemp = '<br/><ul class="level2"' + ((vMenu[i][0].length>4) ? ' style="width:' + vMenu[i][0][4] + '; margin-left:' + vMenu[i][0][5] + '"' : '') + '>';

			for(j=0; j<vMenu[i][1].length; j++)
			{
				if(!vIsPage && vSelf==vMenu[i][1][j][0][2]) vIsPage = true;

				vTemp += '<li onmouseover="this.className=\'over\'; if(this.childNodes.length>1) this.childNodes[1].style.display=\'inline\';" onmouseout="this.className=\'\'; if(this.childNodes.length>1) this.childNodes[1].style.display=\'none\';"><a title="' + vMenu[i][1][j][0][0] + '" href="' + vMenu[i][1][j][0][2] + '">' + vMenu[i][1][j][0][1] + '</a>';

				if(vMenu[i][1][j].length>1)
				{
					vTemp += '<ul class="level3"' + ((vMenu[i][1][j][0].length==4) ? ' style="width:' + vMenu[i][1][j][0][3] + '"' : '') +  '>';
					
					for(k=0; k<vMenu[i][1][j][1].length; k++)
					{
						if(!vIsPage && vSelf==vMenu[i][1][j][1][k][2]) vIsPage = true;
						vTemp += '<li onmouseover="this.className=\'over\';" onmouseout="this.className=\'\';"><a title="' + vMenu[i][1][j][1][k][0] + '" href="' + vMenu[i][1][j][1][k][2] + '">' + vMenu[i][1][j][1][k][1] + '</a></li>';
					}
					
					vTemp += '</ul>';
				}
				vTemp += '</li>';
			}

			vTemp += '</ul>';
		}

		if(vIsPage)vHTML += '<li onmouseover="if(this.childNodes.length>1) this.childNodes[2].style.display=\'inline\';" onmouseout="if(this.childNodes.length>1) this.childNodes[2].style.display=\'none\';" style="z-index:100"><a title="' + vMenu[i][0][0] + '" href="' + vMenu[i][0][3] + '"><img border="0" src="' + vMenu[i][0][2] + '"></a>' + vTemp + '</li>';
		else vHTML += '<li onmouseover="this.childNodes[0].childNodes[0].src=\'' + vMenu[i][0][2] + '\'; if(this.childNodes.length>1) this.childNodes[2].style.display=\'inline\';" onmouseout="this.childNodes[0].childNodes[0].src=\'' + vMenu[i][0][1] + '\'; if(this.childNodes.length>1) this.childNodes[2].style.display=\'none\';"><a title="' + vMenu[i][0][0] + '" href="' + vMenu[i][0][3] + '"><img border="0" src="' + vMenu[i][0][1] + '"></a>' + vTemp + '</li>';
	}

	vHTML += '</ul>';

	obj.innerHTML = vHTML;
}

if(window.attachEvent) window.attachEvent('onload', LoadMenu);
else window.addEventListener('load', LoadMenu, false);