var MM_contentVersion = 4;
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 getFlashPlayer(flashSource,fWidth,fHeight,imageSource,imageHref,iWidth,iHeight,iBorder)
{
	if ( MM_FlashCanPlay ) {
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
		document.write(' WIDTH="'+fWidth+'" HEIGHT="'+fHeight+'" ALIGN=""  ID="flightpathsite">');
		document.write(' <PARAM NAME=movie VALUE="'+flashSource+'"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#FFFFFF;>  ');
		document.write(' <EMBED src="'+flashSource+'" menu=false quality=high wmode=transparent bgcolor=#FFFFFF;  ');
		document.write(' swLiveConnect=FALSE WIDTH="'+fWidth+'" HEIGHT="'+fHeight+'" NAME="flightpathsite" ALIGN=""');
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
		document.write(' </EMBED>');
		document.write(' </OBJECT>');
	} else{
		if(imageHref == '')
		{
			document.write('<IMG SRC="'+imageSource+'" WIDTH="'+iWidth+'" HEIGHT="'+iHeight+'" BORDER="'+iBorder+'" CLASS="noborder" />');
		}
		else
		{
			document.write('<a href="'+imageHref+'"><IMG SRC="'+imageSource+'" WIDTH="'+iWidth+'" HEIGHT="'+iHeight+'" BORDER="'+iBorder+'" CLASS="noborder" /></a>');
		}
	}
}

function getFlashPlayerAltInclude(flashSource,fWidth,fHeight,imageSource,include)
{
	if ( MM_FlashCanPlay ) {
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
		document.write(' WIDTH="'+fWidth+'" HEIGHT="'+fHeight+'" ALIGN=""  ID="flightpathsite">');
		document.write(' <PARAM NAME=movie VALUE="'+flashSource+'"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#FFFFFF;>  ');
		document.write(' <EMBED src="'+flashSource+'" menu=false quality=high wmode=transparent bgcolor=#FFFFFF;  ');
		document.write(' swLiveConnect=FALSE WIDTH="'+fWidth+'" HEIGHT="'+fHeight+'" NAME="flightpathsite" ALIGN=""');
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
		document.write(' </EMBED>');
		document.write(' </OBJECT>');
	} else{
		document.write('<script type="text/javascript" src="splash.js"></script>');
	}
}

