var imgheight

document.ns = navigator.appName == "Netscape"

window.screen.width>640 ? imgheight=200:imgheight=150



var rightAd=125	

var leftAd=2



function myload()

{

	if (navigator.appName == "Netscape")

	{

		document.dangdang.pageY=pageYOffset+imgheight;

		document.dangdang.pageX=+window.innerWidth-rightAd;

		mymove();

	}

	else

	{

		dangdang.style.top=document.body.scrollTop+imgheight;

		dangdang.style.left=document.body.offsetWidth-rightAd;

		mymove();

	}

}



function mymove()

{

	if(document.ns)

	{

		document.dangdang.top=pageYOffset+imgheight;

		document.dangdang.left=pageXOffset+window.innerWidth-rightAd;

		setTimeout("mymove();",50)

	}

	else

	{

		dangdang.style.top=document.body.scrollTop+imgheight;

		dangdang.style.left=document.body.scrollLeft+document.body.offsetWidth-rightAd;

		setTimeout("mymove();",50)

	}

}



function myload2()

{

	if (navigator.appName == "Netscape")

	{

		document.dangdang2.pageY=pageYOffset+imgheight;

		document.dangdang2.pageX=+leftAd;

		mymove2();

	}

	else

	{

		dangdang2.style.top=document.body.scrollTop+imgheight;

		dangdang2.style.left=document.body.scrollLeft+leftAd;

		mymove2();

	}

}



function mymove2()

{

	if(document.ns)

	{

		document.dangdang2.top=pageYOffset+imgheight;

		document.dangdang2.left=pageXOffset+leftAd;

		setTimeout("mymove2();",50)

	}

	else

	{

		dangdang2.style.top=document.body.scrollTop+imgheight;

		dangdang2.style.left=document.body.scrollLeft+leftAd;

		setTimeout("mymove2();",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)



function closeADS(Obj)

{

	eval(Obj).innerHTML="";

}




if (navigator.appName == "Netscape")// Netscape

{

	//document.write("<layer id=dangdang top=300 width=80 height=88><EMBED src='http://ad4.sina.com.cn/zhlx/lg-0417-hpright.swf' quality=high  WIDTH=80 HEIGHT=80 TYPE='application/x-shockwave-flash' wmode=opaque></EMBED></layer>");//?

	//document.write("<layer id=dangdang2 top=300 width=80 height=88><EMBED src='http://ad4.sina.com.cn/zhlx/lg-0417-hpright.swf' quality=high  WIDTH=80 HEIGHT=80 TYPE='application/x-shockwave-flash' wmode=opaque></EMBED></layer>");//

	//myload();

	//myload2();

}

else// IE

{

	
	document.write("<div id='dangdang' style='position: absolute;width:100;top:0;left:0;visibility: visible;z-index: 1'>")
	document.write("<table border='0' cellpadding='0' cellspacing='0' width='100' height='134' align='center'></table>")
	
	document.write("</div>");//?
	
	document.write("<div id='dangdang2' style='position: absolute;width:100;top:0;left:0;visibility: visible;z-index: 1'><table border='0' cellpadding='0' cellspacing='0' width='100' height='' align='center'><tr><td><img src='images/top.gif' alt='?' onclick='closeADS(\"dangdang2\")' style='cursor:hand;' ></td></tr><tr><td><table border='0' cellpadding='0' cellspacing='0' width='100%' height='' align='center'><tr height='20'><td background='images/middle.gif' align='center'> <a href='http://wpa.qq.com/msgrd?V=1&Uin=853308726&Site=scly517.com&Menu=yes' class='axl' target='_blank'><img border='0' SRC=http://wpa.qq.com/pa?p=1:853308726:4 alt='?'>旅游咨询一</a></td></tr><tr height='20'><td background='images/middle.gif' align='center' class='xl12'>028-85551888</td></tr><tr height='20'><td background='images/middle.gif' align='center'> <a href='http://wpa.qq.com/msgrd?V=1&Uin=997803996&Site=scly517.com&Menu=yes' class='axl' target='_blank'><img border='0' SRC=http://wpa.qq.com/pa?p=1:997803996:4 alt='?'>旅游咨询二</a></td></tr><tr height='20'><td background='images/middle.gif' align='center' class='xl12'>028-85590005</td></tr><tr height='20'><td background='images/middle.gif' align='center'><img border='0' SRC='images/fd005.gif'> -<a href='mailto:137874464@qq.com' class='axl'>电子邮件</a>- </td></tr><tr><td background='images/middle.gif' align='center' class='xl12'><img border='0' SRC='images/fd001.gif'> -<a href='content.asp?id=15' class='axl'>合同样本</a>- </td></tr><tr height='20'><td background='images/middle.gif' align='center' class='xl12'><img border='0' SRC='images/fd002.gif'> -<a href='content.asp?id=16' class='axl'>订金支付</a>- </td></tr><tr height='20'><td background='images/middle.gif' align='center' class='xl12'><img border='0' SRC='images/fd003.gif'> -<a href='content.asp?id=19' class='axl'>服务热线</a>- </td></tr><tr height='20'><td background='images/middle.gif' align='center' class='xl12'><img border='0' SRC='images/fd005.gif'> -<a href='content.asp?id=13' class='axl'>报名须知</a>- </td></tr><!--<tr height='20'><td background='images/middle.gif' align='center' class='xl12'><img border='0' SRC='images/fd004.gif'> -<a href='explain.php?cid=11012&id=25' class='axl'>常见问题</a>- </td></tr>--></table></td></tr><tr><td height='17' align='center'><img src='images/bottom.gif' border='0' ></td></tr>	</table></div>");//
	
	myload();
	myload2();
}


