﻿// JScript File

			var MM_contentVersion = 6;
			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 flashMovie(version, filepath, width, height, bgcolor, quality, alternativeText, alternativeImage, altURL, altTitle, altTarget, clickTag){
if ( MM_FlashCanPlay ) {
	if (clickTag == undefined) var clickTag = "";
	else var clickTag = "?clickTag=" + clickTag; 
	
	if (clickTag == "HP") {
	var clickTag = "?clickTag=/services/o2active/whatsono2active/whatsnew/?ref=Ban-consumer-Streetmap-Home";
} else {
	var clickTag = "?clickTag=" + altURL;
}
	
	
	
	var swf = '';
		swf += '<object';
		swf += ' width="'+width+'"';
		swf += ' height="'+height+'"';
		swf += ' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"';
		swf += ' codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+version+',0,0,0">';
		swf += '<param name="movie" value="'+filepath+clickTag+'">';
		swf += '<param name="wmode" value="transparent">';
		swf += '<param name="bgcolor" value="'+bgcolor+'">';
		swf += '<param name="quality" value="'+quality+'">';
			swf += '<embed src="'+filepath+clickTag+'"';
			swf += ' width="'+width+'"';
			swf += ' height="'+height+'"';
			swf += ' wmode="transparent"';
			swf += ' bgcolor="'+bgcolor+'"';
			swf += ' quality="'+quality+'"';
			swf += ' type="application/x-shockwave-flash"';
			swf += ' pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">';
			swf += '<\/embed>';
		swf += '<\/object>';
		
		document.write(swf);
		// alternative content for flash movie
	//	document.write('<div class="flashText">'+ alternativeText +'</div>');		
	}
	else{
	// image to replace flash movie
		//document.write('<div class="topBgImg"><img src="'+alternativeImage+'"></div>'); 
			if ((altURL=="") || (altURL==" ") || (altURL=="#")) {
				document.write("<img src=\""+alternativeImage+"\" width=\""+width+"\" height=\""+height+"\" alt=\""+alternativeText+"\" />");
			} else {
				document.write("<a href=\""+altURL+"\" title=\""+altTitle+"\" target=\""+altTarget+"\" />");
				// width=\""+width+"\" height=\""+height+"\"
				document.write("<img style='border-width:0px;' src=\""+alternativeImage+"\"  alt=\""+alternativeText+"\" />");
				document.write("</a>");
			}
		}
			
}