var includeToolBar = true;
document.write('\n\n');
document.write('');
document.write('');
function IncludeInDiv()
{
if(includeToolBar===true)
{
myBody=document.getElementsByTagName('BODY')[0];
BB=document.createElement('DIV');
BB.id='matb_parentdiv';
BB.innerHTML='';
IMG=document.createElement('IMG');
IMG.src='http://miarroba.st/062/iconos/vacio.gif'
IMG.style.height='33px';
IMG.style.width='100%';
myBody.insertBefore(IMG,myBody.childNodes[0]);
myBody.insertBefore(BB,myBody.childNodes[0]);
includeToolBar=false;
toolbarMiarroba.init(); }
}
jQuery(function() {
toolbarMiarroba= new MiarrobaToolBar('toolbarMiarroba');
toolbarMiarroba.mtb_search_error_1 = 'La cadena buscada no es válida';
var sc_9b7015ff=function(){var code = '';code +='<'+'a h'+'ref="http://servicios.miarroba.es/share.php?a=rd&s=facebook&u='+encodeURIComponent(document.location.href)+'&t='+encodeURIComponent(document.title)+'&k=05f351d7d9058b81ad091ebe72197863" class="shlink facebook" onclick="return share_window_open(this,\'popup|width=990,height=600\');" title="Compartir en Facebook" target="_share_">
';code +='<'+'a h'+'ref="http://servicios.miarroba.es/share.php?a=rd&s=twitter&u='+encodeURIComponent(document.location.href)+'&t='+encodeURIComponent(document.title)+'&k=2d48bd8a4a702063d619d0f27f4ea519" class="shlink twitter" onclick="return share_window_open(this,\'popup|width=700,height=250\');" title="Compartir en Twitter" target="_share_">
';code +='<'+'a h'+'ref="http://servicios.miarroba.es/share.php?a=rd&s=meneame&u='+encodeURIComponent(document.location.href)+'&t='+encodeURIComponent(document.title)+'&k=9cbd487758f691a972817eb10bfe7d76" class="shlink meneame" onclick="return share_window_open(this,\'popup|width=970,height=500\');" title="Compartir en Meneame" target="_share_">
';code +='<'+'a h'+'ref="http://servicios.miarroba.es/share.php?a=al&t='+encodeURIComponent(document.title)+'&u='+encodeURIComponent(document.location.href)+'&k=f473aa6896967b6709c1bdcb2e584dba" class="shlink allshareopts" onclick="return window.top.share_window_iframe_more(this);" title="Ver todos los servicios" target="_share_">
';var si = false; si=setInterval( function(){ if( typeof(document.getElementById('sharer_9b7015ff'))!='undefined' ){clearInterval(si);document.getElementById('sharer_9b7015ff').innerHTML=code;} },50 )};sc_9b7015ff(); ajustaBackground(33);
IncludeInDiv();
$mia.social.parse('#ma_toolbar');
});
function ajustaBackground(pixels) {
var img,bP,dD,dif;
var t = this;
var D = document;
var obj = D.getElementsByTagName('body')[0];
this.css = function(o,p) {
if( o.currentStyle ) {
return o.currentStyle[p];
} else {
return document.defaultView.getComputedStyle(o,null)[p];
}
}
this.getBackPos = function() {
var bP,ret={};
bP = t.css(obj,'backgroundPosition');
if( !bP ) {
ret = {'x':t.css(obj,'backgroundPositionX'),'y':t.css(obj,'backgroundPositionY')}
} else {
if( bP.indexOf(' ')!==-1 ) {
var foo = bP.split(' ');
if( bP.search(/[0-9]/)!==-1 ) {
ret = {'x':foo[0],'y':foo[1]};
} else {
ret = {'x':foo[1],'y':foo[0]};
}
} else {
if( bP=='top' || bp=='bottom' ) {
ret = {'x':'center','y':bP}
} else {
ret = {'x':bP,'y':'center'}
}
}
}
return ret;
}
this.getDocDimension = function() {
return {'x':t.getDocWidth(),'y':t.getDocHeight()};
}
this.getDocHeight = function() {
return Math.max(D.body.clientHeight, D.documentElement.clientHeight);
}
this.getDocWidth = function() {
return Math.max(D.body.clientWidth, D.documentElement.clientWidth);
}
// Ejecutamos todo ;)
img = this.css(obj,'backgroundImage');
if( img!='none' && img!='' ) {
bP = t.getBackPos(obj);
dD = t.getDocDimension();
if( bP.x.indexOf('px')!==-1 ) {
dif = Math.abs(parseInt(bP.x)-(parseInt(dD.x)/2));
if( dif<10 ) {
bP.x='center';
}
}
if( bP.y.indexOf('px')!==-1 ) {
dif = Math.abs(parseInt(bP.y)-(parseInt(dD.y)/2));
if( dif<10 ) {
bP.y='center';
}
}
if( bP.y=='0%'|| bP.y=='top' ) bP.y = '0px';
if( bP.y.indexOf('px')!==-1 ) {
bP.y = parseInt(bP.y)+pixels+'px';
obj.style.backgroundPosition = bP.x+' '+bP.y;
}
}
}
document.write('');
document.write('');