﻿function display(divid)
{
var show = document.getElementById(divid);
show.style.display="block";
}
function disphide(divid)
{
var show = document.getElementById(divid);
show.style.display="none";
}

/*Top nav roll over   */
var isDOM1 = (document.getElementById ? true : false); 
var isIE4 = ((document.all && !isDOM1) ? true : false);
var isNS4 = (document.layers ? true : false);
function getRef(id)
{
	if (isDOM1) return document.getElementById(id);
	if (isIE4) return document.all[id];
	if (isNS4) return document.layers[id];
}
function getSty(id)
{return (isNS4 ? getRef(id) : getRef(id).style);} 
// Hide timeout.
var popTimer = 0;
// Array showing highlighted menu items.
var litNow = new Array();
function popOver(menuNum, itemNum) {
	clearTimeout(popTimer);
	hideAllBut(menuNum);
	litNow = getTree(menuNum, itemNum);
	changeCol(litNow, true);
	targetNum = menu[menuNum][itemNum].target;
	if (targetNum > 0) {
		thisX = parseInt(menu[menuNum][0].ref.left) + parseInt(menu[menuNum][itemNum].ref.left);
		thisY = parseInt(menu[menuNum][0].ref.top) + parseInt(menu[menuNum][itemNum].ref.top);
		with (menu[targetNum][0].ref) {
			left = parseInt(thisX + menu[targetNum][0].x);
			top = parseInt(thisY + menu[targetNum][0].y);
			visibility = 'visible';
		}
	}
}
function popOut(menuNum, itemNum) {
	if ((menuNum == 0) && !menu[menuNum][itemNum].target)
		hideAllBut(0)
	else
		popTimer = setTimeout('hideAllBut(0)', 500);
}
function getTree(menuNum, itemNum) {

	// Array index is the menu number. The contents are null (if that menu is not a parent)
	// or the item number in that menu that is an ancestor (to light it up).
	itemArray = new Array(menu.length);

	while(1) {
		itemArray[menuNum] = itemNum;
		// If we've reached the top of the hierarchy, return.
		if (menuNum == 0) return itemArray;
		itemNum = menu[menuNum][0].parentItem;
		menuNum = menu[menuNum][0].parentMenu;
	}
}

// Pass an array and a boolean to specify colour change, true = over colour.
function changeCol(changeArray, isOver) {
	for (menuCount = 0; menuCount < changeArray.length; menuCount++) {
		if (changeArray[menuCount]) {
			newCol = isOver ? menu[menuCount][0].overCol : menu[menuCount][0].backCol;
			// Change the colours of the div/layer background.
			with (menu[menuCount][changeArray[menuCount]].ref) {
				if (isNS4) bgColor = newCol;
				else backgroundColor = newCol;
			}
		}
	}
}
function hideAllBut(menuNum)
{
	var keepMenus = getTree(menuNum, 1);
	for (count = 0; count < menu.length; count++)
	{
		if (!keepMenus[count])
			menu[count][0].ref.visibility = 'hidden';
	}
	changeCol(litNow, false);
}

// *** MENU CONSTRUCTION FUNCTIONS ***

function Menu(isVert, popInd, x, y, width, overCol, backCol, borderClass, textClass) {
	// True or false - a vertical menu?
	this.isVert = isVert;
	// The popout indicator used (if any) for this menu.
	this.popInd = popInd
	// Position and size settings.
	this.x = x;
	this.y = y;
	this.width = width;
	// Colours of menu and items.
	this.overCol = overCol;
	this.backCol = backCol;
	// The stylesheet class used for item borders and the text within items.
	this.borderClass = borderClass;
	this.textClass = textClass;
	// Parent menu and item numbers, indexed later.
	this.parentMenu = null;
	this.parentItem = null;
	// Reference to the object's style properties (set later).
	this.ref = null;
}

function Item(text, href, frame, length, spacing, target)
{
	this.text = text;
	this.href = href;
	this.frame = frame;
	this.length = length;
	this.spacing = spacing;
	this.target = target;
	// Reference to the object's style properties (set later).
	this.ref = null;
}

