	<!--
	
function goPromocionesAuto() {
  window.open ("promociones_auto.asp","promociones_auto", "status=si,location=no,menubar=no,resizable=no,toolbar=no,scrollbars=yes,top=10,left=10,width=665,height=515" , 1 );
}

function goPromocionesMP() {
  window.open ("promociones_mp.asp","promociones_auto", "status=si,location=no,menubar=no,resizable=no,toolbar=no,scrollbars=yes,top=10,left=10,width=665,height=515" , 1 );
}
		
var max=5; // the number of banners to be rotated
var thisBanner=1; // initially banner 1
var banner=new MakeBannerArray(max); // create an array of banners

function MakeBannerArray(n)
	{
	this.length=n;
	for (var i=1; i<=n;i++)
		{
		this[i]="";
		}
	return this;
	}
	
// then populate the array with the banner links and file path	
		

banner[1]='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=4,0,2,0" width="467" height="57" name="banner-bancaportelefono"><param name="movie" value="../imagenes/banner-bancaportelefono.swf"><param name="quality" value="best"><param name="play" value="true"><embed src="../imagenes\/banner-bancaportelefono.swf" type="application\/x-shockwave-flash" width="467" height="57" pluginspage="http:\/\/www.macromedia.com\/shockwave\/download\/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="best" play="true" name="banner-bancaportelefono.swf"><\/embed></\object>';

banner[2]='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=4,0,2,0" width="467" height="57" name="banner-credimas"><param name="movie" value="../imagenes/banner-credimas.swf"><param name="quality" value="best"><param name="play" value="true"><embed src="../imagenes\/banner-credimas.swf" type="application\/x-shockwave-flash" width="467" height="57" pluginspage="http:\/\/www.macromedia.com\/shockwave\/download\/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="best" play="true" name="banner-credimas.swf"><\/embed></\object>';

banner[3]='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=4,0,2,0" width="467" height="57" name="banner-creditohipotecario"><param name="movie" value="../imagenes/banner-creditohipotecario.swf"><param name="quality" value="best"><param name="play" value="true"><embed src="../imagenes\/banner-creditohipotecario.swf" type="application\/x-shockwave-flash" width="467" height="57" pluginspage="http:\/\/www.macromedia.com\/shockwave\/download\/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="best" play="true" name="banner-creditohipotecario.swf"><\/embed></\object>';

banner[4]='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=4,0,2,0" width="467" height="57" name="banner-plan_libre"><param name="movie" value="../imagenes/banner-plan_libre.swf"><param name="quality" value="best"><param name="play" value="true"><embed src="../imagenes\/banner-plan_libre.swf" type="application\/x-shockwave-flash" width="467" height="57" pluginspage="http:\/\/www.macromedia.com\/shockwave\/download\/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="best" play="true" name="banner-plan_libre.swf"><\/embed></\object>';

banner[5]='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=4,0,2,0" width="467" height="57" name="banner-plan_ganancia"><param name="movie" value="../imagenes/banner-plan_ganancia.swf"><param name="quality" value="best"><param name="play" value="true"><embed src="../imagenes\/banner-plan_ganancia.swf" type="application\/x-shockwave-flash" width="467" height="57" pluginspage="http:\/\/www.macromedia.com\/shockwave\/download\/index.cgi?P1_Prod_Version=ShockwaveFlash" quality="best" play="true" name="banner-plan_ganancia.swf"><\/embed></\object>';


// the random number function returns a number 1 to max
function rand(n)
	{
	rnum=Math.floor(n*Math.random())+1
	return rnum;
	}
		

// the function that is called from the body script
function setBanner()
	{
	thisBanner=rand(max);
	}		
		
		
		
//-->		

