var imgheight 
var img=65;
document.ns = navigator.appName == "Netscape" 
window.screen.width>800 ? imgheight=100:imgheight=100 
function myload() 
{ 
document.dangdang=document.getElementById("dangdang");
if (navigator.appName == "Netscape") 
{document.dangdang.pageY=pageYOffset+window.innerHeight-imgheight-img; 
document.dangdang.pageX=+window.innerWidth-120; 
mymove(); 
} 
else 
{ 
dangdang.style.top=document.body.scrollTop+document.body.offsetHeight-imgheight-img; 
dangdang.style.left=document.body.offsetWidth-120; 
mymove(); 
} 
} 
function mymove() 
{ 
if(document.ns) 
{ 
document.dangdang.style.top=window.pageYOffset+window.innerHeight-imgheight-img-15+"px"; 
document.dangdang.style.left=window.pageXOffset+window.innerWidth-120+"px"; 
setTimeout("mymove();",50) 
} 
else 
{ 
dangdang.style.top=ieScrollVal(1)+document.body.offsetHeight-imgheight-img-15+"px"; 
dangdang.style.left=ieScrollVal(2)+document.body.offsetWidth-120+"px"; 
setTimeout("mymove();",50) 
} 
} 

function MM_reloadPage(init) { //reloads the window if Nav4 resized 
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { 
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} 
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); 
} 
MM_reloadPage(true) 




if (navigator.appName == "Netscape"&&islayer) 
{document.write("<layer id='dangdang' top='300' width='100' height='159'><EMBED src='002.swf' quality=high WIDTH=100 HEIGHT=159 TYPE='application/x-shockwave-flash id=changhongout wmode='transparent'></EMBED></layer>"); 
myload()} 
else 
{ 
document.write("<div id=dangdang style='position: absolute;width:80;top:150;left:578;visibility: visible;z-index: 1'><EMBED src='002.swf' quality=high WIDTH=100 HEIGHT=159 TYPE='application/x-shockwave-flash' id=changhongout wmode='transparent'></EMBED></div>"); 
myload() 
} 

