//Menu object creation
topMenu=new makeCM("topMenu")

//Menu properties
topMenu.type=1
topMenu.pxBetween=0
topMenu.fromLeft=0
topMenu.fromTop=0
topMenu.menuPlacement="center"
topMenu.offlineRoot=""
topMenu.onlineRoot=""
topMenu.wait=2000
topMenu.zIndex=100
topMenu.rows=0
topMenu.resizeCheck=1
topMenu.closeOnClick=1
topMenu.openOnClick=1
topMenu.chkscroll=0
topMenu.useBar=0

//Level0 properties
topMenu.level[0]=new cm_makeLevel()
topMenu.level[0].width="110"
topMenu.level[0].height="16"
topMenu.level[0].regClass="topMenuLevel0"
topMenu.level[0].borderClass="topMenuLevel0Border"
topMenu.level[0].overClass="topMenuLevel0Over"
topMenu.level[0].borderX=0
topMenu.level[0].borderY=0
topMenu.level[0].offsetX=0
topMenu.level[0].offsetY=0
topMenu.level[0].rows=0
topMenu.level[0].arrow=0
topMenu.level[0].arrowWidth=0
topMenu.level[0].arrowHeight=0
topMenu.level[0].align="bottom"

//Level1 properties
topMenu.level[1]=new cm_makeLevel()
topMenu.level[1].width="250"
topMenu.level[1].height="16"
topMenu.level[1].regClass="topMenuLevel1"
topMenu.level[1].borderClass="topMenuLevel1Border"
topMenu.level[1].overClass="topMenuLevel1Over"
topMenu.level[1].borderX=0
topMenu.level[1].borderY=1
topMenu.level[1].offsetX=1
topMenu.level[1].offsetY=-1
topMenu.level[1].rows=0
topMenu.level[1].arrow="/images/menu/arrow_transp2.gif"
topMenu.level[1].arrowWidth=8
topMenu.level[1].arrowHeight=8
topMenu.level[1].align="right"

//Level2 properties
topMenu.level[2]=new cm_makeLevel()
topMenu.level[2].width="175"
topMenu.level[2].height="16"
topMenu.level[2].regClass="topMenuLevel2"
topMenu.level[2].borderClass="topMenuLevel2Border"
topMenu.level[2].overClass="topMenuLevel2Over"
topMenu.level[2].borderX=0
topMenu.level[2].borderY=1
topMenu.level[2].offsetX=0
topMenu.level[2].offsetY=0
topMenu.level[2].rows=0
topMenu.level[2].arrow=0
topMenu.level[2].arrowWidth=0
topMenu.level[2].arrowHeight=0
topMenu.level[2].align=""

