﻿var sitio = 'esto';

var idgruposondeos = 1;
var aleat=1;

var google300x250 = google300x250_esto;
var coloresbuscador = coloresbuscador_azul;

var getURL = document.URL

var ubicacion ='0';

/* ----------------------------------------------------------------------------------------- */
function writePreHeader()
{
	document.write(
	'<table width="970" align="center" border="0" cellpadding="0" cellspacing="0">'+
    '<tr>'+
    '<td width="240"><img src="../images/b_hv1.gif" width="234" height="60" class="margenBanners2"></td>'+
    '<td width="239"><img src="../images/234_x60_soldem.gif" width="234" height="60"></td>'+
    '<td width="239"><div align="center"><img src="../images/234_x60_gris.gif" width="234" height="60"></div></td>'+
    '<td width="252"><img src="../images/samsung_love.gif" width="234" height="60" class="margenBanners2"></td>'+
  '</tr>'+
  '</table>'+
  '');
}
function writeHeader() {
	/*writePreHeader();*/
	document.write( 
	'<div align="center">'+
	'<table width="970" align="center" border="0" cellspacing="0" cellpadding="0">'+
	'<tr>'+
		'<td align="center" valign="top">'+
			'<table width="970" align="center" height="71" border="0" cellpadding="0" cellspacing="0">'+
			'<tr>'+
			'<td width="125" height="83" bgcolor="#AE9D92" rowspan="2"><a href="/' + sitio + '/default.aspx"><img src="../images/tm_logoesto.gif" width="125" height="75"></a></td>'+
		    '<td width="790" height="30" bgcolor="#AE9D92"><table width="785" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="#AE9D92">'+
            '<tr>'+
            '<td width="323" bgcolor="#AE9D92" class="pleca_quienes"><div align="center" class="navegacion"><a href="quienessomos.aspx" class="navegacion">Qui&eacute;nes Somos &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="contactanos.aspx" class="navegacion">Cont&aacute;ctenos &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="directorio.aspx" class="navegacion">Directorio</div></td>'+
            '<td width="460" align="center" bgcolor="#AE9D92" class="pleca_buscar">'+
            ' <script>writeBuscadorGoogle_esto();</script>'+
                       ' </span></span><span class="style8"><span class="style9"> </span></span></td>'+
            '  </tr>'+
			 '</table></td>'+
		    '<td width="59" height="83" bgcolor="#AE9D92" rowspan="2" align="right"><span class=""><img src="../images/logo_oem.gif" width="60" height="75" /></span></td>'+
			'  </tr>'+
			'  <tr>'+
//			'    <td background="../images/t_equipos.gif" width="483" height="28">'+
			'	<td bgcolor="#AE9D92" align="center">');
			writeHeaderEquiposnotas();
				document.write(	
					
					'</tr>'+
					'</table>'+
				'</td>'+
			'  </tr>'+
			'</table>'+
		'</td>'+
  '</tr>'+
  '<tr>'+
  '  <table width="970" align="center" border="0" cellspacing="0" cellpadding="0">'+
  '    <tr>'+
  '      <td width="698" height="25" align="left" bgcolor="#563E2E" class="navegacion_header">'+
	'		    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/futbolmexicano.aspx"><strong>Futbol Mexicano</strong></a>'+
	'			&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/estadisticas.aspx"><strong>Estad&iacute;sticas</strong></a>'+
	'			&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/legionazteca.aspx"><strong>Legi&oacute;n Azteca</strong></a>'+
	'			&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/futbolmudnial.aspx"><strong>Futbol Mundial</strong></a>'+
	'			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/beisbol.aspx"><strong>Beisbol</strong></a>'+
	'			&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/box.aspx"><strong>Box</strong></a>'+
	'			&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/autos.aspx"><strong>Autos</strong></a>	</td>'+
    '          <td bgcolor="#563E2E">&nbsp;</td>'+
    '      <td width="90"  bgcolor="#563E2E"></td>'+
    '      <td width="19"  align="right" bgcolor="#563E2E"><a href="http://www.facebook.com/pages/estocommx/112463605486121" target="_blank"><img src="../images/rs_facebook.png" width="18" height="25"  /></td>'+
    '        <td width="19"  align="right" bgcolor="#563E2E"><a href="http://twitter.com/estoenlinea" target="_blank"><img src="../images/rs_twitter.png" width="18" height="25" /></td>'+
    '        <td width="21"  align="right" bgcolor="#563E2E"><a href="http://www.oem.com.mx/esto/rss/index_rss_esto.aspx" target="_blank"><img src="../images/rs_rss.png" width="18" height="25" /></td>	'+
    '    </div></td>'+
    '  </tr>'+
    '</table></td>'+
	'<table width="970"  align="center" bgcolor="#563E2E" class="navegacion_segunda">'+
    '<td  align="left" height="25"  bgcolor="#563E2E" class="navegacion_segunda">'+ 
	'		&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/toros.aspx">Toros</a>'+
	'		&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/charros.aspx"> Charrer&iacute;a </a>'+
	'		&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/otrosdeportes.aspx">Otros Deportes</a>'+
	'		&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/extension.aspx">Extensi&oacute;n Deportiva</a>'+
	'        &nbsp;&nbsp;&nbsp; <a href="/' + sitio + '/galerias.aspx">Galer&iacute;as&nbsp;</a>'+
	'		&nbsp;&nbsp;&nbsp; <a href="/' + sitio + '/espectaculos.aspx">Espect&aacute;culos&nbsp;</a>'+
	'		&nbsp;&nbsp;&nbsp; <a href="/' + sitio + '/especiales.aspx">Especiales&nbsp;</a>'+
	'		&nbsp;&nbsp;<a href="/' + sitio + '/Descargas.aspx">Descargas</a>'+
	'         <td  width="80" height="25" align="right" bgcolor="#563E2E"class="navegacion_segunda">'+
    '         <td width="123" bgcolor="#563E2E" class="margenAbajo"><a href="#" onclick="window.open(\'http://www.oem.com.mx/abcradio/ventanaabc.html\',\'abcradio\',\'scrollbars=0,width=460,height=220\');"><img src="../images/logo_abc.gif" width="100" height="25"></a></td>'+
	' <td  bgcolor="#563E2E">'+
	 '');
	writeSelectDiarios(); document.write(''+
  '</tr>'+
'</table>');	


	
	/*document.write(

		''
	);*/
	//writeServiciosHeader();
}

