
<?xml version="1.0"  encoding="utf-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="zh-TW" lang="zh-TW" xmlns:hyweb="urn:gip-hyweb-com" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<meta name="viewport" content="width=device-width"/>
<title>戀戀河濱趴趴走</title>
<meta name="DC.Title" content="">
<meta name="DC.Subject" content="">
<meta name="DC.Creator" content="">
<meta name="DC.Description" content="">
<meta name="DC.Publisher" content="">
<meta name="DC.Contributor" content="">
<meta name="DC.coverage.t.max" content="2012-05-17">
<meta name="DC.coverage.t.min" content="2012-05-17">
<meta name="DC.Date" content="2012-05-17 00:00">
<meta name="DC.Type" content="">
<meta name="DC.Format" content="">
<meta name="DC.Identifier" content="379110700G">
<meta name="DC.Relation" content="MP-106035">
<meta name="DC.Source" content="">
<meta name="DC.Language" content="">
<meta name="DC.Coverage" content="">
<meta name="DC.Rights" content="">
<meta name="Category.Theme" content="">
<meta name="Category.Cake" content="">
<meta name="Category.Service" content="">
<meta name="robots" content="noarchive">
<meta name="Title" content="戀戀河濱趴趴走"/>
<meta name="Keywords" content="戀戀河濱趴趴走"/>
<link rel="stylesheet" type="text/css" href="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/css/default.css">
</link>
<link rel="stylesheet" type="text/css" title="color1" cat="color" href="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/css/design.css">
</link>
<link rel="stylesheet" type="text/css" href="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/css/tabpanel1_class.css">
</link>
<link rel="alternate stylesheet" type="text/css" title="color2" cat="color" href="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/css/design2.css">
</link>
<link rel="alternate stylesheet" type="text/css" title="color3" cat="color" href="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/css/design3.css">
</link>
<link rel="alternate stylesheet" type="text/css" title="color4" cat="color" href="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/css/design4.css">
</link>
<link rel="alternate stylesheet" type="text/css" title="color5" cat="color" href="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/css/design5.css">
</link>
<link rel="stylesheet" type="text/css" title="small" cat="font" href="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/css/fontS.css">
</link>
<link rel="alternate stylesheet" type="text/css" title="medium" cat="font" href="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/css/fontM.css">
</link>
<link rel="alternate stylesheet" type="text/css" title="large" cat="font" href="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/css/fontL.css">
</link>
<link rel="stylesheet" type="text/css" media="print" href="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/css/print.css">
</link>
<link href="css/CuHtmlEdit.css" rel="stylesheet" type="text/css" charset="utf-8"></link><!--[if lt IE 7]><link rel="stylesheet" media="screen" type="text/css" href="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/css/ie6.css"></link><![endif]--><link href="js/jscalendar-1.0/calendar-system.css" rel="stylesheet" type="text/css"></link>
<styleSwitcher cat="color"/>
<styleSwitcher cat="font"/>
<script type="text/javascript" src="js/globals.js"></script>
<script type="text/javascript" src="js/tabpanel1_class.js"></script>
<script type="text/javascript" src="js/widgets_class.js"></script>
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/AC_RunActiveContent.js"></script>
<script type="text/javascript" src="js/mootools.v1.11.js"></script>
<script type="text/javascript" src="js/styleswitcher.js"></script>
<script type="text/javascript" src="js/multimenu.js"></script>
<script type="text/javascript" src="js/jscalendar-1.0/calendar.js"></script>
<script type="text/javascript" src="js/jscalendar-1.0/lang/calendar-en.js"></script>
<script type="text/javascript" src="js/jscalendar-1.0/lang/calendar-big5-utf8.js"></script>
<script type="text/javascript" src="js/jscalendar-1.0/calendar-setup.js"></script>
</head>
<body>
<div class="wrap">
<div id="zone.head" class="top">
<div class="accesskey" style="position:absolute;z-index:999999;">
<a href="/sitemap.asp?mp=106035" accesskey="U" title="上方導覽區塊">:::
							</a>
</div><div id="FlashSet">
<script language="javascript">
								if (AC_FL_RunContent == 0) {
									alert("這個頁面必須具備 AC_RunActiveContent.js。");
								} else {
									AC_FL_RunContent(
										'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
										'width', '960',
										'height', '336',
										'src', 'http://www.riversidepark.taipei.gov.tw/public/MMO/RiverSide_MMO/rsp_header' ,
										'quality', 'high',
										'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
										'align', 'middle',
										'play', 'true',
										'loop', 'true',
										'scale', 'showall',
										'wmode', 'transparent',
										'devicefont', 'false',	
										'id', 'MainFlash',
										'bgcolor', '#eee',
										'name', 'MainFlash',
										'menu', 'false',
										'allowFullScreen', 'true',
										'allowScriptAccess','sameDomain',
										'movie', 'http://www.riversidepark.taipei.gov.tw/public/MMO/RiverSide_MMO/rsp_header',
										'salign', 'lt'
										); //end AC code
								}
							</script>
</div>
<div id="FlashPadding"></div><div class="header">
<h1><a title="河濱自行車道_LOGO" href="http://www.riversidepark.taipei.gov.tw/"><img src="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/images/heo_logo.png" title="河濱自行車道_LOGO" alt="河濱自行車道_LOGO"></a></h1>
<div class="nav">
<ul>
<li><a href="http://www.heo.taipei.gov.tw/" target="_blank" title="水利工程處, 另開視窗.">水利工程處</a></li>
<li><a href="http://www.taipei.gov.tw" target="_blank" title="臺北市政府, 另開視窗.">臺北市政府</a></li>
<li><a href="sitemap.asp?mp=106035" title="網站地圖">網站地圖</a></li>
<li><a href="http://i.taipei.gov.tw" target="_blank" title="網路市民, 另開視窗.">網路市民</a></li>
</ul>
</div>
<div class="visitor">瀏覽人次: <em>884939</em></div>
<div class="user"></div>
<div class="search"><form id="form_searchAdv" action="http://wisearch.taipei.gov.tw/wise/s.jsp" method="GET" name="myForm" target="_searchWiSe">
<label>全站查詢：</label>
<input type="hidden" name="qt" value="dismax">
<input type="hidden" name="ro" value="true">
<input type="hidden" name="d" value="0">
<input type="hidden" name="mp" value="106035">
<input id="content" name="q" type="text" class="inputSearch" accesskey="S" value="請輸入關鍵字" size="10" onFocus="if(this.value=='請輸入關鍵字') this.value=''" onmouseover="if(this.value=='請輸入關鍵字') this.value=''"  />
<input type="button" class="btnSearch" value="" onkeypress="doSubmit();" onclick="doSubmit();" />
</form>
<script language="javascript">
function doSubmit() {
	re = / /gi;
	if (document.myForm.q.value.replace(re,"")=="") {
		alert("請輸入查詢關鍵字");
	}else {
		document.myForm.submit();
	}
}
</script>
<noscript>輸入查詢關鍵字按下Enter鍵，會另開視窗進行查詢結果列</noscript></div>
</div>
		<div class="Welcome"><ul><li><a href="memberCheck.asp" title="登入">網路市民登入</a></li></ul></div>
 <script language="javascript">  var objHeader = document.getElementById('FlashSet');  objHeader.style.backgroundImage = 'url(/public/MMO/riverpark/headerbg/headerbg05.jpg)';  </script><noscript><div><ul><li><img src="/public/Data/" alt="首頁大圖05"/><a href="ct.asp?xItem=1021468&ctNode=26325&mp=">首頁大圖05</a><p></p></li></ul></div></noscript><div class="menu"><ul><li><a href="sp.asp?xdurl=LBS_public/public_LP.asp&sugCat_type=A0002&item_type=0&item_count=3&item_order=1&spctNode=7189&show_cat=Y&mp=106035&filter_ictunit=6445" title="河濱公園">河濱公園</a></li><li><a href="np.asp?ctNode=26433&amp;mp=106035" title="自行車道">自行車道</a><li><a href="sp.asp?xdurl=LBS/addcontent_sug.asp&phase=add&ctUnitId=6445&iBaseDsd=53&sugCat_type=A0002&mp=106035&ctNode=7189" title="張貼地標">張貼地標</a></li><li><a href="lp.asp?ctNode=7189&amp;CtUnit=6445&amp;BaseDSD=53&amp;mp=106035" title="地標資訊">地標資訊</a></li><li><a href="np.asp?ctNode=7190&amp;mp=106035" title="活動專區">活動專區</a><li><a href="np.asp?ctNode=7197&amp;mp=106035" title="活動花絮">活動花絮</a><li><a href="javascript:window.open('http://tcgwww.taipei.gov.tw/mp.asp?mp=cm0067','blog');void(0);" title="部落格">部落格</a></li></ul></li></div>
