Index: /oceandb/jQuery_Prototype/css/index.css
===================================================================
--- /oceandb/jQuery_Prototype/css/index.css	(revision 112)
+++ /oceandb/jQuery_Prototype/css/index.css	(revision 113)
@@ -13,6 +13,12 @@
 #map-menu h3  { color: #03004D; font-size: 12px; }
 #map-menu ul  { background-color: #E6E6FF; }
-#loading      { color: #ff0000; font-szie: 14px; width: 100%; text-align: center; margin-top: 50px; }
-#map	      { background-color: #03004D; width: 80%; height: 100%; float: right; }
+#loading      { color: #ff0000; font-size: 14px; width: 100%; text-align: center; margin-top: 50px; }
+#map	      { background-color: #03004D; width: 80%; height: 81%; float: right; }
+
+/* timeline */
+/* #timemap      { padding: lem; } */
+#timelinecontainer      { width: 100%; height: 150px }
+#timeline     { width: 100%; height: 100%; font-size: 12px; background: #CCCCCC; }
+#mapcontainer { width: 100%; height: 100% }
 
 /* footer */
Index: /oceandb/jQuery_Prototype/css/theme/ui.all.css
===================================================================
--- /oceandb/jQuery_Prototype/css/theme/ui.all.css	(revision 112)
+++ /oceandb/jQuery_Prototype/css/theme/ui.all.css	(revision 113)
@@ -168,5 +168,4 @@
 	z-index: 1;
 	opacity:.7;
-	filter:Alpha(Opacity=70);
 }
 
@@ -449,5 +448,4 @@
 	position: absolute;
 	z-index: -1;
-	filter: mask();
 	top: -4px;
 	left: -4px;
Index: /oceandb/jQuery_Prototype/index.html
===================================================================
--- /oceandb/jQuery_Prototype/index.html	(revision 112)
+++ /oceandb/jQuery_Prototype/index.html	(revision 113)
@@ -9,10 +9,13 @@
     <link rel="stylesheet" type="text/css" href="css/index.css" />
     <link rel="stylesheet" type="text/css" href="css/theme/ui.all.css" />
-    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAAREq2HXjZzIdAyVORbKBYMhTfzQKfMm5eNRoty1ZKt0XEeQdtXxTxlSH6lZOV7UEfIym3ft5_EnXXDw" type="text/javascript"></script>
+    <script src="http://maps.google.com/maps?file=api&amp;v=2&amp;key=ABQIAAAATvnRv2oQAxn-YPOHmliCIBQnbLOIweY0OrZ98ac3uTCYqV26WxQx_Or8GoXY6RMKDJOKObfAHorwcA" type="text/javascript"></script>
+    <script type="text/javascript" src="http://static.simile.mit.edu/timeline/api/timeline-api.js"></script>
+    <script src="script/timemap.js" type="text/javascript"></script>
+    <script src="script/gzoom.js" type="text/javascript"></script>
     <script src="script/jquery.js"  language="javascript"></script>
     <script src="script/jquery-ui.js"  language="javascript"></script>
     <script src="script/oceandb.js" language="javascript"></script>
-  </head>
-  <body onUnload="GUnload()">
+
+  <body onLoad="onLoad();" onUnload="GUnload();">
     <div id="header">
       <div id="main-menu"> 
@@ -25,9 +28,17 @@
     </div>
     <div id="main">
-      <div id="map-menu"><div id="loading"><img src="image/loading.gif"><br/><br/>正在讀取...</div></div>
-      <div id="map"></div>
+      <div id="map-menu"><div id="loading"><img src="image/loading.gif"></br></br>正在讀取...</div></div>
+      <!-- <div id="map"></div> -->
+        <div id="timemap">
+	    <div id="timelinecontainer">
+		<div id="timeline"></div>
+	    </div>
+	    <div id="mapcontainer">
+		<div id="map"></div>
+	    </div>
+	</div>
     </div>
     <div id="footer">
-      <div id="copyright">Copyright 2008 <a href="http://www.tori.narl.org.tw/" target="_top">TORI</a> & <a href="http://www.nchc.org.tw/" target="_top">NCHC</a>, <a href="http://www.narl.org.tw/" target="_top">NARL</a>, Taiwan</div>
+      <div id="copyright">Copyright 2009 <a href="http://www.tori.narl.org.tw/" target="_top">TORI</a> & <a href="http://www.nchc.org.tw/" target="_top">NCHC</a>, <a href="http://www.narl.org.tw/" target="_top">NARL</a>, Taiwan</div>
       <div id="logos">
 	<a href="http://www.tori.narl.org.tw/" target="_top"><img src="image/tori_logo.png"></a>
Index: /oceandb/jQuery_Prototype/script/oceandb.js
===================================================================
--- /oceandb/jQuery_Prototype/script/oceandb.js	(revision 112)
+++ /oceandb/jQuery_Prototype/script/oceandb.js	(revision 113)
@@ -2,4 +2,5 @@
 var ge;   // Google Earth Plugin 物件
 var icon;
+var tm;   // Google Map2 Timeline
 
 // 註冊 onReady Event
@@ -8,5 +9,6 @@
 
   // 呼叫 Google Map API 載入地圖
-  load();
+  onLoad();
+  GUnload();
 
   var PARENT_ID = [];	  // 產生一個空的陣列
@@ -102,4 +104,5 @@
   // 設定地圖高度
   var map_height=document.documentElement.clientHeight - 68;
+  $('#mapcontainer').css( { height: map_height } );
   $('#main').css( { height: map_height } );
 
@@ -123,32 +126,120 @@
   // 當改變瀏覽器大小時，重新設定地圖高度
   var map_height=document.documentElement.clientHeight - 68;
