/*
Please follow the steps provided below to construct your customised Menu_Functions.js.		

		Step 1:	 Define top-level menu items - The best approach is to define all your top-level menu items using AddMenu function before you move on to sub-levels. 

		Usage: AddMenu( Index, Parent_Index, Text, Image_Address, Roll_Image_Address, URL, Frame_Name);

	(i) Increment the Index by 1 starting from 1 for every menu item you add. 
	(ii) Assign the same value to the Parent_Index. 
	(iii) Set the text to be displayed to the user in the Text parameter. This can be set to "" if you decide not to have a text displayed to the user.
	(iv) Assign the image path to the Image_Address parameter. This can be set to "" if you decide not to have an image displayed to the user.
	(v) Assign the roll over image path to the Roll_Image_Address. This can be set to "" if you decide not to have an image displayed to the user.
	(vi) Construct a page for every top-level menu item that provides links to it's sub-level pages, if any. Assign this URL to the URL parameter. Note that all parents must have a url defined, and direct this link to a menu page showing all child options, for those that can't access the flyover menu.
	(vii) Assign the target frames' name (or) set it to "" if you want to show the link in a new browser window (or) set it to "_top" to reuse the browser.

	Repeat this steps until you have defined all the top-level menu items.	


	Step 2: Define sub-level menu items using AddMenu function
	
	All the sub-level menu items are defined like their top-level counterparts apart from setting the Parent_Index parameter to it's parents' unique Index value (See below example). Also, see how each level menu items are grouped together.

	Repeat this process until you have defined all the sub-levels.

	Note 1: In the below example the first sub-level starts from 100 and incremented in steps of 1 and the second sub-level starts from 200 and incremented in steps of 1 and so on for each sub-level added to the menu. The advantages by doing this are that it gives as enough scope to add respective top-level menu items in the future. The same principle is applied to the child elements for Parent1-Child1.
	
	Step 3: Call the Build function

	Usage : Build();		
*/

//-------------------EXAMPLE 1----------------------------------
//07may2009 changed all .html links to .php except index.html


//------------LEVEL 1--------------------
//Define all the top-level elements. 
AddMenu("1","1","Homepage","","","index.php","_top");
AddMenu("2","2","Engine upgrades","","","","_top");
AddMenu("3","3","Enhancements","","","","_top");
AddMenu("4","4","E30 M3 support","","","e30_m3_support.php","_top");
AddMenu("5","5","Modifications","","","","_top");
AddMenu("6","6","ForSale","","","","_top");
AddMenu("7","7","Links","","","links.php","_top");
AddMenu("8","8","NewsAboutUs","","","","_top");
AddMenu("9","9","VideoClips","","","downloads.php","_top");
AddMenu("10","10","AboutUs","","","","_top");
//------------END OF LEVEL 1--------------------

//------------LEVEL 2--------------------
//Define the child elements for Parent1 - homepage
//AddMenu("100","1","Calendar","","","/wa/business/Calendarhome.htm","_top");

//Define the child elements for Parent2 - Engine upgrades
AddMenu("200","2","M50 into E30 conversions","","","m50_e30_conversions.php","_top");
AddMenu("201","2","S50 engine conversions","","","s50_conversions.php","_top");
AddMenu("202","2","S38 engine conversions","","","s38_conversions.php","_top");
AddMenu("203","2","M60 V8 engine conversions","","","m60_conversions.php","_top");

//Define the child elements for Parent3 - Enhancements
AddMenu("300","3","Current projects","","","conversions.php","_top");
AddMenu("301","3","Recent projects","","","conversions1.php","_top");
AddMenu("302","3","SMG to manual conversions","","","smg_to_manual.php","_top");
AddMenu("303","3","Archive","","","conversions2.php","_top");

//Define the child elements for Parent4 - E30 M3 support
//AddMenu("400","4","Calendar","","","/wa/business/Calendarhome.htm","_top");

//Define the child elements for Parent5 - Modifications 
AddMenu("500","5","Cross drilled Rotors","","","perf_mod01.php","_top");
AddMenu("501","5","Head porting","","","perf_mod05.php","_top");
AddMenu("502","5","Custom exhausts/extractors","","","perf_mod03.php","_top");
AddMenu("503","5","Differentials ratios/LSD","","","perf_mod02.php","_top");