</div>
<table class="layout" summary="layout table">
<tr>
<td class="leftbg hidden" id="a">
<div class="side">
<div class="accesskey">
<a href="/sitemap.asp?mp=106035" accesskey="L" title="左方導覽區塊">:::
										</a>
</div>
<div id="zone.SideBarLeft"></div>
</div>
</td>
<td class="center">
<div class="accesskey">
<a href="/sitemap.asp?mp=106035" accesskey="C" title="中央內容區塊">:::</a>
</div>
<div id="zone.content11"><div class="headline">
<h2><span><a href="np.asp?ctNode=7456&mp=106035" title="活動訊息">活動訊息</a></span></h2>
<div class="body">
<h3><a href="ct.asp?xItem=1009695&ctNode=7456&mp=106035" title="迪化污水處理廠休閒運動公園壘球場地申請借用情形表">迪化污水處理廠休閒運動公園壘球場地申請借用情形表</a>
					&nbsp;<span class="date">2012-05-16</span></h3>
<h3><a href="ct.asp?xItem=1262713&ctNode=7456&mp=106035" title="5/19-6/28 園藝綠化教室課程">5/19-6/28 園藝綠化教室課程</a>
					&nbsp;<span class="date">2012-03-12</span></h3>
<ul>
</ul>
<div class="more leftimg"><a href="np.asp?ctNode=7456&mp=106035" title="更多活動訊息">更多活動訊息</a></div>
</div>
<div class="foot">
</div>
</div><script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAeXWtbS38WGeGsWU2m_mh4hSGCojPlWKyau8P8ccAX_Ry0Aw2ixRNXOEHvDXtctclV9IAv6WW0GRF2A"></script><script type="text/javascript" src="lbs_public/js/main_RMouseMenu.js"></script><script type="text/javascript">
var default_cat;
var mp="106035";
var cen_lon="25.0291";
var cen_lat="121.52";
var dis_range="16";
if (dis_range=="")
	dis_range=16;
else
	dis_range=parseInt(dis_range);
var mem_userid="";
if (mem_userid=="NULL")
	mem_userid="";
var news_spctnode="7189";
if (news_spctnode=="")
	news_spctnode=2208;	
var show_first="";
var check_count="";
var check_type="0";
var show_cat="Y";
var have_sid="";
var s_id="";
var filter_ictunit="6445";
var div_setting_top="";
var div_setting_right="";
var div_setting_bottom="";
var div_setting_left="";
var show_icuitem;
var drag_range="";
var ora_zoom=0;
var ora_cat="";
var change_cat=false;
var click_show=false;
var gmarker_arr = new Array();

var gmarkers10 = [];
gmarker_arr[gmarker_arr.length]=gmarkers10;

var gmarkers11 = [];
gmarker_arr[gmarker_arr.length]=gmarkers11;

var gmarkers20 = [];
gmarker_arr[gmarker_arr.length]=gmarkers20;

var gmarkers30 = [];
gmarker_arr[gmarker_arr.length]=gmarkers30;

var gmarkers40 = [];
gmarker_arr[gmarker_arr.length]=gmarkers40;

var gmarkers50 = [];
gmarker_arr[gmarker_arr.length]=gmarkers50;

var gmarkers60 = [];
gmarker_arr[gmarker_arr.length]=gmarkers60;

var gmarkers70 = [];
gmarker_arr[gmarker_arr.length]=gmarkers70;

var gmarkers80 = [];
gmarker_arr[gmarker_arr.length]=gmarkers80;

var gmarkers90 = [];
gmarker_arr[gmarker_arr.length]=gmarkers90;

var gmarkers91 = [];
gmarker_arr[gmarker_arr.length]=gmarkers91;

var gmarkers92 = [];
gmarker_arr[gmarker_arr.length]=gmarkers92;

var gmarkers93 = [];
gmarker_arr[gmarker_arr.length]=gmarkers93;

var gmarkers94 = [];
gmarker_arr[gmarker_arr.length]=gmarkers94;

var gmarkers19 = [];
gmarker_arr[gmarker_arr.length]=gmarkers19;

var gmarkers_cat= [];
var myMap;
google.load("maps", "2");
google.setOnLoadCallback(load);
var showStatus = false;
var mapXSL;
window.addEvent('domready',function () {
myMap = new GMap2(document.getElementById("map_canvas"));
myMap.enableScrollWheelZoom();
myMap.setCenter(new GLatLng(cen_lon,cen_lat), dis_range);
myMap.addControl(new GOverviewMapControl());
myMap.addControl(new GLargeMapControl());
myMap.addControl(new GMapTypeControl());
myMap.addControl(new GScaleControl());		
set_cookie();
createContextMenu(mem_userid,myMap);
		GEvent.addListener(myMap, "moveend", 
		  function() {  
			setCookie("center",replace_point(myMap.getCenter().toString()));
			setCookie("zoom",myMap.getZoom().toString());
			//alert(document.cookie);
			//document.getElementById("out").innerHTML = myMap.getCenter(); 
			changeZoom();
		  } 
		);		
	set_loading();

});
		
function cat_list(){
//default_cat=parseInt(getCookie("default_cat"));
	if (!showStatus) {
		$('ajaxLoading').style.display="block";
		if (default_cat==0)
			cat_list_Detail();
		else
			//alert(default_cat);
			re_cat_show(default_cat);
		$('ajaxLoading').style.display="none";	
		showStatus = true;
	}
}
function cat_list_Detail(){
start=1;
	//預設第一個推薦主題
		
}	

function set_cookie(){
	if (checkCookie("zoom")==false){
		setCookie("zoom",myMap.getZoom().toString());
		}
	if (checkCookie("center")==false){
		setCookie("center",replace_point(myMap.getCenter().toString()));
		}
	default_cat=0;	
		/*
	if (checkCookie("default_cat")==false){

		setCookie("default_cat",default_cat);
		}
	if (checkCookie("show_status")==false){
		setCookie("show_status","show");
		}
	if (checkCookie("show_icuitem")==false){
		show_icuitem="";
		setCookie("show_icuitem",show_icuitem);
		}	
*/		
var c_zoom=getCookie("zoom");
var c_center_arr=getCookie("center").split(",");
	myMap.setCenter(new GLatLng(c_center_arr[0],c_center_arr[1]), parseInt(c_zoom));
/*
	var c_show_status=getCookie("show_status");
	if (c_show_status=="hide")
		clearall();	
	else if (c_show_status=="show")	
*/	
		cat_list();	

//myMap.setCenter(new GLatLng(cen_lon,cen_lat), dis_range);	
}
function setCookie(c_name,value)
{
		document.cookie=c_name+ "=" +escape(value);
}
function getCookie(c_name)
{
	if (document.cookie.length>0)
	  {
	  var c_start=document.cookie.indexOf(c_name + "=");
	  if (c_start!=-1)
		{
		c_start=c_start + c_name.length+1;
		var c_end=document.cookie.indexOf(";",c_start);
		if (c_end==-1) c_end=document.cookie.length;
		return unescape(document.cookie.substring(c_start,c_end));
		}
		else
			return "";
	  }
	  else
		return "";
}
function checkCookie(c_name)
{
  if(getCookie(c_name)!="")
	return true;
  else
	return false;
}
function set_loading(){
var div_load=document.getElementById("ajaxLoading");
if (parseInt(div_setting_top)!=0)
	div_load.style.top=div_setting_top;
if (parseInt(div_setting_right)!=0)
	div_load.style.right=div_setting_right;
if (parseInt(div_setting_bottom)!=0)
	div_load.style.bottom=div_setting_bottom;
if (parseInt(div_setting_left)!=0)
	div_load.style.left=div_setting_left;
}

function replace_point(center){
	center=center.replace(/\)/g,"");
	center=center.replace(/\(/g,"");
	return center;
}
function changeZoom(){
	var cat=document.getElementsByName("Cat_type");
		for(i=0;i<cat.length;i++){
			if (cat[i].checked){
			//document.getElementById("out").innerHTML = cat[i].value; 
			cat_icon(cat[i].value);			
			}
		}
}
function re_cat_show(){
click_show=true;
	var cat=document.getElementsByName("Cat_type");
		for(i=0;i<cat.length;i++){
			if (parseInt(cat[i].value)==parseInt(default_cat)){
			//document.getElementById("out").innerHTML = cat[i].value; 
			cat[i].checked=true;
			cat_icon(cat[i].value);			
			}
		}
}
function clearitem(){
	myMap.clearOverlays();
}

