menunum=0;
menus=new Array();
_d=document;

function addmenu()
{
	menunum++;
	menus[menunum]=menu;
}

function dumpmenus()
{
	mt="<script language=javascript>";
	for(a=1; a<menus.length; a++)
		{
		mt+=" menu"+a+"=menus["+a+"];"
		}
	mt+="<\/script>";
	_d.write(mt)
}


// Special effect string for IE5.5 or above
if(navigator.appVersion.indexOf("MSIE 6.0")>0)
	{
	effect = "Fade(duration=0.2);Alpha(style=0,opacity=88);" // "Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#777777', Direction=135, Strength=5)"
	}
else
	{
	effect = "" // "Shadow(color='#777777', Direction=135, Strength=5)" // Stop IE5.5 bug when using more than one filter
	}


timegap=500				// The time delay for menus to remain visible
followspeed=5			// Follow Scrolling speed
followrate=40			// Follow Scrolling Rate
suboffset_top=10;		// Sub menu offset Top position 
suboffset_left=10;		// Sub menu offset Left position


style1=[				// style1 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"FFFFFF",				// Mouse Off Font Color (Original=orange)
"2F4167",				// Mouse Off Background Color (Original=white)
"FFFFFF",				// Mouse On Font Color (Original=black)
"253A47",				// Mouse On Background Color (Original=orange dark)
"FF6600",				// Menu Border Color  (Original=black)
11,						// Font Size in pixels
"normal",				// Font Style (italic or normal)
"bold",				    // Font Weight (bold or normal)
"Arial, Verdana",		// Font Name
2,						// Menu Item Padding
"images/line.jpg",  	// Sub Menu Image (Leave this blank if not needed)
100,						// 3D Border & Separator bar
"000000",				// 3D High Color(black)
"000000",				// 3D Low Color(black)
"",						// Current Page Item Font Color (leave this blank to disable-purple)
"",					// Current Page Item Background Color (leave this blank to disable-pink)
"images/line.jpg",			// Top Bar image (Leave this blank to disable)
"BBBBBB",				// Menu Header Font Color (Leave blank if headers are not needed)
"CCCCCC",				// Menu Header Background Color (Leave blank if headers are not needed)
]


ns4=(_d.layers)?true:false
if (ns4)
	
	FontSize=10; //10
else
	FontSize=7; //9

style2=[				// style2 is an array of properties. You can have as many property arrays as you need. This means that menus can have their own style.
"D4D397",				// Mouse Off Font Color (Original=Navy)
"0000FF",				// Mouse Off Background Color (Original=ccccff)
"0000FF",				// Mouse On Font Color (Original=ffebdc)
"5E668B",				// Mouse On Background Color (Original=4b0082)
// "5E668B",				// Mouse On Background Color (Original=4b0082)
"000000",				// Menu Border Color  (Original=000000)
FontSize,				// Font Size in pixels
"Normal",				// Font Style (italic or normal)
"bold",				// Font Weight (bold or normal)
"Arial, Verdana",			// Font Name
5,					// Menu Item Padding
"images/ArrowRight.gif",// Sub Menu Image (Leave this blank if not needed)
,					// 3D Border & Separator bar
"FFFFFF",				// 3D High Color
"FFFFFF",				// 3D Low Color
"",					// Current Page Item Font Color (leave this blank to disable-purple)
"",					// Current Page Item Background Color (leave this blank to disable-pink)
"images/ArrowDown.gif",	// Top Bar image (Leave this blank to disable)
"ffffff",				// Menu Header Font Color (Leave blank if headers are not needed)
"2F4167",				// Menu Header Background Color (Leave blank if headers are not needed)
]


// Start Main Menu
if (ns4) 
	{	
	MenuTop=106
	MenuLeft=120
	MenuWidth=115
	}
else
	{
	MenuTop=102
	MenuLeft=3//163
	MenuWidth=129 //154
	}

