/*
//////////////////////////////////////////////////////////////////////////////////////////
                         //º¯¼ö¼³¸í - 2006.5.10
//////////////////////////////////////////////////////////////////////////////////////////

file        = ÆÄÀÏ¸í
version = '8' ¶Ç´Â '7' ¶Ç´Â '6' ±âº» '8'·Î¼³Á¤
quality  = 'best' ¶Ç´Â 'auto' ¶Ç´Â 'low' ±âº» 'best'¼³Á¤
id         = ÇÃ·¡½Ã ³×ÀÓ ¾ø´Ù¸é ·¥´ýÃ³¸®
width    = ÇÃ·¡½Ã width
height   = ÇÃ·¡½Ã height
wmode = 'yes' ¶Ç´Â '1'ÀÌ¸é Åõ¸íÃ³¸®, °ø¹éÀÌ¸é Åõ¸í¾ÈµÊ 
color    = ÇÃ·¡½Ã ¹è°æ»ö»ó

*/


function flash(file,version,quality,id,width,height,wmode,color) {
//ÆÄÀÏ°ª ÀÖ´ÂÁö Ã¼Å©
if(file == ''||file == "") var file = 'random_file' + Math.round(Math.random()*10);

//¹öÁ¯°ª ÀÖ´ÂÁö Ã¼Å©
if(version == ''||version == "") var version = '8';

//Ä÷¸®Æ¼°ª Ã¼Å©
if(quality == ''||quality == "") var quality = 'best';

//¾ÆÀÌµð°ª Ã¼Å©
if(id == ''||id == "") var id = 'random_id' + Math.round(Math.random()*10);

//width°ª Ã¼Å©
if(width == ''||width == "") var width = '100%';

//height°ª Ã¼Å©
if(height == ''||height == "") var height = '100%';

//¹è°æ»ö Ã¼Å©
if(color == ''||color == "") var color = '#ffffff';

	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=' + version +',0,0,0 width='+width+' height='+height+' id='+id+' align=middle>');
	document.write('<param name=allowScriptAccess value=sameDomain />');
	document.write('<param name=movie value='+file+' />');
	//Åõ¸íÃ³¸®
	if(wmode == 'yes' || wmode == '1') document.write('<param name=wmode value=transparent />');
	document.write('<param name=quality value='+quality+' />');
	document.write('<param name=bgColor value='+color+' />');
	document.write('<embed src='+file+' quality=best bgcolor='+color+' width='+width+' height='+height+' name='+id+' align=middle allowScriptAccess=sameDomain type=application/x-shockwave-flash pluginspage=http://www.macromedia.com/go/getflashplayer />');
	document.write('</object>');
}