/*

--------------------------------------------------------------------------------------------
Javascript 程序
--------------------------------------------------------------------------------------------



--------------------------------------------------------------------------------------------

--------------------------------------------------------------------------------------------

*/

var imgheight
document.ns = navigator.appName == "Netscape"
window.screen.width>640 ? imgheight=200:imgheight=150	//广告与页面顶部的距离

var rightAd=135	//右边广告与页面右边的距离
var leftAd=8	//左边广告与页面左边的距离

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></EMBED></layer>");//最右边
	//document.write("<layer ></EMBED></layer>");//最左边
	//myload();
	//myload2();
}
else//如果浏览器是 IE
{
	
	document.write("<div id='dangdang' style='position: absolute;width:80;top:0;left:0;visibility: visible;z-index: 1'>")
	document.write("<table border='0' cellpadding='0' cellspacing='0' width='98' height='' align='center'><tr><td><img src='/iamges/Service_001.gif' width='98' height='88'></td></tr><tr><td><table border='0' cellpadding='0' cellspacing='0' width='100%' height='' align='center'><tr height='20'><td background='/iamges/Service_002.gif'>　<a href='http://wpa.qq.com/msgrd?V=1&Uin=363256336&Site=seafly.com.cn&Menu=yes' target='_blank'>海员证客服</a><img border='0' SRC=http://wpa.qq.com/pa?p=1:363256336:4 alt='点击这里给我发消息'></a><br>　<a href='http://wpa.qq.com/msgrd?V=1&Uin=363256336&Site=seafly.com.cn&Menu=yes' target='_blank'>出境证客服</a><img border='0' SRC=http://wpa.qq.com/pa?p=1:363256336:4 alt='点击这里给我发消息'></a><br>　<a href='http://wpa.qq.com/msgrd?V=1&Uin=491770891&Site=seafly.com.cn&Menu=yes' target='_blank'>适任证客服</a><img border='0' SRC=http://wpa.qq.com/pa?p=1:491770891:4 alt='点击这里给我发消息'></a><br>　<a href='http://wpa.qq.com/msgrd?V=1&Uin=616164757&Site=seafly.com.cn&Menu=yes' target='_blank'>注册客服</a><img border='0' SRC=http://wpa.qq.com/pa?p=1:616164757:4 alt='点击这里给我发消息'></a> </td></tr><tr height='20'><a href='#top'><img src='/iamges/Service_004.gif' width='98' height='26' border='0'></a></td></tr></table></td></tr><tr><td height='17' align='center'><img src='/iamges/dl_close.gif' width='86' height='17' border='0' alt='关闭' onclick='closeADS(\"dangdang\")' style='cursor:hand;'></td></tr></table>")
	document.write("</div>");//最右边
	
	document.write("<div id='dangdang2' style='position: absolute;width:80;top:0;left:0;visibility: visible;z-index: 1'>")
	document.write("<table border='0' cellpadding='0' cellspacing='0' width='98' height='' align='center'><tr><td><img src='/iamges/Service_001.gif' width='98' height='88'></td></tr><tr><td><table border='0' cellpadding='0' cellspacing='0' width='100%' height='' align='center'><tr height='20'><td background='/iamges/Service_002.gif'>　<a href='http://wpa.qq.com/msgrd?V=1&Uin=363256336&Site=seafly.com.cn&Menu=yes' target='_blank'>海员证客服</a><img border='0' SRC=http://wpa.qq.com/pa?p=1:363256336:4 alt='点击这里给我发消息'></a><br>　<a href='http://wpa.qq.com/msgrd?V=1&Uin=363256336&Site=seafly.com.cn&Menu=yes' target='_blank'>出境证客服</a><img border='0' SRC=http://wpa.qq.com/pa?p=1:363256336:4 alt='点击这里给我发消息'></a><br>　<a href='http://wpa.qq.com/msgrd?V=1&Uin=491770891&Site=seafly.com.cn&Menu=yes' target='_blank'>适任证客服</a><img border='0' SRC=http://wpa.qq.com/pa?p=1:491770891:4 alt='点击这里给我发消息'></a><br>　<a href='http://wpa.qq.com/msgrd?V=1&Uin=616164757&Site=seafly.com.cn&Menu=yes' target='_blank'>注册客服</a><img border='0' SRC=http://wpa.qq.com/pa?p=1:616164757:4 alt='点击这里给我发消息'></a> </td></tr><tr height='20'><a href='#top'><img src='/iamges/Service_004.gif' width='98' height='26' border='0'></a></td></tr></table></td></tr><tr><td height='17' align='center'><img src='/iamges/dl_close.gif' width='86' height='17' border='0' alt='关闭' onclick='closeADS(\"dangdang2\")' style='cursor:hand;'></td></tr></table>")
	document.write("</div>");//最左边
	myload();
	myload2();
}