if(location.href.toString().search('http://www0.fdc.gov.hk') != -1)
{
	div_path = 'http://www0.fdc.gov.hk';
}
else if (location.href.toString().search('http://www.fdc.gov.hk') != -1)
{
	div_path = 'http://www.fdc.gov.hk';
}
else

{
	div_path = '';

}

function changeVer(lang) {

	chi_path = "/tc/";
	eng_path = "/en/";
	schi_path = "/sc/";


	//org_path=window.location.href;
org_path=window.location.href;

   
	if (org_path.indexOf(chi_path) != -1) {
		org_lang_path = chi_path;

	} 
	
	else if (org_path.indexOf(schi_path) != -1) {
		org_lang_path = schi_path;
	}

	else {
		org_lang_path = eng_path;
	}



	if (lang == 'e') {
		des_lang_path = eng_path;
		
	} 
	
	
	else if (lang == 's') {
		des_lang_path = schi_path;
	

	}

	else if (lang == 'c') {
		des_lang_path = chi_path;
	

	}


	tail = org_path.replace(org_lang_path, des_lang_path);
	
	window.location.href =  tail;

	//alert (base_path + tail);
}


var title = new Array()

title['1'] = "主页";
title['3'] = "最新消息";
title['2'] = "背景、目的及任务";
title['7'] = "重要活动";
title['4'] = "刊物及新闻公报";
title['41'] = "新闻公报";
title['42'] = "重要讲辞";
title['43'] = "刊物";
title['5'] = "相片廊";
title['6'] = "未来动向";
title['7'] = "主要活动";
title['8'] = "联络我们";
title['9'] = "主要活动";
title['10'] = "重要告示";
title['11'] = "私隐政策声明";


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];}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

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; }
}

function submit_search_form() {
	window.document.search.submit();
}