function writeHeaderCA() {
	/*writePreHeader();*/
	document.write(
	'<div align="center">'+
	
  '  <table width="970" align="center" border="0" cellspacing="0" cellpadding="0">'+
  '    <tr>' +
  '	 		<td width="790" bgcolor="#0A6B16"><table width="785" height="35" border="0" cellpadding="0" cellspacing="0" bgcolor="#E5E5E5">' +
  ' 	    <td width="125" height="75" bgcolor="#FFFFFF"><a href="http://www.oem.com.mx/esto"><img src="../images/ca_logoesto.gif" width="125" height="75" /></td>' +
  '      <td width="47" bgcolor="#0A6B16"><a href="http://www.ca2011.com" target="_blank"><img src="../images/ca_lcopamerica.gif" width="145" height="75" /></td>' +
  '      <td width="48" bgcolor="#0A6B16"><a href="http://www.oem.com.mx/esto/copaa2011_estadisticas.aspx"><img src="../images/ca_b_01.gif" width="113" height="75" /></td>' +
  '      <td width="100" align="center" bgcolor="#0A6B16"><a href="http://www.oem.com.mx/esto/copaa2011_grupos.aspx"><img src="../images/ca_b_02.gif" width="74" height="75" /></td>' +
  '      <td width="134" align="center" bgcolor="#0A6B16"><a href="http://www.oem.com.mx/esto/copaa2011_sedes.aspx"><img src="../images/ca_b_03.gif" width="60" height="75" /></td>' +
  '      <td width="128" align="center" bgcolor="#0A6B16"><a href="http://www.oem.com.mx/esto/copaa2011_argentina.aspx"><img src="../images/ca_b_04.gif" width="126" height="75" /></td>' +
  '      <td width="130" align="center" bgcolor="#0A6B16"><a href="http://www.oem.com.mx/esto/copaa2011_tri.aspx"><img src="../images/ca_b_05.gif" width="63" height="75" /></td>' +
  '      <td width="67" align="center" bgcolor="#0A6B16"><a href="http://www.oem.com.mx/esto/copaa2011_goleadores.aspx"><img src="../images/ca_b_06.gif" width="106" height="75" /></td>' +
  '      <td width="131" align="center" bgcolor="#0A6B16"><a href="http://www.oem.com.mx/esto/copaa2011_campeones.aspx"><img src="../images/ca_b_07.gif" width="98" height="75" /></td>' +
  '	<td width="59" height="75" align="right" bgcolor="#0A6B16"><span class=""><a href="http://www.oem.com.mx" target="_blank"><img src="../images/ca_logooem.gif" width="60" height="75" /></span></td>' +
  '   </tr> ' +
  ' </table></td> ' +
  ' </tr> ' +
  '<tr> ' +
  '  <td colspan="3" bgcolor="#563E2E"><table width="970" border="0" cellspacing="0" cellpadding="0"> ' +
  '    <tr> ' +
  '	&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/futbolmexicano.aspx"><strong>FUTBOL MEXICANO</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="/' + sitio + '/estadisticas.aspx"><strong>ESTADÍSTICAS</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="/' + sitio + '/legionazteca.aspx"><strong>LEGIÓN AZTECA</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="/' + sitio + '/futbolmudnial.aspx"><strong>FUTBOL MUNDIAL</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="/' + sitio + '/beisbol.aspx"><strong>BEISBOL</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="/' + sitio + '/box.aspx"><strong>BOX</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="/' + sitio + '/autos.aspx"><strong>AUTOS</strong></a></span></td> ' +
  '     <td bgcolor="#563E2E" class="pleca_ca">&nbsp;</td> ' +
  '     <td width="90" bgcolor="#563E2E" class="pleca_ca">&nbsp;</td> ' +
  '     <td width="19" class="pleca_ca"><a href="http://www.facebook.com/pages/estocommx/112463605486121" target="_blank"><img src="../images/ca_lfacebook.gif" width="18" height="25" /></td> ' +
  '     <td width="19" class="pleca_ca"><a href="http://twitter.com/estoenlinea" target="_blank"><img src="../images/ca_ltwitter.gif" width="18" height="25" /></td>' +
  '     <td width="21" class="pleca_ca"><a href="http://www.oem.com.mx/esto/rss/index_rss_esto.aspx" target="_blank"><img src="../images/ca_lrss.gif" width="18" height="25" /></td>' +
  '     </tr> ' +
  '  <tr> ' +
  '    <td height="25" align="left" bgcolor="#369CC1"><span class="pleca_ca"><span class="navegacion 17"></span></span><span class="navegacionAzul">&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/toros.aspx"><strong>TOROS</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/charros.aspx"><strong> CHARRERÍA</strong></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/otrosdeportes.aspx">OTROS DEPORTES</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/extension.aspx">EXTENSIÓN DEPORTIVA</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/galerias.aspx">GALERÍAS&nbsp;</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/espectaculos.aspx">ESPECTÁCULOS&nbsp;</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="navegacionVerde"></span></td> ' +
  '    <td width="123" align="right" bgcolor="#369CC1"><a href="#" onclick="window.open("http://www.oem.com.mx/abcradio/ventanaabc.html","abcradio","scrollbars=0,width=460,height=220");"><img src="../images/ca_labcradio.gif" width="100" height="25" /></td> ' +
  '	<td  align="right" colspan="4" bgcolor="#369CC1"> ' +
  	 '');
	writeSelectDiarios(); document.write(''+
  '     </select></td> '+
  '</td> ' +
  ' </table> ' +
  '</table>' +
  '</tr>' +
	//
 
'</table>');	


	
	/*document.write(

		''
	);*/
	//writeServiciosHeader();
}

