-/*!
- * Ext JS Library 3.2.1
- * Copyright(c) 2006-2010 Ext JS, Inc.
- * licensing@extjs.com
- * http://www.extjs.com/license
- */
-Ext.onReady(function(){
-
- var activeMenu;
-
- function createMenu(name){
- var el = Ext.get(name+'-link');
- var tid = 0, menu, doc = Ext.getDoc();
-
- var handleOver = function(e, t){
- if(t != el.dom && t != menu.dom && !e.within(el) && !e.within(menu)){
- hideMenu();
- }
- };
-
- var hideMenu = function(){
- if(menu){
- menu.hide();
- el.setStyle('text-decoration', '');
- doc.un('mouseover', handleOver);
- doc.un('mousedown', handleDown);
- }
- };
-
- var handleDown = function(e){
- if(!e.within(menu)){
- hideMenu();
- }
- };