// Javascript para Imagenes de sustitucion. // Autor: Gustavo Castro Puig (C) 2002 // Autogenerado desde codigo PHP. bs0=new Image(); bn0=new Image(); bs0.src='images/botones/btnhomeh.jpg' bn0.src='images/botones/btnhomen.jpg' bs1=new Image(); bn1=new Image(); bs1.src='images/botones/btnacercah.jpg' bn1.src='images/botones/btnacercan.jpg' bs2=new Image(); bn2=new Image(); bs2.src='images/botones/btnporquefarh.jpg' bn2.src='images/botones/btnporquefarn.jpg' bs3=new Image(); bn3=new Image(); bs3.src='images/botones/btnserviciosh.jpg' bn3.src='images/botones/btnserviciosn.jpg' bs4=new Image(); bn4=new Image(); bs4.src='images/botones/btnproductosh.jpg' bn4.src='images/botones/btnproductosn.jpg' bs5=new Image(); bn5=new Image(); bs5.src='images/botones/btnnovedadesh.jpg' bn5.src='images/botones/btnnovedadesn.jpg' bs6=new Image(); bn6=new Image(); bs6.src='images/botones/btncomprobanteh.jpg' bn6.src='images/botones/btncomprobanten.jpg' bs7=new Image(); bn7=new Image(); bs7.src='images/botones/btncontactenosh.jpg' bn7.src='images/botones/btncontactenosn.jpg' function Coloreame(indice) { if (indice==0) document.b0.src=bs0.src; if (indice==1) document.b0.src=bn0.src; if (indice==2) document.b1.src=bs1.src; if (indice==3) document.b1.src=bn1.src; if (indice==4) document.b2.src=bs2.src; if (indice==5) document.b2.src=bn2.src; if (indice==6) document.b3.src=bs3.src; if (indice==7) document.b3.src=bn3.src; if (indice==8) document.b4.src=bs4.src; if (indice==9) document.b4.src=bn4.src; if (indice==10) document.b5.src=bs5.src; if (indice==11) document.b5.src=bn5.src; if (indice==12) document.b6.src=bs6.src; if (indice==13) document.b6.src=bn6.src; if (indice==14) document.b7.src=bs7.src; if (indice==15) document.b7.src=bn7.src; } function verfoto(foto,v,xp,yp) { var x=(screen.width/2)-(xp/2); var y=(screen.height/2)-(yp/2); window.open('/verfoto.php?foto='+foto,'FAR','border=0,toolbar=0,status=0,statusbar=0,scrollbar=0,menu=0,width='+xp+',height='+yp+',top='+y+',left='+x); } //