//Fading dropdown menu - (navmenu.js)
/********************************************************************************
Variables to set.
Remember that to set fontsize and fonttype you set that in the stylesheet
above!
********************************************************************************/

//Making a menu object
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:4px; font-family:verdana, arial, helvetica; font-size:12px; font-weight:bold' //The style for the main menus
oMenu.clSub='padding:4px; font-family:verdana, arial, helvetica; font-size:10px' //The style for the submenus
oMenu.clSubSub='padding:4px; font-family:verdana, arial, helvetica; font-size:10px' //The style for the subsubmenus
oMenu.clAMain='text-decoration:none; color:#003366' //The style for the main links
oMenu.clASub='text-decoration:none; color:#003366' //The style for the sub links
oMenu.clASubSub='text-decoration:none; color:#003366' //The style for the subsub 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=90 //The top placement of the backgroundbar  in pixel or %
oMenu.backgroundbarsize="100%" //The size of the bar in pixel or %
oMenu.backgroundbarcolor="9ED5FF" //The backgroundcolor of the bar

oMenu.mainheight=25 //The height of the main menuitems in pixel or %
oMenu.mainwidth=80 //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=80//oMenu.mainwidth // ** NEW ** The width of the submenus
oMenu.subheight=20 //The height if the subitems in pixel or % 

oMenu.subsubwidth=oMenu.mainwidth // ** NEW ** The width of the subsubmenus in pixel or % 
oMenu.subsubheight=oMenu.subheight //** NEW ** The height if the subsubitems in pixel or % 

//Writing out the style for the menu (leave this line!)
oMenu.makeStyle()

oMenu.subplacement=20 //** NEW ** Relative to the main item
oMenu.subsubXplacement=oMenu.subwidth/1 //** NEW ** The X placement of the subsubmenus, relative to the sub item
oMenu.subsubYplacement=5 //** NEW ** The Y placement of the subsubmenus, relative to the sub item

oMenu.mainbgcoloroff='#9ED5FF' //The backgroundcolor of the main menuitems
oMenu.mainbgcoloron='#6699CC' //The backgroundcolor on mouseover of the main menuitems
oMenu.subbgcoloroff='#6699CC' //The backgroundcolor of the sub menuitems
oMenu.subbgcoloron='#9ED5FF' //The backgroundcolor on mouseover of the sub menuitems
oMenu.subsubbgcoloroff='#6699CC' //The backgroundcolor of the subsub menuitems
oMenu.subsubbgcoloron='#6699CC' //The backgroundcolor on mouseover of the subsub menuitems
oMenu.stayoncolor=1 //Do you want the menus to stay on the mouseovered color when clicked?

oMenu.menuspeed=4 //The speed of the clipping in px
oMenu.menusubspeed=4 //The speed of the submenus clipping in px

oMenu.menurows=0//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="click" //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(10,200,300,400,500)

//Example right beside eachother (only adding the pxbetween variable)
oMenu.menuplacement=new Array('5','38','71','104','137','170')

//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=5 //in pixel or %

//This is how much from the top the menu should be.
oMenu.fromtop=10//in pixel or %

/********************************************************************************
Construct your menus below
********************************************************************************/

//MAIN 0
//Main items:
// makeMain(MAIN_NUM,'TEXT','LINK','FRAME_TARGET') (set link to 0 if you want submenus of this menu item)
oMenu.makeMain(0,'Home','info.html','info')

