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) {
		despre_noi_over = newImage("images/despre-noi-over.gif");
		servicii_over = newImage("images/servicii-over.gif");
		portofoliu_over = newImage("images/portofoliu-over.gif");
		certificari_over = newImage("images/certificari-over.gif");
		utile_over = newImage("images/utile-over.gif");
		contact_over = newImage("images/contact-over.gif");
		preloadFlag = true;
	}
}



////////////// POPUP HARTA
function harta(var1){
if(var1=='harta_jilava.jpg') { newWindow=window.open("","Harta","width=700,height=346,resizable=yes"); }
else if (var1=='harta_lumina.gif') { newWindow=window.open("","Harta","width=805,height=477,resizable=yes"); }

newWindow.document.write("<title>Pavaj.ro Harta Contact</title>");
newWindow.document.write("<body topmargin=0 leftmargin=0><table align=center><tr><td width=100% height=100% align=center valign=middle>");
newWindow.document.write("<img src=images/harta/");
newWindow.document.write(var1);
newWindow.document.write(" onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");
newWindow.document.bgColor="#cccccc";
newWindow.document.close();
newWindow.focus();
//newWindow.close();
}

function gard(var1)
{
switch(var1)
{ 
  case 'gard0-mare.jpg':
     newWindow=window.open("","Garduri","width=400,height=300,resizable=yes");
	 break;
  case 'gard1-mare.jpg':
     newWindow=window.open("","Garduri","width=400,height=276,resizable=yes");
	 break;
  case 'gard2-mare.jpg':
     newWindow=window.open("","Garduri","width=400,height=184,resizable=yes");
	 break;
  case 'gard3-mare.jpg':
     newWindow=window.open("","Garduri","width=400,height=252,resizable=yes");
	 break;
  case 'gard4-mare.jpg':
     newWindow=window.open("","Garduri","width=400,height=282,resizable=yes");
	 break;
  case 'poarta-dubla-mare.jpg':
     newWindow=window.open("","Garduri","width=400,height=196,resizable=yes");
	 break;	 
  default:
     newWindow=window.open("","Garduri","width=400,height=300,resizable=yes");
	 break;
}	

newWindow.document.write("<title>Pavaj.ro Garduri beton</title>");
newWindow.document.write("<body topmargin=0 leftmargin=0><table width=400 align=center><tr><td width=100% height=100% align=center valign=middle>");
newWindow.document.write("<img src=images/garduri/");
newWindow.document.write(var1);
newWindow.document.write(" onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");
newWindow.document.bgColor="#cccccc";
newWindow.document.close();
newWindow.focus();
//newWindow.close();
}

function certificare(var1){

newWindow=window.open("","Certificari","width=400,height=290,resizable=yes");
newWindow.document.write("<title>Pavaj.ro Certificari SRAC</title>");
newWindow.document.write("<body topmargin=0 leftmargin=0 bgcolor=#ffffff><table width=400 align=center><tr><td width=100% height=100% align=center valign=middle>");
newWindow.document.write("<img src=images/certificari/");
newWindow.document.write(var1);
newWindow.document.write(" onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");
newWindow.document.bgColor="#cccccc";
newWindow.document.close();
newWindow.focus();
//newWindow.close();
}
function fatada(var1){

newWindow=window.open("","Fatada","width=400,height=300,resizable=yes");
newWindow.document.write("<title>Pavaj.ro Set elemente de fatada</title>");
newWindow.document.write("<body topmargin=0 leftmargin=0 bgcolor=#ffffff><table width=400 align=center><tr><td width=100% height=100% align=center valign=middle>");
newWindow.document.write("<img src=images/elementedefatada/");
newWindow.document.write(var1);
newWindow.document.write(" onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");
newWindow.document.bgColor="#cccccc";
newWindow.document.close();
newWindow.focus();
//newWindow.close();
}
function preturi(var1){

newWindow=window.open("","Preturi","width=400,height=300,resizable=yes");
newWindow.document.write("<title>Preturi pavaj</title>");
newWindow.document.write("<body topmargin=0 leftmargin=0 bgcolor=#ffffff><table width=400 align=center><tr><td width=100% height=100% align=center valign=middle>");
newWindow.document.write("<img src=images/preturi/");
newWindow.document.write(var1);
newWindow.document.write(" onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");
newWindow.document.bgColor="#cccccc";
newWindow.document.close();
newWindow.focus();
//newWindow.close();
}

