';
}
overEvent.imgShowHide();
// À̹ÌÁö °ªÀÌ ÀÖ´ÂÁö È®ÀÎÇÑ´Ù
this.obj.innerHTML = this.html;
img_w = (img != '') ? document.images['imagename'].width : '';
img_h = (img != '') ? document.images['imagename'].height : '';
this.style.pixelLeft= 0;
this.style.pixelTop = -10000;
(mode == true) ? document.onmousemove= overEvent.movePosition : overEvent.layerPosition();
},
imgShowHide : function ()
{
this.style.display = (this.flag == true) ? '' : 'none';
},
movePosition : function ()
{
var mouseW = window.event.clientX;
var mouseH = window.event.clientY;
var scrollW = document.body.scrollLeft;
var scrollH = document.body.scrollTop;
var bodyW = document.body.offsetWidth;
var bodyH = document.body.offsetHeight;
var posx = ((bodyW-mouseW-scrollW) <= img_w) ? (mouseW-img_w-20+scrollW) : (mouseW+20+scrollW);
var posy = ((bodyH-mouseH) <= img_h) ? ((scrollH+mouseH)-img_h) : mouseH+scrollH;
document.getElementById('over_item').style.pixelLeft = posx;
document.getElementById('over_item').style.pixelTop = posy;
},
layerPosition : function ()
{
var mouseW = window.event.clientX;
var mouseH = window.event.clientY;
var scrollW = document.body.scrollLeft;
var scrollH = document.body.scrollTop;
var bodyW = document.body.offsetWidth;
var bodyH = document.body.offsetHeight;
var posx = ((bodyW-mouseW-scrollW) <= img_w) ? (mouseW-img_w-20+scrollW) : (mouseW+20+scrollW);
var posy = ((bodyH-mouseH) <= img_h) ? ((scrollH+mouseH)-img_h) : mouseH+scrollH;
document.onmousemove = '';
this.style.pixelLeft = posx;
this.style.pixelTop = posy;
},
closeButton : function ()
{
if (show_magnify_close == 'S')
{
switch (show_magnify_close_image_locate)
{
case 'right_top' :
this.closeT = '
'
+ ''
+ '
';
break;
case 'left_top' :
this.closeT = '
'
+ ''
+ '
';
break;
case 'top_center' :
this.closeT = '
'
+ ''
+ '
';
break;
case 'bottom_center' :
this.closeB = '
'
+ ''
+ '
';
break;
case 'left_bottom' :
this.closeB = '
'
+ ''
+ '
';
break;
case 'right_bottom' :
this.closeB = '
'
+ ''
+ '
';
break;
}
}
}
}
function MM_preloadImages ()
{
var d = document;
if (d.images)
{
if(!d.MM_p) { d.MM_p=new Array(); }
var i, j=d.MM_p.length, a=MM_preloadImages.arguments;
for(i=0; i