
function playFlash( id, url, width, height, bgcolor, wmode )
{
	var default_opt = "";
	if( id != "" ) {
		default_opt += " id=\"" + id + "\" ";
	}
	if( width != "" ) {
		default_opt += " width=\"" + width + "\" ";
	}
	if( height != "" ) {
		default_opt += " height=\"" + height + "\" ";
	}

	document.write( "<object " + default_opt + " classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" >\n" );
	document.write( "<param name=\"allowScriptAccess\" value=\"sameDomain\" />\n" );
	document.write( "<param name=\"movie\" value=\"" + url + "\" />\n" );
	document.write( "<param name=\"quality\" value=\"high\" />\n" );
	if( bgcolor != "" ) {
		document.write( "<param name=\"bgcolor\" value=\"" + bgcolor + "\" />\n" );
	}
	if( wmode != "" ) {
		document.write( "<param name=\"wmode\" value=\"" + wmode + "\" />\n" );
	}
	document.write( "<embed " + default_opt + " src=\"" + url + "\" " );
	if( bgcolor != "" ) {
		document.write( " bgcolor=\"" + bgcolor + "\" " );
	}
	if( wmode != "" ) {
		document.write( " wmode=\"" + wmode + "\" " );
	}
	document.write( " quality=\"high\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n" );
	document.write( "</object>" );
}


function playActiveSquare( InitFileURL )
{
	var ret_html = "";
	ret_html += '<object id="Wec" width="100%" height="350" classid="CLSID:5F187744-D444-4105-A3E3-D4AFB5914E6D" codebase="/open_content/board/editor/NamoWec.cab#version=6,0,0,22" >';
	ret_html += '<param name="InitFileURL" value="' + InitFileURL + '" >';
	ret_html += '<textarea name="Wec" cols="98" rows="33" class="textarea" >';
	ret_html += 'ÀÌ Ã¢ÀÌ º¸ÀÌ¸é ¾×Æ¼ºê½ºÄù¾î°¡ Á¤»óÀûÀ¸·Î ¼³Ä¡µÇÁö ¾ÊÀº °ÍÀÔ´Ï´Ù.';
	ret_html += '»õ·Î°íÄ§À» ÇÏ½Ã°Å³ª °ü¸®ÀÚ¿¡°Ô ¿äÃ»ÇÏ¿© ÆÄÀÏ¸í°ú ÆÄÀÏ°æ·Î¸¦ È®ÀÎÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.';
	ret_html += '</textarea>';
	ret_html += '</object>';

	document.write( ret_html );
}


function print_str( str ) {
	document.write( str );
}

function MouseOver(obj, bool){
 if(bool)
  obj.src="images/" + obj.id + "_ov.gif";
 else
  obj.src="images/" + obj.id + ".gif";
}


function resize_frame( el ) {
	try {
		document.body.scrollTop = 0;  
		var the_height= document.getElementById(el).contentWindow.document.body.scrollHeight;
		document.getElementById(el).height = the_height + 10;
	} catch ( e ) {
	}
}