// float_r_img.js
// change var

var adSrc4 = "image/ad2.gif"
var adUrl4 = "#"
var adWidth4 = "100"
var adHeight4 = "300"

// change var
var weny4
if (screen.width==800)
{
weny4=100
}
else
{
weny4=320
}
var wenx4 = 3

document.ns = navigator.appName == "Netscape"
function load4()
{
if (navigator.appName == "Netscape") {
	document.netease4.pageY=pageYOffset+window.innerHeight-adHeight4-weny4;
	document.netease4.pageX=+window.innerWidth-adWidth4-wenx4;
	move4();
	}
else {
	netease4.style.top=document.body.scrollTop;
	netease4.style.left=document.body.offsetWidth-adWidth4-wenx4-20;
	move4();
	}
}

function move4() {
	if(document.ns) {
		document.netease4.top=pageYOffset+window.innerHeight-adHeight4-weny4;
		document.netease4.left=+window.innerWidth-adWidth4-wenx4;
		setTimeout("move4();",80)
	}
	else {
		netease4.style.top=document.body.scrollTop;
		netease4.style.left=document.body.offsetWidth-adWidth4-wenx4-20;
		setTimeout("move4();",80)
	}
}

function MM_reloadPage4(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_reloadPage4;
			}
		}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
		location.reload();
}

MM_reloadPage4(true)

if (navigator.appName == "Netscape") {
	document.write("<layer id=netease4 top=300 width=" + adWidth4 + " height=" + adHeight4 + " ><a href=" + adUrl4 + " target=_blank><img src=" + adSrc4 + " border=0 width=" + adWidth4 + " height=" + adHeight4 + "></a></layer>");
	load4();
	}
else  {
	document.write("<div id=netease4 style='top:0; position: absolute; width:" + adWidth4 + ";'>");
        document.write("");
        javastr="";
        javastr=javastr+"<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width=\"100\" height=\"300\">";
javastr=javastr+"              <param name=\"movie\" value=\"img/right.swf\">";
javastr=javastr+"              <param name=\"quality\" value=\"high\">";
javastr=javastr+"			  <PARAM NAME=\"wmode\" VALUE=\"opaque\">";
javastr=javastr+"              <embed src=\"img/right.swf\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"100\" height=\"300\"></embed></object>";
 
document.write(javastr);
        document.write("</div>");
	load4();
	}

