oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties   
oCMenu.pxBetween=0
//Using the cm_page object to place the menu ----
oCMenu.fromLeft=0
oCMenu.fromTop=0
oCMenu.rows=1
oCMenu.menuPlacement=0
                                                             
oCMenu.offlineRoot="/" 
oCMenu.onlineRoot="/" 
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0

//Level properties - ALL properties have to be spesified in level 0
oCMenu.level[0]=new cm_makeLevel(90,9,"clT","clTover",1,1,"clB",0,"bottom",0,2,0,0,0);
oCMenu.level[1]=new cm_makeLevel(103,18,"clS","clSover",2,2,"clSB",0,"right",30,20,"menu_arrow.gif",0,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('top0','','Impressioni','','',79,9,'assets/images/staticmenu/menu_impressioni.gif','assets/images/staticmenu/menu_impressioni.gif');
oCMenu.makeMenu('sub01','top0','&nbsp;Galleria primavera','Galleria_primavera.g188.html');oCMenu.makeMenu('sub02','top0','&nbsp;Galleria estate','Galleria_estate.g186.html');oCMenu.makeMenu('sub03','top0','&nbsp;Galleria autunno','Galleria_autunno.g4.html');oCMenu.makeMenu('sub04','top0','&nbsp;Galleria inverno','Galleria_inverno.g17.html');oCMenu.makeMenu('sub05','top0','&nbsp;Impressioni','Impressioni.s95.html');
oCMenu.makeMenu('top1','','Vetrina','','',54,9,'assets/images/staticmenu/menu_vetrina.gif','assets/images/staticmenu/menu_vetrina.gif');
oCMenu.makeMenu('sub11','top1','&nbsp;Austria','Austria.s12.html');oCMenu.makeMenu('sub12','top1','&nbsp;Vienna','Vienna.s6.html');oCMenu.makeMenu('sub13','top1','&nbsp;Bassa Austria','Bassa_Austria.s15.html');oCMenu.makeMenu('sub14','top1','&nbsp;Alta Austria','Alta_Austria.s11.html');oCMenu.makeMenu('sub15','top1','&nbsp;Salisburgo','Salisburgo.s8.html');oCMenu.makeMenu('sub16','top1','&nbsp;Tirolo','Tirolo.s7.html');oCMenu.makeMenu('sub17','top1','&nbsp;Vorarlberg','Vorarlberg.s10.html');oCMenu.makeMenu('sub18','top1','&nbsp;Carinzia','Carinzia.s16.html');oCMenu.makeMenu('sub19','top1','&nbsp;Stiria','Stiria.s13.html');oCMenu.makeMenu('sub110','top1','&nbsp;Burgenland','Burgenland.s14.html');oCMenu.makeMenu('sub111','top1','&nbsp;Sport','Sport.s19.html');oCMenu.makeMenu('sub112','top1','&nbsp;Informazioni varie','Informazioni_varie.s108.html');oCMenu.makeMenu('sub113','top1','&nbsp;Intrattenimento','Intrattenimento.s134.html');oCMenu.makeMenu('sub114','top1','&nbsp;Cittą Storiche','Citta_Storiche.s193.html');oCMenu.makeMenu('sub115','top1','&nbsp;Terme','Terme.s200.html');oCMenu.makeMenu('sub116','top1','&nbsp;Agriturismo','Agriturismo.s227.html');oCMenu.makeMenu('sub117','top1','&nbsp;Castelli e Palazzi','Castelli_e_Palazzi.s213.html');oCMenu.makeMenu('sub118','top1','&nbsp;I ghiacciai austria','I_ghiacciai_austria.s226.html');
oCMenu.makeMenu('top2','','ViaggiAustria','','',98,9,'assets/images/staticmenu/menu_viaggiaustria.gif','assets/images/staticmenu/menu_viaggiaustria.gif');
oCMenu.makeMenu('sub21','top2','&nbsp;ViaggiAustria','ViaggiAustria.s96.html');oCMenu.makeMenu('sub22','top2','&nbsp;Impressum','Impressum.s5.html');oCMenu.makeMenu('sub23','top2','&nbsp;ECG','ECG.s123.html');oCMenu.makeMenu('sub24','top2','&nbsp;Austria','Austria.s97.html');
oCMenu.makeMenu('top3','','Feedback','','',74,9,'assets/images/staticmenu/menu_contattaci.gif','assets/images/staticmenu/menu_contattaci.gif');
	oCMenu.makeMenu('subnewsletter', 'top3', '&nbsp;Newsletter', 'newsletter.php');
oCMenu.makeMenu('sub31','top3','&nbsp;Contattaci','Contattaci.s187.html');oCMenu.makeMenu('sub32','top3','&nbsp;I premi','I_premi.s214.html');
oCMenu.makeMenu('top4','','Utilita','','',48,9,'assets/images/staticmenu/menu_utilita.gif','assets/images/staticmenu/menu_utilita.gif');
oCMenu.makeMenu('sub41','top4','&nbsp;Come arrivare','Come_arrivare.s18.html');oCMenu.makeMenu('sub42','top4','&nbsp;Festivitą','Festivita.s86.html');oCMenu.makeMenu('sub43','top4','&nbsp;Numeri utili','Numeri_utili.s50.html');oCMenu.makeMenu('sub44','top4','&nbsp;Il dialetto austriaco','Il_dialetto_austriaco.s81.html');oCMenu.makeMenu('sub45','top4','&nbsp;Usi e costumi austriaci','Usi_e_costumi_austriaci.s87.html');oCMenu.makeMenu('sub46','top4','&nbsp;Pietanze tipiche','Pietanze_tipiche.s119.html');oCMenu.makeMenu('sub47','top4','&nbsp;Caffč','Caffe.s85.html');oCMenu.makeMenu('sub48','top4','&nbsp;Paese biologico','Paese_biologico.s122.html');oCMenu.makeMenu('sub49','top4','&nbsp;Telefonia mobile','Telefonia_mobile.s125.html');oCMenu.makeMenu('sub410','top4','&nbsp;Corso di tedesco','Corso_di_tedesco.s208.html');
oCMenu.makeMenu('top5','','Eventi','','',44,9,'assets/images/staticmenu/menu_eventi.gif','assets/images/staticmenu/menu_eventi.gif');
oCMenu.makeMenu('sub51','top5','&nbsp;Euro 2008','Euro_2008.s228.html');oCMenu.makeMenu('sub52','top5','&nbsp;Gennaio','Gennaio.s109.html');oCMenu.makeMenu('sub53','top5','&nbsp;Febbraio','Febbraio.s110.html');oCMenu.makeMenu('sub54','top5','&nbsp;Marzo','Marzo.s111.html');oCMenu.makeMenu('sub55','top5','&nbsp;Aprile','Aprile.s112.html');oCMenu.makeMenu('sub56','top5','&nbsp;Maggio','Maggio.s113.html');oCMenu.makeMenu('sub57','top5','&nbsp;Giugno','Giugno.s114.html');oCMenu.makeMenu('sub58','top5','&nbsp;Luglio','Luglio.s115.html');oCMenu.makeMenu('sub59','top5','&nbsp;Agosto','Agosto.s116.html');oCMenu.makeMenu('sub510','top5','&nbsp;Settembre','Settembre.s117.html');oCMenu.makeMenu('sub511','top5','&nbsp;Ottobre','Ottobre.s118.html');oCMenu.makeMenu('sub512','top5','&nbsp;Novembre','Novembre.s225.html');oCMenu.makeMenu('sub513','top5','&nbsp;Dicembre','Dicembre.s223.html');oCMenu.makeMenu('sub514','top5','&nbsp;Festivali','Festivali.s205.html');oCMenu.makeMenu('sub515','top5','&nbsp;Ski Opening','Ski_Opening.s224.html');oCMenu.makeMenu('sub516','top5','&nbsp;Avvento 2007','Avvento_2007.s229.html');
oCMenu.makeMenu('top6','','Cerca','search.php','',38,9,'assets/images/staticmenu/menu_cerca.gif','assets/images/staticmenu/menu_cerca.gif')

//Leave this line - it constructs the menu
oCMenu.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)
  oCMenu.m["top0"].b.moveIt(pos[0],pos[1])
  pos = findPos(1)
  oCMenu.m["top1"].b.moveIt(pos[0],pos[1])
  pos = findPos(2)
  oCMenu.m["top2"].b.moveIt(pos[0],pos[1])
  pos = findPos(3)
  oCMenu.m["top3"].b.moveIt(pos[0],pos[1])
  pos = findPos(4)
  oCMenu.m["top4"].b.moveIt(pos[0],pos[1])
  pos = findPos(5)
  oCMenu.m["top5"].b.moveIt(pos[0],pos[1])
  pos = findPos(6)
  oCMenu.m["top6"].b.moveIt(pos[0],pos[1])
  
  //Setting the fromtop value
  oCMenu.fromTop = pos[1]
}
placeElements()
//Setting it to re place the elements after resize - the resize is not perfect though..
oCMenu.onafterresize="placeElements()"
