var vladRez_Left=137; //pt 800x600=243
var vladRez_Width=105; //pt 800x600=90
var vladRez_top=71

/*Browsercheck object - we have to move this into the page to prevent an error in NS4*/
function cm_bwcheck(){
	//In theory we should use object detection, but this script needs work-arounds for almost every browser...
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent.toLowerCase()
	this.dom=document.getElementById?1:0
	this.ns4=(!this.dom && document.layers)?1:0;
	this.op=window.opera 
	this.moz=(this.agent.indexOf("gecko")>-1 || window.sidebar)
	this.ie=this.agent.indexOf("msie")>-1 && !this.op
	if(this.op){
		this.op5=(this.agent.indexOf("opera 5")>-1 || this.agent.indexOf("opera/5")>-1)
		this.op6=(this.agent.indexOf("opera 6")>-1 || this.agent.indexOf("opera/6")>-1)
		this.op7=this.dom&&!this.op5&&!this.op6 //So all higher opera versions will use it
	}else if(this.moz) this.ns6 = 1
	else if(this.ie){
		this.ie4 = !this.dom && document.all
  	this.ie5 = (this.agent.indexOf("msie 5")>-1)
  	this.ie55 = (this.ie5 && this.agent.indexOf("msie 5.5")>-1)
  	this.ie6 = this.dom && !this.ie4 && !this.ie5 && ! this.ie55
	}
	this.mac=(this.agent.indexOf("mac")>-1)
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.op5 || this.op6 || this.op7)
  this.usedom= this.ns6||this.op7//Use dom creation
  this.reuse = this.ie||this.op7||this.usedom //Reuse layers
  this.px=this.dom&&!this.op5?"px":""
	return this
}
var bw=new cm_bwcheck()

/*** 
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.
**/

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Netscape 4 - bug fix - 
//maybe -stupid NS4 - objects are not handled correctly when
//the object creator is in a linked file
if(bw.ns4) if(!oCMenu["makeMenu"] || !bw["ns4"]) self.location.reload()

//Frame properties
oCMenu.frames = 1

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=vladRez_Left
oCMenu.fromTop=vladRez_top
oCMenu.rows=1 
oCMenu.menuPlacement="left"
                                                             
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=200

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="100%"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX=0 
oCMenu.barY=0
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=vladRez_Width
oCMenu.level[0].height=18
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
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
oCMenu.level[0].align="bottom"

//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-2
oCMenu.level[1].height=18
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" 
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+41
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=170
oCMenu.level[2].height=18
oCMenu.level[2].offsetX=-(oCMenu.level[1].width-2)/2+41
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;Home','content/home.php','middle')

