if(location.href.toString().search('winstate-hk.no-ip.org/') != -1)
{
//	var url_path = 'ht'+'tp://www0.coy.gov.hk/';
    var url_path = 'ht'+'tp://winstate-hk.no-ip.org/coy/';
}
else
{
	var url_path = 'ht'+'tp://www.coy.gov.hk/';
}

var ver_name = "sc/";
var image_path = url_path + ver_name + 'images/' + mainTopicNo + '/' 

var image_path2 = url_path + ver_name + 'images/' + mainTopicNo + '/' 

// print page

if(p) window.print();

var title = new Array()
title['introduction'] = "引言";
title['agenda'] = "会议议程及纪录";
title['exchange'] = "国际青年交流计划";
title['funding'] = "拨款计划";
title['report'] = "研究调查报告书";
title['links'] = "连结至相关网页";
title['news'] = "最新消息";
title['rescentre'] = "青年事务资料中心";
title['games'] = "游戏园地";
title['opinion'] = "意见箱";
title['download'] = "下载";



function getPrintLink(){


var scriptBuffer='';

var scriptBuffer='<a href="javascript:printPage()">列印本页</a>';
return scriptBuffer;

	
}




function printPage(){

	
window.open(document.location.pathname+'?p=1','PrintPage','top=10,left=10,height=500,width=650,scrollbars=1');	



}

function changVer()
{
var scriptBuffer='';

if (atgb == "sc_chi") {	

scriptBuffer+="<a href=\"javascript:changeVer('s_text');\"><img src=\"" + image_path2 + "text.gif\"  border=\"0\" alt=\"简体纯文字\"></a><a href=\"javascript:changeVer('c')\"><img src=\"" + image_path2 + "chi.gif\" name=\"chinese\"  border=\"0\"   alt=\"繁体中文版\"></a><a href=\"javascript:changeVer('e');\" ><img src=\"" + image_path2 + "eng.gif\" alt=\"English\" name=\"english\" border=\"0\" ></a>";
} 

else if (atgb == "chi") {
scriptBuffer+="<a href=\"javascript:changeVer('c_text');\"><img src=\"" + image_path2 + "text.gif\" border=\"0\" alt=\"繁体纯文字\"></a><a href=\"javascript:changeVer('s')\" ><img src=\"" + image_path2 + "chi.gif\"  border=\"0\"  alt=\"简体中文版\"></a><a href=\"javascript:changeVer('e');\" ><img src=\"" + image_path2 + "eng.gif\" alt=\"English\"  border=\"0\" ></a>";
}




return scriptBuffer;


}


function changVer2()
{
var scriptBuffer='';

if (atgb == "sc_chi") {	

scriptBuffer+="<a href=\"javascript:changeVer('c')\"><img src=\"" + image_path2 + "chi.gif\" name=\"chinese\"  border=\"0\"   alt=\"繁体中文版\"></a><a href=\"javascript:changeVer('e');\" ><img src=\"" + image_path2 + "eng.gif\" alt=\"English\" name=\"english\" border=\"0\" ></a>";
} 

else if (atgb == "chi") {
scriptBuffer+="<a href=\"javascript:changeVer('s')\" ><img src=\"" + image_path2 + "chi.gif\"  border=\"0\"  alt=\"简体中文版\"></a><a href=\"javascript:changeVer('e');\" ><img src=\"" + image_path2 + "eng.gif\" alt=\"English\"  border=\"0\" ></a>";
}




return scriptBuffer;


}

function changVer3()
{
var scriptBuffer='';

if (atgb == "sc_chi") {	

scriptBuffer+="<a href=\"javascript:changeVer('s_text');\"><img src=\"" + image_path2 + "text.gif\"  border=\"0\" alt=\"简体纯文字\"></a><a href=\"javascript:changeVer('c')\"><img src=\"" + image_path2 + "chi.gif\" name=\"chinese\"  border=\"0\"   alt=\"繁体中文版\"></a>";
} 

else if (atgb == "chi") {
scriptBuffer+="<a href=\"javascript:changeVer('c_text');\"><img src=\"" + image_path2 + "text.gif\" border=\"0\" alt=\"繁体纯文字\"></a><a href=\"javascript:changeVer('s')\" ><img src=\"" + image_path2 + "chi.gif\"  border=\"0\"  alt=\"简体中文版\"></a>";
}




return scriptBuffer;


}

