oMenu=new menuObj('oMenu') //Place a name for the menu in there. Must be uniqe for each menu

//Setting menu object variables

//Style variables NOTE: The stylesheet have been removed. Use this instead! (some styles are there by default, like position:absolute ++)
//oMenu.clMain="padding:0px; font-family:Verdana; font-size:11px; font-weight:bold; text-align:center; color:#fdf5e6" //The style for the main menus
//oMenu.clMain="padding:0px; font-family:Verdana; font-size:11px; font-weight:bold; text-align:center; color:#fdf5e6" //The style for the main menus
oMenu.clMain="padding:0px; font-family:Verdana; font-size:11px; font-weight:bold; text-align:center; color:#fdf5e6" //The style for the main menus
oMenu.clSub="padding:0px; font-family:Verdana; font-size:11px; " //The style for the submenus
oMenu.clSubSub='padding:0px; font-family:verdana; font-size:10px' //The style for the subsubmenus
oMenu.clAMain='text-decoration:none; color:#fdf5e6' //The style for the main links
oMenu.clASub='text-decoration:none; color:#fdf5e6' //The style for the sub links

//Background bar properties
oMenu.backgroundbar=0 //Set to 0 if no backgroundbar
oMenu.backgroundbarfromleft=100 //The left placement of the backgroundbar in pixel or %
oMenu.backgroundbarfromtop=125 //The top placement of the backgroundbar  in pixel or %
oMenu.backgroundbarsize="80" //The size of the bar in pixel or %
oMenu.backgroundbarcolor="#fdf5e6" //The backgroundcolor of the bar

oMenu.mainheight=17 //The height of the main menuitems in pixel or %
oMenu.mainwidth=100 //The width of the main menuitems  in pixel or %

/*These are new variables. In this example they are set like the previous version*/
oMenu.subwidth=150 // ** NEW ** The width of the submenus
oMenu.subheight=18 //The height if the subitems in pixel or %

//Writing out the style for the menu (leave this line!)
oMenu.makeStyle()

oMenu.subplacement=oMenu.mainheight //** NEW ** Relative to the main item
oMenu.subsubXplacement=oMenu.subwidth/2 //** NEW ** The X placement of the subsubmenus, relative to the sub item
oMenu.subsubYplacement=7 //** NEW ** The Y placement of the subsubmenus, relative to the sub item

oMenu.mainbgcoloroff='#142E70' //The backgroundcolor of the main menuitems
oMenu.mainbgcoloron='#526DB1' //The backgroundcolor on mouseover of the main menuitems
oMenu.subbgcoloroff='#526DB1' //The backgroundcolor of the sub menuitems
oMenu.subbgcoloron='#142E70' //The backgroundcolor on mouseover of the sub menuitems
oMenu.stayoncolor=1 //Do you want the menus to stay on the mouseovered color when clicked?

oMenu.menuspeed=10 //The speed of the clipping in px
oMenu.menusubspeed=10 //The speed of the submenus clipping in px

oMenu.menurows=1 //Set to 0 if you want rows and to 1 if you want columns

oMenu.menueventon="mouse" //Set this to "mouse" if you want the menus to appear onmouseover, set it to "click" if you want it to appear onclick
oMenu.menueventoff="mouse" //Set this to "mouse" if you them to disappear onmouseout, if not set it to "click"

//Placement of the menuitems

//Example in %:
//oMenu.menuplacement=new Array("20%","40%","60%","50%","65%") //Remember to make the arrays contain as many values as you have main menuitems

//Example in px: (remember to use the ' ' around the numbers)
//oMenu.menuplacement=new Array(120,240,360,480,600)

//Example right beside eachother (only adding the pxbetween variable)
oMenu.menuplacement=0

//If you use the "right beside eachother" you cant how many pixel there should be between each here
oMenu.pxbetween=0 //in pixel or %

//And you can set where it should start from the left here
oMenu.fromleft=114 //in pixel or %

//This is how much from the top the menu should be.
oMenu.fromtop=111 //in pixel or %

/********************************************************************************
Construct your menus below
********************************************************************************/
//MAIN 0

//Main items:
// makeMain(MAIN_NUM,'TEXT','LINK') (set link to 0 if you want submenus of this menu item)
oMenu.makeMain(0,'Home','index.html')
	//Sub items:
	// makeSub(MAIN_NUM,SUB_NUM,'TEXT','LINK',TOTAL) (set link to 0 if you want submenus of this menu item)
	//oMenu.makeSub(0,0,'News',0,0)
oMenu.construct()

//MAIN 1

