﻿// JScript 文件

var pee = -280
var drec = 40;
var speed = 20;

//Don't touch!
var l = pee;

//Don't touch. This is the function that closes the menu
function Proj7GlideBack ()
{
  l += drec;
  if (document.layers)
  {
    document.ctl00_menuBar.left = l;
  }
  else if (document.all)
  {
     document.all.ctl00_menuBar.style.pixelLeft = l;
  }
  else if (document.getElementById)
  {
    document.getElementById('ctl00_menuBar').style.left = l + 'px';
  }
  if (l < 0)
    setTimeout('Proj7GlideBack()', speed);
  
else
 {
	  if (document.layers)
	  {
        var html = '';
        html += '<A HREF="javascript:;"';
        
        html += 'onClick="Proj7GlideOut(); return false;"';
        
        html += 'Class="glideText"';
        
        html += ' 关<br /> 闭<br /> 菜<br /> 单'+ '<br>';
        
        html += ' 关<br /> 闭<br /> 菜<br /> 单'+ '<Br>';
        html += '<\/A>';
        
        var a = window.document.ctl00_menuBar.document.glider;
        
        a.document.open();
        
        a.document.write(html);
        
        a.document.close();
    }
    else if (document.all)
    {
       document.all.glidetextLink.innerHTML = ' 关<br /> 闭<br /> 菜<br /> 单';
       
       document.all.glidetextLink.onclick = moveIn;
    }
    else if (document.getElementById)
    {
    
      document.getElementById('glidetextLink').firstChild.nodeValue =' 关<br /> 闭<br /> 菜<br /> 单';
    
      document.getElementById('glidetextLink').onclick = moveIn;
    }
  }
}
//Don't touch. This is the function that opens the menu
function Proj7GlideOut ()
{
  l -= drec;
  if (document.layers)
  {
    document.ctl00_menuBar.left = l;
  }
  else if (document.all)
  {
    document.all.ctl00_menuBar.style.pixelLeft = l;
  }
  else if (document.getElementById)
  {
    document.getElementById('ctl00_menuBar').style.left = l + 'px';
  }
  if (l > pee)
    setTimeout('Proj7GlideOut()', speed);
  else
  {
    if (document.layers)
    {
      var html = '';
      
      html += '<A HREF="javascript:;"';
      
      html += 'onclick="Proj7GlideBack(); return false;"';
      
      html += 'Class="glideText"';
      
      html += ' 编<br /> 辑<br /> 菜<br /> 单'+ '<Br>';
      
      html += ' 编<br /> 辑<br /> 菜<br /> 单'+ '<Br>';
      
      html += '<\/A>';
      
      var a = window.document.ctl00_menuBar.document.glider;
      
      a.document.open();
      
      a.document.write(html);
      
      a.document.close();
    }
    else if (document.all)
    {
    
       document.all.glidetextLink.innerHTML = ' 编<br /> 辑<br /> 菜<br /> 单';
      
       document.all.glidetextLink.onclick = moveOut;
    }
    else if (document.getElementById)
    {
    
      document.getElementById('glidetextLink').firstChild.nodeValue =' 编<br /> 辑<br /> 菜<br /> 单';
    
      document.getElementById('glidetextLink').onclick = moveOut;
    }
  }
}

function moveIn ()
{
   Proj7GlideOut();return false;
}

function moveOut()
{
   Proj7GlideBack();return false;
}

<!--NNresizeFix Reloads the page to workaround a Netscape Bug-->
if (document.layers)
{
    origWidth = innerWidth;
    origHeight = innerHeight;
}

function reDo()
{
  if (innerWidth != origWidth || innerHeight != origHeight)
    location.reload();
}

if (document.layers)
  onresize = redo;
