if ((window.p2q_Version) && (window.p2q_Version>=2.0)) {
				// Check to see if the version meets the requirements for playback
				var flashvars="";
				// embedded panorama data 
				panorama='<panorama>';
				panorama+='<view>';
				panorama+='<start pan="0" tilt="0" fov="90"/>';
				panorama+='<min pan="-180" tilt="-65" fov="10"/>';
				panorama+='<max pan="180" tilt="90" fov="120"/>';
				panorama+='</view><autorotate speed="0.100" delay="5.00" returntohorizon="0.000" onlyinfocus="0" startloaded="0" />';
				panorama+='<display width="640" height="480" quality="9" changemotionquality="1" changestagequality="1" smoothing="1" scalemode="stage" />';
				panorama+='<input tile0url="' + photo[0] + '" tile1url="' + photo[1] + '" tile2url="' + photo[2] + '" tile3url="' + photo[3] + '" tile4url="' + photo[4] + '" tile5url="' + photo[5] + '" tilesize="901" ><preview images="1" color="0x808080"/>';
				panorama+='</input>';
				panorama+='<userdata title="" description="" author="" datetime="" copyright="" source="" info="" comment="" />';
				panorama+='<control sensitifity="8" simulatemass="1" locked="0" lockedwheel="0" />';
				panorama+='<cursor ownonmovement="1" ownondefault="1" />';
				panorama+='</panorama>';
				flashvars+="panorama=" + escape(panorama) + "&";
				// embedded skin data 
				skin='<skin><element type="image"x="-112" y="-32" anchor="4" width="224" height="64" id="loading image" visible="1" alpha="1" angle="0" scalex="1" scaley="1" center="4" imgurl="data/skin_0.png" >';
				skin+='<action src="loaded" type="hide" value="" value2="" target="$self" />';
				skin+='<element type="text"x="12" y="14" anchor="0" width="200" height="20" id="loading text" visible="1" alpha="1" angle="0" scalex="1" scaley="1" center="4" text="&lt;b&gt;Loading... $p%&lt;/b&gt;" align="0" color="0x000000" bordercolor="0x000000" backgroundcolor="0xffffff" background="0" border="0" wordwrap="0" autosize="0" >';
				skin+='</element>';
				skin+='<element type="rectangle"x="12" y="40" anchor="0" width="200" height="12" id="loading bar" visible="1" alpha="1" angle="0" scalex="1" scaley="1" center="3" bordercolor="0x000000" borderalpha="1" backgroundcolor="0x4f4f4f" backgroundalpha="1" borderwidth="2" >';
				skin+='<modifier src="loading" type="scalex" offset="0" factor="1" />';
				skin+='</element>';
				skin+='<element type="image"x="200" y="1" anchor="0" width="24" height="24" id="loading close" visible="1" alpha="1" angle="0" scalex="1" scaley="1" center="4" imgurl="data/skin_1.png" >';
				skin+='<action src="click" type="hide" value="" value2="" target="$parent" />';
				skin+='</element>';
				skin+='</element>';
				skin+='<element type="rectangle"x="-138" y="-38" anchor="7" width="277" height="33" id="toolbar" visible="1" alpha="0.5" angle="0" scalex="0.5" scaley="0.5" center="7" bordercolor="0x000000" borderalpha="1" backgroundcolor="0x000000" backgroundalpha="0.00392157" borderwidth="0" >';
				skin+='<action src="enter" type="changescale" value="1" value2="" target="$self" />';
				skin+='<action src="leave" type="changescale" value="0.5" value2="" target="$self" />';
				skin+='<action src="enter" type="changealpha" value="1" value2="" target="$self" />';
				skin+='<action src="leave" type="changealpha" value="0.5" value2="" target="$self" />';
				skin+='<element type="button"x="0" y="0" anchor="0" width="32" height="32" id="left" visible="1" alpha="1" angle="0" scalex="1" scaley="1" center="4" btnurl="../btn/skin_2.png" overurl="../btn/skin_2o.png" >';
				skin+='<action src="pressed" type="panleft" value="" value2="" target="" />';
				skin+='</element>';
				skin+='<element type="button"x="35" y="0" anchor="0" width="32" height="32" id="right" visible="1" alpha="1" angle="0" scalex="1" scaley="1" center="4" btnurl="../btn/skin_3.png" overurl="../btn/skin_3o.png" >';
				skin+='<action src="pressed" type="panright" value="" value2="" target="" />';
				skin+='</element>';
				skin+='<element type="button"x="70" y="0" anchor="0" width="32" height="32" id="up" visible="1" alpha="1" angle="0" scalex="1" scaley="1" center="4" btnurl="../btn/skin_4.png" overurl="../btn/skin_4o.png" >';
				skin+='<action src="pressed" type="tiltup" value="" value2="" target="" />';
				skin+='</element>';
				skin+='<element type="button"x="105" y="0" anchor="0" width="32" height="32" id="down" visible="1" alpha="1" angle="0" scalex="1" scaley="1" center="4" btnurl="../btn/skin_5.png" overurl="../btn/skin_5o.png" >';
				skin+='<action src="pressed" type="tiltdown" value="" value2="" target="" />';
				skin+='</element>';
				skin+='<element type="button"x="140" y="0" anchor="0" width="32" height="32" id="zoom in" visible="1" alpha="1" angle="0" scalex="1" scaley="1" center="4" btnurl="../btn/skin_6.png" overurl="../btn/skin_6o.png" >';
				skin+='<action src="pressed" type="zoomin" value="" value2="" target="" />';
				skin+='</element>';
				skin+='<element type="button"x="175" y="0" anchor="0" width="32" height="32" id="zoom out" visible="1" alpha="1" angle="0" scalex="1" scaley="1" center="4" btnurl="../btn/skin_7.png" overurl="../btn/skin_7o.png" >';
				skin+='<action src="pressed" type="zoomout" value="" value2="" target="" />';
				skin+='</element>';
				skin+='<element type="button"x="210" y="0" anchor="0" width="32" height="32" id="auto rotate" visible="1" alpha="1" angle="0" scalex="1" scaley="1" center="4" btnurl="../btn/skin_8.png" overurl="../btn/skin_8o.png" >';
				skin+='<action src="click" type="toogleautorotate" value="" value2="" target="" />';
				skin+='</element>';
				skin+='<element type="button"x="245" y="0" anchor="0" width="32" height="32" id="fullscreen" visible="1" alpha="1" angle="0" scalex="1" scaley="1" center="4" btnurl="../btn/skin_9.png" overurl="../btn/skin_9o.png" >';
				skin+='<action src="click" type="tooglefullscreen" value="" value2="" target="" />';
				skin+='</element>';
				skin+='</element>';
				skin+='</skin>';
				flashvars+="skin=" + escape(skin) + "&";
			p2q_EmbedFlash(swfile,'640','480','allowFullScreen','true','FlashVars',flashvars);
				
				if (!DetectFlashVer(9,0,0)) {
					document.write('<p class="warning">This content requires Adobe Flash Player Version 9 or higher. '
								 + '<a href="http://www.adobe.com/go/getflash/">Get Flash<\/a><\/p>');
				}
			} else {
				document.writeln('<p class="warning">p2q_embed_object.js is not included or it is too old! Please copy this file into your html directory.<\/p>');
			}
