//
// autopan code (c) Rich Bono
// all rights reserved! No duplication or use without my express permission!
// This statment must not be removed.
//

var timer;

function AutoPan()
{
var curpan;
var status;

	status = document.VR.GetPluginStatus();
	if(status == "Complete")
	{
		curpan=document.VR.GetPanAngle();
		document.VR.SetPanAngle(curpan + 0.15);
	}

	timer = setTimeout('AutoPan();', 30);
}

function InitAutoPan()
{
	timer = setTimeout('AutoPan();', 8000);
}

function ClearAutoPan()
{
	clearTimeout(timer);
}

function InsertMovie()
{
document.write('<OBJECT classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ');
document.write('codebase="http://www.apple.com/qtactivex/qtplugin.cab" ');
document.write('width="400" height="256" ');
document.write('id="VR" >\n ');
document.write('<PARAM name="src" value="../images/ftfield.mov"> \n');

	document.write('<embed width="400" height="256" src="../images/ftfield.mov" FOV="90.0" enablejavascript="true" name="VR" ');
	document.write(' pluginspage="http://www.apple.com/quicktime/download/" >');
	document.write('</embed> ');
	document.write('<noembed>You need a copy of Apple Quicktime to view this VR of the NH Flying Tigers B-Street flying site in Derry, NH.</noembed>\n');
document.write('</OBJECT>\n');

	InitAutoPan();
}


