/****
* Banner Ad Rotater v3.02
* Anarchos > anarchos3@hotmail.com
* http://anarchos.xs.mw/bannerad.phtml
**/


function banner_init_secciones00(){
		var duracion = 60;
		var ancho = 360;
	  	var alto = 60;


		imagen_1 = 'http://www.diariolarepublica.com/2004/auto/publi/autopromo/banner-100usd-360.gif';
		link_1 = 'http://www.lr21.com/lr2/bin/ad_redir.php?ad_id=39&ref=dlr';
		target_1 = '_blank';
		alt_1 = 'Tu empresa puede estar aquí';


		banner_secciones00 = new Banner(duracion, ancho, alto, "", 0, 0);
		banner_secciones00.Ad( imagen_1, link_1, target_1, alt_1 );
		banner_secciones00.Ad( imagen_1, link_1, target_1, alt_1 );
}


function banner_init_marco_portada_abajo(){
		var duracion = 60;
		var ancho = 340;
	  	var alto = 60;


		imagen_1 = 'http://www.diariolarepublica.com/2004/auto/publi/lr21/colaborar/colaborar_20040425/banner_colaborar_340x60_200.gif';
		link_1 = 'https://www.larepublica.com.uy/lr2/bin/login.php?carrito=1&id_categoria=2';
		target_1 = '_blank';
		alt_1 = 'Colabora con www.LR21.com';


		marco_portada_abajo = new Banner(duracion, ancho, alto, "", 0, 0);
		marco_portada_abajo.Ad( imagen_1, link_1, target_1, alt_1 );
		marco_portada_abajo.Ad( imagen_1, link_1, target_1, alt_1 );
}


function banner_init_banner_secciones01(){
		var duracion = 30;
		var ancho = 468;
	  	var alto = 60;


		imagen_1 = 'http://www.diariolarepublica.com/2004/auto/publi/gentes/bn_gps_468x60b.gif';
		link_1 = 'http://www.gentes.edu.uy';
		target_1 = '_blank';
		alt_1 = 'Todo comienza con un click. Seminario de Gestion Personal Sistemica';


		imagen_2 = 'http://www.diariolarepublica.com/2004/auto/publi/autopromo/banner-100usd-468.gif';
		link_2 = 'http://www.lr21.com/lr2/bin/ad_redir.php?ad_id=40&ref=dlr';
		target_2 = '_blank';
		alt_2 = 'Tu empresa puede estar aquí';


		banner_secciones01 = new Banner(duracion, ancho, alto, "", 0, 0);
		banner_secciones01.Ad( imagen_1, link_1, target_1, alt_1 );
		banner_secciones01.Ad( imagen_2, link_2, target_2, alt_2 );
}


function banner_init_banner_secciones02(){
		var duracion = 30;
		var ancho = 468;
	  	var alto = 60;


		imagen_1 = 'http://www.diariolarepublica.com/2004/auto/publi/gentes/bn_gps_468x60_2.gif';
		link_1 = 'http://www.gentes.edu.uy';
		target_1 = '_blank';
		alt_1 = 'Todo comienza con un click. Seminario de Gestion Personal Sistemica';


		imagen_2 = 'http://www.diariolarepublica.com/2004/auto/publi/autopromo/banner-100usd-468.gif';
		link_2 = 'http://www.lr21.com/lr2/bin/ad_redir.php?ad_id=40&ref=dlr';
		target_2 = '_blank';
		alt_2 = 'Tu empresa puede estar aquí';


		banner_secciones02 = new Banner(duracion, ancho, alto, "", 0, 0);
		banner_secciones02.Ad( imagen_1, link_1, target_1, alt_1 );
		banner_secciones02.Ad( imagen_2, link_2, target_2, alt_2 );
}


function banner_init_banner_sumario(){
		var duracion = 80;
		var ancho = 468;
	  	var alto = 60;


		imagen_2 = 'http://www.diariolarepublica.com/2004/auto/publi/gentes/bn_gps_468x60_2.gif';
		link_2 = 'http://www.gentes.edu.uy';
		target_2 = '_blank';
		alt_2 = 'Todo comienza con un click. Seminario de Gestion Personal Sistemica';


		imagen_1 = 'http://www.diariolarepublica.com/2004/auto/publi/gentes/bn_gps_468x60b.gif';
		link_1 = 'http://www.gentes.edu.uy';
		target_1 = '_blank';
		alt_1 = 'Todo comienza con un click. Seminario de Gestion Personal Sistemica';


		banner_sumario = new Banner(duracion, ancho, alto, "", 0, 0);
		banner_sumario.Ad( imagen_1, link_1, target_1, alt_1 );
		banner_sumario.Ad( imagen_2, link_2, target_2, alt_2 );
}


