
var expDays = 1; // number of days the cookie should last

var path = "/";

var domain ;
var locapath = document.location.href

if (locapath.toString().search('/preview/')!= -1){
	var page  = "/preview";
}else{
	var page  = "";
}

/**********
if (locapath.toString().search('/textonly/')!= -1){
	 page += "/textonly/sc_chi/disclaimer/statment.html";
}else{
	 page += "/sc_chi/disclaimer/statment.html";
}
**********/

org_path_start = locapath.indexOf("://") + 3;
org_path_end = locapath.length;
domain = locapath.substring(org_path_start, org_path_end);
if (domain.toString().search('/')!= -1){
org_path_start = 0;
org_path_end = domain.indexOf("/");
domain = domain.substring(org_path_start, org_path_end);
}


function GetCookie (name) {  
var arg = name + "=";  
var alen = arg.length;  
var clen = document.cookie.length;  
var i = 0;  
while (i < clen) {    
var j = i + alen;    
if (document.cookie.substring(i, j) == arg)      
return getCookieVal (j);    
i = document.cookie.indexOf(" ", i) + 1;    
if (i == 0) break;   
}  
return null;
}
function SetCookie (name, value) {  
var argv = SetCookie.arguments;  
var argc = SetCookie.arguments.length;  
var expires = (argc > 2) ? argv[2] : null;  
//var path = (argc > 3) ? argv[3] : null;  
//var domain = (argc > 4) ? argv[4] : null;  

var secure = (argc > 5) ? argv[5] : false;  
document.cookie = name + "=" + escape (value) + 
//((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
//((expires == null) ? "" : ("; expires=")) + 
((path == null) ? "" : ("; path=" + path)) +  
((domain == null) ? "" : ("; domain=" + domain)) +    
((secure == true) ? "; secure" : "");
}
function DeleteCookie (name) {  
var exp = new Date();  
exp.setTime (exp.getTime() - 1);  
var cval = GetCookie (name);  
document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
var exp = new Date(); 
exp.setTime(exp.getTime() + (expDays*24*60*60*1000));
function amt(){
var count = GetCookie('sccount')
if(count == null) {
SetCookie('count','1')
return 1
}
else {
var newcount = parseInt(count) + 1;
DeleteCookie('sccount')
SetCookie('sccount',newcount,exp)
return count
   }
}
function getCookieVal(offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}

function checkCount() {
var sccount = GetCookie('sccount');
if (sccount == null) {

SetCookie('orgiurl',document.location.href, exp);

window.location.href=page;
}
else {
//count++;
//SetCookie('count', count, exp);
   }
}

//if ((locapath.toString().search('/sc_chi/')!= -1)||(locapath.toString().search('scindex.html')!= -1))   {
//	checkCount();
//}



//Finish Check SC statment




var dept = "/";
var domain = "";
var scserver = "http"+"://sc.info.gov.hk/gb/";
var locapath = document.location.href
//var locapath = "http://www.sar-expertcom.gov.hk/textonly/eindex.html";




var atlang,domname,sitepath,atgb,atindex,org_part;
	sc_path = "sc_chi/";
	sctxt_path = "textonly/sc_chi/";
	tc_path = "tc_chi/";
	tctxt_path = "textonly/tc_chi/";
	en_path = "english/";
	entxt_path = "textonly/english/";
	atgb = false;
	atindex = false;

if (locapath.toString().search('/gb/')!= -1){
	atgb = true;
	org_path_start = locapath.indexOf("/gb/") +4;
	org_path_end = locapath.length;
	sitepath = locapath.substring(org_path_start, org_path_end);
}else{
	atgb = false;
	sitepath = locapath.substring(7,locapath.length);
}

if (locapath.toString().search('/textonly/english/')!= -1){
	atlang = "entxt";
	org_part = entxt_path;
}else
if (locapath.toString().search('/textonly/tc_chi/')!= -1){
	atlang = "tctxt";
	org_part = tctxt_path;
}else
if (locapath.toString().search('/textonly/sc_chi/')!= -1){
	atlang = "sctxt";
	org_part = sctxt_path;
}else
if (locapath.toString().search('/english/')!= -1){
	atlang = "en";
	org_part = en_path;
}else
if (locapath.toString().search('/tc_chi/')!= -1){
	atlang = "tc";
	org_part = tc_path;
}else
if (locapath.toString().search('/sc_chi/')!= -1){
	atlang = "sc";
	org_part = sc_path;
}else
if (locapath.toString().search('/textonly/eindex.html')!= -1){
	atlang = "txteindex";
	org_part = "textonly/eindex.html";
	atindex = true;
}else
if (locapath.toString().search('eindex.html')!= -1){
	atlang = "eindex";
	org_part = "eindex.html";
	atindex = true;
}else
if (locapath.toString().search('/textonly/scindex.html')!= -1){
	atlang = "txtsindex";
	org_part = "textonly/scindex.html";
	atindex = true;
}else
if (locapath.toString().search('scindex.html')!= -1){
	atlang = "sindex";
	org_part = "scindex.html";
	atindex = true;
}else
if (locapath.toString().search('/textonly/cindex.html')!= -1){
	atlang = "txtcindex";
	org_part = "textonly/cindex.html";
	atindex = true;
}else
if (locapath.toString().search('cindex.html')!= -1){
	atlang = "cindex";
	org_part = "cindex.html";
	atindex = true;
}


/*
if (locapath.toString().search('/textonly/cindex.html')!= -1){
	atlang = "txtcindex";
	org_part = "textonly/cindex.html";
	atindex = true;
}else
if (locapath.toString().search('cindex.html')!= -1){
	atlang = "cindex";
	org_part = "cindex.html";
	atindex = true;
}else
if (locapath.toString().search('/textonly/scindex.html')!= -1){
	atlang = "txtsindex";
	org_part = "textonly/scindex.html";
	atindex = true;
}else
if (locapath.toString().search('scindex.html')!= -1){
	atlang = "sindex";
	org_part = "scindex.html";
	atindex = true;
}
*/

//domain = sitepath.substring(0, sitepath.indexOf("/"));
domain = "202.57.255.178";
subdir = "/preview";

function chglang(lang){

	switch(lang){
		case 'entxt': 
			des_part = entxt_path;
			des_ind_part = "textonly/eindex.html";
			base_path = "http://";
			break;
		case 'tctxt':
			des_part = tctxt_path;
			des_ind_part = "textonly/cindex.html";
			base_path = "http://";
			break;
		case 'sctxt':
			des_part = sctxt_path;
			des_ind_part = "textonly/scindex.html";
			//base_path = scserver;
			base_path = "http://";
			break;
		case 'en':
			des_part = en_path;
			des_ind_part = "eindex.html";
			base_path = "http://";
			break;
		case 'tc':
			des_part = tc_path;
			des_ind_part = "cindex.html";
			base_path = "http://";
			break;
		case 'sc':
			des_part = sc_path;
			des_ind_part = "scindex.html";
			//base_path = scserver;
			base_path = "http://";
			break;
	}

	if (atindex == true){
		tail = sitepath.replace(org_part, des_ind_part);
	}else{
		tail = sitepath.replace(org_part, des_part);
	}

//alert(base_path+tail)
	window.location =  base_path+tail;

}

/**********
function tellafriend( lang )
{
  if (lang == 'eng')
  {
     window.location = subdir + '/english/tell/tell.asp?base=http%3A//'+ domain + subdir + '/english/tell/&url=' + escape(window.location);
  }else if (lang == 'chi')
  {
     window.location = subdir + '/tc_chi/tell/tell.asp?base=http%3A//'+ domain + subdir + '/tc_chi/tell/&url=' + escape(window.location);
  }else if (lang == 'schi')
  {
     window.location = subdir + '/sc_chi/tell/tell.asp?base=http%3A//'+ domain + subdir + '/sc_chi/tell/&url=' + escape(window.location);
  }else if (lang == 'eng_txt')  
  {
     window.location = subdir + '/textonly/english/tell/tell.asp?base=http%3A//'+ domain + subdir + '/textonly/english/tell/&url=' + escape(window.location);
  }else if (lang == 'chi_txt')
  {
     window.location = subdir + '/textonly/tc_chi/tell/tell.asp?base=http%3A//'+ domain + subdir + '/textonly/tc_chi/tell/&url=' + escape(window.location);
  }else if (lang == 'schi_txt')
  {
     window.location = subdir + '/textonly/sc_chi/tell/tell.asp?base=http%3A//'+ domain + subdir + '/textonly/sc_chi/tell/&url=' + escape(window.location);
  }
  //window.location = '../tell/tell.html?url=' + escape(window.location);
}
**********/

function splitString (stringToSplit,separator) {
 var arrayOfStrings = stringToSplit.split(separator);
 return arrayOfStrings[1];
}

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.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 printMenu(){
	separator = "<tr><td background=\"/tc_chi/images/general/side_div.gif\" width=\"100%\"><img src=\"/tc_chi/images/general/spacer.gif\" width=\"11\" height=\"1\" alt=\"圖\"></td></tr>";
	document.write("<table width=\"153\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#C7D2FD\">");
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/cindex.html\" class=\"sidelink\">主頁</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/about/about_wel/about_wel.html\" class=\"sidelink\">關於效率促進組</a></td></tr>");
	document.write(separator);
	genmenu('0');
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/whatsnew/whatsnew.html\" class=\"sidelink\">最新消息</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/psr/issues/issues.html\" class=\"sidelink\">公營部門改革通訊</a></td></tr>");
	document.write(separator);
	genmenu('2');
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/reform/reform_over/reform_over.html\" class=\"sidelink\">公營部門改革</a></td></tr>");
	document.write(separator);
	genmenu('3');
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/psi/psi_psi/psi_psi_over/psi_psi_over.html\" class=\"sidelink\">私營機構參與公共服務</a></td></tr>");
	document.write(separator);
	genmenu('4');
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/ccsp/ccsp_over/ccsp_over.html\" class=\"sidelink\">以民為本服務計劃</a></td></tr>");
	document.write(separator);
	genmenu('5');
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/mr/mr_resource/mr_resource.html\" class=\"sidelink\">服務模式重整 / 變革</a></td></tr>");
	document.write(separator);
	genmenu('6');
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/or/or_over/or_over.html\" class=\"sidelink\">業務檢討 / 架構重組</a></td></tr>");
	document.write(separator);
	genmenu('7');
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"http://www.1823.gov.hk\" class=\"sidelink\" target=\"_blank\">1823電話中心</a></td></tr>");
	document.write(separator);