//Define the child elements for Parent6 - ForSale
AddMenu("600","6","Alloy wheels and tyres","","","fs_display.php?category=wheels","_top");
AddMenu("601","6","Engines","","","fs_display.php?category=engines","_top");
AddMenu("602","6","ECU's/chips","","","fs_display.php?category=ecu_chips","_top");
AddMenu("603","6","Gearboxes","","","fs_display.php?category=gearboxes","_top");
AddMenu("604","6","Differentials-LSD","","","fs_display.php?category=differentials","_top");
AddMenu("605","6","Spoilers/bodykits","","","fs_display.php?category=spoilers","_top");
AddMenu("606","6","Steering wheels","","","fs_display.php?category=steering_wheels","_top");
AddMenu("607","6","Performance parts","","","fs_display.php?category=performance_parts","_top");
AddMenu("608","6","Other parts","","","fs_display.php?category=miscellaneous","_top");
AddMenu("609","6","Consumables","","","fs_display.php?category=consumables","_top");
AddMenu("610","6","Market Place - your ads","","","fs_display.php?category=market_place","_top");

//Define the child elements for Parent7 - Links
//AddMenu("700","7","Calendar","","","/wa/business/Calendarhome.htm","_top");

//Define the child elements for Parent8 - news aoput us
AddMenu("800","8","Whats new","","","news.php","_top");
AddMenu("801","8","Motorsport","","","msport.php","_top");

//Define the child elements for Parent9 - links
//AddMenu("900","9","Calendar","","","/wa/business/Calendarhome.htm","_top");

//Define the child elements for Parent10 - about us
AddMenu("1000","10","About us","","","about.php","_top");
AddMenu("1001","10","Email us","","","mailto:info@bmauto.com.au","_top");
//------------END OF LEVEL 2--------------------

//------------LEVEL 3--------------------
//Define the child elements for Parent1-Child2
//AddMenu("120","100","Jan-June 2006","","","/wa/business/calendar.htm","_top");
//AddMenu("121","100","July-Dec 2005","","","/wa/business/calendar_Jul.htm","_top");
//AddMenu("122","100","Outreach activities calender- DVA Internet","","","http://www.dva.gov.au/wa/activities/activities_wa.htm","_top");

//Define the child elements for Parent2-Child2
//AddMenu("220","200","First Name","","","/wa/contacts/Phone List F.doc","_top");
//AddMenu("221","200","Last Name","","","/wa/contacts/Phone List A.doc","_top");
//AddMenu("222","200","Positional","","","/wa/contacts/Phone List P.doc","_top");

//Define the child elements for Parent3-Child3
//------------END OF LEVEL 3--------------------

//------------LEVEL 4--------------------
//Define the child elements for Parent5-Child1-Child1 
//AddMenu("548","531","Book a Room","","","/wa/help/book_room.htm","_top");
//AddMenu("549","531","Book a Car","","","/wa/help/book_car.htm","_top");
//AddMenu("550","531","Book Equipment","","","/wa/help/book_equip.htm","_top");

//Define the child elements for Parent5-Child1-Child2 
//AddMenu("551","532","Security - Change a password","","","/wa/help/change_pass.htm","_top");
//AddMenu("552","532","Policy - Use of DVA Electronic Facilities","","","/home/internet/int_policy/policy.htm","_top");
//AddMenu("553","532","How to use the Intranet","","","/wa/help/how_to_use_intranet.htm","_top");
//AddMenu("554","532","IT Transition","","","/wa/help/IT transition.htm","_top");
//AddMenu("555","532","How to use TRIM","","","http://intranet/dva/operational/records/idms/index.htm","_top");
//------------END OF LEVEL 4--------------------

//AddMenu( Index, Parent_Index, Text, Image_Address, Roll_Image_Address, URL, Frame_Name);

//Call the build function to construct the menus
Build();

//-------------------END OF EXAMPLE 1----------------------------------