function flash(value, 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,19,0" width="'+width+'" height="'+height+'">');
	document.writeln('<param name="movie" value="'+value+'">');
	document.writeln('<param name="quality" value="high">');
	document.writeln('<param name="wmode" value="transparent">');
	document.writeln('<param name="menu" value="false">');
	document.writeln('<embed src="'+value+'" width="'+width+'" height="'+height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" menu="false"></embed>');
	document.writeln('</object>');
}
function flash1(value, 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,19,0" width="'+width+'" height="'+height+'">');
	document.writeln('<param name="movie" value="'+value+'">');
	document.writeln('<param name="quality" value="high">');
	document.writeln('<param name="wmode" value="transparent">');
	document.writeln('<param name="menu" value="false">');
	document.writeln('<embed src="'+value+'" width="'+width+'" height="'+height+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" menu="false"></embed>');
	document.writeln('</object>');
}

function HVStd(value, width, height){	//vr
	document.writeln('<applet code=HyperViewerStd.class archive=../uploadfile/panorama_img/HVStd.jar width='+width+' height='+height+'>');
	document.writeln('<param name=image value='+value+'>');
	document.writeln('<param name=spin value=on>');
	document.writeln('<param name=view value=0.0000,0.0000,40.0000>');
	document.writeln('<param name=smoothing value=on>');
	document.writeln('<param name=toolbar value=on>');
	document.writeln('</applet>');
}


function ptviewer(value, width, height){	//vr
	document.writeln("<APPLET name=\"ptviewer\" archive=\"../uploadfile/panorama_img/ptviewer.jar\"  code=ptviewer.class width="+width+" height="+height+" mayscript=true>");
	document.writeln("<param name=\"wait\" value=\"img/wait.jpg\">");
	document.writeln("<param name=\"frame\" value=\"img/frame.gif\">");
	document.writeln("<param name=\"file\" value=\"ptviewer:0\">");
	document.writeln("<param name=\"bar_x\" value=\"78\">");
	document.writeln("<param name=\"bar_y\" value=\"282\">");
	document.writeln("<param name=\"bar_width\" value=\"393\">");
	document.writeln("<param name=\"bar_height\" value=\"5\">");
	document.writeln("<param name=\"barcolor\" value=\"0066cc\">");
	document.writeln("<param name=\"bgcolor\" value=\"ffffff\">");
	document.writeln("<param name=\"quality\" value=\"3\" >");
	document.writeln("<param name=inits value=\"ptviewer:startApplet(1)\">");
	document.writeln("<param name=shotspot0   value=\" x495 y343 a507 b355 u'ptviewer:startAutoPan(0,0,0.97)' \">");
	document.writeln("<param name=shotspot1   value=\" x507 y343 a519 b355 u'ptviewer:startAutoPan(0,0,1.03)' \">");
	document.writeln("<param name=shotspot2   value=\" x519 y343 a531 b355 u'ptviewer:startAutoPan(-.3,0,1)' \">");
	document.writeln("<param name=shotspot3   value=\" x531 y343 a543 b355 u'ptviewer:startAutoPan(.3,0,1)' \">");
	document.writeln("<param name=shotspot4   value=\" x543 y343 a555 b355 u'ptviewer:stopAutoPan()' \">");
	document.writeln("<param name=pano0 value=\"{file='+value+'}");
	document.writeln("{pan=0}");
	document.writeln("{tilt=0}");
	document.writeln("{fov=90}");
	document.writeln("{fovmax=90}");
	document.writeln("{fovmin=50}");
	document.writeln("{auto=.3}' \">");
	document.writeln("</APPLET>");
}