    var Timer;
    
    function showMenu( channel){
        
        var i;
        var menu = new Array();        
        var mouseevent;
        var html;
        
        var p, w;
       
        mouseevent = ' onmouseover="javascript: holdMenu();" onmouseout="javascript: hideMenu();"';
       
        menu[0] = new Array();
        menu[0][0] = '<a href="./mobile_hot_index.jsp"' + mouseevent + ' class="menulist">熱門手機</a>';
        menu[0][1] = '<a href="./mobile_brand_index.jsp"' + mouseevent + ' class="menulist">所有手機</a>';
        menu[0][2] = '<a href="./confront_index.jsp"' + mouseevent + ' class="menulist">手機比較</a>';
        menu[0][3] = '<a href="/rss/mobile_rss.jsp"' + mouseevent + ' class="menulist" target="_blank">RSS訂閱</a>';
        
        menu[1] = new Array();
        menu[1][0] = '<a href="./report_hottest_index.jsp"' + mouseevent + ' class="menulist">熱門實測</a>';
        menu[1][1] = '<a href="./report_hottopic_index.jsp"' + mouseevent + ' class="menulist">發燒話題</a>';
        menu[1][2] = '<a href="./report_player_index.jsp"' + mouseevent + ' class="menulist">玩機大公開</a>';
        menu[1][3] = '<a href="/rss/report_rss.jsp"' + mouseevent + ' class="menulist" target="_blank">RSS訂閱</a>';

        menu[2] = new Array();
        menu[2][0] = '<a href="./news_news_index.jsp?ch=1"' + mouseevent + ' class="menulist">手機新聞</a>';
        menu[2][1] = '<a href="./news_news_index.jsp?ch=2"' + mouseevent + ' class="menulist">電信新聞</a>';
        menu[2][2] = '<a href="./news_news_index.jsp?ch=3"' + mouseevent + ' class="menulist">展場新聞</a>';
        menu[2][3] = '<a href="./news_news_index.jsp?ch=4"' + mouseevent + ' class="menulist">綜合新聞</a>';
        menu[2][4] = '<a href="./news_news_index.jsp?ch=9"' + mouseevent + ' class="menulist">配件新聞</a>';
        menu[2][5] = '<a href="./news_girl_index.jsp"' + mouseevent + ' class="menulist">美女最前線</a>';
        menu[2][6] = '<a href="./news_weekly_index.jsp"' + mouseevent + ' class="menulist">GOGO週報</a>';
        menu[2][7] = '<a href="/rss/news_rss.jsp"' + mouseevent + ' class="menulist" target="_blank">RSS訂閱</a>';

        menu[3] = new Array();
        menu[3][0] = '<a href="http://forum.gophone.com.tw/index.php?c=1"' + mouseevent + ' class="menulist">手機</a>';
        menu[3][1] = '<a href="http://forum.gophone.com.tw/index.php?c=2"' + mouseevent + ' class="menulist">電信業者</a>';
        menu[3][2] = '<a href="http://forum.gophone.com.tw/index.php?c=3"' + mouseevent + ' class="menulist">通訊行</a>';
        menu[3][3] = '<a href="http://forum.gophone.com.tw/index.php?c=4"' + mouseevent + ' class="menulist">主題討論</a>';
        menu[3][4] = '<a href="http://forum.gophone.com.tw/index.php?c=6"' + mouseevent + ' class="menulist">站務討論</a>';
        //menu[3][5] = '<a href="/bbs/other_index.jsp"' + mouseevent + ' class="menulist">其他綜合</a>';

        menu[4] = new Array();
        menu[4][0] = '<a href="#"' + mouseevent + ' class="menulist">影音館</a>';

        menu[5] = new Array();
        
        if( channel == 0){
            
            p = 279;
            w = 92;
            
        }
        
        else if( channel == 1){

            p = 372;
            w = 99;
        
        }    

        else if( channel == 2){

            p = 472;
            w = 98;
        
        } 

        else if( channel == 3){

            p = 572;
            w = 99;
        
        } 

        else if( channel == 4){

            p = 671;
            w = 98;
        
        }
            
        else{

            p = 770;
            w = 87;        
        
        }
        
        html = '';
        html += '     <table width="' + w + '" border="0" cellpadding="0" cellspacing="0" bgcolor="#FF9000">\n';
        
        for( i = 0; i < menu[channel].length; i ++){

            html += '      <tr><td width="14" height="22" align="center"><img src="./images/menu_arrow.gif" width="9" height="9"></td>\n';
            html += '          <td width="' + ( w - 14) + '" height="20">' + menu[channel][i] + '</td></tr>\n';          
            
            if( i != menu[channel].length - 1){
                
                html += '      <tr><td height="1" colspan="2" bgcolor="#FFBB07"><img src="./images/dot.gif" width="1" height="1"></td></tr>\n';
            
            }
            
        }
                
        html += '     </table>\n';
        
        mainmenu.style.position = 'absolute';
        mainmenu.style.left = p;
        mainmenu.style.top = 74;
        mainmenu.style.width = w;
        mainmenu.style.display = 'block';
        mainmenu.innerHTML = html;

        showNewsSeek();

        clearTimeout( Timer);
        
    }

    function holdMenu(){

        showNewsSeek();
    
        clearTimeout( Timer);
        
    }
    
    function closeMenu(){

        showNewsSeek();
       
        mainmenu.innerHTML = '';
        mainmenu.style.display = 'none';    
        
    }

    function hideMenu( m){

        Timer = setTimeout( 'closeMenu(); hideNewsSeek();', 500);
        
    }

    function showVedio(){
        
        showvedio.style.display = 'block';
        hidevedio.style.display = 'none';    
        
    }

    function hideVedio(){

        showvedio.style.display = 'none';
        hidevedio.style.display = 'block';  
        
    }
    
    function playVedio(){

        HomeVedio.controls.play();
        
    }
    
    function pauseVedio(){
        
        HomeVedio.controls.pause();
        
    }
    
    function stopVedio(){

        HomeVedio.controls.stop();
        
    }

    function MM_preloadImages() { //v3.0
      var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }
    
    function MM_swapImgRestore() { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }
    
    function MM_findObj(n, d) { //v4.01
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
      if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
      for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
      if(!x && d.getElementById) x=d.getElementById(n); return x;
    }
    
    function MM_swapImage() { //v3.0
      var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
       if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
      if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
        document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
      else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    
    MM_reloadPage(true);
    
