var DropdownDemo={init:function(){var o,e,n;o=$("#m_dropdown_api_output"),e=new mDropdown("m_dropdown_api_1"),n=new mDropdown("m_dropdown_api_2"),e.on("afterShow",function(e){o.append("<p>Dropdown 1: afterShow event fired</p>")}),e.on("beforeShow",function(e){o.append("<p>Dropdown 1: beforeShow event fired</p>")}),e.on("afterHide",function(e){o.append("<p>Dropdown 1: afterHide event fired</p>")}),e.on("beforeHide",function(e){o.append("<p>Dropdown 1: beforeHide event fired</p>")}),n.on("afterShow",function(e){o.append("<p>Dropdown 2: afterShow event fired</p>")}),n.on("beforeShow",function(e){o.append("<p>Dropdown 2: beforeShow event fired</p>")}),n.on("afterHide",function(e){o.append("<p>Dropdown 2: afterHide event fired</p>")}),n.on("beforeHide",function(e){o.append("<p>Dropdown 2: beforeHide event fired</p>")})}};jQuery(document).ready(function(){DropdownDemo.init()});