//MAIN 1
//Main items:
// makeMain(MAIN_NUM,'TEXT','LINK','FRAME_TARGET') (set link to 0 if you want submenus of this menu item)
oMenu.makeMain(1,'News',0)
	//Sub items:
	oMenu.makeSub(1,0,'Overview','newsmenu/news.html',9,'info')
  	oMenu.makeSub(1,1,'Barcom ave','newsmenu/darlinghurst/darlinghurst.html',9,'info')
	oMenu.makeSub(1,2,'Homestead','newsmenu/homestead/homestead.html',9,'info')
	oMenu.makeSub(1,3,'M5 GPS','newsmenu/staticgps/staticgps.html',9,'info')
	oMenu.makeSub(1,4,'M5 tunnel','newsmenu/m5tunnel/m5tunnel.html',9,'info')
	oMenu.makeSub(1,5,'Transgrid','newsmenu/transgrid/transgrid.html',9,'info')
	oMenu.makeSub(1,6,'Windsor Rd','newsmenu/windsor/windsor.html',9,'info')
	oMenu.makeSub(1,7,'Yamba','newsmenu/yamba/yamba.html',9,'info')
	oMenu.makeSub(1,8,'Greystanes','newsmenu/Greystanes/greystenes.html',9,'info')

	
//MAIN 1
//Main items:
// makeMain(MAIN_NUM,'TEXT','LINK','FRAME_TARGET') (set link to 0 if you want submenus of this menu item)
oMenu.makeMain(2,'Projects',0)
	//Sub items:
	oMenu.makeSub(2,0,'Overview','jobsmenu/previousjobs.html',7,'info')
	oMenu.makeSub(2,1,'2004-5','jobsmenu/previousjobs.html',7,'info')
	oMenu.makeSub(2,2,'2001','jobsmenu/previousjobs.html',7,'info')
	oMenu.makeSub(2,3,'2000','jobsmenu/previousjobs.html#2000',7,'info')
	oMenu.makeSub(2,4,'1999','jobsmenu/previousjobs.html#1999',7,'info')
	oMenu.makeSub(2,5,'1998','jobsmenu/previousjobs.html#1998',7,'info')
	oMenu.makeSub(2,6,'1995-7','jobsmenu/previousjobs.html#1995',7,'info')
	
//MAIN 2
//Main items:
// makeMain(MAIN_NUM,'TEXT','LINK','FRAME_TARGET') (set link to 0 if you want submenus of this menu item)
oMenu.makeMain(3,'Resources',0)
	//Sub items:
	oMenu.makeSub(3,0,'CAD Bureau','techmenu/cadbureau.html',4,'info')
	oMenu.makeSub(3,1,'Instruments','techmenu/instruments.html',4,'info')
	oMenu.makeSub(3,2,'Software','techmenu/software.html',4,'info')
	oMenu.makeSub(3,3,'Staff','techmenu/staff.html',4,'info')	
	
//MAIN 1
//Main items:
// makeMain(MAIN_NUM,'TEXT','LINK','FRAME_TARGET') (set link to 0 if you want submenus of this menu item)
oMenu.makeMain(4,'Services',0)
	//Sub items:
	// makeSub(MAIN_NUM,SUB_NUM,'TEXT','LINK',TOTAL,'FRAME_TARGET') (set link to 0 if you want submenus of this menu item)
	oMenu.makeSub(4,0,'Client d/l','servicesmenu/clientpw.html',5,'info')
	oMenu.makeSub(4,1,'Downloads','downloads/downloads.html',5,'info')
	oMenu.makeSub(4,2,'Cadastral','servicesmenu/cadastral.html',5,'info')
	oMenu.makeSub(4,3,'Engineering','servicesmenu/engineering.html',5,'info')
	oMenu.makeSub(4,4,'Online quote','servicesmenu/onlineform.html',5,'info')
	
//MAIN 5
//Main items:
// makeMain(MAIN_NUM,'TEXT','LINK','FRAME_TARGET') (set link to 0 if you want submenus of this menu item)
oMenu.makeMain(5,'Extras',0)
	//Sub items:
	oMenu.makeSub(5,0,'Contacts','contacts.html',3,'info')
	oMenu.makeSub(5,1,'Links','links/links.html',3,'info')
	oMenu.makeSub(5,2,'References','references.html',3,'info')
        

		//SubSub items:
		// makeSubSub(MAIN_NUM,SUB_NUM,SUBSUB_NUM,'TEXT','LINK',TOTAL,'FRAME_TARGET')		

/********************************************************************************
End menu construction
********************************************************************************/
//When all the menus are written out we initiates the menu
oMenu.construct()



