	function getScrollTop()
	{
		var scrollPos = 0; 
		
		if (typeof window.pageYOffset != 'undefined') { 
		   scrollPos = window.pageYOffset; 
		} 
		else if (typeof document.compatMode != 'undefined' && 
		     document.compatMode != 'BackCompat') { 
		   scrollPos = document.documentElement.scrollTop; 
		} 
		else if (typeof document.body != 'undefined') { 
		   scrollPos = document.body.scrollTop; 
		}
		
		return scrollPos;
	}
	
	function getScrollLeft()
	{
		var scrollPos = 0; 
		
		if (typeof window.pageXOffset != 'undefined') { 
		   scrollPos = window.pageXOffset; 
		} 
		else if (typeof document.compatMode != 'undefined' && 
		     document.compatMode != 'BackCompat') { 
		   scrollPos = document.documentElement.scrollLeft; 
		} 
		else if (typeof document.body != 'undefined') { 
		   scrollPos = document.body.scrollLeft; 
		}
		
		return scrollPos;
	}

	function getClientWidth()
	{
		var scrollPos = 0; 
		
		if (typeof document.compatMode != 'undefined' && 
		     document.compatMode != 'BackCompat') { 
		   scrollPos = document.documentElement.clientWidth; 
		} 
		else if (typeof document.body != 'undefined') { 
		   scrollPos = document.body.clientWidth; 
		}
		
		return scrollPos;
	}

	function getClientHeight()
	{
		var scrollPos = 0; 
		
		if (typeof document.compatMode != 'undefined' && 
		     document.compatMode != 'BackCompat') { 
		   scrollPos = document.documentElement.clientHeight; 
		} 
		else if (typeof document.body != 'undefined') { 
		   scrollPos = document.body.clientHeight; 
		}
		
		return scrollPos;
	}
	
	var moving_stat = 0;
	var dq;
	var temp_height;
	
	var adRightWidth;
	
	var navUserAgent = navigator.userAgent;
	
	function sample_init()
	{
		fomeet_div_id.style.pixelTop = getClientHeight() + getScrollTop() - 315 / 2;
	}
	
	function check_scrollmove()
	{
		dq.style.display = "block";
		
		var speed = 5;
		
		if (navUserAgent.indexOf("Firefox") >= 0 || navUserAgent.indexOf("Opera") >= 0)
		{
			moving_spd = ((getClientHeight() + getScrollTop() - temp_height) - dq.style.pixelTop)/speed;
			
			dq.style.pixelTop += moving_spd;
			dq.style.left = getClientWidth() - adRightWidth -10;
		}
		else
		{
			moving_spd = ((getClientHeight() + getScrollTop() - temp_height) - dq.style.pixelTop) / speed;
			
			dq.style.pixelTop += moving_spd;
		}
		
		loop = setTimeout("check_scrollmove()", 50);
	}
	
	function sample(obj, _height, _width)
	{
		sample_init();
		
		if(dq != null)
		{
			closediv(dq,temp_height);
		}
		
		dq = obj;
		temp_height = _height;
		adRightWidth=_width;
		
		if(!moving_stat)
		{ 
			check_scrollmove();
			moving_stat = 1;
		}
		else
		{ 
			clearTimeout(loop); 
	
			moving_stat = 0; 
			dq.style.display = "none";
			dq.style.pixelTop = window.screen.availHeight - temp_height / 2;
		}
	}
				
	function closediv(obj,_height)
	{
		clearTimeout(loop);
		moving_stat = 0;
		obj.style.display = "none";
		obj.style.pixelTop = getClientHeight() + getScrollTop() - _height / 2;
	}
	
	var imageWidth	= parseInt('250');
	var imageHeight = parseInt('300');
	
	document.write('');
	document.write("<style>	.fomeet_div_id {BORDER-RIGHT: #015af2 1px solid; BORDER-TOP: #015af2 1px; DISPLAY: none; Z-INDEX: 1; RIGHT: 2%; BORDER-LEFT: #015af2 1px solid; WIDTH: 10px; BORDER-BOTTOM: #015af2 1px solid; POSITION: absolute; HEIGHT: 200px	}		.table_case{border-collapse:collapse; height:100%;}	.table_case th{ background:url(http://www.fomeet.com/case/preview/bar_02.gif); height:24px; margin:0; padding:0; text-align:right;}</style>");
	document.write('<div class="fomeet_div_id" id="fomeet_div_id" style="padding:0px; z-index: 10000"><TABLE width="250" cellpadding=0 cellspacing=0 class="table_case"><TR><th style="padding: 0px"><IMG style="CURSOR: pointer; width: 25px; height: 24px" onClick="closediv(fomeet_div_id, imageHeight, imageWidth)" src="http://www.fomeet.com/case/preview/bar_04.gif"></th></TR><TR><TD align="center" background="agent_bg.gif"><table border="0" cellpadding="0" cellspacing="0">  <tr><td height="170" valign="bottom"><object width="213" height="159"><param name="movie" value="http://www.tudou.com/v/Sxsfc8l6aB0"><param name="allowScriptAccess" value="always"><param name="wmode" value="transparent"><embed src="http://www.tudou.com/v/Sxsfc8l6aB0" type="application/x-shockwave-flash" width="213" height="159" allowfullscreen="true" wmode="transparent" allowscriptaccess="always"></embed></object></td></tr><tr><td height="120"><a href="http://rich.qicha.com/index.php?act=login" target="_blank"><img src="agent.gif" width="213" height="107" border="0"></a></td></tr></table></TD></TR></TABLE></div>');
	
	setTimeout("sample(fomeet_div_id, imageHeight + 35, imageWidth)", 20);