var barraPepe={detectResolution:function(){
if(screen.height>600||screen.width>800){
return true;
}else{
return false;
}
},crearMenu:function(){
if(this.detectResolution()){
acookie=GetCookie("barra_pepe");
if(acookie!=null){
document.getElementById("barra-pepe").innerHTML=acookie;
}else{
var _1=configuration.url+"/?Action=BarraPepe"+"&site="+configuration.sitio+"&url="+configuration.url;
var _2=new jrq();
_2.buildScriptTag(_1);
_2.addScriptTag();
}
}else{
var el=document.getElementById("barra-pepe");
el.parentNode.removeChild(el);
}
}};
function jrq(){
this.fullUrl="";
this.noCacheIE="&ncie="+(new Date()).getTime();
this.headLoc=document.getElementsByTagName("head").item(0);
this.scriptId="YJscriptId"+jrq.scriptCounter++;
}
jrq.scriptCounter=1;
jrq.prototype.buildScriptTag=function(_4){
this.scriptObj=document.createElement("script");
this.scriptObj.setAttribute("type","text/javascript");
this.scriptObj.setAttribute("src",_4+this.noCacheIE);
this.scriptObj.setAttribute("id",this.scriptId);
};
jrq.prototype.addScriptTag=function(){
this.headLoc.appendChild(this.scriptObj);
};
jrq.prototype.buildCssTag=function(_5){
try{
this.scriptObj=document.createElement("link");
this.scriptObj.setAttribute("type","text/css");
this.scriptObj.setAttribute("rel","stylesheet");
this.scriptObj.setAttribute("title","default");
this.scriptObj.setAttribute("href",_5);
}
catch(e){
alert(e.name+" - "+e.message);
}
};
jrq.prototype.addCssTag=function(){
this.headLoc.appendChild(this.scriptObj);
};
function getCookieVal(_6){
var _7=document.cookie.indexOf(";",_6);
if(_7==-1){
_7=document.cookie.length;
}
return unescape(document.cookie.substring(_6,_7));
}
function GetCookie(_8){
var _9=_8+"=";
var _a=_9.length;
var _b=document.cookie.length;
var i=0;
while(i<_b){
var j=i+_a;
if(document.cookie.substring(i,j)==_9){
return getCookieVal(j);
}
i=document.cookie.indexOf(" ",i)+1;
if(i==0){
break;
}
}
return null;
}
function SetCookie(_e,_f){
var _10=SetCookie.arguments;
var _11=SetCookie.arguments.length;
var _12=(2<_11)?_10[2]:null;
var _13=(3<_11)?_10[3]:null;
var _14=(4<_11)?_10[4]:null;
var _15=(5<_11)?_10[5]:false;
document.cookie=_e+"="+escape(_f)+((_12==null)?"":("; expires="+_12.toGMTString()))+((_13==null)?"":("; path="+_13))+((_14==null)?"":("; domain="+_14))+((_15==true)?"; secure":"");
}