addmenu(menu=[	// This is the array that contains your menu properties and details
"mainmenu",		// Menu Name - This is needed in order for the menu to be called
MenuTop,			// Menu Top - The Top position of the menu in pixels
MenuLeft,			// Menu Left - The Left position of the menu in pixels
MenuWidth,			// Menu Width - Menus width in pixels
1,					// Menu Border Width 
"",					// Screen Position - here you can use "center;left;right;middle;top;bottom" or a combination of "center:middle"
style1,			// Properties Array - this is set higher up, as above
1,					// Always Visible - allows the menu item to be visible at all time (1=on/0=off)
"Left",			// Alignment - sets the menu elements text alignment, values valid here are: left, right or center
effect,			// Filter - Text variable for setting transitional effects on menu activation - see above for more info
,					// Follow Scrolling - Tells the menu item to follow the user down the screen (visible at all times) (1=on/0=off)
1, 					// Horizontal Menu - Tells the menu to become horizontal instead of top to bottom style (1=on/0=off)
0,					// Keep Alive - Keeps the menu visible until the user moves over another menu or clicks elsewhere on the page (1=on/0=off)
,					// Position of TOP sub image left:center:right
,					// Set the Overall Width of Horizontal Menu to 100% and height to the specified amount (Leave blank to disable)
,					// Right To Left - Used in Hebrew for example. (1=on/0=off)
,					// Open the Menus OnClick - leave blank for OnMouseover (1=on/0=off)
,					// ID of the div you want to hide on MouseOver (useful for hiding form elements)
,					// Reserved for future use
,					// Reserved for future use
,					// Reserved for future use


// "Description Text", "URL", "Alternate URL", "Status", "Separator Bar"
//,"Home ","show-menu=Home",,"",1
,"NCCoPP ","show-menu=About",,"abc.htm",0
,"Training ","show-menu=Project",,"",0
//,"Events ","show-menu=Events",,"",0
,"Awareness ","show-menu=Events",,"",0
//,"Resources ","show-menu=Resources",,"",0
,"Equipment Support","show-menu=Resources",,"",0
,"Customs Support","show-menu=Customs",,"",0
,"Contact Us ","show-menu=Contact",,"",0
//,"Site Map","Sitemap.htm",,"",1
])
	
	/*addmenu(menu=["Home",
	,,120,1,"",style1,,"left","Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#999999', Direction=135, Strength=5)",0,,,,,,,,,,,
	,"ITP India","Index.htm",,,1
	,"ITP UK","http://www.itpi.co.uk",,,1
	])*/
	
	addmenu(menu=["About",
	,,129,1,"",style1,,"left","Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#999999', Direction=135, Strength=5)",0,,,,,,,,,,,
	,"About NCCoPP","AboutNCCoPP.asp",,,1
	,"Phasing out CFC in India","PhaseoutCFC.asp",,,1
	//,"NCCoPP Activities","#",,,1
	,"Ozone Depletion","ozone.asp",,,1
	])
	
	addmenu(menu=["Project",
	,,129,1,"",style1,,"left","Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#999999', Direction=135, Strength=5)",,,,,,,,,,,,
	,"NCCoPP Training ","NCCOPPTraining.asp",,,1
	,"RSE Training ","RSEtraining.asp",,,1
	,"MAC Training ","MACTraining.asp",,"",1
	,"OTC Training ","OTCtraining.asp",,"",1
	,"Retrofit Training ","retrofit.asp",,"",1
	,"Railways","Railways.asp",,"",1
	,"Training of Trainers","TOTtraining.asp",,"",1
	,"Training Handouts","traininghandouts.asp",,"#",1
	])
	
	addmenu(menu=["Events",
	,,129,1,"",style1,,"left","Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#999999', Direction=135, Strength=5)",,,,,,,,,,,,
	,"Objective","objective.asp",,"",1
	,"Dealers Workshops ","DealersWorkshop.asp",,,1
	,"ESS Workshops ","ESSWorkshop.asp",,"",1
	,"Press Meetings ","PressMeeting.asp",,"",1
	//,"Other Events ","OthersEvents.asp",,"",1
	,"Poster & Flyers ","Posters.asp",,"",1
	,"Video ","video.asp",,"",1
	//,"Ess Workdshops ","#",,"",1
	,"Newsletters","newsletter.asp",,"",1
	])
	
	addmenu(menu=["Resources",
	,,129,1,"",style1,,"left","Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#999999', Direction=135, Strength=5)",,,,,,,,,,,,
	//,"NewsLetter ","newsletter.asp",,,1
	//,"Training Handouts ","",,"",1
	//,"Poster & Flyers ","#",,"",1
	//,"Video ","#",,"",1
	//,"Ess Workdshops ","#",,"",1
	//,"Relevant Links ","#",,"",1
	,"RSEs ","EquipmentSupport.asp",,"",1
	,"Training Institutes ","TrainingInstitutes.asp",,"",1
	,"Principal Distributor","PrincipalDistributor.asp",,"",1
	
	])
	
	addmenu(menu=["Customs",
	,,129,1,"",style1,,"left","Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#999999', Direction=135, Strength=5)",,,,,,,,,,,,
	,"Introduction","",,"",1
	,"Training","CustomsTraining.asp",,"",1
	])
	
	addmenu(menu=["Contact",
	,,129,1,"",style1,,"left","Fade(duration=0.2);Alpha(style=0,opacity=88);Shadow(color='#999999', Direction=135, Strength=5)",,,,,,,,,,,,
	//,"Contact ","ContactUS.asp","ContactUS.asp",,1
	,"Training Contacts ","Contactus.asp",,,1
	,"Information Contacts ","InformationContact.asp",,,1
	,"Consultants ","Consultants.asp",,,1
	,"Feedback ","Feedback1.asp",,"",1
	])