function Items(text, href, frame, length,width, spacing, target)
{
	this.text = text;
	this.href = href;
	this.frame = frame;
	this.length = length;
	this.width= width;
	this.spacing = spacing;
	this.target = target;
	// Reference to the object's style properties (set later).
	this.ref = null;
}
function writeMenus()
{
	
	if (!isDOM1 && !isIE4 && !isNS4) return;
	for (currMenu = 0; currMenu < menu.length; currMenu++) with (menu[currMenu][0])
		{
		// Variable for holding HTML for items and positions of next item.
		var str = '', itemX = 0, itemY = 0;
		// Remember, items start from 1 in the array (0 is menu object itself, above).
		// Also use properties of each item nested in the other with() for construction.
		for (currItem = 1; currItem < menu[currMenu].length; currItem++) with (menu[currMenu][currItem])
			{
			var itemID = 'menu' + currMenu + 'item' + currItem;
			// The width and height of the menu item - dependent on orientation!
			var w = (isVert ? width : length);
			var h = (isVert ? length : width);
			// Create a div or layer text string with appropriate styles/properties.
			// Thanks to Paul Maden (www.paulmaden.com) for helping debug this in IE4, apparently
			// the width must be a miniumum of 3 for it to work in that browser.
			if (isDOM1 || isIE4) 
				{
				str += '<div id="' + itemID + '" style="position: absolute; left: ' + itemX + '; top: ' + itemY + '; width: ' + w + '; height: ' + h + '; visibility: inherit; ';
				if (backCol) str += 'background: ' + backCol + '; ';
				str += '" ';
				}
			if (isNS4)
				{
				str += '<layer id="' + itemID + '" left="' + itemX + '" top="' + itemY + '" width="' +  w + '" height="' + h + '" visibility="inherit" ';
				if (backCol) str += 'bgcolor="' + backCol + '" ';
				}
			if (borderClass) str += 'class="' + borderClass + '" ';
			// Add mouseover handlers and finish div/layer.
			str += 'onMouseOver="popOver(' + currMenu + ',' + currItem + ')" onMouseOut="popOut(' + currMenu + ',' + currItem + ')">';
			// Add contents of item (default: table with link inside).
			// In IE/NS6+, add padding if there's a border to emulate NS4's layer padding.
			// If a target frame is specified, also add that to the <a> tag.
			<!--str += '<table width="' + (w - 8) + '" border="0" cellspacing="0" cellpadding="' + (!isNS4 && borderClass ? 3 : 0) + '"><tr><td align="left" height="' + (h - 7) + '">' + '<a class="' + textClass + '" href="' + href + '"' + (frame ? ' target="' + frame + '">' : '>') + text + '</a></td>';-->
			str += '<table style="z-index:1" width="' + (w - 1) + '" border="0" cellspacing="0" cellpadding="' + (!isNS4 && borderClass ? 3 : 0) + '"><tr><td align="left" height="' + (h - 1) + '">' + '<a class="' + textClass + '" href="' + href + '"' + (frame ? ' target="' + frame + '">' : '>') + text + '</a></td>';
			if (target > 0)
				{
				// Set target's parents to this menu item.
				menu[target][0].parentMenu = currMenu;
				menu[target][0].parentItem = currItem;
				// Add a popout indicator.
				//if (popInd) str += '<td class="' + textClass + '" align="right">' + popInd + '</td>';
				if (popInd)
				str += '<td class="' + textClass + '" align="right">' + popInd + '</td>';
				}
				str += '</tr></table>' + (isNS4 ? '</layer>' : '</div>');
				if (isVert)
					itemY += length + spacing;
				else
					itemX += length + spacing;
			}//End of inner for loop
			if (isDOM1)
				{
				var newDiv = document.createElement('div');
				//document.getElementsByTagName('body').item(0).appendChild(newDiv);
				var ii=document.getElementById("HoldMe");
				ii.appendChild(newDiv);
				newDiv.innerHTML = str;
				ref = newDiv.style;
				ref.position = 'absolute';
				ref.visibility = 'hidden';
				}
				// Insert a div tag to the end of the BODY with menu HTML in place for IE4.
			if (isIE4)
				{
				document.body.insertAdjacentHTML('beforeEnd', '<div id="menu' + currMenu + 'div" ' + 'style="position: absolute; visibility: hidden">' + str + '</div>');
				ref = getSty('menu' + currMenu + 'div');
				}
			// In NS4, create a reference to a new layer and write the items to it.
			if (isNS4)
				{
				
				ref = new Layer(0);
				ref.document.write(str);
				ref.document.close();
				}
			for (currItem = 1; currItem < menu[currMenu].length; currItem++)
				{
				itemName = 'menu' + currMenu + 'item' + currItem;
				if (isDOM1 || isIE4)

				menu[currMenu][currItem].ref = getSty(itemName);
				if (isNS4)
				menu[currMenu][currItem].ref = ref.document[itemName];
				}
		}
		with(menu[0][0])
			{
			ref.left = x;
			ref.top = y;
			ref.visibility = 'visible';
			}
		var flag;
		if (flag==true)
			{
			initScroller1();
			}
	}//end of outer for loop

