// 传递参数    说明
// ScrollWord  要滚动显示的文字
var htmlResult = '';
htmlResult += '<div id="couplet_left" style="VISIBILITY: hidden; POSITION: absolute">';
//htmlResult += '<a href="http://www.lawyee.net/CDROM/Product_DVALL20080032S.asp" target="_blank"><img src="/images/20080823_left.gif" width="116" height="321" border="0" /></a>';
htmlResult += '</div>';
htmlResult += '<div id="couplet_right" style="VISIBILITY: hidden; POSITION: absolute">';
//htmlResult += '<a href="http://www.lawyee.net/CDROM/Product_DVALL20080032S.asp" target="_blank"><img src="/images/20080823_right.gif" width="116" height="321" border="0" /></a>';
htmlResult += '</div>';
document.writeln(htmlResult);

function hideAd(){
	couplet_right.style.visibility='hidden';
}

document.body.onscroll= function(){
	if(document.body.scrollTop>0){
		if (document.body.offsetWidth>800)
		{
			couplet_left.style.posTop=document.body.scrollTop+145;
			couplet_right.style.posTop=document.body.scrollTop+145;
		}
		else
		{
			//couplet_left.style.posTop=document.body.scrollTop+200;
			//couplet_right.style.posTop=document.body.scrollTop;
		}
		
	}
}

document.ns = navigator.appName == "Microsoft Internet Explorer"
function doCouplet(){
	if(document.ns){	
	couplet_left.style.visibility='visible';
	couplet_right.style.visibility='visible';	  
	  document.body.offsetWidth>800?couplet_left.style.top=145:couplet_left.style.top=200;
	  couplet_left.style.right=3;
	  document.body.offsetWidth>800?couplet_right.style.top=145:couplet_right.style.top=0;
	  couplet_right.style.left=3;
	}
	if (document.body.offsetWidth<=800) {
		couplet_left.style.display='none';
		couplet_right.style.display='none';
	}
}
doCouplet();
