if(mnOn){
	outKill=true;	mSecsVis=400;

	prGl=["name","drop","dropPad","dropSp","dropSz","isRight","on3d","xOff","yOff","oppad","imgSrc","imgSiz"];
	prCm=["fntC","fntB","fntI","mbkgC","brdC","brdW","brdL","brdD","brdS","sprW","sprL","sprD","ovfntC","movBkgC"];

	mLoaded = false;
	isWin = (navigator.appVersion.indexOf("Win") != -1)
	if(!isWin && !isMac) NSfontOver = showVisited = false;

	mCreated = false;
	menuLoc = null;
	mnindex = 1000;
	mnInit();
	}

function mnInit(){
	if(mCreated){for(i=1; i<mnCount; i++) cur=eval("mnlst"+i); clearTimeout(mnTime);}
	mnCount = 0;
	mCreated = mCreating = mnOver = false;
	curMn = curLst = mnTime = null;
	}

function IEunloaded(){mnInit();	mLoaded = false;	setTimeout("keepTrack()",50);}

function keepTrack(){if(menuLoc.document.readyState == "complete"){mnInit(); mnStart();}	else setTimeout("keepTrack()",50);}

function mnStart(){
	mLoaded = true;
	menuLoc = window;
	if(!outKill){menuLoc.document.onmousedown = mClick;}
	mCreating = true;
	while(eval("window.mnAr" + mnCount)){
		mnDef=eval("mnDef" + mnCount);
		mnDefBr=eval("mnDef" + br + mnCount);
		gl=eval("mnGlob"+mnCount);
		for(i=0;i<gl.length;i++)eval(prGl[i] + "=" + gl[i]);
		imgPos = isRight ? ">"  : " ALIGN=RIGHT>";
		imgStr = imgSiz ? "<IMG SRC=" + imgSrc + " WIDTH=" + imgSiz + " HEIGHT=" + imgSiz +" BORDER=0 VSPACE=1" + imgPos : "";
		var owidth = document.all ? 140 : 133;
		sLstStr = " style='position:absolute;visibility:hidden;left:0px;top:0px;width:140px'>"
		sOpStr	= " style='padding:3px;width:" + owidth + "px;font-family:GrHelvetica,verdana,ELOT-Spider,Tahoma;font-size:11px;color:#ffffff;background-color:#891f2c;border-width:1px;border-style:solid;border-top-color:#FFFFFF;border-left-color:#FFFFFF;border-bottom-color:#FFFFFF;border-right-color:#FFFFFF'>"
		for(i=0; i<prCm.length; i++) eval(prCm[i] + "=" + mnDef[i]);
		menuIE(false,mnCount);
		mnCount++;
		}
	mCreated=true; mCreating=false;
	}
	
function menuIE(isChild,lCnt,parLst,parOp){
	var mptr, opCnt, array=eval("mnAr" + lCnt);
	var maxOp=array.length/4;
	var dr=(!isChild) && drop;
	var width=0, left, top;
	var lStr;
	if(dr){
		var pleft=0;
		topw = eval("mnTop" + lCnt);
		for(i=0; i<maxOp; i++) width += topw[i]+3;
		//poso kato na einai i mpara
		left=6; top=153;
		lStr="<DIV ID=mnlst" + lCnt + " STYLE='position:absolute;visibility:visible;left:" + left + ";top:" + top + ";width:" + width + "'><table cellpadding=0 cellspacing=0 border=0><tr valign=middle align=center>";
		}
	else lStr="<DIV ID=mnlst" + lCnt + sLstStr;

	for(opCnt=0; opCnt<maxOp; opCnt++){
 		opName = "mnop" + lCnt + "_" + opCnt;
		mptr=opCnt*4; inTxt=array[mptr]; isSub=array[mptr + 3];
		if(dr){
			lStr += "<td height=22 width=" + topw[opCnt] + "><span id=" + opName + " style='font-family:GrHelvetica,ELOT-Spider,Tahoma,MS Sans Serif,sans-serif;font-size:11px;color:#FFFFFF;padding-top:3px;padding-bottom:3px;padding-left:11px;padding-right:11px;vertical-align:middle'>" + inTxt + "</span></td>";
			if(opCnt<maxOp-1 && dropSz>0)	lStr+="<td><img src='" + dropSp + "'></td>";
			}
		else{
			hStr = isSub ? imgStr + inTxt : inTxt;
			lStr += "<div ID=" + opName +  sOpStr + hStr + "</div>";
			}
		if(isSub){menuIE(true,lCnt + "_" + opCnt);}
		}
		
	if(dr) document.write(lStr+"</tr></table></div>");	else  document.write(lStr+"</div>");

	var lst = document.all ? eval("mnlst" + lCnt) : document.getElementById("mnlst" + lCnt);
	if(dr){lst.pleft=left; lst.ptop=top;}
	lst.onmouseover=lstOvr;	lst.onmouseout=lstOut;
	lst.showIt=showIt; lst.keepIn=keepIn; lst.hTree=hTree; lst.hPar=hPar; lst.hChl=hChl; lst.moveTo=moveTo;
	lst.onselectstart = function(){return false;};
	lst.chlVis = lst.isOn = false;
	lst.fullHeight=lst.scrollHeight;
	lst.crOp=null;
	lst.drop = dr;
	lst.xOff=xOff; lst.yOff=yOff;
	lst.isChild	= isChild;
	lst.style.zIndex=mnindex--;
	if(!isChild)curMn=lst;
	
	for(opCnt=0; opCnt<maxOp; opCnt++){
		mptr=opCnt*4; linkText=array[mptr + 1]; isSub=array[mptr + 3];
 		var op = document.all ? eval("mnop" + lCnt + "_" + opCnt) : document.getElementById("mnop" + lCnt + "_" + opCnt);
 		op.onmouseover = opOver;
 		op.container = lst;
 		op.isSub=isSub;
		if(linkText){op.linkText=linkText; op.onclick = mLink; op.style.cursor="hand";}	else op.style.cursor="default";
		if(dr){op.pleft=pleft; pleft+=topw[opCnt]+3;}	else op.ptop = op.offsetTop;
		if(isSub){
			op.child = document.all ? eval("mnlst" + op.id.substr(op.id.indexOf("_")-1)) : document.getElementById("mnlst" + op.id.substr(op.id.indexOf("_")-1));
			op.child.parentLst = lst;
			op.child.parentOp = op;
			}
		}
	}

