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 openWindow(theURL,winName,features) { //v2.0
	winpop=window.open(theURL,winName,features);
	winpop.focus();
}

function writeHeader() {
	MM_preloadImages('images/bt_homeo.gif','images/bt_introo.gif','images/bt_talko.gif','images/bt_groupo.gif','images/bt_watcho.gif','images/bt_downloado.gif','images/bt_dayo.gif','images/bt_photoo.gif','images/bt_contacto.gif','images/bt_linko.gif');

	html='';

	html+='<table border="0" cellpadding="0" cellspacing="0" class="table_main">';
	html+='  <tr>';
	html+='    <td colspan="2"><table width="772" border="0" cellspacing="0" cellpadding="0">';
	html+='  <tr>';
	html+='    <td width="259"><a href="index.htm"><img src="images/logo.gif" width="259" height="81" border="0" /></a></td>';
	html+='    <td width="513"><img src="images/25thbanner.gif" width="501" height="115" border="0" align="right" /></td>';
	html+='  </tr>';
	html+='</table></td>';
	html+='  </tr>';
	html+='  <tr valign="top">';
	html+='    <td class="navigation_area"><a href="index.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image1\',\'\',\'images/bt_homeo.gif\',1)"><img src="images/bt_home.gif" name="Image1" width="187" height="29" border="0" id="Image1" /></a><br/>';
	html+='<a href="about.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image2\',\'\',\'images/bt_introo.gif\',1)"><img src="images/bt_intro.gif" name="Image2" width="187" height="28" border="0" id="Image2" /></a><br/>';
	html+='<a href="summary.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image3\',\'\',\'images/bt_talko.gif\',1)"><img src="images/bt_talk.gif" name="Image3" width="187" height="28" border="0" id="Image3" /></a><br/>';
	html+='<a href="fellowship.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image4\',\'\',\'images/bt_groupo.gif\',1)"><img src="images/bt_group.gif" name="Image4" width="187" height="28" border="0" id="Image4" /></a><br/>';
	html+='<a href="testimony.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image5\',\'\',\'images/bt_watcho.gif\',1)"><img src="images/bt_watch.gif" name="Image5" width="187" height="28" border="0" id="Image5" /></a><br/>';
<!--	html+='<a href="download.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image6\',\'\',\'images/bt_downloado.gif\',1)"><img src="images/bt_download.gif" name="Image6" width="187" height="28" border="0" id="Image6" /></a><br/>';-->
	html+='<a href="calendar.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image7\',\'\',\'images/bt_dayo.gif\',1)"><img src="images/bt_day.gif" name="Image7" width="187" height="28" border="0" id="Image7" /></a><br/>';
	html+='<a href="http://gallery.hkcpc.org.hk" target=_blank onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image8\',\'\',\'images/bt_photoo.gif\',1)"><img src="images/bt_photo.gif" name="Image8" width="187" height="28" border="0" id="Image8" /></a><br/>';
	html+='<a href="contact.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image9\',\'\',\'images/bt_contacto.gif\',1)"><img src="images/bt_contact.gif" name="Image9" width="187" height="28" border="0" id="Image9" /></a><br/>';
	html+='<a href="link.htm" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage(\'Image10\',\'\',\'images/bt_linko.gif\',1)"><img src="images/bt_link.gif" name="Image10" width="187" height="29" border="0" id="Image10" /></a><br/>';
	html+='    </td>';
	html+='    <td class="content_area">';

	document.write(html);
}

function writeFooter() {
	html='';

	html+='    </td>';
	html+='  </tr>';
	html+='  <tr>';
	html+='    <td colspan="2" class="table_bottom"></td>';
	html+='  </tr>';
	html+='</table>';
	html+='<div class="copyright">Copyright &copy; 2004-2009 Christian Philadelphia Church.</div>';

	document.write(html);
}
function open_on_entrance(url,name)
{ 

new_window = window.open('abpromotion.htm','abpromotion', ' scrollbars=yes,menubar,resizable,dependent,status,width=600,height=770,left=10,top=10')
}
