
/*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 2-1
banner[count] = new Banner();
banner[count].texto_bundle = "Believe it or Not!";
banner[count].enlace_bundle = "http://www.shareit.com/product.html?cart=1&productid=300061901&backlink=http%3A//www.modeladvisor.com/close.htm";
banner[count].mensaje_bundle = "An excellent Jabsoft bundle: Spreadsheet Consolidator + Navigation Tools for Excel, by just $94.95 !!!";
banner[count].borde = "0";
banner[count].tooltip = "Spreadsheet Consolidator + Navigation Tools for Excel";
banner[count].alto = "50";
banner[count].ancho = "50";
banner[count].imagen = "images/bundle3.jpg";
count++;

//Banner 2-2
banner[count] = new Banner();
banner[count].texto_bundle = "SMILE!!! this bundle is for you";
banner[count].enlace_bundle = "http://www.shareit.com/product.html?cart=1&productid=300061906&backlink=http%3A//www.modeladvisor.com/close.htm";
banner[count].mensaje_bundle = "You will remain satisfied: Categorizing Data for Excel + Chart tools for Excel, by only $89.95 !!!";
banner[count].borde = "0";
banner[count].tooltip = "Categorizing Data for Excel + Chart tools for Excel";
banner[count].alto = "50";
banner[count].ancho = "50";
banner[count].imagen = "images/bundle4.jpg";
count++;

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

// Fin del script