function changVer4()
{
var scriptBuffer='';

if (atgb == "sc_chi") {	

scriptBuffer+="<a href=\"javascript:changeVer('c')\"><img src=\"" + image_path2 + "chi.gif\" name=\"chinese\"  border=\"0\"   alt=\"繁体中文版\"></a>";
} 

else if (atgb == "chi") {
scriptBuffer+="<a href=\"javascript:changeVer('s')\" ><img src=\"" + image_path2 + "chi.gif\"  border=\"0\"  alt=\"简体中文版\"></a>";
}




return scriptBuffer;


}


function getTopMenu()
{
var scriptBuffer='';




scriptBuffer+='<table border="0" cellspacing="0" cellpadding="0"><tr><td><img border="0" src="' + image_path + 'title.gif" alt="青年事务委员会" ></td><td ><a href="../../index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a13\',\'\',\'' + image_path + 'homeon.gif\',1)"><img border="0" src="' + image_path + 'home.gif"  name="a13" alt="主页"></a></td>        </tr>      </table><table  border="0" cellpadding="0" cellspacing="0"><tr><td valign="top"><a href="../introduction/index.htm" onMouseOver="MM_swapImage(\'a1\',\'\',\'' + image_path + 't1on.gif\',1)"><img border="0" src="' + image_path + 't1.gif" name="a1" alt="引言" ></a></td><td valign="top"><a href="../agenda/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a2\',\'\',\'' + image_path + 't2on.gif\',1)"><img border="0" src="' + image_path + 't2.gif" name="a2" alt="会议议程及纪录" ></a></td><td valign="top"><a href="../exchange/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a3\',\'\',\'' + image_path + 't3on.gif\',1)"><img border="0" src="' + image_path + 't3.gif" name="a3" alt="国际青年交流计划" ></a></td><td valign="top"><a href="../funding/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a4\',\'\',\'' + image_path + 't4on.gif\',1)"><img border="0" src="' + image_path + 't4.gif" name="a4" alt="拨款计划" ></a></td><td valign="top"><a href="../report/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a5\',\'\',\'' + image_path + 't5on.gif\',1)"><img border="0" src="' + image_path + 't5.gif" name="a5" alt="研究调查报告书" ></a></td><td valign="top"><a href="http://www.coy.gov.hk/youth_s.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a6\',\'\',\'' + image_path + 't6on.gif\',1)"><img border="0" src="' + image_path + 't6.gif" name="a6" alt="青年约章"></a></td><td valign="top"><a href="../links/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a7\',\'\',\'' + image_path + 't7on.gif\',1)"><img border="0" src="' + image_path + 't7.gif" name="a7" alt="连结至相关网页"></a></td><td valign="top"><a href="../news/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a8\',\'\',\'' + image_path + 't8on.gif\',1)"><img border="0" src="' + image_path + 't8.gif" name="a8" alt="最新消息"></a></td><td valign="top"><a href="../rescentre/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a9\',\'\',\'' + image_path + 't9on.gif\',1)"><img border="0" src="' + image_path + 't9.gif" name="a9" alt="青年事务资料中心"></a></td><td valign="top"><a href="../games/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a10\',\'\',\'' + image_path + 't10on.gif\',1)"><img border="0" src="' + image_path + 't10.gif" name="a10" alt="游戏园地"></a></td><td valign="top"><a href="../opinion/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a11\',\'\',\'' + image_path + 't11on.gif\',1)"><img border="0" src="' + image_path + 't11.gif" name="a11" alt="意见箱"></a></td><td valign="top"><a href="../download/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a12\',\'\',\'' + image_path + 't12on.gif\',1)"><img border="0" src="' + image_path + 't12.gif" name="a12" alt="下载"></a></td></tr><tr><td colspan="12"><img border="0" src="' + image_path + 'buttons.gif" usemap="#Map" href="../screensaver/index.htm" name="Image1" ></td></tr><tr><td colspan="12"><img border="0" src="' + image_path + 'word.gif" usemap="#Map2" alt="'+title[mainTopicNo]+'" ></td></tr></table>';


scriptBuffer+='<map name="Map"><area shape="poly" coords="19,0,58,40,65,39,76,31,77,24,70,12,66,0" href="../introduction/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a1\',\'\',\'' + image_path + 't1on.gif\',1)" alt="引言"><area shape="poly" coords="75,0,94,22,93,30,126,62,132,61,140,51,145,56,151,55,161,46,161,41,123,3,122,0" href="../agenda/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a2\',\'\',\'' + image_path + 't2on.gif\',1)" alt="会议议程及纪录"><area shape="poly" coords="175,-1,132,-1,154,20,150,27,193,71,197,72,210,62,208,55,218,48,218,42" href="../exchange/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a3\',\'\',\'' + image_path + 't3on.gif\',1)" alt="国际青年交流计划"><area shape="poly" coords="230,1,185,1,211,26,218,28,247,58,254,58,265,48,267,44" href="../funding/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a4\',\'\',\'' + image_path + 't4on.gif\',1)" alt="拨款计划" ><area shape="poly" coords="287,0,246,0,264,21,265,34,294,62,299,62,308,54,315,57,318,58,328,51,329,44" href="../report/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a5\',\'\',\'' + image_path + 't5on.gif\',1)" alt="研究调查报告书"><area shape="poly" coords="347,1,303,2,322,20,329,22,351,48,369,58,375,49,378,42,351,15" href="http://www.coy.gov.hk/youth_s.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a6\',\'\',\'' + image_path + 't6on.gif\',1)" alt="青年约章"><area shape="poly" coords="402,0,358,0,380,21,379,32,419,72,424,73,435,62,435,58,426,46,434,36,435,31" href="../links/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a7\',\'\',\'' + image_path + 't7on.gif\',1)" alt="连结至相关网页"><area shape="poly" coords="457,-1,415,-1,435,22,444,25,473,56,480,56,483,51,490,45,489,39,461,12" href="../news/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a8\',\'\',\'' + image_path + 't8on.gif\',1)" alt="最新消息"><area shape="poly" coords="517,2,475,2,496,24,492,30,532,73,542,72,549,66,547,58,562,47,559,41" href="../rescentre/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a9\',\'\',\'' + image_path + 't9on.gif\',1)" alt="青年事务资料中心"><area shape="poly" coords="576,0,532,0,556,25,563,25,594,57,601,57,611,49,609,39,582,14" href="../games/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a10\',\'\',\'' + image_path + 't10on.gif\',1)" alt="游戏园地" ><area shape="poly" coords="590,0,613,24,619,29,640,49,649,43,656,34,637,11,636,3,633,0" href="../opinion/index.htm" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'a11\',\'\',\'' + image_path + 't11on.gif\',1)" alt="意见箱" ><area shape="poly" coords="653,4,666,18,677,30,686,38,696,36,701,31,700,21,693,3,687,1" href="../download/index.htm" onMouseOver="MM_swapImage(\'a12\',\'\',\'' + image_path + 't12on.gif\',1)" onMouseOut="MM_swapImgRestore()" alt="下载" ></map>';

return scriptBuffer;


 


}

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 getFooter() {
	var copyYear='2007';
	var noticesLink='/sc/t_notice.htm';
	revisionDate='10/2/2008';
	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 width="100%" border="0" cellspacing="0" cellpadding="0">';
	scriptBuffer+='<tr>';
	scriptBuffer+='<td align="right">最新修订日期: '+showDate+'</td>';
	scriptBuffer+='</tr>';
	scriptBuffer+='</table>';
	
	return scriptBuffer;
}
*/

