﻿//========================Dreamwaver產生========================//
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];}
}
//========================Dreamwaver產生========================//


//========================農民曆========================//
function CalConv(){
    FIRSTYEAR = 1998;
    LASTYEAR = 2031;
    today = new Date();
    SolarYear = today.getFullYear();
    SolarMonth = today.getMonth() + 1;
    SolarDate = today.getDate();
    Weekday = today.getDay();
    LunarCal = [
        new tagLunarCal( 27, 5, 3, 43, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1 ),
        new tagLunarCal( 46, 0, 4, 48, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1 ), /* 1999 */
        new tagLunarCal( 35, 0, 5, 53, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1 ), /* 2000 */
        new tagLunarCal( 23, 4, 0, 59, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1 ),
        new tagLunarCal( 42, 0, 1, 4, 1, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1 ),
        new tagLunarCal( 31, 0, 2, 9, 1, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0 ),
        new tagLunarCal( 21, 2, 3, 14, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1 ), /* 2004 */
        new tagLunarCal( 39, 0, 5, 20, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1 ),
        new tagLunarCal( 28, 7, 6, 25, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 1 ),
        new tagLunarCal( 48, 0, 0, 30, 0, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1 ),
        new tagLunarCal( 37, 0, 1, 35, 1, 0, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1 ), /* 2008 */
        new tagLunarCal( 25, 5, 3, 41, 1, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1 ),
        new tagLunarCal( 44, 0, 4, 46, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1 ),
        new tagLunarCal( 33, 0, 5, 51, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1 ),
        new tagLunarCal( 22, 4, 6, 56, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0 ), /* 2012 */
        new tagLunarCal( 40, 0, 1, 2, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0 ),
        new tagLunarCal( 30, 9, 2, 7, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1 ),
        new tagLunarCal( 49, 0, 3, 12, 0, 1, 0, 0, 1, 0, 1, 1, 1, 0, 1, 0, 1 ),
        new tagLunarCal( 38, 0, 4, 17, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0 ), /* 2016 */
        new tagLunarCal( 27, 6, 6, 23, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1 ),
        new tagLunarCal( 46, 0, 0, 28, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 0 ),
        new tagLunarCal( 35, 0, 1, 33, 0, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0 ),
        new tagLunarCal( 24, 4, 2, 38, 0, 1, 1, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1 ), /* 2020 */
        new tagLunarCal( 42, 0, 4, 44, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1 ),
        new tagLunarCal( 31, 0, 5, 49, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0 ),
        new tagLunarCal( 21, 2, 6, 54, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1 ),
        new tagLunarCal( 40, 0, 0, 59, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 1, 0, 1 ), /* 2024 */
        new tagLunarCal( 28, 6, 2, 5, 1, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0 ),
        new tagLunarCal( 47, 0, 3, 10, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 1, 0, 1 ),
        new tagLunarCal( 36, 0, 4, 15, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 1 ),
        new tagLunarCal( 25, 5, 5, 20, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0 ), /* 2028 */
        new tagLunarCal( 43, 0, 0, 26, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1 ),
        new tagLunarCal( 32, 0, 1, 31, 1, 1, 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0 ),
        new tagLunarCal( 22, 3, 2, 36, 0, 1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0 )
    ];
    /* 西曆年每月之日數 */
    SolarCal = [ 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 ];
    /* 西曆年每月之累積日數, 平年與閏年 */
    SolarDays = [
        0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334, 365, 396,
        0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335, 366, 397
    ];
    AnimalIdx = ["馬", "羊", "猴", "雞", "狗", "豬", "鼠", "牛", "虎", "兔", "龍", "蛇"];
    LocationIdx = [ "南", "東", "北", "西"];
     if ( SolarYear <= FIRSTYEAR || SolarYear > LASTYEAR ) return 1;
     sm = SolarMonth - 1;
    if ( sm < 0 || sm > 11 ) return 2;
    leap = GetLeap( SolarYear );
    if ( sm == 1 )
        d = leap + 28;
    else
        d = SolarCal[sm];
    if ( SolarDate < 1 || SolarDate > d ) return 3;
    y = SolarYear - FIRSTYEAR;
    acc = SolarDays[ leap*14 + sm ] + SolarDate;
    kc = acc + LunarCal[y].BaseKanChih;
    Kan = kc % 10;
    Chih = kc % 12;
    Location = LocationIdx[kc % 4];
    Age = kc % 60;
    if ( Age < 22 )
        Age = 22 - Age;
    else
        Age = 82 - Age;
    Age =Age + 3;
    if (Age < 10)
        Age=Age+60;
    Animal = AnimalIdx[ Chih ];
    if ( acc <= LunarCal[y].BaseDays ) {
        y--;
        LunarYear = SolarYear - 1;
        leap = GetLeap( LunarYear );
        sm += 12;
        acc = SolarDays[leap*14 + sm] + SolarDate;
    }
    else
        LunarYear = SolarYear;
    l1 = LunarCal[y].BaseDays;
    for ( i=0; i<13; i++ ) {
        l2 = l1 + LunarCal[y].MonthDays[i] + 29;
        if ( acc <= l2 ) break;
        l1 = l2;
    }
    LunarMonth = i + 1;
    LunarDate = acc - l1;
    im = LunarCal[y].Intercalation;
    if ( im != 0 && LunarMonth > im ) {
        LunarMonth--;
        if ( LunarMonth == im ) LunarMonth = -im;
    }
    if ( LunarMonth > 12 ) LunarMonth -= 12;
    if (SolarYear > 1911) SolarYear = SolarYear -1911
    document.write( "<center>農曆" + LunarMonth + "月" + LunarDate + "日" + "煞" + Location );
    //document.write( "煞" + Location + "沖" + Animal + Age + "歲</center>" ); 
    return 0;
}
/* 求此西曆年是否為閏年, 返回 0 為平年, 1 為閏年 */
function GetLeap( year ){
    if ( year % 400 == 0 )
        return 1;
    else if ( year % 100 == 0 )
        return 0;
    else if ( year % 4 == 0 )
        return 1;
    else
        return 0;
}
function tagLunarCal( d, i, w, k, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12, m13) {
    this.BaseDays = d; /* 到西曆 1 月 1 日到農曆正月初一的累積日數 */
    this.Intercalation = i; /* 閏月月份. 0==此年沒有閏月 */
    this.BaseWeekday = w; /* 此年西曆 1 月 1 日為星期幾再減 1 */
    this.BaseKanChih = k; /* 此年西曆 1 月 1 日之干支序號減 1 */
    this.MonthDays = [ m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12, m13 ];/* 此農曆年每月之大小, 0==小月(29日), 1==大月(30日) */
}
//========================農民曆========================//


