// ----------------------------------------------------------------------------- // Globals // Major version of Flash required var requiredMajorVersion = 9; // Minor version of Flash required var requiredMinorVersion = 0; // Minor version of Flash required var requiredRevision = 124; // ----------------------------------------------------------------------------- // Version check for the Flash Player that has the ability to start Player Product Install (6.0r65) var hasProductInstall = DetectFlashVer(6, 0, 65); // Version check based upon the values defined in globals var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision); var playerId = "widget"; var playlist = "ReebokJets"; var campaign = "4"; var affiliate = "2009"; var flow_type = "directmarket"; var promo_display = "true"; var mobile_link_display = "true"; var email_link_display = "false"; var autoPlay = "true"; var info_xml = "WidgetInfo.xml" var email_action = "false"; var sms_action = "true"; var embed_action = "true"; var info_action = "false"; // Note this setting is used if the production swf's are not located at "http://www.mogreet.com/flash/" // If they are located at a different location then you have to use the base_location setting. var base_location = "http://d2c.bandcon.mogreet.com/flash/campaigns/2009/"; var widgetSetting = "playerId="+playerId+"&playlist="+playlist+"&campaign="+campaign+"&affiliate="+affiliate+"&flow_type="+flow_type+"&promo_display="+promo_display+"&autoPlay="+autoPlay+"&mobile_link_display="+mobile_link_display+"&email_link_display="+email_link_display+"&info_xml="+info_xml; widgetSetting += "&email_action="+email_action+"&sms_action="+sms_action+"&embed_action="+embed_action+"&info_action="+info_action; //Note if use custom base_location uncomment the line below widgetSetting += "&base_location="+base_location; if ( hasProductInstall && !hasRequestedVersion ) { // DO NOT MODIFY THE FOLLOWING FOUR LINES // Location visited after installation is complete if installation is required var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn"; var MMredirectURL = window.location; document.title = document.title.slice(0, 47) + " - Flash Player Installation"; var MMdoctitle = document.title; AC_FL_RunContent( "src", "http://d2c.bandcon.mogreet.com/flash/playerProductInstall", "FlashVars", "MMredirectURL="+MMredirectURL+'&MMplayerType='+MMPlayerType+'&MMdoctitle='+MMdoctitle+"", "width", "500", "height", "300", "align", "middle", "id", "MogreetWidget", "quality", "high", "bgcolor", "#000000", "base", "http://d2c.bandcon.mogreet.com/flash/campaigns/2009/", "name", "MogreetWidget", "wmode","trasparent", "allowScriptAccess","always", "type", "application/x-shockwave-flash", "pluginspage", "http://www.adobe.com/go/getflashplayer" ); } else if (hasRequestedVersion) { // if we've detected an acceptable version // embed the Flash Content SWF when all tests are passed AC_FL_RunContent( "src", "http://d2c.bandcon.mogreet.com/flash/campaigns/2009/MogreetWidget", "width", "500", "height", "300", "FlashVars", widgetSetting, "align", "middle", "id", "MogreetWidget", "base", "http://d2c.bandcon.mogreet.com/flash/campaigns/2009/", "quality", "high", "bgcolor", "#000000", "name", "MogreetWidget", "wmode","trasparent", "allowScriptAccess","always", "type", "application/x-shockwave-flash", "pluginspage", "http://www.adobe.com/go/getflashplayer" ); } else { // flash is too old or we can't detect the plugin var alternateContent = 'Mogreet Flash Widget - No Flash Plugin Detected.   ' + 'This content requires the Adobe Flash Player. ' + 'Get Flash'; document.write(alternateContent); // insert non-flash content }