

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) {

		/*

		pavaj_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/pavaj-over.jpg");

		elementeaditionale_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/elementeaditionale-over.jpg");

		elementedefatada_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/elementedefatada-over.jpg");

		garduridebeton_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/garduridebeton-over.jpg");

		preturi_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/preturi-over.jpg");

		desprenoi_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/desprenoi-over.gif");

		oferta_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/oferta-over.gif");

		portofoliu_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/portofoliu-over.gif");

		comanda_over = newImage("<?php echo LinkCatreSite(); ?>images/comanda-over.gif");

		certificari_over = newImage("<?php echo LinkCatreSite(); ?>images/certificari-over.gif");

		*/

		intra_over = newImage("<?php echo LinkCatreSite(); ?>images/index/intra-over.jpg");

		/*

		societatea_over = newImage("<?php echo LinkCatreSite(); ?>images/index/societatea-over.gif");

		portofoliu_over = newImage("<?php echo LinkCatreSite(); ?>images/index/portofoliu-over.gif");

		oferta_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/oferta-over.gif");

		preturi_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/preturi-over.gif");

		contact_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/contact-over.gif");

		desprenoi_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/desprenoi-over.gif");

		preturi_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/preturi-over.gif");

		oferta_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/oferta-over.gif");

		comanda_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/comanda-over.gif");

		portofoliu_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/portofoliu-over.gif");

		alteproduse_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/alteproduse-over.gif");

		certificari_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/certificari-over.gif");

		pavaj_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/pavaj-over.gif");

		*/

		desprenoi_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/desprenoi-over.gif");

		preturi_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/preturi-over.gif");

		oferta_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/oferta-over.gif");

		comanda_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/comanda-over.gif");

		portofoliu_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/portofoliu-over.gif");

		alteproduse_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/alteproduse-over.gif");

		certificari_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/certificari-over.gif");

		pavaj_over = newImage("<?php echo LinkCatreSite(); ?>images/meniu/pavaj-over.gif");

		preloadFlag = true;

		preloadFlag = true;

	}

}

////////////// POPUP HARTA

function harta(var1){

if(var1=='harta_jilava.jpg') { newWindow=window.open("","Harta","width=700,height=346"); }

else if (var1=='harta_lumina.gif') { newWindow=window.open("","Harta","width=805,height=477"); }



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=http://www.pavaj.ro/images/harta/");

newWindow.document.write(var1);

newWindow.document.write(" onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");

newWindow.document.bgColor="#ffffff";

newWindow.document.close();

newWindow.focus();

//newWindow.close();

}



function gard(var1)

{

var xxl='var message="You can NOT right click here";var closeWin="1";function IE(e) {     if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3"))     {            self.close();          return false;     }}function NS(e) {     if (document.layers || (document.getElementById && !document.all))     {          if (e.which == "2" || e.which == "3")          {                 self.close();               return false;          }     }}document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false")';

switch(var1)

{ 

  case 'gard0-mare.jpg':

     newWindow=window.open("","Garduri","width=400,height=300");

	 break;

  case 'gard1-mare.jpg':

     newWindow=window.open("","Garduri","width=400,height=276");

	 break;

  case 'gard2-mare.jpg':

     newWindow=window.open("","Garduri","width=400,height=184");

	 break;

  case 'gard3-mare.jpg':

     newWindow=window.open("","Garduri","width=400,height=252");

	 break;

  case 'gard4-mare.jpg':

     newWindow=window.open("","Garduri","width=400,height=282");

	 break;

  case 'poarta-dubla-mare.jpg':

     newWindow=window.open("","Garduri","width=400,height=196");

	 break;	 

  default:

     newWindow=window.open("","Garduri","width=400,height=300");

	 break;

}	

newWindow.document.write("<title>Pavaj.ro Garduri beton</title>");

newWindow.document.write("<script type='text/javascript'>");

newWindow.document.write(xxl);

newWindow.document.write("</script>");

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=http://www.pavaj.ro/images/garduri/");

newWindow.document.write(var1);

newWindow.document.write(" onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");

newWindow.document.bgColor="#ffffff";

newWindow.document.close();

newWindow.focus();

//newWindow.close();

}



