﻿// JScript 文件
function MM_jumpMenu(targ,selObj,restore){ //v3.0
      eval("window.open('"+selObj.options[selObj.selectedIndex].value+"')");
      if (restore) selObj.selectedIndex=0;
    }

function play_images(pics, links, texts,width,height,textheight)
{
    var focus_width = width;  //在这儿设置图片宽度
    var focus_height = height; //在这儿设置图片高度
    var text_height = textheight;   //在这儿设置文本高度
    var swf_height = focus_height + text_height;
    
    document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
    document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="picer.swf"><param name="quality" value="high"><param name="bgcolor" value="#EBF3FA">');
    document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
    document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
    document.write('<embed src="/molive/webjsp/flash/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#EBF3FA" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
    document.write('</object>');
}

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)
      {
      }
    }