/******************************************
Helper functions for menu repositioning onResize
*************************************/
//Extra code to find position:
function findPos(){
  if(bw.ns4){   //Netscape 4
    x = document.layers.divMenu.pageX
    y = document.layers.divMenu.pageY
  }else{ //other browsers
    x=0; y=0; var el,temp
    el = bw.ie4?document.all["divMenu"]:document.getElementById("divMenu");
        if(el.offsetParent){
          temp = el
          while(temp.offsetParent){ //Looping parent elements to get the offset of them as well
            temp=temp.offsetParent;
            x+=temp.offsetLeft
            y+=temp.offsetTop;
          }
        }
        x+=el.offsetLeft
    	y+=el.offsetTop
    }
  
  //Returning the x and y as an array
  return [x,y]
}

pos = findPos()

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname
	
oCMenu.frames = 0
					
//Menu properties
oCMenu.pxBetween=0
oCMenu.fromLeft=pos[0]
oCMenu.fromTop=pos[1]
oCMenu.rows=1
oCMenu.menuPlacement=0
oCMenu.onresize="pos = findPos(); oCMenu.fromLeft=pos[0]; oCMenu.fromTop=pos[1]"

oCMenu.onlineRoot=""
oCMenu.resizeCheck=1
oCMenu.wait=0
oCMenu.zIndex=0
					
//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].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=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].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=0
oCMenu.level[1].borderY=0
oCMenu.level[1].align="right"
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
					
					
/******************************************
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('L1I01','','<img src="./img/nav_01.gif" border=0 alt="" width="126" height="30" align="left" hspace="0" vspace="0">','','_top','126','30','./img/nav_01.gif','./img/nav_01_roll.gif')
	oCMenu.makeMenu('L2I01','L1I01','<img src="./img/subnav_01.gif" border=0 alt="" width="205" height="27" align="left" hspace="0" vspace="0">','secondary.asp?PageID=1','_top','205','27','./img/subnav_01.gif','./img/subnav_01_roll.gif')
	oCMenu.makeMenu('L2I02','L1I01','<img src="./img/subnav_02.gif" border=0 alt="" width="205" height="25" align="left" hspace="0" vspace="0">','secondary.asp?PageID=2','_top','205','25','./img/subnav_02.gif','./img/subnav_02_roll.gif')
	
oCMenu.makeMenu('L1I02','','<img src="./img/nav_02.gif" border=0 alt="" width="182" height="30" align="left" hspace="0" vspace="0">','','_top','182','30','./img/nav_02.gif','./img/nav_02_roll.gif')
	oCMenu.makeMenu('L2I03','L1I02','<img src="./img/subnav_03.gif" border=0 alt="" width="183" height="27" align="left" hspace="0" vspace="0">','secondary.asp?PageID=3','_top','183','27','./img/subnav_03.gif','./img/subnav_03_roll.gif')
	oCMenu.makeMenu('L2I04','L1I02','<img src="./img/subnav_04.gif" border=0 alt="" width="183" height="25" align="left" hspace="0" vspace="0">','bios.asp?PageID=13&team=1','_top','183','25','./img/subnav_04.gif','./img/subnav_04_roll.gif')

oCMenu.makeMenu('L1I03','','<img src="./img/nav_03.gif" border=0 alt="" width="96" height="30" align="left" hspace="0" vspace="0">','','_top','96','30','./img/nav_03.gif','./img/nav_03_roll.gif')
	oCMenu.makeMenu('L2I07','L1I03','<img src="./img/ta_nav_01.gif" border=0 alt="" width="220" height="27" align="left" hspace="0" vspace="0">','secondary.asp?PageID=5','_top','220','27','./img/ta_nav_01.gif','./img/ta_nav_01_roll.gif')
	oCMenu.makeMenu('L2I08','L1I03','<img src="./img/ta_nav_02.gif" border=0 alt="" width="220" height="27" align="left" hspace="0" vspace="0">','secondary.asp?PageID=47','_top','220','27','./img/ta_nav_02.gif','./img/ta_nav_02_roll.gif')
	oCMenu.makeMenu('L2I09','L1I03','<img src="./img/ta_nav_03.gif" border=0 alt="" width="220" height="27" align="left" hspace="0" vspace="0">','secondary.asp?PageID=48','_top','220','27','./img/ta_nav_03.gif','./img/ta_nav_03_roll.gif')
	oCMenu.makeMenu('L2I10','L1I03','<img src="./img/ta_nav_04.gif" border=0 alt="" width="220" height="27" align="left" hspace="0" vspace="0">','secondary.asp?PageID=50','_top','220','27','./img/ta_nav_04.gif','./img/ta_nav_04_roll.gif')

oCMenu.makeMenu('L1I04','','<img src="./img/nav_04.gif" border=0 alt="" width="160" height="30" align="left" hspace="0" vspace="0">','','_top','160','30','./img/nav_04.gif','./img/nav_04_roll.gif')
	oCMenu.makeMenu('L2I05','L1I04','<img src="./img/subnav_05.gif" border=0 alt="" width="161" height="27" align="left" hspace="0" vspace="0">','secondary.asp?PageID=6','_top','161','27','./img/subnav_05.gif','./img/subnav_05_roll.gif')
	oCMenu.makeMenu('L2I06','L1I04','<img src="./img/subnav_06.gif" border=0 alt="" width="161" height="25" align="left" hspace="0" vspace="0">','bios.asp?PageID=12&team=2','_top','161','25','./img/subnav_06.gif','./img/subnav_06_roll.gif')

oCMenu.makeMenu('L1I05','','<img src="./img/nav_05.gif" border=0 alt="" width="96" height="30" align="left" hspace="0" vspace="0">','secondary.asp?PageID=7','_top','96','30','./img/nav_05.gif','./img/nav_05_roll.gif')

oCMenu.makeMenu('L1I06','','<img src="./img/nav_06.gif" border=0 alt="" width="71" height="30" align="left" hspace="0" vspace="0">','login.asp','_top','71','30','./img/nav_06.gif','./img/nav_06_roll.gif')

oCMenu.construct()
