
var DR_SERVER = 'http://www.mercurioantofagasta.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 += '<div class="boton"><a href="http://www.mercurioantofagasta.cl" target="_parent">Portada</a> | </div>';
headInf += '<div class="boton"><a href="'+CENTRAL_SERVER+'/prontus_multimedia/site/edic/base/port/videos_mercurioantofagasta.html" target="_parent">Videos</a> | </div>';
headInf += '<div class="boton"><a href="'+CENTRAL_SERVER+'/prontus_multimedia/site/edic/base/port/fotos_mercurioantofagasta.html" target="_parent">Fotos</a> | </div>';
headInf += '<div class="boton"><a href="http://prontus.mediosregionales.cl/club_antofagasta/site/edic/base/port/portada.html"  target="_parent">Club de Lectores</a></div>';
headInf += '<div class="boton"><a href="http://www.emelnor.cl/empleosafta"  target="_parent">Empleos</a> | </div>';
headInf += '<div class="boton"><a href="http://www.mercurioantofagasta.cl/prontus4_noticias/site/artic/20081127/pags/20081127133119.html" target="_parent">Ediciones Anteriores</a> | </div>';
headInf += '<div class="boton"><a href="http://www.emelnor.cl/economicosafta" target="_parent">Clasificados</a> | </div>';
headInf += '<div class="boton"><a href="http://www.norteminero.cl/norteminero" target="_parent">Norte Minero</a></div>';
headInf += '<div class="boton"><a href="http://www.emelnor.cl/eespecialesafta" target="_parent">Ediciones Especiales</a></div>';
headInf += '</div>';
headInf +=  '<!--/botonera-->';
writeHeadInf(headInf);

