document.write('<div style="width: 260px; height: 200px; display: none;" id="fcontent">');

function faddCss(fcssCode) {
var styleElement = document.createElement("style");
  styleElement.type = "text/css";
  if (styleElement.styleSheet) {
	styleElement.styleSheet.cssText = fcssCode;
  } else {
	styleElement.appendChild(document.createTextNode(fcssCode));
  }
  document.getElementsByTagName("head")[0].appendChild(styleElement);
}

var fcss = "#fcontent{line-height: 16px;color: #404040!important; border: 2px solid #484848!important; overflow:auto!important;padding: 16px!important;text-align:left!important;display: none;position: absolute;background-color: #fff!important;z-index:1002!important;font-family: Arial,Helvetica,sans-serif!important;color: 404040!important;}";
fcss = fcss + "#fcontent a {color: #404040!important;text-decoration: none!important;font-weight: normal!important;padding:0!important;margin:0!important;font-family: Arial,Helvetica,sans-serif!important;}";
fcss = fcss + "#fcontent a:hover {color: #9C0032!important;}";
fcss = fcss + "#fsubcontent{}";
fcss = fcss + "#f_cerrar{display: block !important;text-align:right!important; font-weight:bold!important;}";
fcss = fcss + "#f_adaki_color{color: #800000!important; font-weight:bold!important;}";
fcss = fcss + "#f_komunikazioa{font-weight:bold!important;}";
fcss = fcss + "#f_titular{display: block !important;margin-bottom:10px!important;}";
fcss = fcss + "#f_pal_adaki{opacity: 0.6!important; filter: alpha(opacity=40)!important;}";
fcss = fcss + "#fcontent{width:260px!important;border:1px solid #000!important;position:absolute!important; display:none;}";
fcss = fcss + "#f_firma{display: block !important;}";
fcss = fcss + "#f_enlaces{display: block !important;margin-bottom:10px;}";
fcss = fcss + "#fcontent p{display: block; color: #404040!important;padding:0;margin:0;font-weight: normal;}";
fcss = fcss + "#fcontent span{padding:0;margin:0;}";
fcss = fcss + "#fcontent a.f_urladaki{}";
faddCss(fcss);

/* Redimensión de la capa */
function getWindowData(){
    var widthViewport,heightViewport,xScroll,yScroll,widthTotal,heightTotal;
    if (typeof window.innerWidth != 'undefined'){
        widthViewport= window.innerWidth;
        heightViewport= window.innerHeight;
    }else if(typeof document.documentElement != 'undefined' && typeof document.documentElement.clientWidth !='undefined' && document.documentElement.clientWidth != 0){
        widthViewport=document.documentElement.clientWidth;
        heightViewport=document.documentElement.clientHeight;
    }else{
        widthViewport= document.getElementsByTagName('body')[0].clientWidth;
        heightViewport=document.getElementsByTagName('body')[0].clientHeight;
    }
    xScroll=self.pageXOffset || (document.documentElement.scrollLeft+document.body.scrollLeft);
    yScroll=self.pageYOffset || (document.documentElement.scrollTop+document.body.scrollTop);
    widthTotal=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,widthViewport);
    heightTotal=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,heightViewport);
    return [widthViewport,heightViewport,xScroll,yScroll,widthTotal,heightTotal];
}


window.onload=window.onresize=window.onscroll=function(){
var fdata=getWindowData();
document.getElementById('fcontent').style.left=fdata[0]/2+fdata[2]-parseInt(document.getElementById('fcontent').style.width)/2+'px';
document.getElementById('fcontent').style.top=fdata[1]/2+fdata[3]-parseInt(document.getElementById('fcontent').style.height)/2+'px';
document.getElementById('fcontent').style.top=fdata[1]/2+fdata[3]-parseInt(document.getElementById('fcontent').style.height)/2+'px';
}
/* Redimensión de la capa */


