{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\froman\fcharset0 Times New Roman;}{\f1\fswiss\fcharset0 Arial;}}
{\*\generator Msftedit 5.41.15.1507;}\viewkind4\uc1\pard\sb100\sa100\f0\fs24 /** \line * FlashObject v1.3c: Flash detection and embed - http://blog.deconcept.com/flashobject/ \line * \line * FlashObject is (c) 2006 Geoff Stearns and is released under the MIT License: \line * http://www.opensource.org/licenses/mit-license.php \line * \line */ \line if(typeof com == "undefined") var com = new Object(); \line if(typeof com.deconcept == "undefined") com.deconcept = new Object(); \line if(typeof com.deconcept.util == "undefined") com.deconcept.util = new Object(); \line if(typeof com.deconcept.FlashObjectUtil == "undefined") com.deconcept.FlashObjectUtil = new Object(); \line com.deconcept.FlashObject = function(swf, id, w, h, ver, c, useExpressInstall, quality, xiRedirectUrl, redirectUrl, detectKey)\{ \line if (!document.createElement || !document.getElementById) return; \line this.DETECT_KEY = detectKey ? detectKey : 'detectflash'; \line this.skipDetect = com.deconcept.util.getRequestParameter(this.DETECT_KEY); \line this.params = new Object(); \line this.variables = new Object(); \line this.attributes = new Array(); \line this.useExpressInstall = useExpressInstall; \line\line if(swf) this.setAttribute('swf', swf); \line if(id) this.setAttribute('id', id); \line if(w) this.setAttribute('width', w); \line if(h) this.setAttribute('height', h); \line if(ver) this.setAttribute('version', new com.deconcept.PlayerVersion(ver.toString().split("."))); \line this.installedVer = com.deconcept.FlashObjectUtil.getPlayerVersion(this.getAttribute('version'), useExpressInstall); \line if(c) this.addParam('bgcolor', c); \line var q = quality ? quality : 'high'; \line this.addParam('quality', q); \line var xir = (xiRedirectUrl) ? xiRedirectUrl : window.location; \line this.setAttribute('xiRedirectUrl', xir); \line this.setAttribute('redirectUrl', '); \line if(redirectUrl) this.setAttribute('redirectUrl', redirectUrl); \line\} \line com.deconcept.FlashObject.prototype = \{ \line setAttribute: function(name, value)\{ \line this.attributes[name] = value; \line\}, \line getAttribute: function(name)\{ \line return this.attributes[name]; \line\}, \line addParam: function(name, value)\{ \line this.params[name] = value; \line\}, \line getParams: function()\{ \line return this.params; \line\}, \line addVariable: function(name, value)\{ \line this.variables[name] = value; \line\}, \line getVariable: function(name)\{ \line return this.variables[name]; \line\}, \line getVariables: function()\{ \line return this.variables; \line\}, \line createParamTag: function(n, v)\{ \line var p = document.createElement('param'); \line p.setAttribute('name', n); \line p.setAttribute('value', v); \line return p; \line\}, \line getVariablePairs: function()\{ \line var variablePairs = new Array(); \line var key; \line var variables = this.getVariables(); \line for(key in variables)\{ \line variablePairs.push(key +"="+ variables[key]); \line\} \line return variablePairs; \line\}, \line getFlashHTML: function() \{ \line var flashNode = ""; \line if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) \{ // netscape plugin architecture \line if (this.getAttribute("doExpressInstall")) this.addVariable("MMplayerType", "PlugIn"); \line flashNode = ' flashNode += ' id="'+ this.getAttribute('id') +'" name="'+ this.getAttribute('id') +'" '; \line var params = this.getParams(); \line for(var key in params)\{ flashNode += [key] +'="'+ params[key] +'" '; \} \line var pairs = this.getVariablePairs().join("&"); \line if (pairs.length > 0)\{ flashNode += 'flashvars="'+ pairs +'"'; \} \line flashNode += '/>'; \line\} else \{ // PC IE \line if (this.getAttribute("doExpressInstall")) this.addVariable("MMplayerType", "ActiveX"); \line flashNode = ' \f1\fs20{\pict\wmetafile8\picwgoal4320\pichgoal1440 
0100090000034c00000003001c00000000000400000003010600050000000c02ec09c41d070000
00fc020000000000000000040000002d01000008000000fa020000000000000000000004000000
2d0101001c000000fb020c00090000000000900100000000000202024d532053616e7320536572
6966000a0027008a0100000000ffffffff70dc1200040000002d010200030000000000
}\f0\fs24 27CDB6E-AE6D-11cf-96B8-444553540000" width="'+ this.getAttribute('width') +'" height="'+ this.getAttribute('height') +'"';\line flashNode += '';\line var params = this.getParams();\line for(var key in params) \{\line flashNode += '';\line\}\line var pairs = this.getVariablePairs().join("&");\line if(pairs.length 0) \{flashNode += '';\}\line flashNode += ""; \line\} \line return flashNode; \line\}, \line write: function(elementId)\{ \line if(this.useExpressInstall) \{ \line // check to see if we need to do an express install \line var expressInstallReqVer = new com.deconcept.PlayerVersion([6,0,65]); \line if (this.installedVer.versionIsValid(expressInstallReqVer) && !this.installedVer.versionIsValid(this.getAttribute('version'))) \{ \line this.setAttribute('doExpressInstall', true); \line this.addVariable("MMredirectURL", escape(this.getAttribute('xiRedirectUrl'))); \line document.title = document.title.slice(0, 47) + " - Flash Player Installation"; \line this.addVariable("MMdoctitle", document.title); \line\} \line\} else \{ \line this.setAttribute('doExpressInstall', false); \line\} \line if(this.skipDetect || this.getAttribute('doExpressInstall') || this.installedVer.versionIsValid(this.getAttribute('version')))\{ \line var n = (typeof elementId == 'string') ? document.getElementById(elementId) : elementId; \line n.innerHTML = this.getFlashHTML(); \line\}else\{ \line if(this.getAttribute('redirectUrl') != "") \{ \line document.location.replace(this.getAttribute('redirectUrl')); \line\} \line\} \line\} \line\} \line\line /* ---- detection functions ---- */ \line com.deconcept.FlashObjectUtil.getPlayerVersion = function(reqVer, xiInstall)\{ \line var PlayerVersion = new com.deconcept.PlayerVersion(0,0,0); \line if(navigator.plugins && navigator.mimeTypes.length)\{ \line var x = navigator.plugins["Shockwave Flash"]; \line if(x && x.description) \{ \line PlayerVersion = new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\\s)+/, "").replace(/(\\s+r|\\s+b[0-9]+)/, ".").split(".")); \line\} \line\}else\{ \line try\{ \line var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); \line for (var i=3; axo!=null; i++) \{ \line axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i); \line PlayerVersion = new com.deconcept.PlayerVersion([i,0,0]); \line\} \line\}catch(e)\{\} \line if (reqVer && PlayerVersion.major > reqVer.major) return PlayerVersion; // version is ok, skip minor detection \line // this only does the minor rev lookup if the user's major version \line // is not 6 or we are checking for a specific minor or revision number \line // see http://blog.deconcept.com/2006/01/11/getvariable-setvariable-crash-internet-explorer-flash-6/ \line if (!reqVer || ((reqVer.minor != 0 || reqVer.rev != 0) && PlayerVersion.major == reqVer.major) || PlayerVersion.major != 6 || xiInstall) \{ \line try\{ \line PlayerVersion = new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(",")); \line\}catch(e)\{\} \line\} \line\} \line return PlayerVersion; \line\} \line com.deconcept.PlayerVersion = function(arrVersion)\{ \line this.major = parseInt(arrVersion[0]) || 0; \line this.minor = parseInt(arrVersion[1]) || 0; \line this.rev = parseInt(arrVersion[2]) || 0; \line\} \line com.deconcept.PlayerVersion.prototype.versionIsValid = function(fv)\{ \line if(this.major < fv.major) return false; \line if(this.major > fv.major) return true; \line if(this.minor < fv.minor) return false; \line if(this.minor > fv.minor) return true; \line if(this.rev < fv.rev) return false; \line return true; \line\} \line /* ---- get value of query string param ---- */ \line com.deconcept.util = \{ \line getRequestParameter: function(param)\{ \line var q = document.location.search || document.location.hash; \line if(q)\{ \line var startIndex = q.indexOf(param +"="); \line var endIndex = (q.indexOf("&", startIndex) > -1) ? q.indexOf("&", startIndex) : q.length; \line if (q.length > 1 && startIndex > -1) \{ \line return q.substring(q.indexOf("=", startIndex)+1, endIndex); \line\} \line\} \line return ""; \line\} \line\} \line\line /* add Array.push if needed (ie5) */ \line if (Array.prototype.push == null) \{ Array.prototype.push = function(item) \{ this[this.length] = item; return this.length; \}\} \line\line /* add some aliases for ease of use/backwards compatibility */ \line var getQueryParamValue = com.deconcept.util.getRequestParameter; \line var FlashObject = com.deconcept.FlashObject; \par
\pard\f1\fs20\par
}
 