// PVMD5.js var PVGUIDStrings = new Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","F"); function PVMD5(guid) { if (guid) PVGUID = guid; else PVGEN(); return PVGUID; } function PVRandx(length) { var ret=""; var cnt=0; while (cnt= 3 check for Flash plugin in plugin array var flashVer = -1; if (navigator.plugins != null && navigator.plugins.length > 0) { if (navigator.plugins["Shockwave Flash 2.0"] || navigator.plugins["Shockwave Flash"]) { var swVer2 = navigator.plugins["Shockwave Flash 2.0"] ? " 2.0" : ""; var flashDescription = navigator.plugins["Shockwave Flash" + swVer2].description; var descArray = flashDescription.split(" "); var tempArrayMajor = descArray[2].split("."); var versionMajor = tempArrayMajor[0]; var versionMinor = tempArrayMajor[1]; if ( descArray[3] != "" ) { tempArrayMinor = descArray[3].split("r"); } else { tempArrayMinor = descArray[4].split("r"); } var versionRevision = tempArrayMinor[1] > 0 ? tempArrayMinor[1] : 0; var flashVer = versionMajor + "." + versionMinor + "." + versionRevision; } } // MSN/WebTV 2.6 supports Flash 4 else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.6") != -1) flashVer = 4; // WebTV 2.5 supports Flash 3 else if (navigator.userAgent.toLowerCase().indexOf("webtv/2.5") != -1) flashVer = 3; // older WebTV supports Flash 2 else if (navigator.userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 2; else if ( isIE && isWin && !isOpera ) { flashVer = ControlVersion(); } return flashVer; } // When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision) { versionStr = GetSwfVer(); if (versionStr == -1 ) { return false; } else if (versionStr != 0) { if(isIE && isWin && !isOpera) { // Given "WIN 2,0,0,11" tempArray = versionStr.split(" "); // ["WIN", "2,0,0,11"] tempString = tempArray[1]; // "2,0,0,11" versionArray = tempString.split(","); // ['2', '0', '0', '11'] } else { versionArray = versionStr.split("."); } var versionMajor = versionArray[0]; var versionMinor = versionArray[1]; var versionRevision = versionArray[2]; // is the major.revision >= requested major.revision AND the minor version >= requested minor if (versionMajor > parseFloat(reqMajorVer)) { return true; } else if (versionMajor == parseFloat(reqMajorVer)) { if (versionMinor > parseFloat(reqMinorVer)) return true; else if (versionMinor == parseFloat(reqMinorVer)) { if (versionRevision >= parseFloat(reqRevision)) return true; } } return false; } } function AC_AddExtension(src, ext) { if (src.indexOf('?') != -1) return src.replace(/\?/, ext+'?'); else return src + ext; } function AC_Generateobj(objAttrs, params, embedAttrs) { var str = ''; if (isIE && isWin && !isOpera) { str += ' '; str += '>'; } else { str += ''); document.write('var requiredMajorVersion = 8;'); document.write('var requiredMinorVersion = 0;'); document.write('var requiredRevision = 0;'); // Version check for the Flash Player that has the ability to start Player Product Install (6.0r65) document.write('var hasProductInstall = DetectFlashVer(6, 0, 65);'); // Version check based upon the values defined in globals document.write('var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);'); // Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback document.write('if ( hasProductInstall && !hasRequestedVersion ) {'); document.write('var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";'); document.write('var MMredirectURL = window.location;'); document.write('document.title = document.title.slice(0, 47) + " - Flash Player Installation";'); document.write('var MMdoctitle = document.title;'); document.write('AC_FL_RunContent('); document.write('"src", "/flash/playerProductInstall",'); document.write('"FlashVars", "MMredirectURL="+MMredirectURL+"&MMplayerType="+MMPlayerType+"&MMdoctitle="+MMdoctitle+"",'); document.write('"width", "' + width + '",'); document.write('"height", "' + height + '",'); document.write('"align", "middle",'); document.write('"id", "' + id + '",'); document.write('"quality", "high",'); document.write('"bgcolor", "' + bgColor + '",'); document.write('"name", "' + name + '",'); document.write('"allowScriptAccess","sameDomain",'); document.write('"type", "application/x-shockwave-flash",'); document.write('"pluginspage", "http://www.adobe.com/go/getflashplayer");'); document.write('} else if (hasRequestedVersion) {'); var vidParam = "guid=" + id + "&framecolor=" + framecolor + "&volume=100&random=" + random +"&usernumber=" + usernumber; document.write('AC_FL_RunContent('); document.write('"FlashVars", "' + vidParam + '",'); document.write('"src", "' + swfName + '?' + vidParam + '",'); document.write('"width", "' + width + '",'); document.write('"height", "' + height + '",'); document.write('"align", "middle",'); document.write('"id", "' + id + '",'); document.write('"quality", "high",'); document.write('"wmode", "transparent",'); document.write('"bgcolor", "' + bgColor + '",'); document.write('"name", "' + name + '",'); document.write('"allowScriptAccess","sameDomain",'); document.write('"type", "application/x-shockwave-flash",'); document.write('"pluginspage", "http://www.adobe.com/go/getflashplayer");'); document.write('} else {'); document.write('var alternateContent = "Alternate HTML content should be placed here. "'); document.write('+ "This content requires the Adobe Flash Player. "'); document.write('+ "Get Flash";'); document.write('document.write(alternateContent);'); document.write('}'); document.write(''); document.write(''); } PVApp.write('sprexptv', 'http://atamaga.tv/flash/sprexptv', 153388, 954, 30000, '0x000000', '0xc9c9c9', '', 160, 182, 160, 120, 0xefe300);