// Syntaxes: *** START EDITING HERE, READ THIS SECTION CAREFULLY! ***
//
// menu[menuNumber][0] = new Menu(Vertical menu? (true/false), 'popout indicator', left, top,
// width, 'mouseover colour', 'background colour', 'border stylesheet', 'text stylesheet');
//
// Left and Top are measured on-the-fly relative to the top-left corner of its trigger, or
// for the root menu, the top-left corner of the page.
//
// menu[menuNumber][itemNumber] = new Item('Text', 'URL', 'target frame', length of menu item,
//  additional spacing to next menu item, number of target menu to popout);
//
// If no target menu (popout) is desired, set it to 0. Likewise, if your site does not use
// frames, pass an empty string as a frame target.
//
// Something that needs explaining - the Vertical Menu setup. You can see most menus below
// are 'true', that is they are vertical, except for the first root menu. The 'length' and
// 'width' of an item depends on its orientation -- length is how long the item runs for in
// the direction of the menu, and width is the lateral dimension of the menu. Just look at
// the examples and tweak the numbers, they'll make sense eventually :).

var menu = new Array();

// Default colours passed to most menu constructors (just passed to functions, not
// a global variable - makes things easier to change later in bulk).
var defOver = '#ff9933', defBack = '#FFF4c9'; 

// Default 'length' of menu items - item height if menu is vertical, width if horizontal.
var defLength =105;

// Menu 0 is the special, 'root' menu from which everything else arises.
menu[0] = new Array();
// A non-vertical menu with a few different colours and no popout indicator, as an example.
// *** MOVE ROOT MENU AROUND HERE ***  it's positioned at (5, 0) and is 17px high now.
menu[0][0] = new Menu(false, '',15, 144, 19, '#ffffff', '#ffffff', '', 'inneritemText');
// Notice how the targets are all set to nonzero values...
// The 'length' of each of these items is 40, and there is spacing of 10 to the next item.
// Most of the links are set to '#' hashes, make sure you change them to actual files.

// An example of a link with a target frame/window as well...



// File menu.

// The File menu is positioned 0px across and 22 down from its trigger, and is 80 wide.
// All text in this menu has the stylesheet class 'item' -- see the <style> section above.
// We've passed a 'greater-than' sign '>' as a popout indicator. Try an image...?

menu[0][1] = new Item('&nbsp;<span style="vertical-align:top;"><img src="../NewImages/TopNav/home.gif" border="0" /></span>', '../home.aspx', '', 37, 0, 0);

menu[0][2] = new Item('<span style="vertical-align:top;"><img src="../NewImages/TopNav/aboutus.gif"  border="0"/></span>', '../aboutus.aspx', '',96,0, 1);

menu[0][3] = new Item('<span style="vertical-align:top;"><img src="../NewImages/TopNav/products.gif"  border="0"/></span>', '../products.aspx', '', 62, 0, 7);

menu[0][4] = new Item('<span style="vertical-align:top;"><img src="../NewImages/TopNav/business.gif"  border="0"/></span>', '../businessservices.aspx', '', 121, 0, 8);

menu[0][5] = new Item('<span style="vertical-align:top;"><img src="../NewImages/TopNav/Investor.gif"  border="0"/></span>', '../InvestorCenter.aspx', '',102, 0, 11);

menu[0][6] = new Item('<span style="vertical-align:top;"><img src="../NewImages/TopNav/people.gif"  border="0"/></span>', '../PeopleCareers.aspx', '',156, 0, 9);

menu[0][7] = new Item('<span style="vertical-align:top;"><img src="../NewImages/TopNav/publications.gif" border="0"/></span>', '../Samachar/IndianoilSamachar.aspx', '', 109, 0, 10);

