var lastScrollY=0; 
function heartBeat(){
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);  
document.getElementById("buyfadleft").style.top=parseInt(document.getElementById("buyfadleft").style.top)+percent+"px"; 
document.getElementById("buyfadright").style.top=parseInt(document.getElementById("buyfadright").style.top)+percent+"px"; 
lastScrollY=lastScrollY+percent;  
} 

function adhide(names){document.getElementById(names).style.display='none';}
function screencl(names){if(screen.width<=800){adhide(names);}}



var buyfadleft = new Array();
var buyfadright = new Array();

if(window.screen.width<=1100)
{
	//小分辨率
	buyfadleft[1]="http://www.ebiotrade.com/web_images/2011422155551.swf";
	buyfadright[1]="http://www.ebiotrade.com/web_images/2011627141021.swf";
}
else
{
	//大分辨率
	buyfadleft[1]="http://www.ebiotrade.com/web_images/2011422155551.swf";
	buyfadright[1]="http://www.ebiotrade.com/web_images/2011627135913.swf";
}

buyfzcode="<div id='buyfadleft' style='left:15px;position: absolute;z-index:1;top:300px;'><div style='width:90px;height:240px;background:#fff;'><embed src='"+buyfadleft[1]+"'  type='application/x-shockwave-flash' width='90' height='240' id='sinad3'></div><div align='right' style='background:#fff;font-size:12px;'></div></div>";


buyfycode="<div id='buyfadright' style='right:9px;position: absolute;z-index:1;top:300px;'><div style='width:90px;height:240px;background:#fff;'><embed src='"+buyfadright[1]+"'  type='application/x-shockwave-flash' width='90' height='240' id='sinad4'></div><div align='right' style='background:#fff;font-size:12px;'></div></div>";

document.write(buyfzcode);
document.write(buyfycode);
screencl('buyfadleft');
screencl('buyfadright');
window.setInterval("heartBeat()",1);