//========================讓Flash不需要點一下之語法========================//
//Copyright 2006 Adobe Systems, Inc. All rights reserved.
var requiredMajorVersion = 8;
// 需要 Flash 的次要版本
var requiredMinorVersion = 0;
// 需要的 Flash 版本
var requiredRevision = 0;
// 支援的 Javascript 版本
var jsVersion = 1.0;

function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_SW_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".dcr", "src", "clsid:166B1BCA-3F9C-11CF-8075-444553540000"
     , null
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function AC_GetArgs(args, ext, srcParamName, classid, mimeType){
  var ret = new Object();
  ret.embedAttrs = new Object();
  ret.params = new Object();
  ret.objAttrs = new Object();
  for (var i=0; i < args.length; i=i+2){
    var currArg = args[i].toLowerCase();    

    switch (currArg){    
      case "classid":
        break;
      case "pluginspage":
        ret.embedAttrs[args[i]] = args[i+1];
        break;
      case "src":
      case "movie":    
        args[i+1] = AC_AddExtension(args[i+1], ext);
        ret.embedAttrs["src"] = args[i+1];
        ret.params[srcParamName] = args[i+1];
        break;
      case "onafterupdate":
      case "onbeforeupdate":
      case "onblur":
      case "oncellchange":
      case "onclick":
      case "ondblClick":
      case "ondrag":
      case "ondragend":
      case "ondragenter":
      case "ondragleave":
      case "ondragover":
      case "ondrop":
      case "onfinish":
      case "onfocus":
      case "onhelp":
      case "onmousedown":
      case "onmouseup":
      case "onmouseover":
      case "onmousemove":
      case "onmouseout":
      case "onkeypress":
      case "onkeydown":
      case "onkeyup":
      case "onload":
      case "onlosecapture":
      case "onpropertychange":
      case "onreadystatechange":
      case "onrowsdelete":
      case "onrowenter":
      case "onrowexit":
      case "onrowsinserted":
      case "onstart":
      case "onscroll":
      case "onbeforeeditfocus":
      case "onactivate":
      case "onbeforedeactivate":
      case "ondeactivate":
      case "type":
      case "codebase":
        ret.objAttrs[args[i]] = args[i+1];
        break;
      case "width":
      case "height":
      case "align":
      case "vspace": 
      case "hspace":
      case "class":
      case "title":
      case "accesskey":
      case "name":
      case "id":
      case "tabindex":
        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];
        break;
      default:
        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];
    }
  }
  ret.objAttrs["classid"] = classid;
  if (mimeType) ret.embedAttrs["type"] = mimeType;
  return ret;
}
var isIE  = (navigator.appVersion.indexOf("MSIE") != -1) ? true : false;
var isWin = (navigator.appVersion.toLowerCase().indexOf("win") != -1) ? true : false;
var isOpera = (navigator.userAgent.indexOf("Opera") != -1) ? true : false;
jsVersion = 1.1;
// 需要 JavaScript 協助程式以偵測 Flash Player PlugIn 版本資訊
function JSGetSwfVer(i){
    // NS/Opera 版本 >= 3 檢查外掛程式陣列中的 Flash 外掛程式
    if (navigator.plugins != null && navigator.plugins.length > 0) {
        if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) {
            var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : "";
              var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description;
            descArray = flashDescription.split(" ");
            tempArrayMajor = descArray[2].split(".");
            versionMajor = tempArrayMajor[0];
            versionMinor = tempArrayMajor[1];
            if ( descArray[3] != "" ) {
                tempArrayMinor = descArray[3].split("r");
            } else {
                tempArrayMinor = descArray[4].split("r");
            }
              versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0;
            flashVer = versionMajor + "." + versionMinor + "." + versionRevision;
          } else {
            flashVer = -1;
        }
    }
    // MSN/WebTV 2.6 支援 Flash 4
    else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4;
    // WebTV 2.5 支援 Flash 3
    else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3;
    // 舊的 WebTV 支援 Flash 2
    else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2;
    // 在其它情況下皆無法偵測
    else {
        flashVer = -1;
    }
    return flashVer;
} 
// 如果以沒有參數的方式呼叫，這個函數會傳回應為 Flash Player 的版本值或 0.0 的浮點值
// 例如：Flash Player 7r14 會傳回 7.14
// 使用 reqMajorVer、reqMinorVer 或 reqRevision 呼叫時，如果有該版本或更新的版本時，會傳回 true
function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) {
    reqVer = parseFloat(reqMajorVer + "." + reqRevision);
       // 往後尋找最新版本    
    for (i=25;i>0;i--) {    
        if (isIE && isWin && !isOpera) {
            versionStr = VBGetSwfVer(i);
        } else {
            versionStr = JSGetSwfVer(i);        
        }
        if (versionStr == -1 ) { 
            return false;
        } else if (versionStr != 0) {
            if(isIE && isWin && !isOpera) {
                tempArray         = versionStr.split(" ");
                tempString        = tempArray[1];
                versionArray      = tempString .split(",");                
            } else {
                versionArray      = versionStr.split(".");
            }
            versionMajor      = versionArray[0];
            versionMinor      = versionArray[1];
            versionRevision   = versionArray[2];
            
            versionString     = versionMajor + "." + versionRevision;   // 7.0r24 == 7.24
            versionNum        = parseFloat(versionString);
            // 是否主版本 >= 需要的主版本，而且次版本 >= 需要的次版本
            if ( (versionMajor > reqMajorVer) && (versionNum >= reqVer) ) {
                return true;
            } else {
                return ((versionNum >= reqVer && versionMinor >= reqMinorVer) ? true : false );    
            }
        }
    }    
    return (reqVer ? false : 0.0);
}






