// JavaScript Document
/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=10
oCMenu.fromTop=127

oCMenu.rows=1 
oCMenu.menuPlacement="center"

oCMenu.offlineRoot="http://www.stpconstruction.co.uk/" 
oCMenu.onlineRoot="http://www.stpconstruction.co.uk/"  

oCMenu.resizeCheck=1 
oCMenu.wait=600 
oCMenu.fillImg="images/transparent.gif"
oCMenu.zIndex=100

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth="100%"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX="0"
oCMenu.barY="menu"
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be specified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.3)" 
oCMenu.level[0].width=100
oCMenu.level[0].height=20
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0 
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass=0
oCMenu.level[0].offsetX=8 
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].align="bottom" 
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0


//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=70
oCMenu.level[1].height=20
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].style=""
oCMenu.level[1].align="left" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].borderX=0 
oCMenu.level[1].borderY=2
oCMenu.level[1].rows=0
oCMenu.level[1].align="bottom" 

//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=oCMenu.level[0].width-2
oCMenu.level[2].height=20
oCMenu.level[2].regClass="clLevel1"
oCMenu.level[2].overClass="clLevel1over"
oCMenu.level[2].style=""
oCMenu.level[2].align="right" 
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].borderClass="clLevel1border"
oCMenu.level[2].borderX=1 
oCMenu.level[2].borderY=1
oCMenu.level[2].rows=0
oCMenu.level[2].align="bottom" 

//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[3]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[3].width=oCMenu.level[0].width-2
oCMenu.level[3].height=15
oCMenu.level[3].regClass="clLevel3"
oCMenu.level[3].overClass="clLevel3over"
oCMenu.level[3].style=""
oCMenu.level[3].align="left" 
oCMenu.level[3].offsetX=0
oCMenu.level[3].offsetY=0
oCMenu.level[3].borderClass="clLevel3border"
oCMenu.level[3].borderX=1 
oCMenu.level[3].borderY=2
oCMenu.level[3].rows=0
oCMenu.level[3].align="bottom" 



/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/


oCMenu.makeMenu('top20','','HOME','index.asp','',70,0,'','','clLevel0',"clLevel0over",'')
	
oCMenu.makeMenu('top30','','ABOUT STP','about/about.asp','',100,0)	
	

	
oCMenu.makeMenu('top40','','PROJECTS','',90,0)
		oCMenu.makeMenu('sub4010','top40','Industrial','projects/industrial.asp','',110,0)
		oCMenu.makeMenu('sub4020','top40','Commercial','projects/commercial.asp','',110,0)
		oCMenu.makeMenu('sub4030','top40','Residential','projects/residential.asp','',110,0)
		oCMenu.makeMenu('sub4040','top40','Offices','projects/offices.asp','',110,0)
		oCMenu.makeMenu('sub4050','top40','Refurbishment','projects/refurbishment.asp','',110,0)		
		oCMenu.makeMenu('sub4060','top40','Retail','projects/retail.asp','',110,0)		
		oCMenu.makeMenu('sub4070','top40','Fit-out','projects/fit-out.asp','',110,0)
		oCMenu.makeMenu('sub4080','top40','All Projects','projects/all.asp','',110,0)
		
oCMenu.makeMenu('top50','','CLIENTS','clients/clients.asp','',80,0)
	
oCMenu.makeMenu('top60','','CONTACT','contact/contact.asp','',85,0,'','','clLevel2',"clLevel2over",'')

oCMenu.makeMenu('top70','','NEWS','news/news.asp','',68,0)	
	
oCMenu.makeMenu('top80','','&nbsp;ADMIN','login.asp','',60,'','','','clLevel3',"clLevel3over",'')
	
	
	

//Leave this line - it constructs the menu
oCMenu.construct()		

