/* Made by Qonqueror */

function ddadd(parent,child,showtype,position){
 theparent=document.getElementById(parent);
 thechild=document.getElementById(child);
 theparent["parent"]=theparent.id;
 thechild["parent"]=theparent.id;
 theparent["child"]=thechild.id;
 thechild["child"]=thechild.id;
 theparent["position"]=position;
 thechild["position"]=position;
 thechild.style.position="absolute";
 thechild.style.display="none";
 if(showtype.match(/click/i)){
  theparent.onclick=ddclick;
//  theparent.onmouseout=ddhide;
  thechild.onmouseover=ddshow;
//  thechild.onmouseout=ddhide;
 }
 else{
  theparent.onmouseover=ddshow;
  theparent.onmouseout=ddhide;
  thechild.onmouseover=ddshow;
  thechild.onmouseout=ddhide;
 }
}
function ddclick(){
 theparent=document.getElementById(this["parent"]);
 thechild=document.getElementById(this["child" ]);
 if(thechild.style.display != "block") ddshowtwo(theparent.id,thechild.id); else thechild.style.display="none";
 return false;
}
function ddhide(){
 thechild=document.getElementById(this["child" ]);
 thechild["timeout"]=setTimeout("document.getElementById('"+thechild.id+"').style.display='none'",Timeset);
}
function ddshow(){
 theparent=document.getElementById(this["parent"]);
 thechild=document.getElementById(this["child"]);
 ddshowtwo(theparent.id,thechild.id);
 clearTimeout(thechild["timeout"]);
}
function ddshowtwo(parent,child){
 theparent=document.getElementById(parent);
 thechild=document.getElementById(child );
 thetop=(thechild["position"]=="y")?theparent.offsetHeight+parseInt(Offsety):0;
 theleft=(thechild["position"]=="x")?theparent.offsetWidth+parseInt(Offsetx):0;
 for(;theparent;theparent=theparent.offsetParent){
  thetop+=theparent.offsetTop;
  theleft+=theparent.offsetLeft;
 }
 thechild.style.position="absolute";
 thechild.style.top=thetop+"px";
 thechild.style.left=theleft+"px";
 thechild.style.display="block";
}

/* This part adapted by Papeh */

function ddadd2(parent,child,showtype,position){
 theparent=document.getElementById(parent);
 thechild=document.getElementById(child);
 theparent["parent"]=theparent.id;
 thechild["parent"]=theparent.id;
 theparent["child"]=thechild.id;
 thechild["child"]=thechild.id;
 theparent["position"]=position;
 thechild["position"]=position;
 thechild.style.position="absolute";
 thechild.style.display="none";
 if(showtype.match(/click/i)){
  theparent.onclick=ddclick2;
//  theparent.onmouseout=ddhide;
  thechild.onmouseover=ddshow2;
//  thechild.onmouseout=ddhide;
 }
 else{
  theparent.onmouseover=ddshow2;
  theparent.onmouseout=ddhide;
  thechild.onmouseover=ddshow2;
  thechild.onmouseout=ddhide;
 }
}
function ddclick2(){
 theparent=document.getElementById(this["parent"]);
 thechild=document.getElementById(this["child" ]);
 if(thechild.style.display != "block") ddshowtwo2(theparent.id,thechild.id); else thechild.style.display="none";
 return false;
}
function ddshow2(){
 theparent=document.getElementById(this["parent"]);
 thechild=document.getElementById(this["child"]);
 ddshowtwo2(theparent.id,thechild.id);
 clearTimeout(thechild["timeout"]);
}
function ddshowtwo2(parent,child){
 theparent=document.getElementById(parent);
 thechild=document.getElementById(child );
 thetop=(thechild["position"]=="y")?theparent.offsetHeight+parseInt(Offsety):0;
 theleft=(thechild["position"]=="x")?theparent.offsetWidth+parseInt(Offsetx):-205;
 for(;theparent;theparent=theparent.offsetParent){
  thetop+=theparent.offsetTop;
  theleft+=theparent.offsetLeft;
 }
 thechild.style.position="absolute";
 thechild.style.top=thetop+"px";
 thechild.style.left=theleft+"px";
 thechild.style.display="block";
}