
// OAS SETUP 
//-----------------------------------------------------------------------------

//x01					1x1 (Flotante)
//Top1				468x60 o 728x90
//Top2				468x60 o 728x90
//Position1 	200x200
//Position2 	200x200
//Position3		120x600 o 200x600	(Rascacielos)
//Bottom			140x140
//BottomLeft	120x140

//configuración general
OAS_url ='http://ads.grupozeta.es/RealMedia/ads/';
OAS_query = '?';
OAS_version = 11;
OAS_rn = new String (Math.random()); OAS_rns = OAS_rn.substring (2, 11);
//fin de la configuración

//-----------------------------------------------------------------------------

if (navigator.userAgent.indexOf('Mozilla/3') != -1){
	OAS_version = 10;
}
if (OAS_version >= 11){
	document.write('<SC'+'RIPT LANGUAGE=JavaScript1.1 SRC="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + OAS_query + '"><\/SCRIPT>');
}

function OAS_NORMAL(pos) { 
	document.write('<A HREF="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + OAS_query + '" TARGET=_top>');
	document.write('<IMG SRC="' + OAS_url + 'adstream_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + OAS_query + '" BORDER=0 ALT="Click!"></A>');
}
function OAS_AD(pos) {
	if (OAS_version >= 11 && typeof(OAS_RICH)!='undefined')
	  OAS_RICH(pos);
	else
	  OAS_NORMAL(pos);
}

//-----------------------------------------------------------------------------
/*
function banner(tipo,zona){	
	//Zonas
  if(zona=='interiores'){
		OAS_listpos = 'x01,Top2,Position2';
		OAS_sitepage = 'www.elentorno.com/interiores';
	}else{
		OAS_listpos = 'x01,Top2,Position2';
		OAS_sitepage = 'www.elentorno.com/portada';
	}
	
	//Tipos
	var tipo2='';
	if(tipo=='468x60'){
		tipo2='Top2';
	}else if(tipo=='728x90'){
		tipo2='Top2';
	}else if(tipo=='200x200'){
		tipo2='Position2';
	}else if(tipo=='1x1'){
		tipo2='x01';
	}else{
		return null;
	}
	alert('OAS_listpos: '+OAS_listpos+'\nOAS_sitepage: '+OAS_sitepage+'\nOAS_AD('+tipo2+')'); 
	OAS_AD(tipo2);
}
*/
