 // Get browser
        function GetBrowser() {
            this.NS4 = (document.layers) ? true : false;
            this.IE4 = (document.all && !document.getElementById) ? true : false;
            this.IE5 = (document.all && document.getElementById) ? true : false; 
            this.NS6 = (!document.all && document.getElementById) ? true : false;
            return this;
        }
        var timeoutID=0;
        var BR = new GetBrowser();
        var TimeOut=300;   
        
        function menuSetup(Name, Left, Top) {
            if (BR.IE4 || BR.IE5) {
                obj = document.all['lr'+Name];
                obj.style.left = Left;
                obj.style.top = Top;
            } else if (BR.NS4) {
                obj = document.layers['lr'+Name];
                obj.left = Left;
                obj.top = Top;
            } else if (BR.NS6) {
                obj = document.getElementById("lr"+Name); 
                obj.style.left = Left;
                obj.style.top = Top;
            }
        }  
        function load(name) {
            
            if (BR.IE4 || BR.IE5 || BR.NS6) { 
                if (name!='site_map') {
                    document.write("<div ID='lr"+name+"' STYLE='position:absolute; visibility:hidden;'  onmouseout='out(\""+name+"\");menuOut(\""+name+"\")' onmouseover='over(\""+name+"\");menuOver()' >");
                } else {
                      document.write("<div ID='lr"+name+"' STYLE='position:absolute; visibility:hidden;'>");
                  }
            } else if (BR.NS4) {
                if (name!='site_map') {
                    document.write('<LAYER NAME="lr'+name+'" VISIBILITY=hide>');
                } else {
                      document.write('<LAYER NAME="lr'+name+'" VISIBILITY=hide>');
                  }
            }
            arr = arr_submenu[name];
            
            str = '';
            count = arr.length;
            count2 = count*2+1;
            for(var i=0; i<count; i++) {
                str += '<tr><td class="submenu">&nbsp;'+arr[i]+'&nbsp;</td></tr><tr class="subrule"><td ><img src="./images/e.gif" width="1" height="1"></td></tr>';
            }
            
            if (name!='site_map') {
                document.write(  "<table cellpadding='0' cellspacing='0'   border=0 bgcolor='#ffffff'  >"+                          
                                "<tr><td rowspan='"+count2+"' class='subrule'><img src='./images/e.gif' width='1' height='1' border='0'></td><td align='center' class='subbg'><img src='./images/submenu_c.gif' width='62' height='15' border='0'></td>"+
                                "<td rowspan='"+count2+"' class='subrule'><img src='./images/e.gif' width='1' height='1' border='0'></td>"+
                                "<td rowspan='"+(count2+1)+"' class='subrule2'><img src='./images/e.gif' width='2' height='1' border='0'></td>"+
                                "</tr>"+str+"<tr><td colspan='3'>"+
                                "<table width='100%' cellpadding='0' cellspacing='0'><tr><td  width='2'><img src='./images/e.gif' width='2' height='1' border='0'></td><td class='subrule2'><img src='./images/e.gif' width='2' height='2' border='0'></td></tr></table></td></tr></table>" );
            } else {
                document.write(  "<table cellpadding='0' cellspacing='0'   border=0 bgcolor='#ffffff'  >"+                          
                                "<tr><td align='center' class='subbg'><img src='./images/submenu_c.gif' width='62' height='15' border='0'></td></tr></table>" );
              }
                            
            if (BR.IE4 || BR.IE5 || BR.NS6) { 
                document.write("</div>");
            } else if (BR.NS4) {
                document.write('</LAYER >');
            }          
            
        }      
        
        function menuShow(Name) {
            
           if (BR.IE4 || BR.IE5) {
                obj = document.all['lr'+ Name];
                obj.style.visibility = 'visible';
           } else if (BR.NS4) {
                obj = document.layers['lr'];
                obj.visibility = 'show';
           }else if (BR.NS6) {
                   obj = document.getElementById("lr"+Name); 
                   obj.style.visibility = 'visible';
           }
         }
            
         function menuOut(Name) {
            timeoutID = setTimeout("menuHide('"+Name+"')", TimeOut);
         }

         function menuOver() {
            
             if (timeoutID != 0) {
                 clearTimeout(timeoutID);
             }
         }
    

        //
        // Menu hide
        //
        function menuHide(Name) {
             if (BR.IE4 || BR.IE5) {
               obj = document.all['lr' + Name];
               obj.style.visibility = 'hidden';
            } else if (BR.NS4) {
               obj = document.layers[0];
               obj.visibility = 'hide';
            }else if (BR.NS6) {
               obj = document.getElementById("lr"+Name); 
               obj.style.visibility = 'hidden';
            }
        }

   
  
        function load_menu() {
            for (var i=0; i<arr_image.length; i++) {
                load(arr_image[i]);
                menuSetup(arr_image[i],arr_left[i], 96+72);
            }
            
        }
        


