$(document).ready(function(){
	$('body').append('<div class="adleft" style="width:145px;height:240px;position:absolute;left:25px;*left:-50px;"><div style="position:absolute;z-index:1000;"><EMBED src="/Templates/001/images/rc.swf" quality="high"  WIDTH="145" HEIGHT="240" TYPE="application/x-shockwave-flash" id="ad " wmode="opaque"></EMBED></div><div class="xxclose" style="color:#000;right:120px;*right:45px;cursor:pointer;position:absolute;z-index:1001;top:-16px;">关闭</div></div><div class="adright" style="width:145px;height:240px;position:absolute;right:25px;*right:100px;"><div style="position:absolute;z-index:1000;"><EMBED src="/Templates/001/images/fz.swf" quality="high"  WIDTH="145" HEIGHT="240" TYPE="application/x-shockwave-flash" id="ad" wmode="opaque"></EMBED></div><div class="xxclose" style="color:#000;left:0px;*left:75px;cursor:pointer;position:absolute;z-index:1001;top:-16px;">关闭</div></div>')
	//获取窗口高度
	var nWindow = $(window).height();
	//对联top值
	var sDTop = nWindow-240+"px";
	$('.adleft').css("top",sDTop);
	$('.adright').css("top",sDTop);
	//滚轮动作
	$(window).scroll( function() {
		var nWindow = $(window).height();
		//滚轮移动高度
		var nWindowTop = $(window).scrollTop();
		//top新高度
		sDTop = nWindow-240+nWindowTop+"px";
		$('.adleft').css("top",sDTop);
	$('.adright').css("top",sDTop);
	});
	
	
	$(window).resize( function() {
		//窗口新高度
		var nWindowHeight = $(window).height();
		var nWindowTop = $(window).scrollTop();
		//top新高度
		sXTop = nWindowHeight-240+nWindowTop+"px";
		$('.adleft').css("top",sXTop);
		$('.adright').css("top",sXTop);
	});
	
	
	$('.xxclose').click(function(){
		$(this).parent().remove();
	});
})

