var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

function arata(elmnt){
	document.getElementById(elmnt).style.display = "block";
	document.getElementById(elmnt).style.visibility = "visible";
	}
function ascunde(elmnt){
	document.getElementById(elmnt).style.display = "none";
	document.getElementById(elmnt).style.visibility = "hidden";
}

function schimbCuloareaBordurii(x, culoare){
	var elmnt = "oferta-home-" + x;
	var c = "4px solid " + culoare;
	document.getElementById(elmnt).style.borderBottom = c;
}

function overIn(d, x){
	arata(d);
	schimbCuloareaBordurii(x, "#FFFFFF");
}

function overOut(d, x){
	ascunde(d);
	schimbCuloareaBordurii(x, "#899AFD");
}

function arataN(elmnt){
	var el = "of";
	var i = 0;
	for(i=1;i<=9;i++){
		el = "oferte-sezon0" + i;
		if(el != elmnt){
			ascunde(el);
		}
	}
	for(i=0;i<=3;i++){
		el = "oferte-sezon1" + i;
		if(el != elmnt){
			ascunde(el);
		}
	}
	/*arata(elmnt);*/
	var a = document.getElementById(elmnt).style.display;
	if(document.getElementById(elmnt).style.display == "block"){
		ascunde(elmnt);
	} else {
		arata(elmnt);
	}
}
