function flashMovie(fid,src,wid,hei,fvs,wmd) { 

  this.fPrint = ''; 
  this.Id = document.getElementById(fid); 
  this.Src = src; 
  this.Width = wid; 
  this.Height = hei; 
  this.FlashVars = (fvs != undefined)? fvs :''; 
  this.Wmod = (wmd != undefined)? wmd :''; 
  if(isObject(Id)) { 
    fPrint = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"'; 
    fPrint += ' width="'+Width+'"'; 
    fPrint += ' height="'+Height+'">'; 
    fPrint += '<param name="movie" value="'+Src+'">'; 
    fPrint += '<param name="quality" value="high">'; 
    fPrint += (FlashVars != null) ? '<param name="FlashVars" value="'+FlashVars+'">' : ''; 
    fPrint += (Wmod != null) ? '<param name="wmode" value="'+Wmod+'">' : ''; 
    fPrint += '<embed'; 
    fPrint += fPrint + ' src="'+Src+'"'; 
    fPrint += (FlashVars != null) ? ' FlashVars="'+FlashVars+'"' : ''; 
    fPrint += (Wmod != null) ? ' wmode="'+Wmod+'"' : ''; 
    fPrint += ' quality="high"'; 
    fPrint += ' pluginspage="http://www.macromedia.com/go/getflashplayer"'; 
    fPrint += ' type="application/x-shockwave-flash"'; 
    fPrint += ' width="'+Width+'"'; 
    fPrint += ' height="'+Height+'"'; 
    fPrint += '></embed>'; 
    fPrint += '</object>'; 
    Id.innerHTML = fPrint; 
  } 
} 

function flashMovie_menu(fid,src,wid,hei,fvs,wmd) { 
  this.fPrint = ''; 
  this.Id = document.getElementById(fid); 
  this.Src = src; 
  this.Width = wid; 
  this.Height = hei; 
  this.FlashVars = (fvs != undefined)? fvs :''; 
  this.Wmod = (wmd != undefined)? wmd :'transparent'; 
  if(isObject(Id)) { 
    fPrint = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"'; 
    fPrint += ' width="'+Width+'"';
	fPrint += ' id="'+fid+'_f"';
    fPrint += ' height="'+Height+'">'; 
    fPrint += '<param name="movie" value="'+Src+'">'; 
	fPrint += '<param name="quality" value="high">'; 
    fPrint += (FlashVars != null) ? '<param name="FlashVars" value="'+FlashVars+'">' : ''; 
    //fPrint += (Wmod != null) ? '<param name="wmode" value="'+Wmod+'">' : '';
	fPrint += "<param name=\"wmode\" value=\"transparent\">";
	fPrint += "<param name=\"scale\" value=\"noscale\">";
    fPrint += '<embed'; 
    fPrint += fPrint + ' src="'+Src+'"'; 
    fPrint += (FlashVars != null) ? ' FlashVars="'+FlashVars+'"' : ''; 
    fPrint += (Wmod != null) ? ' wmode="'+Wmod+'"' : ''; 
    fPrint += ' quality="high"'; 
    fPrint += ' pluginspage="http://www.macromedia.com/go/getflashplayer"'; 
    fPrint += ' type="application/x-shockwave-flash"'; 
    fPrint += ' width="'+Width+'"'; 
    fPrint += ' height="'+Height+'"'; 
    fPrint += '></embed>'; 
    fPrint += '</object>'; 
    Id.innerHTML = fPrint; 
  } 
} 

function flashMovie2(fid,src,wid,hei,fvs,wmd) { 
  this.fPrint = ''; 
  this.Id = document.getElementById(fid); 
  this.Src = src; 
  this.Width = wid; 
  this.Height = hei; 
  this.FlashVars = (fvs != undefined)? fvs :''; 
  //this.Wmod = (wmd != undefined)? wmd :'';
  this.Wmod = (wmd != undefined)? wmd :'transparent';
  if(isObject(Id)) { 
    fPrint = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"'; 
    fPrint += ' width="'+Width+'"'; 
    fPrint += ' height="'+Height+'">'; 
    fPrint += '<param name="movie" value="'+Src+'">'; 
    fPrint += '<param name="quality" value="high">'; 
    fPrint += (FlashVars != null) ? '<param name="FlashVars" value="'+FlashVars+'">' : ''; 
    fPrint += (Wmod != null) ? '<param name="wmode" value="'+Wmod+'">' : ''; 
    fPrint += '<embed'; 
    fPrint += fPrint + ' src="'+Src+'"'; 
    fPrint += (FlashVars != null) ? ' FlashVars="'+FlashVars+'"' : ''; 
    fPrint += (Wmod != null) ? ' wmode="'+Wmod+'"' : ''; 
    fPrint += ' quality="high"'; 
    fPrint += ' pluginspage="http://www.macromedia.com/go/getflashplayer"'; 
    fPrint += ' type="application/x-shockwave-flash"'; 
    fPrint += ' width="'+Width+'"'; 
    fPrint += ' height="'+Height+'"'; 
    fPrint += '></embed>'; 
    fPrint += '</object>'; 
    Id.innerHTML = fPrint; 
  } 
} 

