//¸µÅ©Å×µÎ¸® °¨Ãß±â

function autoBlur(){ 
  if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") 
  document.body.focus(); 
} 
  document.onfocusin=autoBlur; 

//»óÅÂ¹Ù °¨Ãß±â

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>
*/