// moock fpi [f.lash p.layer i.nspector]
// version: 1.3.5
// written by colin moock
// code maintained at: http://www.moock.org/webdesign/flash/detection/moockfpi/
// terms of use posted at: http://www.moock.org/terms/



// #############################################
// These are the user defined globals.
// Modify the following variables to customize the inspection behaviour.

var requiredVersion = 6;   // Version the user needs to view site (max 6, min 2)
var useRedirect = false;    // Flag indicating whether or not to load a separate
			                           // page based on detection results. Set to true to
			                           // load a separate page. Set to false to embed the
			                           // movie or alternate html directly into this page.

// Randomly select the main flash image
//var mainFlash = new Array("/flash/envoy.swf","/flash/grandam.swf","/flash/lesabre.swf","/flash/silhouette.swf","/flash/silverado.swf");
//var mainImage = new Array("/images/home/home_envoy.jpg","/images/home/home_grandam.jpg","/images/home/home_lesabre.jpg","/images/home/home_silhouette.jpg","/images/home/home_silverado.jpg");
//var ranNum= Math.round(Math.random()*100)%5;
//alert(mainFlash[ranNum]);


// Define the secondary flash/images
//var subTagFlash = "/flash/gmcuvsinclude.swf"
//var subTagImage = "/images/global/global_gmcuvsinclude.gif"
//var subLogosFlash = "/flash/logos.swf"
//var subLogosImage = "/images/global/global_bwlogos.gif"

// #############################################



// *************
// Everything below this point is internal until after the BODY tag.
// Do not modify! Proceed to the BODY tag for further instructions.
// *************

// System globals
var flash2Installed = false;    		// boolean. true if flash 2 is installed
var flash3Installed = false;    		// boolean. true if flash 3 is installed
var flash4Installed = false;    		// boolean. true if flash 4 is installed
var flash5Installed = false;    		// boolean. true if flash 5 is installed
var flash6Installed = false;    		// boolean. true if flash 6 is installed
var maxVersion = 6;             		// highest version we can actually detect
var actualVersion = 0; 	        	// version the user really has
var hasRightVersion = false;   	// boolean. true if it's safe to embed the flash movie in the page
var jsVersion = 1.0;             		// the version of javascript supported
var winwidth = screen.width; 		// width, in pixels of screen resolution
var winheight = screen.height;	// height, in pixels of screen resolution
var moviename = '';					// depending on screen res, show a version of movie file
var moviewidth = '';					// depending on screen res, set a width
var movieheight = '';					// depending on screen res, set a height
var nothing = '';

if ((location.href.indexOf("promo1.html") != -1) || (location.href.indexOf("promo2.html") != -1) || (location.href.indexOf("promo3.html") != -1)) {
	nothing = 0;
}
else {
	if (winheight > 768) {
		//window.moveTo(0,0);
		//window.resizeTo(1024,700);
		moviename = 'BrandBenefitMX.swf';
		moviewidth = 919;
		movieheight = 585;
	}
	else {
		//window.moveTo(0,0);
		//window.resizeTo(800,540);
		moviename = 'BrandBenefitMX_v2.swf';
		moviewidth = 743;
		movieheight = 477;
	}
}