if(typeof com == "undefined") var com = new Object();
if(typeof com.deconcept == "undefined") com.deconcept = new Object();
if(typeof com.deconcept.util == "undefined") com.deconcept.util = new Object();
if(typeof com.deconcept.FlashObjectUtil == "undefined") com.deconcept.FlashObjectUtil = new Object();
com.deconcept.FlashObject = function(swf, id, w, h, ver, c, useExpressInstall, quality, xiRedirectUrl, redirectUrl, detectKey){
  if (!document.createElement || !document.getElementById) return;
  this.DETECT_KEY = detectKey ? detectKey : 'detectflash';
  this.skipDetect = com.deconcept.util.getRequestParameter(this.DETECT_KEY);
  this.params = new Object();
  this.variables = new Object();
  this.attributes = new Array();
  this.useExpressInstall = useExpressInstall;
  this.addParam('wmode', 'transparent');
  if(swf) this.setAttribute('swf', swf);
  if(id) this.setAttribute('id', id);
  if(w) this.setAttribute('width', w);
  if(h) this.setAttribute('height', h);
  if(ver) this.setAttribute('version', new com.deconcept.PlayerVersion(ver.toString().split(".")));
  this.installedVer = com.deconcept.FlashObjectUtil.getPlayerVersion(this.getAttribute('version'), useExpressInstall);
  if(c) this.addParam('bgcolor', c);
  var q = quality ? quality : 'high';
  this.addParam('quality', q);
  var xir = (xiRedirectUrl) ? xiRedirectUrl : window.location;
  this.setAttribute('xiRedirectUrl', xir);
  this.setAttribute('redirectUrl', '');
  if(redirectUrl) this.setAttribute('redirectUrl', redirectUrl);
}
com.deconcept.FlashObject.prototype = {
  setAttribute: function(name, value){
    this.attributes[name] = value;
  },
  getAttribute: function(name){
    return this.attributes[name];
  },
  addParam: function(name, value){
    this.params[name] = value;
  },
  getParams: function(){
    return this.params;
  },
  addVariable: function(name, value){
    this.variables[name] = value;
  },
  getVariable: function(name){
    return this.variables[name];
  },
  getVariables: function(){
    return this.variables;
  },
  createParamTag: function(n, v){
    var p = document.createElement('param');
    p.setAttribute('name', n);
    p.setAttribute('value', v);
    return p;
  },
  getVariablePairs: function(){
    var variablePairs = new Array();
    var key;
    var variables = this.getVariables();
    for(key in variables){
      variablePairs.push(key +"="+ variables[key]);
    }
    return variablePairs;
  },
  getFlashHTML: function() {
    var flashNode = "";
    if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) { // netscape plugin architecture
      if (this.getAttribute("doExpressInstall")) this.addVariable("MMplayerType", "PlugIn");
      flashNode = '<embed type="application/x-shockwave-flash" src="'+ this.getAttribute('swf') +'" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'"';
      flashNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" ';
      var params = this.getParams();
       for(var key in params){ flashNode += [key] +'="'+ params[key] +'" '; }
      var pairs = this.getVariablePairs().join("&");
       if (pairs.length > 0){ flashNode += 'flashvars="'+ pairs +'"'; }
      flashNode += '/>';
    } else { // PC IE
      if (this.getAttribute("doExpressInstall")) this.addVariable("MMplayerType", "ActiveX");
      flashNode = '<object id="'+ this.getAttribute('id') +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'">';
      flashNode += '<param name="movie" value="'+ this.getAttribute('swf') +'" />';
      var params = this.getParams();
      for(var key in params) {
       flashNode += '<param name="'+ key +'" value="'+ params[key] +'" />';
      }
      var pairs = this.getVariablePairs().join("&");
      if(pairs.length > 0) {flashNode += '<param name="flashvars" value="'+ pairs +'" />';}
      flashNode += "</object>";
    }
    return flashNode;
  },
  write: function(elementId){
    if(this.useExpressInstall) {
     
      var expressInstallReqVer = new com.deconcept.PlayerVersion([6,0,65]);
      if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) {
        this.setAttribute('doExpressInstall', true);
        this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl')));
        document.title = document.title.slice(0, 47) + " - Flash Player Installation";
        this.addVariable("MMdoctitle", document.title);
      }
    } else {
      this.setAttribute('doExpressInstall', false);
    }
    if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version'))){
      var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId;
      n.innerHTML = this.getFlashHTML();
    }else{
      if(this.getAttribute('redirectUrl') != "") {
        document.location.replace(this.getAttribute('redirectUrl'));
      }
    }
  }
}


