// 단순 출력
function documentwrite(src){
	document.write(src);
}

// 플래시
function FlashPlay(Src, Width, Height, fName){
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' id='"+ fName +"' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='"+ Width +"' height='"+ Height +"'>");
	document.write("<param name='Movie' value='"+ Src +"'>");
	document.write("<param name='Play' value='true'>");
	document.write("<param name='Loop' value='true'>");
	document.write("<param name='Quality' value='High'>");
	document.write("<param name='_cx' value='5080'>");
	document.write("<param name='_cy' value='5080'>");
	document.write("<param name='Src' value='"+ Src +"'>");
	document.write("<param name='WMode' value='Window'>");
	document.write("<param name='Menu' value='false'>");
	document.write("<param name='Scale' value='ShowAll'>");
	document.write("<param name='DeviceFont' value='false'>");
	document.write("<param name='EmbedMovie' value='false'>");
	document.write("<param name='SeamlessTabbing' value='false'>");
	document.write("<param name='Profile' value='false'>");
	document.write("<param name='ProfilePort' value='0'>");
	document.write("<embed src='"+ Src +"' play='true' loop='true' quality='High' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='"+ Width +"' height='"+ Height +"' wmode='Window' menu='false' scale='ShowAll' devicefont='false' embedmovie='false' seamlesstabbing='false' profile='false' profileport='0'></embed>");
	document.write("</object>");
}

// 투명 플래시
function FlashPlayTrans(Src, Width, Height, fName){
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' id='"+ fName +"' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='"+ Width +"' height='"+ Height +"'>");
	document.write("<param name='Movie' value='"+ Src +"'>");
	document.write("<param name='Play' value='true'>");
	document.write("<param name='Loop' value='true'>");
	document.write("<param name='Quality' value='High'>");
	document.write("<param name='_cx' value='5080'>");
	document.write("<param name='_cy' value='5080'>");
	document.write("<param name='Src' value='"+ Src +"'>");
	document.write("<param name='WMode' value='Transparent'>");
	document.write("<param name='Menu' value='false'>");
	document.write("<param name='Scale' value='ShowAll'>");
	document.write("<param name='DeviceFont' value='false'>");
	document.write("<param name='EmbedMovie' value='false'>");
	document.write("<param name='SeamlessTabbing' value='false'>");
	document.write("<param name='Profile' value='false'>");
	document.write("<param name='ProfilePort' value='0'>");
	document.write("<embed src='"+ Src +"' play='true' loop='true' quality='High' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' width='"+ Width +"' height='"+ Height +"' wmode='Transparent' menu='false' scale='ShowAll' devicefont='false' embedmovie='false' seamlesstabbing='false' profile='false' profileport='0'></embed>");
	document.write("</object>");
}

// 동영상
function AsfPlay(src, width, height){
	document.write("<object classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715' width='" + width + "', height='" + height + "'>");
	document.write("<param name='FileName' value='" + src + "'>");
	document.write("<param name='EnableContextMenu' value='false'>"); //오른쪽 마우스 클릭
	document.write("<param name='ShowStatusBar' value='true'>"); //컨트롤러 아래에 버퍼링과 남은시간/총시간 을 보여주는 한줄의 정보창
	document.write("<param name='Volume' value='0'>"); //최대볼륨
	document.write("<embed src='" + src + "' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/' width='" + width + "' height='" + height + "'></embed></object>");
}

// 동영상(컨트롤 판넬 없는것)
function AsfNone(src, width, height){
	document.write("<OBJECT ID='aPlayer' CLASSID='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715' width='" + width + "', height='" + height + "'>");
	document.write("<PARAM name='autoStart' value='true'>");
	document.write("<PARAM name='URL' value='" + src + "'>");
	document.write("<PARAM name='EnableContextMenu' value='false'>"); //오른쪽 마우스 클릭
	document.write("<PARAM name='uiMode' value='none'>");
	document.write("<embed src='" + src + "' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/' width='" + width + "' height='" + height + "'></embed>");
	document.write("</OBJECT>");
}