/*	每秒時間取得更新
---------------------------------*/
/*t = 0;
function ShowTime() {
Dt = new Date() ;
DW = new Array("日","一","二","三","四","五","六") ;
now = Dt.getFullYear()+'年'+(Dt.getMonth()+1)+'月'+Dt.getDate()+'日 '+"星期" +DW[Dt.getDay()]+"<br>"+
Dt.getHours()+'時'+Dt.getMinutes()+'分'+Dt.getSeconds()+'秒 ';
document.getElementById('aa').innerHTML = now ;
}
t = setInterval("ShowTime()", 500);*/

/*	依日期取得頁面
---------------------------------*/
/*function GetTime() {
DD = new Date();
Year = DD.getYear();
Month = DD.getMonth() + 1;
Day = DD.getDate();*/
/*document.write(Year,"年",Month,"月",Day,"日");*/
/*document.write(Day)
}*/

/*	現在的作業系統為
------------------------------------*/
/*$(function() {
	if($.os.name == 'iphone') {
		$('p').html('現在的作業系統為「iPhone」版本。<br />OS：' + $.os.name + $.browser.name + location.replace('http://www.zeport.tw/mobile/iphone/'));
	} else if($.os.name == 'ipod') {
		$('p').html('現在的作業系統為「iPod(Touch)」版本。<br />OS：' + $.os.name + $.browser.name+ location.replace('http://www.zeport.tw/mobile/ipod.html'));
	} else if($.os.name == 'ipad') {
		$('p').html('現在的作業系統為「iPad」版本。<br />OS：' + $.os.name + $.browser.name+ location.replace('http://www.zeport.tw/mobile/ipad.html'));
	} else {
		$('p').html('現在的作業系統非「iPhone／iPod／iPad」版本。<br />OS：' + $.os.name + '<br />BROWSER：' + $.browser.name);
	}
});*/
	

/*	下拉選單控制iframe
---------------------------------*/
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


/*	Share on Facebook
---------------------------------*/
function fbs_click(u,t) {
window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false;
}

/*function fbs_click(){
javascript:var d=document,f='http://www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php?src=bm&v=4&i=1295927096&u='+e(l.href)+'&t='+e(d.title);1;try{if (!/^(.*\.)?facebook\.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z) {a=function() {if (!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=626,height=436'))l.href=f+p};if (/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0)
}*/

/*	Share on Facebook
---------------------------------*/
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-9205909-4']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();



