/*!
 * http://www.shamasis.net/projects/ga/
 * Refer jquery.ga.debug.js
 * Revision: 13
 */
(function(jQuery){
	jQuery.ga={};
	jQuery.ga.load=function(uid,callback){
		jQuery.ajax({type:'GET',
			url:(document.location.protocol=="https:"?"https://ssl":"http://www")+'.google-analytics.com/ga.js',
			cache:true,
			success:function(){ 
				if(typeof _gat==undefined){
					throw"_gat has not been defined";
				}
				t=_gat._getTracker(uid);
				bind();
				if(jQuery.isFunction(callback)){
					callback(t)
				}
				if(!jQuery.isFunction(callback)){
					t._trackPageview(callback)
				} else {
					t._trackPageview()
				}
			},
			dataType:'script',
			data:null
		})
	};
	var t;
	var bind=function(){
		if(noT()){
			throw"pageTracker has not been defined";
		}
		for(var jQuery1 in t){
			if(jQuery1.charAt(0)!='_')continue;
			jQuery.ga[jQuery1.substr(1)]=t[jQuery1]
		}
	};
	var noT=function(){
		return t==undefined
	}
})
(jQuery);

