function flash(swf,w,h){
html = '';
html += '<OBJECT codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0 height="'+h+'" width="'+w+'" classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000>';
html += '<PARAM NAME="_cx" VALUE="10716">';
html += '<PARAM NAME="_cy" VALUE="10319">';
html += '<PARAM NAME="FlashVars" VALUE="">';
html += '<PARAM NAME="Movie" VALUE="'+swf+'">';
html += '<PARAM NAME="Src" VALUE="'+swf+'">';
html += '<PARAM NAME="WMode" VALUE="Transparent">';
html += '<PARAM NAME="Play" VALUE="0">';
html += '<PARAM NAME="Loop" VALUE="-1">';
html += '<PARAM NAME="Quality" VALUE="High">';
html += '<PARAM NAME="SAlign" VALUE="">';
html += '<PARAM NAME="Menu" VALUE="-1">';
html += '<PARAM NAME="Base" VALUE="">';
html += '<PARAM NAME="AllowScriptAccess" VALUE="">';
html += '<PARAM NAME="Scale" VALUE="NoScale">';
html += '<PARAM NAME="DeviceFont" VALUE="0">';
html += '<PARAM NAME="EmbedMovie" VALUE="0">';
html += '<PARAM NAME="BGColor" VALUE="">';
html += '<PARAM NAME="SWRemote" VALUE="">';
html += '<PARAM NAME="MovieData" VALUE="">';
html += '<PARAM NAME="SeamlessTabbing" VALUE="1">';
html += '<PARAM NAME="Profile" VALUE="0">';;
html += '<PARAM NAME="ProfileAddress" VALUE="">';
html += '<PARAM NAME="ProfilePort" VALUE="0">';
            
html += '<embed src="'+swf+'" width="'+w+'" height="'+h+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"><\/embed>';
html += '<\/OBJECT>';
document.write(html);
}

//Å×ÀÌºí ¸ð¼­¸® µÕ±Û°ÔÇÏ´Â ½ºÅ©¸³Æ®

function roundTable(objID) {
var obj = document.getElementById(objID);
var Parent, objTmp, Table, TBody, TR, TD;
var bdcolor, bgcolor, Space;
var trIDX, tdIDX, MAX;
var styleWidth, styleHeight;

// get parent node
Parent = obj.parentNode;
objTmp = document.createElement('SPAN');
Parent.insertBefore(objTmp, obj);
Parent.removeChild(obj);

// get attribute
bdcolor = obj.getAttribute('rborder');
bgcolor = obj.getAttribute('rbgcolor');
radius = parseInt(obj.getAttribute('radius'));
if (radius == null || radius < 1) radius = 1;
else if (radius > 6) radius = 6;

MAX = radius * 2 + 1;

/*
create table {{
*/
Table = document.createElement('TABLE');
TBody = document.createElement('TBODY');

Table.cellSpacing = 0;
Table.cellPadding = 0;

for (trIDX=0; trIDX < MAX; trIDX++) {
TR = document.createElement('TR');
Space = Math.abs(trIDX - parseInt(radius));
for (tdIDX=0; tdIDX < MAX; tdIDX++) {
TD = document.createElement('TD');

styleWidth = '2px'; styleHeight = '2px';
if (tdIDX == 0 || tdIDX == MAX - 1) styleHeight = null;
else if (trIDX == 0 || trIDX == MAX - 1) styleWidth = null;
else if (radius > 2) {
if (Math.abs(tdIDX - radius) == 1) styleWidth = '4px';
if (Math.abs(trIDX - radius) == 1) styleHeight = '4px';
}

if (styleWidth != null) TD.style.width = styleWidth;
if (styleHeight != null) TD.style.height = styleHeight;

if (Space == tdIDX || Space == MAX - tdIDX - 1) TD.style.backgroundColor = bdcolor;
else if (tdIDX > Space && Space < MAX - tdIDX - 1) TD.style.backgroundColor = bgcolor;

if (Space == 0 && tdIDX == radius) TD.appendChild(obj);
TR.appendChild(TD);
}
TBody.appendChild(TR);
}

/*
}}
*/

Table.appendChild(TBody);

// insert table and remove original table
Parent.insertBefore(Table, objTmp);
}



function setFlash(src, w, h) {
		var Flash_html = "";
		Flash_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+'">';
		Flash_html += '<param name="movie" value="'+src+'">';
		Flash_html += '<param name="quality" value="high">';
		Flash_html += '<param name="wmode" value="transparent">';
		Flash_html += '<param name="swliveconnect" value="true">';
		Flash_html += '<embed src="'+src+'" quality=high bgcolor="#ffffff" width="'+w+'" height="'+h+'" swliveconnect="true" id="param" name="param" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"><\/embed>';
		Flash_html += '<\/object>';

		document.write(Flash_html);
	}
