function embedFlash(asset, height, width, color) 
{
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
	document.write('height="' + height + '"');
	document.write('width="' + width + '">');
	document.write('<param name="src" value="' + asset + '">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="align" value="middle">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="bgcolor" value="' + color + '">');
	document.write( '<embed ' );
	document.write( '  src="' + asset + '" ' );
	document.write( '  name="' + name + '"' );
	document.write( '  height="' + height + '" ' );
	document.write( '  width="' + width + '" ' );
	document.write( '  align="middle" ' );
	document.write( '  quality="high" ' );
	document.write( '  allowScriptAccess="sameDomain" ' );
	document.write( '  scale="aspect" ' );
	document.write( '  pluginspage="http://www.macromedia.com/go/getflashplayer" ' );
	document.write( '  bgcolor="' + color + '" ' );
	document.write( '  type="application/x-shockwave-flash">' );
	document.write( '</embed>' );
	document.write('</object>');
}

function embedDirectorObject(asset, height, width, color) 
{
	document.write( '<object ');
		document.write( 'classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" ');
		document.write( 'codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,1,0" ');
		document.write( 'height="' + height + '" ');
		document.write( 'width="' + width + '" ');
		document.write( 'id="shockMovie" ');
		document.write( 'name="shockMovie">');

		document.write( '<param name="src" value="' + asset + '">');
		document.write( '<param name="swRemote" value="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\' " />');
		document.write( '<param name="swStretchStyle" value="fill" />');
		document.write( '<param name="bgcolor" value="' + color + '"');

		document.write( '<embed ' );
		document.write( '  src="' + asset + '" ' );
		document.write( '  bgcolor="#FFFFFF" ' );
		document.write( '  width="' + width + '" ' );
		document.write( '  height="' + height + '" ' );
		document.write( '  swRemote="swSaveEnabled=\'true\' swVolume=\'true\' swRestart=\'true\' swPausePlay=\'true\' swFastForward=\'true\' swContextMenu=\'true\' " ');
		document.write( '  swStretchStyle="fill" ' );
		document.write( '  type="application/x-director"' );
		document.write( '  pluginspage="http://www.macromedia.com/shockwave/download/" ' );
		document.write( '  swLiveConnect="true"');
		document.write( '</embed>' );
	document.write( '</object>');
}

function OpenFooterAsset(URL)
{
	window.open(URL,"Thrill_of_Flight","toolbar=no,location=yes,directories=no,status=no,menubar=yes,scrollbars=yes,scrolling=yes,resizable=yes,width=750,height=550,left=0,top=0");
}

function embedQuicktimeObject(asset, height, width, bgcolor)
{
	document.write('<object ');
		document.write('classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"');
		document.write('codebase="http://www.apple.com/qtactivex/qtplugin.cab"');
		document.write('width="' + width + '"');
		document.write('height="' + height + '">');
		
		document.write('<param name="src" value="' + asset + '" />');
		document.write('<param name="controller" value="true" />');
		document.write('<param name="autoplay" value="true" />');
		document.write('<param name="enablejavascript" value="true" />');
		document.write('<param name="scale" value="aspect" />');
		document.write('<param name="kioskmode" value="true" />');
		document.write('<param name="bgcolor" value="' + bgcolor + '" />');					
		
		document.write('<embed ');
			document.write('src="' + asset + '"');
			document.write('width="' + width + '"');
			document.write('height="' + height + '"');
			document.write('autoplay="true"');
			document.write('scale="aspect"');
			document.write('kioskmode="true"');
			document.write('bgcolor="' + bgcolor + '"');
			document.write('type="video/quicktime"');						
			document.write('pluginspage="http://www.apple.com/quicktime/download/"');
			document.write('enablejavascript="true"');
			document.write('controller="true"');
		document.write("></embed>");					
	document.write('</object>');	
}

var windowObjectReference = null; // global variable
function firstwin(URLarg) 
{
	if (windowObjectReference == null || windowObjectReference.closed)
		/* 
			if the pointer to the window object in memory does not exist
			or if such pointer exists but the window was closed 
		*/
	
	{
		windowObjectReference = window.open(URLarg,	"thrillOfFlightWin", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,scrolling=yes,resizable=yes,width=960,height=600,left=0,top=0");
		/* 
			then create it. The new window will be created and
			will be brought on top of any other window. 
		*/
	}
	else
	{
		windowObjectReference.focus();
		/* 
			else the window reference must exist and the window
			is not closed; therefore, we can bring it back on top of any other
			window with the focus() method. There would be no need to re-create
			the window or to reload the referenced resource. 
		*/
	}
}


function newImage(arg) 
{
	if (document.images) 
	{
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() 
{
	if (document.images && (preloadFlag == true)) 
	{
		for (var i=0; i<changeImages.arguments.length; i+=2) 
		{
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;

function preloadImages() 
{
	if (document.images) 
	{
		new_front_3_01_new_front_3_05_over = newImage("source/images/new_front_3_01-new_front_3_.gif");
		new_front_3_02_new_front_3_05_over = newImage("source/images/new_front_3_02-new_front_3_.gif");
		new_front_3_05_over = newImage("source/images/new_front_3_05-over.gif");
		preloadFlag = true;
	}
}

function openWindow(URL) 
{
	newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow1(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow2(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow3(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow4(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow5(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow6(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow7(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow8(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow9(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow10(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow11(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow12(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow13(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow14(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow15(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow16(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow17(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow18(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow19(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow20(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow21(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow22(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow23(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow24(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function openWindow25(URL) 
{
    newWindow = window.open(URL, "myNewWindow", "toolbar=yes,location=0,directories=0,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width=960,height=600,left=20,top=20");
}

function closeWindow() 
{
	newWindow.close();
}
