/**
*	 AdUtil {广告系统工具类}
*   created by tonnyshen on 08/12/2009
*/
	function getCookie(cookieName){
		// cookies are separated by semicolons
		var aCookie = document.cookie.split(";");

		for (var i=0; i < aCookie.length; i++){
		// a name/value pair (a crumb) is separated by an equal sign
			var aCrumb = aCookie[i].split("=");
			if (cookieName == aCrumb[0])
				return unescape(aCrumb[1]);
		}
		// a cookie with the requested name does not exist
		return null;
	}
	
	/**
	* 判断是否有adTrace 跟踪Cookie
	*/
	function hasAdTrace(){
		return getCookie("ad_trace") != null;
	}
	
	/**
	* 调用adTrace后台服务
	*/
	function visit_trace(url,gameId,module){
	
			
		if (url =="")
			url = "http://trace.t2cn.com";
			
		url += "/trace/trace.shtml?method=trace";
		url += "&gameId="+gameId;
		url += "&module="+module;
		
		var img = new Image();
		img.src = url;
	}
