var accessURI;
function Data(arg0, arg1){
	this.uri=arg0;this.nodeId=arg1;
}
function callDynamicData(sid, index, isIndex){
	if(index==null){
		if(isIndex==null){
			accessURI = new Array(new Data("/storeBFIndex.do?id="+sid, "bf_index;bf_rq"));//人气综合
		}else{
			accessURI = new Array(new Data("/storeBFIndex.do?id="+sid, "bf_index;bf_rq"), new Data("/comment.do?method=findList&sid="+sid, "comment_list"));//, new Data("/notice.do?method=getLatestNotice", "notice_list")
			//accessURI[1] = "/comment_add.jsp,islogin";//点评
			//accessURI[2] = "/comment.do?method=findList&sid=" + sid+",comment_list";//点评
		}
		index = 0;
	}
	var _obj = null;
	if(index<accessURI.length){
		_obj=accessURI[index];
	}
	if(_obj!=undefined){
		if(index>1 && document.getElementById(_obj.nodeId)==undefined){
			index += 1;
			callDynamicData(sid, index);
		}else{
			remoteCall(_obj.uri+"&r="+Math.random(), "infoUpdate("+sid+","+index+",'"+_obj.nodeId+"')");
		}
	}
}
function infoUpdate(sid, index, node_id){
	if (request.readyState == 4){
		if (request.status == 200){
			var respText = request.responseText;
			if(node_id == "bf_index;bf_rq"){
				var al = respText.split(";");
				document.getElementById('bf_index').src="/images/net_store/stars/"+al[0]+"_star.gif";
				document.getElementById('bf_rq').innerHTML = al[1];
			}else{
				var node = document.getElementById(node_id);
				if(node!=null){
					node.innerHTML = respText;
				}
			}
		}
		index += 1;
		callDynamicData(sid, index);
	}
}
function change(n){
	if("wydp" == n){
		document.getElementById("wydp").src="/images/net_store/wydp_btnover.jpg";
		document.getElementById("wdly").src="/images/net_store/wdly_btn.jpg";
	}else{
		document.getElementById("wydp").src="/images/net_store/wydp_btn.jpg";
		document.getElementById("wdly").src="/images/net_store/wdly_btnover.jpg";
	}
}