
// 플래쉬 박스 없애기

function flash(width,height,flash_name) {

 var flash_tag = "";

 flash_tag = '<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';

 flash_tag +='codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" ';

 flash_tag +='WIDTH="'+width+'" HEIGHT="'+height+'" >';

 flash_tag +='<param name="movie" value="'+flash_name+'">';

 flash_tag +='<param name="quality" value="high">';
 
 flash_tag +='<param name="menu" value="false">';

 flash_tag +='<param name="wmode" value="Transparent">';

 flash_tag +='<embed src="'+flash_name+'" wmode="Transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" ';

 flash_tag +='type="application/x-shockwave-flash"  WIDTH="'+width+'" HEIGHT="'+height+'"></embed></object>';

 document.write(flash_tag);

}

<!--
// 이미지 주위 점선없애기 소스
function bluring(){ 
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus(); 
} 
document.onfocusin=bluring; 





// 동영상
function setMedia(src, Ow, Oh, Pw, Ph) { //object width, height, param width, height  //동영상파일
	var Media_html = "";
	Media_html += '<OBJECT id=MPlay1 codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 ';
    Media_html += '    type=application/x-oleobject height='+Oh+'';
    Media_html += '    standby="Loading Microsoft Windows Media Player components..." width='+Ow+' ';
    Media_html += '    classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95>';
    Media_html += '   <PARAM NAME="Width" VALUE="'+Pw+'">';
    Media_html += '   <PARAM NAME="Height" VALUE="'+Ph+'">';
    Media_html += '   <PARAM NAME="FileName" VALUE="'+src+'">';
    Media_html += '   <PARAM NAME="Volume" VALUE="10">';
    Media_html += '   <PARAM NAME="AnimationatStart" VALUE="1">';
    Media_html += '   <PARAM NAME="AutoSize" VALUE="0">';
	Media_html += '   <PARAM NAME="TransparentatStart" VALUE="1">';
    Media_html += '   <PARAM NAME="ControlType" VALUE="2">';
	Media_html += '   <PARAM NAME="EnableContextMenu" VALUE="1">';
    Media_html += '   <PARAM NAME="EnablePositionControls" VALUE="1">';
    Media_html += '   <PARAM NAME="ShowTracker" VALUE="0">';
    Media_html += '   <PARAM NAME="AutoStart" VALUE="1">';
    Media_html += '   <PARAM NAME="ShowControls" VALUE="0">';
    Media_html += '   <PARAM NAME="ClickToPlay" VALUE="1">';
	Media_html += '   <PARAM NAME="windowlessVideo" value="true">' ;
    Media_html += '   </OBJECT>';
	document.write(Media_html);
}







var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);

function getRef(id) {
        if (isDOM) return document.getElementById(id);
        if (isIE4) return document.all[id];
        if (isNS4) return document.layers[id];
}

var isNS = navigator.appName == "Netscape";

function moveRightEdge() {
        var yMenuFrom, yMenuTo, yOffset, timeoutNextCheck;

        if (isNS4) {
                yMenuFrom   = Rbanner.top;
                yMenuTo     = windows.pageYOffset + 50;
        } else if (isDOM) {
                yMenuFrom   = parseInt (Rbanner.style.top, 10);
                yMenuTo     = (isNS ? window.pageYOffset : document.body.scrollTop) + 205;
        }
        timeoutNextCheck = 30;

        if (yMenuFrom != yMenuTo) {
                yOffset = Math.ceil(Math.abs(yMenuTo - yMenuFrom) / 20);
                if (yMenuTo < yMenuFrom)
                        yOffset = -yOffset;
                if (isNS4)
                        Rbanner.top += yOffset;
                else if (isDOM)
                {
                        //if( parseInt (Rbanner.style.top, 10) + yOffset > 610 ) var top_end = 610;
                        //else var top_end = parseInt (Rbanner.style.top, 10) + yOffset;
                        var top_end = parseInt (Rbanner.style.top, 10) + yOffset;

                        Rbanner.style.top = top_end;
                }
                        timeoutNextCheck = 5;
        }

        setTimeout ("moveRightEdge()", timeoutNextCheck);
}