strPrefixURL="/"
oCMenu.makeMenu('top1','','&nbsp;Fotografii','','middle')
	oCMenu.makeMenu('top10','top1','Despre fotografii',strPrefixURL+'content/despreFotografii.php')
	oCMenu.makeMenu('top11','top1','Comentariile',strPrefixURL+'content/comentariiFoto.php')
	oCMenu.makeMenu('top12','top1','Poze cu mine','')
		oCMenu.makeMenu('top121','top12','Poze vechi','')
			oCMenu.makeMenu('top1211','top121','Big Bang',strPrefixURL+'content/pozeFramework.php?section=1211&titlu=Poze%20mai%20vechi&folder=PozeVeki/Vladut')
			oCMenu.makeMenu('top1212','top121','Diverse',strPrefixURL+'content/pozeFramework.php?section=1212&titlu=Poze%20mai%20vechi&folder=PozeVeki/Diverse')
			oCMenu.makeMenu('top1213','top121','La mare \'97',strPrefixURL+'content/pozeFramework.php?section=1213&titlu=Poze%20mai%20vechi&folder=PozeVeki/Mare97')
			oCMenu.makeMenu('top1214','top121','Predeal decembrie \'98',strPrefixURL+'content/pozeFramework.php?section=1214&titlu=Poze%20mai%20vechi&folder=PozeVeki/munte98')
			oCMenu.makeMenu('top1215','top121','Poiana Brasov \'99',strPrefixURL+'content/pozeFramework.php?section=1215&titlu=Poze%20mai%20vechi&folder=PozeVeki/munte99')
			oCMenu.makeMenu('top1216','top121','Bucegi iulie 2000',strPrefixURL+'content/pozeFramework.php?section=1216&titlu=Poze%20mai%20vechi&folder=PozeVeki/iunie2000')
			oCMenu.makeMenu('top1217','top121','Anda mai 2000',strPrefixURL+'content/pozeFramework.php?section=1217&titlu=Poze%20mai%20vechi&folder=PozeVeki/mai2000')
			oCMenu.makeMenu('top1218','top121','Manastiri august 2000',strPrefixURL+'content/pozeFramework.php?section=1218&titlu=Poze%20mai%20vechi&folder=PozeVeki/august2000')
			oCMenu.makeMenu('top1219','top121','Budapesta august 2000',strPrefixURL+'content/pozeFramework.php?section=1219&titlu=Poze%20mai%20vechi&folder=PozeVeki/budapesta2000')
			oCMenu.makeMenu('top121A','top121','1 mai 2001 la mare',strPrefixURL+'content/pozeFramework.php?section=121A&titlu=Poze%20mai%20vechi&folder=PozeVeki/1mai2001')
			oCMenu.makeMenu('top121B','top121','Aniversare 20 de ani',strPrefixURL+'content/pozeFramework.php?section=121B&titlu=Poze%20mai%20vechi&folder=PozeVeki/20ani')
			oCMenu.makeMenu('top121C','top121','Bucegi noiembrie 2001',strPrefixURL+'content/pozeFramework.php?section=121C&titlu=Poze%20mai%20vechi&folder=PozeVeki/nov2001')

		oCMenu.makeMenu('top122','top12','Poze recente','')
			oCMenu.makeMenu('top1221','top122','Gradina Botanica - Oct 2004',strPrefixURL+'content/pozeFramework.php?section=1221&titlu=Poze%20recente&folder=PozeRecente/20041018GradinaBotanica')
			oCMenu.makeMenu('top1222','top122','Herastrau - Oct 2004',strPrefixURL+'content/pozeFramework.php?section=1222&titlu=Poze%20recente&folder=PozeRecente/20041024Herastrau')
			oCMenu.makeMenu('top1223','top122','Munte - Nov 2004',strPrefixURL+'content/pozeFramework.php?section=1223&titlu=Poze%20recente&folder=PozeRecente/20041120Munte')
			oCMenu.makeMenu('top1224','top122','Busteni - Nov 2004',strPrefixURL+'content/pozeFramework.php?section=1224&titlu=Poze%20recente&folder=PozeRecente/20041128Busteni')
			oCMenu.makeMenu('top1225','top122','Diverse - Dec 2004',strPrefixURL+'content/pozeFramework.php?section=1225&titlu=Poze%20recente&folder=PozeRecente/20041212Diverse')
			oCMenu.makeMenu('top1226','top122','Revelion 2005',strPrefixURL+'content/pozeFramework.php?section=1226&titlu=Poze%20recente&folder=PozeRecente/20050101Revelion')
			oCMenu.makeMenu('top1227','top122','CERF 2005',strPrefixURL+'content/pozeFramework.php?section=1227&titlu=Poze%20recente&folder=PozeRecente/20050423Cerf2005')
			oCMenu.makeMenu('top1228','top122','Paste 2005',strPrefixURL+'content/pozeFramework.php?section=1228&titlu=Poze%20recente&folder=PozeRecente/20050502Paste')