function getFooter() {
	var copyYear='2007';
	var noticesLink='/sc/t_notice.htm';
	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';

	if (typeof(revisionDate) != 'undefined')
	{
	if (revisionDate==''||revisionDate=='MM/DD/YYYY') revisionDate='10/02/2008';
	var reDate=new Date(Date.parse(revisionDate))
	var showDate=reDate.getFullYear()+'年'+monthArray[reDate.getMonth()]+'月'+reDate.getDate()+'日';

	//generate the topic image to the buffer variable
	var scriptBuffer='';
	scriptBuffer+='<table width="100%" border="0" cellspacing="0" cellpadding="0">';
	scriptBuffer+='<tr>';
	scriptBuffer+='<td align="right">最新修订日期: '+showDate+'</td>';
	scriptBuffer+='</tr>';
	scriptBuffer+='</table>';
	
	return scriptBuffer;
  } else {
  //to set the date to webpage which does not define the variable 'revisionDate'
  var revisionDate1='10/02/2008';	
	var reDate1=new Date(Date.parse(revisionDate1))
	var showDate1=reDate1.getFullYear()+'年'+monthArray[reDate1.getMonth()]+'月'+reDate1.getDate()+'日';

	//generate the topic image to the buffer variable
	var scriptBuffer='';
	scriptBuffer+='<table width="100%" border="0" cellspacing="0" cellpadding="0">';
	scriptBuffer+='<tr>';
	scriptBuffer+='<td align="right">最新修订日期: '+showDate1+'</td>';
	scriptBuffer+='</tr>';
	scriptBuffer+='</table>';
	
	return scriptBuffer;
  }
}