/*** 
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

//monitor resolution size
//default if following doesn't work...
startLeft = ((screen.width - 730)/2) + 169;//size of graphic to left of menu


//browser window size
if (parseInt(navigator.appVersion)>3) {
 if (navigator.appName=="Netscape") {
  winW = window.innerWidth;
  winH = window.innerHeight;
  startLeft = ((winW - 730)/2) + 38;//size of graphic to left of menu
  startTop = ((winH - 586)/2) + 98;
}
 if (navigator.appName.indexOf("Microsoft")!=-1) {
  winW = document.body.offsetWidth;
  winH = document.body.offsetHeight;
  startLeft = ((winW - 730)/2) + 30;//size of graphic to left of menu minus amount that IE pushes menu forward.
  startTop = ((winH - 586)/2) + 98;
 }
}



//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=startLeft
oCMenu.fromTop=startTop
oCMenu.rows=1
oCMenu.menuPlacement=0


// Filepaths. A reference for the drop menu to find the navigation links, images and style sheets
// For the offlineRoot, enter the filepath to the index.html page. (The following is a sample) This is easiest to get by opening index.html into a browser and copying the URL at the top of the browser.
oCMenu.offlineRoot="file:///F:/Inetpub/echelonaustralia/"
// The onlineRoot is currrently set to be the root directory of the website (for example www.echelonaustralia.com.au). If the website is going into a sub directory you will need to amend this path
oCMenu.onlineRoot="http://www.echelonaustralia.com.au/"


oCMenu.resizeCheck=1
oCMenu.onResize=1
oCMenu.wait=300
oCMenu.fillImg=""
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="menu"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass="bar-border"


//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=166
oCMenu.level[0].height=19
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass=0
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass=0
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=3
oCMenu.level[0].rows=0
oCMenu.level[0].align="bottom"

 


//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=166
oCMenu.level[1].height=18
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].borderX=0 
oCMenu.level[1].borderY=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].align="right"


