  // Globals
  // Major version of Flash required
  var requiredMajorVersion = 10;
  // Minor version of Flash required
  var requiredMinorVersion = 0;
  // Minor version of Flash required
  var requiredRevision = 7;
  // -----------------------------------------------------------------------------

  // Version check based upon the values entered above in "Globals"
  var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

function writeFlashNavigation(fileUrl,applicationRoot)
{
  // Check to see if the version meets the requirements for playback
  if (hasReqestedVersion) {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
	AC_FL_RunContent(
				"src", fileUrl,
				"width", "994",
				"height", "101",
				"align", "middle",
				"id", "idMenu",
				"quality", "high",
				"name", "menu",
				"allowScriptAccess","sameDomain",
				"menu", "false",
				"wmode", "transparent",
				"type", "application/x-shockwave-flash",
				'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
				"pluginspage", "http://www.adobe.com/go/getflashplayer"
	);
	/*
		var output = '';
		output += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="994" height="101" VIEWASTEXT>';
		output += '<param name=\"allowScriptAccess\" value=\"sameDomain\" />';
		output += '<param name=\"movie\" value=\"' + fileUrl + '\" />';
		output += '<param name=\"quality\" value=\"high\" />';
		output += '<param name=\"menu\" value=\"false\" />';
		output += '<param name=\"wmode\" value=\"transparent\" />';
		output += '<embed src=\"' + fileUrl + '\" width=\"994\" height=\"101\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" menu="false" wmode="transparent"/>';
		output += '</object>';
		document.write(output);
	*/
	}
	else // no flash output
	{
		document.write('<table width=\"994\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">');
		document.write('	<tr>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"90\" height=\"32\"><a href=\"http://www.thrillplanet.com/\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_TP_t.gif\" width=\"90\" height=\"32\" border=\"0\" alt=\"Go to ThrillPlanet.com\" /></a></td>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"862\" height=\"32\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_BlueBar.gif\" width=\"862\" height=\"32\" border=\"0\" alt=\"\" /></td>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"42\" height=\"32\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_BlueCorner.gif\" width=\"42\" height=\"32\" border=\"0\" alt=\"\" /></td>');
		document.write('	</tr>');
		document.write('</table>');
		document.write('<table width=\"994\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\">');
		document.write('	<tr>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"90\" height=\"69\"><a href=\"http://www.thrillplanet.com/\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_TP_b.gif\" width=\"90\" height=\"69\" border=\"0\" alt=\"Go to ThrillPlanet.com\" /></a></td>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"50\" height=\"69\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_TextExplore.gif\" width=\"50\" height=\"69\" border=\"0\" alt=\"Explore Thrill Planet\" /></td>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"47\" height=\"69\"><a href=\"http://scubadiving.thrillplanet.com/\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_Scuba.gif\" width=\"47\" height=\"69\" border=\"0\" alt=\"Scuba Diving\" /></a></td>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"52\" height=\"69\"><a href=\"http://skydiving.thrillplanet.com/\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_Skydiving.gif\" width=\"52\" height=\"69\" border=\"0\" alt=\"Skydiving\" /></a></td>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"42\" height=\"69\"><a href=\"http://hotairballoon.thrillplanet.com/\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_HotAirBalloon.gif\" width=\"42\" height=\"69\" border=\"0\" alt=\"Hot Air Balloon Rides\" /></a></td>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"54\" height=\"69\"><a href=\"http://warbirds.thrillplanet.com/\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_Warbirds.gif\" width=\"54\" height=\"69\" border=\"0\" alt=\"Warbird Rides\" /></a></td>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"46\" height=\"69\"><a href=\"http://atvadventures.thrillplanet.com/\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_ATV.gif\" width=\"46\" height=\"69\" border=\"0\" alt=\"ATV Atventures\" /></a></td>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"47\" height=\"69\"><a href=\"http://stockcarracing.thrillplanet.com/\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_StockCar.gif\" width=\"47\" height=\"69\" border=\"0\" alt=\"Stock Car Racing\" /></a></td>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"52\" height=\"69\"><a href=\"http://whitewaterrafting.thrillplanet.com/\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_Rafting.gif\" width=\"52\" height=\"69\" border=\"0\" alt=\"White Water Rafting\" /></a></td>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"47\" height=\"69\"><a href=\"http://flyinglessons.thrillplanet.com/\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_FlyingLessons.gif\" width=\"47\" height=\"69\" border=\"0\" alt=\"Flying Lessons\" /></a></td>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"49\" height=\"69\"><a href=\"http://helicopterrides.thrillplanet.com/\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_Helicopter.gif\" width=\"49\" height=\"69\" border=\"0\" alt=\"Helicopter Rides\" /></a></td>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"47\" height=\"69\"><a href=\"http://hanggliding.thrillplanet.com/\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_HangGliding.gif\" width=\"47\" height=\"69\" border=\"0\" alt=\"Hang Gliding\" /></a></td>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"46\" height=\"69\"><a href=\"http://horsebackriding.thrillplanet.com/\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_Horseback.gif\" width=\"46\" height=\"69\" border=\"0\" alt=\"Horseback Riding\" /></a></td>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"43\" height=\"69\"><a href=\"http://speedracing.thrillplanet.com/\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_SpeedRacing.gif\" width=\"43\" height=\"69\" border=\"0\" alt=\"Speed Racing\" /></a></td>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"47\" height=\"69\"><a href=\"http://adventuretravel.thrillplanet.com/\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_Adventure.gif\" width=\"47\" height=\"69\" border=\"0\" alt=\"Adventure Travel\" /></a></td>');
		document.write('		<td align=\"left\" valign=\"top\" width=\"235\" height=\"69\"><img src=\"' + applicationRoot + 'Images/NoFlashMenu_PhoneNumber.gif\" width=\"235\" height=\"69\" border=\"0\" alt=\"Call 1-800-943-4025 today!\" /></td>');
		document.write('	</tr>');
		document.write('</table>');
	}
}

function writeFlashPhotoGallery(fileUrl,applicationRoot)
{
	var requiredVersion = 7;

	  // Check to see if the version meets the requirements for playback
  if (hasReqestedVersion) {
	// if we've detected an acceptable version
	// embed the Flash Content SWF when all tests are passed
	AC_FL_RunContent(
				"src", fileUrl,
				"width", "503",
				"height", "350",
				"align", "middle",
				"id", "idFlashGallery",
				"quality", "high",
				"bgcolor", "#2385c2",
				"name", "Gallery",
				"allowScriptAccess","sameDomain",
				"menu", "false",
				"wmode", "transparent",
				"type", "application/x-shockwave-flash",
				'codebase', 'http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab',
				"pluginspage", "http://www.adobe.com/go/getflashplayer"
	);
	/*

		var output = '';
		output += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="503" height="350" id="Gallery" align="middle" VIEWASTEXT>';
		output += '<param name="allowScriptAccess" value="sameDomain" />';
		output += '<param name="movie" value="' + fileUrl + '" />';
		output += '<param name="quality" value="high" />';
		output += '<param name="menu" value="false" />';
		output += '<param name="wmode" value="transparent" />';
		output += '<param name="bgcolor" value="#2385c2" />';
		output += '<embed src="' + fileUrl + '" width="503" height="350" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="false" wmode="transparent" name="Gallery"/>';
		output += '</object>';
		document.write(output);
		*/
	}
	else
	{
		document.write('<img width="503" height="350" alt="Flash Gallery" src="">');
	}
}