function MakeFlash(Url,Width,Height){                 
  document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"" + Width + "\" height=\"" + Height + "\">"); 
  document.writeln("<param name=\"movie\" value=\"" + Url + "\">"); 
  document.writeln("<param name=\"quality\" value=\"high\" />");     
  document.writeln("<param name=\"wmode\" value=\"transparent\">"); 
  document.writeln("<embed src=\"" + Url + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + Width + "\"  height=\"" + Height + "\">"); 
  document.writeln("</object>");     
} 

function flashMovie_id(fid,src,wid,hei,obid,fvs,wmd) { 
  this.fPrint = ''; 
  this.Id = document.getElementById(fid); 
  this.Src = src; 
  this.Width = wid; 
  this.Height = hei; 
  this.FlashVars = (fvs != undefined)? fvs :''; 
  this.Wmod = (wmd != undefined)? wmd :''; 
  if(isObject(Id)) { 
    fPrint = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"'; 
	fPrint += ' id="'+obid+'"'; 
	fPrint += ' width="'+Width+'"'; 
    fPrint += ' height="'+Height+'">'; 
    fPrint += '<param name="movie" value="'+Src+'">'; 
    fPrint += '<param name="quality" value="high">'; 
    fPrint += (FlashVars != null) ? '<param name="FlashVars" value="'+FlashVars+'">' : ''; 
    fPrint += (Wmod != null) ? '<param name="wmode" value="'+Wmod+'">' : ''; 
    fPrint += '<embed'; 
    fPrint += fPrint + ' src="'+Src+'"'; 
    fPrint += (FlashVars != null) ? ' FlashVars="'+FlashVars+'"' : ''; 
    fPrint += (Wmod != null) ? ' wmode="'+Wmod+'"' : ''; 
    fPrint += ' quality="high"'; 
    fPrint += ' pluginspage="http://www.macromedia.com/go/getflashplayer"'; 
    fPrint += ' type="application/x-shockwave-flash"'; 
    fPrint += ' width="'+Width+'"'; 
    fPrint += ' height="'+Height+'"'; 
    fPrint += '></embed>'; 
    fPrint += '</object>'; 
    Id.innerHTML = fPrint; 
  } 
} 

function player_view(fid,src,wid,hei,uim,auto,ctm,mid) { 
  this.fPrint = ''; 
  this.Id = document.getElementById(fid); 
  this.Src = src; 
  this.Width = wid; 
  this.Height = hei; 
  this.Uimod = uim;
  this.Auto = auto;
  this.Ctm = ctm;

  if(isObject(Id)) { 
    fPrint = '<object CLASSID="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" standby="Loading Microsoft Windows Media Player components..."'; 
    fPrint += ' width="'+Width+'"'; 
    fPrint += ' id="'+mid+'"';
    fPrint += ' name="'+mid+'"';
    fPrint += ' height="'+Height+'">'; 
    fPrint += '<param name="url" value="'+Src+'">'; 
    fPrint += '<param name="uimode" value="'+Uimod+ '">'; 
    fPrint += '<param name="AutoStart" value="'+Auto+ '">'; 
    fPrint += '<param name="enableContextMenu" value="'+Ctm+ '">'; 
    fPrint += '<param name="stretchToFit" value="'+Ctm+ '">'; 
    fPrint += '</object>'; 
    Id.innerHTML = fPrint; 
  } 
} 

function player_easymaker(fid,src,wid,hei,uim,auto,ctm,mid) { 
  this.fPrint = ''; 
  this.Id = document.getElementById(fid); 
  this.Src = src; 
  this.Width = wid; 
  this.Height = hei; 
  this.Uimod = uim;
  this.Auto = auto;
  this.Ctm = ctm;

  if(isObject(Id)) { 
    fPrint = '<object CLASSID="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" standby="Loading Microsoft Windows Media Player components..."'; 
    fPrint += ' width="'+Width+'"'; 
    fPrint += ' id="'+mid+'"';
    fPrint += ' name="'+mid+'"';
    fPrint += ' height="'+Height+'">'; 
    fPrint += '<param name="url" value="'+Src+'">'; 
    fPrint += '<param name="uimode" value="'+Uimod+ '">'; 
    fPrint += '<param name="AutoStart" value="'+Auto+ '">'; 
    fPrint += '<param name="enableContextMenu" value="'+Ctm+ '">'; 
	fPrint += '<param name="stretchToFit" value="true">'; 
	fPrint += '</object>'; 
    Id.innerHTML = fPrint; 
  } 
} 

