document.write("<div id='VeryIDE_Tip' style='position:absolute;visibility:hidden;'>VeryIDE.Com</div>")
function VeryIDE_ToolTip(_default,_topLeft,_topRight,_bottomLeft,_bottomRight,_html){
	var obj=$("VeryIDE_Tip");
	obj.innerHTML=_html;
	//计算移动区域
	var cHeight=document.documentElement.clientHeight;
	var sHeight=document.documentElement.scrollHeight;
	if(sHeight>cHeight){
		mHeight=sHeight;
	}else{
		mHeight=cHeight
	}
	
	var cWidth=document.documentElement.clientWidth;
	var sWidth=document.documentElement.scrollWidth;
	if(sWidth>cHeight){
		mWidth=sWidth;
	}else{
		mWidth=cWidth
	}
	
	var sTop=document.documentElement.scrollTop;
	var sLeft=document.documentElement.scrollLeft;
	if(document.all){$m.y+=sTop;}

	//计算坐标方向
	var oHeight=obj.offsetHeight;
	var oWidth=obj.offsetWidth;
	obj.className=_default;
	obj.style.top=$m.y+"px";
	obj.style.left=$m.x+"px";
	//obj.style.display="block";
	obj.style.visibility="visible";
	
	if($m.x+oWidth>mWidth&&$m.y<oHeight){
		obj.style.top=$m.y+"px";
		obj.style.left=$m.x-oWidth+"px";		
		obj.className=_topRight;
		//s("右上角")
	}else if($m.x+oWidth>mWidth){
		obj.style.left=$m.x-oWidth+"px";
		obj.style.top=$m.y-oHeight+"px";
		obj.className=_bottomRight;
		//s("右下角")
	}else if($m.y<oHeight&&$m.x<oWidth){
		obj.style.top=$m.y+"px";
		obj.className=_topLeft;
		//s("左上角")
	}else if($m.y+oHeight>mHeight&&$m.x<mWidth){
		obj.style.top=$m.y-oHeight+"px";
		obj.className=_bottomLeft;
		//s("左下角")
	}else if($m.y-sTop-oHeight<0){
		obj.style.top=$m.y+"px";
		obj.className=_topLeft;
		//s("顶部")
	}else{
		obj.style.top=$m.y-oHeight+"px";
		obj.className=_bottomLeft;
		//s("中间")
	}
	//window.status="x:"+obj.style.left+" y:"+obj.style.top;
	window.status="x:"+$m.x+" y:"+$m.y;
	/*
	function s(s){
		window.status=s;
	}
	*/
}
