oM=new makeCM("oM");
oM.pxBetween=30
oM.fromLeft=0 
oM.fromTop=80  
oM.rows=1 
oM.menuPlacement="center"
oM.zIndex=400
                                                             
oM.offlineRoot="" 
oM.onlineRoot="" 
oM.resizeCheck=1 
oM.wait=500 
oM.fillImg="cm_fill.gif"

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

oM.level[0]=new cm_makeLevel(90,25,"clT","clTover",1,1,"clB",0,"bottom",0,0,0,0,0);
oM.level[1]=new cm_makeLevel(120,22,"clS","clSover",1,1,"clB",0,"right",0,0,"menu_arrow.gif",10,10);
oM.level[2]=new cm_makeLevel(110,22,"clS2","clS2over");
oM.level[3]=new cm_makeLevel(140,22);
oM.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)";

oM.makeMenu('m1','','Home','http://www.sgfootball.com/new/index.php');
oM.makeMenu('m2','','News','#');
oM.makeMenu('m3','','Matches','#');
oM.makeMenu('m4','','Forums','http://www.chenlim.com/board/','_blank');
oM.makeMenu('m5','','S-Pools Odds','http://www.singaporepools.com.sg/Sports','_blank');
//oM.makeMenu('m6','','Chatroom','#');
oM.makeMenu('m7','','SGFootball','#');
oM.makeMenu('m8','m2','Latest News','http://www.sgfootball.com/new/index.php#news');
oM.makeMenu('m9','m2','News Archive','http://www.sgfootball.com/new/archive.php');
oM.makeMenu('m10','m3','Fixtures / Results','http://www.sgfootball.com/new/fixtures.php');
oM.makeMenu('m11','m3','Match Previews','#');
oM.makeMenu('m12','m3','Match Reports','#');
oM.makeMenu('m13','m3','LIVE Results','http://www.sgfootball.com/new/chatroom.php');
oM.makeMenu('m14','m3','Full League Table','http://www.sgfootball.com/new/table.php');
oM.makeMenu('m15','m4','Singapore Soccer','http://www.chenlim.com/board/index.php?board=1.0','_blank',150,0);
oM.makeMenu('m16','m4','SCORE!','http://www.chenlim.com/board/index.php?board=7.0','_blank',150,0);
oM.makeMenu('m17','m4','Comments / Suggestions','http://www.chenlim.com/board/index.php?board=3.0','_blank',150,0);
oM.makeMenu('m18','m7','About Us','http://www.sgfootball.com/new/about.php');
oM.makeMenu('m19','m7','Advertise','http://www.sgfootball.com/new/advertise.php');
oM.makeMenu('m20','m7','Site Sponsors','http://www.sgfootball.com/new/sponsors.php');
oM.makeMenu('m21','m7','Privacy Policy','http://www.sgfootball.com/new/privacy.php');
oM.makeMenu('m22','m7','History','http://www.sgfootball.com/new/history.php');
oM.makeMenu('m23','m7','Newsletter','#');
oM.makeMenu('m24','m7','Contact Us','http://www.sgfootball.com/new/contacts.php');
//oM.makeMenu('m25','m5','Opening Odds','http://203.120.112.195/score_openodds.htm','_blank');
//oM.makeMenu('m26','m5','Current Odds','http://203.120.112.195/sb_currodds.htm','_blank');

oM.construct()

//Extra code to find position:
function findPos(num){
  //alert(num)
  if(bw.ns4){   //Netscape 4
    x = document.layers["layerMenu"+num].pageX
    y = document.layers["layerMenu"+num].pageY
  }else{ //other browsers
    x=0; y=0; var el,temp
    el = bw.ie4?document.all["divMenu"+num]:document.getElementById("divMenu"+num);
    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]
}
function placeElements(){
  //Changing the position of ALL top items:
  pos = findPos(0)
  oM.m["m1"].b.moveIt(pos[0],pos[1])
  pos = findPos(1)
  oM.m["m2"].b.moveIt(pos[0],pos[1])
  pos = findPos(2)
  oM.m["m3"].b.moveIt(pos[0],pos[1])
  pos = findPos(3)
  oM.m["m4"].b.moveIt(pos[0],pos[1])
  pos = findPos(4)
  oM.m["m5"].b.moveIt(pos[0],pos[1])
  pos = findPos(5)
  oM.m["m7"].b.moveIt(pos[0],pos[1])  
  //Setting the fromtop value
  oM.fromTop = pos[1]
}
placeElements()
//Setting it to re place the elements after resize - the resize is not perfect though..
oM.onafterresize="placeElements()"