﻿
// ********************************** Player Begin *************************************************** //

// 사용하지는 않는 듯 싶음. 하지만 고정용으로 쓸 수는 있을 듯.
function unwFlash_Player(swf_url, itemSeq, applicationType, autoPlay, userId )
{
    unwFlash_Player_Size(swf_url, 400, 340, itemSeq, applicationType, autoPlay, userId );
}

// 1. 비디오 플레이어 호출 (wisePlay9_Full.swf 위치, 가로, 세로, 동영상 이름, aspx, 자동(1), 유저 ID)
function unwFlash_Player_Size(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="http://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="http://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);
}

//1.5 비디오 영상url(wisePlay9_Full.swf 위치, 동영상 이름, aspx, 자동(1), 유저 ID)
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)
{
    var str = '';

    str += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="400" height="50" 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="400" height="50" name="wiseSectionBar" align="middle" allowScriptAccess="always"  type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
    str += '</object>';

    document.write(str);

    eval("window.wiseSectionBar = document.getElementById('wiseSectionBar');");
}




// ********************************** 구간 편집 End *************************************************** //

