// Deshabilita botón derecho ratón
/*
isNN = document.layers ? 1 : 0; 

function noContext(){return false;}

function noClick(e){
    if(isNN){
        if(e.which > 1) {return false;}
    } else { 
        if(event.button > 1){return false;}
    }
}

if(isNN){ 
    document.captureEvents(Event.MOUSEDOWN);
}

document.oncontextmenu = noContext;
document.onmousedown   = noClick;
document.onmouseup     = noClick;
*/
//=====================================


// Deshabilita la selección de texto

function disabletext(e){
return false
}

function reEnable(){
return true
}

//if the browser is IE4+
document.onselectstart=new Function ("return false")

//if the browser is NS6
if (window.sidebar){
document.onmousedown=disabletext
document.onclick=reEnable
}

//=====================================

function JYR_findObj(n, d) { 
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=JYR_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function JYR_swapImage() { 
  var i,j=0,x,a=JYR_swapImage.arguments; document.JYR_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=JYR_findObj(a[i]))!=null){document.JYR_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function JYR_swapImgRestore() { 
  var i,x,a=document.JYR_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function JYR_preloadImages() { 
 var d=document; if(d.images){ if(!d.JYR_p) d.JYR_p=new Array();
   var i,j=d.JYR_p.length,a=JYR_preloadImages.arguments; for(i=0; i<a.length; i++)
   if (a[i].indexOf("#")!=0){ d.JYR_p[j]=new Image; d.JYR_p[j++].src=a[i];}}
}