//	genmenu('8');
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/youth/youth.html\" class=\"sidelink\">Youth.gov.hk</a></td></tr>");
	document.write(separator);
	genmenu('9');
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/osc/osc.html\" class=\"sidelink\">一站式<br>貨倉建築牌照中心</a></td></tr>");
	document.write(separator);
//	genmenu('10');
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/rmc/rmc_over/rmc_over.html\" class=\"sidelink\">管理顧問公司登記</a></td></tr>");
	document.write(separator);
	genmenu('11');
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/case/case.html\" class=\"sidelink\">個案研究</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/tms/tender.html\" class=\"sidelink\">投標/市場意向調查</a></td></tr>");
	document.write(separator);
	genmenu('13');
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/grade/grade_mso/grade_mso_over/grade_mso_over.html\" class=\"sidelink\">職系管理</a></td></tr>");
	document.write(separator);
	genmenu('14');
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/cmps/cmps.html\" class=\"sidelink\">昔日研討會講義</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/photo/photo.html\" class=\"sidelink\">照片廊</a></td></tr>");
	document.write(separator);
	genmenu('16');
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/publication/pub_bp/pub_bp.html\" class=\"sidelink\">刊物</a></td></tr>");
	document.write(separator);
	genmenu('17');
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/links/links_gov/links_gov.html\" class=\"sidelink\">有用連結</a></td></tr>");
	document.write(separator);
	genmenu('18');
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/contactus/contactus.html\" class=\"sidelink\">聯絡我們</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" align=\"center\" bgcolor=\"#EAEEF9\"><br><a href=\"javascript:void(0);\" onclick=\"window.open('/tc_chi/5day_details.html','','width=260,height=190')\"><img src=\"/tc_chi/images/front/5day_icon.jpg\" alt=\"image\" border=\"0\"></a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" align=\"center\" bgcolor=\"#EAEEF9\"><br><img src=\"/tc_chi/images/front/caring_org.jpg\" alt=\"image\" border=\"0\"></td></tr>");
	document.write("</table>");
}