com.deconcept.FlashObjectUtil.getPlayerVersion = function(reqVer, xiInstall){
  var PlayerVersion = new com.deconcept.PlayerVersion(0,0,0);
  if(navigator.plugins && navigator.mimeTypes.length){
    var x = navigator.plugins["Shockwave Flash"];
    if(x && x.description) {
      PlayerVersion = new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."));
    }
  }else{
    try{
      var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
      for (var i=3; axo!=null; i++) {
        axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
        PlayerVersion = new com.deconcept.PlayerVersion([i,0,0]);
      }
    }catch(e){}
    if (reqVer && PlayerVersion.major > reqVer.major) return PlayerVersion; 
    if (!reqVer || ((reqVer.minor != 0 || reqVer.rev != 0) && PlayerVersion.major == reqVer.major) || PlayerVersion.major != 6 || xiInstall) {
      try{
        PlayerVersion = new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));
      }catch(e){}
    }
  }
  return PlayerVersion;
}
com.deconcept.PlayerVersion = function(arrVersion){
  this.major = parseInt(arrVersion[0]) || 0;
  this.minor = parseInt(arrVersion[1]) || 0;
  this.rev = parseInt(arrVersion[2]) || 0;
}
com.deconcept.PlayerVersion.prototype.versionIsValid = function(fv){
  if(this.major < fv.major) return false;
  if(this.major > fv.major) return true;
  if(this.minor < fv.minor) return false;
  if(this.minor > fv.minor) return true;
  if(this.rev < fv.rev) return false;
  return true;
}

