	function down_stat(pingpaiid,jixing){
		var chid = getParam(location.search , 'chid');
		if(chid!=''){
			try{
				xl_pvManually('http://mobile.xunlei.com/func/down/?chid='+chid);
			}catch(e){}
		}else{
			try{
				xl_pvManually('http://mobile.xunlei.com/func/down/?chid=0');
			}catch(e){}
		}
		xl_pvManually('http://mobile.xunlei.com/load_all2.html?Brandid='+pingpaiid+'&Typeid='+jixing);
	}
	function getParam(url, param) {
		var reg = "/^.*[\\?|\\&]" + param + "\\=([^\\&]*)/";
		reg = eval(reg);
		var ret = url.match(reg);
		if (ret != null) {
			return decodeURIComponent(ret[1]);
		} else {
			return "";
		}
	}

	function getIndexUrlByChid(obj){
		var chid = getParam(location.search , 'chid');
		obj.href="index.html?chid="+chid;
	}

	function getUrlByChid(obj){
		var chid = getParam(location.search , 'chid');
		obj.href="load_all.html?chid="+chid;
	}
	
	function getAboutUrlByChid(obj){
		var chid = getParam(location.search , 'chid');
		obj.href="about.html?chid="+chid;
	}
	
	function getHisUrlByChid(obj){
		var chid = getParam(location.search , 'chid');
		obj.href="history.html?chid="+chid;
	}
