// JavaScript Document
 
 //alert("photo_news_id length is:" + photo_news_id.length);
 
  //p_id=getQueryVariable("id");
  //alert("p_id is:" + p_id ); 
  
  //photo_url_header="http://img.hkheadline.com/headline/instantnews/photos/";
  				 document.write('<style type="text/css">');
                 document.write('table.cat_menu3{position:absolute; left:155px; top:1045px;visibility:hidden;}');
                 document.write('</style>');
				 
				 document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#f5fafe">');
				 document.write(' <tr>');
				 document.write('  <td width="10"><img src="images/instant_frame2_01_2.gif" width="10" height="10"></td>');
				 document.write('  <td width="674"><img src="images/instant_frame2_02_2.gif" width="674" height="10"></td>');
				 document.write('  <td width="8"><img src="images/instant_frame2_03_2.gif" width="8" height="10"></td>');
				 document.write(' </tr>');
				 document.write(' <tr>');
				 document.write('  <td background="images/instant_frame2_05_2.gif"><img src="images/shim.gif" width="10" height="20"></td>');
				 document.write('  <td bgcolor="#000000" height="20">');
				 document.write('   <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">');
				 document.write('    <tr>');
				 document.write('     <td height="10" valign="middle">');
				 document.write('      <table width="100%" border="0" cellpadding="0" cellspacing="0">');
				 document.write('       <tr>');
				 document.write('        <td width="15%"><img src="images/instant_photonews_top1.gif" width="109" height="26"></td>');
				 document.write('        <td width="1%"><img src="images/instant_photonews_0002.gif"></td>');
				 document.write('        <td width="15%" onMouseOut="hideSubCat(\'cat_table3\')" onMouseOver="showSubCat(\'cat_table3\')"><a href="#" onMouseOut="MM_swapImgRestore();" onMouseOver="MM_swapImage(\'cat\',\'\',\'images/instant_photonews_top2_o.gif\',1);"><img src="images/instant_photonews_top2.gif" border="0" name="cat" id="cat"></a>');
				 document.write('         <table width="80" border="0" cellspacing="0" cellpadding="1" bgcolor="#000000" class="cat_menu3" id="cat_table3" name="cat_table3">');
				 document.write('          <tr>');
				 document.write('           <td bgcolor="#4f4f4f">');
				 document.write('            <table width="80" border="0" cellspacing="0" cellpadding="0" bgcolor="#000000">');
				 document.write('             <tr>');
				 document.write('              <td onmouseover="this.style.backgroundColor=\'#f1fbff\';document.getElementById(\'item_a\').style.color=\'#0db0dd\'" onmouseout="this.style.backgroundColor=\'#000000\';document.getElementById(\'item_a\').style.color=\'#FFFFFF\'" scope="row" height="19" valign="bottom" align="center"><a href="instant_hknews_photos_index.asp?cat=a" id="item_a" style="color:#ffffff"><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;港&nbsp;聞&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></a></td>');
				 document.write('             </tr>');
				 document.write('             <tr>');
				 document.write('              <th height="1" background="images/instant_photonews_line1.gif"><img src="images/shim.gif" width="2" height="1"></th>');
				 document.write('             </tr>');
				 document.write('             <tr>');
				 document.write('              <td onmouseover="this.style.backgroundColor=\'#f1fbff\';document.getElementById(\'item_d\').style.color=\'#0db0dd\'" onmouseout="this.style.backgroundColor=\'#000000\';document.getElementById(\'item_d\').style.color=\'#FFFFFF\'"  scope="row" height="19" valign="bottom" align="center"><a href="instant_hknews_photos_index.asp?cat=d" id="item_d" style="color:#ffffff"><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;經&nbsp;濟&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></a></td>');
				 document.write('             </tr>');
				 document.write('             <tr>');
				 document.write('              <th height="1" background="images/instant_photonews_line1.gif"><img src="images/shim.gif" width="2" height="1"></th>');
				 document.write('             </tr>');
				 document.write('             <tr>');
				 document.write('              <td onmouseover="this.style.backgroundColor=\'#f1fbff\';document.getElementById(\'item_f\').style.color=\'#0db0dd\'" onmouseout="this.style.backgroundColor=\'#000000\';document.getElementById(\'item_f\').style.color=\'#FFFFFF\'"  scope="row" height="19" valign="bottom" align="center"><a href="instant_hknews_photos_index.asp?cat=f" id="item_f" style="color:#ffffff"><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;娛&nbsp;樂&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></a></td>');
				 document.write('             </tr>');
				 document.write('             <tr>');
				 document.write('              <th height="1" background="images/instant_photonews_line1.gif"><img src="images/shim.gif" width="2" height="1"></th>');
				 document.write('             </tr>');
				 document.write('             <tr>');
				 document.write('              <td onmouseover="this.style.backgroundColor=\'#f1fbff\';document.getElementById(\'item_e\').style.color=\'#0db0dd\'" onmouseout="this.style.backgroundColor=\'#000000\';document.getElementById(\'item_e\').style.color=\'#FFFFFF\'"  scope="row" height="19" valign="bottom" align="center"><a href="instant_hknews_photos_index.asp?cat=e" id="item_e" style="color:#ffffff"><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;中&nbsp;國&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></a></td>');
				 document.write('             </tr>');
				 document.write('             <tr>');
				 document.write('              <th height="1" background="images/instant_photonews_line1.gif"><img src="images/shim.gif" width="2" height="1"></th>');
				 document.write('             </tr>');
				 document.write('             <tr>');
				 document.write('              <td onmouseover="this.style.backgroundColor=\'#f1fbff\';document.getElementById(\'item_b\').style.color=\'#0db0dd\'" onmouseout="this.style.backgroundColor=\'#000000\';document.getElementById(\'item_b\').style.color=\'#FFFFFF\'"  scope="row" height="19" valign="bottom" align="center"><a href="instant_hknews_photos_index.asp?cat=b" id="item_b" style="color:#ffffff"><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;國&nbsp;際&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></a></td>');
				 document.write('             </tr>');
				 document.write('             <tr>');
				 document.write('              <th height="1" background="images/instant_photonews_line1.gif"><img src="images/shim.gif" width="2" height="1"></th>');
				 document.write('             </tr>');
				 document.write('             <tr>');
				 document.write('              <td onmouseover="this.style.backgroundColor=\'#f1fbff\';document.getElementById(\'item_c\').style.color=\'#0db0dd\'" onmouseout="this.style.backgroundColor=\'#000000\';document.getElementById(\'item_c\').style.color=\'#FFFFFF\'"  scope="row" height="19" valign="bottom" align="center"><a href="instant_hknews_photos_index.asp?cat=c" id="item_c" style="color:#ffffff"><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;體&nbsp;育&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></a></td>');
				 document.write('             </tr>');
				 document.write('             <tr>');
				 document.write('              <th height="1" background="images/instant_photonews_line1.gif"><img src="images/shim.gif" width="2" height="1"></th>');
				 document.write('             </tr>');
				 document.write('             <tr>');
				 document.write('              <td onmouseover="this.style.backgroundColor=\'#f1fbff\';document.getElementById(\'item_o\').style.color=\'#0db0dd\'" onmouseout="this.style.backgroundColor=\'#000000\';document.getElementById(\'item_o\').style.color=\'#FFFFFF\'"  scope="row" height="19" valign="bottom" align="center"><a href="instant_hknews_photos_index.asp?cat=o" id="item_o" style="color:#ffffff"><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;奧&nbsp;運&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</font></a></td>');
				 document.write('             </tr>');
				 document.write('            </table>');
				 document.write('           </td>');
				 document.write('          </tr>');
				 document.write('         </table>');
				 document.write('        </td>');						
				   document.write('      <td width="5%">');
				   document.write('      </td>');
				   	
				 //document.write('        <td width="6"></td></td><td><font size="2" color="#736d55"><a href="http://hkheadline.com/instantnews/instant_hknews_photos_index.asp?cat=o" ><img src="/instantnews/images/instant_olympic_top.gif"  border="0" onMouseOver="javascript:this.src=\'/instantnews/images/instant_olympic_top_o.gif\'" onMouseOut="javascript:this.src=\'/instantnews/images/instant_olympic_top.gif\'" ></a></font></td>');
				 document.write('        <td width="64%" align="right"><font size="2" color="#FFFFFF">如需購買圖片轉載之版權，請致電2798 2708查詢。 </font></td>');
		         
		                 document.write('        <td width="7%" align="right"><a href="instant_hknews_photos_index.asp"><img src="images/instant_more_2.gif" width="40" height="26" border="0"></a></td>');
		         
		         document.write('       </tr>');
		         document.write('      </table>');
				 document.write('     </td>');
		         document.write('    </tr>');
		         document.write('    <tr>');
		         document.write('     <td valign="top" bgcolor="#FFFFFF">');
				 document.write('       <table width="100%" border="0" cellspacing="5" cellpadding="0">');


				 total_row=2;
				 colum_per_row=3;
                 pn_id=getQueryVariable("id");
				 //alert("id is" + id );
                 photo_index_start=0
                 //alert("total_row is:" + total_row );
				 for( i=0 ;i<total_row;i++)
				 {
				     document.write('        <tr>');
				     for( j=0 ;j<colum_per_row;j++)
					 {
						 
						 if (photo_news_id[photo_index_start]==pn_id)
						 {
							photo_index_start=photo_index_start+1;
						 }
		                 document.write('       <td width="230" align="center" valign="middle" bgcolor="#FFFFFF">');
					     document.write('        <table width="100%" border="0" cellspacing="0" cellpadding="1">');
		                 document.write('         <tr>');
		                 document.write('          <td bgcolor="#000000" valign="center">');
					     document.write('           <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">');
		                 document.write('            <tr>');
		                 document.write('             <td width="230" height="217" align="center">');
					     document.write('              <table width="72%" border="0" cellspacing="0" cellpadding="0">');
		                 document.write('               <tr>');
		                 document.write('                <td><a href="/instantnews/instant_hknews_photos.asp?y='+publish_year[photo_index_start]+'&m='+publish_month[photo_index_start]+'&d='+publish_day[photo_index_start]+'&id='+photo_news_id[photo_index_start]+'" ><img src="'+ photo_news_photo_url[photo_index_start]+ '" border="0" ></a></td>');
		                 document.write('               </tr>');
		                 document.write('               <tr>');
		                 document.write('                <td><a href="/instantnews/instant_hknews_photos.asp?y='+publish_year[photo_index_start]+'&m='+publish_month[photo_index_start]+'&d='+publish_day[photo_index_start]+'&id='+photo_news_id[photo_index_start]+'" class="news_line02">'+ photo_news_headline[photo_index_start]+ '</a><br><span class="newsheadlinetime">'+ photo_news_publish_datetime[photo_index_start] + '</span></td>');
		                 document.write('               </tr>');
		                 document.write('              </table>');
					     document.write('             </td>');
		                 document.write('            </tr>');
		                 document.write('           </table>');
					     document.write('          </td>');
		                 document.write('         </tr>');
		                 document.write('        </table>');
					     document.write('       </td>');
						 photo_index_start=photo_index_start+1;
					 }
				     document.write('        <tr>');
				 }

		         document.write('       </table>');
				 document.write('      </td>');
		         document.write('     </tr>');
		         document.write('    </table>');
				 document.write('   </td>');
		         document.write('  <td background="images/instant_frame2_07_2.gif"><img src="images/shim.gif" width="8" height="20"></td>');
		         document.write(' </tr>');
		         document.write(' <tr>');
		         document.write('  <td><img src="images/instant_frame2_08_2.gif" width="10" height="18"></td>');
		         document.write('  <td><img src="images/instant_frame2_09_2.gif" width="674" height="18"></td>');
		         document.write('  <td><img src="images/instant_frame2_10_2.gif" width="8" height="18"></td>');
		         document.write(' </tr>');
		         document.write('</table>');
				 
				 
				 
		         document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
		         document.write(' <tr>');
		         document.write('  <td align="center">');
				 document.write('   <table border="0" width="100%" cellspacing="3" cellpadding="0">');
		         document.write('    <tr>');
		         document.write('     <td width="33%">');
		         document.write('     </td>');
				 
		         document.write('     <td align="center" width="33%">');
		         document.write('      <table border="0" cellpadding="0" cellspacing="3">');
		         document.write('       <tr><td>&nbsp;</td>');
		         document.write('       </tr>');
		         document.write('      </table>');
		         document.write('     </td>');
				
				 
		         document.write('     <td align="right" width="33%">');
				 
				 
		         document.write('     </td>');
		         document.write('    </tr>');
		         document.write('   </table>');
				 document.write('  </td>');
		         document.write(' </tr>');
		         document.write('</table>');

 