var qTipTag="a",qTipX=-5,qTipY=18;tooltip={name:"qTip",offsetX:qTipX,offsetY:qTipY,tip:null};tooltip.init=function(){var a="http://www.w3.org/1999/xhtml";if(!b)var b="qTip";var c=document.getElementById(b);if(!c){c=document.createElementNS?document.createElementNS(a,"div"):document.createElement("div");c.setAttribute("id",b);document.getElementsByTagName("body").item(0).appendChild(c)}if(!document.getElementById)return;this.tip=document.getElementById(this.name);if(this.tip)document.onmousemove=function(a){tooltip.move(a)};var d,e,f=document.getElementsByTagName(qTipTag);for(var g=0;g<f.length;g++){d=f[g];e=d.getAttribute("title");if(e){d.setAttribute("tiptitle",e);d.removeAttribute("title");d.onmouseover=function(){tooltip.show(this.getAttribute("tiptitle"))};d.onmouseout=function(){tooltip.hide()}}}};tooltip.move=function(a){var b=0,c=0;if(document.all){b=document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;c=document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;b+=window.event.clientX;c+=window.event.clientY}else{b=a.pageX;c=a.pageY}this.tip.style.left=b+this.offsetX+"px";this.tip.style.top=c+this.offsetY+"px"};tooltip.show=function(a){if(!this.tip)return;this.tip.innerHTML=a;this.tip.style.display="block"};tooltip.hide=function(){if(!this.tip)return;this.tip.innerHTML="";this.tip.style.display="none"};window.onload=function(){tooltip.init()}
function objetoAjax(){var a=false;try{a=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{a=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){a=false}}if(!a&&typeof XMLHttpRequest!="undefined")a=new XMLHttpRequest;return a}function masinfo(a,b,c,d){divContenido=document.getElementById(c);if(d!=" "){divbotonb=d.concat("b");divboton1=document.getElementById(d);divboton2=document.getElementById(divbotonb);divboton1.style.display="none";divboton2.style.display="block"}divContenido.style.display="block";ajax=objetoAjax();ajax.open("GET",b+a);divContenido.innerHTML='<center><img src="/static/i/loading.gif"></center>';ajax.onreadystatechange=function(){if(ajax.readyState==4)divContenido.innerHTML=ajax.responseText};ajax.send(null)}function masinfo2(a,b,c){divContenido=document.getElementById(c);ajax=objetoAjax();ajax.open("GET",b+a);divContenido.innerHTML='<center><img src="/static/i/loading.gif"></center>';ajax.onreadystatechange=function(){if(ajax.readyState==4)divContenido.innerHTML=ajax.responseText};ajax.send(null)}
function cambiardiv(a){div=document.getElementById(a);if(div.style.display==""){div.style.display="none"}else{div.style.display=""}}function mostrardiv(a){div=document.getElementById(a);div.style.display="block"}function cerrardiv(a){div=document.getElementById(a);div.style.display="none"}function cambiaGrupo(a){var b=a;while(b.nodeType==1&&b.tagName.toUpperCase()!="DIV")b=b.parentNode;var c=b.getElementsByTagName("input");for(var d=0;d<c.length;d++){if(c[d].getAttribute("type")=="checkbox")c[d].checked=a.checked}}
