
/** PNG 적용스크립터 부분**/
function setPng24(obj) {
        obj.width=obj.height=1;
        obj.className=obj.className.replace(/\bpng24\b/i,'');
        obj.style.filter =
        "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
        obj.src='';
        return '';
        }


/**ActiveX 플래쉬**/
function FlashObject(swf, width, height, bgcolor, id, flashvars)
{
    var strFlashTag = new String();
    
    if (navigator.appName.indexOf("Microsoft") != -1)
    {
        strFlashTag += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
        strFlashTag += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=version=8,0,0,0" ';
        strFlashTag += 'id="' + id + '" width="' + width + '" height="' + height + '">';
        strFlashTag += '<param name="movie" value="' + swf + '"/>';
        
        if(flashvars != null) {strFlashTag += '<param name="flashvars" value="' + flashvars + '"/>'};
        strFlashTag += '<param name="quality" value="best"/>';
        strFlashTag += '<param name="bgcolor" value="' + bgcolor + '"/>';
        strFlashTag += '<param name="menu" value="false"/>';
        strFlashTag += '<param name="salign" value="LT"/>';
        strFlashTag += '<param name="scale" value="noscale"/>';
        strFlashTag += '<param name="wmode" value="transparent"/>';
        strFlashTag += '<param name="allowScriptAccess" value="always"/>';
        strFlashTag += '</object>';
    }
    else
    {
        strFlashTag += '<embed src="' + swf + '" ';
        strFlashTag += 'quality="best" ';
        strFlashTag += 'bgcolor="' + bgcolor + '" ';
        strFlashTag += 'width="' + width + '" ';
        strFlashTag += 'height="' + height + '" ';
        strFlashTag += 'menu="false" ';
        strFlashTag += 'scale="noscale" ';
        strFlashTag += 'id="' + id + '" ';
        strFlashTag += 'salign="LT" ';
        strFlashTag += 'wmode="transparent" ';
        strFlashTag += 'allowScriptAccess="always" ';
        if(flashvars != null) {strFlashTag += 'flashvars="' + flashvars + '" '};
        strFlashTag += 'type="application/x-shockwave-flash" ';
        strFlashTag += 'pluginspage="http://www.macromedia.com/go/getflashplayer">';
        strFlashTag += '</embed>';
    }

 document.write(strFlashTag);
}





// ********************************** Player Begin *************************************************** //

function unwFlash_Player(swf_url, itemSeq, applicationType, autoPlay, userId )
{
    unwFlash_Player_Size(swf_url, 400, 340, itemSeq, applicationType, autoPlay, userId );
}


function unwFlash_Player_Size(id, swf_url, iWidth, iHeight, itemSeq, applicationType, autoPlay, userId )
{
    var id = 'wisePlay9_Full';
    var str = '';
    
    
    swf_url = fnSwfUrl(swf_url, itemSeq, applicationType, autoPlay, userId);
    

    str += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + iWidth + '" height="' + iHeight + '" id="wisePlay9_Full" >';
    str += '<param name="allowScriptAccess" value="always" />';
    str += '<param name="allowFullScreen" value="true" />';
    str += '<param name="movie" value="' + swf_url + '" />';
    str += '<param name="loop" value="false" />';
    str += '<param name="quality" value="high" />';
    str += '<param name="wmode" value="window" />';
    str += '<param name="bgcolor" value="#000000" />';
    str += '<embed src="' + swf_url + '" loop="false" quality="high" wmode="window" bgcolor="#000000" width="' + iWidth + '" height="' + iHeight + '" name="wisePlay9_Full"  allowScriptAccess="always" allowFullScreen="true" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />';
    str += '</object>';

    document.write(str);

    eval("window.wisePlay9_Full = document.getElementById('wisePlay9_Full');");
 
}



function unwFlash_Player_SetText(sText, sTextColor, sLinkUrl)
{
	wisePlay9_Full.unwFlash_SetNoticeText(sText, sTextColor, sLinkUrl);
}

function fnSwfUrl(swf_url, itemSeq, applicationType, autoPlay, userId)
{
    swf_url = swf_url 
            + "?uid=" + itemSeq
            + "&type=" + applicationType
            + "&play=" + autoPlay
            + "&userid=" + userId;
    
    return swf_url;

}



// ********************************** Player End *************************************************** //

// ********************************** 구간 편집 Begin *************************************************** //

function unwFlash_SectionBar(swf_url)
{
    unwFlash_SectionBar_Size(swf_url, '400', '50');
}

function unwFlash_SectionBar_Size(swf_url, iWidth, iHeight)
{
    var str = '';

    str += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="' + iWidth + '" height="' + iHeight + '" id="wiseSectionBar"  >';
    str += '<param name="allowScriptAccess" value="always" />';
    str += '<param name="movie" value="' + swf_url + '" />';
    str += '<param name="loop" value="false" />';
    str += '<param name="quality" value="high" />';
    str += '<param name="bgcolor" value="#ffffff" />';
    str += '<embed src="' + swf_url + '" loop="false" quality="high" bgcolor="#ffffff" width="' + iWidth + '" height="' + iHeight + '" name="wiseSectionBar" align="middle" allowScriptAccess="always"  type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />';
    str += '</object>';

    document.write(str);

    eval("window.wiseSectionBar = document.getElementById('wiseSectionBar');");
}



// ********************************** 구간 편집 End *************************************************** //