function printIndexMenu(){
	separator = "<tr><td background=\"/tc_chi/images/general/side_div.gif\" width=\"100%\"><img src=\"/tc_chi/images/general/spacer.gif\" width=\"11\" height=\"1\" alt=\"圖\"></td></tr>";
	document.write("<table width=\"153\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" bgcolor=\"#C7D2FD\">");
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/cindex.html\" class=\"sidelink\">主頁</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/about/about_wel/about_wel.html\" class=\"sidelink\">關於效率促進組</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/whatsnew/whatsnew.html\" class=\"sidelink\">最新消息</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/psr/issues/issues.html\" class=\"sidelink\">公營部門改革通訊</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/reform/reform_over/reform_over.html\" class=\"sidelink\">公營部門改革</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/psi/psi_psi/psi_psi_over/psi_psi_over.html\" class=\"sidelink\">私營機構參與公共服務</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/ccsp/ccsp_over/ccsp_over.html\" class=\"sidelink\">以民為本服務計劃</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/mr/mr_resource/mr_resource.html\" class=\"sidelink\">服務模式重整 / 變革</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/or/or_over/or_over.html\" class=\"sidelink\">業務檢討 / 架構重組</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"http://www.1823.gov.hk\" class=\"sidelink\" target=\"_blank\">1823電話中心</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/youth/youth.html\" class=\"sidelink\">Youth.gov.hk</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/osc/osc.html\" class=\"sidelink\">一站式<br>貨倉建築牌照中心</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/rmc/rmc_over/rmc_over.html\" class=\"sidelink\">管理顧問公司登記</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/case/case.html\" class=\"sidelink\">個案研究</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/tms/tender.html\" class=\"sidelink\">投標/市場意向調查</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/grade/grade_mso/grade_mso_over/grade_mso_over.html\" class=\"sidelink\">職系管理</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/cmps/cmps.html\" class=\"sidelink\">昔日研討會講義</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/photo/photo.html\" class=\"sidelink\">照片廊</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/publication/pub_bp/pub_bp.html\" class=\"sidelink\">刊物</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/links/links_gov/links_gov.html\" class=\"sidelink\">有用連結</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" onMouseOver=\"bgColor='#FAD559'\" onMouseOut=\"bgColor='#C7D2FD'\"><a href=\"/tc_chi/contactus/contactus.html\" class=\"sidelink\">聯絡我們</a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" align=\"center\" bgcolor=\"#EAEEF9\"><br><a href=\"javascript:void(0);\" onclick=\"window.open('/tc_chi/5day_details.html','','width=260,height=190')\"><img src=\"/tc_chi/images/front/5day_icon.jpg\" alt=\"image\" border=\"0\"></a></td></tr>");
	document.write(separator);
	document.write("<tr><td width=\"100%\" class=\"side\" align=\"center\" bgcolor=\"#EAEEF9\"><br><img src=\"/tc_chi/images/front/caring_org.jpg\" alt=\"image\" border=\"0\"></td></tr>");
	document.write("</table>");
}

