<!-- 
// Version check based upon the values entered above in "Globals"

var MM_contentVersion = 8;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
	    }
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}


function writeFlash(city)
{

	// Check to see if the version meets the requirements for playback
if ( MM_FlashCanPlay ) {

		var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'width="730" height="300"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="swf/_root.swf?city='+city+'" /><param name="wmode" value="transparent" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" />'
		+ '<embed src="swf/_root.swf?city='+city+'" quality="high" menu="false" bgcolor="#FFFFFF" '
		+ 'width="730" height="300" name="detectiontest" aligh="middle"'
		+ 'play="true"'
		+ 'quality="high"'
		+ 'allowScriptAccess="sameDomain"'
		+ 'type="application/x-shockwave-flash"'
		+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
		+ '<\/embed>'
		+ '<\/object>';
		document.write(oeTags);   // embed the Flash Content SWF when all tests are passed
	  } else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<img src="http://www.opodo.co.uk/images/en_GB/logo.gif" alt="Opodo - let the journey begin" />'
		+ '<p>Please <a href="http://www.macromedia.com/go/getflash/">get the latest Macromedia Flash Player</a></p>'
		document.write(alternateContent);  // insert non-flash content
	  }
}

function writeHomeFlash()
{
	
	// Check to see if the version meets the requirements for playback
if ( MM_FlashCanPlay ) {
		var oeTags = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
		+ 'width="426" height="311"'
		+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
		+ '<param name="movie" value="swf/homeNav2.swf" /><param name="menu" value="false" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" />'
		+ '<embed src="swf/homeNav2.swf" quality="high" menu="false" bgcolor="#FFFFFF" '
		+ 'width="426" height="311" name="detectiontest" aligh="middle"'
		+ 'play="true"'
		+ 'loop="false"'
		+ 'quality="high"'
		+ 'allowScriptAccess="sameDomain"'
		+ 'type="application/x-shockwave-flash"'
		+ 'pluginspage="http://www.macromedia.com/go/getflashplayer">'
		+ '<\/embed>'
		+ '<\/object>';
		document.write(oeTags);   // embed the Flash Content SWF when all tests are passed
	  } else {  // flash is too old or we can't detect the plugin
		var alternateContent = '<img src="http://www.opodo.co.uk/images/en_GB/logo.gif" alt="Opodo - let the journey begin" />'
		+ '<p>Please <a href="http://www.macromedia.com/go/getflash/">get the latest Macromedia Flash Player</a></p>'
		document.write(alternateContent);  // insert non-flash content
	  }
}
// -->