+  $('#mapcontainer').css( { height: map_height } );
   $('#main').css( { height: map_height } );
-});
-
-function load() 
-{
-  if (GBrowserIsCompatible()) {
-    // 取得 DOM 中,名稱為 map 的元件
-    map = new GMap2(document.getElementById("map"));  
-    // 加入左上角比例尺規控制列
-    map.addControl(new GLargeMapControl());               
-    // 加入左下角比例尺狀態列
-    map.addControl(new GScaleControl());
-    // 加入右上角"地圖","衛星","混合地圖"按鈕
-    map.addControl(new GMapTypeControl());
-    // 加入右上角 Google Earth 的"地球"按鈕
-    map.addMapType(G_SATELLITE_3D_MAP);
-    // 設定預設經緯度北緯 23.8, 東經 121, 預設比例尺 100 公里(7)
-    map.setCenter(new GLatLng(23.8,121), 7);
-    // 設定預設底圖為"衛星"
-    map.setMapType(G_SATELLITE_MAP);
-    // 產生預設 icon 圖示
-    icon = new GIcon();
-    icon.image  = "image/icon.png";
-    icon.shadow = "image/icon.png";
-    icon.iconSize = new GSize(12, 12);
-    icon.shadowSize = new GSize(12, 12);
-    icon.iconAnchor = new GPoint(12, 12);
-    icon.infoWindowAnchor = new GPoint(12, 12);
-  }
+});          
+             
+function onLoad() {
+
+        tm = TimeMap.init({
+	mapId: "map",               // Id of map div element (required)
+	timelineId: "timeline",     // Id of timeline div element (required) 
+	datasets: [
+	    {
+                id: "artists",
+		title: "Artists",
+		theme: TimeMapDataset.orangeTheme({eventIconPath: "./image"}),
+		// note that the lines below are now the preferred syntax
+		type: "basic",
+		options: {
+		    items: [
+			{
+			  "start" : "1981",
+                          "end" : "2009-01-11",
+			  "point" : {
+			      "lat" : 23.8123,
+		              "lon" : 121.123
+			   },
+			  "title" : "中央氣象局",
+			  "options" : {
+			    // set the full HTML for the info window
+			    "infoHtml": "<div class='custominfostyle'><b>中央氣象局.</div>"
+			  }
+			},
+			{
+			  "start" : "1991",
+			  "end" : "2010",
+			  "point" : {
+			      "lat" : 22.5234,
+			      "lon" : 120.534
+			   },
+			 "title" : "海洋科技研究中心",
+			 "options" : { 
+			   // load HTML from another file via AJAX
+			   // Note that this may break in IE if you're running it with
+			   // a local file, due to cross-site scripting restrictions
+			   "infoUrl": "http://www.nchc.org.tw",
+			   "theme": TimeMapDataset.redTheme({eventIconPath: "./image"})
+			  }
+		        },  
+                        {
+			 "start" : "2001",
+			 "end" : "2020",
+			 "point" : {
+			     "lat" : 24.8345,
+			     "lon" : 122.845
+			  },
+			 "title" : "經濟部水利署",
+			 "options" : {
+			   // use the default title/description info window
+			   "description": "Renaissance Man",
+			   "theme": TimeMapDataset.yellowTheme({eventIconPath: "image/"})
+			  }
+			}
+                      ]
+		    }
+		}   
+	    ],
+	    bandIntervals: [      
+		Timeline.DateTime.DECADE, 
+		Timeline.DateTime.CENTURY
+	    ]  
+	});
+        // manipulate the timemap further here if you like
+	
+      if (GBrowserIsCompatible()) {
+
+	// 宣告 TimelineMap 的 MapID 對應到原本的 map
+	map = tm.map;  
+	// 取得 DOM 中,名稱為 map 的元件
+	map = new GMap2(document.getElementById("map"));
+	// 加入左上角比例尺規控制列
+	map.addControl(new GLargeMapControl3D());
+	// 鳥瞰圖
+	map.addControl(new GOverviewMapControl());
+	// Mouse Zoom In/Out
+	map.enableScrollWheelZoom();
+	// 加入左下角比例尺狀態列
+	map.addControl(new GScaleControl());
+	// 加入右上角"地圖","衛星","混合地圖"按鈕
+	map.addControl(new GMapTypeControl());
+	// Google Earth
+	map.addMapType(G_SATELLITE_3D_MAP);
+	// GZoom Control
+	map.addControl(new GZoomControl(
+		    {
+			    sButtonHTML:"<img src='image/zooming.gif' />",
+			    sButtonZoomingHTML:"<img src='image/zoom.jpg' />",
+			    oButtonStartingStyle:{width:'24px',height:'24px'},
+			    sColor:'#000',
+			    nOpacity:.2,
+			    sBorder:"2px solid red",
+			    nOverlayRemoveMS:'10000',
+			    bForceCheckResize:'true'
+		    }
+	),new GControlPosition(G_ANCHOR_BOTTOM_LEFT,new GSize(3,3)));
+	// 設定預設經緯度北緯 23.8, 東經 121, 預設比例尺 100 公里(7)
+	map.setCenter(new GLatLng(23.8,121), 7);
+	// 設定預設底圖為"衛星"
+	map.setMapType(G_SATELLITE_MAP);
+	// 產生預設 icon 圖示 
+	icon = new GIcon();   
+	icon.image  = "image/icon.png";
+	icon.shadow = "image/icon.png";
+	icon.iconSize = new GSize(12, 12);
+	icon.shadowSize = new GSize(12, 12);
+	icon.iconAnchor = new GPoint(12, 12);
+	icon.infoWindowAnchor = new GPoint(12, 12);
+      }
 }
+