function printTxtMenu(){
	document.write("<p>");
	document.write("[<a href=\"/textonly/cindex.html\">主頁</a>] ");
	document.write("[<a href=\"/textonly/tc_chi/about/about_wel/about_wel.html\">關於效率促進組</a>] ");
	document.write("[<a href=\"/textonly/tc_chi/whatsnew/whatsnew.html\">最新消息</a>] ");
	document.write("[<a href=\"/textonly/tc_chi/psr/issues/issues.html\">公營部門改革通訊</a>] ");
	document.write("[<a href=\"/textonly/tc_chi/history/history_over/history_over.html\">公營部門改革歷程</a>] ");
	document.write("[<a href=\"/textonly/tc_chi/psi/psi_psi/psi_psi_over/psi_psi_over.html\">私營機構參與公共服務</a>] ");
	document.write("[<a href=\"/textonly/tc_chi/mr/mr_resource/mr_resource.html\"><nobr>服務模式重整 / 變革</nobr></a>] ");
	document.write("[<a href=\"/textonly/tc_chi/or/or_over/or_over.html\"><nobr>架構重組</nobr></a>] ");
	document.write("[<a href=\"/textonly/tc_chi/icc/icc_over/icc_over.html\">1823電話中心</a>] ");
	document.write("[<a href=\"/textonly/tc_chi/rmc/rmc_over/rmc_over.html\">管理顧問公司登記</a>] ");
	document.write("[<a href=\"/textonly/tc_chi/case/case.html\">個案研究</a>] ");
	document.write("[<a href=\"/textonly/tc_chi/tms/tender.html\">投標/市場意向調查</a>] ");
	document.write("[<a href=\"/textonly/tc_chi/photo/photo.html\">照片廊</a>] ");
	document.write("[<a href=\"/textonly/tc_chi/publication/publication.html\">刊物</a>] ");
	document.write("[<a href=\"/textonly/tc_chi/links/links_gov/links_gov.html\">有用連結</a>] ");
	document.write("[<a href=\"/textonly/tc_chi/contactus/contactus.html\">聯絡我們</a>] ");
	document.write("[<a href=\"javascript:void(0);\" onclick=\"window.open('/tc_chi/5day_details.html','','width=260,height=190')\">5天工作周</a>] ");
	document.write("</p>");
}


