function hideAllSubLevels1 () {
	var level1 = document.getElementsByTagName("ul");
	for (var i=0; i<level1.length; i++) {
		if (level1[i].className == "level1") {
			level1[i].style.display = "none";
		}
	}
}

function hideAllSubLevels2 () {
	var level2 = document.getElementsByTagName("ul");
	for (var i=0; i<level2.length; i++) {
		if (level2[i].className == "level2") {
			level2[i].style.display = "none";
		}
	}
}

function openLevel1(thisLIid) {
	hideAllSubLevels2();
	hideAllSubLevels1();
	document.getElementById(thisLIid).style.display = "block";
}

function openLevel2(thisLIid) {
	hideAllSubLevels2();
	document.getElementById(thisLIid).style.display = "block";
}


 function OpenNewWindow(photo,title,width,height)
	{
	/*
	alert(winHeight);
	if (height > winHeight) {
		height = winHeight-30;
		myscrollbars = 1;
	}
	if (width > winWidth) {
		width = winWidth-30;
		myscrollbars = 1;
	}
	*/
	var myscrollbars = 0;
	var w = width;
	var h = height + 50;
	var windowparameters = 'resizable=0,location=0,directories=0,status=0,menubar=0,scrollbars=' + myscrollbars + ',toolbar=0,width=' + w + ',height=' + h + ',left=' +(winWidth-w)+ ',top=0';
	NewWindow=window.open("","NewOne", windowparameters);
	NewWindow.document.write ("<HTML><HEAD><TITLE>");
	NewWindow.document.write ("ΔΙΟΙΚΗΤΙΚΟ ΠΡΩΤΟΔΙΚΕΙΟ ΑΘΗΝΩΝ");
	NewWindow.document.write ("</TITLE>");
	NewWindow.document.write ("<meta http-equiv=\"Content-Type\" content=\"text/html;charset=iso-8859-7\">");
	
	NewWindow.document.write ("</HEAD>");
	NewWindow.document.write ("<BODY STYLE=\"padding:0; margin:0;\">");
	NewWindow.document.write ("<img src=\"");
	NewWindow.document.write (photo);
	NewWindow.document.write ("\" border=0 style=\"border-bottom:10px solid #FFB67B;\">");
	NewWindow.document.write ("<div style=\"display:block; text-align:center; font-size:12px; padding: 10px; background: #FFF7F7 url(images/backTopCenter.gif) repeat-x;\">");
	NewWindow.document.write (title);
	NewWindow.document.write ("</div></BODY></HTML>");
	return false;
}