menu[0][8] = new Item('<span style="vertical-align:top;"><img src="../NewImages/TopNav/interface.gif"  border="0"/></span>', '../interface.aspx', '', 55, 0, 12);


// File menu.

//हमारे बारे में
menu[1] = new Array();
menu[1][0] = new Menu(true, '>', 3, 22, 80, defOver, defBack, 'itemBorder', 'inneritemTextsm');
menu[1][1] = new Items('निगमित सिंहावलोकन', '/AboutUs/Profile.aspx', '', 20,120, 0, 2);
menu[1][2] = new Items('वित्तीय निष्पादन', '/Aboutus/FinancialPerformance.aspx', '', 20,120, 0,0);
menu[1][3] = new Items('प्रबंधन', '/Aboutus/Management.aspx', '', 20,120, 0, 3);
menu[1][4] = new Items('मुख्य यूनिट', '/Aboutus/MajorUnits.aspx', '', 20,120, 0, 0);
menu[1][5] = new Items('प्रमुख परियोजनाएं', '/Aboutus/Majorprojects.aspx', '', 20,120, 0, 0);
menu[1][6] = new Items('नूतन प्रवर्तन', '/Aboutus/Initiatives.aspx', '', 20,120, 0, 5);
menu[1][7] = new Items('मान्यताएं', '/Aboutus/Recognitions.aspx', '', 20,120, 0, 0);

//प्रोफाइल
menu[2] = new Array();
menu[2][0] = new Menu(true,'>' , 85, 0, 80, defOver, defBack, 'itemBorder', 'inneritemTextsm');
menu[2][1] = new Items('विज़न और मूल्य', '/AboutUs/Vision.aspx', '', 22,120, 0, 0);
menu[2][2] = new Items('उद्देश्य व दायित्व', '/AboutUs/Objectives.aspx', '', 20,120, 0, 0);
menu[2][3] = new Items('समूह कम्पनियां', '/AboutUs/GroupCompanies.aspx', '', 20,120, 0, 0);
menu[2][4] = new Items('संयुक्त उद्यम', '/AboutUs/JointVentures.aspx', '', 20,120, 0, 0);
menu[2][5] = new Items('स्वर्ण जयंती समारोह', '/AboutUs/GoldenJubilee.aspx', '', 20,120, 0, 0);
menu[2][6] = new Items('कॉर्पोरेट लोगो (डाउनलोड)', 'http://iocl.com/AboutUs/CorporateLogos.aspx', '', 20,120, 0, 0);

// वित्तीय निष्पादन
menu[3] = new Array();
menu[3][0] = new Menu(true,'>' , 85, 0, 80, defOver, defBack, 'itemBorder', 'inneritemTextsm');
menu[3][1] =new Items('अध्यक्ष के बारे में', 'http://hindi.iocl.com/AboutUs/chairman_profile.aspx', '', 20,80, 0, 0);


// मान्यताएं
menu[4] = new Array();
menu[4][0] = new Menu(true,'>' , 120, 0, 80, defOver, defBack, 'itemBorder', 'inneritemTextsm');
menu[4][1] =new Items('विशिष्टियां', '/Aboutus/Distinctions.aspx', '', 20,135, 0, 0);
menu[4][2] =new Items('पुरस्कार व मान्यताएंंंंंें', '/Aboutus/Awards_Accreditations.aspx', '', 20,135, 0, 0);


//  नूतन प्रवर्तन 
 
menu[5] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[5][0] = new Menu(true, '', 85, 0, 80, defOver, defBack, 'itemBorder', 'inneritemTextsm');
// These items are lengthier than normal, and have extra spacing due to the fancy borders.
menu[5][1] = new Items('सत्यनिष्ठा समझौता', '/Aboutus/adoptIntegrity.aspx', '', 20,155, 0, 0);
menu[5][2] = new Items('पर्यावरण', '/Aboutus/Environment.aspx', '', 20,155, 0, 0);
menu[5][3] = new Items('इंडियन ऑयल शैक्षणिक छात्रवृत्तियां', '/Aboutus/Scholarships.aspx', '',32,155, 0, 0);
menu[5][4] = new Items('इंडियन ऑयल खेल छात्रवृत्तियां', '/Aboutus/IndianOilSports.aspx', '', 20,155, 0, 0);
menu[5][5] = new Items('कॉर्पोरेट सामाजिक दायित्वं', '/Aboutus/corporatesocialresponsibility.aspx', '', 20,155, 0, 0);
menu[5][6] = new Items('ग्लोबल काम्पेक्ट प्रतिबद्दतां', '/Aboutus/globalcompactinitiative.aspx', '', 20,155, 0, 0);



