function vote(id){
	$.ajax({
		type:"post",
		url:"../home/vote",
		data:"c=1&id="+id,
		success:function(msg){
			//alert(msg);
			$("div#v"+id).html(msg);
		}
	})
}
function scrollup(o,d,c) {
	if (d == c) {
		var t = o.firstChild.cloneNode(true);
		o.removeChild(o.firstChild);
		o.appendChild(t);
		t.style.marginTop = o.firstChild.style.marginTop = '0px';
	}
	else {
		var s = 4, c = c + s, l = (c>=d ? c-d : 0);
		o.firstChild.style.marginTop = (-c+l) + 'px';
		window.setTimeout(function(){scrollup(o,d,c - l)}, 10);
	}
}
function lunx(t,c,len,id){
	
	for(i=1;i<=len;i++){
		if (id==i){
			$("li#"+t+i).css("background","url(../image/index2/listnav_at_bg.gif)");
			$("li#"+t+i).css("font-weight","bold");
			$("div#"+c+i).show();
		}else{
			$("li#"+t+i).css("background","url(../image/index2/listnav_nor_bg.gif)");
			$("li#"+t+i).css("font-weight","normal");
			$("div#"+c+i).hide();
		}
	}
}