function banner_init_banner_nota_con_foto(){
		var duracion = 80;

		var ancho = 340;
	  	var alto = 340;


		imagen_1 = 'http://www.diariolarepublica.com/2004/auto/publi/lr21/colaborar/colaborar_20040425/banner_colaborar_340x340_20.gif';
		link_1 = 'https://www.larepublica.com.uy/lr2/bin/login.php?carrito=1&id_categoria=2';
		target_1 = '_blank';
		alt_1 = 'Colabora con www.LR21.com';


		banner_nota_con_foto = new Banner(duracion, ancho, alto, "", 0, 0);
		banner_nota_con_foto.Ad( imagen_1, link_1, target_1, alt_1 );
		banner_nota_con_foto.Ad( imagen_1, link_1, target_1, alt_1 );
}


function banner_init_banner_nota_sin_foto(){
		var duracion = 80;
		var ancho = 340;
	  	var alto = 340;


		imagen_1 = 'http://www.diariolarepublica.com/2004/auto/publi/autopromo/banner-100usd-geant.gif';
		link_1 = 'http://www.lr21.com/lr2/bin/ad_redir.php?ad_id=41&ref=dlr';
		target_1 = '_blank';
		alt_1 = 'Tu empresa puede estar aquí';


		banner_nota_sin_foto = new Banner(duracion, ancho, alto, "", 0, 0);
		banner_nota_sin_foto.Ad( imagen_1, link_1, target_1, alt_1 );
		banner_nota_sin_foto.Ad( imagen_1, link_1, target_1, alt_1 );
}


function banner_init_banner_nota_arriba(){
		var duracion = 80;
		var ancho = 320;
	  	var alto = 60;


		imagen_1 = 'a';
		link_1 = 'a';
		target_1 = '_blank';
		alt_1 = 'a';


		banner_nota_arriba = new Banner(duracion, ancho, alto, "", 0, 0);
		banner_nota_arriba.Ad( imagen_1, link_1, target_1, alt_1 );
		banner_nota_arriba.Ad( imagen_1, link_1, target_1, alt_1 );
}


function banner_init_banner_nota_abajo(){
		var duracion = 30;
		var ancho = 468;
	  	var alto = 60;


		imagen_1 = 'http://www.diariolarepublica.com/2004/auto/publi/autopromo/banner-100usd-468.gif';
		link_1 = 'http://www.lr21.com/lr2/bin/ad_redir.php?ad_id=40&ref=lrr';
		target_1 = '_blank';
		alt_1 = 'Tu empresa puede estar aquí';

		/*
		imagen_2 = 'http://www.diariolarepublica.com/2004/auto/publi/TI/20040519/TI_468x60_1.gif';
		link_2 = 'http://www.lr21.com/lr2/bin/ad_redir.php?ad_id=32';
		target_2 = '_blank';
		alt_2 = 'Tienda Inglesa';


		imagen_3 = 'http://www.diariolarepublica.com/2004/auto/publi/TI/20040519/TI_468x60_2.gif';
		link_3 = 'http://www.lr21.com/lr2/bin/ad_redir.php?ad_id=33';
		target_3 = '_blank';
		alt_3 = 'Tienda Inglesa';
		*/

		banner_nota_abajo = new Banner(duracion, ancho, alto, "", 0, 0);
		banner_nota_abajo.Ad( imagen_1, link_1, target_1, alt_1 );
		banner_nota_abajo.Ad( imagen_1, link_1, target_1, alt_1 );
}


function banner_init_banner_indice_arriba(){
		var duracion = 15;
		var ancho = 468;
	  	var alto = 60;


		imagen_1 = 'http://www.diariolarepublica.com/2004/auto/publi/lr21/colaborar/banner_colaboracion_rapida_5.gif';
		link_1 = 'https://www.larepublica.com.uy/lr2/bin/login.php?carrito=1&id_categoria=2';
		target_1 = '_blank';
		alt_1 = 'Colabora con La República en la RED';


		banner_indice_arriba = new Banner(duracion, ancho, alto, "", 0, 0);
		banner_indice_arriba.Ad( imagen_1, link_1, target_1, alt_1 );
		banner_indice_arriba.Ad( imagen_1, link_1, target_1, alt_1 );
}


