/*** 
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
  return [x,y]
}

pos = findPos()

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties  H A P O S T A S H METAXY TWN PUNKTEN 
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=0
oCMenu.menuPlacement=0
       

                                                             
oCMenu.offlineRoot="file:///C|/Inetpub/wwwroot/dhtmlcentral/projects/coolmenus/examples/" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=200 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
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=138
oCMenu.level[0].height=26 
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
// E D W ftiaxvw ta borders
oCMenu.level[0].borderX=1
oCMenu.level[0].borderY=1
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=0
oCMenu.level[0].arrowHeight=0
//EDW KANONIZETAI AN EINAI D E X I A - A R I S T E R A
oCMenu.level[0].align="right"


//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=oCMenu.level[0].width
oCMenu.level[1].height=22
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=1
oCMenu.level[1].borderY=1
oCMenu.level[1].align="right" 
//Distanz des Level2
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+50
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"


//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=150
oCMenu.level[2].height=20
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"
oCMenu.level[2].borderClass="clLevel2border"


/******************************************
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','','&nbsp;Mietwagen','#','')
  oCMenu.makeMenu('sub00','top0','Autofahren allgemein','auto_allgemein.php?action=allgemein')
	oCMenu.makeMenu('sub01','top0','Mietwagenpartner','mietwagenpartner.php')
	oCMenu.makeMenu('sub02','top0','Mietwagenstationen','mietwagen.php?action=mietwagenstationen')
	oCMenu.makeMenu('sub04','top0','Mietwagenbedingungen','mietwagen.php?action=mietwagenbedingungen')
	oCMenu.makeMenu('sub05','top0','Preise','#')
		oCMenu.makeMenu('sub110','sub05','Paket A: Basispaket','mietwagenpreise.php?action=paket_a')
		oCMenu.makeMenu('sub111','sub05','Paket B: Rundum Paket ','mietwagenpreise.php?action=paket_b')
		oCMenu.makeMenu('sub112','sub05','Paket C: Nordirland','mietwagenpreise.php?action=paket_c')
		
oCMenu.makeMenu('top10','','&nbsp;Camper','#','')	
  oCMenu.makeMenu('sub60','top10','Camper allgemein','camper_allgemein.php')
  oCMenu.makeMenu('sub61','top10','Modelle und Preise','camper_modelle.php')			
	
oCMenu.makeMenu('top1','','&nbsp;Hotels, G&auml;steh&auml;user<br><img src=\'../images/nichts.gif\' width=\"3\">Historic Houses, B+B\'s','hotels_allgemein.php','',138,35)
	oCMenu.makeMenu('sub09','top1','Angebotssuche','unterkunftsangebot.php')
	oCMenu.makeMenu('sub10','top1','Hotelkategorien','hotelkategorien.php')
	oCMenu.makeMenu('sub11','top1','Kategorien-Gästehäusern','gaesthauskategorien.php')
	oCMenu.makeMenu('sub12','top1','Historic Houses','historichouse.php')
	oCMenu.makeMenu('sub13','top1','Bed & Breakfast','bbs_allgemein.php')
	
oCMenu.makeMenu('top2','','&nbsp;Ferienh&auml;user','ferienhaus.php')
	oCMenu.makeMenu('sub21','top2','Ferienhaussuche','fh_angebot.php','',141,22)
	oCMenu.makeMenu('sub22','top2','Kategorien für Ferienhäuser','fh_kategorien.php','',141,22)
	oCMenu.makeMenu('sub23','top2','Allgemeines zum Ferienhaus','fh_allgemein.php','',141,22)

	
oCMenu.makeMenu('top3','','&nbsp;Boote','boote.php')
	oCMenu.makeMenu('sub25','top3','Hausbootsuche','hausboot_angebot.php')
	oCMenu.makeMenu('sub26','top3','Der Erne','hausboot_erne.php')
	oCMenu.makeMenu('sub27','top3','Der Shannon-Erne-Kanal','hausboot_shannon.php')
	oCMenu.makeMenu('sub28','top3','Der Shannon','hausboot_shannon1.php')
	oCMenu.makeMenu('sub29','top3','Wichtige Infos','hausboot_infos.php')
	oCMenu.makeMenu('sub30','top3','Unsere Vermieter','hausboot_vermieter.php')
	oCMenu.makeMenu('sub31','top3','Routenvorschläge','hausboot_route.php')
	oCMenu.makeMenu('sub32','top3','Entfernungen','hausboot_entfernungen.php')
	//oCMenu.makeMenu('sub33','top3','Hotelboote','hotelboote.php')

oCMenu.makeMenu('top5','','&nbsp;Rundreisen','rundreisen.php')
	oCMenu.makeMenu('sub50','top5','Autorundreisen','autorundreisen.php')
		oCMenu.makeMenu('sub500','sub50','Irische Naturschönheiten des Südwestens','autorundreisen.php?action=suedwesten&kategorie=auto','',158,32)
		oCMenu.makeMenu('sub501','sub50','Irische Naturschönheiten des Westens','autorundreisen.php?action=westenauto&kategorie=auto','',158,32)
		oCMenu.makeMenu('sub502','sub50','Naturschönheiten einer Insel - der  romantische Westen','autorundreisen.php?action=romantisch&kategorie=auto','',158,32)
		oCMenu.makeMenu('sub503','sub50','Georgianische Farmhouse Tour','autorundreisen.php?action=georgianisch&kategorie=auto','',158,32)
		oCMenu.makeMenu('sub504','sub50','Auf den Spuren von Legenden','autorundreisen.php?action=legenden&kategorie=auto','',158,25)
		oCMenu.makeMenu('sub505','sub50','Naturschönheiten einer Insel, der unbekannte Norden','autorundreisen.php?action=unbekannt&kategorie=auto','',158,32)
		oCMenu.makeMenu('sub506','sub50','Naturschönheiten einer Insel-der mediterrane Süden','autorundreisen.php?action=mediterran&kategorie=auto','',158,32)
		oCMenu.makeMenu('sub507','sub50','Irland mit Stil und Eleganz','autorundreisen.php?action=eleganz&kategorie=auto','',158,32)
		oCMenu.makeMenu('sub508','sub50','Zu Gast in irischen Schlössern und Herrenhäusern','autorundreisen.php?action=Schosshotels&kategorie=auto','',158,32)
	oCMenu.makeMenu('sub51','top5','Busrundreisen','busrundreisen.php')
		oCMenu.makeMenu('sub510','sub51','Naturerlebnis Irland - Faszinationen einer Insel','busrundreisen.php?action=faszination&kategorie=bus','',150,35)
		//oCMenu.makeMenu('sub511','sub51','Naturerlebnis Irland - der imposante Norden','busrundreisen.php?action=nord','',150,35)
		oCMenu.makeMenu('sub512','sub51','Naturerlebnis Irland - der irische Traum','busrundreisen.php?action=traum&kategorie=bus','',150,35)
		oCMenu.makeMenu('sub513','sub51','Naturschönheiten einer Insel - das irische Kaleidoskop','busrundreisen.php?action=kaleidoskop&kategorie=bus','',150,35)
		oCMenu.makeMenu('sub514','sub51','Irish Spirit Tour','busrundreisen.php?action=Busrundreiseenglisch&kategorie=bus','',150,35)

		
//oCMenu.makeMenu('top6','','&nbsp;Aktivit&auml;ten','#')
oCMenu.makeMenu('top6','','&nbsp;Reiten','reiten.php')
	oCMenu.makeMenu('sub600','top6','Der Connemara Trail','reiten.php?action=connemara','',150,22)
	oCMenu.makeMenu('sub601','top6','Der Killarney Reeks Trail','reiten.php?action=killarney','',150,22)
oCMenu.makeMenu('top7','','&nbsp;Radtouren','radtouren.php')
	oCMenu.makeMenu('sub602','top7','Irlands mediterraner<br> Südwesten','radtouren.php?action=radmediterraner','',150,32)
	oCMenu.makeMenu('sub603','top7','Der romantische Westen','radtouren.php?action=radromantisch','',150,22)
	oCMenu.makeMenu('sub604','top7','Burgen, Schlösser und<br> Ruinen','radtouren.php?action=radburgen','',150,32)
oCMenu.makeMenu('top8','','&nbsp;Wandern','wandern.php')
	oCMenu.makeMenu('sub605','top8','Connemara und die<br>westirischen Inseln','wandern.php?action=wandernconnemara','',150,32)
	oCMenu.makeMenu('sub606','top8','Höhepunkte Donegals','wandern.php?action=wanderndonegal','',150,22)
	oCMenu.makeMenu('sub607','top8','Kerry - die Perle des<br>Südwestens','wandern.php?action=wandernkerry','',150,32)
oCMenu.makeMenu('top9','','&nbsp;Zigeunerwagen','zigeunerwagen.php?action=zigeunerwagen')
	
	oCMenu.construct()	
