function MM_jumpMenu(targ,selObj,restore){ //v3.0
    eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
    if (restore) selObj.selectedIndex=0;
}

function open_fereastra(cale,x,y){
        eval("window.open('"+cale+"','','height='+y+',width='+x+',type=fullWindow,alwaysLowered=0,alwaysRaised=1,channelmode=0,dependent=0,directories=0,fullscreen=0,hotkeys=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,titlebar=0,toolbar=0, z-lock=1,screenX=0,screeny=0,left=10,top=50,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,fullscreen=no')");
}

function openw(cale){
            eval("window.open('"+cale+"','',' toolbar=no, menubar=no,scrollbars=yes,resizable=no,height=800,width=860,top=0,left=0')");
}


function openw_poza_prod(cale){
	     eval("window.open('"+cale+"','',' toolbar=no, menubar=no,scrollbars=yes,resizable=no,height=520,width=450,top=10,left=10')");
}

function open_fereastra_fixa(cale){
eval("window.open('"+cale+"','',' toolbar=no, menubar=no,scrollbars=yes,resizable=no,height=500,width=500,top=10,left=10')");
}


/* galerie poze */
function gal_open_centered(url) {
	w = 800;
	h = 750;
	sw = screen.width;
	sh = screen.height;
	l = (sw - w) / 2;
	t = (sh - h) / 2;
	window.open(url, 'Galerie', 'width='+w+',height='+h+',top='+t+',left='+l+',scrollbars=yes,resizable=no');
}

function gal_open_emagia(url) {
	w = 627;
	h = 650;
	sw = screen.width;
	sh = screen.height;
	l = (sw - w) / 2;
	t = (sh - h) / 2;
	window.open(url, 'Galerie', 'width='+w+',height='+h+',top='+t+',left='+l+',scrollbars=no,resizable=no');
}

function showPic (whichpic,a,b) {
	if (document.getElementById) {
		/*document.getElementById('placeholder').src = whichpic.href.replace('thumbs', 'big');*/
		document.getElementById('placeholder').src = whichpic.href;
		document.getElementById('placeholder').width = a;
		document.getElementById('placeholder').height = b;
		if (whichpic.title) {
			document.getElementById('desc').childNodes[0].nodeValue = whichpic.title;
		} else {
			document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue;
		}
		return false;
	} else {
		return true;
	}
}
/* galerie poze ends*/
