//this file checks for flash 6 and, if not found, redirects the user to a "noflash" page
//to use just include this file like so: <script src="/creative/flashdetect/check.js" language="javascript" type="text/javascript"></script>

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');
}

if ( MM_FlashCanPlay ) {
	//do nothing
} else{
	//go to the noflash page
	document.write('<P><center>');
	document.write('<H3><FONT face="Arial, Helvetica, sans-serif" color=#999999>You don\'t have the latest version of Macromedia Flash Player.</FONT></H3>');
   document.write('<TABLE width=60% border=0>');
   document.write(' <TR> ');
   document.write('   <TD COLSPAN="2"> <P><span class="LargeBoldText">T</font><font face="Arial, Helvetica, sans-serif">his ');
   document.write('       web site makes use of <A class="LargeBoldLink" HREF="http://www.macromedia.com/software/flash/" TARGET="_new">Macromedia<SUP><FONT SIZE="-1">&reg;</FONT></SUP> ');
   document.write('       Flash<SUP><FONT SIZE="-2">TM</FONT></SUP></A> software. You have an ');
   document.write('       old version of Macromedia Flash Player that cannot play the content ');
   document.write('       we\'ve created.</font> </TD></TR><TR> ');
   document.write('   <TD><font face="Arial, Helvetica, sans-serif"><A HREF="http://www.macromedia.com/go/getflashplayer"><IMG SRC="/images/get_flashplayer_88_31.gif" BORDER="0" WIDTH="88" HEIGHT="31"></A> ');
   document.write('     </font></TD> ');
   document.write('   <TD> <P><font face="Arial, Helvetica, sans-serif">Why not download and install ');
   document.write('       the latest version now? It will only take a moment. </font></TD></TR> ');
   document.write('<TR><TD colspan=2><br><span class="RegularText"><b>Corbis Mobile</b><p>We give worldwide mobile content providers and operators access to wallpaper, video, animations, and audio content that is specifically sourced for the mobile market. We stay on top of the global trends in music, fashion, entertainment, and mobile technologies to give our partners the content they need to stay one step ahead in the rapidly evolving mobile marketplace. For more information about Corbis Mobile, email us at <a href="mailto:mobile@corbis.com">mobile@corbis.com</a></span></blockquote>');
    document.write('</TD></TR></TABLE></center>');
	
	
	
}
