var current_open_menu=false;var current_open_menu_link=false;function showmenu(e,c,a,d){e=jQuery("#"+e);c=jQuery(c);if(typeof(a)=="undefined"){a="none"}if(typeof(d)=="undefined"){d=a}hidemenu();if(a!="none"){e.css("min-width",c.outerWidth()+"px");var b=c.parent().position().left;if(a>=0){e.css("left",c.position().left+b-a+"px")}else{e.css("left",c.position().left+b+c.outerWidth()-e.outerWidth()-a+"px")}e.show();if(e.position().left+e.outerWidth()>jQuery("#menubar").width()){e.css("left",c.position().left+b+c.outerWidth()-e.outerWidth()-d+"px")}}e.show();current_open_menu=e;c.className="dd-tab-open";current_open_menu_link=c}function hidemenu(b,a){if(typeof(b)=="undefined"){b=current_open_menu}else{b=jQuery("#"+b)}if(typeof(a)=="undefined"){a=current_open_menu_link}else{a=jQuery(a)}if(b){b.hide()}if(a){a.className="dd-tab"}}jQuery(function(a){a(".menu-sub").each(function(b){this.onmouseout=function(d){if(!d){var d=window.event}var c=(d.relatedTarget)?d.relatedTarget:d.toElement;if((c==null)||(typeof(c)!="object")){return}while(c&&c.tagName!="BODY"){if(c.id==this.id||c.className=="menu-body"){return}c=c.parentNode}hidemenu();return false}});a(".menu-sub-hide").each(function(b){this.onmouseover=function(c){hidemenu();return false}});a(".generic-dropdown").each(function(b){this.onmouseout=function(d){if(!d){var d=window.event}var c=(d.relatedTarget)?d.relatedTarget:d.toElement;if((c==null)||(typeof(c)!="object")){return}while(c&&c.tagName!="BODY"){if(c.id==this.id){return}c=c.parentNode}jQuery(this).hide();return false}})});