topMenu.makeMenu('top_1','','News','','','80','','','','','','','','','','','','','')
topMenu.makeMenu('top_2','','Clubs','','','80','','','','','','','','','','','','','')
topMenu.makeMenu('top_3','','The Tournament','','','150','','','','','','','','','','','','','')
topMenu.makeMenu('top_4','','Standings and results','','','160','','','','','','','','','','','','','')
topMenu.makeMenu('top_5','','Statistics','','','','','','','','','','','','','','','','')
topMenu.makeMenu('top_6','','Organization','','','120','','','','','','','','','','','','','')
topMenu.makeMenu('top_7','','Media Service','','','130','','','','','','','','','','','','','')
topMenu.makeMenu('sub_1_1','top_1','News overview','http://int.royalleague.com/news','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_1_2','top_1','News from clubs Denmark','http://int.royalleague.com/news/newsList.aspx?countryid=1','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_1_3','top_1','News from clubs Norway','http://int.royalleague.com/news/newsList.aspx?countryid=3','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_1_4','top_1','News from clubs Sweden','http://int.royalleague.com/news/newsList.aspx?countryid=4','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_1_5','top_1','News from Royal League','http://int.royalleague.com/news/newsList.aspx?categoryid=2','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_1_6','top_1','Mailinglist','http://int.royalleague.com/mailinglist/','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_2_3','top_2','Clubs overview 2006/2007','http://int.royalleague.com/page.aspx?id=255','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_2_4','top_2','FC K&#248;benhavn','http://dk.royalleague.com/club/club.aspx?id=2','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_2_5','top_2','Br&#248;ndby IF','http://dk.royalleague.com/club/club.aspx?id=3','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_2_6','top_2','Odense Boldklub','http://dk.royalleague.com/club/club.aspx?id=4','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_2_7','top_2','Viborg FF','http://dk.royalleague.com/club/club.aspx?id=31','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_2_11','top_2','Rosenborg BK','http://no.royalleague.com/club/club.aspx?id=14','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_2_12','top_2','SK Brann','http://no.royalleague.com/club/club.aspx?id=13','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_2_13','top_2','V&#229;lerenga','http://no.royalleague.com/club/club.aspx?id=15','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_2_14','top_2','Lillestr&#248;m','http://dk.royalleague.com/club/club.aspx?id=24','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_2_21','top_2','Elfsborg','http://dk.royalleague.com/club/club.aspx?id=33','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_2_22','top_2','AIK','http://dk.royalleague.com/club/club.aspx?id=32','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_2_23','top_2','Hammarby','http://se.royalleague.com/club/club.aspx?id=28','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_2_26','top_2','Helsingborgs IF','http://se.royalleague.com/club/club.aspx?id=27','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_3_1','top_3','About Royal League','http://int.royalleague.com/page.aspx?id=94','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_3_2','top_3','Groups','http://int.royalleague.com/page.aspx?id=95','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_3_3','top_3','Match schedule','http://int.royalleague.com/page.aspx?id=96','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_3_4','top_3','Prizes and payments','http://int.royalleague.com/page.aspx?id=97','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_3_5','top_3','Matches on tv','http://int.royalleague.com/page.aspx?id=98','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_3_7','top_3','Match magazines','http://int.royalleague.com/page.aspx?id=100','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_3_8','top_3','Referees','','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_3_9','top_3','The first Royal League season','','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_3_12','top_3','Photos from the final 2006','http://int.royalleague.com/page.aspx?id=253','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_4_1','top_4','Group 1','http://int.royalleague.com/page.aspx?id=77','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_4_2','top_4','Group 2','http://int.royalleague.com/page.aspx?id=78','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_4_3','top_4','Group 3','http://int.royalleague.com/page.aspx?id=79','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_4_4','top_4','Quarterfinals','http://int.royalleague.com/page.aspx?id=80','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_4_5','top_4','Semifinals','http://dk.royalleague.com/page.aspx?id=222','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_4_6','top_4','Final','http://int.royalleague.com/page.aspx?id=81','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_5_1','top_5','Scoringleaders','http://int.royalleague.com/page.aspx?id=74','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_5_2','top_5','Assistleaders','http://int.royalleague.com/page.aspx?id=75','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_5_3','top_5','Shots','http://int.royalleague.com/page.aspx?id=76','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_5_4','top_5','Shots on goal','http://int.royalleague.com/page.aspx?id=82','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_5_5','top_5','Offsides','http://int.royalleague.com/page.aspx?id=83','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_5_6','top_5','Yellow cards','http://int.royalleague.com/page.aspx?id=84','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_5_7','top_5','Red cards','http://int.royalleague.com/page.aspx?id=182','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_5_8','top_5','Suspended players','http://int.royalleague.com/page.aspx?id=85','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_5_9','top_5','Fouls committed','http://int.royalleague.com/page.aspx?id=86','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_5_10','top_5','Club statistics','http://int.royalleague.com/page.aspx?id=87','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_5_11','top_5','Playerstatistics','http://int.royalleague.com/page.aspx?id=88','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_5_12','top_5','Attendance statistics','http://int.royalleague.com/page.aspx?id=89','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_5_14','top_5','LiveScores','http://int.royalleague.com/page.aspx?id=91','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_5_15','top_5','Match reports','http://int.royalleague.com/page.aspx?id=92','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_5_16','top_5','Statistic summeries','http://int.royalleague.com/page.aspx?id=93','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_5_17','top_5','Archive ','http://dk.royalleague.com/page.aspx?id=215','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_6_1','top_6','Structure','http://int.royalleague.com/page.aspx?id=115','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_6_2','top_6','The Board','http://int.royalleague.com/page.aspx?id=116','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_6_3','top_6','The Executive Committee','http://dk.royalleague.com/page.aspx?id=213','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_6_4','top_6','The Appeal Committee','http://int.royalleague.com/page.aspx?id=117','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_6_5','top_6','The Tournament Committee','http://int.royalleague.com/page.aspx?id=118','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_6_6','top_6','The Referee &amp;  Ajdudicator Committee','http://int.royalleague.com/page.aspx?id=119','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_6_7','top_6','The Disciplinary Committee','http://int.royalleague.com/page.aspx?id=120','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_6_8','top_6','TV &amp; Marketing Committee','http://int.royalleague.com/page.aspx?id=121','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_6_9','top_6','PR &amp; Info Committee','http://int.royalleague.com/page.aspx?id=122','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_7_1','top_7','Website','http://int.royalleague.com/page.aspx?id=32','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_7_2','top_7','News','http://int.royalleague.com/page.aspx?id=31','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_7_3','top_7','Match reports','http://int.royalleague.com/page.aspx?id=33','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_7_4','top_7','Statistics - media kits','http://int.royalleague.com/page.aspx?id=35','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_7_5','top_7','Media facilities in stadia','http://int.royalleague.com/page.aspx?id=37','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_7_6','top_7','Accreditation','http://int.royalleague.com/page.aspx?id=36','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_7_7','top_7','Guidelines and regulations for accreditated media','http://int.royalleague.com/page.aspx?id=38','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_7_8','top_7','Pre match day press activities','http://int.royalleague.com/page.aspx?id=223','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_7_9','top_7','Technical equipment','http://int.royalleague.com/page.aspx?id=39','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_7_10','top_7','Clubnames and contacts','http://int.royalleague.com/page.aspx?id=40','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_7_11','top_7','Press photo service','http://int.royalleague.com/page.aspx?id=41','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_7_12','top_7','Television and radio rights','http://int.royalleague.com/page.aspx?id=42','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_7_13','top_7','Logo','http://int.royalleague.com/page.aspx?id=43','','','','','','','','','','','','','','','')
topMenu.makeMenu('sub_7_14','top_7','Royal League Magazine','http://int.royalleague.com/page.aspx?id=256','','','','','','','','','','','','','','','')
topMenu.makeMenu('tri_3_9_1','sub_3_9','A sporting success','http://dk.royalleague.com/page.aspx?id=191','','','','','','','','','','','','','','','')
topMenu.makeMenu('tri_3_9_2','sub_3_9','Clubs 2004/2005','http://dk.royalleague.com/page.aspx?id=73','','','','','','','','','','','','','','','')
topMenu.makeMenu('tri_3_9_3','sub_3_9','Photos from the final 2005','http://dk.royalleague.com/page.aspx?id=183','','','','','','','','','','','','','','','')