function cat_icon(catvalue){
//setCookie("show_status","show");
if (ora_cat!=catvalue){
	ora_cat=catvalue;
	change_cat=true;
	}else
	change_cat=false;
var cat=document.getElementsByName("Cat_type");
if (check_count=="")
	check_count=1;
if(check_type=="")
	check_type=0;
var count=0;

	for(var i=0;i<cat.length;i++){
		if (cat[i].checked){
			count++;
			}
		}
	if (count>check_count){
		alert("勾選的類別不能多於"+check_count+"種");
		for(var i=0;i<cat.length;i++){
			if (cat[i].value==catvalue){
				cat[i].checked=false;
				}
			}			
	}else{if (catvalue==10){if (gmarkers10.length==0){	for(var i=0;i<cat.length;i++){
						if (cat[i].value==catvalue && cat[i].checked==true){
							//alert("您是第一次選擇此類別，執行時間可能較長，請耐心等候");
							//如果沒有資料-->cat_ajax(catvalue,check_type);
							cat_ajax(catvalue,check_type);
							for(var i=0;i<cat.length;i++){
								//if (cat[i].value==catvalue){
									if (cat[i].checked==true)
										show(cat[i].value);
									else
										hide(cat[i].value);
								//	}
								}				
							
						}
					}
				}else{
				for(var i=0;i<cat.length;i++){
					//if (cat[i].value==catvalue){
						if (cat[i].checked==true)
							show(cat[i].value);
						else
							hide(cat[i].value);
					//	}
					}				
				}
			}if (catvalue==11){if (gmarkers11.length==0){	for(var i=0;i<cat.length;i++){
						if (cat[i].value==catvalue && cat[i].checked==true){
							//alert("您是第一次選擇此類別，執行時間可能較長，請耐心等候");
							//如果沒有資料-->cat_ajax(catvalue,check_type);
							cat_ajax(catvalue,check_type);
							for(var i=0;i<cat.length;i++){
								//if (cat[i].value==catvalue){
									if (cat[i].checked==true)
										show(cat[i].value);
									else
										hide(cat[i].value);
								//	}
								}				
							
						}
					}
				}else{
				for(var i=0;i<cat.length;i++){
					//if (cat[i].value==catvalue){
						if (cat[i].checked==true)
							show(cat[i].value);
						else
							hide(cat[i].value);
					//	}
					}				
				}
			}if (catvalue==20){if (gmarkers20.length==0){	for(var i=0;i<cat.length;i++){
						if (cat[i].value==catvalue && cat[i].checked==true){
							//alert("您是第一次選擇此類別，執行時間可能較長，請耐心等候");
							//如果沒有資料-->cat_ajax(catvalue,check_type);
							cat_ajax(catvalue,check_type);
							for(var i=0;i<cat.length;i++){
								//if (cat[i].value==catvalue){
									if (cat[i].checked==true)
										show(cat[i].value);
									else
										hide(cat[i].value);
								//	}
								}				
							
						}
					}
				}else{
				for(var i=0;i<cat.length;i++){
					//if (cat[i].value==catvalue){
						if (cat[i].checked==true)
							show(cat[i].value);
						else
							hide(cat[i].value);
					//	}
					}				
				}
			}if (catvalue==30){if (gmarkers30.length==0){	for(var i=0;i<cat.length;i++){
						if (cat[i].value==catvalue && cat[i].checked==true){
							//alert("您是第一次選擇此類別，執行時間可能較長，請耐心等候");
							//如果沒有資料-->cat_ajax(catvalue,check_type);
							cat_ajax(catvalue,check_type);
							for(var i=0;i<cat.length;i++){
								//if (cat[i].value==catvalue){
									if (cat[i].checked==true)
										show(cat[i].value);
									else
										hide(cat[i].value);
								//	}
								}				
							
						}
					}
				}else{
				for(var i=0;i<cat.length;i++){
					//if (cat[i].value==catvalue){
						if (cat[i].checked==true)
							show(cat[i].value);
						else
							hide(cat[i].value);
					//	}
					}				
				}
			}if (catvalue==40){if (gmarkers40.length==0){	for(var i=0;i<cat.length;i++){
						if (cat[i].value==catvalue && cat[i].checked==true){
							//alert("您是第一次選擇此類別，執行時間可能較長，請耐心等候");
							//如果沒有資料-->cat_ajax(catvalue,check_type);
							cat_ajax(catvalue,check_type);
							for(var i=0;i<cat.length;i++){
								//if (cat[i].value==catvalue){
									if (cat[i].checked==true)
										show(cat[i].value);
									else
										hide(cat[i].value);
								//	}
								}				
							
						}
					}
				}else{
				for(var i=0;i<cat.length;i++){
					//if (cat[i].value==catvalue){
						if (cat[i].checked==true)
							show(cat[i].value);
						else
							hide(cat[i].value);
					//	}
					}				
				}
			}if (catvalue==50){if (gmarkers50.length==0){	for(var i=0;i<cat.length;i++){
						if (cat[i].value==catvalue && cat[i].checked==true){
							//alert("您是第一次選擇此類別，執行時間可能較長，請耐心等候");
							//如果沒有資料-->cat_ajax(catvalue,check_type);
							cat_ajax(catvalue,check_type);
							for(var i=0;i<cat.length;i++){
								//if (cat[i].value==catvalue){
									if (cat[i].checked==true)
										show(cat[i].value);
									else
										hide(cat[i].value);
								//	}
								}				
							
						}
					}
				}else{
				for(var i=0;i<cat.length;i++){
					//if (cat[i].value==catvalue){
						if (cat[i].checked==true)
							show(cat[i].value);
						else
							hide(cat[i].value);
					//	}
					}				
				}
			}if (catvalue==60){if (gmarkers60.length==0){	for(var i=0;i<cat.length;i++){
						if (cat[i].value==catvalue && cat[i].checked==true){
							//alert("您是第一次選擇此類別，執行時間可能較長，請耐心等候");
							//如果沒有資料-->cat_ajax(catvalue,check_type);
							cat_ajax(catvalue,check_type);
							for(var i=0;i<cat.length;i++){
								//if (cat[i].value==catvalue){
									if (cat[i].checked==true)
										show(cat[i].value);
									else
										hide(cat[i].value);
								//	}
								}				
							
						}
					}
				}else{
				for(var i=0;i<cat.length;i++){
					//if (cat[i].value==catvalue){
						if (cat[i].checked==true)
							show(cat[i].value);
						else
							hide(cat[i].value);
					//	}
					}				
				}
			}if (catvalue==70){if (gmarkers70.length==0){	for(var i=0;i<cat.length;i++){
						if (cat[i].value==catvalue && cat[i].checked==true){
							//alert("您是第一次選擇此類別，執行時間可能較長，請耐心等候");
							//如果沒有資料-->cat_ajax(catvalue,check_type);
							cat_ajax(catvalue,check_type);
							for(var i=0;i<cat.length;i++){
								//if (cat[i].value==catvalue){
									if (cat[i].checked==true)
										show(cat[i].value);
									else
										hide(cat[i].value);
								//	}
								}				
							
						}
					}
				}else{
				for(var i=0;i<cat.length;i++){
					//if (cat[i].value==catvalue){
						if (cat[i].checked==true)
							show(cat[i].value);
						else
							hide(cat[i].value);
					//	}
					}				
				}
			}if (catvalue==80){if (gmarkers80.length==0){	for(var i=0;i<cat.length;i++){
						if (cat[i].value==catvalue && cat[i].checked==true){
							//alert("您是第一次選擇此類別，執行時間可能較長，請耐心等候");
							//如果沒有資料-->cat_ajax(catvalue,check_type);
							cat_ajax(catvalue,check_type);
							for(var i=0;i<cat.length;i++){
								//if (cat[i].value==catvalue){
									if (cat[i].checked==true)
										show(cat[i].value);
									else
										hide(cat[i].value);
								//	}
								}				
							
						}
					}
				}else{
				for(var i=0;i<cat.length;i++){
					//if (cat[i].value==catvalue){
						if (cat[i].checked==true)
							show(cat[i].value);
						else
							hide(cat[i].value);
					//	}
					}				
				}
			}if (catvalue==90){if (gmarkers90.length==0){	for(var i=0;i<cat.length;i++){
						if (cat[i].value==catvalue && cat[i].checked==true){
							//alert("您是第一次選擇此類別，執行時間可能較長，請耐心等候");
							//如果沒有資料-->cat_ajax(catvalue,check_type);
							cat_ajax(catvalue,check_type);
							for(var i=0;i<cat.length;i++){
								//if (cat[i].value==catvalue){
									if (cat[i].checked==true)
										show(cat[i].value);
									else
										hide(cat[i].value);
								//	}
								}				
							
						}
					}
				}else{
				for(var i=0;i<cat.length;i++){
					//if (cat[i].value==catvalue){
						if (cat[i].checked==true)
							show(cat[i].value);
						else
							hide(cat[i].value);
					//	}
					}				
				}
			}if (catvalue==91){if (gmarkers91.length==0){	for(var i=0;i<cat.length;i++){
						if (cat[i].value==catvalue && cat[i].checked==true){
							//alert("您是第一次選擇此類別，執行時間可能較長，請耐心等候");
							//如果沒有資料-->cat_ajax(catvalue,check_type);
							cat_ajax(catvalue,check_type);
							for(var i=0;i<cat.length;i++){
								//if (cat[i].value==catvalue){
									if (cat[i].checked==true)
										show(cat[i].value);
									else
										hide(cat[i].value);
								//	}
								}				
							
						}
					}
				}else{
				for(var i=0;i<cat.length;i++){
					//if (cat[i].value==catvalue){
						if (cat[i].checked==true)
							show(cat[i].value);
						else
							hide(cat[i].value);
					//	}
					}				
				}
			}if (catvalue==92){if (gmarkers92.length==0){	for(var i=0;i<cat.length;i++){
						if (cat[i].value==catvalue && cat[i].checked==true){
							//alert("您是第一次選擇此類別，執行時間可能較長，請耐心等候");
							//如果沒有資料-->cat_ajax(catvalue,check_type);
							cat_ajax(catvalue,check_type);
							for(var i=0;i<cat.length;i++){
								//if (cat[i].value==catvalue){
									if (cat[i].checked==true)
										show(cat[i].value);
									else
										hide(cat[i].value);
								//	}
								}				
							
						}
					}
				}else{
				for(var i=0;i<cat.length;i++){
					//if (cat[i].value==catvalue){
						if (cat[i].checked==true)
							show(cat[i].value);
						else
							hide(cat[i].value);
					//	}
					}				
				}
			}if (catvalue==93){if (gmarkers93.length==0){	for(var i=0;i<cat.length;i++){
						if (cat[i].value==catvalue && cat[i].checked==true){
							//alert("您是第一次選擇此類別，執行時間可能較長，請耐心等候");
							//如果沒有資料-->cat_ajax(catvalue,check_type);
							cat_ajax(catvalue,check_type);
							for(var i=0;i<cat.length;i++){
								//if (cat[i].value==catvalue){
									if (cat[i].checked==true)
										show(cat[i].value);
									else
										hide(cat[i].value);
								//	}
								}				
							
						}
					}
				}else{
				for(var i=0;i<cat.length;i++){
					//if (cat[i].value==catvalue){
						if (cat[i].checked==true)
							show(cat[i].value);
						else
							hide(cat[i].value);
					//	}
					}				
				}
			}if (catvalue==94){if (gmarkers94.length==0){	for(var i=0;i<cat.length;i++){
						if (cat[i].value==catvalue && cat[i].checked==true){
							//alert("您是第一次選擇此類別，執行時間可能較長，請耐心等候");
							//如果沒有資料-->cat_ajax(catvalue,check_type);
							cat_ajax(catvalue,check_type);
							for(var i=0;i<cat.length;i++){
								//if (cat[i].value==catvalue){
									if (cat[i].checked==true)
										show(cat[i].value);
									else
										hide(cat[i].value);
								//	}
								}				
							
						}
					}
				}else{
				for(var i=0;i<cat.length;i++){
					//if (cat[i].value==catvalue){
						if (cat[i].checked==true)
							show(cat[i].value);
						else
							hide(cat[i].value);
					//	}
					}				
				}
			}if (catvalue==19){if (gmarkers19.length==0){	for(var i=0;i<cat.length;i++){
						if (cat[i].value==catvalue && cat[i].checked==true){
							//alert("您是第一次選擇此類別，執行時間可能較長，請耐心等候");
							//如果沒有資料-->cat_ajax(catvalue,check_type);
							cat_ajax(catvalue,check_type);
							for(var i=0;i<cat.length;i++){
								//if (cat[i].value==catvalue){
									if (cat[i].checked==true)
										show(cat[i].value);
									else
										hide(cat[i].value);
								//	}
								}				
							
						}
					}
				}else{
				for(var i=0;i<cat.length;i++){
					//if (cat[i].value==catvalue){
						if (cat[i].checked==true)
							show(cat[i].value);
						else
							hide(cat[i].value);
					//	}
					}				
				}
			}}

}
function show(catvalue){if (catvalue=="10"){for(var i=0;i<gmarkers10.length;i++){gmarkers10[i].show();
					}
			}if (catvalue=="11"){for(var i=0;i<gmarkers11.length;i++){gmarkers11[i].show();
					}
			}if (catvalue=="20"){for(var i=0;i<gmarkers20.length;i++){gmarkers20[i].show();
					}
			}if (catvalue=="30"){for(var i=0;i<gmarkers30.length;i++){gmarkers30[i].show();
					}
			}if (catvalue=="40"){for(var i=0;i<gmarkers40.length;i++){gmarkers40[i].show();
					}
			}if (catvalue=="50"){for(var i=0;i<gmarkers50.length;i++){gmarkers50[i].show();
					}
			}if (catvalue=="60"){for(var i=0;i<gmarkers60.length;i++){gmarkers60[i].show();
					}
			}if (catvalue=="70"){for(var i=0;i<gmarkers70.length;i++){gmarkers70[i].show();
					}
			}if (catvalue=="80"){for(var i=0;i<gmarkers80.length;i++){gmarkers80[i].show();
					}
			}if (catvalue=="90"){for(var i=0;i<gmarkers90.length;i++){gmarkers90[i].show();
					}
			}if (catvalue=="91"){for(var i=0;i<gmarkers91.length;i++){gmarkers91[i].show();
					}
			}if (catvalue=="92"){for(var i=0;i<gmarkers92.length;i++){gmarkers92[i].show();
					}
			}if (catvalue=="93"){for(var i=0;i<gmarkers93.length;i++){gmarkers93[i].show();
					}
			}if (catvalue=="94"){for(var i=0;i<gmarkers94.length;i++){gmarkers94[i].show();
					}
			}if (catvalue=="19"){for(var i=0;i<gmarkers19.length;i++){gmarkers19[i].show();
					}
			}}