function getHeader(){
	
	var scriptBuffer='';
	
	scriptBuffer='<FORM name="search"  onsubmit="if( document.getElementById(\'search\').query.value.length == 0 ) {alert(\'請輸入關鍵字。\');}  else { document.getElementById(\'search\').submit();} return false;" action="http://search.gov.hk/search.html" method=get>             <input type=hidden name=ui_lang value="zh-hk">             <input type=hidden name=ui_charset value="utf-8">             <input type=hidden name=gp1 value="fdc_home">             <input type=hidden name=gp0 value="fdc_home">             <input type=hidden name=tpl_id value="fdc">             <input type=hidden name=web value="this">';
	
	scriptBuffer+='<table width="760" border="0" height="87" cellpadding="0" cellspacing="0" background="' + div_path + '/NewAction/files/sc/images/bkgdtexture.gif">    <tr align="left" valign="top">       <td height="66" class="sidebar" background="' + div_path + '/NewAction/files/sc/images/bkgdtexture.gif"><img src="' + div_path + '/NewAction/files/sc/images/logo_c.gif" alt="香港電影發展局" ></td>      <td height="66" rowspan="2" valign="bottom" background="' + div_path + '/NewAction/files/sc/images/bkgdtexture.gif" width="106">&nbsp;</td>      <td height="66" background="' + div_path + '/NewAction/files/sc/images/bkgdtexture.gif"><div align="right"><a href="http://www.brandhk.gov.hk/brandhk/" target=_blank><img src="' + div_path + '/NewAction/files/sc/images/brandhk.gif" alt="香港品牌形象 - 亞洲國際都會" name="brandhk"  border="0"></a></div></td>    </tr>    <tr align="left" valign="top">       <td height="19" valign="bottom" background="' + div_path + '/NewAction/files/sc/images/bkgdtexture.gif"><table border="0" cellspacing="0" cellpadding="0">          <tr>             <td><a href="http://www.gov.hk/sc/residents/" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage(\'mainbar1\',\'\',\'' + div_path + '/NewAction/files/sc/images/mainbar1_f2.gif\',1)"  target=_blank><img name="mainbar1" src="' + div_path + '/NewAction/files/sc/images/mainbar1.gif"  border="0" alt="GovHK 香港政府一站通"></a></td><td><a href=\"javascript:changeVer(\'c\')\" onMouseOver=\"MM_swapImage(\'mainbar3\',\'\',\'' + div_path + '/NewAction/files/sc/images/mainbar3_f2.gif\',1)\" onMouseOut=\"MM_swapImgRestore()\"><IMG src=\"' + div_path + '/NewAction/files/sc/images/mainbar3.gif\" name=\"mainbar3\" width=\"49\" height=\"19\" border=\"0\" alt=\"繁體版\"></a></td>            <td><a href="javascript:changeVer(\'e\');" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage(\'mainbar4\',\'\',\'' + div_path + '/NewAction/files/sc/images/mainbar4_f2.gif\',1)" ><img name="mainbar4" src="' + div_path + '/NewAction/files/sc/images/mainbar4.gif" width="56" height="19" border="0" alt="English"></a></td>            <td><img name="mainbar5" src="' + div_path + '/NewAction/files/sc/images/mainbar5.gif" border="0"></td>          </tr>        </table></td>      <td  valign="top"  align="right" background="' + div_path + '/NewAction/files/sc/images/bkgdtexture.gif"><table border="0" cellspacing="0" cellpadding="0">          <tr valign="bottom">             <td height="1">';
	
	scriptBuffer+='<a href="javascript:submit_search_form()" onclick="if( document.getElementById(\'search\').query.value.length == 0 ) {alert(\'請輸入關鍵字。\');}  else { document.getElementById(\'search\').submit();} return false;" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage(\'mainbar6\',\'\',\'' + div_path + '/NewAction/files/sc/images/mainbar6_f2.gif\',1)" ><img name="mainbar6" src="' + div_path + '/NewAction/files/sc/images/mainbar6.gif" width="36" height="19" border="0" alt="搜尋"></a>';
		
	scriptBuffer+='</td>            <td>';
	
	scriptBuffer+='<INPUT class="searchbox" type="text" name="query" size="9">';
	
	scriptBuffer+='</td>            <td>';
	
	scriptBuffer+='<a href="javascript:submit_search_form()" onclick="if( document.getElementById(\'search\').query.value.length == 0 ) {alert(\'請輸入關鍵字。\');}  else { document.getElementById(\'search\').submit();} return false;" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage(\'mainbar8\',\'\',\'' + div_path + '/NewAction/files/sc/images/mainbar8_f2.gif\',1)" ><img name="mainbar8" src="' + div_path + '/NewAction/files/sc/images/mainbar8.gif" width="22" height="19" border="0" alt="搜尋"></a>';
		
	scriptBuffer+='</td>            <td><a href="' + div_path + '/NewAction/sc/sitemap/sitemap.htm" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage(\'mainbar9\',\'\',\'' + div_path + '/NewAction/files/sc/images/mainbar9_f2.gif\',1)" ><img name="mainbar9" src="' + div_path + '/NewAction/files/sc/images/mainbar9.gif" width="67" height="19" border="0" alt="網頁指南"></a></td>            <td><a href="' + div_path + '/NewAction/sc/contact/contact.htm" onMouseOut="MM_swapImgRestore()"  onMouseOver="MM_swapImage(\'mainbar10\',\'\',\'' + div_path + '/NewAction/files/sc/images/mainbar10_f2.gif\',1)" ><img name="mainbar10" src="' + div_path + '/NewAction/files/sc/images/mainbar10.gif" width="29" height="19" border="0" alt="聯絡我們"></a></td>          </tr>        </table></td>    </tr>    <tr align="left" valign="top" bgcolor="#BB3333">       <td height="2" colspan="3" bgcolor="#BB3333"><img src="' + div_path + '/NewAction/files/sc/images/reddot.gif" width="760" height="2"></td></tr>';
	
	
	
	
	scriptBuffer+='<tr><td height="2" colspan="3" ><img src="' + div_path + '/NewAction/files/sc/images/top_banner.gif" alt="圖片"  border="0"></td>    </tr>  </table>';

	
	return scriptBuffer;
	
}


