// float_r_img.js
// change var

var adSrc2 = "image/ad1.gif"
var adUrl2 = "#"
var adWidth2 = "108"
var adHeight2 = "300"

// change var
var weny2
if (screen.width==800)
{
weny2=100
}
else
{
weny2=320
}
var wenx2 = 3

document.ns = navigator.appName == "Netscape"
function load2()
{
if (navigator.appName == "Netscape") {
	document.netease2.pageY=pageYOffset+window.innerHeight-adHeight2-weny2;
	document.netease2.pageX=+window.innerWidth-adWidth2-wenx2;
	move2();
	}
else {
	netease2.style.top=document.body.scrollTop;
	netease2.style.left=wenx2;
	move2();
	}
}

function move2() {
	if(document.ns) {
		document.netease2.top=pageYOffset+window.innerHeight-adHeight2-weny2;
		document.netease2.left=+window.innerWidth-adWidth2-wenx2;
		setTimeout("move2();",80)
	}
	else {
		netease2.style.top=document.body.scrollTop;
		netease2.style.left=wenx2;
		setTimeout("move2();",80)
	}
}

function MM_reloadPage2(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_reloadPage2;
			}
		}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
		location.reload();
}

MM_reloadPage2(true)

if (navigator.appName == "Netscape") {
	document.write("<layer id=netease2 top=300 width=" + adWidth2 + " height=" + adHeight2 + " ><a href=" + adUrl2 + " target=_blank><img src=" + adSrc2 + " border=0 width=" + adWidth2 + " height=" + adHeight2 + "></a></layer>");
	load2();
	}
else  {
	document.write("<div id=netease2 style='top:0; position: absolute; width:" + adWidth2 + ";'>");
        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/left.swf\">";

javastr=javastr+"              <param name=\"quality\" value=\"high\">";
javastr=javastr+"			  <PARAM NAME=\"wmode\" VALUE=\"opaque\">";

javastr=javastr+"              <embed src=\"img/left.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>");
	load2();
	}

