//·Ñ¿À¹ö

function mchangeimage(mimgsrc,iObj)
{ 
iObj.src=mimgsrc;
}
	
//¸µÅ©Å×µÎ¸® °¨Ãß±â
function autoBlur(){ 
  if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 
  document.body.focus(); 
} 
  document.onfocusin=autoBlur; 

<!--·¹ÀÌ¾î ÀÌ¹ÌÁöÃ¢
function openimg(title,source){
    var imgElm=new Image();imgElm.src=source;
    var imageLayer=document.createElement("div");
    imageLayer.innerHTML="&nbsp;"+title;

    if(imgElm.complete){
        imageLayer.style.cssText="z-index;99999;position:absolute;top:"+(document.body.clientHeight-imgElm.height)/2+";left:"+(document.body.clientWidth-imgElm.width)/2+";width:"+imgElm.width+";height:"+imgElm.height+";cursor:hand;border:1px solid #666666;padding:4 4 4 4;font:normal 12px lucida console;color:white;background-color:#666666;";
    }else{
        imageLayer.style.cssText="z-index;99999;position:absolute;top:-4000;left:-4000;cursor:hand;border:1px solid #666666;padding:4 4 4 4;font:normal 12px lucida console;color:white;background-color:#666666;";
    }

    with(imageLayer.appendChild(document.createElement("div")))
    {
        style.cssText="padding:1 1 1 1;background-color:888888;";
        with(appendChild(document.createElement("div")))
        {
            style.cssText="padding:5;background-color:white;";
            with(appendChild(document.createElement("img")))
            {
                src=source;
                if(!imgElm.complete){
                    onload=function(){//resize
                        with(this.parentNode.parentNode.parentNode.style){
                            left=(document.body.clientWidth-this.width)/2;
                            top=(document.body.clientHeight-this.height)/2;
                            width=this.width;
                            height=this.height;
                        }
                    };//onload
                }

                onclick=function(){//remove
                    var win=this.parentNode.parentNode.parentNode;
                    win.parentNode.removeChild(win);
                };//onclick
            }//with
        }//with
    }//with
    document.body.appendChild(imageLayer);
}
//-->

//»óÅÂ¹Ù °¨Ãß±â

function hidestatus() 
{ 
window.status='' 
return true 
} 
if (document.layers) 
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) 
document.onmouseover=hidestatus 
document.onmouseout=hidestatus
function status_message()
{
window.status = "";
}
setInterval("status_message()",100)
 



    // ºê¶ó¿ìÀú¿¡¼­ ¿ÀºêÁ§Æ®ÀÇ ¿ÞÂÊ ÁÂÇ¥
    function get_left_pos(obj)
    {
        var parentObj = null;
        var clientObj = obj;
        //var left = obj.offsetLeft + document.body.clientLeft;
        var left = obj.offsetLeft;

        while((parentObj=clientObj.offsetParent) != null)
        {
            left = left + parentObj.offsetLeft;
            clientObj = parentObj;
        }

        return left;
    }

    // ºê¶ó¿ìÀú¿¡¼­ ¿ÀºêÁ§Æ®ÀÇ »ó´Ü ÁÂÇ¥
    function get_top_pos(obj)
    {
        var parentObj = null;
        var clientObj = obj;
        //var top = obj.offsetTop + document.body.clientTop;
        var top = obj.offsetTop;

        while((parentObj=clientObj.offsetParent) != null)
        {
            top = top + parentObj.offsetTop;
            clientObj = parentObj;
        }

        return top;
    }

    function flash_movie(src, ids, width, height, wmode)
    {
        var wh = "";
        if (parseInt(width) && parseInt(height)) 
            wh = " width='"+width+"' height='"+height+"' ";
        return "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' "+wh+" id="+ids+"><param name=wmode value="+wmode+"><param name=movie value="+src+"><param name=quality value=high><embed src="+src+" quality=high wmode="+wmode+" type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash' "+wh+"></embed></object>";
    }

    function obj_movie(src, ids, width, height, autostart)
    {
        var wh = "";
        if (parseInt(width) && parseInt(height)) 
            wh = " width='"+width+"' height='"+height+"' ";
        if (!autostart) autostart = false;
        return "<embed src='"+src+"' "+wh+" autostart='"+autostart+"'></embed>";
    }

    function obj_movie1(src, ids, width, height, autostart)
    {
        var wh = "";
        if (parseInt(width) && parseInt(height)) 
            wh = " width='"+width+"' height='"+height+"' ";
        if (!autostart) autostart = false;
        return "<embed id='"+ids+"' src='"+src+"' "+wh+" autostart='"+autostart+"' enablecontextmenu='false' ShowControls='0'></embed>";
    }
	
    function doc_write(cont)
    {
        document.write(cont);
    }
	
//¹«ºñ ÄÁÆ®·Ñ
function media_play(id) {
document.getElementById(id).play();
}
function media_stop(id){
document.getElementById(id).stop();
}
function media_pause(id){
document.getElementById(id).Pause();
}
/*
	»ç¿ë¿¹ : 
	<!--
	<script>doc_write(flash_movie("top_menu.swf", "_FLASH", 800, 100, "transparent"));</script>
	<script>doc_write(obj_movie1("mms://nhnext.hvod.nefficient.co.kr/nhnext/media/brandsearch/hanbiton/0512/granado-1.wmv", "musa", 240, 180, "true"));</script>
	//-->
<a href="#" OnClick="media_play('musa');">Àç»ý</a> 
<a href="#" OnClick="media_stop('musa');">Á¤Áö</a>
<a href="#" OnClick="media_pause('musa');">ÀÏ½ÃÁ¤Áö</a>
*/
function swf(src,w,h){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="bgcolor" value="#ffffff">';
	html += '<param name="menu" value="false">';
	html += '<PARAM NAME=wmode VALUE=transparent>';
	html += '<param name="swliveconnect" value="true">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}

function swf_w(src,w,h){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+w+'%" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="bgcolor" value="#ffffff">';
	html += '<param name="menu" value="false">';
	html += '<PARAM NAME=wmode VALUE=transparent>';
	html += '<param name="swliveconnect" value="true">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" menu="false" width="'+w+'%" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}

function swf_title(src,w,h,title){
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" id="param" width="'+w+'" height="'+h+'">';
	html += '<param name="movie" value="'+src+'">';
	html += '<param name="quality" value="high">';
	html += '<param name="FlashVars" value="tq='+title+'">';
	html += '<param name="bgcolor" value="#ffffff">';
	html += '<param name="menu" value="false">';
	html += '<PARAM NAME=wmode VALUE=transparent>';
	html += '<param name="swliveconnect" value="true">';
	html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" menu="false" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" FlashVars="tq='+title+'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
	html += '<\/object>';
	document.write(html);
}


