/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/

//Extra code to find position:
function findPos(){

  if(bw.ns4){   //Netscape 4
    x = document.layers.layerMenu.pageX
    y = document.layers.layerMenu.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
  //alert(x)
  return [x,y]
}

pos = findPos()

//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=pos[0]
oCMenu.fromTop=pos[1]
//We also need to "re place" the menu on resize. So:
oCMenu.onresize="pos = findPos(); oCMenu.fromLeft=pos[0]; oCMenu.fromTop=pos[1]"

oCMenu.rows=1
oCMenu.menuPlacement=0
       

                                                             
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=500 
oCMenu.fillImg="fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="menu"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//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].width=10
oCMenu.level[0].height=42 
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=4
oCMenu.level[0].offsetY=23
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
oCMenu.level[0].align="middle"
//	Efekti
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)" 
oCMenu.level[0].slidepx=10
oCMenu.level[0].slidetim=20


//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].width=170
oCMenu.level[1].height=20
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=0
oCMenu.level[1].borderY=1
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=2
oCMenu.level[1].offsetY=4
oCMenu.level[1].borderClass="clLevel1border"

oCMenu.level[1].arrowWidth=10
oCMenu.level[1].arrowHeight=20
oCMenu.level[1].arrow ="/code/cssmenusys/images/podmeni1.gif"



var pth ="/images/navig/menu/en/";

oCMenu.makeMenu('top0','','Port Authority','/en/port_authority/index.asp','',120,22,pth+"lucka_uprava.gif", pth+"lucka_upravao.gif")
	oCMenu.makeMenu('uprava1','top0','About us','/en/port_authority/index.asp')
	oCMenu.makeMenu('uprava2','top0','Documents','/en/port_authority/dokumenti.asp')
	oCMenu.makeMenu('uprava21','top0','On-line requests','')
		oCMenu.makeMenu('olf1','uprava21','Request for people','/en/port_authority/obr_osobe.asp')
		oCMenu.makeMenu('olf2','uprava21','Request Vehicle','/en/port_authority/obr_vozila.asp')
	
	
	
	oCMenu.makeMenu('uprava3','top0','Statistics','/en/port_authority/statistika.asp')
	//oCMenu.makeMenu('uprava4','top0','Tarife','/en/lucka_uprava/tarife.asp')
	oCMenu.makeMenu('uprava5_0','top0','Concessionaire','')

	oCMenu.makeMenu('konc-1','uprava5_0','Concessions for activities','/en/port_authority/concessionaires/index.asp')
	oCMenu.makeMenu('konc-2','uprava5_0','Approval for activities','/en/port_authority/concessionaires/odobrenje_za_djelatnosti.asp')
	
	//oCMenu.makeMenu('uprava5','top0','Koncesije za djelatnosti','/en/lucka_uprava/koncesije_za_djelatnosti.asp')
	//oCMenu.makeMenu('uprava5a','top0','Odobrenje za djelatnosti','/en/lucka_uprava/odobrenje_za_djelatnosti.asp')
	
	/*oCMenu.makeMenu('uprava6','top0','Dolasci - polasci brodova','/en/lucka_uprava/sailing_list.asp')*/
	oCMenu.makeMenu('uprava7','top0','Characteristics of the port','/en/port_authority/karakteristike.asp')
	oCMenu.makeMenu('uprava10','top0','Operating coast','/en/port_authority/operativne_obale.asp')
	oCMenu.makeMenu('uprava8','top0','Safety','/en/port_authority/sigurnosna_zastita.asp')
	oCMenu.makeMenu('uprava9','top0','Environment','/en/port_authority/zastita.asp')	

oCMenu.makeMenu('top1','','Cruising','/en/cruising/index.asp','',77,22,pth+"cruising.gif", pth+"cruisingo.gif")
	oCMenu.makeMenu('cruising1','top1','Sibenik - cruise destination','#')
	
		oCMenu.makeMenu('info1','cruising1','Šibenik info','/en/cruising/index.asp')
		oCMenu.makeMenu('info2','cruising1','Cultural Heritage','/en/cruising/info/index.asp')
		oCMenu.makeMenu('info3','cruising1','Natural heritage','/en/cruising/info/prirodna.asp')

	oCMenu.makeMenu('cruising2','top1','Cruising Calendar','/en/cruising/kalendar_veze.asp')
		//oCMenu.makeMenu('cruising2_1','cruising2','Stvarno stanje','/en/cruising/kalendar.asp')
		//oCMenu.makeMenu('cruising2_21','cruising2','Rezervacija veza','/en/cruising/kalendar_veze.asp')
		
	oCMenu.makeMenu('cruising3','top1','Photogallery - cruising','/en/cruising/fotogalerija.asp')	
	
	oCMenu.makeMenu('cruising4','top1','MedCruise','/en/cruising/medcruise.asp')	
			
	
