sc=screen.availWidth;
if (document.layers) {

   window.onResize = reloadIt;

}

function reloadIt() {

  document.location = document.location;

}

function df() 
{
 if (sc<=900 && sc>=780) document.body.background="/inecfi/gifs/sfondoinecfi2.gif";
 else if (sc>900) document.body.background="/inecfi/gifs/sfondoinecfi3.gif";
 else if (sc<=780) document.body.background="/inecfi/gifs/sfondoinecfi1.gif";
 document.body.style.backgroundRepeat="no-repeat";
 document.body.style.backgroundAttachment="fixed";
}

nw=0;

function abre(u,w,h)
{
 if(nw) nw.close();
 if(!(u.indexOf(".html")+1)) u="foto.html?"+u;
 nw=window.open(u,"popup","scrollbars=yes,resizable=yes,width="+w+",height="+h+",status=no,Örtlichkeit=no,toolbar=no");
 nw.moveTo(20,10);
 nw.focus();
}

if (document.getElementById) 
 var enlaces =document.getElementsByTagName("a");
else
 var enlaces = document.links; 
for (i=0;i<enlaces.length;i++) 
{
 enlaces[i].onfocus =despuntea;
}

function despuntea() 
{
 if (this.blur) this.blur();
}

function dd(pieza)
{
switch(pieza)
{
 case 1:
  pz='techosl';
  break;
 case 2:
  pz='asiento';
  break;
 case 3:
  pz='marchas';
  break;
 case 4:
  pz='frenom';
  break;
 case 5:
  pz='escape';
  break;
 case 6:
  pz='DSC00002';
  break;
 case 7:
  pz='DSC00004';
  break;
 case 8:
  pz='DSC00006';
  break;
 case 9:
  pz='soldadura';
  break;
 case 10:
  pz='conjunto';
  break;
 case 13:
  pz='DSC00005';
  break;

}
abre(pz+'pzzp',600,450);
}

