function tip_out(){$('#JT').remove()}
function tip_move(e){
	jt_height = $('#JT').height();
	jt_width  = $('#JT').width();
	ox = e.pageX + 5;
		oy = e.pageY + 22;
		border = (navigator.appName == 'Microsoft Internet Explorer') ? 25 : 1;
		max_x  = $(document).width() - border;
	if (self.innerHeight) { // Everyone but IE
		max_y  = window.pageYOffset + $(window).height() - border;
	} else if (document.documentElement && document.documentElement.clientHeight) { // IE6 Strict
		max_y  = document.documentElement.scrollTop + $(window).height() - border;
	} else if (document.body) { // Other IE, such as IE7
		max_y  = document.body.scrollTop + $(window).height() - border;
	}
		if((e.pageX + 5 + jt_width) >= max_x) ox = e.pageX - jt_width - 5;
		if((e.pageY + 22 + jt_height) > max_y) oy = e.pageY - jt_height - 10;
		$('#JT').css({left: ox+"px", top: oy+"px"});
}
function JT_show(content,width,obj){
	$("body").append("<div id='JT'><div id='JT_copy' style='width:"+width+"'></div></div>");
	$(obj).mousemove(tip_move);
	$('#JT_copy').html(content);
	$('#JT').show();
}
function JT_html(content){
	$('#JT_copy').html(content);
}