function certificare(var1){

var xxl='var message="You can NOT right click here";var closeWin="1";function IE(e) {     if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3"))     {            self.close();          return false;     }}function NS(e) {     if (document.layers || (document.getElementById && !document.all))     {          if (e.which == "2" || e.which == "3")          {                 self.close();               return false;          }     }}document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false")';

newWindow=window.open("","Certificari","width=400,height=290");

newWindow.document.write("<title>Pavaj.ro Certificari SRAC</title>");

newWindow.document.write("<script type='text/javascript'>");

newWindow.document.write(xxl);

newWindow.document.write("</script>");

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=");

newWindow.document.write(var1);

newWindow.document.write(" onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");

newWindow.document.bgColor="#ffffff";

newWindow.document.close();

newWindow.focus();

//newWindow.close();

}

function fatada(var1){

var xxl='var message="You can NOT right click here";var closeWin="1";function IE(e) {     if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3"))     {            self.close();          return false;     }}function NS(e) {     if (document.layers || (document.getElementById && !document.all))     {          if (e.which == "2" || e.which == "3")          {                 self.close();               return false;          }     }}document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false")';

newWindow=window.open("","Fatada","width=400,height=300");

newWindow.document.write("<title>Pavaj.ro Set elemente de fatada</title>");

newWindow.document.write("<script type='text/javascript'>");

newWindow.document.write(xxl);

newWindow.document.write("</script>");

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=");

newWindow.document.write(var1);

newWindow.document.write(" onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");

newWindow.document.bgColor="#ffffff";

newWindow.document.close();

newWindow.focus();

//newWindow.close();

}

function preturi(var1){

var xxl='var message="You can NOT right click here";var closeWin="1";function IE(e) {     if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3"))     {            self.close();          return false;     }}function NS(e) {     if (document.layers || (document.getElementById && !document.all))     {          if (e.which == "2" || e.which == "3")          {                 self.close();               return false;          }     }}document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false")';

newWindow=window.open("","Preturi","width=400,height=300");

newWindow.document.write("<title>Preturi pavaj</title>");

newWindow.document.write("<script type='text/javascript'>");

newWindow.document.write(xxl);

newWindow.document.write("</script>");

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="#ffffff";

newWindow.document.close();

newWindow.focus();

//newWindow.close();

}



function elementeaditionalea(var1){

var xxl='var message="You can NOT right click here";var closeWin="1";function IE(e) {     if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3"))     {            self.close();          return false;     }}function NS(e) {     if (document.layers || (document.getElementById && !document.all))     {          if (e.which == "2" || e.which == "3")          {                 self.close();               return false;          }     }}document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false")';

newWindow=window.open("","elementeaditionale","width=400,height=300");

newWindow.document.write("<title>Elemente aditionale</title>");

newWindow.document.write("<script type='text/javascript'>");

newWindow.document.write(xxl);

newWindow.document.write("</script>");

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=");

newWindow.document.write(var1);

newWindow.document.write(".jpg onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");

newWindow.document.bgColor="#ffffff";

newWindow.document.close();

newWindow.focus();

//newWindow.close();



}



function elementeaditionaleb(var1){

var xxl='var message="You can NOT right click here";var closeWin="1";function IE(e) {     if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3"))     {            self.close();          return false;     }}function NS(e) {     if (document.layers || (document.getElementById && !document.all))     {          if (e.which == "2" || e.which == "3")          {                 self.close();               return false;          }     }}document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false")';

newWindow=window.open("","elementeaditionale","width=400,height=300");

newWindow.document.write("<title>Elemente aditionale</title>");

newWindow.document.write("<script type='text/javascript'>");

newWindow.document.write(xxl);

newWindow.document.write("</script>");

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=");

newWindow.document.write(var1);

newWindow.document.write("-grup-mare.jpg onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");

newWindow.document.bgColor="#ffffff";

newWindow.document.close();

newWindow.focus();

//newWindow.close();

}

