function TransObject(swf1, width, height, value1)
{
  var tttt = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'"><param name="movie" value="'+swf1+'"><param name="wmode" value="'+value1+'"><param name="quality" value="high"><embed src="'+swf1+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed></object>';
  document.write(tttt);
}

//ÇÃ·¡½¬ Å×µÎ¸® ¹× Åõ¸íµµ Á¦¾î (ÆÄÀÌ¾îÆø½º & ÀÍ½ºÇÃ·Î¾î)
function flash(url, width, height, version, transparent, salign, opaque){

	var CLASSID = "D27CDB6E-AE6D-11cf-96B8-444553540000";
	var CODEBASE = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=";
	var AddVersion = "";
	switch (version){
		case 6 : AddVersion= "6,0,29,0";	 break;
		case 7 : AddVersion= "7,0,19,0";	 break;
		case 8 : AddVersion= "8,0,0,0";		 break;
		default : AddVersion= "8,0,0,0";	 break;
	}
	CODEBASE += AddVersion;
	var PLUGINSPAGE = "http://www.macromedia.com/go/getflashplayer";
	var TYPE = "application/x-shockwave-flash";
	var StrTransparent = "";
	var StrSalign = "";
	var StrOpaque = "";

	if(transparent == 1) StrTransparent = "<param name=\"wmode\" value=\"transparent\">";
	else	StrTransparent = "";

	if(salign != "") StrSalign = "<param name=\"salign\" value=\"" + salign + "\">";
	else	StrSalign = "";

	if(opaque == 1) StrOpaque = "<param name=\"wmode\" value=\"opaque\">";
	else	StrOpaque = "";

	var strValue = "<object classid=\"clsid:" + CLASSID + "\" codebase=\"" + CODEBASE + "\" width=\"" + width + "\" height=\"" + height + "\">"
	+ "<param name=\"movie\" value=\"" + url + "\">"
	+ "<param name=\"quality\" value=\"high\">"
	+ StrTransparent 
	+ StrSalign 
	+ StrOpaque 
	+ "<embed src=\"" + url + "\" width=\"" + width + "\" height=\"" + height + "\" quality=\"high\" pluginspage=\"" + PLUGINSPAGE + "\" type=\"" + TYPE + "\" wmode=\"transparent\"></embed>"
	+ "</object>";

	document.write(strValue);
}

function createApp(str_archive, str_file){
	document.write("<applet code='a3d.ImageRenderApplet.class' archive='"+str_file+"' codebase='.' name='apv' width=600 height=430 align='center'>");
	document.write("  <param name='file' value='"+str_archive+"'>");
	document.write("  <param name='barcolor' value='A6B9F0'>");
	document.write("  <param name='pan' value='180'>");
	document.write("  <param name='tilt' value='0'>");
	document.write("  <param name='fov' value='115'>");
	document.write("  <param name='fovmax' value='160'>");
	document.write("  <param name='fovmin' value='0'>");
	document.write("  <param name='auto' value='3'>");
	document.write("  <param name='panotilt' value='0'>");
	document.write("  <param name='inits' value='viewer:gotoView(-180,0,0);startAutoPan();toggleQuality();'>");
	document.write("  <param name='shotspot0' value=\" x500 y370 a597 b382 l0.7 q  i'/webpage/pr/vr/kcta-1/images/button.gif'\">");
	document.write("  <param name='shotspot1' value=' x496 y370 a513 b382 q u'viewer:gotoView(207,1,1)' '>");
	document.write("  <param name='shotspot2' value=' x508 y370 a525 b382 q u'viewer:ZoomIn()' '>");
	document.write("  <param name='shotspot3' value=' x520 y370 a537 b382 q u'viewer:ZoomOut()' '>");
	document.write("  <param name='shotspot4' value=' x532 y370 a549 b382 q u'viewer:startAutoPan(-1.6,0,1)' '>");
	document.write("  <param name='shotspot5' value=' x544 y370 a561 b382 q u'viewer:startAutoPan(1.6,0,1)' '>");
	document.write("  <param name='shotspot6' value=' x556 y370 a573 b382 q u'viewer:stopAutoPan()' '>");
	document.write("  <param name='shotspot7' value=' x568 y370 a585 b382 q u'viewer:startAutoPan(0,1.6,1)' '>");
	document.write("  <param name='shotspot8' value=' x580 y370 a597 b382 q u'viewer:startAutoPan(0,-1.6,1)' '>");
	document.write("</applet>");
}


function movie(mov1, width, height, mstart){  

  document.write("<object id='Player' width='"+width+"' height='"+height+"' classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'>");
  document.write("  <param name='FileName' value='"+mov1+"'>");
  document.write("  <param name='autoStart' value='"+mstart+"'>");
  document.write("  <param name='AutoRewind' value='false'>");
  document.write("  <param name='volume' VALUE='100'>");
  document.write("  <param name='enabled' VALUE='false'>");
  document.write("  <param name='showControls' value='false'>");
  document.write("  <param name='showPositionControls' VALUE='false'>");
  document.write("  <param name='showStatusBar' value='false'>");
  document.write("  <param name='showDisplay' value='false'>");
  document.write("  <param name='showGotoBar' VALUE='false'>");
  document.write("  <param name='defaultFrame' value='Slide'>");
  document.write("  <param name='sendMouseClickEvents' VALUE='false'>");
  document.write("  <param name='enableContextMenu' value='false'>");
  document.write("  <param name='transparentAtStart' value='false'>");
  document.write("  <param name='animationAtStart' value='false'>");
  document.write("</object>");  
}

//µ¿¿µ»óÄÁÆ®·Ñ
function controlStart()
{
	Player.Play();
}

function controlPause()
{
	Player.AutoRewind=false;
	Player.pause();
}

function controlStop()
{
	Player.AutoRewind=true;
	Player.stop();
}
