// ÀÌ¹ÌÁö ·Ñ¿À¹ö
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


//-- ÀÏ¹ÝÀûÀ¸·Î ´Ü¼øÇÑ ÇÃ·¡½¬ ÀÏ °æ¿ì1

function swfView(width, height, url){
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ");
	document.write("codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ");
	document.write("width='"+width+"' height='"+height+"' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' /> ");
	document.write("<param name='movie' value='"+url+"' /> ");
	document.write("<param name='quality' value='high' /> ");
	document.write("<param name='wmode' value='transparent'> ");
	document.write("<embed src='"+url+"' quality='high' width='"+width+"' height='"+height+"' align='middle' ");
	document.write("allowScriptAccess='always' type='application/x-shockwave-flash' ");
	document.write("pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}


//-- ÀÏ¹ÝÀûÀ¸·Î ´Ü¼øÇÑ ÇÃ·¡½¬ ÀÏ °æ¿ì2

function swfView3(width, height, url, fvalues){
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ");
	document.write("codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ");
	document.write("width='"+width+"' height='"+height+"' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' /> ");
	document.write("<param name='movie' value='"+url+"' /> ");
	document.write("<param name='quality' value='high' /> ");
	document.write("<param name='wmode' value='transparent'> ");
	document.write("<param name='flashVars' value='"+fvalues+"'/> ");  
	document.write("<embed src='"+url+"' quality='high' width='"+width+"' height='"+height+"' align='middle' ");
	document.write("allowScriptAccess='always' type='application/x-shockwave-flash' ");
	document.write("pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}

//-- ÀÏ¹ÝÀûÀ¸·Î ´Ü¼øÇÑ ÇÃ·¡½¬ ÀÏ °æ¿ì3

function swfView4(width, height, url, fvalues, idname){
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ");
	document.write("codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ");
	if(idname != ""){
		document.write("id='"+idname+"' ");
	}
	document.write("width='"+width+"' height='"+height+"' align='middle'>");
	document.write("<param name='allowScriptAccess' value='always' /> ");
	document.write("<param name='movie' value='"+url+"' /> ");
	document.write("<param name='quality' value='high' /> ");
	document.write("<param name='allowFullScreen'	value='true' />	");	
	document.write("<param name='wmode' value='transparent'> ");
	document.write("<param name='flashVars' value='"+fvalues+"'/> ");  
	document.write("<embed src='"+url+"' quality='high' width='"+width+"' height='"+height+"' allowFullScreen='true' align='middle' wmode='transparent' ");
	if(idname != ""){
		document.write("id='"+idname+"' ");
	}
	document.write("allowScriptAccess='always' swfLiveConnect=true type='application/x-shockwave-flash' ");
	document.write("pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}


function flexView(id, width, height, url){
	document.write("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' "); 
	document.write("codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' "); 
	document.write("width='"+width+"' height='"+height+"' id='"+id+"'> ");
	document.write("<param name='src' value='"+url+"'> ");
	document.write("<param name='wmode' value='transparent'> ");
	document.write("<embed pluginspage='http://www.macromedia.com/go/getflashplayer' "); 
	document.write("width='"+width+"' height='"+height+"' src='"+url+"'/> ");
	document.write("</object>");
/*
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ");
	document.write("codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,14,0' ");
	document.write("width='"+width+"' height='"+height+"' align='middle' id='"+id+"'>");
	document.write("<param name='src' value='"+url+"'>");
	document.write("<embed src='"+url+"' quality='high' width='"+width+"' height='"+height+"' align='middle' ");
	document.write("allowScriptAccess='sameDomain' type='application/x-shockwave-flash' ");
	document.write("pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
*/
}

//-- ¿©·¯ ÆÄ¶÷µéÀÌ Á¸Àç ÇÒ °æ¿ì..

function swfView2(width, height, idname, obname, allowscriptaccess, quality, wmode, scale, bgcolor, swLiveConnect, fvalues, base, url){

	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' ");
	document.write("codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0' ");
	if(idname != ""){
		document.write("id='"+idname+"' ");
	}
	document.write("width='"+width+"' ");
	document.write("height='"+height+"'>");
	document.write("<param name='movie' value='"+url+"'/>");
	document.write("<param name='quality' value='"+quality+"'/>");
	if(wmode != ""){
		document.write("<param name='wmode' value='"+wmode+"'/>");
	}
	if(allowscriptaccess != ""){
		document.write("<param name='allowscriptaccess' value='"+allowscriptaccess+"'/>");
	}
	if(base != ""){
		document.write("<param name='base' value='"+base+"'/>");
	}
	if(bgcolor != ""){
		document.write("<param name='bgcolor' value='"+bgcolor+"' /> ");
	}
	if ( fvalues != "" ) {
		document.write("<param name='flashVars' value='"+fvalues+"'/> ");    
	}
	document.write("<param name='scale' value='"+scale+"' />");
	document.write("<embed src='"+url+"'");
	document.write("base='"+base+"' ");
	document.write("scale='"+scale+"' ");
	document.write("swLiveConnect='"+swLiveConnect+"' ");

	if(idname != ""){
		document.write("id='"+idname+"' ");
	}
	if(obname != ""){
		document.write("name='"+obname+"' ");
	}
	if(allowscriptaccess != ""){
		document.write("allowScriptAccess	='"+allowscriptaccess+"' ");
	}
	document.write("quality='"+quality+"' ");
	if(wmode != ""){
		document.write("wmode='"+wmode+"' ");
	}
	document.write("width='"+width+"' ");
	document.write("height='"+height+"' ");
	document.write("type='application/x-shockwave-flash' ");
	document.write("pluginspage='http://www.macromedia.com/go/getflashplayer'></embed>");
	document.write("</object>");
}

//-- Microsoft Windows Media Player Àç»ý
function mediaPlayerView(id, name, width, height, showcontrols, autostart, autorewind, autosize, autoresize, transparentatstart, loop, url) {
	document.write("<object id='"+id+"' codeBase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' "); 
	document.write("type='application/x-oleobject' standby='Loading Microsoft Windows Media Player components...' "); 
	document.write("width='"+width+"' height='"+height+"' classid='clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95' name='"+name+"'> ");
	document.write("	<param name='ShowControls' value='"+showcontrols+"'> ");
	document.write("	<param name='AutoStart' value='"+autostart+"'> ");
	document.write("	<param name='AutoRewind' value='"+autorewind+"'> ");
	document.write("	<param name='Autosize' value='"+autosize+"'> ");
	document.write("	<param name='AutoResize' value='"+autoresize+"'> ");
	document.write("	<param name='TransparentAtStart' value='"+transparentatstart+"'> ");
	document.write("	<param name='loop' value='"+loop+"'> ");
	document.write("	<param name='Filename' value='"+url+"'> ");
	document.write("	<embed type='application/x-mplayer2' pluginspage='http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/' "); 
	document.write("		id='"+id+"' name='"+name+"' showpositioncontrols='0' showcontrols='0' autosize='0' autostart='1' showdisplay='0' ");
	document.write("		showstatusbar='0' showtracker='1' loop='1' width='"+width+"'  height='"+height+"' src='"+url+"'> ");
	document.write("	</embed> "); 
	document.write("</object> ");
}