function getLeftMenu()
{

var scriptBuffer='';
	var isOver='';


	
(mainTopicNo==1)?isOver='_over':isOver='';
	scriptBuffer+='<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td><a href="' + div_path + '/NewAction/sc/home/home.htm" onMouseOver="MM_swapImage(\'menu1\',\'\',\'' + div_path + '/NewAction/files/sc/images/NewAction_menu1_over.gif\',1)" onMouseOut="MM_swapImgRestore()"><img src="' + div_path + '/NewAction/files/sc/images/NewAction_menu1' + isOver +'.gif" alt="'+title[1]+'" name="menu1" border="0" id="menu1"></a></td></tr>';	


(mainTopicNo==3)?isOver='_over':isOver='';
	scriptBuffer+='<tr><td><a href="' + div_path + '/NewAction/sc/whatsnew/whatsnew.htm" onMouseOver="MM_swapImage(\'menu3\',\'\',\'' + div_path + '/NewAction/files/sc/images/NewAction_menu3_over.gif\',3)" onMouseOut="MM_swapImgRestore()"><img src="' + div_path + '/NewAction/files/sc/images/NewAction_menu3' + isOver +'.gif" alt="'+title[3]+'" name="menu3" border="0" id="menu3"></a></td></tr>';	


(mainTopicNo==2)?isOver='_over':isOver='';
	scriptBuffer+='<tr><td><a href="' + div_path + '/NewAction/sc/background/background.htm" onMouseOver="MM_swapImage(\'menu2\',\'\',\'' + div_path + '/NewAction/files/sc/images/NewAction_menu2_over.gif\',2)" onMouseOut="MM_swapImgRestore()"><img src="' + div_path + '/NewAction/files/sc/images/NewAction_menu2' + isOver +'.gif" alt="'+title[2]+'" name="menu2" border="0" id="menu2"></a></td></tr>';	




(mainTopicNo==7)?isOver='_over':isOver='';
	scriptBuffer+='<tr><td><a href="' + div_path + '/NewAction/sc/activity/activity.htm" onMouseOver="MM_swapImage(\'menu7\',\'\',\'' + div_path + '/NewAction/files/sc/images/NewAction_menu7_over.gif\',7)" onMouseOut="MM_swapImgRestore()"><img src="' + div_path + '/NewAction/files/sc/images/NewAction_menu7' + isOver +'.gif" alt="'+title[7]+'" name="menu7" border="0" id="menu7"></a></td></tr>';	


(mainTopicNo==4)?isOver='_over':isOver='';
	scriptBuffer+='<tr><td><a href="' + div_path + '/NewAction/sc/press/press.htm" onMouseOver="MM_swapImage(\'menu4\',\'\',\'' + div_path + '/NewAction/files/sc/images/NewAction_menu4_over.gif\',4)" onMouseOut="MM_swapImgRestore();MM_showHideLayers(\'Layer4\',\'\',\'hide\')""><img src="' + div_path + '/NewAction/files/sc/images/NewAction_menu4' + isOver +'.gif" alt="'+title[4]+'" name="menu4" border="0" id="menu4" onMouseOver="MM_showHideLayers(\'Layer4\',\'\',\'show\')"></a></td></tr>';	

    (mainTopicNo==5)?isOver='_over':isOver='';
	scriptBuffer+='<tr><td><a href="' + div_path + '/NewAction/sc/photo/photo.htm" onMouseOver="MM_swapImage(\'menu5\',\'\',\'' + div_path + '/NewAction/files/sc/images/NewAction_menu5_over.gif\',5)" onMouseOut="MM_swapImgRestore();MM_showHideLayers(\'Layer5\',\'\',\'hide\')""><img src="' + div_path + '/NewAction/files/sc/images/NewAction_menu5' + isOver +'.gif" alt="'+title[5]+'" name="menu5" border="0" id="menu5" onMouseOver="MM_showHideLayers(\'Layer5\',\'\',\'show\')"></a></td>          </tr>';	
    
 /*(mainTopicNo==6)?isOver='_over':isOver='';
	scriptBuffer+='<tr><td><a href="' + div_path + '/NewAction/sc/comingup/comingup.htm" onMouseOver="MM_swapImage(\'menu6\',\'\',\'' + div_path + '/NewAction/files/sc/images/NewAction_menu6_over.gif\',6)" onMouseOut="MM_swapImgRestore()"><img src="' + div_path + '/NewAction/files/sc/images/NewAction_menu6' + isOver +'.gif" alt="'+title[6]+'" name="menu6" border="0" id="menu6"></a></td></tr>';*/			 
  
			
			scriptBuffer+='<tr><td height="2"></td></tr><tr><td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="135" height="60">              <param name=movie value="/common/flash/FDC_icon_sc.swf">              <param name=quality value=high>              <embed src="/common/flash/FDC_icon_sc.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="135" height="60">              </embed>             </object></td></tr>';
  
  
  
  
  scriptBuffer+='<tr><td height="2"></td></tr><tr><td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="135" height="60">              <param name=movie value="../../../common/flash/brochure.swf">              <param name=quality value=high>              <embed src="../../../common/flash/brochure.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="135" height="60">              </embed>             </object></td></tr>';
  
  
scriptBuffer+='</table>'; 

/*Icon*/

scriptBuffer+='<br><table style="width:100%" border="0" cellspacing="0" cellpadding="0"><tr><td><div align="center"><a href="http://www.budget.gov.hk/2012/sim/speech.html" target="_black"><img src="' + div_path + '/../../../../../images/84x50_s'+'.gif" alt="'+"2012-13 Budget"+'" name="icon1" border="0" id="icon1" title="2012-13Budget"></a></div></td></tr></table>';	

/*End*/   



scriptBuffer+='<div id="Layer4" style="position:absolute; width:200px; height:115px; visibility: hidden; left: 161px; top: 353px;"><table width="100%" border="0"  cellspacing="0" cellpadding="0">    <tr>      <td><a href="' + div_path + '/NewAction/sc/press/press_release.htm" onMouseOut="MM_swapImgRestore();MM_showHideLayers(\'Layer4\',\'\',\'hide\')" onMouseOver="MM_swapImage(\'b1\',\'\',\'' + div_path + '/NewAction/files/sc/images/NewAction_menu4_1_over.gif\',1);MM_showHideLayers(\'Layer4\',\'\',\'show\')"><img src="' + div_path + '/NewAction/files/sc/images/NewAction_menu4_1.gif"  name="b1" border="0" alt="'+title[41]+'"></a></td>    </tr><tr>      <td><a href="' + div_path + '/NewAction/sc/press/speech.htm" onMouseOut="MM_swapImgRestore();MM_showHideLayers(\'Layer4\',\'\',\'hide\')" onMouseOver="MM_swapImage(\'b2\',\'\',\'' + div_path + '/NewAction/files/sc/images/NewAction_menu4_2_over.gif\',1);MM_showHideLayers(\'Layer4\',\'\',\'show\')"><img src="' + div_path + '/NewAction/files/sc/images/NewAction_menu4_2.gif"  name="b2" border="0" alt="'+title[42]+'"></a></td>    </tr><tr>      <td><a href="' + div_path + '/NewAction/sc/press/publication.htm" onMouseOut="MM_swapImgRestore();MM_showHideLayers(\'Layer4\',\'\',\'hide\')" onMouseOver="MM_swapImage(\'b3\',\'\',\'' + div_path + '/NewAction/files/sc/images/NewAction_menu4_3_over.gif\',1);MM_showHideLayers(\'Layer4\',\'\',\'show\')"><img src="' + div_path + '/NewAction/files/sc/images/NewAction_menu4_3.gif"  name="b3" border="0" alt="'+title[43]+'"></a></td>    </tr></table></div>'; 


return scriptBuffer;
 


}