//डीलर/वितरक
menu[6] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[6][0] = new Menu(true, '', -70, 0, 80, defOver, defBack, 'itemBorder', 'inneritemTextsm');
// These items are lengthier than normal, and have extra spacing due to the fancy borders.
menu[6][1] = new Items('मार्गनिर्देश', '/Talktous/Guidelines.aspx', '', 20,150, 0, 0);
menu[6][2] = new Items('चयन स्थिति', 'http://www.iocl.com/Talktous/SelectionStatus.aspx', '', 20,150, 0, 0);




// उत्पाद
menu[7] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[7][0] = new Menu(true,'>' , 3, 22, 80, defOver, defBack, 'itemBorder', 'inneritemTextsm');
// These items are lengthier than normal, and have extra spacing due to the fancy borders.
menu[7][1] = new Items('इंडेन गैस', '/Products/Indanegas.aspx', '', 20,125,0, 0);
menu[7][2] = new Items('ऑटो गैस', '/Products/AutoGas.aspx', '', 20,125,0, 0);
menu[7][3] = new Items('प्राकृतिक गैस', '/businessservices/gas.aspx', '', 20,125,0, 0);
menu[7][4] = new Items('पेट्रोल / गैसोलीन', '/Products/Gasoline.aspx', '', 20,125,0, 0);
menu[7][5] = new Items('डीजल / गैस तेल', '/Products/HighSpeedDiesel.aspx', '', 20,125,0, 0);
menu[7][6] = new Items('एटीएफ / जेट ईंधन', '/Products/AviationTurbineFuel.aspx', '', 30,125,0, 0);
menu[7][7] = new Items('सर्वो ल्यूब्रिकेन्ट्स और ग्रीस', '/Products/LubesGreases.aspx', '', 30,125,0, 17);
menu[17] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[17][0] = new Menu(true, '', 126, 0, 80, defOver, defBack, 'itemBorder', 'inneritemTextsm');
// These items are lengthier than normal, and have extra spacing due to the fancy borders.
menu[17][1] = new Items('एग्रीकल्चरल स्प्रे ऑयल', '/Products/AgriculturalSpray.aspx', '', 20,155, 0, 0);
menu[17][2] = new Items('ऑटोमोटिव ग्रीस', '/Products/AutomotiveGreases.aspx', '', 20,155, 0, 0);
menu[17][3] = new Items('ऑटोमोटिव ल्यूब्रीकेटिंग ऑयल', '/Products/AutomotiveLubricatingOils.aspx', '',32,155, 0, 0);
menu[17][4] = new Items('ऑटोमोटिव विशिष्टि तेल', '/Products/AutomotiveSpecialityOils.aspx', '', 20,155, 0, 0);
menu[17][5] = new Items('औद्योगिक ग्रीस', '/Products/IndustrialGreases.aspx', '', 20,155, 0, 0);
menu[17][6] = new Items('औद्योगिक ल्यूब्रीकेटिंग ऑयल', '/Products/IndustrialLubricating.aspx', '', 20,155, 0, 0);
menu[17][7] = new Items('औद्योगिक विशिष्टि तेल', '/Products/IndustrialSpeciality.aspx', '', 20,155, 0, 0);
menu[17][8] = new Items('धातु कर्मी तेल', '/Products/MetalWorkingOils.aspx', '', 20,155, 0, 0);
menu[17][9] = new Items('रेल रोड ग्रीस', '/Products/RailroadGreases.aspx', '', 20,155, 0, 0);
menu[17][10] = new Items('रेल रोड ऑयल', '/Products/Railroad.aspx', '', 20,155, 0, 0);
menu[7][8] = new Items('मेरीन ईंधन व ल्यूब्रीकैंट्स', '/Products/Marinefuels.aspx', '', 20,125,0, 0);
menu[7][9] = new Items('सुपीरियर केरोसिन ऑयल ', '/Products/SuperiorKeroseneOil.aspx', '', 20,125,0, 0);
menu[7][10] = new Items('बल्क औद्योगिक ईंधन ', '/Products/BulkIndustrialFuel.aspx', '', 20,125,0, 0);
menu[7][11] = new Items('बिटुमन', '/Products/Bitumen.aspx', '', 20,125,0, 0);
menu[7][12] = new Items('पेट्रोकेमिकल्स', '/Products/PetrochemicalsSpecialities.aspx', '', 20,125,0, 0);
menu[7][13] = new Items('विशेष उत्पाद', '/Products/SpecialProducts.aspx', '', 20,125,0, 0);
menu[7][14] = new Items('कच्चा तेल', '/Products/CrudeOil.aspx', '', 20,125,0, 0);

