//Servidor Central

var DR_SERVER = 'http://www.mercuriocalama.cl';
//var CENTRAL_SERVER = 'http://192.168.6.55';
var CENTRAL_SERVER = 'http://portada.diariosregionales.cl';

//alert('host:'+window.location.host);
//alert('host:'+window.location.);

//Genera edicion correspondiente al dia actual.
var currentTime = new Date();
var month = currentTime.getMonth() + 1;
if  ( month <= 9 ){
    var monthT = '0'+ month;
    month = monthT;
};
var day = currentTime.getDate();
if  ( day <= 9 ){
    var dayT = '0'+ day;
    day = dayT;
};
var year = currentTime.getFullYear();
var EDICION_DIA = year +'_'+ month +'_'+ day + '_1';

var headInf = '<!--botonera-->';
headInf += '<div class="botonera">';
headInf += '    <table width="975" border="0" cellspacing="0" cellpadding="0">';
headInf += '  <tr>';
headInf += '    <td width="700" align="left" valign="middle">';
headInf += '      <div class="fecha" id="lafecha"></div>';
headInf += '<div class="boton"><a href="'+DR_SERVER+'" target="_parent" target="_parent">Portada</a></div>';
headInf += '<div class="boton"><a href="http://portada.diariosregionales.cl/prontus_multimedia/site/edic/base/port/fotos_mercuriocalama.html" target="_parent">Fotos</a></div>';
headInf += '<div class="boton"><a href="http://portada.diariosregionales.cl/prontus_multimedia/site/edic/base/port/videos_mercuriocalama.html" target="_parent">Videos</a></div>';
headInf += '<div class="boton"><a href="http://www.meteochile.cl/reg02.html" target="_parent">El Tiempo</a></div>';
headInf += '<div class="boton"><a href="http://portada.diariosregionales.cl/prontus_form/site/artic/20081124/pags/20081124151709.html" target="_parent">Cartas al Director</a></div>';
headInf += '<div class="boton"><a href="http://www.mercuriocalama.cl/prontus4_nots/site/artic/20081211/pags/20081211164142.html" target="_parent">Ediciones Anteriores</a></div>';
headInf += '<div class="boton"><a href="http://www.regiontv.cl" target="_parent">Región TV</a></div>';
headInf += '<div class="boton"><a href="http://prontus.mediosregionales.cl/club_calama/site/edic/base/port/portada.html" target="_parent">Club de Lectores</a></div>';
headInf += '    </td>';
headInf += '    <td width="275" align="left" valign="middle" style="padding:2px 0 0;">';
headInf += '<div class="boton2"><a href="http://www.mercuriocalama.cl/prontus4_nots/site/extra/pdp/pdp.html" target="_parent">Edición de Papel</a>|</div>';
headInf += '<div class="boton2"><a href="http://www.norteminero.cl/norteminero" target="_parent">Norte Minero</a>|</div>';
headInf += '<div class="boton2"><a href="http://www.mediosregionales.cl/prontus_mediosregionales/site/edic/base/port/inicio.html" target="_parent">Medios Regionales</a>|</div>';
headInf += '    </td>';
headInf += '  </tr>';
headInf += '  </table>';
//headInf += '<div class="boton"><a href="'+DR_SERVER+'/prontus4_noticias/site/edic/'+EDICION_DIA+'/port/deportes.html">DEPORTES</a></div>';
headInf += '</div>';
headInf += '<!--/botonera-->';
writeHeadInf(headInf);