com.deconcept.util = {
  getRequestParameter: function(param){
    var q = document.location.search || document.location.hash;
    if(q){
      var startIndex = q.indexOf(param +"=");
      var endIndex = (q.indexOf("&", startIndex) > -1) ? q.indexOf("&", startIndex) : q.length;
      if (q.length > 1 && startIndex > -1) {
        return q.substring(q.indexOf("=", startIndex)+1, endIndex);
      }
    }
    return "";
  }
}


if (Array.prototype.push == null) { Array.prototype.push = function(item) { this[this.length] = item; return this.length; }}


var getQueryParamValue = com.deconcept.util.getRequestParameter;
var FlashObject = com.deconcept.FlashObject;
//========================讓Flash不需要點一下之語法========================//



//========================改變字型大小的語法========================//
function FontZoom(size)
{
  var elementDiv = document.getElementsByTagName("div");  
  for(i = 0, j = 0; i < elementDiv.length; i++) {
    elementDiv[i].style.fontSize=size+'px';
  }
  
  var elementSpan = document.getElementsByTagName("span");  
  for(i = 0, j = 0; i < elementSpan.length; i++) {
    elementSpan[i].style.fontSize=size+'px';
  }
  
  var elementA = document.getElementsByTagName("a");  
  for(i = 0, j = 0; i < elementA.length; i++) {
    elementA[i].style.fontSize=size+'px';
  }
  
  var elementTd = document.getElementsByTagName("td");  
  for(i = 0, j = 0; i < elementTd.length; i++) {
    elementTd[i].style.fontSize=size+'px';
  }
  
  var elementTd = document.getElementsByTagName("p");  
  for(i = 0, j = 0; i < elementTd.length; i++) {
    elementTd[i].style.fontSize=size+'px';
  }
}
//========================改變字型大小的語法========================//

//========================全選群組========================//

function SelectAll(target) {
    var elements = target.getElementsByTagName('input')
    for(var i = 0;i < elements.length; i++ ){    
        if(elements[i].getAttribute('type')=='checkbox'){
            elements[i].checked = true;
        }
    }
}

//========================全選群組========================//




//========================外網秀子功能的語法========================//
function ShowSubMenu(n,h,type) {        
    if(type=='AutoCollapse'){ 
        if(parseInt(n.style.width.replace("px",""),10)==0){
            if(ExtendFlag){
                ExtendFlag = false;
                SubMenu = n;
                SubMenuH = h;
                SubMenu.style.width=parseInt(SubMenu.style.width.replace("px",""),10) + 10;            
                ExtendMenu();
                if(CollapseId) window.clearTimeout(CollapseId);CollapseId=0;
            }
        }
        else{
            if(ExtendFlag){
                if(CollapseId) window.clearTimeout(CollapseId);CollapseId=0;
            }
        }
    }
    else if(type='ClickCollapse'){
        if(parseInt(n.style.width.replace("px",""),10)==0){
            SubMenu = n;
            SubMenuH = h;
            SubMenu.style.width=parseInt(SubMenu.style.width.replace("px",""),10) + 10;            
            ExtendMenu();
            if(CollapseId) window.clearTimeout(CollapseId);CollapseId=0;
        } 
    }
}

