//Servidor Central

var DR_SERVER = 'http://www.australosorno.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="boton"><a href="'+DR_SERVER+'" target="_parent">Portada</a></div>';
headInf += '<div class="boton"><a href="'+CENTRAL_SERVER+'/prontus_multimedia/site/edic/base/port/fotos_australosorno.html" target="_parent">Fotos</a></div>';
headInf += '<div class="boton"><a href="'+CENTRAL_SERVER+'/prontus_multimedia/site/edic/base/port/videos_australosorno.html" target="_parent">Videos</a></div>';
headInf += '<div class="boton"><a href="http://www.meteochile.cl/reg10b.html" target="_parent">El Tiempo</a></div>';
headInf += '<div class="boton"><a href="http://australosorno.sparaucania.cl/avisos/revista_clubOsorno/?s=www.australosorno.cl" target="_parent">Revista Club</a></div>';
headInf += '<div class="boton"><a href="http://australosorno.sparaucania.cl/obituarios/redireccionar.html" target="_parent">Obituario</a></div>';
headInf += '<div class="boton"><a href="http://www.australosorno.cl/prontus4_nots/site/extra/pdp/pdp.html" target="_parent">Edición de Papel</a></div>';
headInf += '<div class="boton"><a href="http://www.regiontv.cl" target="_parent">Región TV</a></div>';
headInf += '    </td>';
headInf += '    <td width="275" align="left" valign="middle" style="padding:2px 0 0;">';
headInf += '      <div class="fecha" id="lafecha"></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);

