//Menu object creation
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

//Netscape 4 and Opera form work-around !! !! !! !! !!
if(bw.ns4 || bw.op5 || bw.op6){
  oCMenu.onshow="document.layers?document.layers.formLayer.visibility='hidden':document.getElementById('formDiv').style.visibility='hidden';"
  oCMenu.onhide="document.layers?document.layers.formLayer.visibility='visible':document.getElementById('formDiv').style.visibility='visible';"
}

//Background bar properties
oCMenu.useBar=0

//Level properties - ALL properties have to be spesified in level 0

oCMenu.level[0]=new cm_makeLevel(90,20,"clLevel0","clLevel0Over",1,1,"clLevel0border",0,"bottom",0,0,0,0,0);
//oCMenu.level[1]=new cm_makeLevel(150,21,"clLevel1","clLevel1Over",1,1,"clLevel0border",0,"left",0,0,"../images/arrow.gif",10,10);
oCMenu.level[1]=new cm_makeLevel(150,20,"clLevel1","clLevel1Over",1,1,"clLevel0border",0,"right",1,-1,"../images/arrow.gif",10,10);
//oCMenu.level[2]=new cm_makeLevel(90,21,"clLevel0","clLevel0Over",1,1,"clLevel0border",0,"bottom",0,0,0,0,0);
oCMenu.level[2]=new cm_makeLevel(160,20,"clLevel1","clLevel1Over",1,1,"clLevel0border",0,"right",0,0,"../images/arrow.gif",10,10);


//myCoolMenu.level[x]=new cm_makeLevel(width, height, regClass, overClass, borderX, borderY, borderClass, rows, align, offsetX, offsetY, arrow, arrowWidth, arrowHeight, roundBorder)

