function ppup(ob) {
	var width  = 1000;
	var height = 610;
	var top    = (screen.height - height) / 2;
	var left   = (screen.width  - width)  / 2;
	var linkhref = ob.href;
    var win=window.open(linkhref, "_blank", "left="+left+",top="+top+",width="+width+",height="+height+",status=no,toolbar=no,menubar=no,resizable=yes,location=no,scrollbars=yes");
    win.focus();
}


function fp(ob) {
	var width  = 1000;
	var height = 610;
	var top    = (screen.height - height) / 2;
	var left   = (screen.width  - width)  / 2;
	var linkhref = ob.href;
    var win=window.open(linkhref, "_blank", "left="+left+",top="+top+",width="+width+",height="+height+",status=no,toolbar=no,menubar=no,resizable=yes,location=no,scrollbars=yes");
    win.focus();
}



var interval_tt;

function tt(id) {  //  intarzie tooltip dinamic
	clearInterval(interval_tt);
	interval_tt = setInterval('tt_intarziat('+id+')',600);

}


function tt_intarziat(id) { // tooltip dinamic
		clearInterval(interval_tt);
		Tip('Loading...');

	    var objXMLHttp=null;
	    if (window.XMLHttpRequest) {
	        objXMLHttp=new XMLHttpRequest()
	    }
	    else if (window.ActiveXObject) {
	        objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
	    }

	    function replace() {
	      objXMLHttp.open("GET", "ajax_descriere.php?id="+id, true);
	      objXMLHttp.onreadystatechange=function() {
	        if(objXMLHttp.readyState == 4) {
	          Tip(objXMLHttp.responseText);
	        }
	      }
	      objXMLHttp.send(null);
	    }

		replace();
}









		function lightbox_adaugat() {
			document.getElementById('lightbox_area').innerHTML = '<!--font class="mai_mic">Adaugat in lightbox</font-->';
		}


		function add_lightbox(foto_id) {
			if(typeof(window.opener.parent.lightbox)!="undefined" && false)  {
				window.opener.parent.lightbox.location.href = 'iframe_lightbox.php?action=add_lightphoto&foto_id='+foto_id;
			} else {
			    var request=null;
			    if (window.XMLHttpRequest) {
			        request=new XMLHttpRequest()
			    }
				addr = 'iframe_lightbox.php?action=add_lightphoto&foto_id='+foto_id;
				request.open("GET", addr, true);
				request.onreadystatechange = function() {
					if (request.readyState == 4) {
						response = request.responseText;
					} // end if
				} // end function block
				request.send(null);
			} // end if

		} // end function