oCMenu.makeMenu('top2','','Port of Sibenik','/en/port_of_sibenik/index.asp','',117,22,pth+"luka_sibenik.gif", pth+"luka_sibeniko.gif")
	oCMenu.makeMenu('luka_sibenik0','top2','Port info','/en/port_of_sibenik/index.asp')
	oCMenu.makeMenu('luka_sibenik1','top2','Port history','/en/port_of_sibenik/povijest.asp')
	oCMenu.makeMenu('luka_sibenik2','top2','Terminals and cargo','/en/port_of_sibenik/terminals_and_cargo/index.asp')
		oCMenu.makeMenu('terminali2','luka_sibenik2','Terminal for bulk cargo imports','/en/port_of_sibenik/terminals_and_cargo/rasuti_uvoz.asp')
		oCMenu.makeMenu('terminali3','luka_sibenik2','Terminal for bulk export','/en/port_of_sibenik/terminals_and_cargo/rasuti_izvoz.asp')
		oCMenu.makeMenu('terminali4','luka_sibenik2','Wood terminal','/en/port_of_sibenik/terminals_and_cargo/drvo.asp')
		oCMenu.makeMenu('terminali5','luka_sibenik2','Passenger terminal','/en/port_of_sibenik/terminals_and_cargo/putnici.asp')
	oCMenu.makeMenu('luka_sibenik','top2','Transport links','/en/port_of_sibenik/povezanost.asp')
	

oCMenu.makeMenu('top3','','Development','/en/development/index.asp','',106,22,pth+"razvoj.gif", pth+"razvojo.gif")
	oCMenu.makeMenu('razvoj1','top3','Projects in progress','/en/development/index.asp')
	oCMenu.makeMenu('razvoj2','top3','Planned projects ','/en/development/planirani.asp')
	
oCMenu.makeMenu('top4','','Info','/en/info/index.asp','',77,22,pth+"info.gif", pth+"infoo.gif")
	oCMenu.makeMenu('iinfo00','top4','Information for vessels','/en/info/info_brodovi.asp')
	oCMenu.makeMenu('iinfo0','top4','Info','/en/info/index.asp')
	oCMenu.makeMenu('iinfo1','top4','News','/en/info/novosti.asp')
	oCMenu.makeMenu('iinfo2','top4','Competitions','/en/info/competitions/index.asp')
		oCMenu.makeMenu('natjecaji1','iinfo2','For Concession','/en/info/competitions/index.asp')
		oCMenu.makeMenu('natjecaji2','iinfo2','For investment projects','/en/info/competitions/investicije.asp')
	oCMenu.makeMenu('iinfo3','top4','Weather forecast','/en/info/prognoza.asp')
	oCMenu.makeMenu('iinfo4','top4','Multimedia','/en/info/multimedia/index.asp')
		oCMenu.makeMenu('multimedija1','iinfo4','Photogallery','/en/cruising/fotogalerija.asp')
		oCMenu.makeMenu('multimedija2','iinfo4','Brochures','/en/info/multimedia/brosure.asp')
		oCMenu.makeMenu('multimedija3','iinfo4','Promo CD','/en/info/multimedia/promo_cd.asp')
	
oCMenu.makeMenu('top6','','Contact','/en/contact/index.asp','',77,22,pth+"kontakt.gif", pth+"kontakto.gif")
	oCMenu.makeMenu('kontakt1','top6','Contact info','/en/contact/index.asp')
	oCMenu.makeMenu('kontakt2','top6','Contact form','/en/contact/obrazac.asp')
	oCMenu.makeMenu('kontakt3','top6','Our location','/en/contact/karta.asp')




//Leave this line - it constructs the menu
oCMenu.construct()		