/******************************************
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('home','','&nbsp;Home','../index.html','','50','18','../images/home.gif')
  //oCMenu.makeMenu('sub00','top0','Newest news','/news/index.asp')

oCMenu.makeMenu('hotels','','Hotels','../hotelsitemap.html','','64','18','../images/hotels.gif')
	oCMenu.makeMenu('yangon','hotels','Hotels In Yangon','../yangonall.html')
		oCMenu.makeMenu('asiaplaza','yangon','Asia Plaza','../asiaplaza.html')
		oCMenu.makeMenu('ayeyar','yangon','Aye Yar','../ayeyar.html')
		oCMenu.makeMenu('central','yangon','Central','../central.html')
		oCMenu.makeMenu('city_star','yangon','City Star','../citystar.html')
		oCMenu.makeMenu('dusit_inya_lake','yangon','Dusit Inya Lake','../inyalake.html')
		oCMenu.makeMenu('governor_residence','yangon','Governor\'s Residence','../pansea.html')
		oCMenu.makeMenu('grand_plaza_park_royal','yangon','Grand Plaza Park Royal','../parkroyal.html')
		oCMenu.makeMenu('k_paradise','yangon','Hotel K Paradise','../kparadise.html')
		oCMenu.makeMenu('nikko','yangon','Hotel Nikko Royal Lake','../nikko.html')
		oCMenu.makeMenu('kandawgyi_palace','yangon','Kandawgyi Palace','../kandawgyi.html')
		oCMenu.makeMenu('panorama','yangon','Panorama','../panorama.html')
		oCMenu.makeMenu('savoy','yangon','Savoy','../savoy.html')
		oCMenu.makeMenu('season_of_yangon','yangon','Season Of Yangon','../seasonofyangon.html')
		oCMenu.makeMenu('sedona_yangon','yangon','Sedona Yangon','../sedonayangon.html')
		oCMenu.makeMenu('strand','yangon','Strand','../strand.html')
		oCMenu.makeMenu('summit_park_view','yangon','Summit Park View','../summit.html')
		oCMenu.makeMenu('summer_palace','yangon','Summer Palace','../summerpalace.html')
		oCMenu.makeMenu('thamada','yangon','Thamada','../thamada.html')
		oCMenu.makeMenu('traders','yangon','Traders','../traders.html')
		oCMenu.makeMenu('yuzana_ygn','yangon','Yuzana','../yuzana.html')
		oCMenu.makeMenu('yuzana_garden','yangon','Yuzana Garden','../yuzanagarden.html')
		
	oCMenu.makeMenu('yangonapartment','hotels','Apartments In Yangon','../yangonapartmentall.html')
		oCMenu.makeMenu('espace','yangonapartment','Espace Avenir','../espace.html')
		oCMenu.makeMenu('micasa','yangonapartment','Micasa','../micasa.html')
			
	oCMenu.makeMenu('bagan','hotels','Hotels In Bagan','../bagan/baganall.html')
		oCMenu.makeMenu('Arthawka','bagan','Arthawka','../bagan/arthawaka.html')
		oCMenu.makeMenu('aye_yar_river_view','bagan','Aye Yar River View','../bagan/ayeyar.html')
		oCMenu.makeMenu('bagan_golf_resort','bagan','Bagan Golf Resort','../bagan/bagangolfresort.html')
		oCMenu.makeMenu('bagan_hotel_river_view','bagan','Bagan Hotel River View','../bagan/baganhotel.html')
		oCMenu.makeMenu('bagan_thande','bagan','Bagan Thande Hotel','../bagan/baganthande.html')
		oCMenu.makeMenu('bagan_thiripyitsaya_sakura','bagan','Bagan Thiripyitsaya Sakura','../bagan/thiripyitsaya.html')
		oCMenu.makeMenu('kaytumadi_Dynasty','bagan','Kaytumadi Dynasty','../bagan/kaytumadi.html')
		oCMenu.makeMenu('kumudara','bagan','Kumudara','../bagan/kumudara.html')
		oCMenu.makeMenu('myanmar_treasure_resorts','bagan','Myanmar Treasure Resorts','../bagan/treasureresort.html')
		oCMenu.makeMenu('thazin_garden','bagan','Thazin Garden','../bagan/thazingarden.html')
		oCMenu.makeMenu('hotel_at_tharabar_gate','bagan','The Hotel @ Tharabar Gate','../bagan/tharabargate.html')
		oCMenu.makeMenu('serenity','bagan','The Serenity','../bagan/serenity.html')
		
				
	oCMenu.makeMenu('bamaw','hotels','Hotels In Bamaw','../bamaw/bamawall.html')
		oCMenu.makeMenu('friendship','bamaw','Friendship','../bamaw/friendship.html')

	
	oCMenu.makeMenu('chaungtha','hotels','Hotels In Chaungtha','../chaungtha/chaungthaall.html')
		oCMenu.makeMenu('hotel_max','chaungtha','Hotel Max','../chaungtha/max.html')

		
	oCMenu.makeMenu('inle','hotels','Hotels In Inle Lake','../inle/inleall.html')
		oCMenu.makeMenu('cherry','inle','Cherry (Spa)','../inle/cherryspa.html')
		oCMenu.makeMenu('golden_island_cottages_1','inle','Golden Island Cottage 1','../inle/gic1.html')
		oCMenu.makeMenu('golden_island_cottages_2','inle','Golden Island Cottage 2','../inle/gic2.html')
		//oCMenu.makeMenu('inle_lake_view_resort','inle','Inle Lake View Resort','../inle/inlelakeview.html')
		oCMenu.makeMenu('inle_regal_resort','inle','Inle Regal Resort','../inle/inleregal.html')
		oCMenu.makeMenu('inle_resort','inle','Inle Resort','../inle/inleresort.html')
		oCMenu.makeMenu('paramountinle','inle','Paramount Inle Resort','../inle/paramountinle.html')
		oCMenu.makeMenu('the_serenity','inle','The Serenity','../inle/serenity.html')


	oCMenu.makeMenu('kalaw','hotels','Hotels In Kalaw','../kalaw/kalawall.html')
		oCMenu.makeMenu('hill_top_villa','kalaw','Hill Top Villa','../kalaw/hilltopvilla.html')
		oCMenu.makeMenu('pine_hill_resort','kalaw','Pine Hill Resort','../kalaw/pinehill.html')
	
	oCMenu.makeMenu('kawthaung','hotels','Hotels In Kawthaung','../kawthaung/kawthaungall.html')
		oCMenu.makeMenu('andman_club','kawthaung','Andaman Club','../kawthaung/andamanclub.html')
		oCMenu.makeMenu('andaman_resort','kawthaung','Andaman Resort','../kawthaung/andamanresort.html')				
		
	oCMenu.makeMenu('kyaikhtiyo','hotels','Hotels In Kyaikhtiyo','../kyaikhtiyo/kyaikhtiyoall.html')
		oCMenu.makeMenu('golden_rock','kyaikhtiyo','Golden Rock','../kyaikhtiyo/goldenrock.html')
		oCMenu.makeMenu('mountaintop','kyaikhtiyo','Mountain Top','../kyaikhtiyo/mountaintop.html')
		oCMenu.makeMenu('mountainview','kyaikhtiyo','Mountain View','../kyaikhtiyo/mountainview.html')
	
	oCMenu.makeMenu('mandalay','hotels','Hotels In Mandalay','../mandalay/mandalayall.html')
		oCMenu.makeMenu('emerald_land_inn','mandalay','Emerald Land Inn','../mandalay/emeraldland.html')
		oCMenu.makeMenu('mandalay_city','mandalay','Mandalay City','../mandalay/mandalaycity.html')		
		oCMenu.makeMenu('mandalay_hill','mandalay','Mandalay Hill','../mandalay/mandalayhill.html')	
		oCMenu.makeMenu('mandalay_swan','mandalay','Mandalay Swan','../mandalay/mandalayswan.html')	
		oCMenu.makeMenu('mann_myanmar','mandalay','Mann Myanmar','../mandalay/mannmyanmar.html')	
		oCMenu.makeMenu('nadi_myanmar','mandalay','Nadi Myanmar','../mandalay/nadimyanmar.html')	
		oCMenu.makeMenu('pacific','mandalay','Pacific','../mandalay/pacific.html')	
		oCMenu.makeMenu('royal_city','mandalay','Royal City','../mandalay/royalcity.html')	
		oCMenu.makeMenu('sedona_mandalay','mandalay','Sedona Mandalay','../mandalay/sedona.html')	
		oCMenu.makeMenu('sunrise','mandalay','Sunrise','../mandalay/sunrise.html')	
		oCMenu.makeMenu('unity','mandalay','Unity','../mandalay/unity.html')
		oCMenu.makeMenu('zaygyo','mandalay','Zay Gyo','../mandalay/zaygyo.html')	
	
	oCMenu.makeMenu('mawlamyaine','hotels','Hotels In Mawlamyaine','../mawlamyaine/mawlamyaineall.html')
		oCMenu.makeMenu('attran','mawlamyaine','Attran','../mawlamyaine/attran.html')	
		oCMenu.makeMenu('ngwe_moe','mawlamyaine','Ngwe Moe','../mawlamyaine/ngwemoe.html')	
	
	oCMenu.makeMenu('monywa','hotels','Hotels In Monywa','../monywa/monywaall.html')
		oCMenu.makeMenu('win_unity_resort','monywa','Win Unity Resort','../monywa/winunity.html')	

	oCMenu.makeMenu('myitkyina','hotels','Hotels In Myitkyina','../myitkyina/myitkyinaall.html')
		oCMenu.makeMenu('pantsun','myitkyina','Pant Sun','../myitkyina/pantsun.html')	
			
	oCMenu.makeMenu('ngapali','hotels','Hotels In Ngapali','../ngapali/ngapaliall.html')
		oCMenu.makeMenu('amata_resort','ngapali','Amata Resort','../ngapali/amata.html')	
		oCMenu.makeMenu('amazingngapali','ngapali','Amazing Ngapali Resort','../ngapali/amazingngapali.html')	
		oCMenu.makeMenu('bay_view','ngapali','Bay View','../ngapali/bayview.html')	
		oCMenu.makeMenu('ngapali_beach','ngapali','Ngapali Beach','../ngapali/ngapalibeach.html')	
		oCMenu.makeMenu('sandoway','ngapali','Sandoway','../ngapali/sandoway.html')
		oCMenu.makeMenu('silver_beach','ngapali','Silver Beach','../ngapali/silverbeach.html')	
		
	oCMenu.makeMenu('ngwesaung','hotels','Hotels In Ngwe Saung','../ngwesaung/ngwesaungall.html')
		oCMenu.makeMenu('sunny_paradise','ngwesaung','Sunny Paradise','../ngwesaung/sunnyparadise.html')	
		oCMenu.makeMenu('treasure_beach','ngwesaung','Treasure Beach Resort','../ngwesaung/treasurebeach.html')	
		oCMenu.makeMenu('yuzana','ngwesaung','Yuzana Resort','../ngwesaung/yuzana.html')	
		
	oCMenu.makeMenu('pindaya','hotels','Hotels In Pindaya','../pindaya/pindayaall.html')
		oCMenu.makeMenu('conqueror','pindaya','Conqueror','../pindaya/conqueror.html')	
		
	oCMenu.makeMenu('sittwe','hotels','Hotels In Sittwe','../sittwe/sittweall.html')
		oCMenu.makeMenu('nobel','sittwe','Nobel','../sittwe/nobel.html')	
		oCMenu.makeMenu('shwe_tha_zin','sittwe','Shwe Tha Zin','../sittwe/shwethazin.html')
		oCMenu.makeMenu('sittwe_hotel','sittwe','Sittwe','../sittwe/sittwehotel.html')
	
	oCMenu.makeMenu('taunggyi','hotels','Hotels In Taung Gyi','taunggyiall.html')	
		oCMenu.makeMenu('aye_thar_yar','taunggyi','Aye Thar Yar','ayetharyar.html')
	
					
oCMenu.makeMenu('countryinfo','','Country Info','../countryinfo.html','','150','18','../images/countryinfo.gif')
	
oCMenu.makeMenu('maps','','Maps','../maps.html','','50','18','../images/maps.gif')

oCMenu.makeMenu('tips','','tips','../tips.html','','43','18','../images/tips.gif')
	
oCMenu.makeMenu('contactus','','Contact Us','../contactus.html','','112','18','../images/contactus.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["home"].b.moveIt(pos[0],pos[1])
  
  pos = findPos(1)
  oCMenu.m["hotels"].b.moveIt(pos[0],pos[1])
  
  pos = findPos(2)
  oCMenu.m["countryinfo"].b.moveIt(pos[0],pos[1])
  
  pos = findPos(3)
  oCMenu.m["maps"].b.moveIt(pos[0],pos[1])
  
  pos = findPos(4)
  oCMenu.m["tips"].b.moveIt(pos[0],pos[1])
  
  pos = findPos(5)
  oCMenu.m["contactus"].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])
  
  //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()"
 