   NS4 = (document.layers);
   IE4 = (document.all);
   ver4 = (NS4 || IE4);   
   isMac = (navigator.appVersion.indexOf("Mac") != -1);
   isMenu = (NS4 || (IE4 && !isMac));
   function switchOn(){return};
   function switchOff(){return};
   function makeTop(){return};
   function popUp(i){switchOn('menu'+i);};
   function popDown(i){switchOff('menu'+i);};
   function startIt(){return};   

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_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_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_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

if (!ver4) event = null;


if (isMenu) {
    menuVersion = 3;
    
    menuWidth = 120;
    childOverlap = 0;
    childOffset = 0;
    perCentOver = 0;
    secondsVisible = .5;
    
    fntCol = "black";
    fntSiz = "9";
    fntBold = false;
    fntItal = false;
    fntFam = "新細明體,Geneva,Arial,sans-serif";
    
    backCol = "#FFFFCC";
    overCol = "#006600";
    overFnt = "white";
    
    borWid = 1;
    borCol = "#006600";
    borSty = "solid";
    itemPad = 1;
    
    imgSrc = "../images/tri.jpg";
    imgSiz = 10;
    
    separator = 1;
    separatorCol = "#006600";
    
    isFrames = false;      // <-- IMPORTANT for full window
    navFrLoc = "left";     // <-- display. see below
    
    keepHilite = true; 
    NSfontOver = false;
    clickStart = false;
    clickKill = false;
}


var highlighting;
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
which2.filters.alpha.opacity=0
}

function highlightit(cur2){
if (cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=30
else if (window.highlighting)
clearInterval(highlighting)
}

function showHeader() {	
    document.write('<img src="pic/title1.gif" usemap="#map0" BORDER=0><img src="pic/title2.jpg">');
    document.write('<map name="Map0">');
    document.write('<area shape="rect" coords="19,70,99,94" href="english/index.asp" alt="English" title="English">');
    document.write('<area shape="rect" coords="412,70,505,96" href="mailto:minister@moea.gov.tw" target="new" alt="部長信箱" title="部長信箱">');
    document.write('<area shape="rect" coords="510,68,598,95" href="index.asp?P1=sitemap" alt="網站導覽" title="網站導覽">');
    document.write('</map>');
}


// Added by Tony Wei in 2004/12/2 for Web Accessibility
var showMeNow = 0;
function showMe( number ) {

	MM_swapImgRestore();

	// 關閉其他層
	if (showMeNow != 0)
	{
		hideMe(showMeNow);
	}
	
	var temp = '0' + number;
	temp = temp.substring( temp.length-2 );
	if (number == 15)
	{
		temp += "_2";
	}
	if (number != 7 && number != 13 && number != 14)
	{
		makeTop(number);
		popUp(number,event);
		showMeNow = number;
	} else {
		showMeNow = 0;
	}
	eval( "MM_swapImage(\'menu" + number + "\',\'\',\'pic/new" + temp + "_over.gif\',1)" );
}

function hideMe( number ) {
	if (number != 7 && number != 13 && number != 14)
	{
		popDown(number);
	}
	MM_swapImgRestore();
}


function showDate() {
document.write("" + document.lastModified + "");
}


function showFooter(){	

  document.write('<table border=0 cellpadding=0 cellspacing=0 width=590>\n');
  document.write('<tr><td>\n');
  document.write('<CENTER><span STYLE="font-size: 8pt; line-HEIGHT: 14px; color=#012447">\n');
  document.write('最後更新日期：' + document.lastModified + '')
  document.write('<hr color="#FFE04F" width="750" align="center"><p>\n');
  document.write('<CENTER><span style="font-size:9pt; line-height:17px;">\n');
  document.write('<a href="index.asp?P1=news">訂閱電子報</a> | \n');
  document.write('<a href="https://2k3dmz2.moea.gov.tw/maweb/send/Send.jsp">民意信箱</a> | \n');
  document.write('<a href="english/index.asp">English</a> | \n');
  document.write('<a href="index.asp?P1=sitemap">網站導覽</a> | \n');
  document.write('<a href="index.asp?P1=search">全文檢索</a> | \n');
  document.write('<a href="index.asp" target=_top>回首頁</a> |\n');
  document.write('<a href=',document.URL,'>回上頁</a><br> \n');
  document.write('<a href="index.asp?P1=chief">認識部長</a> | \n');
  document.write('<a href="http://www.moea.gov.tw/~meco/cord/HTM/index.htm">本部簡介</a> | \n');
  document.write('<a href="index.asp?P1=unit">所屬單位</a> | \n');
  document.write('<a href="index.asp?P1=policy">政策措施</a> | \n');
  document.write('<a href="index.asp?P1=business">業務導覽</a> | \n');
  document.write('<a href="index.asp?P1=service">為民服務</a><br>\n');
  document.write('<a href="index.asp?P1=statistics">經貿統計</a> | \n');
  document.write('<a href="index.asp?P1=law">經貿法規</a> | \n');
  document.write('<a href="user/news/see1.asp">焦點消息</a> | \n');
  document.write('<a href="index.asp?P1=public">出版品</a> | \n');
  document.write('<a href="index.asp?P1=bulletin">電子公布欄</a> | \n');
  document.write('<a href="index.asp?P1=board">經濟論壇</a> | \n');
  document.write('<a href="index.asp?P1=resource">網路資源</a><p>\n');
  document.write('<span STYLE="font-size: 8pt"><a href="index.asp?P1=map">經濟部地址／地圖：臺北市福州街15號</a>　　　總機：０２-２３２１２２００<br>\n');
  document.write('本網站最佳瀏覽解析度為800 x 600，建議使用IE 4.0以上版本之瀏覽器<br> \n');   
  document.write('本網站係入口網站，部屬各機關(構)資訊均以超連結方式提供，<a href="https://2k3dmz2.moea.gov.tw/maweb/send/Send.jsp">歡迎賜教</a></span><br>\n');  
  document.write('</font>\n');
  document.write('</tr>\n');
  document.write('</table>\n');

}