function writeHeader2011() {
	/*writePreHeader();*/
	document.write( 
	'<table width="970" border="0" cellspacing="0" cellpadding="0">'+
	'<tr>'+
		'<td width="125" height="75" rowspan="2" bgcolor="#FFFFFF"><a href="/' + sitio + '/default.aspx"><img src="../images/tm_logoesto.gif" width="125" height="75" border="0"></a></td>' +
		'<td width="790" height="30" bgcolor="#9A8A7F">' +
		'<table width="785" height="30" border="0" cellpadding="0" cellspacing="0" bgcolor="#E5E5E5"><tr>' +
        '    <td width="323" bgcolor="#9A8A7F" class="pleca_quienes" ><div align="center" class="navegacion"><a href="/' + sitio + '/quienessomos.aspx" class="navegacion">Qui&eacute;nes Somos &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/contactanos.aspx" class="navegacion">Cont&aacute;ctenos &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/directorio.aspx" class="navegacion">Directorio</div></td>' +
        '    <td width="460" height="30" bgcolor="#9A8A7F" class="pleca_buscar">' +
		' <script>writeBuscadorGoogle_esto2011();</script>' +
		'</td></tr></table>' +
		'</td>' +		
        '<td width="59" height="75" rowspan="2" align="right" bgcolor="#99897F"><span class=""><img src="../images/logo_oem.gif" width="60" height="75" border="0"/></span></td>' +
		'</tr>' +
      	'<tr><td bgcolor="#9A8A7F">');
writeHeaderEquiposnotas2011();
document.write(	
		'</td></tr>' +
  		'<tr>' +
	'<td colspan="3"><table width="970" border="0" cellspacing="0" cellpadding="0">' +
     '   <tr> ' +
 		'<td width="698" height="25" align="left" bgcolor="#563E2E"><span class="navegacion">' +
	'		    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/futbolmexicano.aspx">FUTBOL MEXICANO</a>' +
	'			&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/estadisticas.aspx">ESTADÍSTICAS</a>' +
	'			&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/legionazteca.aspx">LEGIÓN AZTECA</a>' +
	'			&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/futbolmudnial.aspx">FUTBOL MUNDIAL</a>' +
	'			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/beisbol.aspx">BEISBOL</a>' +
	'			&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/box.aspx">BOX</a>' +
	'			&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/autos.aspx">AUTOS</a>	</td>' +
    '          <td bgcolor="#563E2E">&nbsp;</td>' +
    '      	 <td width="90"  bgcolor="#563E2E"></td>' +
    '     	 <td width="19"  align="right" bgcolor="#563E2E"><a href="http://www.facebook.com/pages/estocommx/112463605486121" target="_blank"><img src="../images/rs_facebook.png" width="18" height="25" border="0"/></td>' +
    '        <td width="19"  align="right" bgcolor="#563E2E"><a href="http://twitter.com/estoenlinea" target="_blank"><img src="../images/rs_twitter.png" width="18" height="25" border="0"/></td>' +
    '        <td width="21"  align="right" bgcolor="#563E2E"><a href="http://www.oem.com.mx/esto/rss/index_rss_esto.aspx" target="_blank"><img src="../images/rs_rss.png" width="18" height="25" border="0"/></td>' +
    '  </tr>'+
    ' <tr>'+
    '<td height="25" align="left" bgcolor="#563E2E"><span class="navegacion2">' + 
	'		&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/toros.aspx">TOROS</a>' +
	'		&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/charros.aspx"> CHARRERÍA </a>' +
	'		&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/otrosdeportes.aspx">OTROS DEPORTES</a>' +
	'		&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/extension.aspx">DEPORTE OLÍMPICO</a>' +
	'        &nbsp;&nbsp;&nbsp; <a href="/' + sitio + '/galerias.aspx">GALERÍAS</a>' +
	'		&nbsp;&nbsp;&nbsp; <a href="/' + sitio + '/espectaculos.aspx">ESPECTÁCULOS</a>' +
	'		&nbsp;&nbsp;&nbsp; <a href="/' + sitio + '/especiales.aspx">ESPECIALES</a>' +
	'		&nbsp;&nbsp;<a href="/' + sitio + '/Descargas.aspx">DESCARGAS</a> </span></td>' +
    '         <td width="123" bgcolor="#563E2E" class="margenAbajo"><a href="#" onclick="window.open(\'http://www.oem.com.mx/abcradio/ventanaabc.html\',\'abcradio\',\'scrollbars=0,width=460,height=220\');"><img src="../images/logo_abc.gif" width="100" height="25" border="0"></a></td>' +
	'  <td colspan="4" bgcolor="#563E2E">' +
	 '');
	writeSelectDiarios();
document.write(''+
  '</td></tr>'+
'</table></td></tr></table>');	
}

function writeBuscadorGoogle_esto() {
	html = '&nbsp;';
	html += '';
	html += '<table border="0">';
	html += '<form method="get" action="/' + sitio + '/google.aspx" target="_top">';
	html += '<tr >';
	html += '<td nowrap="nowrap" valign="top" align="left"><input type="hidden" name="domains" value="www.oem.com.mx" ></input>';
	html += '<label for="sbi" style="display: none">Introduzca los t&eacute;rminos de b&uacute;squeda.</label>';
	html += '<input  type="text" name="q" size="25" maxlength="255" id="sbi" ></input>';
	html += '<label for="sbb" style="display: none">Env&iacute;e el formulario de b&uacute;squeda</label>';
	html += '&nbsp;&nbsp;<input  type="submit" name="sa" value="Buscar" id="sbb"></input>';
	html += '<input type="radio" name="sitesearch" value="" id="ss0"></input>';
	html += '<label for="ss0" title="Buscar en la web"><font size="-1"><span class="buscador">Web</span></font></label>';
	html += '<input type="radio" name="sitesearch" value="www.oem.com.mx" checked id="ss1"></input>';
	html += '<label for="ss1" title="B&uacute;squeda www.oem.com.mx"><font size="-1"><span class="buscador">OEM</span></font></label>';
	html += '<input type="hidden" name="client" value="pub-0452643230599787"></input>';
	html += '<input type="hidden" name="forid" value="1"></input>';
	html += '<input type="hidden" name="ie" value="UTF-8"></input>';
	html += '<input type="hidden" name="oe" value="UTF-8"></input>';
	html += '<input type="hidden" name="cof" value="' + coloresbuscador + 'LH:50;LW:417;L:http://i.oem.com.mx/comunes/header_google.gif;S:http://www.oem.com.mx;FORID:11"></input>';
//	html += '<input type="hidden" name="cof" value="GALT:#CC0000;GL:1;DIV:#E6E6E6;VLC:CC0000;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:940F04;LC:940F04;T:7F7F7F;GFNT:CC0000;GIMP:CC0000;LH:50;LW:417;L:http://i.oem.com.mx/comunes/header_google.gif;S:http://www.oem.com.mx;FORID:11"></input>';
	html += '<input type="hidden" name="hl" value="es"></input></td>';
	html += '</tr>';
	html += '</form>';
	html += '</table>';	
	document.write(html);
}

