	$(window).load(function () {		
		//Æ®´°
		if ($('.floatWin').is('div'))	{
			var $div=$('.floatWin');
			var cWidth,cHeight,stepX,stepY,baseX,baseY,timer;
			cWidth=$(window).width()-$div.width();
			cHeight=$(window).height()-$div.height();
			stepX=1;
			stepY=1;
			baseX=0;
			baseY=0;

			$(window).resize(function () {
				cWidth=$(window).width()-$div.width();
				cHeight=$(window).height()-$div.height();
				baseX=$(window).scrollLeft();
				baseY=$(window).scrollTop();
			})
			$(window).scroll(function () {
				baseX=$(window).scrollLeft();
				baseY=$(window).scrollTop();
				$div.css({'left':parseInt($div.css('left'))+baseX+'px'});
				$div.css({'top':parseInt($div.css('top'))+baseY+'px'});
			})

			timer=setInterval(function () {
				if (parseInt($div.css('left'))<1+baseX) {
					stepX=1;
				} else if (parseInt($div.css('left'))>cWidth-1) {
					stepX=-1;
				}
				if (parseInt($div.css('top'))<1+baseY) {
					stepY=1;
				} else if (parseInt($div.css('top'))>cHeight-1) {
					stepY=-1;
				}
				$div.css({'left':parseInt($div.css('left'))+stepX+'px'});
				$div.css({'top':parseInt($div.css('top'))+stepY+'px'});
			},20)

			$div.find('.close').click(function () {
				$div.remove();
			})
			$div.hover(function () {
				clearInterval(timer);
			},function () {

			timer=setInterval(function () {
				if (parseInt($div.css('left'))<1) {
					stepX=1;
				} else if (parseInt($div.css('left'))>cWidth-1+baseX) {
					stepX=-1;
				}
				if (parseInt($div.css('top'))<1) {
					stepY=1;
				} else if (parseInt($div.css('top'))>cHeight-1+baseY) {
					stepY=-1;
				}
				$div.css({'left':parseInt($div.css('left'))+stepX+'px'});
				$div.css({'top':parseInt($div.css('top'))+stepY+'px'});
			},20)
			})
		}

	})

	$(document).ready(function () {
		if ($('.posExType-2').is('div')) {
			$('.posExType-2').find('.close').click(function () {
				$(this).parent('.posExType-2').remove();
			})
		}
	})
