$(document).ready(function() {
	$("div.visa_zhou_zhankai").click(function(){
			//content.parent().siblings("li.widget").find("ul:visible");
			if($(this).attr("class") == "visa_zhou_zhankai vista_add") {
				$(this).removeClass("vista_add");
				$(this).addClass("vista_delete");
			}
			else {
				$(this).removeClass("vista_delete");
				$(this).addClass("vista_add");
			}
			var first = $(this).parent().next();
			//alert(first.html());
			var second = $(this).parent().next().next();
			//alert(second.html());
			$(first).slideToggle("slow",function() {$(second).slideToggle('fast')});
			//$(this).removeClass(".vista_delete").addClass(".vista_add");
			return false;
	});
	
	window.setInterval("initMove()",10);
});

function initMove() {
	
	if(document.documentElement.scrollTop){
		y = document.documentElement.scrollTop;
	}
	else{
		y = document.body.scrollTop;
	}
	//alert(y);
	if(y >= 350) {
		var followObj = document.getElementById("serch_box");
		//document.getElementById("serch_box").style.top = (y+482)+"px";
		var dy=(document.documentElement.scrollTop-150-followObj.offsetTop)*0.08;
		//dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
		document.getElementById("serch_box").style.top=(followObj.offsetTop+dy)+"px";
	}
	else {
		document.getElementById("serch_box").style.top="267px";
	}
}