function writeBuscadorGoogle_esto2011() {
	
	html = '<form method="get" action="/' + sitio + '/google.aspx" target="_top" class="forma_buscar">';
	html += '<input type="hidden" name="domains" value="www.oem.com.mx" ></input>';
	html += '<label for="sbi" style="display: none">Introduzca los t&eacute;rminos de b&uacute;squeda.</label>';
	html += '<input  type="text" name="q" size="18" maxlength="255" id="sbi" class="hora"></input>';
	html += '<label for="sbb" style="display: none">Env&iacute;e el formulario de b&uacute;squeda</label>';
	html += '&nbsp;&nbsp;<input  type="submit" name="sa" value="Buscar" id="sbb" class="hora"></input>';
	html += '<input type="radio" name="sitesearch" value="" id="ss0" class="style7"></input>';
	html += '<label for="ss0" title="Buscar en la web"><font size="-1"><span class="navegacion">Web</span></font></label>';
	html += '<input type="radio" name="sitesearch" value="www.oem.com.mx" checked id="ss1" class="style7"></input>';
	html += '<label for="ss1" title="B&uacute;squeda www.oem.com.mx"><font size="-1"><span class="navegacion">OEM</span></font></label>';
	html += '<input type="hidden" name="client" value="pub-0452643230599787"></input>';
	html += '<input type="hidden" name="forid" value="1"></input>';
	html += '<input type="hidden" name="ie" value="UTF-8"></input>';
	html += '<input type="hidden" name="oe" value="UTF-8"></input>';
	html += '<input type="hidden" name="cof" value="' + coloresbuscador + 'LH:50;LW:417;L:http://i.oem.com.mx/comunes/header_google.gif;S:http://www.oem.com.mx;FORID:11"></input>';
//	html += '<input type="hidden" name="cof" value="GALT:#CC0000;GL:1;DIV:#E6E6E6;VLC:CC0000;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:940F04;LC:940F04;T:7F7F7F;GFNT:CC0000;GIMP:CC0000;LH:50;LW:417;L:http://i.oem.com.mx/comunes/header_google.gif;S:http://www.oem.com.mx;FORID:11"></input>';
	html += '<input type="hidden" name="hl" value="es"></input>';
	html += '</form>';
	document.write(html);
}

function writeHorariosAjax() {
	loadJson(urlbaseAjax + 'GetHorariosJson.aspx');
}
function writeCuentaRegresiva(){
	loadJson(urlbaseAjax + 'GetCuentaRegresivaJson.aspx');
}

function writeGoogle300x250_fondogris()
{
	/* 300x250, esto-especiales creado 4/08/08 */
	var google300x250_fondogris = 
				'google_ad_client = "pub-0452643230599787";'+
				'google_ad_slot = "6736374707";'+
				'google_ad_width = 300;'+
				'google_ad_height = 250;';


	document.write(
		'<script type="text/javascript">' + google300x250_fondogris +'</script>' + 
		'<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>'
	);
}
function writePublicidadDescargas()
{
	document.write(''+
	'<div class="margenesPortlet">'+
	'<script type="text/javascript">'+
	'google_ad_client = "pub-0452643230599787";'+
	'google_ad_width = 300;'+
	'google_ad_height = 250;'+
	'google_ad_format = "300x250_as";'+
	'google_ad_type = "text";'+
	//2008-01-08: notas_DairioESTO_OEM
	'google_ad_channel = "7210313010";'+
	'google_color_border = "FFFFFF";'+
	'google_color_bg = "FFFFFF";'+
	'google_color_link = "117ea7";'+
	'google_color_text = "333333";'+
	'google_color_url = "333333";'+
	//-->
	'</script>'+
	'<script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js">'+
	'</script>'+
	'</div>'+
	''
	);
}


function writeColumnaDerechaNotasBeijing(c, p, ph) {
	 
}
function writeFooter() {
	writeFooterOEM_nuevoesto() ;
	writeGoogleTracker();
}
function writeFooter2011() {
	writeFooter_esto2011() ;
	writeGoogleTracker();
}
function writeFooter1() {
	writeFooterOEM_nuevoesto1() ;
	writeGoogleTracker();
}
function writeGoingUp()
{
	document.write(''+
	'<script type="text/javascript" src="//counter.goingup.com/js/tracker.js?st=byh2hxg&amp;b=2"></script>'+
	'');
}
function writeFooterOEM_nuevoesto() {
	document.write(
	'<table width="970" align="center" border="0" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0">' + 
		'<td colspan="3" height="20" align="center" bgcolor="#563E2E" class="piefotoEsto">Derechos Reservados Organizaci&oacute;n Editorial Mexicana S.A. de C.V.</div></td></tr>' + 
		'<tr>' + 
			'<td height="30">' + 
				'<div align="center" class="nav_footer">' + 
				 '<img src="../images/logo_oemenlinea_80x20.gif"/>  ' + 
					'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/estaticas/quienessomos.aspx"><span class="navegacion_a">Qui&eacute;nes somos</a> - ' + 
					'<a href="/' + sitio + '/estaticas/contactanos.aspx"><span class="navegacion_a">Cont&aacute;ctanos</a> - ' + 
					'<a href="http://www.oem.com.mx/esto/formas/publicidad.aspx" target= "_blank"><span class="navegacion_a">Contratar Publicidad</a> - ' + 
					'<a href="/' + sitio + '/avisolegal.aspx" target= "_blank"><span class="navegacion_a">Aviso Legal</span></a> ' + 
				'</div>' + 
			'</td>' + 
		'</tr>' + 
	'</table>'
	);
}

function writeFooter_esto2011() {
	document.write(
	'<tr>' + 
		'<td bgcolor="#563E2E">&nbsp;</td>' +
		'<td colspan="3" align="center" bgcolor="#563E2E" class="piefotoEsto">' +
		'Derechos Reservados Organizaci&oacute;n Editorial Mexicana S.A. de C.V.</td>' + 
		'<td bgcolor="#563E2E">&nbsp;</td>' + 
	'</tr>' + 
	'<tr>' + 
		'<td bgcolor="#FFFFFF" class="margen_Izq_abajo">&nbsp;</td>' + 
		'<td height="30" colspan="3" align="center" valign="middle" bgcolor="#FFFFFF" class="margenAbajo">' + 
				 '<img src="../images/logo_oemenlinea_80x20.gif"/>  ' + 
					'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="navegacion_a"><a href="/' + sitio + '/estaticas/quienessomos.aspx"><span class="navegacion_a">Qui&eacute;nes somos</a> - ' + 
					'<a href="/' + sitio + '/estaticas/contactanos.aspx"><span class="navegacion_a">Cont&aacute;ctanos</a> - ' + 
					'<a href="http://www.oem.com.mx/esto/formas/publicidad.aspx" target= "_blank"><span class="navegacion_a">Contratar Publicidad</a> - ' + 
					'<a href="/' + sitio + '/avisolegal.aspx" target= "_blank">Aviso Legal</span></a> ' + 
		'</td>' + 
		'<td bgcolor="#FFFFFF" class="margen_Der_abajo">&nbsp;</td>' + 
	'</tr>'
	);
}

