﻿if (typeof window.Aris == 'undefined') var Aris = {}; (function() { if (typeof Aris.SWFMovie != 'undefined') return; Array.from = function(x) { var a = []; if (typeof x == 'string') a.push(x); else if (x && x.length && typeof x != 'function') { for (var i = 0, l = x.length; i < l; i++) a.push(x[i]) } return a }; Function.prototype.forEach = function(a, b, c) { for (var d in a) { if (typeof this.prototype[d] == "undefined") { b.call(c, a[d], d, a) } } return a }; var k = function(b) { var c = []; var d = false; var e = false; var f = ''; return { open: function(t) { xml = ''; c = []; c.push('<' + b); e = true; return this }, close: function() { if (e) { e = false; c = [c.join(' ')] } return this }, writeAttribute: function(a) { if (e) { r(a, function(v, n) { c.push(n + '="' + (typeof v != 'undefined' ? v : n) + '"') }) } return this }, write: function(a) { if (e) { this.close(); c.push('>') } c.push(a); d = true; return this }, getXML: function() { if (xml) return xml; this.close(); c.push(d ? "</" + b + ">" : " />"); return (xml = c.join('')) } } }; function $(a) { if (typeof a == 'string') return document.getElementById(a); return a }; function $remove(a, b) { var c = {}; for (var i = 1, p; p = arguments[i]; i++) { if (p in a) { c[p] = a[p]; delete a[p] } } return arguments.length == 2 ? c[b] : c }; function $extract(a, b) { var c = {}; for (var i = 1, p; p = arguments[i]; i++) { if (p in a) { c[p] = a[p] } } return arguments.length == 2 ? c[b] : c }; function $merge(a, b) { a = a || {}; if (b) { for (var c in b) { a[c] = b[c] } } return a }; var m = /*@cc_on!@*/false; var q = (function() { if (m) return function(a) { var b = typeof a == 'string' ? a : a.nodeName; var d = arguments.length > 1 ? arguments[1] : a.props; var e = new k(b); e.open(); if (d) { var f = $remove(d, 'children'); e.writeAttribute(d); if (typeof f == 'string') f = [f]; if (f) Array.forEach(Array.from(f), function(c) { if (typeof c == 'string') { e.write(c) } else if (c.nodeType == 3) { e.write(c.nodeValue) } else if (c.nodeType == 1) { e.write(c.innerHTML) } else { e.write(q(c)) } }) } return e.getXML() }; else { return function(d) { var e = typeof d == 'string' ? d : d.nodeName; var f = arguments.length > 1 ? arguments[1] : d.props; var g = document.createElement(e); if (f) { var h = $remove(f, 'children'); r(f, function(b, a) { if (a == 'style'); else { g[a] = b } }); if (typeof h == 'string') h = [h]; if (h) Array.forEach(Array.from(h), function(c) { if (typeof c == 'string') { g.appendChild(document.createTextNode(c)) } else if (c.nodeType == 3) { g.appendChild(document.createTextNode(c.nodeValue)) } else if (c.nodeType == 1) { g.appendChild(c) } else { g.appendChild(q(c)) } }) } return g } } })(); function $serialize(c, d, e) { d = d || '='; e = e || '&'; var f = []; r(c, function(a, b) { f.push(b + d + (a.join ? a.join(',') : a)) }); return f.join(e) }; if (!Array.forEach) { Array.forEach = function(a, b, c) { for (var i = 0, len = a.length; i < len; i++) { if ($defined(a[i])) b.call(c, a[i], i, a) } } } var r = function(a, b, c) { if (a) { var d = Object; if (a instanceof Function) { d = Function } else if (a.forEach instanceof Function) { a.forEach(fn, c); return } else if (typeof a.length == "number") { d = Array } d.forEach(a, b, c); return } }; var s = Aris.SWFMovie = function(a, b, c) { b = b || {}; var d = $extract(b, 'ver') || '0'; if (!s.hasVersion(d)) { if (c === true || !s.canXI(b)) return this; var e = s.getXI(); if (e.attr) { e.attr.width = b.width; e.attr.height = b.height } return e } this.ver = d; this.attr = $extract(b, 'width', 'height', 'id'); this.attr.data = a; this.params = $merge({}, b.params); this.flashvars = $merge({}, b.flashvars); this.add(b); }; s.prototype = { add: function(c) { if (!c) return; r(c, function(a, b) { if ("attr,params,flashvars".indexOf(b) < 0) { this[b] = a } }, this) }, embedIn: function(a) { s.embedSWF(this, $(a)) } }; r({ create: function(a, b) { return new this(a, b) }, hasVersion: function(a) { a = (typeof a == 'string') ? a.split('.') : [].concat(a); if( a.length < 3) { a[1] = a[1] || 0; a[2] = a[2] || 0; } var p = this.PlayerInfo.version; return a[0] < p[0] || (a[0] == p[0] && (a[1] < p[1] || (a[1] == p[1] && a[2] <= p[2]))) }, init: function() { this.XI = { id: 'xiSWF', ver: [6, 0, 25], width: 215, height: 138, flashvars: { MMredirectURL: escape(location.href), MMpluginType: this.PlayerInfo.type }, onCreating: function(a) { document.title = document.title.slice(0, 47) + " - Flash Player Installation"; a.flashvars.MMdoctitle = document.title } } }, PlayerInfo: function() { var p = {}; p.version = [0, 0, 0]; p.axo = false; p.type = ''; p.attr = { 'type': 'application/x-shockwave-flash' }; var b = null; if (navigator.plugins && navigator.mimeTypes.length) { var x = navigator.plugins["Shockwave Flash"]; if (x && x.description) { p.version = x.description.replace(/([a-zA-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split("."); p.type = 'PlugIn' } } else { var c = false; try { b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7") } catch (e) { try { b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"); p.version = [6, 0, 21]; b.AllowScriptAccess = "always" } catch (e) { c = p.version[0] == 6 } try { b = new ActiveXObject("ShockwaveFlash.ShockwaveFlash") } catch (e) { } } if (b !== null) { if (!c) p.version = b.GetVariable("$version").split(" ")[1].split(","); p.type = 'ActiveX'; p.axo = true; p.attr.classid = 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' } } Array.forEach(['major', 'minor', 'rev'], function(o, a) { p.version[a] = p.version[o] = (p.version[a] ? parseInt(p.version[a], 10) : 0) }); return p } (), embedSWF: function(f, g) { if (g && !g.length) { g = [g] } if (!f.attr || !f.attr.data || !g || !g[0]) return; f.params = f.params || {}; var h = f.params, attr = $merge(f.attr, this.PlayerInfo.attr); var i = q; if (m) { h.movie = $remove(attr, 'data') } var j = this; Array.forEach(g, function(c, d) { if (f.FSCommand) { attr.name = attr.id } attr.children = []; if (typeof f.onCreating == 'function') f.onCreating(f); if (f.flashvars) { h.flashvars = '&' + $serialize(f.flashvars) } r(h, function(a, b) { if (a) { attr.children.push(i('param', { name: b, value: a })) } }); if (f.altContent) { attr.children.push(f.altContent) } var e = i('object', attr); if (m) { c.innerHTML = e } else { while (c && c.hasChildNodes()) { c.removeChild(c.firstChild) } c.appendChild(e) } }) }, xiSwfUrl: '/expressinstall.swf', XI: {}, canXI: function(a) { return (parseInt(a.width, 10) >= this.XI.width && parseInt(a.height, 10) >= this.XI.height) }, getXI: function() { var a = new this(this.xiSwfUrl, this.XI, true); this.getXI = function() { return {} }; return a } }, function(a, b) { Aris.SWFMovie[b] = a }); Aris.SWFMovie.init() })(); var SWFMovie = Aris.SWFMovie;