
		
var max=11; // 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-credibankempresarial"><param name="movie" value="../imagenes/banner-credibankempresarial.swf"><param name="quality" value="best"><param name="play" value="true"><embed src="imagenes\/banner-credibankempresarial.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-credibankempresarial.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-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[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-credibolsa"><param name="movie" value="../imagenes/banner-credibolsa.swf"><param name="quality" value="best"><param name="play" value="true"><embed src="imagenes\/banner-credibolsa.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-credibolsa.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-credifondo"><param name="movie" value="../imagenes/banner-credifondo.swf"><param name="quality" value="best"><param name="play" value="true"><embed src="imagenes\/banner-credifondo.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-credifondo.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-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[6]='<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-credinet"><param name="movie" value="../imagenes/banner-credinet.swf"><param name="quality" value="best"><param name="play" value="true"><embed src="imagenes\/banner-credinet.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-credinet.swf"><\/embed></\object>';

banner[7]='<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-credipago"><param name="movie" value="../imagenes/banner-credipago.swf"><param name="quality" value="best"><param name="play" value="true"><embed src="imagenes\/banner-credipago.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-credipago.swf"><\/embed></\object>';

banner[8]='<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[9]='<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[10]='<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>';

banner[11]='<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-mesadedinero"><param name="movie" value="../imagenes/banner-mesadedinero.swf"><param name="quality" value="best"><param name="play" value="true"><embed src="imagenes\/banner-mesadedinero.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-mesadedinero.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);
	}		
		
	
function goMemoria() {
  window.open ("defaultmemoria.asp","defaultmemoria", "status=si,location=no,menubar=no,resizable=yes,toolbar=no,scrollbars=yes,top=10,left=10,width=765,height=550" , 1 );
}