/******************************************
	oCMenu.makeMenu('top13','top1','Otopeni','')

	   oCMenu.makeMenu('top13_1','top13','2003','')
		oCMenu.makeMenu('top131','top13_1','01 iun 03 - La inceput',strPrefixURL+'content/pozeFramework.php?section=131&titlu=Otopeni&folder=Otopeni/2003/20030601')
		oCMenu.makeMenu('top132','top13_1','19 iun 03 - Gardul',strPrefixURL+'content/pozeFramework.php?section=132&titlu=Otopeni&folder=Otopeni/2003/20030719')

	   oCMenu.makeMenu('top13_2','top13','2004','')
		oCMenu.makeMenu('top133','top13_2','11 mai 04 - Trasare axe',strPrefixURL+'content/pozeFramework.php?section=133&titlu=Otopeni&folder=Otopeni/2004/20040511')
		oCMenu.makeMenu('top134','top13_2','14 mai 04 - Fundatia',strPrefixURL+'content/pozeFramework.php?section=134&titlu=Otopeni&folder=Otopeni/2004/20040514')
		oCMenu.makeMenu('top135','top13_2','16 mai 04 - Cofragi',strPrefixURL+'content/pozeFramework.php?section=135&titlu=Otopeni&folder=Otopeni/2004/20040516')
		oCMenu.makeMenu('top136','top13_2','22 mai 04 - Fundatia sus',strPrefixURL+'content/pozeFramework.php?section=136&titlu=Otopeni&folder=Otopeni/2004/20040522')
		oCMenu.makeMenu('top137','top13_2','02 iun 04 - Zidarie 1',strPrefixURL+'content/pozeFramework.php?section=137&titlu=Otopeni&folder=Otopeni/2004/20040602')
		oCMenu.makeMenu('top138','top13_2','10 iun 04 - Zidarie 2',strPrefixURL+'content/pozeFramework.php?section=138&titlu=Otopeni&folder=Otopeni/2004/20040610')
		oCMenu.makeMenu('top13A','top13_2','16 iun 04 - Plafon fier',strPrefixURL+'content/pozeFramework.php?section=13A&titlu=Otopeni&folder=Otopeni/2004/20040616')
		oCMenu.makeMenu('top13B','top13_2','26 iun 04 - Plafon turnat',strPrefixURL+'content/pozeFramework.php?section=13B&titlu=Otopeni&folder=Otopeni/2004/20040626')
		oCMenu.makeMenu('top13C','top13_2','10 iul 04 - Zidarie etaj',strPrefixURL+'content/pozeFramework.php?section=13C&titlu=Otopeni&folder=Otopeni/2004/20040710')
		oCMenu.makeMenu('top13D','top13_2','16 iul 04 - Zidarie etaj',strPrefixURL+'content/pozeFramework.php?section=13D&titlu=Otopeni&folder=Otopeni/2004/20040716')
		oCMenu.makeMenu('top13E','top13_2','31 iul 04 - La rosu',strPrefixURL+'content/pozeFramework.php?section=13E&titlu=Otopeni&folder=Otopeni/2004/20040731')
		oCMenu.makeMenu('top13F','top13_2','12 sep 04 - Turnat terasa',strPrefixURL+'content/pozeFramework.php?section=13F&titlu=Otopeni&folder=Otopeni/2004/20040912')
		oCMenu.makeMenu('top13G','top13_2','17 oct 04 - Detalii',strPrefixURL+'content/pozeFramework.php?section=13G&titlu=Otopeni&folder=Otopeni/2004/20041017')

	   oCMenu.makeMenu('top13_3','top13','2005','')
		oCMenu.makeMenu('top13H','top13_3','23 ian 05 - Vederi diverse',strPrefixURL+'content/pozeFramework.php?section=13H&titlu=Otopeni&folder=Otopeni/2005/20050123')
		oCMenu.makeMenu('top13I','top13_3','07 mai 05 - Tencuit',strPrefixURL+'content/pozeFramework.php?section=13I&titlu=Otopeni&folder=Otopeni/2005/20050507')
		oCMenu.makeMenu('top13J','top13_3','10 mai 05 - Tencuit',strPrefixURL+'content/pozeFramework.php?section=13J&titlu=Otopeni&folder=Otopeni/2005/20050510')
		oCMenu.makeMenu('top13K','top13_3','14 mai 05 - Tencuit',strPrefixURL+'content/pozeFramework.php?section=13K&titlu=Otopeni&folder=Otopeni/2005/20050514')
*************************************/
	
oCMenu.makeMenu('top2','','&nbsp;Despre mine','')
	oCMenu.makeMenu('top21','top2','CV-ul meu',strPrefixURL+'content/cv.php')
	oCMenu.makeMenu('top22','top2','Genealogia',strPrefixURL+'content/arbore.php')
	oCMenu.makeMenu('top23','top2','Hobby-uri','')

oCMenu.makeMenu('top3','','&nbsp;Despre voi','')
	oCMenu.makeMenu('sub30','top3','Guestbook',strPrefixURL+'content/guestBook.php')
	oCMenu.makeMenu('sub31','top3','Newsletter',strPrefixURL+'content/newsletter.php')
	oCMenu.makeMenu('sub32','top3','Prieteni',strPrefixURL+'content/prieteni.php')

oCMenu.makeMenu('top4','','&nbsp;Diverse','')
	oCMenu.makeMenu('top41','top4','Biblioteca mea',strPrefixURL+'content/biblioteca.php')

oCMenu.makeMenu('top5','','&nbsp;Articole','')
	oCMenu.makeMenu('top51','top5','The Borg',strPrefixURL+'content/theBorg.php')
	oCMenu.makeMenu('top52','top5','Educatia mea',strPrefixURL+'content/educatiaMea.php')
	oCMenu.makeMenu('top53','top5','Romania','')
//Leave this line - it constructs the menu
oCMenu.construct()		

/*OPTIONAL LINE:
Because some browsers (especially our old friend NS4)
have problems with this initial frame load you might
want to add a line similar to this (replace MyFrameName
with the name of you frame):

top.frmMain.location.reload()

This will ensure that the menu is loaded when 
the first page is loaded in the main frame.

This also helps the resize problems in Opera and NS4
*/
top.middle.location.reload() 

