
/*Scritp Bundles JABS */
/*************************/

//No cambiar.
//Crea la función banner
function Banner() {
	this.texto_bundle = '';		//nombre del bundle
        this.enlace_bundle = ''; 	//enlace del bundle
	this.mensaje_bundle = '';	//mensaje del bundle
        this.borde = '';		//borde la imagen
        this.tooltip = '';		//tooltip de la imagen
        this.alto = '';			//alto dela imagen
        this.ancho = '';		//ancho de la imagen
        this.imagen = '';		//url de la imagen
        }
var banner = new Array();
var count = 0;

// ...hasta aqui.

//Bloques de código
/*
banner[count] = new Banner();
banner[count].texto_bundle = "";
banner[count].enlace_bundle = "";
banner[count].mensaje_bundle = "";
banner[count].borde = "";
banner[count].tooltip = "";
banner[count].alto = "";
banner[count].ancho = "";
banner[count].imagen = "";
count++;
*/


//Banner 3-1
banner[count] = new Banner();
banner[count].texto_bundle = "Keep Updated!!!";
banner[count].enlace_bundle = "http://www.shareit.com/product.html?cart=1&productid=218213&backlink=http%3A//www.modeladvisor.com/close.htm";
banner[count].mensaje_bundle = "Two useful Online Functions: Stock Quotes + Exchange Rates $119.95 !!!";
banner[count].borde = "0";
banner[count].tooltip = "Stock Quotes + Exchange Rates";
banner[count].alto = "50";
banner[count].ancho = "50";
banner[count].imagen = "images/bundle6.jpg";
count++;

//Banner 3-2
banner[count] = new Banner();
banner[count].texto_bundle = "Good News!!!";
banner[count].enlace_bundle = "http://www.shareit.com/product.html?cart=1&productid=300061368&backlink=http%3A//www.modeladvisor.com/close.htm";
banner[count].mensaje_bundle = "Another bundle released: Stock Quotes + Excel Conditional Formatting, by just: $119.95 !!!";
banner[count].borde = "0";
banner[count].tooltip = "Stock Quotes + Excel Conditional Formatting";
banner[count].alto = "50";
banner[count].ancho = "50";
banner[count].imagen = "images/bundle2.jpg";
count++;

/***************************************************
 Cambiando el formato de la impresion del banner
***************************************************/
var aleatorio = Math.round( (count-1) * Math.random() );
var strBanner3 = "";
var elBanner = banner[aleatorio];
strBanner3 += "<table width=\"98%\" align=\"center\" border=\"0\" cellspacing=\"\" cellpadding=\"1\">";
strBanner3 += "<tr>";
strBanner3 += "<td  width=\"25%\" rowspan=\"2\" align=\"center\" valign=\"top\">";
strBanner3+= "<a href='" + elBanner.enlace_bundle + "' ";
strBanner3 += "target=\"_blank\">";
strBanner3 += "<img src=\"" + elBanner.imagen + "\" class=\"marquito_offer\" width=\"" + elBanner.ancho;
strBanner3 += "\" height=\"" + elBanner.alto + "\" border=\"0" + elBanner.borde +"\" alt=\"" + elBanner.tooltip +"\">";      
strBanner3 += "<\/a>";
strBanner3 += "<\/td>";
strBanner3 += "<td width=\"78%\" valign=\"top\">";
strBanner3 += "<a href='" + elBanner.enlace_bundle + "' ";
strBanner3 += "class=\"bundle\" target=\"_blank\">";
strBanner3 += elBanner.texto_bundle + "<\/a>";
strBanner3 += "<\/td>";
strBanner3 += "<\/tr>";
strBanner3 += "<tr>";
strBanner3 += "<td valign=\"top\" class=\"texto_offer\">";
strBanner3 += elBanner.mensaje_bundle;
strBanner3 += "&nbsp;&nbsp;";
strBanner3 += "<img src=\"images/stars.gif\" width=\"64\" height=\"12\">";
strBanner3 += "<\/td>";
strBanner3 += "<\/tr>";
strBanner3 += "<\/table>";

// Fin del script