//Main items:
// makeMain(MAIN_NUM,'TEXT','LINK') (set link to 0 if you want submenus of this menu item)
oMenu.makeMain(1,'About Us','aboutus.html')
	//Sub items:
	// makeSub(MAIN_NUM,SUB_NUM,'TEXT','LINK',TOTAL) (set link to 0 if you want submenus of this menu item)
	//oMenu.makeSub(1,0,'News',0,0)
oMenu.construct()

//MAIN 2

//Main items:
// makeMain(MAIN_NUM,'TEXT','LINK') (set link to 0 if you want submenus of this menu item)
oMenu.makeMain(2,'Products',0)
	//Sub items:
	// makeSub(MAIN_NUM,SUB_NUM,'TEXT','LINK',TOTAL) (set link to 0 if you want submenus of this menu item)
	oMenu.makeSub(2,0,'Ferrite core','ferrite_core.html',11)
	oMenu.makeSub(2,1,'Bobbin','bobbin.html',11)
	oMenu.makeSub(2,2,'Advertise','megazines.html',11)
	oMenu.makeSub(2,3,'Hakko Tools','hakko_tools.html',11)
	oMenu.makeSub(2,4,'Poly. self Adhesive Tape','self_adhesive_tape.html',11)
	oMenu.makeSub(2,5,'CT American Tools','ct_american.html',11)
	oMenu.makeSub(2,6,'Solder wire paste/Flux','solder_wire.html',11)
	oMenu.makeSub(2,7,'Heat sink','heat_sink.html',11)
	oMenu.makeSub(2,8,'Plastic/ABS Body','plastic_abs_body.html',11)
	oMenu.makeSub(2,9,'Terminal Blocks','terminal_blocks.html',11)
	oMenu.makeSub(2,10,'Ferrite Coils','ferrite_coils.html',11)
	
//MAIN 3

//Main items:
// makeMain(MAIN_NUM,'TEXT','LINK') (set link to 0 if you want submenus of this menu item)
oMenu.makeMain(3,'Kits n Spares',0)
	//Sub items:
	// makeSub(MAIN_NUM,SUB_NUM,'TEXT','LINK',TOTAL) (set link to 0 if you want submenus of this menu item)
	oMenu.makeSub(3,0,'Printed Circuit Boards','../printed_circuits_board.html',13)
	oMenu.makeSub(3,1,'Electronic Project Kits','../electronic_project_kits.html',13)
	oMenu.makeSub(3,2,'Electronics Books/CDs','../electronics_books_cds.html',13)
	oMenu.makeSub(3,3,'Electronics 4 U Bk. Issue','../electronics_4_u_back_issue.html',13)
	oMenu.makeSub(3,4,'PCB With Components','../pcb_with_component.html',13)
	oMenu.makeSub(3,5,'PIC Micro controller','../pic_micro_controller.html',13)
	oMenu.makeSub(3,6,'Micro controller','../micro_controller.html',13)
	oMenu.makeSub(3,7,'PC Based Micro controller','../pc_based_micro_controller.html',13)
	oMenu.makeSub(3,8,'Hobby Kits','../hobby_kits.html',13)
	oMenu.makeSub(3,9,'Robitic Kits','../robotic_kits.html',13)
	oMenu.makeSub(3,10,'Toolkits','../tool_kits.html',13)
	oMenu.makeSub(3,11,'Megazines', 'megazines.html',13)
	oMenu.makeSub(3,12,'RF Module','../rfmodule.html',13)

//oMenu.construct()
	
//MAIN 4

//Main items:
// makeMain(MAIN_NUM,'TEXT','LINK') (set link to 0 if you want submenus of this menu item)
oMenu.makeMain(4,'Sitemap','sitemap.html')
	//Sub items:
	// makeSub(MAIN_NUM,SUB_NUM,'TEXT','LINK',TOTAL) (set link to 0 if you want submenus of this menu item)
	//oMenu.makeSub(4,0,'News',0,0)
oMenu.construct()
//MAIN 5

//Main items:
// makeMain(MAIN_NUM,'TEXT','LINK') (set link to 0 if you want submenus of this menu item)
oMenu.makeMain(5,'Contact',0)
	//Sub items:
	// makeSub(MAIN_NUM,SUB_NUM,'TEXT','LINK',TOTAL) (set link to 0 if you want submenus of this menu item)
	oMenu.makeSub(5,0,'Contact Us','contactus.html',3)
	oMenu.makeSub(5,1,'Distributors & Resellers','resellers.html',3)
	oMenu.makeSub(5,2,'Feed Back','feedback.html',3)
	oMenu.construct()
