
            var hInterval;
            
            function Popup(e){
                var subMenus = '';
                var subs = this.items;
            
                e.cancelBubble = true;
                var subMenus = '';

                for(var i=0;i<=subs.length-1;i++){
                    var url = subs[i].url;              
                    if (url!=''){
                            subMenus += '<div style="height:17px;font-family:verdana;font-size:12px;position:relative;background-color:#6092BB;" onmouseover="this.style.background=\'#6092BB\';this.style.color=\'white\';this.style.cursor=\'hand\';clearInterval(hInterval);" onmouseout="this.style.background=\'#6092BB\';this.style.color=\'black\';this.style.cursor=\'default\';hInterval=setInterval(hideMenu,500);"><span style="width:' + this.width + '" onclick="location.assign(\'' + url + '\');hideMenu();">'
                            subMenus += '&nbsp;&nbsp;' + subs[i].name + '</span>';
                            subMenus += '</div>'
                    } else {
                        subMenus += '<div id=sub_' + i + ' style="position:relative;Top:0px;Left:0px;background-color:' + menuColor + '">'
                        subMenus += '<HR width="90%" align=center>'
                        subMenus += '</div>' 
                    }
                }

                divMenu.style.width = this.width;
                divMenu.style.left = this.left;
                divMenu.style.top = this.top;
                divMenu.innerHTML = subMenus;
                divMenu.style.visibility = "visible";
            }
        
            function AddItem(name, URL){
                var menu = this;
                var iIndex = menu.items.length;
                menu.items[iIndex] = new item(name,URL)     
            }

            function buildProductsMenu(width, left, top) {
                var ActiveMenu = new menu('Products', width, left, top);
                ActiveMenu.AddItem('Maintenance Management', 'Products.asp?click=MAINTENANCE');
                ActiveMenu.AddItem('Flight Scheduling', 'Products.asp?click=FLIGHT');
                ActiveMenu.AddItem('Inventory Control', 'Products.asp?click=INVENTORY');
                ActiveMenu.AddItem('Engine Condition Trend Monitoring', 'ECTM.asp');
                return ActiveMenu;
            }
            
            function buildSalesMenu(width, left, top) {
                var ActiveMenu = new menu('Sales', width, left, top);
                ActiveMenu.AddItem('Products', 'http://www.yahoo.com');
                ActiveMenu.AddItem('Contacts', 'http://www.yahoo.com');
                return ActiveMenu;
            }
            
            function buildSupportMenu(width, left, top) {
                var ActiveMenu = new menu('Support', width, left, top);
                ActiveMenu.AddItem('Training', 'Support.asp?click=TRAINING');
                ActiveMenu.AddItem('Seminars', 'Support.asp?click=SEMINAR');
                //ActiveMenu.AddItem('Analysts', 'index.asp?click=ANALYST');
                ActiveMenu.AddItem('Documentation', 'Support.asp?click=DOCUMENT');
                ActiveMenu.AddItem('Contacts', 'Support.asp?click=CONTACTS');
                
                return ActiveMenu;
            }
            
            function buildCompanyMenu(width, left, top) {
                var ActiveMenu = new menu('Company', 135, left, top);
                ActiveMenu.AddItem('Locations', 'Company.asp?click=LOCATIONS');
                ActiveMenu.AddItem('Management Team', 'Company.asp?click=MANAGEMENT');
                ActiveMenu.AddItem('Employment', 'Company.asp?click=EMPLOYMENT');
                ActiveMenu.AddItem('News & Events', 'Company.asp?click=NEWS');
                ActiveMenu.AddItem('CAMP Insight', 'Company.asp?click=PUBLICATION');
                ActiveMenu.AddItem('History', 'Company.asp?click=HISTORY');
                return ActiveMenu;
            }


            function menu(name, width, left, top){
                this.name = name;
                this.Popup = Popup;
                this.items = new Array();
                this.AddItem = AddItem;
                this.Div = null;
                this.width = width;
                this.left = left;
                this.top = top;
            }

            function item(name,url){
                this.name = name;
                this.url = url;
            }
        
            function hideMenu() {
                if (divMenu.style.visibility == "visible") {
                    divMenu.style.visibility = "hidden";
                    clearInterval(hInterval);
                }
            }
