lastScrollY=0;
function scrollAD(){
	 var diffY;
	 if (document.documentElement && document.documentElement.scrollTop)
	 diffY = document.documentElement.scrollTop;
	 else if (document.body)
	 diffY = document.body.scrollTop
	 else {/*Netscape stuff*/}
	 percent=.1*(diffY-lastScrollY); 
	 if(percent>0)percent=Math.ceil(percent); 
	 else percent=Math.floor(percent); 

	 _$$("float_r").style.top=parseInt(_$$("float_r").style.top)+percent+"px";
	 _$$("float_l").style.top=parseInt(_$$("float_l").style.top)+percent+"px";
	 lastScrollY=lastScrollY+percent; 
}
 //在这句前加“//”可以让对联不滚动



function _$$(o) {
 return document.getElementById(o);
}
var ini=false;
function showhide(o,sh) {
 if(ini==true) {
  _$$(o+'2').style.display=(sh=='s')?'none':'block';
  _$$(o+'1').style.display=(sh=='s')?'block':'none';
 }
}
function hidediv(o) {
 _$$(o).style.display='none';
}

function showdiv(o) {
 _$$(o).style.display='block';
}

window.onload=function() {
	window.setTimeout("ini=true;showhide('float_l','h');showhide('float_r','h');",3000);	
	//window.setTimeout("scrollAD()",1);
}