function elementeaditionalec(var1){

var xxl='var message="You can NOT right click here";var closeWin="1";function IE(e) {     if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3"))     {            self.close();          return false;     }}function NS(e) {     if (document.layers || (document.getElementById && !document.all))     {          if (e.which == "2" || e.which == "3")          {                 self.close();               return false;          }     }}document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false")';

newWindow=window.open("","elementeaditionale","width=400,height=300");

newWindow.document.write("<title>Elemente aditionale</title>");

newWindow.document.write("<script type='text/javascript'>");

newWindow.document.write(xxl);

newWindow.document.write("</script>");

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=");

newWindow.document.write(var1);

newWindow.document.write("-aplicat-mare.jpg onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");

newWindow.document.bgColor="#ffffff";

newWindow.document.close();

newWindow.focus();

//newWindow.close();

}



function pavajprodusey(var1){

var xxl='var message="You can NOT right click here";var closeWin="1";function IE(e) {     if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3"))     {            self.close();          return false;     }}function NS(e) {     if (document.layers || (document.getElementById && !document.all))     {          if (e.which == "2" || e.which == "3")          {                 self.close();               return false;          }     }}document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false")';

newWindow=window.open("","Pavajproduse","width=400,height=300");

newWindow.document.write("<title>Pavaj produse</title>");

newWindow.document.write("<script type='text/javascript'>");

newWindow.document.write(xxl);

newWindow.document.write("</script>");

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=");

newWindow.document.write(var1);

newWindow.document.write(" onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");

newWindow.document.bgColor="#ffffff";

newWindow.document.close();

newWindow.focus();

//newWindow.close();

}



function pavajproduse(var1,x,y){

var xxl='1';

//var xxl='function IE(e) {     if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3"))     {            self.close();          return false;     }}function NS(e) {     if (document.layers || (document.getElementById && !document.all))     {          if (e.which == "2" || e.which == "3")          {                 self.close();               return false;          }     }}document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false")';

newWindow=window.open("","Pavajproduse","width=450,height=340");

newWindow.document.write("<html><head><script type='text/javascript' src='http://www.pavaj.ro/functii.js'></script><link href='http://www.pavaj.ro/stiluri.css' rel='stylesheet' type='text/css'><title>Pavaj produse</title>");

newWindow.document.write("<script type='text/javascript'>");

newWindow.document.write(xxl);

newWindow.document.write("</script>");

newWindow.document.write("</head><body topmargin=0 leftmargin=0 bgcolor=#ffffff><table width=400 align=center>");

newWindow.document.write("<tr><td width=120 align=center valign=middle bgcolor=#ffffff>");

if (x==0)  newWindow.document.write("&nbsp;");

else 

  {

     newWindow.document.write("<b>&laquo;</b> <a href=javascript:pavajproduse('");																		 

     newWindow.document.write(var1+"',"+(x-1)+","+y);

     newWindow.document.write("); target=_self class=next>poza anterioara</a>");

  }

newWindow.document.write("</td><td width=210 bgcolor=#ffffff align=center><a href='javascript:window.close();' class=sus title='Click pentru inchiderea ferestrei'>Inchide fereastra</a>");

newWindow.document.write("</td><td width=120>");

if (x==y-1)  newWindow.document.write("&nbsp;");

else 

  {

newWindow.document.write("<a href=javascript:pavajproduse('");

newWindow.document.write(var1+"',"+(x+1)+","+y);

newWindow.document.write("); target=_self class=next>poza urmatoare</a> <b>&raquo;</b>");

  }

newWindow.document.write("</td></tr>");

newWindow.document.write("<tr><td colspan=3 width=100% align=center valign=middle>");

newWindow.document.write("<img src=http://www.pavaj.ro/images/pavaj/");

newWindow.document.write(var1);

newWindow.document.write("/");

newWindow.document.write(var1+x);

newWindow.document.write(".jpg onClick='window.close();' alt='pavaj - pavele - caramizi - "+var1+"' title='Click pentru inchiderea ferestrei'></td></tr></table>");

newWindow.document.bgColor="#ffffff";

newWindow.document.write("</body></html>");

newWindow.document.close();

newWindow.focus();

//newWindow.close();

}