function hide(catvalue){if (catvalue=="10"){for(var i=0;i<gmarkers10.length;i++){gmarkers10[i].hide();
					}
			}if (catvalue=="11"){for(var i=0;i<gmarkers11.length;i++){gmarkers11[i].hide();
					}
			}if (catvalue=="20"){for(var i=0;i<gmarkers20.length;i++){gmarkers20[i].hide();
					}
			}if (catvalue=="30"){for(var i=0;i<gmarkers30.length;i++){gmarkers30[i].hide();
					}
			}if (catvalue=="40"){for(var i=0;i<gmarkers40.length;i++){gmarkers40[i].hide();
					}
			}if (catvalue=="50"){for(var i=0;i<gmarkers50.length;i++){gmarkers50[i].hide();
					}
			}if (catvalue=="60"){for(var i=0;i<gmarkers60.length;i++){gmarkers60[i].hide();
					}
			}if (catvalue=="70"){for(var i=0;i<gmarkers70.length;i++){gmarkers70[i].hide();
					}
			}if (catvalue=="80"){for(var i=0;i<gmarkers80.length;i++){gmarkers80[i].hide();
					}
			}if (catvalue=="90"){for(var i=0;i<gmarkers90.length;i++){gmarkers90[i].hide();
					}
			}if (catvalue=="91"){for(var i=0;i<gmarkers91.length;i++){gmarkers91[i].hide();
					}
			}if (catvalue=="92"){for(var i=0;i<gmarkers92.length;i++){gmarkers92[i].hide();
					}
			}if (catvalue=="93"){for(var i=0;i<gmarkers93.length;i++){gmarkers93[i].hide();
					}
			}if (catvalue=="94"){for(var i=0;i<gmarkers94.length;i++){gmarkers94[i].hide();
					}
			}if (catvalue=="19"){for(var i=0;i<gmarkers19.length;i++){gmarkers19[i].hide();
					}
			}}