function writeFooterOEM_nuevoesto1() {
	document.write(
	'<table width="968" align="center" border="0" bgcolor="#FFFFFF" cellspacing="0" cellpadding="0">' + 
		'<td colspan="3" height="20" align="center" bgcolor="#563E2E" class="piefotoEsto">Derechos Reservados Organizaci&oacute;n Editorial Mexicana S.A. de C.V.</div></td></tr>' + 
		'<tr>' + 
			'<td height="30">' + 
				'<div align="center" class="nav_footer">' + 
				 '<img src="images/logo_oemenlinea_80x20.gif"/>  ' + 
					'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/' + sitio + '/estaticas/quienessomos.aspx"><span class="navegacion_a">Qui&eacute;nes somos</a> - ' + 
					'<a href="/' + sitio + '/estaticas/contactanos.aspx"><span class="navegacion_a">Cont&aacute;ctanos</a> - ' + 
					'<a href="http://www.oem.com.mx/esto/formas/publicidad.aspx" target= "_blank"><span class="navegacion_a">Contratar Publicidad</a> - ' + 
					'<a href="/' + sitio + '/avisolegal.aspx" target= "_blank"><span class="navegacion_a">Aviso Legal</span></a> ' + 
				'</div>' + 
			'</td>' + 
		'</tr>' + 
	'</table>'
	);
}
		
function writeStatCounterCode() {
	document.write(''+
		'<script type="text/javascript" language="javascript">' + 
		'var sc_project=1728537;' + 
		'var sc_invisible=1;' + 
		'var sc_partition=16;' + 
		'var sc_security="16c80e10";' + 
		'</script>' + 
		'<script type="text/javascript" language="javascript" src="http://www.statcounter.com/counter/counter.js"></script><noscript><a href="http://www.statcounter.com/" target="_blank"><img  src="http://c17.statcounter.com/counter.php?sc_project=1728537&java=0&security=16c80e10&invisible=1" alt="" border="0"></a> </noscript>'+
	'');
}

function writeServiciosNotas()
{
	document.write('');
}
function writeServiciosNotas2()
{
	document.write('<div class="categoria">Comparte esta nota</div>');
	document.write('<div class="margenesPortlet">');
	document.write('<div class="resumen">');
	document.write('Estos &iacute;conos son parte de servicios web ajenos a OEM en L&iacute;nea.');
	document.write('  Util&iacute;zalos para compartir y clasificar esta nota con otros usuarios');
	document.write('</div">');
	document.write('<table align="center">');
	document.write('<tr>');
	document.write('<td>');
	writeDelicious();
	document.write('</td>');
	document.write('<td>');
	writeEnchilame();
	document.write('</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td>');
	writeDigg();
	document.write('</td>');
	document.write('<td>');
	writeMeneame();
	document.write('</td>');
	document.write('</tr>');
	document.write('</table>');

	document.write('</div">');
	
}
function writeServiciosNotas2()
{
	document.write('');
}

function writeDelicious()
{
	document.write(''+
	'<div class="resumen">'+
	'<img src="../images/agregadores/Delicious.gif">'+
	'<a href="http://del.icio.us/post?url='+getURL+'"> Del.icio.us</a></div>'+
	'');
}
function writeEnchilame()
{
 
	document.write(''+
	'<div class="resumen">'+
	'<img src="../images/agregadores/chilito.gif" alt="Enchilame" />'+
	'<a href="http://enchilame.com/submit.php?url='+getURL+'/"> Enchilame</a></div>'+
	'');
}
function writeDigg()
{
 
	document.write(''+
	'<div class="resumen">'+
	'<img src="../images/agregadores/digg.jpg" alt="Digg" />'+
	'<a href="http://digg.com/submit?url='+getURL+'/"> Digg</a></div>'+
	'');
}
function writeMeneame()
{
 
	document.write(''+
	'<div class="resumen">'+
	'<img src="../images/agregadores/meneame.gif" alt="Mename" />'+
	'<a href="http://meneame.net/submit.php?url='+getURL+'/"> Mename</a></div>'+
	'');
}
function Imprimir_nota(){
document.all.item("noprint").style.visibility='hidden'
window.print()
document.all.item("noprint").style.visibility='visible'
}
function abrirventana()
{
	window.open('../envia.aspx?url='+getURL+'','','status=0,location=0,toolbar=0,menubar=0,scrollbars=0');
}
function writeServicios() {
	document.write(''+
	'<br>'+
	//'<span id="noprint">'+
	//'<table align="left"><tr>'+
	//'<td width="75%">'+
	//'</td>'+
	//'<td width="10%" align="left">'+
	//'<span id="navcontainer">'+
	//'<ul>'+
	'<img src="../images/b_correo.gif"><a href="javascript:;" vlink="FFFFFF" link="FFFFFF" alink="FFFFFF" onclick="abrirventana()" style="cursor:pointer;"><span class="resumen">Env&iacute;a por Correo-e</span></a><br>'+
	'<span id="noprint"><img src="../images/b_imprimir.gif"> <a href="javascript:;" vlink="FFFFFF" onclick="Imprimir_nota();" style="cursor:pointer;"><span class="resumen">Imprimir</span></a></span>'+
	//'<li onclick="abrirventana();" style="cursor:pointer;"><img src="../images/b_correo.gif">  <span class="resumen">Enva por Correo-e</span></li>'+
	//'<li onclick="Imprimir_nota();" style="cursor:pointer;"><img src="../images/b_imprimir.gif">  <span class="resumen">Imprime esta Nota</span></li>'+
	//'</ul>'+
	//'</span>'+
	//'</td>'+
	//'</tr></table>'+
	//'</span>'+
	'');
}
function writeServicios2011() {
	document.write('s'+
	'<span  class="st_facebook_vcount" displayText="Facebook"></span><br/>' +
	'<span  class="st_twitter_vcount" displayText="Tweet"></span><br />' +
	'<span class="st_email_vcount" displayText="Email"></span><br />' +
	'');
}
function writeHeaderEquipos(){
	document.write(
	'<table border="0" align="center" cellspacing="0" cellpadding="0">'+
	'<tr>'+
	'  <td width="35"><img src="images/pleca_1.gif" width="77" height="45"></td>'+
	'  <td width="35"><a href="notas/eq451.htm"><img src="images/equipos_header/01_america.gif" width="35" height="45" border="0" alt="Am&#233;rica"></a></td>'+
	'  <td width="35"><a href="notas/eq450.htm"><img src="images/equipos_header/02_atlante.gif" width="35" height="45" border="0" alt="Atlante"></a></td>'+
	'  <td width="35"><a href="notas/eq452.htm"><img src="images/equipos_header/03_atlas.gif" width="35" height="45" border="0" alt="Atlas"></a></td>'+	
    '  <td width="35"><a href="notas/eq461.htm"><img src="images/equipos_header/04_chiapas.gif" width="35" height="45" border="0" alt="Jaguares"></a></td>'+	
	'  <td width="35"><a href="notas/eq458.htm"><img src="images/equipos_header/05_cruzazul.gif" width="35" height="45" border="0" alt="Cruz Azul"></a></td>'+
	'  <td width="35"><a href="notas/eq448.htm"><img src="images/equipos_header/06_estudiantes.gif" width="35" height="45" border="0" alt="Estudiantes"></a></td>'+
    '  <td width="35"><a href="notas/eq446.htm"><img src="images/equipos_header/07_guadalajara.gif" width="35" height="45" border="0" alt="Chivas"></a></td>'+
	'  <td width="35"><a href="notas/eq445.htm"><img src="images/equipos_header/08_monterrey.gif" width="35" height="45" border="0" alt="Monterrey"></a></td>'+
	'  <td width="35"><a href="notas/eq457.htm"><img src="images/equipos_header/09_morelia.gif" width="35" height="45" border="0" alt="Morelia"></a></td>'+
	'  <td width="35"><a href="notas/eq449.htm"><img src="images/equipos_header/10_xolos.gif" width="35" height="45" border="0" alt="Xolos"></a></td>'+
	'  <td width="35"><a href="notas/eq455.htm"><img src="images/equipos_header/11_pachuca.gif" width="35" height="45" border="0" alt="Pachuca"></a></td>'+
	'  <td width="35"><a href="notas/eq459.htm"><img src="images/equipos_header/12_puebla.gif" width="35" height="45" border="0" alt="Puebla"></a></td>'+
    '  <td width="35"><a href="notas/eq460.htm"><img src="images/equipos_header/13_queretaro.gif" width="35" height="45" border="0" alt="Querétaro"></a></td>'+
	'  <td width="35"><a href="notas/eq453.htm"><img src="images/equipos_header/14_sanluis.gif" width="35" height="45" border="0" alt="San Luis"></a></td>'+
    '  <td width="35"><a href="notas/eq447.htm"><img src="images/equipos_header/15_santos.gif" width="35" height="45" border="0" alt="Santos"></a></td>'+
	'  <td width="35"><a href="notas/eq454.htm"><img src="images/equipos_header/16_toluca.gif" width="35" height="45" border="0" alt="Toluca"></a></td>'+
	'  <td width="35"><a href="notas/eq444.htm"><img src="images/equipos_header/17_uanl.gif" width="35" height="45" border="0" alt="Tigres"></a></td>'+
	'  <td width="35"><a href="notas/eq456.htm"><img src="images/equipos_header/18_unam.gif" width="35" height="45" border="0" alt="Unam"></a></td>'+ 
	'  <td width="35"><img src="images/pleca_2.gif" width="77" height="45"></td>'+
	'</tr>'+
	'</table>'+
	'');
}