//Header frame of the website
//GovHK
//Date : 12/2006

function printHeader(){
    

		var rootLoc,wLanguage, form_action,link_brankHK,link_govHK,alt_govHK,alt_EU,alt_brankHK,alt_Search,alt_SiteMap,alt_ContactUs,alt_TChi,alt_sChi,alt_image;
		rootLoc = "/";
		wLanguage = "tc_chi";
		form_action = "http://search.gov.hk/search.html";
		link_brankHK = "http://www.brandhk.gov.hk/brandhk/index.htm";
		link_govHK = "http://www.gov.hk/tc/residents/";
		alt_govHK = "GovHK香港政府一站通";
		alt_EU = "香港特別行政區政府\n效率促進組";
		alt_brankHK = "香港品牌形象 - 亞洲國際都會";
		alt_TextOnly = "繁體純文字";
		alt_Search = "搜尋";	
		alt_SiteMap = "網頁指南";
		alt_ContactUs = "聯絡我們";		
		alt_English ="English";
		alt_sChi = "簡體版";
		alt_image = "圖";
		
		tmpDir = "/2007";

        document.write("<table width=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" background=\""+ rootLoc + wLanguage +"/images/clf/bkgdtexture.gif\">");

        document.write("<form name=\"search2\" action=\""+ form_action +"\" method=\"get\" target=\"_blank\" >");
        document.write('<input type="hidden" name="tpl_id" value="eu">');
        document.write('<input type="hidden" name="ui_lang" value="zh-hk">');
        document.write('<input type="hidden" name="ui_charset" value="utf8">');
        document.write('<input type="hidden" name="gp0" value="eu_home">');
        document.write('<input type="hidden" name="gp1" value="eu_home">');
        document.write('<input type="hidden" name="web" value="this">');
        document.write("<!--<input name=\"mode\" type=\"hidden\" value=\"97\">-->");
        document.write("<!--<input name=\"gr_1\" type=\"hidden\" value=\"eu\">-->");        
        //document.write("<input type=\"hidden\" value=\"zh-hk\" name=\"ui_lang\">");
        //document.write("<input type=\"hidden\" value=\"utf-8\" name=\"ui_charset\">");
        

		document.write("<tr valign=\"top\">");
        document.write("<td width=\"760\" > ");       
        document.write("<table width=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
        document.write("<tr valign=\"top\" >");
        document.write("<td width=\"50%\" align=\"left\"><img src=\""+ rootLoc + wLanguage +"/images/clf/logo.gif\" alt=\""+ alt_EU +"\" width=\"420\" height=\"65\"></td>");   
        document.write("<td width=\"50%\" align=\"right\"><a href=\""+ link_brankHK +"\" target=\"_blank\"><img name=\"BrandHK\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/BrandHK.gif\" border=\"0\" alt=\""+ alt_brankHK +"\"></a></td>")
        document.write("</tr>");
        document.write("</table>");        
        document.write("</td>");
        document.write("</tr>");        
        document.write("<tr valign=\"top\">");
        document.write("<td width=\"760\"> ");       
        document.write("<table width=\"760\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");        
        document.write("<tr valign=\"bottom\">");
        document.write("<td width=\"538\"><a href=\""+ link_govHK +"\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar1','','"+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar1_f2.gif',1)\" target=\"_blank\" ><img name=\"mainbar1\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar1.gif\" border=\"0\" alt=\""+ alt_govHK +"\"></a>");
        //document.write("<a href=\"javascript:chglang('tctxt')\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar2','','"+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar2_f2.gif',1)\" ><img name=\"mainbar2\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar2.gif\" border=\"0\" alt=\""+ alt_TextOnly +"\"></a>");
        document.write("<a href=\"javascript:chglang('sc')\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar3','','"+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar3_f2.gif',1)\" ><img name=\"mainbar3\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar3.gif\" border=\"0\" alt=\""+ alt_sChi +"\"></a>");
        document.write("<a href=\"javascript:chglang('en')\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar4','','"+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar4_f2.gif',1)\" ><img name=\"mainbar4\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar4.gif\" border=\"0\" alt=\""+ alt_English +"\"></a>");
        document.write("<img name=\"mainbar5\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar5.gif\" border=\"0\" alt=\""+ alt_image +"\">");
        document.write("</td>");
        document.write("<td align=\"right\" ><a href=\"javascript:document.search2.submit();\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar6','','"+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar6_f2.gif',1)\" ><img name=\"mainbar6\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar6.gif\" border=\"0\" alt=\""+ alt_Search +"\"></a>");
        document.write("</td>");
        document.write("<td valign=\"bottom\" align=\"right\">");
        document.write("<input class=\"search\" type=\"text\" name=\"query\" size=\"9\" style=\"width:92px\">");
        document.write("</td>");
        document.write("<td valign=\"bottom\" align=\"right\">");
        document.write("<a href=\"javascript:document.search2.submit();\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('mainbar8','','"+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar8_f2.gif',1)\"><img name=\"mainbar8\" border=\"0\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar8.gif\" alt=\""+ alt_Search +"\"></a>");
        document.write("<a href=\""+ rootLoc + wLanguage +"/sitemap/sitemap.html\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar9','','"+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar9_f2.gif',1)\" ><img name=\"mainbar9\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar9.gif\" border=\"0\" alt=\""+ alt_SiteMap +"\"></a>");
        document.write("<a href=\""+ rootLoc + wLanguage +"/contactus/contactus.html\" onMouseOut=\"MM_swapImgRestore()\"  onMouseOver=\"MM_swapImage('mainbar10','','"+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar10_f2.gif',1)\" ><img name=\"mainbar10\" src=\""+ rootLoc + wLanguage +"/images/clf"+ tmpDir +"/mainbar10.gif\" border=\"0\" alt=\""+ alt_ContactUs +"\"></a>");
        document.write("</td>");
        document.write("</tr>");
        document.write("</table>");        
        document.write("</td>");        
        document.write("</tr>");
        document.write("</form>");
        document.write("</table>");
}



//Header frame of the website(Text Verson)
//GovHK
//Date : 12/2006
function txt_printHeader(){
    var link_brankHK,link_govHK,alt_govHK,alt_brankHK;
    var verson_2007 = true;
//    var verson_2007 = false;
    
    if (!  verson_2007){ 		
		link_govHK = "http://www.info.gov.hk/index_c.htm";
		alt_govHK = "政府資訊中心";		
		link_brankHK = "http://www.brandhk.gov.hk/brandhk/index.htm";
		alt_brankHK = "香港品牌形象";
    }else{
		link_govHK = "http://www.gov.hk/tc/residents/";
		alt_govHK = "GovHK香港政府一站通";		
		link_brankHK = "http://www.brandhk.gov.hk/brandhk/index.htm";
		alt_brankHK = "香港品牌形象 - 亞洲國際都會";		
    }
    	
    document.write("<p>");
    document.write("[<a href=\""+ link_govHK +"\" target=\"_blank\">"+ alt_govHK +"</a>]");
    document.write("&nbsp;");    
    document.write("[<a href=\""+ link_brankHK +"\" target=\"_blank\">"+ alt_brankHK +"</a>]");
    document.write("</p>");
}

// lastModified Date
function LastModifiedDate(){
var LastModifiedDate=new Date(document.lastModified);
Y=LastModifiedDate.getYear();
if (Number(Y)<1000) Y=Y+1900; //for firefox
M=Number(LastModifiedDate.getMonth())+1;
D=LastModifiedDate.getDate();
var array1 = new Array("零","一","二","三","四","五","六","七","八","九","十","十一","十二","十三","十四","十五","十六","十七","十八","十九","二十","二十一","二十二","二十三","二十四","二十五","二十六","二十七","二十八","二十九","三十","三十一");
Y=String(Y);
var array2 = Y.split("");
LastModifiedDate = "最近修訂日期: "+array1[parseInt(array2[0])]+array1[parseInt(array2[1])]+array1[parseInt(array2[2])]+array1[parseInt(array2[3])]+"年"+array1[M]+"月"+array1[D]+"日";
return LastModifiedDate;
}
//----------End lastModified Date

document.write('<script language="javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=a012345"></script>');
var addthis_config =
{
	ui_language: 'zh',
	data_use_flash: false
}