function cat_item(map_title,map_lat,map_lon,map_body,map_cat,posturl,map_pic,conpic,icuitem,kml,icon_type,postdate,address,dept){
		var iconitem= new GIcon();
		if (parseInt(icon_type)==1){
			iconitem.image = "../public/Data/"+map_pic;
			iconitem.iconSize = new GSize(24, 38);
			iconitem.iconAnchor = new GPoint(12, 38);
			iconitem.infoWindowAnchor = new GPoint(24, 0);		
		}
		else{
			iconitem.image = "GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/images/"+map_pic;
			iconitem.iconSize = new GSize(24, 38);
			iconitem.iconAnchor = new GPoint(12, 38);
			iconitem.infoWindowAnchor = new GPoint(24, 0);
		}
		var itemLon=map_lon;
		var itemLat=map_lat;
		var itemLatLng=new GLatLng(itemLon, itemLat);

		var item=new GMarker(itemLatLng,iconitem);
		//gmarkers[gmarkers.length] = item;
		GEvent.addListener (item, "click", function() {
		show_icuitem=icuitem;
		//setCookie("show_icuitem",show_icuitem);
			var content_title=map_title;
			content_title=content_title.replace(/\"/g,"");
			var content_body=map_body;
			content_body=content_body.replace(/\"/g,"");
			var text="";
			if (address!="")
				address="<br/><br/>"+address;
		if (conpic!="")
			{	
				if ( piccon(conpic)==2 ){
						text="<div style='width:300px;height:200px;overflow:auto'   align='left'><b style='font-size:1.2em'>"+content_title+"</b><br/>資料來源："+dept+"<br/>資料更新時間："+postDate+"<br/><br/><image width='200px' src='"+conpic+"'><br/>"+content_body+"    <a href='../"+posturl+"' >詳細資訊>></a><br/><br/>"+address+"</div>";
				}
				if( piccon(conpic)==1 ) {
						text="<div style='width:300px;height:200px;overflow:auto'   align='left'><b style='font-size:1.2em'>"+content_title+"</b><br/>資料來源："+dept+"<br/>資料更新時間："+postDate+"<br/><br/><image width='200px' src='public/attachment/"+conpic+"'><br/>"+content_body+"   <a href='../"+posturl+"' >詳細資訊>></a><br/><br/>"+address+"</div>";
				}
			}else
			text="<div style='width:300px;height:200px;overflow:auto'   align='left'><b style='font-size:1.2em'>"+content_title+"</b><br/>資料來源："+dept+"<br/>資料更新時間："+postdate+"<br/><br/>"+content_body+"   <a href='../"+posturl+"' >詳細資訊>></a>"+address+"</div>";		
		
			myMap.openInfoWindowHtml (itemLatLng,text);
		});
		//myMap.setZoom(13);
		myMap.addOverlay(item);
		if (kml!='' && kml.toLowerCase().substr(kml.length-3,3)=='kml') {
			var geoXML = new GGeoXml("http://tcgwww.taipei.gov.tw/public/data/"+kml);
			//alert(geoXML);
			myMap.addOverlay(geoXML);
		}
}

function popup_cat_item(map_title,map_lat,map_lon,map_body,posturl,conpic,kml,postdate,address,dept){
		var itemLatLng=new GLatLng(map_lon, map_lat);
			var content_title=map_title;
			content_title=content_title.replace(/\"/g,"");
			var content_body=map_body;
			content_body=content_body.replace(/\"/g,"");
			var text="";
			if (address!="")
				address="<br/><br/>"+address;			
		if (conpic!="")
			{	
				if ( piccon(conpic)==2 ){
						text="<div style='width:300px;height:200px;overflow:auto'   align='left'><b style='font-size:1.2em'>"+content_title+"</b><br/>資料來源："+dept+"<br/>資料更新時間："+postDate+"<br/><br/><image width='200px' src='"+conpic+"'><br/>"+content_body+"    <a href='../"+posturl+"' >詳細資訊>></a>"+address+"</div>";
				}
				if( piccon(conpic)==1 ) {
						text="<div style='width:300px;height:200px;overflow:auto'   align='left'><b style='font-size:1.2em'>"+content_title+"</b><br/>資料來源："+dept+"<br/>資料更新時間："+postDate+"<br/><br/><image width='200px' src='public/attachment/"+conpic+"'><br/>"+content_body+"   <a href='../"+posturl+"' >詳細資訊>></a>"+address+"</div>";
				}
			}else
			text="<div style='width:300px;height:200px;overflow:auto'  align='left'><b style='font-size:1.2em'>"+content_title+"</b><br/>資料來源："+dept+"<br/>資料更新時間："+postdate+"<br/><br/>"+content_body+"   <a href='../"+posturl+"' >詳細資訊>></a>"+address+"</div>";

			myMap.openInfoWindow(itemLatLng,text);
	var this_infoWindow=myMap.getInfoWindow();
	GEvent.addListener(this_infoWindow,"closeclick",function(){
		GEvent.clearListeners(this_infoWindow,"closeclick");		
		show_icuitem="";
		//setCookie("show_icuitem",show_icuitem);		
	});
		if (kml!='' && kml.toLowerCase().substr(kml.length-3,3)=='kml') {
			var geoXML = new GGeoXml("http://tcgwww.taipei.gov.tw/public/data/"+kml);
			//alert(geoXML);
			myMap.addOverlay(geoXML);
		}	
}
function show_caticon(){
	for (var i=0;i<gmarkers_cat.length;i++){
		gmarkers_cat[i].show();
	}
}
function load() {
var cat_html=document.getElementById("cat_html");
if (show_cat=="Y")
	cat_html.style.display="";
else
	cat_html.style.display="none";	
}

function show_icon(start,map_pic,map_title,map_hit,map_push,map_lat,map_lon,icuitem,conpic,spctnode,body,kml,icon_type,postdate,address,dept){
//alert(start+","+map_pic+","+map_title+","+map_hit+","+map_push+","+map_lat+","+map_lon+","+spctnode);
	if (show_first=="Y" && s_id=="0"){
		if (start==1 ){
		 item(map_pic,map_title,map_hit,map_push,map_lat,map_lon,icuitem,conpic,spctnode,body,kml,icon_type,postdate,address,dept);
		 Loc_center(map_pic,map_title,map_hit,map_push,map_lat,map_lon,icuitem,conpic,spctnode,body,postdate,address,dept);
		 }else
		 item(map_pic,map_title,map_hit,map_push,map_lat,map_lon,icuitem,conpic,spctnode,body,kml,icon_type,postdate,address,dept);
	}else if (s_id==icuitem){
		 item(map_pic,map_title,map_hit,map_push,map_lat,map_lon,icuitem,conpic,spctnode,body,kml,icon_type,postdate,address,dept);
		 Loc_center(map_pic,map_title,map_hit,map_push,map_lat,map_lon,icuitem,conpic,spctnode,body,postdate,address,dept);
		 }
	else
		item(map_pic,map_title,map_hit,map_push,map_lat,map_lon,icuitem,conpic,spctnode,body,kml,icon_type,postdate,address,dept);		 
}


function clearall(){
	clearitem();
	var cat=document.getElementsByName("Cat_type");
		for(var i=0;i<cat.length;i++){
		if (cat[i].checked){
			default_cat=cat[i].value;
		}
		cat[i].checked=false;
		}
		//setCookie("default_cat",default_cat);
		//setCookie("show_status","hide");
	showStatus=false;
	click_show=false;
}
function item(map_pic,map_title,map_hit,map_push,map_lat,map_lon,icuitem,conpic,spctnode,body,kml,icon_type,postdate,address,dept){
		var iconitem= new GIcon();
	if (parseInt(icon_type)==1){
		iconitem.image = map_pic;
		iconitem.iconSize = new GSize(24, 38);
		iconitem.iconAnchor = new GPoint(12, 24);
		iconitem.infoWindowAnchor = new GPoint(24, 0);	
	}
	else{
		iconitem.image = map_pic;
		iconitem.iconSize = new GSize(24, 38);
		iconitem.iconAnchor = new GPoint(12, 38);
		iconitem.infoWindowAnchor = new GPoint(24, 0);	
	}
		var itemLon=map_lon;
		var itemLat=map_lat;
		var itemLatLng=new GLatLng(itemLon, itemLat);
		var text="";
		var item=new GMarker(itemLatLng,iconitem);
		GEvent.addListener (item, "click", function() {
			var content_title=map_title;
			content_title=content_title.replace(/\"/g,"");
			var content_body=body;
			//content_body=content_body.replace(/\"/g,"");
			var content_icuitem=icuitem;
			if (address!="")
				address="<br/><br/>"+address;			
			if (conpic!=""){	
				if ( piccon(conpic)==2 ){
						text="<div style='width:300px;height:200px;overflow:auto'   align='left'><b style='font-size:1.2em'>"+content_title+"</b><br/>資料來源："+dept+"<br/>資料更新時間："+postDate+"<br/><br/><image width='200px' src='"+conpic+"'><br/>"+unescape(content_body)+"   <a href='../ct.asp?mp="+mp+"&xItem="+icuitem+"&ctNode="+spctnode+"' >詳細資訊>></a>"+address+"</div>";
				}
				if( piccon(conpic)==1 ) {
						text="<div style='width:300px;height:200px;overflow:auto'   align='left'><b style='font-size:1.2em'>"+content_title+"</b><br/>資料來源："+dept+"<br/>資料更新時間："+postDate+"<br/><br/><image width='200px' src='public/attachment/"+conpic+"'><br/>"+unescape(content_body)+"   <a href='../ct.asp?mp="+mp+"&xItem="+icuitem+"&ctNode="+spctnode+"' >詳細資訊>></a>"+address+"</div>";
				}
			}else

			text="<div style='width:300px;height:200px;overflow:auto'  align='left'><b style='font-size:1.2em'>"+content_title+"</b><br/>資料來源："+dept+"<br/>資料更新時間："+postdate+"<br/><br/>"+unescape(content_body)+"   <a href='../ct.asp?mp="+mp+"&xItem="+icuitem+"&ctNode="+spctnode+"' >詳細資訊>></a>"+address+"</div>";
		myMap.openInfoWindowHtml (itemLatLng,text);
		});

		myMap.addOverlay(item);	
		if (kml!='' && kml.toLowerCase().substr(kml.length-3,3)=='kml') {
			var geoXML = new GGeoXml("http://tcgwww.taipei.gov.tw/public/data/"+kml);
			//alert(geoXML);
			myMap.addOverlay(geoXML);
		}		
}
//第一筆事件的對話框
function Loc_center(map_pic,map_title,map_hit,map_push,map_lat,map_lon,icuitem,conpic,spctnode,body,postdate,address,dept) {
	var text=""
	var content_title=map_title;
	content_title=content_title.replace(/\"/g,"");
			var content_body=body;
	//content_body=content_body.replace(/\"/g,"");
	var content_icuitem=icuitem;
			if (address!="")
				address="<br/><br/>"+address;	
			if (conpic!=""){	
				if ( piccon(conpic)==2 ){
						text="<div style='width:300px;height:200px;overflow:auto'   align='left'><b style='font-size:1.2em'>"+content_title+"</b><br/>資料來源："+dept+"<br/>資料更新時間："+postDate+"<br/><br/><image width='200px' src='"+conpic+"'><br/>"+unescape(content_body)+"   <a href='../ct.asp?mp="+mp+"&xItem="+icuitem+"&ctNode="+spctnode+"' >詳細資訊>></a>"+address+"</div>";
				}
				if( piccon(conpic)==1 ) {
						text="<div style='width:300px;height:200px;overflow:auto'   align='left'><b style='font-size:1.2em'>"+content_title+"</b><br/>資料來源："+dept+"<br/>資料更新時間："+postDate+"<br/><br/><image width='200px' src='public/attachment/"+conpic+"'><br/>"+unescape(content_body)+"   <a href='../ct.asp?mp="+mp+"&xItem="+icuitem+"&ctNode="+spctnode+"' >詳細資訊>></a>"+address+"</div>";
				}
			}else

			text="<div style='width:300px;height:200px;overflow:auto '  align='left'><b style='font-size:1.2em'>"+content_title+"</b><br/>資料來源："+dept+"<br/>資料更新時間："+postdate+"<br/><br/>"+unescape(content_body)+"   <a href='../ct.asp?mp="+mp+"&xItem="+icuitem+"&ctNode="+spctnode+"' >詳細資訊>></a>"+address+"</div>";
		
	var send_center=new GLatLng(map_lon,map_lat);
	myMap.setCenter(send_center);
	myMap.openInfoWindow(send_center,text);
}

function cat_ajax(catvalue,check_type){
	var zoom=myMap.getZoom().toString();
	if (ora_zoom==0)
		ora_zoom=parseInt(zoom);
	var bound_value=myMap.getBounds().toString();
	bound_value=bound_value.replace(/\)/g,"");
	bound_value=bound_value.replace(/\(/g,"");
	var comp_status=comp_bound(bound_value,drag_range);
	if (click_show==true)
		change_cat=true;
	/*
	alert(comp_status);	
	alert(ora_zoom!=parseInt(zoom));	
	alert(click_show);	
	alert(change_cat);		
	*/
	//setCookie("default_cat",catvalue);
	if ((comp_status==true || ora_zoom!=parseInt(zoom) || change_cat==true)){
	
	clearitem();
		$('ajaxLoading').style.display="block";
		var send_data="catvalue="+catvalue+"&check_type="+check_type+"&filter_ictunit="+filter_ictunit+"&bound_value="+bound_value+"&zoom="+zoom+"&mp="+mp;	
		/*var url="lbs_public/catlist_json.asp?"+send_data;
		var jSonRequest = new Json.Remote(url,{ onComplete: function(jsonObj){
			createmarkerJSON(jsonObj, catvalue);
			alert("類別查詢執行完畢!");
		}}).send();	
		*/
		var url="lbs_public/catlist2.asp?"+send_data;
		//alert(url);
		var myRequest = new Ajax(url,{
			method: 'get', 		
			onComplete: function(txt,xml) {
		drag_range=setrange(bound_value,zoom);		
				//alert(txt);
				createmarker(xml,catvalue);
				//alert("類別查詢執行完畢!");
				$('ajaxLoading').style.display="none";
			}
		});		
		myRequest.request();
	ora_zoom=parseInt(zoom);

	}
	click_show=false;
}	

function comp_bound(bound_value,drag_range){
	var compvalue=0;
	if (drag_range =="")
		return true;
	else {
		bound_arr=bound_value.split(",");
		drag_arr=drag_range.split(",");
		for(var i=0;i<bound_arr.length;i++){
			if (i==0 || i==1){
				if (parseFloat(bound_arr[i])>parseFloat(drag_arr[i]))
					compvalue++;
				}
			else{
				if (parseFloat(bound_arr[i])<parseFloat(drag_arr[i]))
					compvalue++;			
				}
		}	
			if (compvalue>0)
				return true;
			else
				return false;
	}

}
var httptext="http://";
function piccon(pic){
//0:什麼都不是 1:目前平台  2:影音平台圖片  3:wmv

var return_con=0;
if (pic!='' && pic.length>3){
	if (pic.toLowerCase().substr(pic.length-3,3)=='jpg')
		return_con=1;
	if (pic.toLowerCase().substr(pic.length-3,3)=='gif')
		return_con=1;
	if (pic.toLowerCase().substr(pic.length-3,3)=='png')
		return_con=1;
	if (pic.toLowerCase().substr(pic.length-3,3)=='jpeg')	
		return_con=1;
	if (pic.toLowerCase().substr(0,httptext.length)==httptext)
		return_con++;
	if (pic.toLowerCase().substr(pic.length-3,3)=='wmv' && pic.toLowerCase().substr(0,httptext.length)==httptext)	
		return_con=3;		
		
}

return return_con;
}
function setrange(boundvalue,zoom){
	range_arr=boundvalue.split(",");
	for (var i=0;i<range_arr.length;i++){
		if (i==0 || i==1)
			range_arr[i]=parseFloat(range_arr[i])+0.0019*Math.pow(2,18-parseInt(zoom));
		else
			range_arr[i]=parseFloat(range_arr[i])-0.0019*Math.pow(2,18-parseInt(zoom));			
	}	return range_arr[0]+","+range_arr[1]+","+range_arr[2]+","+range_arr[3];
}
function createmarkerJSON(jsonObj, catvalue){	 
	for(var i=0;i<jsonObj.block.item.length;i++){
		var icuitem = jsonObj.block.item[i].icuitem;
		var title = jsonObj.block.item[i].title;
		var xbody = jsonObj.block.item[i].xbody;
		var GtagLongitude = jsonObj.block.item[i].GtagLongitude;
		var GtagLatitude = jsonObj.block.item[i].GtagLatitude;
		var postUrl = jsonObj.block.item[i].postUrl;
		var pic = jsonObj.block.item[i].cat_pic;		
		cat_item(title,GtagLatitude,GtagLongitude,xbody,catvalue,postUrl,pic);
	}
  }	

function createmarker(xml,catvalue){	 
	var root = xml;
	var rsinfo = root.getElementsByTagName('RsInfo')[0];
	var block = rsinfo.getElementsByTagName('Block')[0];
	//document.getElementById("debug_sql").innerHTML=root.getElementsByTagName('debugSQL')[0].childNodes[0].nodeValue;
	var itemCount = block.getElementsByTagName('item').length ;	
	for( var itemIndex = 0; itemIndex < itemCount; itemIndex++ ){
		var item = block.getElementsByTagName('item')[itemIndex];
		var icuitem = item.getElementsByTagName('icuitem')[0].childNodes[0].nodeValue;
		var title = item.getElementsByTagName('title')[0].childNodes[0].nodeValue;
		var xbody = item.getElementsByTagName('xbody')[0].childNodes[0].nodeValue;
		var GtagLongitude = item.getElementsByTagName('GtagLongitude')[0].childNodes[0].nodeValue;
		var GtagLatitude = item.getElementsByTagName('GtagLatitude')[0].childNodes[0].nodeValue;
		var postUrl = item.getElementsByTagName('postUrl')[0].childNodes[0].nodeValue ;
		var conpic = item.getElementsByTagName('conpic')[0].childNodes[0].nodeValue ;
		//var conpic = "";
		var pic=item.getElementsByTagName('cat_pic')[0].childNodes[0].nodeValue ;
		var kml=item.getElementsByTagName('kml')[0].childNodes[0].nodeValue ;	
		var icon_type=item.getElementsByTagName('icon_type')[0].childNodes[0].nodeValue ;
		var postdate=item.getElementsByTagName('PostDate')[0].childNodes[0].nodeValue ;
		var address=item.getElementsByTagName('Address')[0].childNodes[0].nodeValue ;
		var dept=item.getElementsByTagName('Dept')[0].childNodes[0].nodeValue ;
		//map insert POI 標點	
		//alert(postdate);
		//var c_show_icuitem=getCookie("show_icuitem");
		if (show_icuitem!="") {
			if (parseInt(icuitem)==parseInt(show_icuitem))
				//alert(icuitem);
				popup_cat_item(title,GtagLatitude,GtagLongitude,xbody,postUrl,conpic,kml,postdate,address,dept);
		}
		cat_item(title,GtagLatitude,GtagLongitude,xbody,catvalue,postUrl,pic,conpic,icuitem,kml,icon_type,postdate,address,dept);
	}
	//alert(pic);
  }	
  
 //check經緯度是否有生活圈	
	function check_point_LC(lat,lon){

		var send_data="lat="+lat+"&lon="+lon;
		var url="lbs/ws_latlon_to_LC.asp?"+send_data;
		
		var myRequest = new Ajax(url,{
			method: 'get', 		
			onComplete: function(txt,xml) {
			//alert(txt);
			if(txt != "" || txt!="0,0"){
			url="sp.asp?xdurl=lbs/addcontent_sug.asp&phase=add&iBaseDsd=53&sugCat_type=A0002,F4007&mp="+mp+"&ctNode="+news_spctnode+"&ctUnitid="+filter_ictunit+"&lat="+lat+"&lon="+lon;
			//ctUnitId=6445&iBaseDsd=53&sugCat_type=A0002&mp=106035&ctNode=7208
					window.location.href=url;
			}
				else
					alert("此經緯度不屬於台北市區，請重新定位!");
		
			}
		});		
		myRequest.request();
		
	}
  
  
</script><div class="lbs"><span id="out"></span><br><span id="debug_sql"></span><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<div class="sub">
<h3><img border="0" title="*" alt="*" src="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/images/bullet3.gif">
			河濱公園地標資訊</h3>
</div>
<div id="ajaxLoading" class="loading" style="display:none">載入中...</div>
<div class="googleMap" id="map_canvas"></div>
</td>
</tr>
<tr>
<td><table class="list">
<tr>
<td align="left" colspan="3"><span id="cat_html" style="display:none"><input onclick="cat_icon(this.value)" onkeypress="cat_icon(this.value)" type="radio" name="Cat_type" id="Cat_type" style="background-color:transparent" value="10"><img style="width:24px;height:38px" border="0" src="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/images/icon_food.gif" alt="美食" title="美食">美食<input onclick="cat_icon(this.value)" onkeypress="cat_icon(this.value)" type="radio" name="Cat_type" id="Cat_type" style="background-color:transparent" value="11"><img style="width:24px;height:38px" border="0" src="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/images/icon_money.gif" alt="金融" title="金融">金融<input onclick="cat_icon(this.value)" onkeypress="cat_icon(this.value)" type="radio" name="Cat_type" id="Cat_type" style="background-color:transparent" value="20"><img style="width:24px;height:38px" border="0" src="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/images/icon_shop.gif" alt="購物" title="購物">購物<input onclick="cat_icon(this.value)" onkeypress="cat_icon(this.value)" type="radio" name="Cat_type" id="Cat_type" style="background-color:transparent" value="30"><img style="width:24px;height:38px" border="0" src="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/images/icon_play.gif" alt="娛樂" title="娛樂">娛樂<input onclick="cat_icon(this.value)" onkeypress="cat_icon(this.value)" type="radio" name="Cat_type" id="Cat_type" style="background-color:transparent" value="40"><img style="width:24px;height:38px" border="0" src="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/images/icon_traffic.gif" alt="交通" title="交通">交通<input onclick="cat_icon(this.value)" onkeypress="cat_icon(this.value)" type="radio" name="Cat_type" id="Cat_type" style="background-color:transparent" value="50"><img style="width:24px;height:38px" border="0" src="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/images/icon_teach.gif" alt="教育" title="教育">教育<input onclick="cat_icon(this.value)" onkeypress="cat_icon(this.value)" type="radio" name="Cat_type" id="Cat_type" style="background-color:transparent" value="60"><img style="width:24px;height:38px" border="0" src="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/images/icon_leisure.gif" alt="休閒" title="休閒">休閒<input onclick="cat_icon(this.value)" onkeypress="cat_icon(this.value)" type="radio" name="Cat_type" id="Cat_type" style="background-color:transparent" value="70"><img style="width:24px;height:38px" border="0" src="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/images/icon_culture.gif" alt="文化" title="文化">文化<input onclick="cat_icon(this.value)" onkeypress="cat_icon(this.value)" type="radio" name="Cat_type" id="Cat_type" style="background-color:transparent" value="80"><img style="width:24px;height:38px" border="0" src="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/images/icon_medical.gif" alt="醫療" title="醫療">醫療<input onclick="cat_icon(this.value)" onkeypress="cat_icon(this.value)" type="radio" name="Cat_type" id="Cat_type" style="background-color:transparent" value="90"><img style="width:24px;height:38px" border="0" src="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/images/icon_city.gif" alt="市府資訊" title="市府資訊">市府資訊<input type="button" onkeypress="clearall();" onclick="clearall();" title="隱藏" alt="隱藏" value="隱藏"><input type="button" onkeypress="cat_list();" onclick="cat_list();" title="顯示" alt="顯示" value="顯示"></span></td>
</tr>
<tr>
<td align="left" colspan="3" id="subcaticon" style="display:none">
</td>
</tr>
<tr>
<td align="right" colspan="3"><a href="icons.htm" target="_blank">圖例說明</a></td>
</tr>
<tr>
</tr>
</table>
</td>
</tr>
</table>
<div align="right" style="padding-right:10px;"><a href="lp.asp?ctNode=7189&CtUnit=6445&BaseDSD=53&mp=106035"><img border="0" src="GIPDSD/xslGip/xslExport/106035/RP%5F2010v2/images/more.png
	" title="more" alt="more"></a></div>
</div>
</div>
<table summary="layout table" class="clear">
<tr>
<td class="leftblock">
<div id="zone.content121"></div>
</td>
<td class="rightblock">
<div id="zone.content122"></div>
</td>
</tr>
</table>
<table summary="layout table" class="clear">
<tr>
<td class="col3block">
<div id="zone.content131"></div>
</td>
<td class="col3block">
<div id="zone.content132"></div>
</td>
<td class="col3block">
<div id="zone.content133"></div>
</td>
</tr>
</table>
<div id="zone.content21"></div>
<table summary="layout table" class="clear">
<tr>
<td class="leftblock">
<div id="zone.content221"></div>
</td>
<td class="rightblock">
<div id="zone.content222"></div>
</td>
</tr>
</table>
<table summary="layout table" class="clear">
<tr>
<td class="col3block">
<div id="zone.content231"></div>
</td>
<td class="col3block">
<div id="zone.content232"></div>
</td>
<td class="col3block">
<div id="zone.content233"></div>
</td>
</tr>
</table>
<div id="zone.content31"></div>
<table summary="layout table" class="clear">
<tr>
<td class="leftblock">
<div id="zone.content321"></div>
</td>
<td class="rightblock">
<div id="zone.content322"></div>
</td>
</tr>
</table>
<table summary="layout table" class="clear">
<tr>
<td class="col3block">
<div id="zone.content331"></div>
</td>
<td class="col3block">
<div id="zone.content332"></div>
</td>
<td class="col3block">
<div id="zone.content333"></div>
</td>
</tr>
</table>
</td>
<td class="rightbg">
<div class="side">
<div class="accesskey">
<a href="/sitemap.asp?mp=106035" accesskey="R" title="右方相關資訊區塊">:::</a>
</div>
<div id="zone.SideBarRight"><div class="headline_r">
<h2><span><a href="np.asp?ctNode=41114&mp=106035" title="最新消息">最新消息</a></span></h2>
<div class="body">
<ul>
<li><a href="ct.asp?xItem=23744114&ctNode=41114&mp=106035" title="二二八和平公園配合總統府於101年5月19日凌晨1時至5月20日中午12時止管制">二二八和平公園配合總統府於101年5月19日凌晨1時至5月20日中午12時止管制</a>
						&nbsp;<span class="date">2012-05-15</span></li>
<li><a href="ct.asp?xItem=23711813&ctNode=41114&mp=106035" title="臺北市下水道橋樑隧道附掛纜線施工管理辦法(草案)訂定總說明">臺北市下水道橋樑隧道附掛纜線施工管理辦法(草案)訂定總說明</a>
						&nbsp;<span class="date">2012-05-15</span></li>
</ul>
<div class="more leftimg"><a href="np.asp?ctNode=41114&mp=106035" title="更多最新消息">更多最新消息</a></div>
</div>
<div class="foot">
</div>
</div><style>
.img_m {
margin:5px 0px 0px 40px;
}
</style>
<div class="img_m">
<p align=center><A href=http://www.riversidepark.taipei.gov.tw/ct.asp?xItem=1880695&ctNode=34180&mp=106035 alt=影音活動說明>詳2011環遊臺北111KM活動影音介紹</a><BR>
<object type="video/x-ms-wmv" data="http://mredirect.taipei.gov.tw/redirect/balancer/wms/KMStorage/AD/87/5F4471EDD443-52FC2C98-77BC-11E0-AD87/C44FF451-1B9F-FA8F-A3CB-69D6E55BC69.wmv
" width="320" height="290">
<param name="src" value="http://mredirect.taipei.gov.tw/redirect/balancer/wms/KMStorage/AD/87/5F4471EDD443-52FC2C98-77BC-11E0-AD87/C44FF451-1B9F-FA8F-A3CB-69D6E55BC69.wmv"/>
<param name="autostart" value="1" />
<param name="controller" value="1" />
<param name="qtsrcdontusebrowser" value="1" />
<param name="enablejavascript" value="1" />
<p>2011環遊臺北111KM活動影音</p>
</object>
</p></div><div class="headline">
<h2><span><a href="np.asp?ctNode=7209&mp=106035" title="自行車地標 相簿">自行車地標 相簿</a></span></h2>
<div class="body">
<h3><a href="ct.asp?xItem=70472&ctNode=7209&mp=106035" title="天空與街道">天空與街道</a></h3>
<h3><a href="ct.asp?xItem=70471&ctNode=7209&mp=106035" title="貓與美女">貓與美女</a></h3>
<h3><a href="ct.asp?xItem=70470&ctNode=7209&mp=106035" title="老式窗戶">老式窗戶</a></h3>
<h3><a href="ct.asp?xItem=70469&ctNode=7209&mp=106035" title="高鐵進站">高鐵進站</a></h3>
<h3><a href="ct.asp?xItem=70468&ctNode=7209&mp=106035" title="取締飛車黨">取締飛車黨</a></h3>
<h3><a href="ct.asp?xItem=70467&ctNode=7209&mp=106035" title="小布的家">小布的家</a></h3>
<h3><a href="ct.asp?xItem=70466&ctNode=7209&mp=106035" title="陽臺上的苦瓜">陽臺上的苦瓜</a></h3>
<h3><a href="ct.asp?xItem=70465&ctNode=7209&mp=106035" title="高鐵臺中站">高鐵臺中站</a></h3>
<h3><a href="ct.asp?xItem=70464&ctNode=7209&mp=106035" title="電車">電車</a></h3>
<ul>
</ul>
<div class="more leftimg"><a href="np.asp?ctNode=7209&mp=106035" title="更多自行車地標 相簿">更多自行車地標 相簿</a></div>
</div>
<div class="foot">
</div>
</div>
<div class="headline">
<h2><span>BLOG最新文章</span></h2>
<div class="body">
<ul>
<li><a href="http://tcgwww.taipei.gov.tw/public/Data/171814542671.pdf" title="彩虹橋---散步、騎車 享受晚風習習, 另開新視窗." target="_newGIP">彩虹橋---散步、騎車 享受晚風習習</a><span class="date">2011-07-18</span></li>
<li><a href="http://tcgwww.taipei.gov.tw/ct.asp?xItem=1709306&ctNode=42273&mp=cm0067" title="花海。相遇在大湖山莊街, 另開新視窗." target="_newGIP">花海。相遇在大湖山莊街</a><span class="date">2011-02-08</span></li>
<li><a href="http://tcgwww.taipei.gov.tw/ct.asp?xItem=1631289&ctNode=42273&mp=cm0067" title="繽紛萬象盡在臺北河濱, 另開新視窗." target="_newGIP">繽紛萬象盡在臺北河濱</a><span class="date">2011-01-05</span></li>
<li><a href="http://tcgwww.taipei.gov.tw/ct.asp?xItem=1191430&ctNode=42273&mp=cm0067" title="2010臺北河濱公園嬉遊趣, 另開新視窗." target="_newGIP">2010臺北河濱公園嬉遊趣</a><span class="date">2010-06-03</span></li>
</ul>
<div class="more leftimg"><a href="http://tcgwww.taipei.gov.tw/mp.asp?mp=cm0067" title="更多BLOG最新文章" target="_new">更多BLOG最新文章</a></div>
</div>
<div class="foot"></div>
</div>
<div class="headline">
<h2>活動花絮</h2>
<div class="body">
<table>
<tr><td>
<a href="/lp.asp?ctNode=20689&CtUnit=11722&BaseDSD=7&mp=106035">
雙園河濱
<img src="/public/981822572244.jpg" style="width:85px;" alt="雙園河濱" title="雙園河濱" />
</a>
</td><td>
<a href="/lp.asp?ctNode=20684&CtUnit=11717&BaseDSD=7&mp=106035">
福和河濱
<img src="/public/981822431760.jpg" style="width:85px;" alt="福和河濱" title="福和河濱" />
</a>
</td><td>
<a href="/lp.asp?ctNode=20691&CtUnit=11724&BaseDSD=7&mp=106035">
延平河濱
<img src="/public/981822595756.jpg" style="width:85px;" alt="延平河濱" title="延平河濱" />
</a>
</td></tr><tr><td>
<a href="/lp.asp?ctNode=20685&CtUnit=11718&BaseDSD=7&mp=106035">
古亭河濱
<img src="/public/981822452289.jpg" style="width:85px;" alt="古亭河濱" title="古亭河濱" />
</a>
</td><td>
<a href="/lp.asp?ctNode=20690&CtUnit=11723&BaseDSD=7&mp=106035">
龍山河濱
<img src="/public/98182259431.jpg" style="width:85px;" alt="龍山河濱" title="龍山河濱" />
</a>
</td><td>
<a href="/lp.asp?ctNode=20356&CtUnit=11468&BaseDSD=7&mp=106035">
道南河濱
<img src="/public/911613391967.jpg" style="width:85px;" alt="道南河濱" title="道南河濱" />
</a>
</td></tr><tr><td>
<a href="/lp.asp?ctNode=20692&CtUnit=11725&BaseDSD=7&mp=106035">
福安河濱
<img src="/public/981823120.jpg" style="width:85px;" alt="福安河濱" title="福安河濱" />
</a>
</td><td>
<a href="/lp.asp?ctNode=20695&CtUnit=11728&BaseDSD=7&mp=106035">
雙溪河濱
<img src="/public/9818234974.jpg" style="width:85px;" alt="雙溪河濱" title="雙溪河濱" />
</a>
</td><td>
<a href="/lp.asp?ctNode=20687&CtUnit=11720&BaseDSD=7&mp=106035">
馬場町紀念
<img src="/public/981822491468.jpg" style="width:85px;" alt="馬場町紀念" title="馬場町紀念" />
</a>
</td></tr>
</table>
</div>
</div>
</div>
</div>
</td>
</tr>
</table>
<div id="zone.footer"><div class="footer">
<div class="copyright">
<ul>
</ul>
</div>
<p>地址：11008 台北市信義區市府路1號 電話：02-27208889<br/>Copyright 臺北市政府 最佳瀏覽畫面 1024x768　<span class="update">資料更新:<em>2012-04-20 11:56:57</em></span></p>
<div class="egovBox">
</div>
</div>
</div>
</div>
</body>
</html>

<script language=vbs>
	window.top.name = "w3FP"
</script>
