<!--
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 doAnchor(my_var){
	var mmvar;
	mmvar=my_var;
	
	//if((newwin==null)||(newwin.closed)){//
		newwin=document.open("PrjIntro.htm#"+mmvar,"navwin","toolbar=no,menubar=no,scrollbars=yes,resizable=yes,width=800,height=450");
	//	newwin.document.open("text/html");//
	//}//
	newwin.focus();
	//newwin.close();//
}

function getOs(){
   var OsObject = "";
   if(navigator.userAgent.indexOf("MSIE")>0) return "MSIE";
   
   if(isFirefox=navigator.userAgent.indexOf("Firefox")>0) return "Firefox";
   
   if(isSafari=navigator.userAgent.indexOf("Safari")>0) return "Safari";
   
   if(isCamino=navigator.userAgent.indexOf("Camino")>0) return "Camino";
   
   if(isMozilla=navigator.userAgent.indexOf("Gecko")>0) return "Gecko";
   
} 
var COS=getOs();
var CompanyMap='IEMap.htm';
if (COS=='MSIE'){
	CompanyMap='./IEMap.htm';
}else{
	CompanyMap='./FFMap.htm';	
}
function flyingmov(flyingmov_mov){
	var vSS='<br/><br/><br/><br/><p><div align="center"><object type="application/x-shockwave-flash" data="fly/player_flv_maxi.swf" width="600" height="400"><param name="movie" value="fly/player_flv_maxi.swf" /><param name="allowFullScreen" value="true" /><param name="FlashVars" value="flv=http%3A//taolin.myweb.hinet.net/'+mov+'&amp;width=600&amp;height=400&amp;autoplay=1" /></object></div></p>';
	document.getElementById('fly_win').innerHTML=vSS;						
}

function addbookmark() {
title = "陶林數值測量工程有限公司";
url = "http://www.taolin.com.tw/";
if (window.sidebar) {window.sidebar.addPanel(title, url,"");}
else if(window.external ) {window.external.AddFavorite( url, title);}
else if(window.opera && window.print) {return true;}}
	
//Gogole AJAX Feed
google.load("feeds", "1"); 
function initialize() {
    var feed = new google.feeds.Feed("http://www.cwb.gov.tw/rss/forecast/36_08.xml");
    var feedtxt="";
    feed.load(function(result) {
      if (!result.error) {
        var container = document.getElementById("feed");
        for (var i = 0; i < result.feed.entries.length; i++) {
          var entry = result.feed.entries[i];
          var div = document.createElement("div");          
					feedtxt+=entry.title+'　　';
				}
        div.appendChild(document.createTextNode(feedtxt+"　　　　資料來源：　中央氣象局"));
        container.appendChild(div);
      }
    });
  }
  google.setOnLoadCallback(initialize); 

//-->
