var mm_li;
var mm_lo;
var mm_tt;

function mm_create(sd,v,l){
  if(!l){
    l=1;
    sd=document.getElementById("mm"+sd);
    sd.onmouseover=function(e){mmover(e)};
    document.onmouseover=mdover;
    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.onmouseover=maover;
      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:0px;width:0px;visibility:hidden;'></span>");
      makesub("mmparent",lsp,1);
      lsp.cdiv=b;
      b.idiv=lsp;
      new mm_create(b,null,l+1);
      }
    }
  };

function mdover(e){
  if(mm_li&&!mm_tt)mm_tt=setTimeout("mclose()",500);
  };

function mclose(){
  var a;
  if((a=mm_li)){
    do{
      x1(a);
      }
    while((a=a["parentNode"])&&!mm_a(a))
    }
  mm_li=null;
  };

function mm_a(a){
  if(a["className"].indexOf("mmmc")+1) return 1;
  };

function x1(a){
  if(window.mmad&&mmad.bhide) eval(mmad.bhide);
  a.style.visibility="";
  makesub("mmactive",a.idiv);
  }

function maover(e){
  if(mm_tt){
    clearTimeout(mm_tt);
    mm_tt=null;
    }
  var a=this;
  if(a["parentNode"].isrun)return;
  var go=true;
  while((a=a["parentNode"])&&!mm_a(a)){
    if(a==mm_li)go=false;
    }
  if(mm_li&&go){
    a=this;
    if((!a.cdiv)||(a.cdiv&&a.cdiv!=mm_li))x1(mm_li);
    a=mm_li;
    while((a=a["parentNode"])&&!mm_a(a)){
      if(a!=this["parentNode"])x1(a);else break;
      }
    }
  var b=this;
  if(b.cdiv){
    var aw=b.offsetWidth;
    var ah=b.offsetHeight;
    var ax=b.offsetLeft;
    var ay=b.offsetTop;
    if(mm_a(b["parentNode"])&&b.style.styleFloat!="none"&&b.style.cssFloat!="none")aw=0; else ah=0;
    b.cdiv.style.left=(ax+aw)+"px";
    b.cdiv.style.top=(ay+ah)+"px";
    makesub("mmactive",this,1);
    if(window.mmad&&mmad.bvis)eval(mmad.bvis);
    b.cdiv.style.visibility="inherit";
    mm_li=b.cdiv;
    } else if(!mm_a(b["parentNode"]))mm_li=b["parentNode"];else mm_li=null;
  mmover(e);
  };

function makesub(name,b,add){
  var a=b["className"];
  if(add){
    if(a.indexOf(name)==-1)b["className"]+=(a?' ':'')+name;
    } else {b["className"]=a.replace(" "+name,"");b["className"]=b["className"].replace(name,"");
    }
  };

function mmover(e){
  if(!e)e=event;
  e.cancelBubble=true;
  if(e.stopPropagation)e.stopPropagation();
  }

