﻿// JScript 文件
function SuperChangePanel(panelName, panelId, numOfPanel,activeclassname,nomarclassname)
{  
   for(i = 1; i <= numOfPanel; i++)
   {
      var panel = panelName + i;
      var title = panelName + "title" + i;
      if(i != panelId)
      {
        document.getElementById(panel).style.display="none";
        document.getElementById(title).className = nomarclassname;
      }
      else
      {
        document.getElementById(panel).style.display="block";
        document.getElementById(title).className = activeclassname;
      }
   }
}

function ChangePanel(panelName,panelId,numOfPanel)
{
    for(i = 1; i <= numOfPanel; i++)
     {
        var panel = panelName + i;
        if(i != panelId)
        {
          document.getElementById(panel).style.display="none";
        }
        else
        {
          document.getElementById(panel).style.display="block";
        }
     }
}

function play_flash(width, height, basepath, filepath)
{
      document.write("<object codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" height=\"" + height + "\" width=\"" + width + "\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\">");
      document.write("<param name=\"_cx\" value=\"20505\"/>");
      document.write("<param name=\"_cy\" value=\"2646\"/>");
      document.write("<param name=\"FlashVars\" value=\"\"/>");
      document.write("<param name=\"Movie\" value=\"" + basepath + filepath + "\"/>");
      document.write("<param name=\"Src\" value=\"" + basepath + filepath + "\"/>");
      document.write("<param name=\"WMode\" value=\"Transparent\"/>");
      document.write("<param name=\"Play\" value=\"-1\"/>");
      document.write("<param name=\"Loop\" value=\"-1\"/>");
      document.write("<param name=\"Quality\" value=\"High\"/>");
      document.write("<param name=\"SAlign\" value=\"\"/>");
      document.write("<param name=\"Menu\" value=\"-1\"/>");
      document.write("<param name=\"Base\" value=\"\"/>");
      document.write("<param name=\"AllowScriptAccess\" value=\"\"/>");
      document.write("<param name=\"Scale\" value=\"ShowAll\"/>");
      document.write("<param name=\"DeviceFont\" value=\"0\"/>");
      document.write("<param name=\"EmbedMovie\" value=\"0\"/>");
      document.write("<param name=\"BGColor\" value=\"\"/>");
      document.write("<param name=\"SWRemote\" value=\"\"/>");
      document.write("<param name=\"MovieData\" value=\"\"/>");
      document.write("<param name=\"SeamlessTabbing\" value=\"1\"/>");
      document.write("<param name=\"Profile\" value=\"0\"/>");
      document.write("<param name=\"ProfileAddress\" value=\"\"/>");
      document.write("<param name=\"ProfilePort\" value=\"0\"/>");
      document.write("<param name=\"AllowNetworking\" value=\"all\"/>");
      document.write("<param name=\"AllowFullScreen\" value=\"false\"/>");
      document.write("<embed src=\"" + basepath + filepath + "\" height=\"" + height + "\" width=\"" + width + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" wmode=\"transparent\"></embed>");
      document.write("</object>");
}

function copy_url(text)
    {
      try
      {
          clipboardData.setData('Text', text);
          window.alert("地址已复制到剪贴板！");
      }
      catch(e)
      {
      }
    }