//reusable/////////////////////////////

//Drop down menu by http://www.dynamicdrive.com

var zindex=100
var ns4=document.layers
var ns6=document.getElementById&&!document.all
var ie4=document.all
var opr=navigator.userAgent.indexOf("Opera")

function dropit(e,whichone,iBump,iBumpY,iNSBump,iNSBumpY){
var iBumpBy;
var iBumpByY;
var iNSBumpBy;
var iNSBumpByY;
curmenuID=ns6? document.getElementById(whichone).id : eval(whichone).id
if (window.themenu&&themenu.id!=curmenuID)
themenuStyle.visibility=ns4?"hide" : "hidden";

themenu=ns6? document.getElementById(whichone): eval(whichone);
themenuStyle=(ns6||ie4)? themenu.style : themenu;

themenuoffsetX=(ie4&&opr==-1)? document.body.scrollLeft : 0;
themenuoffsetY=(ie4&&opr==-1)? document.body.scrollTop : 0;

iBump? iBumpBy=iBump: iBumpBy=0;
iBumpY? iBumpByY=iBumpY: iBumpByY=0;
iNSBump? iNSBumpBy=iNSBump: iNSBumpBy=0;
iNSBumpY? iNSBumpByY=iNSBumpY: iNSBumpByY=0;

themenuStyle.left=ns6||ns4? e.pageX-e.layerX+iNSBumpBy : themenuoffsetX+event.clientX-event.offsetX-2+iBumpBy;
themenuStyle.top=ns6||ns4? e.pageY-e.layerY+iNSBumpByY : themenuoffsetY+event.clientY-event.offsetY-2+iBumpByY;

hiddenconst=(ns6||ie4)? "hidden" : "hide";
if (themenuStyle.visibility==hiddenconst){
	themenuStyle.visibility=(ns6||ie4)? "visible" : "show";
	themenuStyle.zIndex=zindex++;
} else {
	hidemenu();
}
return false;
}

function hidemenu(){
if ((ie4||ns6)&&window.themenu)
themenuStyle.visibility="hidden"
else if (ns4)
themenu.visibility="hide"
}

if (ie4||ns6)
document.onclick=hidemenu

//reusable/////////////////////////////
