width="317"; //Anchura del banner
height="371"; //Altura del banner
dir="inipics"; //directorio donde está el flash

banners= new Array(); 
banners[0]="inipics.swf";
//banners[1]="ima1.jpg";
//banners[2]="ima2.jpg";
//banners[3]="ima3.jpg";

totalbanners = banners.length; 
var ahora = new Date() 
var segundos = ahora.getSeconds() 
var ad = segundos % totalbanners; 
seleccionado=banners[ad]; 
localizador=seleccionado.lastIndexOf('.'); 
localizador2=localizador+5
extension=seleccionado.substring(localizador+1,localizador2); 
archivo=seleccionado.substring(0,localizador); 

document.write('<div id="right_banner" style="width:' + width + 'px;">');
document.write('<center>');
if (extension=="swf"){
flash=seleccionado;
document.write('<OBJECT CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="' + width + '" height="' + height + '" CODEBASE="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0">');
document.write('<PARAM NAME="MOVIE" VALUE="images/' + dir + '/' + flash + '">');
document.write('<PARAM NAME="PLAY" VALUE="true">');
document.write('<PARAM NAME="LOOP" VALUE="true">');
document.write('<PARAM NAME="QUALITY" VALUE="high">');
document.write('<EMBED SRC="images/' + dir + '/' + flash + '" width="' + width + '" height="' + height + '" PLAY="true" LOOP="true" QUALITY="high" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi? P1_Prod_Version=ShockwaveFlash">');
document.write('</EMBED>');
document.write('</OBJECT>');}
else {document.write('<img src=images/' + dir + '/' + seleccionado + ' width=' + width + ' height=' + height + '>');
document.write('</center>');}
document.write('</div>');
// Fin