//728x90 - ÁLBUM DE FOTOS GENERAL
	//VARIABLES
	var server = 'ROTACION';  //DURO -  DART - ROTACION
	var formato = 'SWF';  //GIF o SWF
	var archivo_swf = '';
	var archivo_gif = '';
	var advurl = 'http://';
	var url_destino = escape(advurl);
	var ancho_creativo = '728';
	var alto_creativo = '90';
	var wmode = 'opaque';
	var version_max = 7;
	var version_min = 3;
	
	if (server == 'DURO') {
	
		if (formato == 'GIF') {
		
			document.write('<a href="' + url_destino + '" target="_blank">');
			document.write('<img src="' + archivo_gif + '" width="' + ancho_creativo + '" height="' + alto_creativo + '" border="0">');
			document.write('</a>');
		
		} else {
		
				if (((navigator.appName == "Netscape") && (navigator.userAgent.indexOf("Mozilla") != -1) && (parseFloat(navigator.appVersion) >= 4) && (parseFloat(navigator.appVersion) < 5) && (navigator.javaEnabled()) && navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin)) 
					{
					var plugname=navigator.plugins['Shockwave Flash'].description;var plugsub=plugname.substring(plugname.indexOf("."),-1); var plugsubstr=plugsub.substr(-1)
					if( plugsubstr >= version_min) { plugin = true;}
					}
				else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0) && document.all) 
					{
					document.write('<script language=VBScript>' + '\n' +
								'version_max = '+ version_max + '\n' +
								'version_min = '+ version_min + '\n' +
								'Do' + '\n' +
									'On Error Resume Next' + '\n' +
									'plugin = (IsObject(CreateObject(\"ShockwaveFlash.ShockwaveFlash.\" & version_max & \"\")))' + '\n' +
									'If plugin = true Then Exit Do' + '\n' +
									'version_max = version_max - 1' + '\n' +
									'Loop While version_max >= version_min' + '\n' +
							'<\/script>');
					}
				if ( plugin )  {
				
				 var InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
				
				if (typeof DoNotDisplayIA == 'number') { var DoDisplay = 0; } else { var DoDisplay = 1;}
				if (DoDisplay){
					document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + ancho_creativo + '" height="' + alto_creativo + '">');
					document.write('  <param name="movie" value="' + archivo_swf +'?clickTAG=' + url_destino +' ">');
					document.write('  <param name="quality" value="high">');
					document.write('  <param name="wmode" value="' + wmode + '">');
					document.write('  <embed src="' + archivo_swf + '?clickTAG=' + url_destino + '" width="' + ancho_creativo + '" height="' + alto_creativo + '" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="' + wmode + '"></embed>');
					document.write('</object>');
					}
				} else {
		
				document.write('<a href="' + url_destino + '" target="_blank">');
				document.write('<img src="' + archivo_gif + '" width="' + ancho_creativo + '" height="' + alto_creativo + '" border="0">');
				document.write('</a>');
		
				DoNotDisplayIA=1;
			}
		}
	} else if (server == 'DART') {
	
		//DART 130X180
		//	var Num = Math.floor (Math.random()*1000000);
			var sitio_1 = "cl.terra.fotolog";
			var zona_1 = "gral";
			var niv_1 = "1";
			var sz_1 = "728x90";
			var tile_1 = "3"
			var ga_1 = "serv_cl";
			var width_1 = "728";
			var height_1 = "90";
		//JAVASCRIPT
		//	document.write('\<SCR' + 'IPT language="JavaScript" SRC="http://ad.doubleclick.net/adj/' + sitio_1 + '/' + zona_1 + ';ga=' + ga_1 + ';niv=' + niv_1 + ';sz=' + sz_1 + ';tile=' + tile_1 + ';ord=' + Num + '?"><\/SCR' + 'IPT>');
		//IFRAME
			document.write ('<NOLAYER>');
			document.write ('<IFRAME SRC="http://ad.cl.doubleclick.net/adi/' + sitio_1 + '/' + zona_1 + ';ga=' + ga_1 + ';niv=' + niv_1 + ';sz=' + sz_1 + ';tile=' + tile_1 + ';ord=' + Num + '?" width="' + width_1 + '" height="' + height_1 + '" frameborder="no" border="0" MARGINWIDTH="0" MARGINHEIGHT="0" SCROLLING="no">');
			document.write ('<A HREF="http://ad.cl.doubleclick.net/jump/' + sitio_1 + '/' + zona_1 + ';abr=!ie;ga=' + ga_1 + ';niv=' + niv_1 + ';sz=' + sz_1 + ';tile=' + tile_1 + ';ord=' + Num + '?" target="_blank">');
			document.write ('<IMG SRC="http://ad.cl.doubleclick.net/ad/' + sitio_1 + '/' + zona_1 + ';abr=!ie;ga=' + ga_1 + ';niv=' + niv_1 + ';sz=' + sz_1 + ';tile=' + tile_1 + ';ord=' + Num + '?" border=0 width="' + width_1 + '" height="' + height_1 + '"></A>');
			document.write ('</IFRAME>');
			document.write ('</NOLAYER>');
			document.write ('<ILAYER id="' + sz_1 + '" visibility="hidden" width=' + width_1 + 'height=' + height_1 + '></ILAYER>');
	} else {
	
		//ENDURO
		document.write('\<scr' + 'ipt language="javascript" type="text/javascript" src="http://www.terra.cl/etiquetas/enduro/728x90_enduro.js"><\/scr' + 'ipt>');
	}


