PI=3.1416; 
if (window.screen.width==1024) 
{ 
center_x=400; 
center_y=300; 
} 
if (window.screen.width==800) 
{ 
center_x=300; 
center_y=200; 
} 
function _locate_layer(this_layer,cx,cy,x,y) 
{ 
this_layer.style.top=document.body.scrollTop+cy-y; 
this_layer.style.left=document.body.scrollLeft+cx+x; 
} 
// ly2:move sin----------------------------------------------------- 
_move_sin_ly2_run=1; 
_move_sin_ly2_i=0; 
function _move_sin_ly2(x_step,y_step) 
{ 
x=_move_sin_ly2_i; 
y=Math.sin(x/50)*y_step; 
_move_sin_ly2_i=_move_sin_ly2_i+x_step; 
_locate_layer(ly2,0,center_y,x,y); 
if (x>(window.screen.width-250)) _move_sin_ly2_i=0; 
} 
function _move_sin_ly2_pro() 
{ 
_move_sin_ly2(2,75); 
if (_move_sin_ly2_run) setTimeout("_move_sin_ly2_pro()",100); 
} 
function _move_sin_ly2_pro_pause() 
{ 
_move_sin_ly2_run=0; 
} 
function _move_sin_ly2_pro_play() 
{ 
_move_sin_ly2_run=1; 
_move_sin_ly2_pro(); 
} 
// ly2:move sin------------------------------------------------------ 
_move_sin_ly2_pro(); 