/* ################## Script For Flash & ActiveX #########################
// @@ÁÖÀÇ »çÇ× 
//  - »óÈ£ÀÛ¿ë ¾ø´Â ÄÁÅÙÃ÷´Â DocumentWrite, SetInnerHTML µÑ´Ù »ç¿ë °¡´É
//  - »óÈ£ÀÛ¿ë ÀÖ´Â ÄÁÅÙÃ÷´Â SetInnerHTML¸¸ »ç¿ë °¡´É


//	MakeFlash	- URL ¹æ½Ä
	-strWmode :  "none, transparent, opaque"
	-strOtherParam : »ç¿ëÀÚ ÁöÁ¤ Param
	
	MakeObject	- FILENAME ¹æ½Ä
	-strAuto  :  "true,false"	//ÀÚµ¿½ÇÇà
	-EnableContentMenu : "true,false" //¸¶¿ì½º ¿À¸¥ÂÊ ¹æÁö
// #######################################################################*/


//FLASH
function MakeFlash(strUrl,strWidth,strHeight,strWmode,strOtherParam){
	Flash_String="<object   classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" width="+strWidth+" height="+strHeight+">";
	Flash_String+="<param name=\"movie\" value="+strUrl+">";
	Flash_String+="<param name=\"quality\" value=\"high\">";
    Flash_String+="<param name=allowScriptAccess value=always />";
	if(strWmode != ''){
	Flash_String+="<param name=\"wmode\" value="+strWmode+">";	
	}
	Flash_String+=strOtherParam;								
	Flash_String+="<embed src="+strUrl+"  allowScriptAccess='always'  quality=\"high\" wmode="+strWmode+" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width="+strWidth+" height="+strHeight+"></embed>";
	Flash_String+="</object>";

	return Flash_String;
}



//URL
function MakeObject(strUrl,strWidth,strHeight,strAuto,strOtherParam){
	Object_String="<object id=movie classid=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\" type=\"application/x-oleobject\" codebase=\"HTTP://ACTIVEX.MICROSOFT.COM/ACTIVEX/CONTROLS/MPLAYER/EN/NSMP2INF.CAB#VERSION=6,4,7,1112\" width="+strWidth+" height="+strHeight+">";
	Object_String+="<param name=\"URL\" value="+strUrl+">";
	Object_String+="<param name=\"AUTOSTART\" value="+strAuto+">";			
	Object_String+="<param name=\"volume\" value=\"100\">";
	Object_String+="<param name=\"EnableContextMenu\" value=\"false\">";	
	Object_String+=strOtherParam;								
	Object_String+="</object>";

	return Object_String;
}

//FILENAME
function MakeObject2(strUrl,strWidth,strHeight,strAuto,strOtherParam){
	Object_String="<object classid=\"clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95\" type=\"application/x-oleobject\" codebase=\"HTTP://ACTIVEX.MICROSOFT.COM/ACTIVEX/CONTROLS/MPLAYER/EN/NSMP2INF.CAB#VERSION=6,4,7,1112\" width="+strWidth+" height="+strHeight+">";
	Object_String+="<param name=\"FILENAME\" value="+strUrl+">";
	Object_String+="<param name=\"AUTOSTART\" value="+strAuto+">";			
	Object_String+="<param name=\"volume\" value=\"100\">";
	Object_String+="<param name=\"EnableContextMenu\" value=\"false\">";	
	Object_String+=strOtherParam;								
	Object_String+="</object>";

	return Object_String;
}



// innerHTML Type
function DivWrite(target, code)
{ 
	target.innerHTML = code; 
}

// Direct Write Type
function DirectWrite(src)
{
	document.write(src);
}