function player_old(fid,src,wid,hei,auto,stbar,strac,mid) { 
	
  this.fPrint = ''; 
  this.Id = document.getElementById(fid); 
  this.Src = src; 
  this.Width = wid; 
  this.Height = hei; 
  this.Auto = auto;
  this.Stbar = stbar;
  this.Strac = strac;

  if(isObject(Id)) { 
    fPrint = '<object CLASSID="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" '; 
    fPrint += ' id="'+mid+'"';
    fPrint += ' name="'+mid+'"';
	fPrint += ' width="'+Width+'"'; 
    fPrint += ' height="'+Height+'">'; 
    fPrint += '<param name="filename" value="'+Src+'">'; 
    fPrint += '<param name="AutoStart" value="'+Auto+ '">'; 
    fPrint += '<param name="ShowStatusBar" value="'+Stbar+ '">'; 
    fPrint += '<param name="ShowTracker" value="'+Strac+ '">'; 
    fPrint += '</object>'; 
    Id.innerHTML = fPrint; 
  } 
} 

function isObject(a) { 
    return (a && typeof a == 'object'); 
} 

function player_direct(val) {
		document.writeln("<OBJECT ID='WMPlay' name='WMPlay' CLASSID='CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6' standby='Loading Microsoft Windows Media Player components...' width='614' height='472' >");
		document.writeln("<PARAM name='URL' value='"+val+"'>");	
		document.writeln("<PARAM NAME='uiMode' VALUE='full'>"); 
		document.writeln("<PARAM NAME='AutoStart'  VALUE='true'>");
		document.writeln("<PARAM name='enableContextMenu' value='0'>");
		document.writeln("<param name='stretchToFit' value='true'>");
		document.writeln("</OBJECT>");

}

function swfPrint(f_url, f_id, f_w, f_h) 
{ 
	document.write('<object id="' + f_id + '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + f_w + '" height="' + f_h +'" align="middle">'); 
	document.write('<param name="movie" value="' + f_url + '" />'); 
	document.write('<param name="wmode" value="transparent" />'); 
	document.write('<param name="allowScriptAccess" value="always" />'); 
	document.write('<param name="swLiveConnect" value="true" />'); 
	document.write('<param name="scale" value="noscale" />'); 
	document.write('</object>'); 

	document.write('<!-- Hixie method -->'); 
	document.write('<!--[if !IE]> <-->'); 
	document.write('<object id="' + f_id + '" type="application/x-shockwave-flash" data="' + f_url + '" width="' + f_w + '" height="' + f_h + '" '); 
	document.write('wmode="transparent" '); 
	document.write('name="' + f_id + '" '); 
	document.write('allowScriptAccess="always" '); 
	document.write('scale="noscale" '); 
	document.write('swLiveConnect="true" />'); 
	document.write('<!--> <![endif]-->'); 
} 


// ¸ÞÀÎ³×ºñ°ÔÀÌ¼Ç Ã³¸®¸¦ À§ÇØ »õ·Î ÀÛ¼º(091124, kwang)
function swfPrint_n(f_url, f_id, f_w, f_h) 
{ 
	document.write('<object id="' + f_id + '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + f_w + '" height="' + f_h +'" align="middle">'); 
	document.write('<param name="movie" value="' + f_url + '" />'); 
	document.write('<param name="wmode" value="transparent" />'); 
	document.write('<param name="allowScriptAccess" value="always" />'); 
	document.write('<param name="swLiveConnect" value="true" />'); 
	document.write('<param name="scale" value="noscale" />'); 
	document.write('<param name="salign" value="LT" />'); 
	document.write('</object>'); 

	document.write('<!-- Hixie method -->'); 
	document.write('<!--[if !IE]> <-->'); 
	document.write('<object id="' + f_id + '" type="application/x-shockwave-flash" data="' + f_url + '" width="' + f_w + '" height="' + f_h + '" '); 
	document.write('wmode="transparent" '); 
	document.write('name="' + f_id + '" '); 
	document.write('allowScriptAccess="always" '); 
	document.write('scale="noscale" '); 
	document.write('align="LT" '); 
	document.write('swLiveConnect="true" />'); 
	document.write('<!--> <![endif]-->'); 
} 