$(window).load(function(){



		var $win = $(window),



			$ad = $('#abgne_float_ad').show(),	// 讓廣告區塊變透明且顯示出來



			_width = $ad.width(),



			_height = $ad.height(),



			_diffY = 60, _diffX = 0,	// 距離右及下方邊距



			_moveSpeed = 400;	// 移動的速度



		   // $ad.width()=200;



		// 先把 #abgne_float_ad 移動到定點



		$ad.css({



			top: $(document).height(),



			left: $win.width() - _width - _diffX



		});



		



		// 幫網頁加上 scroll 及 resize 事件



		$win.bind('scroll resize', function(){



			var $this = $(this);



			



			// 控制 #abgne_float_ad 的移動



			$ad.stop().animate({



				top: $this.scrollTop() + $this.height() - _height - _diffY,



				left: $this.scrollLeft() + $this.width() - _width - _diffX



			}, _moveSpeed);



		}).scroll();	// 觸發一次 scroll()



	});







$(window).load(function(){



		var $win = $(window),



			$ad = $('#abgne_float_ad2').show(),	// 讓廣告區塊變透明且顯示出來



			_width = $ad.width(),



			_height = $ad.height(),

			

			_diffY = 95, _diffX = 40, // 距離左及上方邊距



			_moveSpeed = 400;	// 移動的速度



		



		// 先把 #abgne_float_ad 移動到定點



		$ad.css({



			top: _diffY,	// 往上



			left:  _diffX	// 往左



		});



		



		// 幫網頁加上 scroll 及 resize 事件



		$win.bind('scroll resize', function(){



			var $this = $(this);



			



			// 控制 #abgne_float_ad 的移動



			$ad.stop().animate({



				top: $this.scrollTop() + _diffY,	// 往上



				left: $this.scrollLeft() + _diffX	// 往左



			}, _moveSpeed);



		}).scroll();	// 觸發一次 scroll()







	});



$('#abgne_float_ad').html() ;
