// ################## Script For Flash & ActiveX #########################

// Last Update : 2006-04-03


// +++++++++++++  MakeFlashString(source,id,width,height,wmode) ++++++++
// 
// source: source url --> ÇÃ·¡½¬ ÆÄÀÏÀÇ °æ·Î
// id: flash id 
// width: source width
// height: source height
// wmode: wmode --> "none, transparent, opaque"
// otherparam : Ãß°¡ ÆÄ¶ó¹ÌÅÍ "<param name='myParam' value='myValue' />
// 
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


// +++++++++++++  MakeObjectString(classid, codebase, name, id, width,height, param) ++++++++
// 
// classid: classid --> ÇÃ·¡½¬ ÆÄÀÏÀÇ °æ·Î
// codebase: cabÆÄÀÏ À§Ä¡ ¹× ¹öÀüÁ¤º¸ 
// name :
// id :
// width: source width
// height: source height
// 
// wmode: wmode --> "none, transparent, opaque"
// param : Ãß°¡ ÆÄ¶ó¹ÌÅÍ "<param name='myParam' value='myValue' />
// 
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

// Example 
// DocumentWrite(MakeFlashString('image/ml_flash.swf','emb1','330','520','opaque'));
// SetInnerHTML(document.all.mm, MakeFlashString('image/ml_flash.swf','emb1','330','520','opaque'));
// @@ÁÖÀÇ »çÇ× 
//  - »óÈ£ÀÛ¿ë ¾ø´Â ÄÁÅÙÃ÷´Â DocumentWrite, SetInnerHTML µÑ´Ù »ç¿ë °¡´É
//  - »óÈ£ÀÛ¿ë ÀÖ´Â ÄÁÅÙÃ÷´Â SetInnerHTML¸¸ »ç¿ë °¡´É
// #######################################################################


function MakeFlashString(source,id,width,height,wmode, otherParam)
{	
	return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0\" width="+width+" height="+height+" id="+id+"><param name=allowScriptAccess value=sameDomain><param name=wmode value="+wmode+" /><param name=movie value="+source+" /><param name=quality value=high />"+otherParam+"<embed src="+source+" quality=high wmode="+wmode+" type=\"application/x-shockwave-flash\" pluginspage=\"https://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+width+" height="+height+" showmenu=false></embed></object>";
}

function MakeObjectString(classid, codebase, name, id, width,height, param)
{
	return "<object classid="+classid+" codebase="+codebase+" name="+name+" width="+width+" height="+height+" id="+id+"><param name=wmode value="+wmode+" />"+param+"</object>";
}

function MakeObjectMovie(classid, name, id, width, height, AutoStart, AllowChangeDisplaySize, DisplaySize, Filename, PlayCount, ShowCaptioning, ShowControls, ShowAudioControls, ShowDisplay, ShowGotoBar, ShowPositionControls, ShowStatusBar, ShowTracker) 
{
	return "<OBJECT classid="+classid+" name="+name+" width="+width+" height="+height+" id="+id+"><PARAM NAME=AutoStart VALUE="+AutoStart+"><PARAM NAME=AllowChangeDisplaySize value="+AllowChangeDisplaySize+"><PARAM NAME=DisplaySize VALUE="+DisplaySize+"><PARAM NAME=Filename VALUE="+Filename+"><PARAM NAME=PlayCount VALUE="+PlayCount+"><PARAM NAME=ShowCaptioning VALUE="+ShowCaptioning+"><PARAM NAME=ShowControls VALUE="+ShowControls+"><PARAM NAME=ShowAudioControls VALUE="+ShowAudioControls+"><PARAM NAME=ShowDisplay VALUE="+ShowDisplay+"><PARAM NAME=ShowGotoBar VALUE="+ShowGotoBar+"><PARAM NAME=ShowPositionControls VALUE="+ShowPositionControls+"><PARAM NAME=ShowStatusBar VALUE="+ShowStatusBar+"><PARAM NAME=ShowTracker VALUE="+ShowTracker+"></OBJECT>"
}

function MakeEmbed(Filename, width, height, autostart) {
	return "<embed src="+Filename+" width="+width+" height="+height+" autostart="+autostart+"></embed>"
}

// innerHTML Type
function SetInnerHTML(target, code)
{ 
	target.innerHTML = code; 
}

// Direct Write Type
function DocumentWrite(src)
{
	document.write(src);
}



//<script language="javascript">	DocumentWrite(MakeFlashString('ÆÄÀÏ°æ·Î','LEFT','°¡·Î»çÀÌÁî','¼¼·Î»çÀÌÁî','transparent', ''));</script>