if(!document.getElementById("simplyScripts")) document.write(""); if(included_files == undefined) var included_files = new Array(); function include_dom(script_filename) { var noCacheIE = '&noCacheIE=' + (new Date()).getTime(); var html_doc; var js = document.createElement('script'); //html_doc = document.getElementsByTagName('head').item(0); html_doc = document.getElementById("simplyScripts"); js.setAttribute('language', 'javascript'); js.setAttribute('type', 'text/javascript'); js.setAttribute("charset", "utf-8"); js.setAttribute('src', script_filename); html_doc.appendChild(js); return false; } function include_once(script_filename) { if (!in_array(script_filename, included_files)) { included_files[included_files.length] = script_filename; include_dom(script_filename); } } function in_array(needle, haystack) { for (var i = 0; i < haystack.length; i++) { if (haystack[i] == needle) { return true; } } return false; } include_once('http://www.google-analytics.com/ga.js'); include_once('http://www.simply.tv/simply2/distribution/players/google_analytics.js'); /* FlashReplace is developed by Robert Nyman, http://www.robertnyman.com. License and downloads: http://code.google.com/p/flashreplace/ */ // --- var FlashReplace = { elmToReplace : null, flashIsInstalled : null, defaultFlashVersion : 7, replace : function (elmToReplace, src, id, width, height, version, params){ this.elmToReplace = document.getElementById(elmToReplace); this.flashIsInstalled = this.checkForFlash(version || this.defaultFlashVersion); if(this.elmToReplace && this.flashIsInstalled){ var obj = ''; extraAttributes += ' ' + i + '="' + params[i] + '"'; } var embed = ''; var objEnd = ''; this.elmToReplace.innerHTML = obj + param + extraParams + embed + embedEnd + objEnd; } }, checkForFlash : function (version){ this.flashIsInstalled = false; var flash; if(window.ActiveXObject){ try{ flash = new ActiveXObject(("ShockwaveFlash.ShockwaveFlash." + version)); this.flashIsInstalled = true; } catch(e){ // Throws an error if the version isn't available } } else if(navigator.plugins && navigator.mimeTypes.length > 0){ flash = navigator.plugins["Shockwave Flash"]; if(flash){ var flashVersion = navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/, "$1"); if(flashVersion >= version){ this.flashIsInstalled = true; } } } return this.flashIsInstalled; } }; // --- var flashVars = new Object(); flashVars["PlayerID"] = "84210056001"; flashVars["PlayerName"] = "Simply TV - 824272817"; flashVars["publisherID"] = "495713462"; flashVars["flashID"] = "myExperience"; flashVars["ChannelID"] = "1"; flashVars["ChannelName"] = "Simply TV"; flashVars["WebDomain"] = "simply.tv"; flashVars["PlayerCategoryID"] = "1"; flashVars["ReportSuite"] = "simply-tv-channel1"; flashVars["PlayerReportSuite"] = "simply-tv-site1"; flashVars["SiteLevelTracking"] = "1"; flashVars["bctid"] = ""; flashVars["bclid"] = ""; flashVars["Search"] = "true"; flashVars["LayoutUrl"] = "simplytv_layout_bc3.swf"; flashVars["LayoutDataUrl"] = "simplytv.xml"; flashVars["OverlayUrl"] = "simplytv_overlay.swf"; flashVars["ChannelSelectorUrl"] = "channelSelector_bc3.swf"; flashVars["ChannelSelector_x"] = "788"; flashVars["ChannelSelector_y"] = "17.3"; flashVars["X_Offset"] = "35"; flashVars["Y_Offset"] = "75.0"; flashVars["Width"] = "1000"; flashVars["Height"] = "681"; if(playGAAccounts == undefined) var playGAAccounts = new Array(); include_once('http://admin.brightcove.com/js/BrightcoveExperiences.js'); include_once('http://admin.brightcove.com/js/APIModules_all.js'); var player_config_base_url = "http://www.simply.tv/simply2/"; document.write("
"); document.write("

Simply Media Video - Please update your flash player.

"); document.write("

\"Get

"); document.write("
"); function outputPlayer(divID, config) { /* * Param's * * play * loop * menu * quality * scale * salign * wmode * bgcolor * base * swliveconnect * flashvars * devicefont [ http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_13331 ] * allowscriptaccess [ http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16494 ] and [ http://www.adobe.com/go/kb402975 ] * seamlesstabbing [ http://www.adobe.com/support/documentation/en/flashplayer/7/releasenotes.html] * allowfullscreen [ http://www.adobe.com/devnet/flashplayer/articles/full_screen_mode.html ] * allownetworking [ http://livedocs.adobe.com/flash/9.0/main/00001079.html ] * */ //append a random number to the end of the loader url so that latest version of the loader is always retrieved var randomNum = Math.random().toString(); randomNum = randomNum.substr(2, randomNum.length); var loaderUrl = player_config_base_url + "flash/brightcove3/custom/loaders/BrightcovePlayerContainer.swf?rand=" + randomNum; var flashVariables = GetFlashVarsValue(config); var params = { menu: "false", quality: "high", allowscriptaccess: "always", allowfullscreen: "true", FlashVars: flashVariables }; if(flashVars.wmode) params.wmode = "true"; FlashReplace.replace( "SimplyMediaVideoPlayer", loaderUrl, "simplyPlayer", config.Width, config.Height, 9, params ); var playerRef = document.getElementById("simplyPlayer"); } function GetFlashVarsValue(obj) { var flashVars = ""; var firstTime = true; for (var key in obj) { if (!firstTime) { flashVars = flashVars + "&"; } flashVars = flashVars + key + "=" + obj[key]; firstTime = false; } return flashVars; } function testFlashVar(flashVar){ if(flashVar != undefined && flashVar != "") return true; } outputPlayer("SimplyMediaVideoPlayer", flashVars);