var virtual_path = window.location.pathname.split('/');
var sitio = 'www.centraldeportiva.com';
var seccion = virtual_path[1];
var pagina  = virtual_path[2];

switch(seccion) {
	case '':
	case 'undefined':
	case 'home':
		var OAS_listpos	 = 'Top,Right1,Right2,Frame2,x20';
		break;
	case 'box':
		var OAS_listpos	 = 'Top,Right1,Right2,Frame2';
		break;		
	default:
		var OAS_listpos	 = 'Top,Right1';
		break;
}

// adaptacion a AD Stream
switch(seccion){
	case '':
	case undefined:
	case 'undefined':
		seccionsite = 'portada'; break;
	case 'fut_mex':
	case 'tri':
	case 'fut_inter':
	case 'box':	
	case 'otros':
	case 'autos':
	case 'beisbol':		
	case 'chicas':
	case 'multimedia':
	case 'ufc':
		seccionsite = 'seccion/'+seccion; break;
}
switch(pagina) {
	case 'home':
	case undefined:
	case 'undefined':
		pagina = ''; break;
	case 'detalle':
		seccionsite = 'noticia/'+seccion; 
		var OAS_listpos	 = 'Top,Right1';
		break;
	case 'fotogaleria':
		seccionsite = 'fotogaleria/'+seccion; 
		var OAS_listpos	 = 'Top,Right1';
		break;
}

if( (navigator.userAgent.indexOf('Mozilla/3') != -1) || (navigator.userAgent.indexOf('Mozilla/4.0 WebTV') != -1) ) {
	var OAS_version = 10;
} else {
	var OAS_version	= 11;
}

var OAS_url		 = 'http://oasentrega.eluniversal.com.mx/RealMedia/ads/';
var OAS_target	 = '_blank';
var OAS_query	 = '';
var OAS_rn		 = new String(Math.random()); 
var OAS_rns		 = OAS_rn.substring (2, 11);
var OAS_sitepage = sitio+'/'+seccionsite;

function OAS_AD(pos) {
	try {
		if (OAS_version >= 11) {
			OAS_RICH  (pos);
		} else {
			OAS_NORMAL(pos);
		}
	} catch(e) {
		OAS_NORMAL(pos);
	}
}

function OAS_NORMAL(pos) {
	document.write('<a href="' + OAS_url + 'click_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" target=' + OAS_target + '><img src="' + OAS_url + 'adstream_nx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '!' + pos + '?' + OAS_query + '" BORDER=0></a>');
}

if (OAS_version >= 11) {
	document.write('<scr' + 'ipt language="JavaScript1.1" src="' + OAS_url + 'adstream_mjx.ads/' + OAS_sitepage + '/1' + OAS_rns + '@' + OAS_listpos + '?' + OAS_query + '"><\/script>');
}