function elementeaditionalea(var1){

newWindow=window.open("","elementeaditionale","width=400,height=300,resizable=yes");
newWindow.document.write("<title>Elemente aditionale</title>");
newWindow.document.write("<body topmargin=0 leftmargin=0 bgcolor=#ffffff><table width=400 align=center><tr><td width=100% height=100% align=center valign=middle>");
newWindow.document.write("<img src=images/preturi/");
newWindow.document.write(var1);
newWindow.document.write(".jpg onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");
newWindow.document.bgColor="#cccccc";
newWindow.document.close();
newWindow.focus();
//newWindow.close();

}

function elementeaditionaleb(var1){

newWindow=window.open("","elementeaditionale","width=400,height=300,resizable=yes");
newWindow.document.write("<title>Elemente aditionale</title>");
newWindow.document.write("<body topmargin=0 leftmargin=0 bgcolor=#ffffff><table width=400 align=center><tr><td width=100% height=100% align=center valign=middle>");
newWindow.document.write("<img src=images/elementeaditionale/");
newWindow.document.write(var1);
newWindow.document.write("-grup-mare.jpg onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");
newWindow.document.bgColor="#cccccc";
newWindow.document.close();
newWindow.focus();
//newWindow.close();
}
function elementeaditionalec(var1){

newWindow=window.open("","elementeaditionale","width=400,height=300,resizable=yes");
newWindow.document.write("<title>Elemente aditionale</title>");
newWindow.document.write("<body topmargin=0 leftmargin=0 bgcolor=#ffffff><table width=400 align=center><tr><td width=100% height=100% align=center valign=middle>");
newWindow.document.write("<img src=images/elementeaditionale/");
newWindow.document.write(var1);
newWindow.document.write("-aplicat-mare.jpg onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");
newWindow.document.bgColor="#cccccc";
newWindow.document.close();
newWindow.focus();
//newWindow.close();
}
function pavajproduse(var1){

newWindow=window.open("","Pavajproduse","width=400,height=300,resizable=yes");

newWindow.document.write("<title>Pavaj produse</title>");
newWindow.document.write("<body topmargin=0 leftmargin=0 bgcolor=#ffffff><table width=400 align=center><tr><td width=100% height=100% align=center valign=middle>");
newWindow.document.write("<img src=images/pavaj/");
newWindow.document.write(var1);
newWindow.document.write(" onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");
newWindow.document.bgColor="#cccccc";
newWindow.document.close();
newWindow.focus();
//newWindow.close();
}
function pavajprodusex(var1){

newWindow=window.open("","Pavajproduse","width=400,height=300,resizable=yes");
newWindow.document.write("<title>Pavaj produse</title>");
newWindow.document.write("<body topmargin=0 leftmargin=0 bgcolor=#ffffff><table width=400 align=center><tr><td width=100% height=100% align=center valign=middle>");
newWindow.document.write("<img src=images/preturi/");
newWindow.document.write(var1);
newWindow.document.write(" onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");
newWindow.document.bgColor="#cccccc";
newWindow.document.close();
newWindow.focus();
//newWindow.close();
}
function portofoliu(var1){

newWindow=window.open("","PavajPortofoliu","width=400,height=300,resizable=yes");

newWindow.document.write("<title>Pavaj Portofoliu</title>");
newWindow.document.write("<body topmargin=0 leftmargin=0 bgcolor=#ffffff><table width=400 align=center><tr><td width=100% height=100% align=center valign=middle>");
newWindow.document.write("<img src=images/portofoliu/");
newWindow.document.write(var1);
newWindow.document.write("-mare.jpg onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");
newWindow.document.bgColor="#cccccc";
newWindow.document.close();
newWindow.focus();
//newWindow.close();
}
/////////////////////////////////////////

function setBgPagini(theCell, thePointerColor)
{
	if (thePointerColor == '' || typeof(theCell.style) == 'undefined') {
        return false;
    }
	theCell.style.backgroundColor=thePointerColor;
    return true;
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