//व्यापार व सेवाएं
menu[8] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[8][0] = new Menu(true, '>', 3, 22, 80, defOver, defBack, 'itemBorder', 'inneritemTextsm');
// These items are lengthier than normal, and have extra spacing due to the fancy borders.
menu[8][1] = new Items(' रिफाइनिंग ', '/businessservices/Refining.aspx', '', 20,100, 0, 0);
menu[8][2] = new Items('पाइपलाइन्स', '/businessservices/Pipeline.aspx', '', 20,100, 0, 0);
menu[8][3] = new Items('मार्केटिंग', '/businessservices/Marketing.aspx', '', 20,100, 0, 0);
menu[8][4] = new Items('प्रशिक्षण', '/businessservices/Training.aspx', '', 20,100, 0, 0);
menu[8][5] = new Items('अनुसंधान व विकास', '/businessservices/ResearchDevelopment.aspx', '', 20,100, 0, 0);
menu[8][6] = new Items('पेट्रोकेमिकल्स', '/businessservices/Petrochemicals.aspx', '', 20,100, 0, 0);
menu[8][7] = new Items('गैस', '/businessservices/gas.aspx', '', 20,100, 0, 0);




// लोक व लोक नियोजन
menu[9] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[9][0] = new Menu(true,'>' , 3, 22, 80, defOver, defBack, 'itemBorder', 'inneritemTextsm');
// These items are lengthier than normal, and have extra spacing due to the fancy borders.

menu[9][1] = new Items('लोक नियोजन','/PeopleCareers/Careers.aspx', '', 20,100,0, 0);
menu[9][2] = new Items('इंडियनऑयल कैम्पस', '/PeopleCareers/IndianOilCampus.aspx', '', 20,100,0, 0);



//हमारे प्रकाशन

menu[10] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[10][0] = new Menu(true,'>' , 3, 22, 80, defOver, defBack, 'itemBorder', 'inneritemTextsm');
// These items are lengthier than normal, and have extra spacing due to the fancy borders.
menu[10][1] = new Items('इंडियनऑयल मीडिया में','MediaCenter/NewsOverviews_h.aspx?NewsTypeID=1', '', 20,118,0, 0);
menu[10][2] = new Items('अभिधा', '/downloads/Abhidha_170310.pdf', '', 20,118, 0, 0);
menu[10][3] = new Items('इंडियन ऑयल समाचार', '/Samachar/IndianoilSamachar.aspx', '', 20,118, 0, 0);



//इंवेस्टर सेंटर

menu[11] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[11][0] = new Menu(true,'>' , 3, 22, 80, defOver, defBack, 'itemBorder', 'inneritemTextsm');
// These items are lengthier than normal, and have extra spacing due to the fancy borders.
menu[11][1] = new Items('अध्यक्ष संबोधन', '/InvestorCenter/ChairmanSpeech.aspx', '', 20,145, 0, 0);
menu[11][2] = new Items('शेयरहोल्डिंग ढांचा', '/InvestorCenter/ShareholdingPattern.aspx', '', 20,145, 0, 0);
menu[11][3] = new Items('इंडियन ऑयल कॉर्पोरेट प्रेजेंटेंशन', 'http://iocl.com/downloads/Presentationtobankers.pdf', '', 32,145, 0, 0);
menu[11][4] = new Items('नोटिस', 'http://iocl.com/InvestorCenter/Notices.aspx', '', 20,145, 0, 0);