function getTopic()
{
var scriptBuffer='';

scriptBuffer+='<img src="' + div_path + '/NewAction/files/sc/images/NewAction_topic_' + mainTopicNo + '.gif"  border="0" alt="'+title[mainTopicNo]+'">';

scriptBuffer += '<div class="printDiv"><img src="../../../language_images/aaa_01.gif" alt="" /><br /><img src="../../../language_images/aaa_02.gif" alt="" /><a href="javascript:resizeText(-1);" title="Small Fonts"><img src="../../../language_images/aaa_03.gif" alt="小字" border="0" /></a><img src="../../../language_images/aaa_06.gif" width="6" height="16" alt="" /><a href="javascript:resizeText(1);" title="大字"><img src="../../../language_images/aaa_05.gif" alt="大字" border="0" /></a><img src="../../../language_images/aaa_06.gif" alt="" /><a href="javascript:print();" title="Print"><img src="../../../language_images/aaa_07.gif" alt="列印" border="0" /></a><img src="../../../language_images/aaa_06.gif" width="8" height="16" alt="" /><img src="../../../language_images/aaa_08.gif" alt="" /><br /><img src="../../../language_images/aaa_09.gif" alt="" /><br /></div>';

return scriptBuffer;


}


var style_cookie_name = "fontsize_val" ;
var current_font = '';
var style_cookie_duration = 30 ;

