/* Script By ¿Ã¸®¹ö³×(oliverne.com) */

var IE, olObj;
var IE = document.all;
var olObj = (IE) ? document.all['olPreview'] : olObj = document.getElementById('olPreview'); 
document.onmousemove = olMouseMove;
if (!IE) window.captureEvent(MOUSEMOVE);

function olShowPreview(previewText, w, h) { 
    olObj.style.width = w + 'px'; 
	olObj.style.height= h + 'px';
    olObj.style.visibility = 'visible'; 
	olObj.style.display = '';
    olPreviewText = previewText; 
    olObj.innerHTML = olPreviewText; 
  }

function olHidePreview()  {
    olObj.innerHTML = ''; 
    olObj.style.width = 1 + 'px'; 
	olObj.style.height = 1 + 'px';
    olObj.style.visibility = 'hidden'; 
	olObj.style.display = 'none';
 }

function olMouseMove(e) {
	if (IE) {
		winWidth = document.body.clientWidth;
		winHeight = document.body.clientHeight;
		pX = event.x + document.body.scrollLeft;
		pY = event.y + document.body.scrollTop;
	}
		else {
			winWidth = window.innerWidth; 
			winHeight = window.innerHeight; 
			pX = e.pageX; 
			pY = e.pageY; 
		}
	/* // ·¹ÀÌ¾î°¡ ºê¶ó¿ìÀúÀÇ °æ°è¸¦ ¸¸³ª¸é À§Ä¡ º¯°æ
	
	preWidth = parseInt(olObj.style.width); 
	preHeight = parseInt(olObj.style.height); 

	if ((pX + preWidth) > (winWidth - 38)) pX = pX - preWidth - 35; 
	if ((pY + preHeight) > (winHeight - 30)) pY = pY - preHeight - 15; 
	*/


	olObj.style.left = (pX + 14) + 'px';
	olObj.style.top = (pY + 10) + 'px';

}
