var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-11043042-3']);
_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);
})();

/*
var pageTracker;
(_$t=function (o,s){
if(o._gat) o.pageTracker=o._gat._getTracker(s);
else setTimeout(function(){_$t(o,s);},100);
})(this,_gaq[0][1]);
*/
// 同时支持百度统计和google分析
var _gat;
var pageTracker={
	_gid:_gaq[0][1],
	_ga:null,
	_baidu_proxy:'bdtj.htm',
	_baidu_frame:null,
	_trackPageview:function (url){
		if(_gat && this._ga===null){
			this._ga=_gat._getTracker(this._gid);
		}
		if(this._ga)this._ga._trackPageview(url);
		if(this._baidu!=''){
			if(this._baidu_frame===null){
				var bp=document.createElement('iframe');
				bp.id='BAIDU_TONGJI_PROXY';
				bp.style.border='none';
				bp.width=bp.height=0;
				document.getElementsByTagName('body')[0].appendChild(bp);
				this._baidu_frame=bp;
			}else{
				// 忽略百度第一次统计.一般是基于当前页面
				this._baidu_frame.src=this._baidu_proxy+'?u='+url;
			}
		}
	}
};
// tracker function willbe auto called if swfaddress installed

var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F7d92f4f4a1e5d40cd9b8eb6d277f8754' type='text/javascript'%3E%3C/script%3E"));

