var qm_si,qm_li,qm_lo,qm_tt,qm_th,qm_ts;
var qp="parentNode";
var qc="className";

function qm_create(sd,v,ts,th,oc,l){
var w="onmouseover";
if (oc) {w="onclick";th=0;ts=0;}
if (!l) {l=1;qm_th=th;sd=document.getElementById("qm"+sd);sd[w]=function(e){x6(e)};
document[w]=x2;sd.style.zoom=1;}
sd.style.zIndex=l;
var lsp;
var sp=sd.childNodes;
for (var i=0;i<sp.length;i++){
var b=sp[i];
if (b.tagName=="A"){
lsp=b; b[w]=x0; b.qmts=ts;
if (l==1&&v) {b.style.styleFloat="none";b.style.cssFloat="none";}}
if (b.tagName=="DIV"){
if (window.showHelp&&!window.XMLHttpRequest)
sp[i].insertAdjacentHTML("afterBegin","<span style='display:block; font-size:1px; height:0; width:0; line-height:0; visibility:hidden'></span>");
x5("qmparent",lsp,1);
lsp.cdiv=b;b.idiv=lsp;
new qm_create(b,null,ts,th,oc,l+1);}}
widthfix();
}

function x2(e) {
clearTimeout(qm_tt); qm_tt=null;
if(qm_li&&!qm_tt)qm_tt=setTimeout("x3()",qm_th);
}

function x3() {
var a;
if ((a=qm_li)){
do {
x1(a);
} while ((a=a[qp])&&!qm_a(a));}
qm_li=null;
}

function qm_a(a){if(a[qc].indexOf("qmmc")+1)return 1;}

function x1(a,go){
if (!go&&a.qmtree)return;
if (window.qmad && qmad.bhide) eval(qmad.bhide);
a.style.visibility="";
x5("qmactive",a.idiv);
}

if (window.showHelp&&!window.qmu&&(window.location+"").toLowerCase().indexOf("http:")+1);

function x0(e,o,nt){
if (!o) o = this;
if (window.qmad && qmad.bhover && !nt) eval(qmad.bhover);
if (window.qmwait) return;
clearTimeout(qm_tt);qm_tt=null;
if (!nt&&o.qmts) {qm_si=o; qm_tt = setTimeout("x0(new Object(),qm_si,1)",o.qmts); return;}
var a=o;
if (a[qp].isrun) return;
var go=true;
while ((a=a[qp]) && !qm_a(a)) if (a==qm_li)go=false;
if (qm_li&&go){
a=o;
if ((!a.cdiv)||(a.cdiv&&a.cdiv!=qm_li)) x1(qm_li);
a=qm_li;
while ((a=a[qp])&&!qm_a(a)) {if(a!=o[qp])x1(a); else break;}}
var b=o;
if (b.cdiv){
var aw=b.offsetWidth,ah=b.offsetHeight;
var ax=b.offsetLeft,ay=b.offsetTop;
if (qm_a(b[qp]) && b.style.styleFloat!="none" && b.style.cssFloat!="none") aw=0; else ah=0;
if (!b.cdiv.ismove) {b.cdiv.style.left=245; b.cdiv.style.top=ay+ah;}
x5("qmactive",o,1);
if (window.qmad && qmad.bvis)eval(qmad.bvis);
b.cdiv.style.visibility="inherit";qm_li=b.cdiv;}
else if(!qm_a(b[qp]))qm_li=b[qp];else qm_li=null;
x6(e);
}

function x5(name,b,add){
var a=b[qc];
if(add) {if (a.indexOf(name)==-1) b[qc]+=(a?' ':'')+name;}
else {b[qc]=a.replace(" "+name,""); b[qc]=b[qc].replace(name,"");}
}

function x6(e){
if(!e)e=event;e.cancelBubble=true;if(e.stopPropagation)e.stopPropagation();
}

function x7(n){
var s=document.getElementById("navBlock").style;
s.left=window.innerWidth?window.innerWidth-370 : document.body.offsetWidth-356;
s.display=n?"block":"none";
}

function widthfix() {
  if ('\v'=='v'){
    window.attachEvent('onload',mmwidth);
    window.attachEvent('onresize',mmwidth);
  } else if (navigator.userAgent.indexOf('Chrome')!= -1) {
    window.addEventListener('load',mmwidth);
    window.addEventListener('resize',mmwidth);
  };
  function mmwidth(){
    var wid = '100%';
    if ((document.documentElement.clientWidth || document.body.clientWidth) < 1000) {
      var wid = '1000px';
    };
    document.getElementById('main').style.width = wid;
  };
}