function writeHeaderEquiposnotas()
{
	document.write(
	'<table border="0" align="center" cellspacing="0" cellpadding="0">'+
	'<tr>'+
	'  <td width="35"><a href="http://www.oem.com.mx/esto/setentaaniversario.aspx"><img src="../images/pleca_1.gif" width="77" height="45" border="0"></a></td>'+
	'  <td width="35"><a href="eq451.htm"><img src="../images/equipos_header/01_america.gif" width="35" height="45" border="0" alt="Am&#233;rica"></a></td>'+
	'  <td width="35"><a href="eq450.htm"><img src="../images/equipos_header/02_atlante.gif" width="35" height="45" border="0" alt="Atlante"></a></td>'+
	'  <td width="35"><a href="eq452.htm"><img src="../images/equipos_header/03_atlas.gif" width="35" height="45" border="0" alt="Atlas"></a></td>'+	
    '  <td width="35"><a href="eq461.htm"><img src="../images/equipos_header/04_chiapas.gif" width="35" height="45" border="0" alt="Jaguares"></a></td>'+	
	'  <td width="35"><a href="eq458.htm"><img src="../images/equipos_header/05_cruzazul.gif" width="35" height="45" border="0" alt="Cruz Azul"></a></td>'+
	'  <td width="35"><a href="eq448.htm"><img src="../images/equipos_header/06_estudiantes.gif" width="35" height="45" border="0" alt="Estudiantes"></a></td>'+
    '  <td width="35"><a href="eq446.htm"><img src="../images/equipos_header/07_guadalajara.gif" width="35" height="45" border="0" alt="Chivas"></a></td>'+
	'  <td width="35"><a href="eq445.htm"><img src="../images/equipos_header/08_monterrey.gif" width="35" height="45" border="0" alt="Monterrey"></a></td>'+
	'  <td width="35"><a href="eq457.htm"><img src="../images/equipos_header/09_morelia.gif" width="35" height="45" border="0" alt="Morelia"></a></td>'+
	'  <td width="35"><a href="eq449.htm"><img src="../images/equipos_header/10_xolos.gif" width="35" height="45" border="0" alt="Xolos"></a></td>'+
	'  <td width="35"><a href="eq455.htm"><img src="../images/equipos_header/11_pachuca.gif" width="35" height="45" border="0" alt="Pachuca"></a></td>'+
	'  <td width="35"><a href="eq459.htm"><img src="../images/equipos_header/12_puebla.gif" width="35" height="45" border="0" alt="Puebla"></a></td>'+
    '  <td width="35"><a href="eq460.htm"><img src="../images/equipos_header/13_queretaro.gif" width="35" height="45" border="0" alt="Querétaro"></a></td>'+
	'  <td width="35"><a href="eq453.htm"><img src="../images/equipos_header/14_sanluis.gif" width="35" height="45" border="0" alt="San Luis"></a></td>'+
    '  <td width="35"><a href="eq447.htm"><img src="../images/equipos_header/15_santos.gif" width="35" height="45" border="0" alt="Santos"></a></td>'+
	'  <td width="35"><a href="eq454.htm"><img src="../images/equipos_header/16_toluca.gif" width="35" height="45" border="0" alt="Toluca"></a></td>'+
	'  <td width="35"><a href="eq444.htm"><img src="../images/equipos_header/17_uanl.gif" width="35" height="45" border="0" alt="Tigres"></a></td>'+
	'  <td width="35"><a href="eq456.htm"><img src="../images/equipos_header/18_unam.gif" width="35" height="45" border="0" alt="Unam"></a></td>'+ 
	'  <td width="35"><img src="../images/pleca_2.gif" width="77" height="45"></td>'+
	'</tr>'+
	'</table>'+
	'');
}