function getFlashNav(flashSource,fWidth,fHeight,sectionFlashVar)
{
	if ( MM_FlashCanPlay ) {
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
		document.write('  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
		document.write(' WIDTH="'+fWidth+'" HEIGHT="'+fHeight+'" ALIGN="" ID="flightpathsite">');
		document.write(' <PARAM NAME=movie VALUE="'+flashSource+'"> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=high> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#FFFFFF;> <PARAM NAME=FlashVars VALUE="section='+sectionFlashVar+'">   ');
		document.write(' <EMBED src="'+flashSource+'" FlashVars="section='+sectionFlashVar+'" menu=false quality=high wmode=transparent bgcolor=#FFFFFF;  ');
		document.write(' swLiveConnect=FALSE WIDTH="'+fWidth+'" HEIGHT="'+fHeight+'" NAME="flightpathsite" ALIGN=""');
		document.write(' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer">');
		document.write(' </EMBED>');
		document.write(' </OBJECT>');
	} else{
		document.write('<a href="/index.html"><IMG id="navnoflashlogo" SRC="/images/global/logo.gif" WIDTH="379" HEIGHT="43" BORDER="0" CLASS="noborder" alt="Flightpath: Strategic Interactive Communications" /></a>');
		switch(sectionFlashVar) {
			case "home":
				document.write('<a href="/index.html"><IMG SRC="/images/global/nav_home_on.gif" WIDTH="37" HEIGHT="16" BORDER="0" alt="Home" class="navnoflashbutton" /></a>');
				document.write('<a href="/work.html"><IMG SRC="/images/global/nav_work_off.gif" WIDTH="32" HEIGHT="16" BORDER="0" alt="Work" class="navnoflashbutton" /></a>');
				document.write('<a href="/about.html"><IMG SRC="/images/global/nav_about_off.gif" WIDTH="37" HEIGHT="16" BORDER="0" alt="About" class="navnoflashbutton" /></a>');
				document.write('<a href="http://www.theflightpad.com/"><IMG SRC="/images/global/nav_blog_off.gif" WIDTH="29" HEIGHT="16" BORDER="0" alt="Blog" class="navnoflashbutton" /></a>');
				document.write('<a href="/careers.html"><IMG SRC="/images/global/nav_careers_off.gif" WIDTH="45" HEIGHT="16" BORDER="0" alt="Careers" class="navnoflashbutton" /></a>');
				document.write('<a href="/contact.html"><IMG SRC="/images/global/nav_contact_off.gif" WIDTH="47" HEIGHT="16" BORDER="0" alt="Contact" class="navnoflashbutton" /></a>');
				document.write('<a href="http://projects.flightpath.com/"><IMG SRC="/images/global/nav_client_login_off.gif" WIDTH="69" HEIGHT="16" BORDER="0" alt="Client Login" class="navnoflashbutton-lastitem" /></a>');
			break
			case "work":
				document.write('<a href="/index.html"><IMG SRC="/images/global/nav_home_off.gif" WIDTH="37" HEIGHT="16" BORDER="0" alt="Home" class="navnoflashbutton" /></a>');
				document.write('<a href="/work.html"><IMG SRC="/images/global/nav_work_on.gif" WIDTH="32" HEIGHT="16" BORDER="0" alt="Work" class="navnoflashbutton" /></a>');
				document.write('<a href="/about.html"><IMG SRC="/images/global/nav_about_off.gif" WIDTH="37" HEIGHT="16" BORDER="0" alt="About" class="navnoflashbutton"  /></a>');
				document.write('<a href="http://www.theflightpad.com/"><IMG SRC="/images/global/nav_blog_off.gif" WIDTH="29" HEIGHT="16" BORDER="0" alt="Blog" class="navnoflashbutton"  /></a>');
				document.write('<a href="/careers.html"><IMG SRC="/images/global/nav_careers_off.gif" WIDTH="45" HEIGHT="16" BORDER="0" alt="Careers" class="navnoflashbutton"  /></a>');
				document.write('<a href="/contact.html"><IMG SRC="/images/global/nav_contact_off.gif" WIDTH="47" HEIGHT="16" BORDER="0" alt="Contact" class="navnoflashbutton" /></a>');
				document.write('<a href="http://projects.flightpath.com/"><IMG SRC="/images/global/nav_client_login_off.gif" WIDTH="69" HEIGHT="16" BORDER="0" alt="Client Login" class="navnoflashbutton-lastitem" /></a>');
			break
			case "about":
				document.write('<a href="/index.html"><IMG SRC="/images/global/nav_home_off.gif" WIDTH="37" HEIGHT="16" BORDER="0" alt="Home" class="navnoflashbutton" /></a>');
				document.write('<a href="/work.html"><IMG SRC="/images/global/nav_work_off.gif" WIDTH="32" HEIGHT="16" BORDER="0" alt="Work" class="navnoflashbutton" /></a>');
				document.write('<a href="/about.html"><IMG SRC="/images/global/nav_about_on.gif" WIDTH="37" HEIGHT="16" BORDER="0" alt="About" class="navnoflashbutton"  /></a>');
				document.write('<a href="http://www.theflightpad.com/"><IMG SRC="/images/global/nav_blog_off.gif" WIDTH="29" HEIGHT="16" BORDER="0" alt="Blog" class="navnoflashbutton"  /></a>');
				document.write('<a href="/careers.html"><IMG SRC="/images/global/nav_careers_off.gif" WIDTH="45" HEIGHT="16" BORDER="0" alt="Careers" class="navnoflashbutton"  /></a>');
				document.write('<a href="/contact.html"><IMG SRC="/images/global/nav_contact_off.gif" WIDTH="47" HEIGHT="16" BORDER="0" alt="Contact" class="navnoflashbutton" /></a>');
				document.write('<a href="http://projects.flightpath.com/"><IMG SRC="/images/global/nav_client_login_off.gif" WIDTH="69" HEIGHT="16" BORDER="0" alt="Client Login" class="navnoflashbutton-lastitem" /></a>');
			break
			case "blog":
				document.write('<a href="/index.html"><IMG SRC="/images/global/nav_home_off.gif" WIDTH="37" HEIGHT="16" BORDER="0" alt="Home" class="navnoflashbutton" /></a>');
				document.write('<a href="/work.html"><IMG SRC="/images/global/nav_work_off.gif" WIDTH="32" HEIGHT="16" BORDER="0" alt="Work" class="navnoflashbutton" /></a>');
				document.write('<a href="/about.html"><IMG SRC="/images/global/nav_about_off.gif" WIDTH="37" HEIGHT="16" BORDER="0" alt="About" class="navnoflashbutton"  /></a>');
				document.write('<a href="http://www.theflightpad.com/"><IMG SRC="/images/global/nav_blog_on.gif" WIDTH="29" HEIGHT="16" BORDER="0" alt="Blog" class="navnoflashbutton"  /></a>');
				document.write('<a href="/careers.html"><IMG SRC="/images/global/nav_careers_off.gif" WIDTH="45" HEIGHT="16" BORDER="0" alt="Careers" class="navnoflashbutton"  /></a>');
				document.write('<a href="/contact.html"><IMG SRC="/images/global/nav_contact_off.gif" WIDTH="47" HEIGHT="16" BORDER="0" alt="Contact" class="navnoflashbutton" /></a>');
				document.write('<a href="http://projects.flightpath.com/"><IMG SRC="/images/global/nav_client_login_off.gif" WIDTH="69" HEIGHT="16" BORDER="0" alt="Client Login" class="navnoflashbutton-lastitem" /></a>');
			break
			case "careers":
				document.write('<a href="/index.html"><IMG SRC="/images/global/nav_home_off.gif" WIDTH="37" HEIGHT="16" BORDER="0" alt="Home" class="navnoflashbutton" /></a>');
				document.write('<a href="/work.html"><IMG SRC="/images/global/nav_work_off.gif" WIDTH="32" HEIGHT="16" BORDER="0" alt="Work" class="navnoflashbutton" /></a>');
				document.write('<a href="/about.html"><IMG SRC="/images/global/nav_about_off.gif" WIDTH="37" HEIGHT="16" BORDER="0" alt="About" class="navnoflashbutton"  /></a>');
				document.write('<a href="http://www.theflightpad.com/"><IMG SRC="/images/global/nav_blog_off.gif" WIDTH="29" HEIGHT="16" BORDER="0" alt="Blog" class="navnoflashbutton"  /></a>');
				document.write('<a href="/careers.html"><IMG SRC="/images/global/nav_careers_on.gif" WIDTH="45" HEIGHT="16" BORDER="0" alt="Careers" class="navnoflashbutton"  /></a>');
				document.write('<a href="/contact.html"><IMG SRC="/images/global/nav_contact_off.gif" WIDTH="47" HEIGHT="16" BORDER="0" alt="Contact" class="navnoflashbutton" /></a>');
				document.write('<a href="http://projects.flightpath.com/"><IMG SRC="/images/global/nav_client_login_off.gif" WIDTH="69" HEIGHT="16" BORDER="0" alt="Client Login" class="navnoflashbutton-lastitem" /></a>');
			break
			case "contact":
				document.write('<a href="/index.html"><IMG SRC="/images/global/nav_home_off.gif" WIDTH="37" HEIGHT="16" BORDER="0" alt="Home" class="navnoflashbutton" /></a>');
				document.write('<a href="/work.html"><IMG SRC="/images/global/nav_work_off.gif" WIDTH="32" HEIGHT="16" BORDER="0" alt="Work" class="navnoflashbutton" /></a>');
				document.write('<a href="/about.html"><IMG SRC="/images/global/nav_about_off.gif" WIDTH="37" HEIGHT="16" BORDER="0" alt="About" class="navnoflashbutton"  /></a>');
				document.write('<a href="http://www.theflightpad.com/"><IMG SRC="/images/global/nav_blog_off.gif" WIDTH="29" HEIGHT="16" BORDER="0" alt="Blog" class="navnoflashbutton"  /></a>');
				document.write('<a href="/careers.html"><IMG SRC="/images/global/nav_careers_off.gif" WIDTH="45" HEIGHT="16" BORDER="0" alt="Careers" class="navnoflashbutton"  /></a>');
				document.write('<a href="/contact.html"><IMG SRC="/images/global/nav_contact_on.gif" WIDTH="47" HEIGHT="16" BORDER="0" alt="Contact" class="navnoflashbutton" /></a>');
				document.write('<a href="http://projects.flightpath.com/"><IMG SRC="/images/global/nav_client_login_off.gif" WIDTH="69" HEIGHT="16" BORDER="0" alt="Client Login" class="navnoflashbutton-lastitem" /></a>');
			break
			case "login":
				document.write('<a href="/index.html"><IMG SRC="/images/global/nav_home_off.gif" WIDTH="37" HEIGHT="16" BORDER="0" alt="Home" class="navnoflashbutton" /></a>');
				document.write('<a href="/work.html"><IMG SRC="/images/global/nav_work_off.gif" WIDTH="32" HEIGHT="16" BORDER="0" alt="Work" class="navnoflashbutton" /></a>');
				document.write('<a href="/about.html"><IMG SRC="/images/global/nav_about_off.gif" WIDTH="37" HEIGHT="16" BORDER="0" alt="About" class="navnoflashbutton"  /></a>');
				document.write('<a href="http://www.theflightpad.com/"><IMG SRC="/images/global/nav_blog_off.gif" WIDTH="29" HEIGHT="16" BORDER="0" alt="Blog" class="navnoflashbutton"  /></a>');
				document.write('<a href="/careers.html"><IMG SRC="/images/global/nav_careers_off.gif" WIDTH="45" HEIGHT="16" BORDER="0" alt="Careers" class="navnoflashbutton"  /></a>');
				document.write('<a href="/contact.html"><IMG SRC="/images/global/nav_contact_off.gif" WIDTH="47" HEIGHT="16" BORDER="0" alt="Contact" class="navnoflashbutton" /></a>');
				document.write('<a href="http://projects.flightpath.com/"><IMG SRC="/images/global/nav_client_login_on.gif" WIDTH="69" HEIGHT="16" BORDER="0" alt="Client Login" class="navnoflashbutton-lastitem" /></a>');
			break
		}

	}
}