window.focus();
var reload=1;
var curFirstTour=4;
var nohelp=0;

function launchTour()
{
	top.frames["qtmovie"].ReloadTourSWF(curFirstTour);
	reload=0;
}

function jumpbox(tourname)
{
	if(tourname == "flyer.fdf")
	{
	    window.open(tourname);
	    return;
	}
	var destination=window.qtmovie;
	var thebox=document.d352;
	if(tourname>0 && reload ==0)
	{
		top.frames["qtmovie"].ChangePano(tourname);
	}
	else if(tourname>0 && reload ==1)
	{
		curFirstTour=tourname;
		destination.location.href="vt.htm";
		reload=0;
		return;
	}
	else
	{
		destination.location.href=thebox.d343.options[thebox.d343.selectedIndex].value;
		reload=1;
	}
}

function disableHelp()
{
	nohelp=1;
}


function updateHelp()
{
	if(nohelp==0)
	{
		var indexnum=document.d352.d343.options.length;
		indexnum--; //help is always last index
		document.d352.d343.options.selectedIndex=indexnum;
		reload=1;
	}
}

function isNav() {
	return (navigator.appName == "Netscape")
}

function isIE() {
	return (navigator.appName == "Microsoft Internet Explorer")
}


function correctsize()
{
	if (navigator.appVersion.indexOf("Mac") != -1) //is mac?  if so reduce vertical size
	{
		if(isIE())
		{
			window.moveTo(0,0);
			window.resizeTo(window.screen.availWidth,window.screen.availHeight);

		}
		else
		{
			window.moveTo(0,0);
			window.resizeTo(window.screen.availWidth,window.screen.availHeight);
		}
	}
	else
	{
		if(isIE())
		{
			window.moveTo(0,0);
			window.resizeTo(window.screen.availWidth,window.screen.availHeight);

	}
		else
		{
			window.moveTo(0,0);
			window.resizeTo(window.screen.availWidth,window.screen.availHeight);
		}
	}
	window.qtmovie.location.href="vt.htm";
}