function change_text(multiplier) {

var css_title = get_cookie( style_cookie_name );

 if (css_title.length) {
    document.body.style.fontSize = css_title;
	}
  else{
     document.body.style.fontSize = "1.0em";
	 set_cookie( style_cookie_name, '1.0em', style_cookie_duration, '', '');
 	}
}

function set_cookie ( cookie_name, cookie_value, lifespan_in_days, valid_domain )
{
    // http://www.thesitewizard.com/javascripts/cookies.shtml
    var domain_string = valid_domain ?
                       ("; domain=" + valid_domain) : '' ;
    document.cookie = cookie_name +
                       "=" + encodeURIComponent( cookie_value ) +
                       "; max-age=" + 60 * 60 *
                       24 * lifespan_in_days +
                       "; path=/" + domain_string ;
		  
}

function get_cookie ( cookie_name )
{
    // http://www.thesitewizard.com/javascripts/cookies.shtml
    var cookie_string = document.cookie ;
    if (cookie_string.length != 0) {
       c_start=document.cookie.indexOf(cookie_name + "=");
  if (c_start!=-1)
    {
    c_start=c_start + cookie_name.length+1;
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return decodeURIComponent(document.cookie.substring(c_start,c_end));
    }
	
        //return decodeURIComponent ( cookie_value[2] ) ;
    }
    return '' ;
}

function resizeText(multiplier) {
  if(parseFloat(document.body.style.fontSize) + (multiplier * 0.2) > 0.4 && parseFloat(document.body.style.fontSize) + (multiplier * 0.2) < 1.6)
  {
  new_size = parseFloat(document.body.style.fontSize) + (multiplier * 0.2) + "em";
  document.body.style.fontSize = new_size
  set_cookie( style_cookie_name, new_size, style_cookie_duration, '', '');
  }
}



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.0
  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 && document.getElementById) x=document.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_nbGroup(event, grpName) { //v3.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    if ((nbArr = document[grpName]) != null)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = args[i+1];
      nbArr[nbArr.length] = img;
  } }
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


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; }
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function getFooter() {

	if (revisionDate==''||revisionDate=='MM/DD/YYYY') revisionDate='01/01/2004';
	var monthArray=new Array();
	monthArray[0]='1';
	monthArray[1]='2';
	monthArray[2]='3';
	monthArray[3]='4';
	monthArray[4]='5';
	monthArray[5]='6';
	monthArray[6]='7';
	monthArray[7]='8';
	monthArray[8]='9';
	monthArray[9]='10';
	monthArray[10]='11';
	monthArray[11]='12';
	var reDate=new Date(Date.parse(revisionDate))
	var showDate=reDate.getFullYear()+'年'+monthArray[reDate.getMonth()]+'月'+reDate.getDate()+'日';
	
	var scriptBuffer='';
	scriptBuffer+='<table border="0" align="right" cellpadding="0" cellspacing="0" width="100%"><tr><td>&nbsp;&nbsp;</td><td width="85%"><font size="2"><a href="javascript:history.go(-1)">上一頁</a></font></td><td><img height=20 alt=頁頂 src="../../files/images/top.gif" width=30></td><td><font size="2"><a href="#top">頁頂</a></font></td><td width="8">&nbsp;</td></tr></table><table border="0" cellspacing="8" cellpadding="0" width=760 height=80 background="' + div_path + '/NewAction/files/sc/images/page_bottom.gif">  <tr valign=top>    <td ><font size="2" face="Arial">2008 <img src="' + div_path + '/NewAction/files/sc/images/copy.gif" width="12" height="11" align="absmiddle"> | <a href="' + div_path + '/sc/notes/notes.htm">重要告示</a> | <a href="' + div_path + '/sc/privacy/privacy.htm">私隐政策</a></font></font></td><td><div align="right"><font size="2" face="Arial">修订日期 :05/01/2012</FONT></div></td> </tr></table>';

	return scriptBuffer;
}





