// JavaScript Document
function setBgPagini(theCell, thePointerColor)
{
	if (thePointerColor == '' || typeof(theCell.style) == 'undefined') {
        return false;
    }
	theCell.style.backgroundColor=thePointerColor;
    return true;
}

function afisareAlbum(var1,var2,var3,var4){
if(var4==375) newWindow=window.open("","Evenimente","width=500,height=375");
else newWindow=window.open("","Evenimente","width=500,height=668");
newWindow.document.write("<title>Evenimente ");
newWindow.document.write(var1);
newWindow.document.write("</title><body topmargin=0 leftmargin=0>");
newWindow.document.write("<img src=poze/album/");
newWindow.document.write(var2);
newWindow.document.write(".jpg onClick='window.close();' title='Click pentru inchiderea pozei'>");
newWindow.document.bgColor="#cccccc";
newWindow.document.close();
newWindow.focus();
}

//functii rollover

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) {
		en_over = newImage("images/en-over.gif");
		en_down = newImage("images/en-down.gif");
		ro_over = newImage("images/ro-over.gif");
		ro_down = newImage("images/ro-down.gif");
		preloadFlag = true;
	}
}