/*** 
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
coolMenu1=new makeCM("coolMenu1") //Making the menu object. Argument: menuname
coolMenu1.frames = 0
//Menu properties   
coolMenu1.pxBetween=0
//coolMenu1.onresize="cmpage.x2 < 760?coolMenu1.fromLeft=105:coolMenu1.fromLeft=((cmpage.x2 - 760)/2)+105"
if(bw.ie) {
// For Internet Explorer
coolMenu1.onresize="cmpage.x2 < 760?coolMenu1.fromLeft=8:coolMenu1.fromLeft=((cmpage.x2 - 760)/2)+8"
if (cmpage.x2 < 760) {
coolMenu1.fromLeft=8
}
else {
coolMenu1.fromLeft=((cmpage.x2 - 760)/2)+8
}
}
else {
// For Netscape browsers
coolMenu1.onresize="cmpage.x2 < 760?coolMenu1.fromLeft=8:coolMenu1.fromLeft=((cmpage.x2 - 760)/2)+8"
if (cmpage.x2 < 760) {
coolMenu1.fromLeft=8
}
else {
coolMenu1.fromLeft=((cmpage.x2 - 760)/2)+8
}
}
//coolMenu1.fromLeft=(cmpage.x2 - 760)/2 + 105
//coolMenu1.onresize="(cmpage.x2 - 760)/2 + 105"
coolMenu1.fromTop=195
coolMenu1.rows=1
coolMenu1.menuPlacement=0
                                                             
coolMenu1.offlineRoot="" 
coolMenu1.onlineRoot="" 
coolMenu1.resizeCheck=1 
coolMenu1.wait=1000 
coolMenu1.fillImg="/images/standard/clear.gif"
coolMenu1.zIndex=0

//Background bar properties
coolMenu1.useBar=0
coolMenu1.barWidth="100%"
coolMenu1.barHeight="menu" 
coolMenu1.barClass="clBar"
coolMenu1.barX=0 
coolMenu1.barY=0
coolMenu1.barBorderX=0
coolMenu1.barBorderY=0
coolMenu1.barBorderClass=""

//Level properties - ALL properties have to be spesified in level 0
coolMenu1.level[0]=new cm_makeLevel() //Add this for each new level
coolMenu1.level[0].width=110
coolMenu1.level[0].height=18
coolMenu1.level[0].regClass="coolMenu1Level0"
coolMenu1.level[0].overClass="coolMenu1Level0over"
coolMenu1.level[0].borderX=0
coolMenu1.level[0].borderY=0
coolMenu1.level[0].borderClass="coolMenu1Level0border"
coolMenu1.level[0].offsetX=-1
coolMenu1.level[0].offsetY=3
coolMenu1.level[0].rows=0
coolMenu1.level[0].arrow=0
coolMenu1.level[0].arrowWidth=0
coolMenu1.level[0].arrowHeight=0
coolMenu1.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
coolMenu1.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
//coolMenu1.level[1].width=coolMenu1.level[0].width-2
coolMenu1.level[1].width=140
coolMenu1.level[1].height=18
coolMenu1.level[1].regClass="coolMenu1Level1"
coolMenu1.level[1].overClass="coolMenu1Level1over"
coolMenu1.level[1].borderX=1
coolMenu1.level[1].borderY=1
coolMenu1.level[1].align="bottom" 
coolMenu1.level[1].offsetX=136
coolMenu1.level[1].offsetY=-9
coolMenu1.level[1].borderClass="coolMenu1Level1border"

/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/