function writeHeaderEquiposnotas2011()
{
	document.write(
	'<table border="0" align="center" cellspacing="0" cellpadding="0">'+
	'<tr>'+
	'  <td width="35"><a href="http://www.oem.com.mx/esto/setentaaniversario.aspx"><img src="../images/pleca_1.gif" width="77" height="45" border="0"></a></td>'+
	'  <td width="35"><a href="eq451.htm"><img src="../images/equipos_header/01_america.gif" width="35" height="45" border="0" alt="Am&#233;rica"></a></td>'+
	'  <td width="35"><a href="eq450.htm"><img src="../images/equipos_header/02_atlante.gif" width="35" height="45" border="0" alt="Atlante"></a></td>'+
	'  <td width="35"><a href="eq452.htm"><img src="../images/equipos_header/03_atlas.gif" width="35" height="45" border="0" alt="Atlas"></a></td>'+	
    '  <td width="35"><a href="eq461.htm"><img src="../images/equipos_header/04_chiapas.gif" width="35" height="45" border="0" alt="Jaguares"></a></td>'+	
	'  <td width="35"><a href="eq458.htm"><img src="../images/equipos_header/05_cruzazul.gif" width="35" height="45" border="0" alt="Cruz Azul"></a></td>'+
	'  <td width="35"><a href="eq448.htm"><img src="../images/equipos_header/06_estudiantes.gif" width="35" height="45" border="0" alt="Estudiantes"></a></td>'+
    '  <td width="35"><a href="eq446.htm"><img src="../images/equipos_header/07_guadalajara.gif" width="35" height="45" border="0" alt="Chivas"></a></td>'+
	'  <td width="35"><a href="eq445.htm"><img src="../images/equipos_header/08_monterrey.gif" width="35" height="45" border="0" alt="Monterrey"></a></td>'+
	'  <td width="35"><a href="eq457.htm"><img src="../images/equipos_header/09_morelia.gif" width="35" height="45" border="0" alt="Morelia"></a></td>'+
	'  <td width="35"><a href="eq449.htm"><img src="../images/equipos_header/10_xolos.gif" width="35" height="45" border="0" alt="Xolos"></a></td>'+
	'  <td width="35"><a href="eq455.htm"><img src="../images/equipos_header/11_pachuca.gif" width="35" height="45" border="0" alt="Pachuca"></a></td>'+
	'  <td width="35"><a href="eq459.htm"><img src="../images/equipos_header/12_puebla.gif" width="35" height="45" border="0" alt="Puebla"></a></td>'+
    '  <td width="35"><a href="eq460.htm"><img src="../images/equipos_header/13_queretaro.gif" width="35" height="45" border="0" alt="Querétaro"></a></td>'+
	'  <td width="35"><a href="eq453.htm"><img src="../images/equipos_header/14_sanluis.gif" width="35" height="45" border="0" alt="San Luis"></a></td>'+
    '  <td width="35"><a href="eq447.htm"><img src="../images/equipos_header/15_santos.gif" width="35" height="45" border="0" alt="Santos"></a></td>'+
	'  <td width="35"><a href="eq454.htm"><img src="../images/equipos_header/16_toluca.gif" width="35" height="45" border="0" alt="Toluca"></a></td>'+
	'  <td width="35"><a href="eq444.htm"><img src="../images/equipos_header/17_uanl.gif" width="35" height="45" border="0" alt="Tigres"></a></td>'+
	'  <td width="35"><a href="eq456.htm"><img src="../images/equipos_header/18_unam.gif" width="35" height="45" border="0" alt="Unam"></a></td>'+ 
	'  <td width="35"><img src="../images/pleca_2.gif" width="77" height="45"></td>'+
	'</tr>'+
	'</table>'+
	'');
}