function banner_init_banner_indice_abajo(){
		var duracion = 20;
		var ancho = 468;
	  	var alto = 60;


		imagen_1 = 'http://www.diariolarepublica.com/2004/auto/publi/lr21/colaborar/colaborar_20040425/banner_colaborar_468x60_200.gif';
		link_1 = 'https://www.larepublica.com.uy/lr2/bin/login.php?carrito=1&id_categoria=2';
		target_1 = '_blank';
		alt_1 = 'Colabora con www.LR21.com';


		/*
		imagen_2 = 'http://www.diariolarepublica.com/2004/auto/publi/TI/20040519/TI_468x60_1.gif';
		link_2 = 'http://www.lr21.com/lr2/bin/ad_redir.php?ad_id=32';
		target_2 = '_blank';
		alt_2 = 'Tienda Inglesa';


		imagen_3 = 'http://www.diariolarepublica.com/2004/auto/publi/TI/20040519/TI_468x60_2.gif';
		link_3 = 'http://www.lr21.com/lr2/bin/ad_redir.php?ad_id=33';
		target_3 = '_blank';
		alt_3 = 'Tienda Inglesa';
		*/

		banner_indice_abajo = new Banner(duracion, ancho, alto, "", 0, 0);
		banner_indice_abajo.Ad( imagen_1, link_1, target_1, alt_1 );
		banner_indice_abajo.Ad( imagen_1, link_1, target_1, alt_1 );
}


function banner_init_banner_marco_izq(){
		var duracion = 60;
		var ancho = 116;
	  	var alto = 40;


		imagen_1 = 'http://www.diariolarepublica.com/2004/auto/publi/TI/20040519/TI_116x40.gif';
		link_1 = 'http://www.lr21.com/lr2/bin/ad_redir.php?ad_id=34';
		target_1 = '_blank';
		alt_1 = 'Tienda Inglesa';


		banner_marco_izq = new Banner(duracion, ancho, alto, "", 0, 0);
		banner_marco_izq.Ad( imagen_1, link_1, target_1, alt_1 );
		banner_marco_izq.Ad( imagen_1, link_1, target_1, alt_1 );
}


function banner_init_banner_marco_izq_1(){
		var duracion = 15;
		var ancho = 116;
	  	var alto = 58;


		imagen_1 = 'http://www.diariolarepublica.com/2004/auto/publi/lr21/banner-foro-deportes-116.gif';
		link_1 = 'http://www.lr21.com/lr2/bin/ad_redir.php?ad_id=43&ref=lrr';
		target_1 = '_blank';
		alt_1 = 'Colabora con www.LR21.com';
		

		//imagen_2 = 'http://www.diariolarepublica.com/2004/auto/publi/lr21/cumplimos_6.gif';
		//link_2 = '#';
		//target_2 = '';
		//alt_2 = 'La República en la RED cumplio 6 años!!!';
		
		banner_marco_izq_1 = new Banner(duracion, ancho, alto, "", 0, 0);
		banner_marco_izq_1.Ad( imagen_1, link_1, target_1, alt_1 );
		banner_marco_izq_1.Ad( imagen_1, link_1, target_1, alt_1 );
}


function banner_init_banner_marco_izq_2(){
		var duracion = 30;
		var ancho = 116;
	  	var alto = 116;

		imagen_1 = 'http://www.diariolarepublica.com/2004/auto/publi/autopromo/banner-100usd-116.gif';
		link_1 = 'http://www.lr21.com/lr2/bin/ad_redir.php?ad_id=38&ref=lrr';
		target_1 = '_blank';
		alt_1 = 'Tu empresa puede estar aquí';


		//imagen_1 = 'http://www.diariolarepublica.com/2004/auto/publi/antel/20040520/adsl116x90.gif';
		//link_1 = 'http://www.lr21.com/lr2/bin/ad_redir.php?ad_id=35&ref=lrr';
		//target_1 = '_blank';
		//alt_1 = '';


		//imagen_2 = 'http://www.diariolarepublica.com/2004/auto/publi/casablanca/20040610/cb116x90.gif';
		//link_2 = 'http://www.lr21.com/lr2/bin/ad_redir.php?ad_id=39&ref=lrr';
		//target_2 = '_blank';
		//alt_2 = '';


		banner_marco_izq_2 = new Banner(duracion, ancho, alto, "", 0, 0);
		banner_marco_izq_2.Ad( imagen_1, link_1, target_1, alt_1 );
		banner_marco_izq_2.Ad( imagen_1, link_1, target_1, alt_1 );
}