//Leave this line - it constructs the menu
topMenu.construct()

//Extra code to find position:
function findPos_topMenu(num)
{
  if(bw.ns4)
  { //Netscape 4
    x = document.layers["layer_topMenu_"+num].pageX
    y = document.layers["layer_topMenu_"+num].pageY
  }
  else
  { //other browsers
    x=0;
    y=0;
    var el,temp
    el = bw.ie4?document.all["div_topMenu_"+num]:document.getElementById("div_topMenu_"+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;
      }
    }
    if(bw.ie)
      x+=el.offsetLeft+2;
    else
      x+=el.offsetLeft;
    if(bw.ie)
      y+=el.offsetTop-8;
    else
      y+=el.offsetTop-8;
  }
  return [x,y]
}

function placeElementsIn_topMenu()
{
  //Changing the position of ALL top items:
  pos = findPos_topMenu(1)
  topMenu.m["top_1"].b.moveIt(pos[0],pos[1])
  pos = findPos_topMenu(2)
  topMenu.m["top_2"].b.moveIt(pos[0],pos[1])
  pos = findPos_topMenu(3)
  topMenu.m["top_3"].b.moveIt(pos[0],pos[1])
  pos = findPos_topMenu(4)
  topMenu.m["top_4"].b.moveIt(pos[0],pos[1])
  pos = findPos_topMenu(5)
  topMenu.m["top_5"].b.moveIt(pos[0],pos[1])
  pos = findPos_topMenu(6)
  topMenu.m["top_6"].b.moveIt(pos[0],pos[1])
  pos = findPos_topMenu(7)
  topMenu.m["top_7"].b.moveIt(pos[0],pos[1])

  //Setting the fromtop value
  topMenu.fromTop = pos[1]
}

placeElementsIn_topMenu()

topMenu.onafterresize="topMenu.hideMenu();placeElementsIn_topMenu()"
