function swf(src,w,h)
{
	html = '';
	html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,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 swf1(src,w,h)
	{
		html = '';
		html += '<object type="application/x-shockwave-flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,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 swf2(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=9,0,28,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 vod(src,w,h)
{
	html = '';
	html += '<object classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" height="'+h+'" id="obj" width="'+w+'" type="application/x-oleobject" VIEWASTEXT standby="Loading Microsoft Windows Media Player components...">';
	html += '<param NAME="EnableFullScreenControls" VALUE="-1">';
	html += '<param NAME="TransparentAtStart" VALUE="1">';
	html += '<param NAME="AnimationAtStart" VALUE="-1">';
	html += '<param NAME="ClickToPlay" VALUE="1">';
	html += '<param NAME="DisplaySize" VALUE="4">';
	html += '<param NAME="Filename" VALUE="'+src+'">';
	html += '<param NAME="PlayCount" VALUE="1">';
	html += '<param NAME="EnableContextMenu" VALUE="0">';
	html += '<param NAME="SendOpenStateChangeEvents" VALUE="-1">';
	html += '<param NAME="SendPlayStateChangeEvents" VALUE="-1">';
	html += '<param NAME="ShowControls" VALUE="1">';
	html += '<param NAME="ShowStatusBar" VALUE="1">';
	html += '<param NAME="stretchToFit" VALUE="true">';
	html += '<\/object>';
	document.write(html);
}

function vod7(src,w,h)
{
	html = '';
	html += '<OBJECT classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" height='+h+' id=obj width='+w+' type=application/x-oleobject VIEWASTEXT standby="Loading Microsoft Windows Media Player components...">';
	html += '<PARAM NAME="EnableFullScreenControls" VALUE="-1">';
	html += '<param NAME="TransparentAtStart" VALUE="1">';
	html += '<PARAM NAME="AnimationAtStart" VALUE="-1">';
	html += '<PARAM NAME="ClickToPlay" VALUE="1">';
	html += '<PARAM NAME="DisplaySize" VALUE="4">';
	html += '<PARAM NAME="Filename" VALUE="'+src+'">';
	html += '<PARAM NAME="PlayCount" VALUE="1">';
	html += '<PARAM NAME="EnableContextMenu" VALUE="0">';
	html += '<PARAM NAME="SendOpenStateChangeEvents" VALUE="-1">';
	html += '<PARAM NAME="SendPlayStateChangeEvents" VALUE="-1">';
	html += '<PARAM NAME="ShowControls" VALUE="1">';
	html += '<PARAM NAME="ShowStatusBar" VALUE="1">';
	html += '<\/OBJECT>';
	document.write(html);
}

function vod9(src,w,h)
{
	html = '';
	html += '<OBJECT classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" height='+h+' id=obj width='+w+' type="application/x-oleobject" standby="Loading Microsoft Windows Media Player components..." VIEWASTEXT>';
	html += '<param name="URL" value="'+src+'">';
	html += '<param name="uiMode" value="full">';
	html += '<param name="stretchToFit" value="true">';
	html += '<PARAM name="EnableContextMenu" value="0">';
	html += '<\/OBJECT>';
	document.write(html);
}

function teruten(w,h)
{
	html = '';
	html += '<OBJECT ID="obj" width="'+w+'" height="'+h+'" type="application/x-oleobject" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" VIEWASTEXT>';
	html += '<param name="autoStart" value="true">';
	html += '<param name="stretchToFit" value="true">';
	html += '<param name="uiMode" value="full">';
	html += '<param name="EnableContextMenu" value="0">';
	html += '<\/OBJECT>';
	document.write(html);
}

function WMT(val)
{
	window.open("/vodcp/vodplayer.asp?DATASRC="+val, "VOD", "left=0, top=0, width=588, height=660, scrollbars=no, status=no, resizable=no");
}

function Teruten(val)
{
	window.open("/vodcp/vodplayer.asp?Teruten=Teruten&DATASRC="+val, "VOD", "left=0, top=0, width=705, height=758, scrollbars=no, status=no, resizable=no");
}

function WMT_WIDE(val)
{
	window.open("/vodplayer/vodplayer.asp?WIDE=WIDE&DATASRC="+val, "VOD", "left=0, top=0, width=547, height=630, scrollbars=no, status=no, resizable=no");
}

function Teruten_WIDE(val)
{
	window.open("/vodplayer/vodplayer.asp?WIDE=WIDE&Teruten=Teruten&DATASRC="+val, "VOD", "left=0, top=0, width=675, height=729, scrollbars=no, status=no, resizable=no");
}

function SeeVideo_WMT(val)
{
	window.open("/vod/SeeVideo/vodplayer.asp?DATASRC="+val, "VOD", "left=0, top=0, width=547, height=630, scrollbars=no, status=no, resizable=no");	
}

function SeeVideo_Teruten(val)
{
	window.open("/vod/SeeVideo/vodplayer.asp?Teruten=Teruten&DATASRC="+val, "VOD", "left=0, top=0, width=675, height=729, scrollbars=no, status=no, resizable=no");
}

function AQUA_VOD(val)
{
		
	//window.open("/AquaPlayer/Play.asp?DATASRC="+val, "AquaPlayer", "left=0, top=0, width=512, height=404, menubar=no, resizable=no, status=no, scrollbars=no");
	window.open("/AquaPlayer/Player_Auth.asp?DATASRC="+val, "AquaPlayer222", "left=0, top=0, width=512, height=404, menubar=no, resizable=no, status=no, scrollbars=no");

} 

// ¿¡µà¹Ú½º °­ÁÂ
function EDUBOX_VOD(val1,val2,val3,val4,val5,val6)
{
	var pop_width;
	var pop_height;

	if ( ( val2 == "LE0000000000967" ) || ( val2 == "LE0000000000968" ) || ( val2 == "LE0000000000963" ) || ( val2 == "LE0000000000964" ) || ( val2 == "LE0000000000973" ) )
	{
		pop_width = "991";
		pop_height = "704";
	}
	else if ( ( val2 == "LE0000000000991" ) || ( val2 == "LE0000000000994" ) || ( val2 == "LE0000000000984" ) || ( val2 == "LE0000000000985") )
	{
		pop_width = "1050";
		pop_height = "780";
	}
	else
	{
		pop_width = "990";
		pop_height = "700";
	}

	//window.open("http://www.edubox.com/LinkCP/user_auth.aspx?com=1318&userID="+val1+"&LectureID="+val2+"&Lesson="+val3+"&p_code="+val4, "AquaPlayer222", "left=0, top=0, width="+pop_width+", height="+pop_height+", menubar=no, resizable=no, status=no, scrollbars=no");

	window.open("/AquaPlayer/edubox_player.asp?userID="+val1+"&LectureID="+val2+"&Lesson="+val3+"&p_code="+val4+"&c_code="+val5+"&seq="+val6, "AquaPlayer222", "left=0, top=0, width="+pop_width+", height="+pop_height+", menubar=no, resizable=no, status=no, scrollbars=no");

} 

// ¿¡µà¹Ú½º °­ÁÂ
function EDUBOX_VOD_SAMPLE(val2)
{
	var pop_width;
	var pop_height;

	if ( ( val2 == "LE0000000000967" ) || ( val2 == "LE0000000000968" ) || ( val2 == "LE0000000000963" ) || ( val2 == "LE0000000000964" ) || ( val2 == "LE0000000000973" ) )
	{
		pop_width = "991";
		pop_height = "704";
	}
	else if ( ( val2 == "LE0000000000991" ) || ( val2 == "LE0000000000994" ) || ( val2 == "LE0000000000984" ) || ( val2 == "LE0000000000985") )
	{
		pop_width = "1050";
		pop_height = "780";
	}
	else
	{
		pop_width = "990";
		pop_height = "700";
	}

	//window.open("http://www.edubox.com/LinkCP/user_sample.aspx?LectureID="+val2, "AquaPlayer222", "left=0, top=0, width="+pop_width+", height="+pop_height+", menubar=no, resizable=no, status=no, scrollbars=no");

	window.open("/AquaPlayer/edubox_player.asp?LectureID="+val2+"&gubun=sample", "AquaPlayer222", "left=0, top=0, width="+pop_width+", height="+pop_height+", menubar=no, resizable=no, status=no, scrollbars=no");
} 


// ÀÌÇÑÅÍ °­ÁÂ
function EHANTER_VOD2(val1,val2,val3,val4,val5)
{
	var pop_width;
	var pop_height;

	pop_width = "1010";
	pop_height = "565";

	window.open("/AquaPlayer/ehanter_player.asp?userID="+val1+"&p_code="+val2+"&c_code="+val3+"&seq="+val4+"&gubun="+val5, "AquaPlayer222", "left=0, top=0, width="+pop_width+", height="+pop_height+", menubar=no, resizable=no, status=no, scrollbars=no");

} 
// ÀÌÇÑÅÍ °­ÁÂ
function EHANTER_VOD(val1,val2,val3,val4)
{
	var pop_width;
	var pop_height;

	if(val4=="310915001"){
		pop_width = "1010";
		pop_height = "565";
	}else{
		pop_width = "1010";
		pop_height = "601";
	}

	window.open("/AquaPlayer/ehanter_player.asp?userID="+val1+"&datasrc="+val2+"&gubun="+val3, "AquaPlayer222", "left=0, top=0, width="+pop_width+", height="+pop_height+", menubar=no, resizable=no, status=no, scrollbars=no");

} 