function banner_init_banner_titulares_nota_header(){
		var duracion = 60;
		var ancho = 468;
	  	var alto = 60;


		imagen_1 = 'http://www.diariolarepublica.com/2004/auto/publi/lr21/colaborar/banner_colaboracion_rapida_5.gif';
		link_1 = 'https://www.larepublica.com.uy/lr2/bin/login.php?carrito=1&id_categoria=2';
		target_1 = '_blank';
		alt_1 = 'Colabora con La República en la RED';


		banner_titulares_nota_header = new Banner(duracion, ancho, alto, "", 0, 0);
		banner_titulares_nota_header.Ad( imagen_1, link_1, target_1, alt_1 );
		banner_titulares_nota_header.Ad( imagen_1, link_1, target_1, alt_1 );
}


function banner_init_banner_titulares_nota_footer(){
		var duracion = 15;
		var ancho = 468;
	  	var alto = 60;


		imagen_1 = 'http://www.diariolarepublica.com/2004/auto/publi/gentes/bn_gps_468x60_2.gif';
		link_1 = 'http://www.gentes.edu.uy';
		target_1 = '_blank';
		alt_1 = 'Todo comienza con un click. Seminario de Gestion Personal Sistemica';


		banner_titulares_nota_footer = new Banner(duracion, ancho, alto, "", 0, 0);
		banner_titulares_nota_footer.Ad( imagen_1, link_1, target_1, alt_1 );
		banner_titulares_nota_footer.Ad( imagen_1, link_1, target_1, alt_1 );
}


function Banner(refreshTime, width, height, altText, start, random){
	this.objName = "bannerAd" + (Banner.count++);
eval(this.objName + "=this");
	if (!refreshTime) this.refreshTime = 5000; else this.refreshTime = refreshTime*1000;
	if (!width) this.width = 468; else this.width = width;
	if (!height) this.height = 60; else this.height = height;
	if (random == null) this.random = 1; else this.random = random;
	this.altText = altText;
	this.ads = [];
	if (start) this.currentAd = start-1; else start = null;
	this.mySize = 0;


	this.Ad = function(src, href, target, mouseover) {
		var tempImage = new Image();
		tempImage.src = src;
		this.ads[this.mySize] = new Object();
		var ad = this.ads[this.mySize];
		ad.src = src;
		if (typeof(target) == "undefined" || target == null) ad.target = "_self"; else ad.target = target;
		ad.href = href;
		ad.mouseover = mouseover;
		this.mySize++;
	}
	/*
	this.link = function(){
		var	ad = this.ads[this.currentAd];
		if (ad.target == "_self"){
			location.href = ad.href;
		}
		else if (ad.target == "_blank" || ad.target == "_new"){
			open(ad.href,this.objName + "Win");
		}
		else top.frames[ad.target].location.href = ad.href;
	}
	*/


	this.link = function(){
		var	ad = this.ads[this.currentAd];
		if (ad.target == "_self"){
			location.href = ad.href;
		}
		else if (ad.target == "_blank" || ad.target == "_new"){
			open(ad.href,this.objName + "Win");
		}
		else if (ad.target == "_top"){
			top.location.href = ad.href;
		}
		else {
			top.frames[ad.target].location.href = ad.href;
		}
	}


	this.showStatus = function(){
		var ad = this.ads[this.currentAd];
		if (ad.mouseover) status = ad.mouseover;
		else status = ad.href;
	}


	this.randomAd = function(){
		var n;
		do { n = Math.floor(Math.random() * (this.mySize)); }
		while(n == this.currentAd);
		this.currentAd = n;
	}


	this.output = function(){
		var tempCode = "";
		if (this.mySize > 1){
			if (this.currentAd == null) this.randomAd();
			if (this.currentAd >= this.mySize) this.currentAd = this.mySize - 1;
			tempCode = '<a href="javascript:'+this.objName+'.link();">';
			tempCode += '<img src="' + this.ads[this.currentAd].src + '" width="' + this.width;
			tempCode += '" name="' + this.objName + 'Img" height="' + this.height + '" ';
			if (this.altText) tempCode += 'alt="'+this.altText + '" ';
			tempCode += 'border="0" /></a>';
			document.write(tempCode);
			this.nextAd();
		} else {
			// document.write("Error: two banners must be defined for the script to work.");
		}
	}


	this.newAd = function(){
		if (!this.random){
			this.currentAd++;
			if (this.currentAd >= this.mySize)
			   this.currentAd = 0;
		}
		else {
			this.randomAd();
		}
		this.nextAd();
	}


	this.nextAd = function(){
		document.images[this.objName+ 'Img'].src = this.ads[this.currentAd].src;
		setTimeout(this.objName+'.newAd()',this.refreshTime)
	}
}
Banner.count = 0;