//इंटरफ़ेस
menu[12] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[12][0] = new Menu(true,'' , 3, 22, 80, defOver, defBack, 'itemBorder', 'inneritemTextsm');
// These items are lengthier than normal, and have extra spacing due to the fancy borders.
menu[12][1] = new Items(' < &nbsp; डीलर/वितरक', 'http://www.iocl.com/Talktous/Guidelines.aspx', '', 20,110, 0, 6);
menu[12][2] = new Items('< &nbsp;वेंडर रजिस्ट्रेशन', '../Talktous/VendorRegistration.aspx', '', 20,110, 0, 14);
menu[12][3] = new Items('< &nbsp;सूचना का अधिकार', '../Talktous/RTI.aspx', '', 20,110, 0, 15);
menu[12][4] = new Items('< &nbsp;कॉर्पोरेट संदेश', '../Talktous/CorporateMessages.aspx', '', 20,110, 0, 16);


menu[13] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[13][0] = new Menu(true, '',  3, 22, 80, defOver, defBack, 'itemBorder', 'inneritemTextsm');
// These items are lengthier than normal, and have extra spacing due to the fancy borders.
menu[13][1] = new Items('मार्गनिर्देश', '/InvestorCenter/ChairmanSpeech.aspx', '', 20,70, 0, 0);
menu[13][2] = new Items('चयन स्थिति', '/InvestorCenter/ShareholdingPattern.aspx', '', 20,70, 0, 0);
menu[13][3] = new Items('इंडियनअयॉयल कॉर्पोरेट प्रेजेंटेंशन', 'http://iocl.com/downloads/Presentationtobankers.pdf', '', 20,70, 0, 0);
menu[13][4] = new Items('नोटिस', 'http://iocl.com/InvestorCenter/Notices.aspx', '', 20,70, 0, 0);

//वेंडर रजिस्ट्रेशन
menu[14] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[14][0] = new Menu(true, '', -90, 0, 80, defOver, defBack, 'itemBorder', 'inneritemTextsm');
// These items are lengthier than normal, and have extra spacing due to the fancy borders.
menu[14][1] = new Items('विदेशी क्रेता/ आपूर्ति कर्ता', '../Talktous/ForeignSuppliers2.pdf', '', 32,90, 0, 0);
menu[14][2] = new Items('शिप चार्टरिंग', '../Talktous/ShipChartering.aspx', '', 20,90, 0, 0);

//सूचना का अधिकार
menu[15] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[15][0] = new Menu(true, '', -90, 0, 80, defOver, defBack, 'itemBorder', 'inneritemTextsm');
// These items are lengthier than normal, and have extra spacing due to the fancy borders.
menu[15][1] = new Items('सूचना का अधिकार', '../Talktous/RTI.aspx', '', 32,90, 0, 0);
menu[15][2] = new Items('आचार संहिता', '../Talktous/Codeofconduct.aspx', '', 20,90, 0, 0);
menu[15][3] = new Items('कॉर्पोरेट संचालन', '../Talktous/CorporateGovernance.aspx', '', 20,90, 0, 0);

//कॉर्पोरेट संदेश
menu[16] = new Array();
// This is across but not down... a horizontal popout (with crazy stylesheets :)...
menu[16][0] = new Menu(true, '', -90, 0, 80, defOver, defBack, 'itemBorder', 'inneritemTextsm');
// These items are lengthier than normal, and have extra spacing due to the fancy borders.
menu[16][1] = new Items('विज्ञापन ', 'http://iocl.com/Talktous/AdCampaigns.aspx', '', 20,90, 0, 0);


// *** OPTIONAL CODE FROM HERE DOWN ***

// These two lines handle the window resize bug in NS4. See <body onResize="...">.
// I recommend you leave this here as otherwise when you resize NS4's width menus are hidden.

var popOldWidth = window.innerWidth;
nsResizeHandler = new Function('if (popOldWidth != window.innerWidth) location.reload()');

// This is a quick snippet that captures all clicks on the document and hides the menus

// every time you click. Use if you want.

if (isNS4)
document.captureEvents(Event.CLICK);
document.onclick = clickHandle;

function clickHandle(evt)
{
	if (isNS4)
	document.routeEvent(evt);
	hideAllBut(0);
}
// This is just the moving command for the example.

//function moveRoot()
//{
 //with(menu[0][0].ref) left = ((parseInt(left) < 100) ? 100 : 5);
//}
//  End -->
