
function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		profil_over = newImage("images/profil-over.gif");
		publicatii_over = newImage("images/publicatii-over.gif");
		convergenta_over = newImage("images/convergenta-over.gif");
		arhiva_over = newImage("images/arhiva-over.gif");
		contact_over = newImage("images/contact-over.gif");
		preloadFlag = true;
	}
}
function setBgPagini(theCell, thePointerColor)
{
	if (thePointerColor == '' || typeof(theCell.style) == 'undefined') {
        return false;
    }
	theCell.style.backgroundColor=thePointerColor;
    return true;
}
function carti_afisare(var1){

newWindow=window.open("","Carti","width=400,height=150,resizable=no");

newWindow.document.write("<head><title>Carte :");
newWindow.document.write(var1);
newWindow.document.write("</title></head>");
newWindow.document.write('<body topmargin=0 leftmargin=0 bgcolor=#ffffff><table width=400 align=center border=0 cellpadding=0 cellspacing=0><tr><td width=150 align=center valign=top style="border-right:1px #999999 dashed;">');
newWindow.document.write("<br><img src=images/carti/");
newWindow.document.write(var1);
newWindow.document.write(" onClick='window.close();' title='Click pentru inchiderea pozei'></td><td width=250 valign=top align=left styler='border-top:1px #999999 dashed;'><br>&nbsp; <a href='sumare/");
newWindow.document.write(var1);
newWindow.document.write(".pdf' target=''>descarca cuprinsul</a>");
newWindow.document.write("</td></tr></table>");
newWindow.document.bgColor="#f0f0f0";
newWindow.document.close();
newWindow.focus();
//newWindow.close();
}