function huolituanTracker(container_id, site_id, keywords) {
	var container = document.getElementById(container_id);
	if (container) {
		var domain = 'www.huolituan.com';

		var now = new Date();
		var t = now.getFullYear() + '-' + (now.getMonth()+1) + '-' + now.getDate() + ' ' + now.getHours() + ':' + now.getMinutes() + ':' + now.getSeconds() + '.' + now.getMilliseconds()
		var seed = Math.random();
		var stats_url = 'http://' + domain + '/hit.img/?ver=1&url=' + encodeURIComponent(location.href) + '&referrer=' + encodeURIComponent(document.referrer) + '&site=' + escape(site_id) + '&datetime=' + escape(t) + '&seed=' + escape(seed) + '&container_id=' + escape(container_id);
		for (var i=0; i<keywords.length; i++) {
			keyword = keywords[i];
			stats_url += '&keywords=' + escape(keyword);
		}
		var objTransaction = YAHOO.util.Get.script(stats_url);
	}
}

function huolituan_wnd(rsp) {
	if (rsp.ads.length==0) {
		var container = document.getElementById(rsp.container_id);
		if (container) {
			container.setAttribute('style', 'display:none;');
		}
	}
	for (var i=0; i<rsp.ads.length; i++){
		var a = rsp.ads[i];
		var container = document.getElementById(rsp.container_id);
		if (container) {
			var aList = container.getElementsByTagName('ul');

			var aItem = document.createElement('li');
			aItem.innerHTML = a.text;
			aList[0].appendChild(aItem); 
		}
	}
}