function writeEquiposHeader() {
	loadJson(urlbaseAjax + 'GetEquiposHeader.aspx');
}
function writeGoogle728x15_headergalerias()
{
	/* 728x15, esto-header-galerias-creado 4/08/08 */
	var google728x15=
	'google_ad_client = "pub-0452643230599787";'+
	'google_ad_slot = "8117930625";'+
	'google_ad_width = 800;'+
	'google_ad_height = 15;';
	
	document.write(
	'<script type="text/javascript">'+google728x15+'</script>'+
	'<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
	
	
		/*var google300x250_65 = 
				'google_ad_client = "pub-0452643230599787";' + 
				'google_ad_width = 300;' + 
				'google_ad_height = 250;' + 
				'google_ad_format = "300x250_as";' + 
				'google_ad_type = "text_image";' + 
				'google_ad_channel ="";' + 
				'google_color_border = "957A5C";' + 
				'google_color_bg = "FFFFFF";' + 
				'google_color_link = "542B20";' + 
				'google_color_text = "957A5C";' + 
				'google_color_url = "000000";' ;

	document.write(
		'<script type="text/javascript">' + google300x250_65 +'</script>' + 
		'<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>'
	);*/
	
}

function writeGoogleFullBanner()
{
	/* 728x15, esto-header-galerias-creado 4/08/08 */
	var googlefullbanner=
	'google_ad_client = "ca-pub-0452643230599787";' +
	/* ESTO_FB */
	'google_ad_slot = "2694592117";' +
	'google_ad_width = 728;' +
	'google_ad_height = 90;';
	
	document.write(
	
	'<script type="text/javascript">'+googlefullbanner+'</script>'+
	'<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>');
	
}

function writeOpenXFullBannerESTO()
{

   var m3_u = (location.protocol=='https:'?'https://d1.openx.org/ajs.php':'http://d1.openx.org/ajs.php');
   var m3_r = Math.floor(Math.random()*99999999999);
   if (!document.MAX_used) document.MAX_used = ',';
   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
   document.write ("?zoneid=96772");
   document.write ('&amp;cb=' + m3_r);
   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
   document.write ("&amp;loc=" + escape(window.location));
   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
   if (document.context) document.write ("&context=" + escape(document.context));
   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
   document.write ("'><\/scr"+"ipt>");
}

function writeHeaderGalerias() {
	document.write(
		'<table width="800" border="0" cellspacing="0" cellpadding="0">' + 
		' <tr> <td> ' + 
			' <a href="http://www.esto.com.mx" target="_self"><img src="../images/top_galerias.jpg"> ' +	
             ' </tr> </td> ' +			
		'</table>');
		//'<table width="800" border="1" cellspacing="0" cellpadding="0" >' + 
		//'<tr valign="top" width="800"><td align="center" bgcolor="#000000">sss');
		writeGoogle728x15_headergalerias();
		//document.write('</td></tr>'+
		//'</table>'
	//);
}

function writeFooterGalerias() {
	document.write(
		'<table width="800" border="0" cellspacing="0" cellpadding="0">' + 

			'<tr><td height="20" class="legales"><div align="center">Derechos Reservados Organizaci&oacute;n Editorial Mexicana S.A. de C.V.</div></td></tr>' + 
		'</table>'
	);
	//writeStatCounterCode();
	writeGoogleTracker();
}

function writeColumnaDerechaNotas(c, p, ph) {
	writeAddThis();
	//writeServiciosNotas2();
	
	// DOM document.write('<div id="publicidadPlaceholder2"></div>');
	// DOM writePublicidad("", "2", "publicidadPlaceholder2");
	document.write('<br /><br />');
	writeGoogle300x250();
	document.write('<br /><br />');
	writeskycrapper_azul();
}

function writeColumnaDerechaNotas2011(c, p, ph) {
	//writeAddThis();
	//writeServiciosNotas2();
	
	// DOM document.write('<div id="publicidadPlaceholder2"></div>');
	// DOM writePublicidad("", "2", "publicidadPlaceholder2");
	document.write('<br /><br />');
	//writeGoogle300x250();
	document.write('<br /><br />');
	writeskycrapper_azul();
}

function writeAddThis()
{
	document.write(''+
	'<div class="categoria" align="left">Comparte esta nota</div><br/>'+
	'<!-- AddThis Button BEGIN -->'+
	'<a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=250&amp;pub=oemenlinea"><img src="http://s7.addthis.com/static/btn/v2/lg-share-en.gif" width="125" height="16" alt="Bookmark and Share" style="border:0"/></a><script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pub=oemenlinea"></script>'+
	'<!-- AddThis Button END -->'+
	'');
}

function writewriteGoogle300x250() {
	var writeGoogle300x250 = 
				'google_ad_client = "pub-0452643230599787";' + 
				'google_ad_width = 300;' + 
				'google_ad_height = 250;' + 
				'google_ad_format = "300x250_as";' + 
				'google_ad_type = "text_image";' + 
				'google_ad_channel ="";' + 
				'google_color_border = "957A5C";' + 
				'google_color_bg = "FFFFFF";' + 
				'google_color_link = "542B20";' + 
				'google_color_text = "957A5C";' + 
				'google_color_url = "000000";' ;

	document.write(
		'<script type="text/javascript">' + google300x250 +'</script>' + 
		'<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>'
	);
}

function writeColumnaDerechaEquipos() {
	document.write('');
}

function cierra_ventana(){
	window.close();
}

function writePostTexto() {
	/*document.write(
		'<table width="250">'+
		'<tr>'+
		'<td>'+
		'<div class="categoria_pub">Publicidad</div>'+
		'<script type="text/javascript">' + google300x250_esto +'</script>' + 
		'<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>'+
		'</td>'+
		'</tr>'+
		'</table>'+
	'');*/
	ubicacion ='1';
	writeGoogle300x250();
}

function writePostTextoOpinion() {
	/*document.write(
	        '<script type="text/javascript"> writeServicios() </script><br><br>' +
		'<script type="text/javascript">' + google300x250_esto +'</script>' + 
		'<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>' 
		
	);*/
	ubicacion ='1';
	writeGoogle300x250();
}

function w_abreventana_1024(pagina)
{
	window.open("images/"+pagina+"",null,"height=768,width=1024,status=yes,toolbar=no ,menubar=no,location=no")
}
function w_abreventana_1280(pagina)
{
	window.open("images/"+pagina+"",null,"height=1024,width=1280,status=yes,toolbar=no ,menubar=no,location=no")
}
function w_abreventana_especiales(pagina)
{
	window.open("especiales/"+pagina+"",null,"height=1024,width=1280,status=yes,toolbar=no ,menubar=no,location=no")
}

function writeGoogle300x250()
{
	var cabecera='';
	if(ubicacion=='0')
		{cabecera= '<div class="categoriaSinBordeArriba">Publicidad</div>'}
	else
		{cabecera ='<div class="categoria_pub">Publicidad</div>'};

	var tipo_anuncio='';
	if(ubicacion==0)
		{tipo_anuncio='google_ad_type = "text";'}
	else
		{tipo_anuncio='google_ad_type = "text_image";'};
		
	document.write(''+
	'<div class="margenesPortlet">'+
	//'<div class="categoriaSinBordeArriba">Publicidad</div>'+
	cabecera+
	'<script type="text/javascript">'+
	'google_ad_client = "pub-0452643230599787";'+
	'google_ad_width = 300;'+
	'google_ad_height = 250;'+
	'google_ad_format = "300x250_as";'+
	//'google_ad_type = "text";'+
	tipo_anuncio+
	//2008-01-08: notas_DairioESTO_OEM
	'google_ad_channel = "7210313010";'+
	'google_color_border = "FFFFFF";'+
	'google_color_bg = "FFFFFF";'+
	'google_color_link = "117ea7";'+
	'google_color_text = "333333";'+
	'google_color_url = "333333";'+
	//-->
	'</script>'+
	'<script type="text/javascript"src="http://pagead2.googlesyndication.com/pagead/show_ads.js">'+
	'</script>'+
	'</div>'+
	''
	);
	ubicacion ='0';
}
function writeColumnaDerechaOpinion() {
}
function writeColumna_Opinion_ESTO(){
		document.write('<div id="columnaPlaceholder"></div>');
		getColumnaAjax_ESTO();
}
function getColumnaAjax_ESTO(){
	loadJson(urlbaseAjax + 'GetColumnaJson_Esto.aspx');
}
var google300x250_esto = 
				'google_ad_client = "pub-0452643230599787";' + 
				'google_ad_width = 300;' + 
				'google_ad_height = 250;' + 
				'google_ad_format = "300x250_as";' + 
				'google_ad_type = "text";' + 
				'google_ad_channel ="";' + 
				'google_color_border = "ffffff";' + 
				'google_color_bg = "FFFFFF";' + 
				'google_color_link = "117ea7";' + 
				'google_color_text = "333333";' + 
				'google_color_url = "333333";' ;

var coloresbuscador_azul = 'GALT:#000000;GL:1;DIV:#FFFFFF;VLC:0B5AA0;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:0B5AA0;LC:0066CC;T:000000;GFNT:000000;GIMP:000000;';

