
var DropDownUI=Class.create();DropDownUI.prototype={initialize:function(menuID,dropdownID){document.observe('click',function(event){element=$(Event.element(event));menu=$(menuID)
if(!$(dropdownID).visible()&&element&&((element.id==menuID)||element.descendantOf(menuID))){$(dropdownID).show();if(menu){menu.addClassName('dropdownmenu_button_selected');}}else{if(menu){menu.removeClassName('dropdownmenu_button_selected');}
new Effect.Fade(dropdownID,{duration:0.2});}});}}