function ExtendMenu(){
    if((parseInt(SubMenu.style.width.replace("px",""),10)<SubMenuH)&&parseInt(SubMenu.style.width.replace("px",""),10)>0){
        SubMenu.style.width=parseInt(SubMenu.style.width.replace("px",""),10) + 20;
        ExtendId = window.setTimeout("ExtendMenu();",10);
        if(SubMenu.id=='Menu1'){
            CollapseTargetMenu(Menu2);
            CollapseTargetMenu(Menu3);
            CollapseTargetMenu(Menu4);
            CollapseTargetMenu(Menu5);
            CollapseTargetMenu(Menu6);
            CollapseTargetMenu(Menu8);
        }
        if(SubMenu.id=='Menu2'){
            CollapseTargetMenu(Menu1);
            CollapseTargetMenu(Menu3);
            CollapseTargetMenu(Menu4);
            CollapseTargetMenu(Menu5);
            CollapseTargetMenu(Menu6);
            CollapseTargetMenu(Menu8);
        }
        if(SubMenu.id=='Menu3'){
            CollapseTargetMenu(Menu1);
            CollapseTargetMenu(Menu2);
            CollapseTargetMenu(Menu4);
            CollapseTargetMenu(Menu5);
            CollapseTargetMenu(Menu6);
            CollapseTargetMenu(Menu8);
        }
        if(SubMenu.id=='Menu4'){
            CollapseTargetMenu(Menu1);
            CollapseTargetMenu(Menu3);
            CollapseTargetMenu(Menu2);
            CollapseTargetMenu(Menu5);
            CollapseTargetMenu(Menu6);
            CollapseTargetMenu(Menu8);
        }
        if(SubMenu.id=='Menu5'){
            CollapseTargetMenu(Menu1);
            CollapseTargetMenu(Menu3);
            CollapseTargetMenu(Menu4);
            CollapseTargetMenu(Menu2);
            CollapseTargetMenu(Menu6);
            CollapseTargetMenu(Menu8);
        }
        if(SubMenu.id=='Menu6'){
            CollapseTargetMenu(Menu1);
            CollapseTargetMenu(Menu3);
            CollapseTargetMenu(Menu4);
            CollapseTargetMenu(Menu5);
            CollapseTargetMenu(Menu2);
            CollapseTargetMenu(Menu8);
        }
        if(SubMenu.id=='Menu8'){
            CollapseTargetMenu(Menu1);
            CollapseTargetMenu(Menu2);
            CollapseTargetMenu(Menu3);
            CollapseTargetMenu(Menu4);
            CollapseTargetMenu(Menu5);
            CollapseTargetMenu(Menu6);
        }
        
    }
    else{
        ExtendFlag = true;
    }
}

function HideSubMenu(n) {
    if(CollapseFlag){
        if(parseInt(n.style.width.replace("px",""),10)!=0){
            SubMenu = n;
            ExtendFlag = false;        
            CollapseFlag = false;    
            CollapseId = window.setTimeout("CollapseMenu();",500);
        }
    }
}

function CollapseMenu(){
    if(SubMenu.style.opacity*10>0){
        if((SubMenu.style.opacity*10 - 1)<=0){            
            SubMenu.style.width=0;
            SubMenu.style.opacity=0.9;
            SubMenu.style.filter='alpha(opacity=90)';
            window.setTimeout(function(){ExtendFlag = true;CollapseFlag = true;},100);                
        }
        else
        {
            SubMenu.style.opacity=(SubMenu.style.opacity*10 - 1)/10;
            SubMenu.style.filter='alpha(opacity='+ SubMenu.style.opacity*100 +')';
            CollapseId = window.setTimeout("CollapseMenu();",100);
            if(ExtendId) window.clearTimeout(ExtendId);ExtendId=0;
        }        
    }
}

function CollapseTargetMenu(t){
    if(t.style.opacity*10>0){
        if((t.style.opacity*10 - 1)<=0){   
            t.style.width=0;
            t.style.opacity=0.9;
            t.style.filter='alpha(opacity=90)';            
        }
        else
        {
            t.style.opacity=(t.style.opacity*10 - 1)/10;
            t.style.filter='alpha(opacity='+ t.style.opacity*100 +')';
        }        
    }
}

function ShowArrow(n){
	n.childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].style.display="block";
}

function HideArrow(n){
	n.childNodes[0].childNodes[0].childNodes[0].childNodes[0].childNodes[0].style.display="none";
}


//========================外網秀子功能的語法========================//
