var current1 = 0;
var current2 = 0;
var linkuri = new Array();
linkuri[0]='&nbsp;';

function deschide(nume, lat, inl, titlu)
{
 sw=screen.width;
 sh=screen.height;
 iw=lat+20;
 ih=inl+28;
 tleft=(sw-iw)/2;
 ttop=(sh-ih)/2;
 textprops="left="+tleft+" top="+ttop+" height="+ih+" width="+iw+" resizable=no";
 win1=window.open(nume,"win1",textprops);
 win1.document.title=titlu;
 win1.focus();
}

function menuShow(id, level) {
	var div2 = getObj('level2');
	var div3 = getObj('level3');

	if (current1 && (level == 2)) {
		change_class(getObj('menu' + current1), 'menu2');
	} else if (current2 && (level == 3)) {
		change_class(getObj('menu' + current2), 'menu2');
	}
	if (id) {
		change_class(getObj('menu' + id), 'menu2Sel');
	}

	if (level == 2) {
		current1 = id;
		current2 = 0;
		div2.innerHTML = linkuri[id];
		div3.innerHTML = '';
	} else if (level == 3) {
		current2 = id;
		div3.innerHTML = linkuri[id];
	}
}

function popupImg(sPicURL, sTitle) { 
	window.open("image.popup.htm?"+sPicURL+'?'+sTitle, "", "resizable=1,height=200,width=200"); 
}