function elemadir(var1,x,y){

	

//if (navigator.appName == "Microsoft Internet Explorer") alert('test');



newWindow=window.open("","Pavaj","width=470,height=360");



newWindow.document.write("<html><head><script type='text/javascript' src='http://www.pavaj.ro/functii.js'></script><link href='http://www.pavaj.ro/stiluri.css' rel='stylesheet' type='text/css'><title>Pavaj produse</title>");

newWindow.document.write("</head><body topmargin=0 leftmargin=0 bgcolor=#ffffff><table width=420 align=center>");

newWindow.document.write("<tr><td width=130 align=center valign=middle bgcolor=#ffffff>");

if (x==0)  newWindow.document.write("&nbsp;");

else 

  {

     newWindow.document.write("<b>&laquo;</b> <a href=javascript:elemadir('");																		 

     newWindow.document.write(var1+"',"+(x-1)+","+y);

     newWindow.document.write("); target=_self class=next>poza anterioara</a>");

  }

newWindow.document.write("</td><td width=150 bgcolor=#ffffff align=center><a href='javascript:window.close();' class=sus title='Click pentru inchiderea ferestrei'>Inchide fereastra</a>");

newWindow.document.write("</td><td width=130>");

if (x==y-1)  newWindow.document.write("&nbsp;");

else 

  {

newWindow.document.write("<a href=javascript:elemadir('");

newWindow.document.write(var1+"',"+(x+1)+","+y);

newWindow.document.write("); target=_self class=next>poza urmatoare</a> <b>&raquo;</b>");

  }

  

newWindow.document.write("</td></tr>");

newWindow.document.write("<tr><td colspan=3 width=100% align=center valign=middle>");

newWindow.document.write("<img src=http://www.pavaj.ro/images/elementeaditionale/");

newWindow.document.write(var1);

newWindow.document.write("/");

newWindow.document.write(var1+x);

newWindow.document.write(".jpg onClick='window.close();' title='Click pentru inchiderea ferestrei'></td></tr></table>");

newWindow.document.bgColor="#ffffff";

newWindow.document.write("</body></html>");

newWindow.document.close();

newWindow.focus();

//newWindow.close();

}





function pavajprodusex(var1){

var xxl='var message="You can NOT right click here";var closeWin="1";function IE(e) {     if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3"))     {            self.close();          return false;     }}function NS(e) {     if (document.layers || (document.getElementById && !document.all))     {          if (e.which == "2" || e.which == "3")          {                 self.close();               return false;          }     }}document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false")';

newWindow=window.open("","Pavajproduse","width=400,height=300");

newWindow.document.write("<title>Pavaj produse</title>");

newWindow.document.write("<script type='text/javascript'>");

newWindow.document.write(xxl);

newWindow.document.write("</script>");

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=");

newWindow.document.write(var1);

newWindow.document.write(" onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");

newWindow.document.bgColor="#ffffff";

newWindow.document.close();

newWindow.focus();

//newWindow.close();

}

function portofoliu(var1){

	

//var xxl='var message="Copyright @ 2005-2007, STEFYCAS";function clickIE() {if (document.all) {(message);return false;}}function clickNS(e) {if(document.layers||(document.getElementById&&!document.all)) {if (e.which==2||e.which==3) {(message);return false;}}} if (document.layers){document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} document.oncontextmenu=new Function("return false") ';

var xxl='function IE(e) {     if (navigator.appName == "Microsoft Internet Explorer" && (event.button == "2" || event.button == "3"))     {            self.close();          return false;     }}function NS(e) {     if (document.layers || (document.getElementById && !document.all))     {          if (e.which == "2" || e.which == "3")          {                 self.close();               return false;          }     }}document.onmousedown=IE;document.onmouseup=NS;document.oncontextmenu=new Function("return false")';



newWindow=window.open("","PavajPortofoliu","width=400,height=300");

newWindow.document.write("<head><title>Pavaj Portofoliu</title>");

newWindow.document.write("<script type='text/javascript'>");

newWindow.document.write(xxl);

newWindow.document.write("</script></head>");

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=");

newWindow.document.write(var1);

newWindow.document.write("-mare.jpg onClick='window.close();' title='Click pentru inchiderea pozei'></td></tr></table>");

newWindow.document.bgColor="#ffffff";

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;

}