// JavaScript Document

// +++++++++++++  MakeFlashString(source,id,width,height,wmode,otherParam) ++++++++
// 
// source: source url
// id: flash id 
// width: source width
// height: source height
// wmode: wmode --> "none, transparent, opaque"
// otherparam : "<param name=myParam value=myValue />"
// 
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function MakeFlash5String(source,id,width,height,wmode, otherParam)
{
	return "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width="+width+" height="+height+" id="+id+"><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=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+width+" height="+height+"></embed></object>";
}

function MakeFlash6String(source,id,width,height,wmode, otherParam)
{
	return "<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="+width+" height="+height+" id="+id+"><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=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+width+" height="+height+"></embed></object>";
}

function MakeFlash7String(source,id,width,height,wmode, otherParam)
{
	return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width="+width+" height="+height+" id="+id+"><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=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+width+" height="+height+"></embed></object>";
}

function MakeFlash8String(source,id,width,height,wmode, otherParam)
{
	return "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0\" width="+width+" height="+height+" id="+id+"><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=\"http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash\" width="+width+" height="+height+"></embed></object>";
}

//loop -1´Â True, 0Àº Flasle
function MakeMovieString(source,id,width,height,loop)
{
	return "<object classid='CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715' id="+id+" type='application/x-oleobject' width="+width+" height="+height+" standby='Loading Microsoft Windows Media Player components...'> <param name='Filename' value="+source+"> <param name='AllowScan' value='-1'> <param name='AllowChangeDisplaySize' value='-1'> <param name='AnimationAtStart' value='0'> <param name='AudioStream' value='-1'> <param name='AutoStart' value='-1'> <param Name='AutoSize' Value='0'> <param name='AutoResize' value='-1'> <param name='AutoRewind' value='0'> <param name='Balance' value='0'> <param name='BaseURL'> <param name='BufferingTime' value='5'> <param name='CaptioningID'> <param name='ClickToPlay' value='-1'> <param name='CursorType' value='0'> <param name='CurrentPosition' value='-1'> <param name='CurrentMarker' value='0'> <param name='DefaultFrame'> <param name='DisplayBackColor' value='0'> <param name='DisplayForeColor' value='16777215'> <param name='DisplayMode' value='0'> <param name='DisplaySize' value='0'> <param name='Enabled' value='-1'> <param name='EnableContextMenu' value='-1'> <param name='EnablePositionControls' value='-1'> <param name='EnableFullScreenControls' value='-1'> <param name='EnableTracker' value='-1'> <param name='InvokeURLs' value='-1'> <param name='Language' value='-1'> <param name='PlayCount' value='1'> <param name='PreviewMode' value='0'> <param name='Rate' value='1'> <param name='SAMILang'> <param name='SAMIStyle'> <param name='SAMIFileName'> <param name='SelectionStart' value='-1'> <param name='SelectionEnd' value='-1'> <param name='SendOpenStateChangeEvents' value='-1'> <param name='SendWarningEvents' value='-1'> <param name='SendErrorEvents' value='-1'> <param name='SendKeyboardEvents' value='0'> <param name='SendMouseClickEvents' value='0'> <param name='SendMouseMoveEvents' value='0'> <param name='SendPlayStateChangeEvents' value='-1'> <param name='ShowCaptioning' value='0'> <param name='ShowControls' value='-1'> <param name='ShowAudioControls' value='-1'> <param name='ShowDisplay' value='0'> <param name='ShowGotoBar' value='0'> <param name='ShowPositionControls' value='-1'> <param name='ShowStatusBar' value='-1'> <param name='ShowTracker' value='-1'> <param name='TransparentAtStart' value='-1'> <param name='VideoBorderWidth' value='0'> <param name='VideoBorderColor' value='0'> <param name='VideoBorder3D' value='0'> <param name='Volume' value='-600'> <param name='WindowlessVideo' value='0'> <param name='loop' value='"+loop+"'></object>";
}

// innerHTML Type
function SetInnerHTML(target, code)
{
	target.innerHTML = code; 
}

// Direct Write Type
function DocumentWrite(src)
{
	document.write(src);
}