function lstOvr(){
	if(mnTime)clearTimeout(mnTime);
	if(!this.isChild){if(curMn!=this)	curMn.hTree();	curMn=this;}
	this.isOn=mnOver=true;
	curLst=this;
	}

function lstOut() {
	this.isOn = mnOver = false;
	if(outKill) mnTime = setTimeout("curLst.hTree()",mSecsVis);
	}

function opOver(){
	if(this.container.crOp != this){
	lst=this.container;
	if(lst.crOp){lst.crOp.style.backgroundColor=mbkgC;	}
	this.style.backgroundColor=movBkgC;
	lst.crOp = this;
	if(lst.chlVis && lst.visibleChild!=this.child) lst.hChl(this);
	if(this.isSub){
		if(lst.drop){this.child.moveTo(lst.pleft + this.pleft, lst.ptop + 20);}
		else{
			hrOfs = 140 - lst.xOff;
			this.child.moveTo(parseInt(lst.style.left) + hrOfs, this.ptop + parseInt(lst.style.top) + lst.yOff);
			this.child.keepIn();
			}
		lst.chlVis = true;
		lst.visibleChild = this.child;
		this.child.showIt(true);
		}
	}}

function showIt(on){
	if(this.isChild) this.style.visibility = (on) ? "visible" : "hidden";
	if(!this.hasHilite && this.crOp){
		with(this.crOp.style){backgroundColor = mbkgC; color = fntC;}
		this.crOp.isHilited = false;
		}
	this.crOp = null;
	}

function keepIn(){
  winRight = document.body.scrollLeft + document.body.clientWidth;
	rightPos = parseInt(this.style.left) + 140;
	if(rightPos>winRight){
		if(this.isChild) this.style.left = parseInt(this.parentLst.style.left) - 140 + this.xOff;
		else this.style.left = parseInt(this.style.left)-(rightPos - winRight);
		}
	winBot = document.body.scrollTop + document.body.clientHeight;
	botPos = parseInt(this.style.top) + this.fullHeight;
	if(botPos>winBot) this.style.top = parseInt(this.style.top)-(botPos - winBot + 5);
	if(this.style.pixelLeft<menuLoc.document.body.scrollLeft) this.style.left = this.isChild ? parseInt(this.parentLst.style.left) + 140 - this.xOff : 5;
	}

function hTree(){mnTime=null;	if(mnOver)return;	if(this.chlVis)this.hChl();	this.hPar();}

function hPar(){
	if(this.isChild){this.showIt(false); this.parentLst.isOn=false; this.parentLst.hPar();}
	if(!this.isOn && !mnOver) this.showIt(false);
	}

function hChl(mnop){
	chl = this.visibleChild;
	while(chl.chlVis){chl.visibleChild.showIt(false); chl.chlVis=false; chl=chl.visibleChild;}
	if(!this.isOn || !mnop.isSub || this.visibleChild!=this.child){this.visibleChild.showIt(false); this.chlVis=false;}
	}

function mClick(){if(!mnOver && !curLst==null && !curLst.isOn){lst=curLst; lst.hTree();}}

function moveTo(xPos,yPos){this.style.left=xPos; this.style.top=yPos;}

function mLink(){window.location.href = this.linkText;}
 
function reDo(){if(loader.innerWidth!=origWidth || loader.innerHeight!=origHeight){mnInit(); menuLoc.location.reload();}}
