var cookieDomain='.uefa.com';var accountOmniture='uefageneralprod';var linkInternalFilters='javascript:,uefa.com';var css_browser_selector=function(){var a=navigator.userAgent.toLowerCase(),c=document.getElementsByTagName("html")[0],b=a.indexOf("opera/9")>-1?"opera opera9":a.indexOf("opera 8")>-1?"opera opera8":a.indexOf("opera 7")>-1?"opera opera7":a.indexOf("msie 9")>-1?"ie ie9":a.indexOf("msie 8")>-1?"ie ie8 ie7":a.indexOf("msie 7")>-1?"ie ie7":a.indexOf("msie 6")>-1?"ie ie6":a.indexOf("msie 5.5")>-1?"ie ie55":a.indexOf("msie 5.23")>-1?"ie ie523":a.indexOf("msie 5.0")>-1?"ie ie5":a.indexOf("chrome")>-1?"safari chrome":a.indexOf("safari")>-1&&a.indexOf("version/4.")>-1&&a.indexOf("version/4.")<a.indexOf("safari")?"safari safari4 safari3":a.indexOf("safari")>-1&&a.indexOf("version/3.")>-1&&a.indexOf("version/3.")<a.indexOf("safari")?"safari safari3":a.indexOf("safari")>-1?"safari safari2":a.indexOf("seamonkey")>-1?"seamonkey gecko":a.indexOf("netscape")>-1?"netscape gecko":a.indexOf("firefox/1")>-1?"firefox ff1 gecko":a.indexOf("firefox/2")>-1?"firefox ff2 gecko":a.indexOf("firefox/3")>-1?"firefox ff3 gecko":a.indexOf("firefox/4")>-1?"firefox ff4 gecko":a.indexOf("gecko")>-1?"gecko":"",d=a.indexOf("x11")!=-1||a.indexOf("linux")!=-1?" linux":a.indexOf("mac")!=-1?" mac":a.indexOf("win")!=-1?" win":"",b=b+d+" js";c.className+=c.className?" "+b:b;this.ver=navigator.appVersion;this.agent=navigator.userAgent;this.mac=a.indexOf("mac")>-1;this.pc=a.indexOf("win")>-1;this.opera=a.indexOf("opera")>-1;this.opera9=a.indexOf("opera/9")>-1;this.opera8=a.indexOf("opera 8")>-1;this.opera7=a.indexOf("opera 7")>-1;this.ie9=a.indexOf("msie 9")>-1&&!this.opera?1:0;this.ie7=a.indexOf("msie 7")>-1&&!this.opera?1:0;this.ie7=this.ie8=a.indexOf("msie 8")>-1&&!this.opera?1:0;this.ie6=a.indexOf("msie 6")>-1&&!this.opera?1:0;this.ie55=a.indexOf("msie 5.5")>-1&&!this.opera?1:0;this.ie523=a.indexOf("msie 5.23")>-1?1:0;this.ie4=a.indexOf("msie 4")>-1?1:0;this.ie3=a.indexOf("msie 3")>-1?1:0;this.ie5=a.indexOf("msie 5.0")>-1&&!this.ie55&&!this.ie523?1:0;this.ns71=a.indexOf("netscape/7.1")>-1?1:0;this.safari4=a.indexOf("safari")>-1&&a.indexOf("version/4.")>-1&&a.indexOf("version/4.")<a.indexOf("safari")?1:0;this.safari3=a.indexOf("safari")>-1&&a.indexOf("version/3.")>-1&&a.indexOf("version/3.")<a.indexOf("safari")?1:0;this.safari2=a.indexOf("safari")>-1&&a.indexOf("version/")==-1?1:0;this.chrome=a.indexOf("chrome")>-1?1:0;this.safari=this.safari2||this.safari3||this.safari4;this.ie=this.ie9||this.ie8||this.ie7||this.ie55||this.ie5||this.ie6||this.ie523||this.ie4||this.ie3;this.gecko=a.indexOf("gecko")>-1&!this.ie?1:0;this.ns=this.ns71;this.ieOld=this.ie55||this.ie5||this.ie523||this.ie4||this.ie3;this.ajaxaware=this.opera||this.ie8||this.ie7||this.ie6||this.safari||this.gecko||this.chrome?1:0}();var Prototype = { Version: "1.6.0", Browser: { IE: !!(window.attachEvent && !window.opera), Opera: !!window.opera, WebKit: navigator.userAgent.indexOf("AppleWebKit/") > -1, Gecko: navigator.userAgent.indexOf("Gecko") > -1 && navigator.userAgent.indexOf("KHTML") == -1, MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/) }, BrowserFeatures: { XPath: !!document.evaluate, ElementExtensions: !!window.HTMLElement, SpecificElementExtensions: document.createElement("div").__proto__ && document.createElement("div").__proto__ !== document.createElement("form").__proto__ }, ScriptFragment: "<script[^>]*>([\\S\\s]*?)<\/script>", JSONFilter: /^\/\*-secure-([\s\S]*)\*\/\s*$/, emptyFunction: function() { }, K: function(A) { return A } }; if (Prototype.Browser.MobileSafari) { Prototype.BrowserFeatures.SpecificElementExtensions = false } if (Prototype.Browser.WebKit) { Prototype.BrowserFeatures.XPath = false } var Class = { create: function() { var E = null, D = $A(arguments); if (Object.isFunction(D[0])) { E = D.shift() } function A() { this.initialize.apply(this, arguments) } Object.extend(A, Class.Methods); A.superclass = E; A.subclasses = []; if (E) { var B = function() { }; B.prototype = E.prototype; A.prototype = new B; E.subclasses.push(A) } for (var C = 0; C < D.length; C++) { A.addMethods(D[C]) } if (!A.prototype.initialize) { A.prototype.initialize = Prototype.emptyFunction } A.prototype.constructor = A; return A } }; Class.Methods = { addMethods: function(G) { var C = this.superclass && this.superclass.prototype; var B = Object.keys(G); if (!Object.keys({ toString: true }).length) { B.push("toString", "valueOf") } for (var A = 0, D = B.length; A < D; A++) { var F = B[A], E = G[F]; if (C && Object.isFunction(E) && E.argumentNames().first() == "$super") { var H = E, E = Object.extend((function(I) { return function() { return C[I].apply(this, arguments) } })(F).wrap(H), { valueOf: function() { return H }, toString: function() { return H.toString() } }) } this.prototype[F] = E } return this } }; var Abstract = {}; Object.extend = function(A, C) { for (var B in C) { A[B] = C[B] } return A }; Object.extend(Object, { inspect: function(A) { try { if (A === undefined) { return "undefined" } if (A === null) { return "null" } return A.inspect ? A.inspect() : A.toString() } catch (B) { if (B instanceof RangeError) { return "..." } throw B } }, toJSON: function(A) { var C = typeof A; switch (C) { case "undefined": case "function": case "unknown": return; case "boolean": return A.toString() } if (A === null) { return "null" } if (A.toJSON) { return A.toJSON() } if (Object.isElement(A)) { return } var B = []; for (var E in A) { var D = Object.toJSON(A[E]); if (D !== undefined) { B.push(E.toJSON() + ": " + D) } } return "{" + B.join(", ") + "}" }, toQueryString: function(A) { return $H(A).toQueryString() }, toHTML: function(A) { return A && A.toHTML ? A.toHTML() : String.interpret(A) }, keys: function(A) { var B = []; for (var C in A) { B.push(C) } return B }, values: function(B) { var A = []; for (var C in B) { A.push(B[C]) } return A }, clone: function(A) { return Object.extend({}, A) }, isElement: function(A) { return A && A.nodeType == 1 }, isArray: function(A) { return A && A.constructor === Array }, isHash: function(A) { return A instanceof Hash }, isFunction: function(A) { return typeof A == "function" }, isString: function(A) { return typeof A == "string" }, isNumber: function(A) { return typeof A == "number" }, isUndefined: function(A) { return typeof A == "undefined" } }); Object.extend(Function.prototype, { argumentNames: function() { var A = this.toString().match(/^[\s\(]*function[^(]*\((.*?)\)/)[1].split(",").invoke("strip"); return A.length == 1 && !A[0] ? [] : A }, bind: function() { if (arguments.length < 2 && arguments[0] === undefined) { return this } var A = this, C = $A(arguments), B = C.shift(); return function() { return A.apply(B, C.concat($A(arguments))) } }, bindAsEventListener: function() { var A = this, C = $A(arguments), B = C.shift(); return function(D) { return A.apply(B, [D || window.event].concat(C)) } }, curry: function() { if (!arguments.length) { return this } var A = this, B = $A(arguments); return function() { return A.apply(this, B.concat($A(arguments))) } }, delay: function() { var A = this, B = $A(arguments), C = B.shift() * 1000; return window.setTimeout(function() { return A.apply(A, B) }, C) }, wrap: function(B) { var A = this; return function() { return B.apply(this, [A.bind(this)].concat($A(arguments))) } }, methodize: function() { if (this._methodized) { return this._methodized } var A = this; return this._methodized = function() { return A.apply(null, [this].concat($A(arguments))) } } }); Function.prototype.defer = Function.prototype.delay.curry(0.01); Date.prototype.toJSON = function() { return '"' + this.getUTCFullYear() + "-" + (this.getUTCMonth() + 1).toPaddedString(2) + "-" + this.getUTCDate().toPaddedString(2) + "T" + this.getUTCHours().toPaddedString(2) + ":" + this.getUTCMinutes().toPaddedString(2) + ":" + this.getUTCSeconds().toPaddedString(2) + 'Z"' }; var Try = { these: function() { var C; for (var B = 0, D = arguments.length; B < D; B++) { var A = arguments[B]; try { C = A(); break } catch (E) { } } return C } }; RegExp.prototype.match = RegExp.prototype.test; RegExp.escape = function(A) { return String(A).replace(/([.*+?^=!:${}()|[\]\/\\])/g, "\\$1") }; var PeriodicalExecuter = Class.create({ initialize: function(B, A) { this.callback = B; this.frequency = A; this.currentlyExecuting = false; this.registerCallback() }, registerCallback: function() { this.timer = setInterval(this.onTimerEvent.bind(this), this.frequency * 1000) }, execute: function() { this.callback(this) }, stop: function() { if (!this.timer) { return } clearInterval(this.timer); this.timer = null }, onTimerEvent: function() { if (!this.currentlyExecuting) { try { this.currentlyExecuting = true; this.execute() } finally { this.currentlyExecuting = false } } } }); Object.extend(String, { interpret: function(A) { return A == null ? "" : String(A) }, specialChar: { "\b": "\\b", "\t": "\\t", "\n": "\\n", "\f": "\\f", "\r": "\\r", "\\": "\\\\"} }); Object.extend(String.prototype, { gsub: function(E, C) { var A = "", D = this, B; C = arguments.callee.prepareReplacement(C); while (D.length > 0) { if (B = D.match(E)) { A += D.slice(0, B.index); A += String.interpret(C(B)); D = D.slice(B.index + B[0].length) } else { A += D, D = "" } } return A }, sub: function(C, A, B) { A = this.gsub.prepareReplacement(A); B = B === undefined ? 1 : B; return this.gsub(C, function(D) { if (--B < 0) { return D[0] } return A(D) }) }, scan: function(B, A) { this.gsub(B, A); return String(this) }, truncate: function(B, A) { B = B || 30; A = A === undefined ? "..." : A; return this.length > B ? this.slice(0, B - A.length) + A : String(this) }, strip: function() { return this.replace(/^\s+/, "").replace(/\s+$/, "") }, stripTags: function() { return this.replace(/<\/?[^>]+>/gi, "") }, stripScripts: function() { return this.replace(new RegExp(Prototype.ScriptFragment, "img"), "") }, extractScripts: function() { var B = new RegExp(Prototype.ScriptFragment, "img"); var A = new RegExp(Prototype.ScriptFragment, "im"); return (this.match(B) || []).map(function(C) { return (C.match(A) || ["", ""])[1] }) }, evalScripts: function() { return this.extractScripts().map(function(script) { return eval(script) }) }, escapeHTML: function() { var A = arguments.callee; A.text.data = this; return A.div.innerHTML }, unescapeHTML: function() { var A = new Element("div"); A.innerHTML = this.stripTags(); return A.childNodes[0] ? (A.childNodes.length > 1 ? $A(A.childNodes).inject("", function(B, C) { return B + C.nodeValue }) : A.childNodes[0].nodeValue) : "" }, toQueryParams: function(B) { var A = this.strip().match(/([^?#]*)(#.*)?$/); if (!A) { return {} } return A[1].split(B || "&").inject({}, function(E, F) { if ((F = F.split("="))[0]) { var C = decodeURIComponent(F.shift()); var D = F.length > 1 ? F.join("=") : F[0]; if (D != undefined) { D = decodeURIComponent(D) } if (C in E) { if (!Object.isArray(E[C])) { E[C] = [E[C]] } E[C].push(D) } else { E[C] = D } } return E }) }, toArray: function() { return this.split("") }, succ: function() { return this.slice(0, this.length - 1) + String.fromCharCode(this.charCodeAt(this.length - 1) + 1) }, times: function(A) { return A < 1 ? "" : new Array(A + 1).join(this) }, camelize: function() { var D = this.split("-"), A = D.length; if (A == 1) { return D[0] } var C = this.charAt(0) == "-" ? D[0].charAt(0).toUpperCase() + D[0].substring(1) : D[0]; for (var B = 1; B < A; B++) { C += D[B].charAt(0).toUpperCase() + D[B].substring(1) } return C }, capitalize: function() { return this.charAt(0).toUpperCase() + this.substring(1).toLowerCase() }, underscore: function() { return this.gsub(/::/, "/").gsub(/([A-Z]+)([A-Z][a-z])/, "#{1}_#{2}").gsub(/([a-z\d])([A-Z])/, "#{1}_#{2}").gsub(/-/, "_").toLowerCase() }, dasherize: function() { return this.gsub(/_/, "-") }, inspect: function(B) { var A = this.gsub(/[\x00-\x1f\\]/, function(C) { var D = String.specialChar[C[0]]; return D ? D : "\\u00" + C[0].charCodeAt().toPaddedString(2, 16) }); if (B) { return '"' + A.replace(/"/g, '\\"') + '"' } return "'" + A.replace(/'/g, "\\'") + "'" }, toJSON: function() { return this.inspect(true) }, unfilterJSON: function(A) { return this.sub(A || Prototype.JSONFilter, "#{1}") }, isJSON: function() { var A = this.replace(/\\./g, "@").replace(/"[^"\\\n\r]*"/g, ""); return (/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(A) }, evalJSON: function(sanitize) { var json = this.unfilterJSON(); try { if (!sanitize || json.isJSON()) { return eval("(" + json + ")") } } catch (e) { } throw new SyntaxError("Badly formed JSON string: " + this.inspect()) }, include: function(A) { return this.indexOf(A) > -1 }, startsWith: function(A) { return this.indexOf(A) === 0 }, endsWith: function(A) { var B = this.length - A.length; return B >= 0 && this.lastIndexOf(A) === B }, empty: function() { return this == "" }, blank: function() { return /^\s*$/.test(this) }, interpolate: function(A, B) { return new Template(this, B).evaluate(A) } }); if (Prototype.Browser.WebKit || Prototype.Browser.IE) { Object.extend(String.prototype, { escapeHTML: function() { return this.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;") }, unescapeHTML: function() { return this.replace(/&amp;/g, "&").replace(/&lt;/g, "<").replace(/&gt;/g, ">") } }) } String.prototype.gsub.prepareReplacement = function(B) { if (Object.isFunction(B)) { return B } var A = new Template(B); return function(C) { return A.evaluate(C) } }; String.prototype.parseQuery = String.prototype.toQueryParams; Object.extend(String.prototype.escapeHTML, { div: document.createElement("div"), text: document.createTextNode("") }); with (String.prototype.escapeHTML) { div.appendChild(text) } var Template = Class.create({ initialize: function(A, B) { this.template = A.toString(); this.pattern = B || Template.Pattern }, evaluate: function(A) { if (Object.isFunction(A.toTemplateReplacements)) { A = A.toTemplateReplacements() } return this.template.gsub(this.pattern, function(D) { if (A == null) { return "" } var F = D[1] || ""; if (F == "\\") { return D[2] } var B = A, G = D[3]; var E = /^([^.[]+|\[((?:.*?[^\\])?)\])(\.|\[|$)/, D = E.exec(G); if (D == null) { return F } while (D != null) { var C = D[1].startsWith("[") ? D[2].gsub("\\\\]", "]") : D[1]; B = B[C]; if (null == B || "" == D[3]) { break } G = G.substring("[" == D[3] ? D[1].length : D[0].length); D = E.exec(G) } return F + String.interpret(B) } .bind(this)) } }); Template.Pattern = /(^|.|\r|\n)(#\{(.*?)\})/; var $break = {}; var Enumerable = { each: function(C, B) { var A = 0; C = C.bind(B); try { this._each(function(E) { C(E, A++) }) } catch (D) { if (D != $break) { throw D } } return this }, eachSlice: function(D, C, B) { C = C ? C.bind(B) : Prototype.K; var A = -D, E = [], F = this.toArray(); while ((A += D) < F.length) { E.push(F.slice(A, A + D)) } return E.collect(C, B) }, all: function(C, B) { C = C ? C.bind(B) : Prototype.K; var A = true; this.each(function(E, D) { A = A && !!C(E, D); if (!A) { throw $break } }); return A }, any: function(C, B) { C = C ? C.bind(B) : Prototype.K; var A = false; this.each(function(E, D) { if (A = !!C(E, D)) { throw $break } }); return A }, collect: function(C, B) { C = C ? C.bind(B) : Prototype.K; var A = []; this.each(function(E, D) { A.push(C(E, D)) }); return A }, detect: function(C, B) { C = C.bind(B); var A; this.each(function(E, D) { if (C(E, D)) { A = E; throw $break } }); return A }, findAll: function(C, B) { C = C.bind(B); var A = []; this.each(function(E, D) { if (C(E, D)) { A.push(E) } }); return A }, grep: function(D, C, B) { C = C ? C.bind(B) : Prototype.K; var A = []; if (Object.isString(D)) { D = new RegExp(D) } this.each(function(F, E) { if (D.match(F)) { A.push(C(F, E)) } }); return A }, include: function(A) { if (Object.isFunction(this.indexOf)) { if (this.indexOf(A) != -1) { return true } } var B = false; this.each(function(C) { if (C == A) { B = true; throw $break } }); return B }, inGroupsOf: function(B, A) { A = A === undefined ? null : A; return this.eachSlice(B, function(C) { while (C.length < B) { C.push(A) } return C }) }, inject: function(A, C, B) { C = C.bind(B); this.each(function(E, D) { A = C(A, E, D) }); return A }, invoke: function(B) { var A = $A(arguments).slice(1); return this.map(function(C) { return C[B].apply(C, A) }) }, max: function(C, B) { C = C ? C.bind(B) : Prototype.K; var A; this.each(function(E, D) { E = C(E, D); if (A == undefined || E >= A) { A = E } }); return A }, min: function(C, B) { C = C ? C.bind(B) : Prototype.K; var A; this.each(function(E, D) { E = C(E, D); if (A == undefined || E < A) { A = E } }); return A }, partition: function(D, B) { D = D ? D.bind(B) : Prototype.K; var C = [], A = []; this.each(function(F, E) { (D(F, E) ? C : A).push(F) }); return [C, A] }, pluck: function(B) { var A = []; this.each(function(C) { A.push(C[B]) }); return A }, reject: function(C, B) { C = C.bind(B); var A = []; this.each(function(E, D) { if (!C(E, D)) { A.push(E) } }); return A }, sortBy: function(B, A) { B = B.bind(A); return this.map(function(D, C) { return { value: D, criteria: B(D, C)} }).sort(function(F, E) { var D = F.criteria, C = E.criteria; return D < C ? -1 : D > C ? 1 : 0 }).pluck("value") }, toArray: function() { return this.map() }, zip: function() { var B = Prototype.K, A = $A(arguments); if (Object.isFunction(A.last())) { B = A.pop() } var C = [this].concat(A).map($A); return this.map(function(E, D) { return B(C.pluck(D)) }) }, size: function() { return this.toArray().length }, inspect: function() { return "#<Enumerable:" + this.toArray().inspect() + ">" } }; Object.extend(Enumerable, { map: Enumerable.collect, find: Enumerable.detect, select: Enumerable.findAll, filter: Enumerable.findAll, member: Enumerable.include, entries: Enumerable.toArray, every: Enumerable.all, some: Enumerable.any }); function $A(C) { if (!C) { return [] } if (C.toArray) { return C.toArray() } var B = C.length, A = new Array(B); while (B--) { A[B] = C[B] } return A } if (Prototype.Browser.WebKit) { function $A(C) { if (!C) { return [] } if (!(Object.isFunction(C) && C == "[object NodeList]") && C.toArray) { return C.toArray() } var B = C.length, A = new Array(B); while (B--) { A[B] = C[B] } return A } } Array.from = $A; Object.extend(Array.prototype, Enumerable); if (!Array.prototype._reverse) { Array.prototype._reverse = Array.prototype.reverse } Object.extend(Array.prototype, { _each: function(B) { for (var A = 0, C = this.length; A < C; A++) { B(this[A]) } }, clear: function() { this.length = 0; return this }, first: function() { return this[0] }, last: function() { return this[this.length - 1] }, compact: function() { return this.select(function(A) { return A != null }) }, flatten: function() { return this.inject([], function(B, A) { return B.concat(Object.isArray(A) ? A.flatten() : [A]) }) }, without: function() { var A = $A(arguments); return this.select(function(B) { return !A.include(B) }) }, reverse: function(A) { return (A !== false ? this : this.toArray())._reverse() }, reduce: function() { return this.length > 1 ? this : this[0] }, uniq: function(A) { return this.inject([], function(D, C, B) { if (0 == B || (A ? D.last() != C : !D.include(C))) { D.push(C) } return D }) }, intersect: function(A) { return this.uniq().findAll(function(B) { return A.detect(function(C) { return B === C }) }) }, clone: function() { return [].concat(this) }, size: function() { return this.length }, inspect: function() { return "[" + this.map(Object.inspect).join(", ") + "]" }, toJSON: function() { var A = []; this.each(function(B) { var C = Object.toJSON(B); if (C !== undefined) { A.push(C) } }); return "[" + A.join(", ") + "]" } }); if (Object.isFunction(Array.prototype.forEach)) { Array.prototype._each = Array.prototype.forEach } if (!Array.prototype.indexOf) { Array.prototype.indexOf = function(C, A) { A || (A = 0); var B = this.length; if (A < 0) { A = B + A } for (; A < B; A++) { if (this[A] === C) { return A } } return -1 } } if (!Array.prototype.lastIndexOf) { Array.prototype.lastIndexOf = function(B, A) { A = isNaN(A) ? this.length : (A < 0 ? this.length + A : A) + 1; var C = this.slice(0, A).reverse().indexOf(B); return (C < 0) ? C : A - C - 1 } } Array.prototype.toArray = Array.prototype.clone; function $w(A) { if (!Object.isString(A)) { return [] } A = A.strip(); return A ? A.split(/\s+/) : [] } if (Prototype.Browser.Opera) { Array.prototype.concat = function() { var E = []; for (var B = 0, C = this.length; B < C; B++) { E.push(this[B]) } for (var B = 0, C = arguments.length; B < C; B++) { if (Object.isArray(arguments[B])) { for (var A = 0, D = arguments[B].length; A < D; A++) { E.push(arguments[B][A]) } } else { E.push(arguments[B]) } } return E } } Object.extend(Number.prototype, { toColorPart: function() { return this.toPaddedString(2, 16) }, succ: function() { return this + 1 }, times: function(A) { $R(0, this, true).each(A); return this }, toPaddedString: function(C, B) { var A = this.toString(B || 10); return "0".times(C - A.length) + A }, toJSON: function() { return isFinite(this) ? this.toString() : "null" } }); $w("abs round ceil floor").each(function(A) { Number.prototype[A] = Math[A].methodize() }); function $H(A) { return new Hash(A) } var Hash = Class.create(Enumerable, (function() { if (function() { var C = 0, E = function(F) { this.key = F }; E.prototype.key = "foo"; for (var D in new E("bar")) { C++ } return C > 1 } ()) { function B(E) { var C = []; for (var D in this._object) { var F = this._object[D]; if (C.include(D)) { continue } C.push(D); var G = [D, F]; G.key = D; G.value = F; E(G) } } } else { function B(D) { for (var C in this._object) { var E = this._object[C], F = [C, E]; F.key = C; F.value = E; D(F) } } } function A(C, D) { if (Object.isUndefined(D)) { return C } return C + "=" + encodeURIComponent(String.interpret(D)) } return { initialize: function(C) { this._object = Object.isHash(C) ? C.toObject() : Object.clone(C) }, _each: B, set: function(C, D) { return this._object[C] = D }, get: function(C) { return this._object[C] }, unset: function(C) { var D = this._object[C]; delete this._object[C]; return D }, toObject: function() { return Object.clone(this._object) }, keys: function() { return this.pluck("key") }, values: function() { return this.pluck("value") }, index: function(D) { var C = this.detect(function(E) { return E.value === D }); return C && C.key }, merge: function(C) { return this.clone().update(C) }, update: function(C) { return new Hash(C).inject(this, function(D, E) { D.set(E.key, E.value); return D }) }, toQueryString: function() { return this.map(function(E) { var D = encodeURIComponent(E.key), C = E.value; if (C && typeof C == "object") { if (Object.isArray(C)) { return C.map(A.curry(D)).join("&") } } return A(D, C) }).join("&") }, inspect: function() { return "#<Hash:{" + this.map(function(C) { return C.map(Object.inspect).join(": ") }).join(", ") + "}>" }, toJSON: function() { return Object.toJSON(this.toObject()) }, clone: function() { return new Hash(this) } } })()); Hash.prototype.toTemplateReplacements = Hash.prototype.toObject; Hash.from = $H; var ObjectRange = Class.create(Enumerable, { initialize: function(C, A, B) { this.start = C; this.end = A; this.exclusive = B }, _each: function(A) { var B = this.start; while (this.include(B)) { A(B); B = B.succ() } }, include: function(A) { if (A < this.start) { return false } if (this.exclusive) { return A < this.end } return A <= this.end } }); var $R = function(C, A, B) { return new ObjectRange(C, A, B) }; var Ajax = { getTransport: function() { return Try.these(function() { return new XMLHttpRequest() }, function() { return new ActiveXObject("Msxml2.XMLHTTP") }, function() { return new ActiveXObject("Microsoft.XMLHTTP") }) || false }, activeRequestCount: 0 }; Ajax.Responders = { responders: [], _each: function(A) { this.responders._each(A) }, register: function(A) { if (!this.include(A)) { this.responders.push(A) } }, unregister: function(A) { this.responders = this.responders.without(A) }, dispatch: function(D, B, C, A) { this.each(function(E) { if (Object.isFunction(E[D])) { try { E[D].apply(E, [B, C, A]) } catch (F) { } } }) } }; Object.extend(Ajax.Responders, Enumerable); Ajax.Responders.register({ onCreate: function() { Ajax.activeRequestCount++ }, onComplete: function() { Ajax.activeRequestCount-- } }); Ajax.Base = Class.create({ initialize: function(A) { this.options = { method: "post", asynchronous: true, contentType: "application/x-www-form-urlencoded", encoding: "UTF-8", parameters: "", evalJSON: true, evalJS: true }; Object.extend(this.options, A || {}); this.options.method = this.options.method.toLowerCase(); if (Object.isString(this.options.parameters)) { this.options.parameters = this.options.parameters.toQueryParams() } } }); Ajax.Request = Class.create(Ajax.Base, { _complete: false, initialize: function($super, B, A) { $super(A); this.transport = Ajax.getTransport(); this.request(B) }, request: function(B) { this.url = B; this.method = this.options.method; var D = Object.clone(this.options.parameters); if (!["get", "post"].include(this.method)) { D._method = this.method; this.method = "post" } this.parameters = D; if (D = Object.toQueryString(D)) { if (this.method == "get") { this.url += (this.url.include("?") ? "&" : "?") + D } else { if (/Konqueror|Safari|KHTML/.test(navigator.userAgent)) { D += "&_=" } } } try { var A = new Ajax.Response(this); if (this.options.onCreate) { this.options.onCreate(A) } Ajax.Responders.dispatch("onCreate", this, A); this.transport.open(this.method.toUpperCase(), this.url, this.options.asynchronous); if (this.options.asynchronous) { this.respondToReadyState.bind(this).defer(1) } this.transport.onreadystatechange = this.onStateChange.bind(this); this.setRequestHeaders(); this.body = this.method == "post" ? (this.options.postBody || D) : null; this.transport.send(this.body); if (!this.options.asynchronous && this.transport.overrideMimeType) { this.onStateChange() } } catch (C) { this.dispatchException(C) } }, onStateChange: function() { var A = this.transport.readyState; if (A > 1 && !((A == 4) && this._complete)) { this.respondToReadyState(this.transport.readyState) } }, setRequestHeaders: function() { var E = { "X-Requested-With": "XMLHttpRequest", "X-Prototype-Version": Prototype.Version, Accept: "text/javascript, text/html, application/xml, text/xml, */*" }; if (this.method == "post") { E["Content-type"] = this.options.contentType + (this.options.encoding ? "; charset=" + this.options.encoding : ""); if (this.transport.overrideMimeType && (navigator.userAgent.match(/Gecko\/(\d{4})/) || [0, 2005])[1] < 2005) { E.Connection = "close" } } if (typeof this.options.requestHeaders == "object") { var C = this.options.requestHeaders; if (Object.isFunction(C.push)) { for (var B = 0, D = C.length; B < D; B += 2) { E[C[B]] = C[B + 1] } } else { $H(C).each(function(F) { E[F.key] = F.value }) } } for (var A in E) { this.transport.setRequestHeader(A, E[A]) } }, success: function() { var A = this.getStatus(); return !A || (A >= 200 && A < 300) }, getStatus: function() { try { return this.transport.status || 0 } catch (A) { return 0 } }, respondToReadyState: function(A) { var C = Ajax.Request.Events[A], B = new Ajax.Response(this); if (C == "Complete") { try { this._complete = true; (this.options["on" + B.status] || this.options["on" + (this.success() ? "Success" : "Failure")] || Prototype.emptyFunction)(B, B.headerJSON) } catch (D) { this.dispatchException(D) } var E = B.getHeader("Content-type"); if (this.options.evalJS == "force" || (this.options.evalJS && E && E.match(/^\s*(text|application)\/(x-)?(java|ecma)script(;.*)?\s*$/i))) { this.evalResponse() } } try { (this.options["on" + C] || Prototype.emptyFunction)(B, B.headerJSON); Ajax.Responders.dispatch("on" + C, this, B, B.headerJSON) } catch (D) { this.dispatchException(D) } if (C == "Complete") { this.transport.onreadystatechange = Prototype.emptyFunction } }, getHeader: function(A) { try { return this.transport.getResponseHeader(A) } catch (B) { return null } }, evalResponse: function() { try { return eval((this.transport.responseText || "").unfilterJSON()) } catch (e) { this.dispatchException(e) } }, dispatchException: function(A) { (this.options.onException || Prototype.emptyFunction)(this, A); Ajax.Responders.dispatch("onException", this, A) } }); Ajax.Request.Events = ["Uninitialized", "Loading", "Loaded", "Interactive", "Complete"]; Ajax.Response = Class.create({ initialize: function(C) { this.request = C; var D = this.transport = C.transport, A = this.readyState = D.readyState; if ((A > 2 && !Prototype.Browser.IE) || A == 4) { this.status = this.getStatus(); this.statusText = this.getStatusText(); this.responseText = String.interpret(D.responseText); this.headerJSON = this._getHeaderJSON() } if (A == 4) { var B = D.responseXML; this.responseXML = B === undefined ? null : B; this.responseJSON = this._getResponseJSON() } }, status: 0, statusText: "", getStatus: Ajax.Request.prototype.getStatus, getStatusText: function() { try { return this.transport.statusText || "" } catch (A) { return "" } }, getHeader: Ajax.Request.prototype.getHeader, getAllHeaders: function() { try { return this.getAllResponseHeaders() } catch (A) { return null } }, getResponseHeader: function(A) { return this.transport.getResponseHeader(A) }, getAllResponseHeaders: function() { return this.transport.getAllResponseHeaders() }, _getHeaderJSON: function() { var A = this.getHeader("X-JSON"); if (!A) { return null } A = decodeURIComponent(escape(A)); try { return A.evalJSON(this.request.options.sanitizeJSON) } catch (B) { this.request.dispatchException(B) } }, _getResponseJSON: function() { var A = this.request.options; if (!A.evalJSON || (A.evalJSON != "force" && !(this.getHeader("Content-type") || "").include("application/json"))) { return null } try { return this.transport.responseText.evalJSON(A.sanitizeJSON) } catch (B) { this.request.dispatchException(B) } } }); Ajax.Updater = Class.create(Ajax.Request, { initialize: function($super, A, C, B) { this.container = { success: (A.success || A), failure: (A.failure || (A.success ? null : A)) }; B = B || {}; var D = B.onComplete; B.onComplete = (function(E, F) { this.updateContent(E.responseText); if (Object.isFunction(D)) { D(E, F) } }).bind(this); $super(C, B) }, updateContent: function(D) { var C = this.container[this.success() ? "success" : "failure"], A = this.options; if (!A.evalScripts) { D = D.stripScripts() } if (C = $(C)) { if (A.insertion) { if (Object.isString(A.insertion)) { var B = {}; B[A.insertion] = D; C.insert(B) } else { A.insertion(C, D) } } else { C.update(D) } } if (this.success()) { if (this.onComplete) { this.onComplete.bind(this).defer() } } } }); Ajax.PeriodicalUpdater = Class.create(Ajax.Base, { initialize: function($super, A, C, B) { $super(B); this.onComplete = this.options.onComplete; this.frequency = (this.options.frequency || 2); this.decay = (this.options.decay || 1); this.updater = {}; this.container = A; this.url = C; this.start() }, start: function() { this.options.onComplete = this.updateComplete.bind(this); this.onTimerEvent() }, stop: function() { this.updater.options.onComplete = undefined; clearTimeout(this.timer); (this.onComplete || Prototype.emptyFunction).apply(this, arguments) }, updateComplete: function(A) { if (this.options.decay) { this.decay = (A.responseText == this.lastText ? this.decay * this.options.decay : 1); this.lastText = A.responseText } this.timer = this.onTimerEvent.bind(this).delay(this.decay * this.frequency) }, onTimerEvent: function() { this.updater = new Ajax.Updater(this.container, this.url, this.options) } }); function $(B) { if (arguments.length > 1) { for (var A = 0, D = [], C = arguments.length; A < C; A++) { D.push($(arguments[A])) } return D } if (Object.isString(B)) { B = document.getElementById(B) } return Element.extend(B) } if (Prototype.BrowserFeatures.XPath) { document._getElementsByXPath = function(F, A) { var C = []; var E = document.evaluate(F, $(A) || document, null, XPathResult.ORDERED_NODE_SNAPSHOT_TYPE, null); for (var B = 0, D = E.snapshotLength; B < D; B++) { C.push(Element.extend(E.snapshotItem(B))) } return C } } if (!window.Node) { var Node = {} } if (!Node.ELEMENT_NODE) { Object.extend(Node, { ELEMENT_NODE: 1, ATTRIBUTE_NODE: 2, TEXT_NODE: 3, CDATA_SECTION_NODE: 4, ENTITY_REFERENCE_NODE: 5, ENTITY_NODE: 6, PROCESSING_INSTRUCTION_NODE: 7, COMMENT_NODE: 8, DOCUMENT_NODE: 9, DOCUMENT_TYPE_NODE: 10, DOCUMENT_FRAGMENT_NODE: 11, NOTATION_NODE: 12 }) } (function() { var A = this.Element; this.Element = function(D, C) { C = C || {}; D = D.toLowerCase(); var B = Element.cache; if (Prototype.Browser.IE && C.name) { D = "<" + D + ' name="' + C.name + '">'; delete C.name; return Element.writeAttribute(document.createElement(D), C) } if (!B[D]) { B[D] = Element.extend(document.createElement(D)) } return Element.writeAttribute(B[D].cloneNode(false), C) }; Object.extend(this.Element, A || {}) }).call(window); Element.cache = {}; Element.Methods = { visible: function(A) { return $(A).style.display != "none" }, toggle: function(A) { A = $(A); Element[Element.visible(A) ? "hide" : "show"](A); return A }, hide: function(A) { $(A).style.display = "none"; return A }, show: function(A) { $(A).style.display = ""; return A }, remove: function(A) { A = $(A); A.parentNode.removeChild(A); return A }, update: function(A, B) { A = $(A); if (B && B.toElement) { B = B.toElement() } if (Object.isElement(B)) { return A.update().insert(B) } B = Object.toHTML(B); A.innerHTML = B.stripScripts(); B.evalScripts.bind(B).defer(); return A }, replace: function(B, C) { B = $(B); if (C && C.toElement) { C = C.toElement() } else { if (!Object.isElement(C)) { C = Object.toHTML(C); var A = B.ownerDocument.createRange(); A.selectNode(B); C.evalScripts.bind(C).defer(); C = A.createContextualFragment(C.stripScripts()) } } B.parentNode.replaceChild(C, B); return B }, insert: function(C, E) { C = $(C); if (Object.isString(E) || Object.isNumber(E) || Object.isElement(E) || (E && (E.toElement || E.toHTML))) { E = { bottom: E} } var D, B, A; for (position in E) { D = E[position]; position = position.toLowerCase(); B = Element._insertionTranslations[position]; if (D && D.toElement) { D = D.toElement() } if (Object.isElement(D)) { B.insert(C, D); continue } D = Object.toHTML(D); A = C.ownerDocument.createRange(); B.initializeRange(C, A); B.insert(C, A.createContextualFragment(D.stripScripts())); D.evalScripts.bind(D).defer() } return C }, wrap: function(B, C, A) { B = $(B); if (Object.isElement(C)) { $(C).writeAttribute(A || {}) } else { if (Object.isString(C)) { C = new Element(C, A) } else { C = new Element("div", C) } } if (B.parentNode) { B.parentNode.replaceChild(C, B) } C.appendChild(B); return C }, inspect: function(B) { B = $(B); var A = "<" + B.tagName.toLowerCase(); $H({ id: "id", className: "class" }).each(function(F) { var E = F.first(), C = F.last(); var D = (B[E] || "").toString(); if (D) { A += " " + C + "=" + D.inspect(true) } }); return A + ">" }, recursivelyCollect: function(A, C) { A = $(A); var B = []; while (A = A[C]) { if (A.nodeType == 1) { B.push(Element.extend(A)) } } return B }, ancestors: function(A) { return $(A).recursivelyCollect("parentNode") }, descendants: function(A) { return $A($(A).getElementsByTagName("*")).each(Element.extend) }, firstDescendant: function(A) { A = $(A).firstChild; while (A && A.nodeType != 1) { A = A.nextSibling } return $(A) }, immediateDescendants: function(A) { if (!(A = $(A).firstChild)) { return [] } while (A && A.nodeType != 1) { A = A.nextSibling } if (A) { return [A].concat($(A).nextSiblings()) } return [] }, previousSiblings: function(A) { return $(A).recursivelyCollect("previousSibling") }, nextSiblings: function(A) { return $(A).recursivelyCollect("nextSibling") }, siblings: function(A) { A = $(A); return A.previousSiblings().reverse().concat(A.nextSiblings()) }, match: function(B, A) { if (Object.isString(A)) { A = new Selector(A) } return A.match($(B)) }, up: function(B, D, A) { B = $(B); if (arguments.length == 1) { return $(B.parentNode) } var C = B.ancestors(); return D ? Selector.findElement(C, D, A) : C[A || 0] }, down: function(B, C, A) { B = $(B); if (arguments.length == 1) { return B.firstDescendant() } var D = B.descendants(); return C ? Selector.findElement(D, C, A) : D[A || 0] }, previous: function(B, D, A) { B = $(B); if (arguments.length == 1) { return $(Selector.handlers.previousElementSibling(B)) } var C = B.previousSiblings(); return D ? Selector.findElement(C, D, A) : C[A || 0] }, next: function(C, D, B) { C = $(C); if (arguments.length == 1) { return $(Selector.handlers.nextElementSibling(C)) } var A = C.nextSiblings(); return D ? Selector.findElement(A, D, B) : A[B || 0] }, select: function() { var A = $A(arguments), B = $(A.shift()); return Selector.findChildElements(B, A) }, adjacent: function() { var A = $A(arguments), B = $(A.shift()); return Selector.findChildElements(B.parentNode, A).without(B) }, identify: function(B) { B = $(B); var C = B.readAttribute("id"), A = arguments.callee; if (C) { return C } do { C = "anonymous_element_" + A.counter++ } while ($(C)); B.writeAttribute("id", C); return C }, readAttribute: function(C, A) { C = $(C); if (Prototype.Browser.IE) { var B = Element._attributeTranslations.read; if (B.values[A]) { return B.values[A](C, A) } if (B.names[A]) { A = B.names[A] } if (A.include(":")) { return (!C.attributes || !C.attributes[A]) ? null : C.attributes[A].value } } return C.getAttribute(A) }, writeAttribute: function(E, C, F) { E = $(E); var B = {}, D = Element._attributeTranslations.write; if (typeof C == "object") { B = C } else { B[C] = F === undefined ? true : F } for (var A in B) { var C = D.names[A] || A, F = B[A]; if (D.values[A]) { C = D.values[A](E, F) } if (F === false || F === null) { E.removeAttribute(C) } else { if (F === true) { E.setAttribute(C, C) } else { E.setAttribute(C, F) } } } return E }, getHeight: function(A) { return $(A).getDimensions().height }, getWidth: function(A) { return $(A).getDimensions().width }, classNames: function(A) { return new Element.ClassNames(A) }, hasClassName: function(A, B) { if (!(A = $(A))) { return } var C = A.className; return (C.length > 0 && (C == B || new RegExp("(^|\\s)" + B + "(\\s|$)").test(C))) }, addClassName: function(A, B) { if (!(A = $(A))) { return } if (!A.hasClassName(B)) { A.className += (A.className ? " " : "") + B } return A }, removeClassName: function(A, B) { if (!(A = $(A))) { return } A.className = A.className.replace(new RegExp("(^|\\s+)" + B + "(\\s+|$)"), " ").strip(); return A }, toggleClassName: function(A, B) { if (!(A = $(A))) { return } return A[A.hasClassName(B) ? "removeClassName" : "addClassName"](B) }, cleanWhitespace: function(B) { B = $(B); var C = B.firstChild; while (C) { var A = C.nextSibling; if (C.nodeType == 3 && !/\S/.test(C.nodeValue)) { B.removeChild(C) } C = A } return B }, empty: function(A) { return $(A).innerHTML.blank() }, descendantOf: function(D, C) { D = $(D), C = $(C); if (D.compareDocumentPosition) { return (D.compareDocumentPosition(C) & 8) === 8 } if (D.sourceIndex && !Prototype.Browser.Opera) { var E = D.sourceIndex, B = C.sourceIndex, A = C.nextSibling; if (!A) { do { C = C.parentNode } while (!(A = C.nextSibling) && C.parentNode) } if (A) { return (E > B && E < A.sourceIndex) } } while (D = D.parentNode) { if (D == C) { return true } } return false }, scrollTo: function(A) { A = $(A); var B = A.cumulativeOffset(); window.scrollTo(B[0], B[1]); return A }, getStyle: function(B, C) { B = $(B); C = C == "float" ? "cssFloat" : C.camelize(); var D = B.style[C]; if (!D) { var A = document.defaultView.getComputedStyle(B, null); D = A ? A[C] : null } if (C == "opacity") { return D ? parseFloat(D) : 1 } return D == "auto" ? null : D }, getOpacity: function(A) { return $(A).getStyle("opacity") }, setStyle: function(B, C) { B = $(B); var E = B.style, A; if (Object.isString(C)) { B.style.cssText += ";" + C; return C.include("opacity") ? B.setOpacity(C.match(/opacity:\s*(\d?\.?\d*)/)[1]) : B } for (var D in C) { if (D == "opacity") { B.setOpacity(C[D]) } else { E[(D == "float" || D == "cssFloat") ? (E.styleFloat === undefined ? "cssFloat" : "styleFloat") : D] = C[D] } } return B }, setOpacity: function(A, B) { A = $(A); A.style.opacity = (B == 1 || B === "") ? "" : (B < 0.00001) ? 0 : B; return A }, getDimensions: function(C) { C = $(C); var G = $(C).getStyle("display"); if (G != "none" && G != null) { return { width: C.offsetWidth, height: C.offsetHeight} } var B = C.style; var F = B.visibility; var D = B.position; var A = B.display; B.visibility = "hidden"; B.position = "absolute"; B.display = "block"; var H = C.clientWidth; var E = C.clientHeight; B.display = A; B.position = D; B.visibility = F; return { width: H, height: E} }, makePositioned: function(A) { A = $(A); var B = Element.getStyle(A, "position"); if (B == "static" || !B) { A._madePositioned = true; A.style.position = "relative"; if (window.opera) { A.style.top = 0; A.style.left = 0 } } return A }, undoPositioned: function(A) { A = $(A); if (A._madePositioned) { A._madePositioned = undefined; A.style.position = A.style.top = A.style.left = A.style.bottom = A.style.right = "" } return A }, makeClipping: function(A) { A = $(A); if (A._overflow) { return A } A._overflow = Element.getStyle(A, "overflow") || "auto"; if (A._overflow !== "hidden") { A.style.overflow = "hidden" } return A }, undoClipping: function(A) { A = $(A); if (!A._overflow) { return A } A.style.overflow = A._overflow == "auto" ? "" : A._overflow; A._overflow = null; return A }, cumulativeOffset: function(B) { var A = 0, C = 0; do { A += B.offsetTop || 0; C += B.offsetLeft || 0; B = B.offsetParent } while (B); return Element._returnOffset(C, A) }, positionedOffset: function(B) { var A = 0, D = 0; do { A += B.offsetTop || 0; D += B.offsetLeft || 0; B = B.offsetParent; if (B) { if (B.tagName == "BODY") { break } var C = Element.getStyle(B, "position"); if (C == "relative" || C == "absolute") { break } } } while (B); return Element._returnOffset(D, A) }, absolutize: function(B) { B = $(B); if (B.getStyle("position") == "absolute") { return } var D = B.positionedOffset(); var F = D[1]; var E = D[0]; var C = B.clientWidth; var A = B.clientHeight; B._originalLeft = E - parseFloat(B.style.left || 0); B._originalTop = F - parseFloat(B.style.top || 0); B._originalWidth = B.style.width; B._originalHeight = B.style.height; B.style.position = "absolute"; B.style.top = F + "px"; B.style.left = E + "px"; B.style.width = C + "px"; B.style.height = A + "px"; return B }, relativize: function(A) { A = $(A); if (A.getStyle("position") == "relative") { return } A.style.position = "relative"; var C = parseFloat(A.style.top || 0) - (A._originalTop || 0); var B = parseFloat(A.style.left || 0) - (A._originalLeft || 0); A.style.top = C + "px"; A.style.left = B + "px"; A.style.height = A._originalHeight; A.style.width = A._originalWidth; return A }, cumulativeScrollOffset: function(B) { var A = 0, C = 0; do { A += B.scrollTop || 0; C += B.scrollLeft || 0; B = B.parentNode } while (B); return Element._returnOffset(C, A) }, getOffsetParent: function(A) { if (A.offsetParent) { return $(A.offsetParent) } if (A == document.body) { return $(A) } while ((A = A.parentNode) && A != document.body) { if (Element.getStyle(A, "position") != "static") { return $(A) } } return $(document.body) }, viewportOffset: function(D) { var A = 0, C = 0; var B = D; do { A += B.offsetTop || 0; C += B.offsetLeft || 0; if (B.offsetParent == document.body && Element.getStyle(B, "position") == "absolute") { break } } while (B = B.offsetParent); B = D; do { if (!Prototype.Browser.Opera || B.tagName == "BODY") { A -= B.scrollTop || 0; C -= B.scrollLeft || 0 } } while (B = B.parentNode); return Element._returnOffset(C, A) }, clonePosition: function(B, D) { var A = Object.extend({ setLeft: true, setTop: true, setWidth: true, setHeight: true, offsetTop: 0, offsetLeft: 0 }, arguments[2] || {}); D = $(D); var E = D.viewportOffset(); B = $(B); var F = [0, 0]; var C = null; if (Element.getStyle(B, "position") == "absolute") { C = B.getOffsetParent(); F = C.viewportOffset() } if (C == document.body) { F[0] -= document.body.offsetLeft; F[1] -= document.body.offsetTop } if (A.setLeft) { B.style.left = (E[0] - F[0] + A.offsetLeft) + "px" } if (A.setTop) { B.style.top = (E[1] - F[1] + A.offsetTop) + "px" } if (A.setWidth) { B.style.width = D.offsetWidth + "px" } if (A.setHeight) { B.style.height = D.offsetHeight + "px" } return B } }; Element.Methods.identify.counter = 1; Object.extend(Element.Methods, { getElementsBySelector: Element.Methods.select, childElements: Element.Methods.immediateDescendants }); Element._attributeTranslations = { write: { names: { className: "class", htmlFor: "for" }, values: {}} }; if (!document.createRange || Prototype.Browser.Opera) { Element.Methods.insert = function(E, G) { E = $(E); if (Object.isString(G) || Object.isNumber(G) || Object.isElement(G) || (G && (G.toElement || G.toHTML))) { G = { bottom: G} } var D = Element._insertionTranslations, F, B, H, C; for (B in G) { F = G[B]; B = B.toLowerCase(); H = D[B]; if (F && F.toElement) { F = F.toElement() } if (Object.isElement(F)) { H.insert(E, F); continue } F = Object.toHTML(F); C = ((B == "before" || B == "after") ? E.parentNode : E).tagName.toUpperCase(); if (D.tags[C]) { var A = Element._getContentFromAnonymousElement(C, F.stripScripts()); if (B == "top" || B == "after") { A.reverse() } A.each(H.insert.curry(E)) } else { E.insertAdjacentHTML(H.adjacency, F.stripScripts()) } F.evalScripts.bind(F).defer() } return E } } if (Prototype.Browser.Opera) { Element.Methods._getStyle = Element.Methods.getStyle; Element.Methods.getStyle = function(A, B) { switch (B) { case "left": case "top": case "right": case "bottom": if (Element._getStyle(A, "position") == "static") { return null } default: return Element._getStyle(A, B) } }; Element.Methods._readAttribute = Element.Methods.readAttribute; Element.Methods.readAttribute = function(A, B) { if (B == "title") { return A.title } return Element._readAttribute(A, B) } } else { if (Prototype.Browser.IE) { $w("positionedOffset getOffsetParent viewportOffset").each(function(A) { Element.Methods[A] = Element.Methods[A].wrap(function(D, C) { C = $(C); var B = C.getStyle("position"); if (B != "static") { return D(C) } C.setStyle({ position: "relative" }); var E = D(C); C.setStyle({ position: B }); return E }) }); Element.Methods.getStyle = function(A, B) { A = $(A); B = (B == "float" || B == "cssFloat") ? "styleFloat" : B.camelize(); var C = A.style[B]; if (!C && A.currentStyle) { C = A.currentStyle[B] } if (B == "opacity") { if (C = (A.getStyle("filter") || "").match(/alpha\(opacity=(.*)\)/)) { if (C[1]) { return parseFloat(C[1]) / 100 } } return 1 } if (C == "auto") { if ((B == "width" || B == "height") && (A.getStyle("display") != "none")) { return A["offset" + B.capitalize()] + "px" } return null } return C }; Element.Methods.setOpacity = function(B, E) { function F(G) { return G.replace(/alpha\([^\)]*\)/gi, "") } B = $(B); var A = B.currentStyle; if ((A && !A.hasLayout) || (!A && B.style.zoom == "normal")) { B.style.zoom = 1 } var D = B.getStyle("filter"), C = B.style; if (E == 1 || E === "") { (D = F(D)) ? C.filter = D : C.removeAttribute("filter"); return B } else { if (E < 0.00001) { E = 0 } } C.filter = F(D) + "alpha(opacity=" + (E * 100) + ")"; return B }; Element._attributeTranslations = { read: { names: { "class": "className", "for": "htmlFor" }, values: { _getAttr: function(A, B) { return A.getAttribute(B, 2) }, _getAttrNode: function(A, C) { var B = A.getAttributeNode(C); return B ? B.value : "" }, _getEv: function(A, B) { var B = A.getAttribute(B); return B ? B.toString().slice(23, -2) : null }, _flag: function(A, B) { return $(A).hasAttribute(B) ? B : null }, style: function(A) { return A.style.cssText.toLowerCase() }, title: function(A) { return A.title } }} }; Element._attributeTranslations.write = { names: Object.clone(Element._attributeTranslations.read.names), values: { checked: function(A, B) { A.checked = !!B }, style: function(A, B) { A.style.cssText = B ? B : "" } } }; Element._attributeTranslations.has = {}; $w("colSpan rowSpan vAlign dateTime accessKey tabIndex encType maxLength readOnly longDesc").each(function(A) { Element._attributeTranslations.write.names[A.toLowerCase()] = A; Element._attributeTranslations.has[A.toLowerCase()] = A }); (function(A) { Object.extend(A, { href: A._getAttr, src: A._getAttr, type: A._getAttr, action: A._getAttrNode, disabled: A._flag, checked: A._flag, readonly: A._flag, multiple: A._flag, onload: A._getEv, onunload: A._getEv, onclick: A._getEv, ondblclick: A._getEv, onmousedown: A._getEv, onmouseup: A._getEv, onmouseover: A._getEv, onmousemove: A._getEv, onmouseout: A._getEv, onfocus: A._getEv, onblur: A._getEv, onkeypress: A._getEv, onkeydown: A._getEv, onkeyup: A._getEv, onsubmit: A._getEv, onreset: A._getEv, onselect: A._getEv, onchange: A._getEv }) })(Element._attributeTranslations.read.values) } else { if (Prototype.Browser.Gecko && /rv:1\.8\.0/.test(navigator.userAgent)) { Element.Methods.setOpacity = function(A, B) { A = $(A); A.style.opacity = (B == 1) ? 0.999999 : (B === "") ? "" : (B < 0.00001) ? 0 : B; return A } } else { if (Prototype.Browser.WebKit) { Element.Methods.setOpacity = function(A, B) { A = $(A); A.style.opacity = (B == 1 || B === "") ? "" : (B < 0.00001) ? 0 : B; if (B == 1) { if (A.tagName == "IMG" && A.width) { A.width++; A.width-- } else { try { var D = document.createTextNode(" "); A.appendChild(D); A.removeChild(D) } catch (C) { } } } return A }; Element.Methods.cumulativeOffset = function(B) { var A = 0, C = 0; do { A += B.offsetTop || 0; C += B.offsetLeft || 0; if (B.offsetParent == document.body) { if (Element.getStyle(B, "position") == "absolute") { break } } B = B.offsetParent } while (B); return Element._returnOffset(C, A) } } } } } if (Prototype.Browser.IE || Prototype.Browser.Opera) { Element.Methods.update = function(B, C) { B = $(B); if (C && C.toElement) { C = C.toElement() } if (Object.isElement(C)) { return B.update().insert(C) } C = Object.toHTML(C); var A = B.tagName.toUpperCase(); if (A in Element._insertionTranslations.tags) { $A(B.childNodes).each(function(D) { B.removeChild(D) }); Element._getContentFromAnonymousElement(A, C.stripScripts()).each(function(D) { B.appendChild(D) }) } else { B.innerHTML = C.stripScripts() } C.evalScripts.bind(C).defer(); return B } } if (document.createElement("div").outerHTML) { Element.Methods.replace = function(C, E) { C = $(C); if (E && E.toElement) { E = E.toElement() } if (Object.isElement(E)) { C.parentNode.replaceChild(E, C); return C } E = Object.toHTML(E); var D = C.parentNode, B = D.tagName.toUpperCase(); if (Element._insertionTranslations.tags[B]) { var F = C.next(); var A = Element._getContentFromAnonymousElement(B, E.stripScripts()); D.removeChild(C); if (F) { A.each(function(G) { D.insertBefore(G, F) }) } else { A.each(function(G) { D.appendChild(G) }) } } else { C.outerHTML = E.stripScripts() } E.evalScripts.bind(E).defer(); return C } } Element._returnOffset = function(B, C) { var A = [B, C]; A.left = B; A.top = C; return A }; Element._getContentFromAnonymousElement = function(C, B) { var D = new Element("div"), A = Element._insertionTranslations.tags[C]; D.innerHTML = A[0] + B + A[1]; A[2].times(function() { D = D.firstChild }); return $A(D.childNodes) }; Element._insertionTranslations = { before: { adjacency: "beforeBegin", insert: function(A, B) { A.parentNode.insertBefore(B, A) }, initializeRange: function(B, A) { A.setStartBefore(B) } }, top: { adjacency: "afterBegin", insert: function(A, B) { A.insertBefore(B, A.firstChild) }, initializeRange: function(B, A) { A.selectNodeContents(B); A.collapse(true) } }, bottom: { adjacency: "beforeEnd", insert: function(A, B) { A.appendChild(B) } }, after: { adjacency: "afterEnd", insert: function(A, B) { A.parentNode.insertBefore(B, A.nextSibling) }, initializeRange: function(B, A) { A.setStartAfter(B) } }, tags: { TABLE: ["<table>", "</table>", 1], TBODY: ["<table><tbody>", "</tbody></table>", 2], TR: ["<table><tbody><tr>", "</tr></tbody></table>", 3], TD: ["<table><tbody><tr><td>", "</td></tr></tbody></table>", 4], SELECT: ["<select>", "</select>", 1]} }; (function() { this.bottom.initializeRange = this.top.initializeRange; Object.extend(this.tags, { THEAD: this.tags.TBODY, TFOOT: this.tags.TBODY, TH: this.tags.TD }) }).call(Element._insertionTranslations); Element.Methods.Simulated = { hasAttribute: function(A, C) { C = Element._attributeTranslations.has[C] || C; var B = $(A).getAttributeNode(C); return B && B.specified } }; Element.Methods.ByTag = {}; Object.extend(Element, Element.Methods); if (!Prototype.BrowserFeatures.ElementExtensions && document.createElement("div").__proto__) { window.HTMLElement = {}; window.HTMLElement.prototype = document.createElement("div").__proto__; Prototype.BrowserFeatures.ElementExtensions = true } Element.extend = (function() { if (Prototype.BrowserFeatures.SpecificElementExtensions) { return Prototype.K } var A = {}, B = Element.Methods.ByTag; var C = Object.extend(function(F) { if (!F || F._extendedByPrototype || F.nodeType != 1 || F == window) { return F } var D = Object.clone(A), E = F.tagName, H, G; if (B[E]) { Object.extend(D, B[E]) } for (H in D) { G = D[H]; if (Object.isFunction(G) && !(H in F)) { F[H] = G.methodize() } } F._extendedByPrototype = Prototype.emptyFunction; return F }, { refresh: function() { if (!Prototype.BrowserFeatures.ElementExtensions) { Object.extend(A, Element.Methods); Object.extend(A, Element.Methods.Simulated) } } }); C.refresh(); return C })(); Element.hasAttribute = function(A, B) { if (A.hasAttribute) { return A.hasAttribute(B) } return Element.Methods.Simulated.hasAttribute(A, B) }; Element.addMethods = function(C) { var I = Prototype.BrowserFeatures, D = Element.Methods.ByTag; if (!C) { Object.extend(Form, Form.Methods); Object.extend(Form.Element, Form.Element.Methods); Object.extend(Element.Methods.ByTag, { FORM: Object.clone(Form.Methods), INPUT: Object.clone(Form.Element.Methods), SELECT: Object.clone(Form.Element.Methods), TEXTAREA: Object.clone(Form.Element.Methods) }) } if (arguments.length == 2) { var B = C; C = arguments[1] } if (!B) { Object.extend(Element.Methods, C || {}) } else { if (Object.isArray(B)) { B.each(H) } else { H(B) } } function H(F) { F = F.toUpperCase(); if (!Element.Methods.ByTag[F]) { Element.Methods.ByTag[F] = {} } Object.extend(Element.Methods.ByTag[F], C) } function A(L, K, F) { F = F || false; for (var N in L) { var M = L[N]; if (!Object.isFunction(M)) { continue } if (!F || !(N in K)) { K[N] = M.methodize() } } } function E(L) { var F; var K = { OPTGROUP: "OptGroup", TEXTAREA: "TextArea", P: "Paragraph", FIELDSET: "FieldSet", UL: "UList", OL: "OList", DL: "DList", DIR: "Directory", H1: "Heading", H2: "Heading", H3: "Heading", H4: "Heading", H5: "Heading", H6: "Heading", Q: "Quote", INS: "Mod", DEL: "Mod", A: "Anchor", IMG: "Image", CAPTION: "TableCaption", COL: "TableCol", COLGROUP: "TableCol", THEAD: "TableSection", TFOOT: "TableSection", TBODY: "TableSection", TR: "TableRow", TH: "TableCell", TD: "TableCell", FRAMESET: "FrameSet", IFRAME: "IFrame" }; if (K[L]) { F = "HTML" + K[L] + "Element" } if (window[F]) { return window[F] } F = "HTML" + L + "Element"; if (window[F]) { return window[F] } F = "HTML" + L.capitalize() + "Element"; if (window[F]) { return window[F] } window[F] = {}; window[F].prototype = document.createElement(L).__proto__; return window[F] } if (I.ElementExtensions) { A(Element.Methods, HTMLElement.prototype); A(Element.Methods.Simulated, HTMLElement.prototype, true) } if (I.SpecificElementExtensions) { for (var J in Element.Methods.ByTag) { var G = E(J); if (Object.isUndefined(G)) { continue } A(D[J], G.prototype) } } Object.extend(Element, Element.Methods); delete Element.ByTag; if (Element.extend.refresh) { Element.extend.refresh() } Element.cache = {} }; document.viewport = { getDimensions: function() { var A = {}; $w("width height").each(function(C) { var B = C.capitalize(); A[C] = self["inner" + B] || (document.documentElement["client" + B] || document.body["client" + B]) }); return A }, getWidth: function() { return this.getDimensions().width }, getHeight: function() { return this.getDimensions().height }, getScrollOffsets: function() { return Element._returnOffset(window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft, window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop) } }; var Selector = Class.create({ initialize: function(A) { this.expression = A.strip(); this.compileMatcher() }, compileMatcher: function() { if (Prototype.BrowserFeatures.XPath && !(/(\[[\w-]*?:|:checked)/).test(this.expression)) { return this.compileXPathMatcher() } var e = this.expression, ps = Selector.patterns, h = Selector.handlers, c = Selector.criteria, le, p, m; if (Selector._cache[e]) { this.matcher = Selector._cache[e]; return } this.matcher = ["this.matcher = function(root) {", "var r = root, h = Selector.handlers, c = false, n;"]; while (e && le != e && (/\S/).test(e)) { le = e; for (var i in ps) { p = ps[i]; if (m = e.match(p)) { this.matcher.push(Object.isFunction(c[i]) ? c[i](m) : new Template(c[i]).evaluate(m)); e = e.replace(m[0], ""); break } } } this.matcher.push("return h.unique(n);\n}"); eval(this.matcher.join("\n")); Selector._cache[this.expression] = this.matcher }, compileXPathMatcher: function() { var E = this.expression, F = Selector.patterns, B = Selector.xpath, D, A; if (Selector._cache[E]) { this.xpath = Selector._cache[E]; return } this.matcher = [".//*"]; while (E && D != E && (/\S/).test(E)) { D = E; for (var C in F) { if (A = E.match(F[C])) { this.matcher.push(Object.isFunction(B[C]) ? B[C](A) : new Template(B[C]).evaluate(A)); E = E.replace(A[0], ""); break } } } this.xpath = this.matcher.join(""); Selector._cache[this.expression] = this.xpath }, findElements: function(A) { A = A || document; if (this.xpath) { return document._getElementsByXPath(this.xpath, A) } return this.matcher(A) }, match: function(H) { this.tokens = []; var L = this.expression, A = Selector.patterns, E = Selector.assertions; var B, D, F; while (L && B !== L && (/\S/).test(L)) { B = L; for (var I in A) { D = A[I]; if (F = L.match(D)) { if (E[I]) { this.tokens.push([I, Object.clone(F)]); L = L.replace(F[0], "") } else { return this.findElements(document).include(H) } } } } var K = true, C, J; for (var I = 0, G; G = this.tokens[I]; I++) { C = G[0], J = G[1]; if (!Selector.assertions[C](H, J)) { K = false; break } } return K }, toString: function() { return this.expression }, inspect: function() { return "#<Selector:" + this.expression.inspect() + ">" } }); Object.extend(Selector, { _cache: {}, xpath: { descendant: "//*", child: "/*", adjacent: "/following-sibling::*[1]", laterSibling: "/following-sibling::*", tagName: function(A) { if (A[1] == "*") { return "" } return "[local-name()='" + A[1].toLowerCase() + "' or local-name()='" + A[1].toUpperCase() + "']" }, className: "[contains(concat(' ', @class, ' '), ' #{1} ')]", id: "[@id='#{1}']", attrPresence: "[@#{1}]", attr: function(A) { A[3] = A[5] || A[6]; return new Template(Selector.xpath.operators[A[2]]).evaluate(A) }, pseudo: function(A) { var B = Selector.xpath.pseudos[A[1]]; if (!B) { return "" } if (Object.isFunction(B)) { return B(A) } return new Template(Selector.xpath.pseudos[A[1]]).evaluate(A) }, operators: { "=": "[@#{1}='#{3}']", "!=": "[@#{1}!='#{3}']", "^=": "[starts-with(@#{1}, '#{3}')]", "$=": "[substring(@#{1}, (string-length(@#{1}) - string-length('#{3}') + 1))='#{3}']", "*=": "[contains(@#{1}, '#{3}')]", "~=": "[contains(concat(' ', @#{1}, ' '), ' #{3} ')]", "|=": "[contains(concat('-', @#{1}, '-'), '-#{3}-')]" }, pseudos: { "first-child": "[not(preceding-sibling::*)]", "last-child": "[not(following-sibling::*)]", "only-child": "[not(preceding-sibling::* or following-sibling::*)]", empty: "[count(*) = 0 and (count(text()) = 0 or translate(text(), ' \t\r\n', '') = '')]", checked: "[@checked]", disabled: "[@disabled]", enabled: "[not(@disabled)]", not: function(B) { var H = B[6], G = Selector.patterns, A = Selector.xpath, E, B, C; var F = []; while (H && E != H && (/\S/).test(H)) { E = H; for (var D in G) { if (B = H.match(G[D])) { C = Object.isFunction(A[D]) ? A[D](B) : new Template(A[D]).evaluate(B); F.push("(" + C.substring(1, C.length - 1) + ")"); H = H.replace(B[0], ""); break } } } return "[not(" + F.join(" and ") + ")]" }, "nth-child": function(A) { return Selector.xpath.pseudos.nth("(count(./preceding-sibling::*) + 1) ", A) }, "nth-last-child": function(A) { return Selector.xpath.pseudos.nth("(count(./following-sibling::*) + 1) ", A) }, "nth-of-type": function(A) { return Selector.xpath.pseudos.nth("position() ", A) }, "nth-last-of-type": function(A) { return Selector.xpath.pseudos.nth("(last() + 1 - position()) ", A) }, "first-of-type": function(A) { A[6] = "1"; return Selector.xpath.pseudos["nth-of-type"](A) }, "last-of-type": function(A) { A[6] = "1"; return Selector.xpath.pseudos["nth-last-of-type"](A) }, "only-of-type": function(A) { var B = Selector.xpath.pseudos; return B["first-of-type"](A) + B["last-of-type"](A) }, nth: function(E, C) { var F, G = C[6], B; if (G == "even") { G = "2n+0" } if (G == "odd") { G = "2n+1" } if (F = G.match(/^(\d+)$/)) { return "[" + E + "= " + F[1] + "]" } if (F = G.match(/^(-?\d*)?n(([+-])(\d+))?/)) { if (F[1] == "-") { F[1] = -1 } var D = F[1] ? Number(F[1]) : 1; var A = F[2] ? Number(F[2]) : 0; B = "[((#{fragment} - #{b}) mod #{a} = 0) and ((#{fragment} - #{b}) div #{a} >= 0)]"; return new Template(B).evaluate({ fragment: E, a: D, b: A }) } } } }, criteria: { tagName: 'n = h.tagName(n, r, "#{1}", c);  c = false;', className: 'n = h.className(n, r, "#{1}", c); c = false;', id: 'n = h.id(n, r, "#{1}", c);    c = false;', attrPresence: 'n = h.attrPresence(n, r, "#{1}"); c = false;', attr: function(A) { A[3] = (A[5] || A[6]); return new Template('n = h.attr(n, r, "#{1}", "#{3}", "#{2}"); c = false;').evaluate(A) }, pseudo: function(A) { if (A[6]) { A[6] = A[6].replace(/"/g, '\\"') } return new Template('n = h.pseudo(n, "#{1}", "#{6}", r, c); c = false;').evaluate(A) }, descendant: 'c = "descendant";', child: 'c = "child";', adjacent: 'c = "adjacent";', laterSibling: 'c = "laterSibling";' }, patterns: { laterSibling: /^\s*~\s*/, child: /^\s*>\s*/, adjacent: /^\s*\+\s*/, descendant: /^\s/, tagName: /^\s*(\*|[\w\-]+)(\b|$)?/, id: /^#([\w\-\*]+)(\b|$)/, className: /^\.([\w\-\*]+)(\b|$)/, pseudo: /^:((first|last|nth|nth-last|only)(-child|-of-type)|empty|checked|(en|dis)abled|not)(\((.*?)\))?(\b|$|(?=\s)|(?=:))/, attrPresence: /^\[([\w]+)\]/, attr: /\[((?:[\w-]*:)?[\w-]+)\s*(?:([!^$*~|]?=)\s*((['"])([^\4]*?)\4|([^'"][^\]]*?)))?\]/ }, assertions: { tagName: function(A, B) { return B[1].toUpperCase() == A.tagName.toUpperCase() }, className: function(A, B) { return Element.hasClassName(A, B[1]) }, id: function(A, B) { return A.id === B[1] }, attrPresence: function(A, B) { return Element.hasAttribute(A, B[1]) }, attr: function(B, C) { var A = Element.readAttribute(B, C[1]); return Selector.operators[C[2]](A, C[3]) } }, handlers: { concat: function(B, A) { for (var C = 0, D; D = A[C]; C++) { B.push(D) } return B }, mark: function(A) { for (var B = 0, C; C = A[B]; B++) { C._counted = true } return A }, unmark: function(A) { for (var B = 0, C; C = A[B]; B++) { C._counted = undefined } return A }, index: function(A, D, G) { A._counted = true; if (D) { for (var B = A.childNodes, E = B.length - 1, C = 1; E >= 0; E--) { var F = B[E]; if (F.nodeType == 1 && (!G || F._counted)) { F.nodeIndex = C++ } } } else { for (var E = 0, C = 1, B = A.childNodes; F = B[E]; E++) { if (F.nodeType == 1 && (!G || F._counted)) { F.nodeIndex = C++ } } } }, unique: function(B) { if (B.length == 0) { return B } var D = [], E; for (var C = 0, A = B.length; C < A; C++) { if (!(E = B[C])._counted) { E._counted = true; D.push(Element.extend(E)) } } return Selector.handlers.unmark(D) }, descendant: function(A) { var D = Selector.handlers; for (var C = 0, B = [], E; E = A[C]; C++) { D.concat(B, E.getElementsByTagName("*")) } return B }, child: function(A) { var F = Selector.handlers; for (var E = 0, D = [], G; G = A[E]; E++) { for (var B = 0, C = [], H; H = G.childNodes[B]; B++) { if (H.nodeType == 1 && H.tagName != "!") { D.push(H) } } } return D }, adjacent: function(A) { for (var C = 0, B = [], E; E = A[C]; C++) { var D = this.nextElementSibling(E); if (D) { B.push(D) } } return B }, laterSibling: function(A) { var D = Selector.handlers; for (var C = 0, B = [], E; E = A[C]; C++) { D.concat(B, Element.nextSiblings(E)) } return B }, nextElementSibling: function(A) { while (A = A.nextSibling) { if (A.nodeType == 1) { return A } } return null }, previousElementSibling: function(A) { while (A = A.previousSibling) { if (A.nodeType == 1) { return A } } return null }, tagName: function(B, A, E, H) { E = E.toUpperCase(); var D = [], F = Selector.handlers; if (B) { if (H) { if (H == "descendant") { for (var C = 0, G; G = B[C]; C++) { F.concat(D, G.getElementsByTagName(E)) } return D } else { B = this[H](B) } if (E == "*") { return B } } for (var C = 0, G; G = B[C]; C++) { if (G.tagName.toUpperCase() == E) { D.push(G) } } return D } else { return A.getElementsByTagName(E) } }, id: function(B, A, H, F) { var G = $(H), D = Selector.handlers; if (!G) { return [] } if (!B && A == document) { return [G] } if (B) { if (F) { if (F == "child") { for (var C = 0, E; E = B[C]; C++) { if (G.parentNode == E) { return [G] } } } else { if (F == "descendant") { for (var C = 0, E; E = B[C]; C++) { if (Element.descendantOf(G, E)) { return [G] } } } else { if (F == "adjacent") { for (var C = 0, E; E = B[C]; C++) { if (Selector.handlers.previousElementSibling(G) == E) { return [G] } } } else { B = D[F](B) } } } } for (var C = 0, E; E = B[C]; C++) { if (E == G) { return [G] } } return [] } return (G && Element.descendantOf(G, A)) ? [G] : [] }, className: function(B, A, C, D) { if (B && D) { B = this[D](B) } return Selector.handlers.byClassName(B, A, C) }, byClassName: function(C, B, F) { if (!C) { C = Selector.handlers.descendant([B]) } var H = " " + F + " "; for (var E = 0, D = [], G, A; G = C[E]; E++) { A = G.className; if (A.length == 0) { continue } if (A == F || (" " + A + " ").include(H)) { D.push(G) } } return D }, attrPresence: function(C, B, A) { if (!C) { C = B.getElementsByTagName("*") } var E = []; for (var D = 0, F; F = C[D]; D++) { if (Element.hasAttribute(F, A)) { E.push(F) } } return E }, attr: function(A, H, G, I, B) { if (!A) { A = H.getElementsByTagName("*") } var J = Selector.operators[B], D = []; for (var E = 0, C; C = A[E]; E++) { var F = Element.readAttribute(C, G); if (F === null) { continue } if (J(F, I)) { D.push(C) } } return D }, pseudo: function(B, C, E, A, D) { if (B && D) { B = this[D](B) } if (!B) { B = A.getElementsByTagName("*") } return Selector.pseudos[C](B, E, A) } }, pseudos: { "first-child": function(B, F, A) { for (var D = 0, C = [], E; E = B[D]; D++) { if (Selector.handlers.previousElementSibling(E)) { continue } C.push(E) } return C }, "last-child": function(B, F, A) { for (var D = 0, C = [], E; E = B[D]; D++) { if (Selector.handlers.nextElementSibling(E)) { continue } C.push(E) } return C }, "only-child": function(B, G, A) { var E = Selector.handlers; for (var D = 0, C = [], F; F = B[D]; D++) { if (!E.previousElementSibling(F) && !E.nextElementSibling(F)) { C.push(F) } } return C }, "nth-child": function(B, C, A) { return Selector.pseudos.nth(B, C, A) }, "nth-last-child": function(B, C, A) { return Selector.pseudos.nth(B, C, A, true) }, "nth-of-type": function(B, C, A) { return Selector.pseudos.nth(B, C, A, false, true) }, "nth-last-of-type": function(B, C, A) { return Selector.pseudos.nth(B, C, A, true, true) }, "first-of-type": function(B, C, A) { return Selector.pseudos.nth(B, "1", A, false, true) }, "last-of-type": function(B, C, A) { return Selector.pseudos.nth(B, "1", A, true, true) }, "only-of-type": function(B, D, A) { var C = Selector.pseudos; return C["last-of-type"](C["first-of-type"](B, D, A), D, A) }, getIndices: function(B, A, C) { if (B == 0) { return A > 0 ? [A] : [] } return $R(1, C).inject([], function(D, E) { if (0 == (E - A) % B && (E - A) / B >= 0) { D.push(E) } return D }) }, nth: function(A, L, N, K, C) { if (A.length == 0) { return [] } if (L == "even") { L = "2n+0" } if (L == "odd") { L = "2n+1" } var J = Selector.handlers, I = [], B = [], E; J.mark(A); for (var H = 0, D; D = A[H]; H++) { if (!D.parentNode._counted) { J.index(D.parentNode, K, C); B.push(D.parentNode) } } if (L.match(/^\d+$/)) { L = Number(L); for (var H = 0, D; D = A[H]; H++) { if (D.nodeIndex == L) { I.push(D) } } } else { if (E = L.match(/^(-?\d*)?n(([+-])(\d+))?/)) { if (E[1] == "-") { E[1] = -1 } var O = E[1] ? Number(E[1]) : 1; var M = E[2] ? Number(E[2]) : 0; var P = Selector.pseudos.getIndices(O, M, A.length); for (var H = 0, D, F = P.length; D = A[H]; H++) { for (var G = 0; G < F; G++) { if (D.nodeIndex == P[G]) { I.push(D) } } } } } J.unmark(A); J.unmark(B); return I }, empty: function(B, F, A) { for (var D = 0, C = [], E; E = B[D]; D++) { if (E.tagName == "!" || (E.firstChild && !E.innerHTML.match(/^\s*$/))) { continue } C.push(E) } return C }, not: function(A, D, I) { var G = Selector.handlers, J, C; var H = new Selector(D).findElements(I); G.mark(H); for (var F = 0, E = [], B; B = A[F]; F++) { if (!B._counted) { E.push(B) } } G.unmark(H); return E }, enabled: function(B, F, A) { for (var D = 0, C = [], E; E = B[D]; D++) { if (!E.disabled) { C.push(E) } } return C }, disabled: function(B, F, A) { for (var D = 0, C = [], E; E = B[D]; D++) { if (E.disabled) { C.push(E) } } return C }, checked: function(B, F, A) { for (var D = 0, C = [], E; E = B[D]; D++) { if (E.checked) { C.push(E) } } return C } }, operators: { "=": function(B, A) { return B == A }, "!=": function(B, A) { return B != A }, "^=": function(B, A) { return B.startsWith(A) }, "$=": function(B, A) { return B.endsWith(A) }, "*=": function(B, A) { return B.include(A) }, "~=": function(B, A) { return (" " + B + " ").include(" " + A + " ") }, "|=": function(B, A) { return ("-" + B.toUpperCase() + "-").include("-" + A.toUpperCase() + "-") } }, matchElements: function(F, G) { var E = new Selector(G).findElements(), D = Selector.handlers; D.mark(E); for (var C = 0, B = [], A; A = F[C]; C++) { if (A._counted) { B.push(A) } } D.unmark(E); return B }, findElement: function(B, C, A) { if (Object.isNumber(C)) { A = C; C = false } return Selector.matchElements(B, C || "*")[A || 0] }, findChildElements: function(E, G) { var H = G.join(","), G = []; H.scan(/(([\w#:.~>+()\s-]+|\*|\[.*?\])+)\s*(,|$)/, function(I) { G.push(I[1].strip()) }); var D = [], F = Selector.handlers; for (var C = 0, B = G.length, A; C < B; C++) { A = new Selector(G[C].strip()); F.concat(D, A.findElements(E)) } return (B > 1) ? F.unique(D) : D } }); function $$() { return Selector.findChildElements(document, $A(arguments)) } var Form = { reset: function(A) { $(A).reset(); return A }, serializeElements: function(G, B) { if (typeof B != "object") { B = { hash: !!B} } else { if (B.hash === undefined) { B.hash = true } } var C, F, A = false, E = B.submit; var D = G.inject({}, function(H, I) { if (!I.disabled && I.name) { C = I.name; F = $(I).getValue(); if (F != null && (I.type != "submit" || (!A && E !== false && (!E || C == E) && (A = true)))) { if (C in H) { if (!Object.isArray(H[C])) { H[C] = [H[C]] } H[C].push(F) } else { H[C] = F } } } return H }); return B.hash ? D : Object.toQueryString(D) } }; Form.Methods = { serialize: function(B, A) { return Form.serializeElements(Form.getElements(B), A) }, getElements: function(A) { return $A($(A).getElementsByTagName("*")).inject([], function(B, C) { if (Form.Element.Serializers[C.tagName.toLowerCase()]) { B.push(Element.extend(C)) } return B }) }, getInputs: function(G, C, D) { G = $(G); var A = G.getElementsByTagName("input"); if (!C && !D) { return $A(A).map(Element.extend) } for (var E = 0, H = [], F = A.length; E < F; E++) { var B = A[E]; if ((C && B.type != C) || (D && B.name != D)) { continue } H.push(Element.extend(B)) } return H }, disable: function(A) { A = $(A); Form.getElements(A).invoke("disable"); return A }, enable: function(A) { A = $(A); Form.getElements(A).invoke("enable"); return A }, findFirstElement: function(B) { var C = $(B).getElements().findAll(function(D) { return "hidden" != D.type && !D.disabled }); var A = C.findAll(function(D) { return D.hasAttribute("tabIndex") && D.tabIndex >= 0 }).sortBy(function(D) { return D.tabIndex }).first(); return A ? A : C.find(function(D) { return ["input", "select", "textarea"].include(D.tagName.toLowerCase()) }) }, focusFirstElement: function(A) { A = $(A); A.findFirstElement().activate(); return A }, request: function(B, A) { B = $(B), A = Object.clone(A || {}); var D = A.parameters, C = B.readAttribute("action") || ""; if (C.blank()) { C = window.location.href } A.parameters = B.serialize(true); if (D) { if (Object.isString(D)) { D = D.toQueryParams() } Object.extend(A.parameters, D) } if (B.hasAttribute("method") && !A.method) { A.method = B.method } return new Ajax.Request(C, A) } }; Form.Element = { focus: function(A) { $(A).focus(); return A }, select: function(A) { $(A).select(); return A } }; Form.Element.Methods = { serialize: function(A) { A = $(A); if (!A.disabled && A.name) { var B = A.getValue(); if (B != undefined) { var C = {}; C[A.name] = B; return Object.toQueryString(C) } } return "" }, getValue: function(A) { A = $(A); var B = A.tagName.toLowerCase(); return Form.Element.Serializers[B](A) }, setValue: function(A, B) { A = $(A); var C = A.tagName.toLowerCase(); Form.Element.Serializers[C](A, B); return A }, clear: function(A) { $(A).value = ""; return A }, present: function(A) { return $(A).value != "" }, activate: function(A) { A = $(A); try { A.focus(); if (A.select && (A.tagName.toLowerCase() != "input" || !["button", "reset", "submit"].include(A.type))) { A.select() } } catch (B) { } return A }, disable: function(A) { A = $(A); A.blur(); A.disabled = true; return A }, enable: function(A) { A = $(A); A.disabled = false; return A } }; var Field = Form.Element; var $F = Form.Element.Methods.getValue; Form.Element.Serializers = { input: function(A, B) { switch (A.type.toLowerCase()) { case "checkbox": case "radio": return Form.Element.Serializers.inputSelector(A, B); default: return Form.Element.Serializers.textarea(A, B) } }, inputSelector: function(A, B) { if (B === undefined) { return A.checked ? A.value : null } else { A.checked = !!B } }, textarea: function(A, B) { if (B === undefined) { return A.value } else { A.value = B } }, select: function(D, A) { if (A === undefined) { return this[D.type == "select-one" ? "selectOne" : "selectMany"](D) } else { var C, F, G = !Object.isArray(A); for (var B = 0, E = D.length; B < E; B++) { C = D.options[B]; F = this.optionValue(C); if (G) { if (F == A) { C.selected = true; return } } else { C.selected = A.include(F) } } } }, selectOne: function(B) { var A = B.selectedIndex; return A >= 0 ? this.optionValue(B.options[A]) : null }, selectMany: function(D) { var A, E = D.length; if (!E) { return null } for (var C = 0, A = []; C < E; C++) { var B = D.options[C]; if (B.selected) { A.push(this.optionValue(B)) } } return A }, optionValue: function(A) { return Element.extend(A).hasAttribute("value") ? A.value : A.text } }; Abstract.TimedObserver = Class.create(PeriodicalExecuter, { initialize: function($super, A, B, C) { $super(C, B); this.element = $(A); this.lastValue = this.getValue() }, execute: function() { var A = this.getValue(); if (Object.isString(this.lastValue) && Object.isString(A) ? this.lastValue != A : String(this.lastValue) != String(A)) { this.callback(this.element, A); this.lastValue = A } } }); Form.Element.Observer = Class.create(Abstract.TimedObserver, { getValue: function() { return Form.Element.getValue(this.element) } }); Form.Observer = Class.create(Abstract.TimedObserver, { getValue: function() { return Form.serialize(this.element) } }); Abstract.EventObserver = Class.create({ initialize: function(A, B) { this.element = $(A); this.callback = B; this.lastValue = this.getValue(); if (this.element.tagName.toLowerCase() == "form") { this.registerFormCallbacks() } else { this.registerCallback(this.element) } }, onElementEvent: function() { var A = this.getValue(); if (this.lastValue != A) { this.callback(this.element, A); this.lastValue = A } }, registerFormCallbacks: function() { Form.getElements(this.element).each(this.registerCallback, this) }, registerCallback: function(A) { if (A.type) { switch (A.type.toLowerCase()) { case "checkbox": case "radio": Event.observe(A, "click", this.onElementEvent.bind(this)); break; default: Event.observe(A, "change", this.onElementEvent.bind(this)); break } } } }); Form.Element.EventObserver = Class.create(Abstract.EventObserver, { getValue: function() { return Form.Element.getValue(this.element) } }); Form.EventObserver = Class.create(Abstract.EventObserver, { getValue: function() { return Form.serialize(this.element) } }); if (!window.Event) { var Event = {} } Object.extend(Event, { KEY_BACKSPACE: 8, KEY_TAB: 9, KEY_RETURN: 13, KEY_ESC: 27, KEY_LEFT: 37, KEY_UP: 38, KEY_RIGHT: 39, KEY_DOWN: 40, KEY_DELETE: 46, KEY_HOME: 36, KEY_END: 35, KEY_PAGEUP: 33, KEY_PAGEDOWN: 34, KEY_INSERT: 45, cache: {}, relatedTarget: function(B) { var A; switch (B.type) { case "mouseover": A = B.fromElement; break; case "mouseout": A = B.toElement; break; default: return null } return Element.extend(A) } }); Event.Methods = (function() { var A; if (Prototype.Browser.IE) { var B = { 0: 1, 1: 4, 2: 2 }; A = function(D, C) { return D.button == B[C] } } else { if (Prototype.Browser.WebKit) { A = function(D, C) { switch (C) { case 0: return D.which == 1 && !D.metaKey; case 1: return D.which == 1 && D.metaKey; default: return false } } } else { A = function(D, C) { return D.which ? (D.which === C + 1) : (D.button === C) } } } return { isLeftClick: function(C) { return A(C, 0) }, isMiddleClick: function(C) { return A(C, 1) }, isRightClick: function(C) { return A(C, 2) }, element: function(D) { var C = Event.extend(D).target; return Element.extend(C.nodeType == Node.TEXT_NODE ? C.parentNode : C) }, findElement: function(D, E) { var C = Event.element(D); return C.match(E) ? C : C.up(E) }, pointer: function(C) { return { x: C.pageX || (C.clientX + (document.documentElement.scrollLeft || document.body.scrollLeft)), y: C.pageY || (C.clientY + (document.documentElement.scrollTop || document.body.scrollTop))} }, pointerX: function(C) { return Event.pointer(C).x }, pointerY: function(C) { return Event.pointer(C).y }, stop: function(C) { Event.extend(C); C.preventDefault(); C.stopPropagation(); C.stopped = true } } })(); Event.extend = (function() { var A = Object.keys(Event.Methods).inject({}, function(B, C) { B[C] = Event.Methods[C].methodize(); return B }); if (Prototype.Browser.IE) { Object.extend(A, { stopPropagation: function() { this.cancelBubble = true }, preventDefault: function() { this.returnValue = false }, inspect: function() { return "[object Event]" } }); return function(B) { if (!B) { return false } if (B._extendedByPrototype) { return B } B._extendedByPrototype = Prototype.emptyFunction; var C = Event.pointer(B); Object.extend(B, { target: B.srcElement, relatedTarget: Event.relatedTarget(B), pageX: C.x, pageY: C.y }); return Object.extend(B, A) } } else { Event.prototype = Event.prototype || document.createEvent("HTMLEvents").__proto__; Object.extend(Event.prototype, A); return Prototype.K } })(); Object.extend(Event, (function() { var B = Event.cache; function C(J) { if (J._eventID) { return J._eventID } arguments.callee.id = arguments.callee.id || 1; return J._eventID = ++arguments.callee.id } function G(J) { if (J && J.include(":")) { return "dataavailable" } return J } function A(J) { return B[J] = B[J] || {} } function F(L, J) { var K = A(L); return K[J] = K[J] || [] } function H(K, J, L) { var O = C(K); var N = F(O, J); if (N.pluck("handler").include(L)) { return false } var M = function(P) { if (!Event || !Event.extend || (P.eventName && P.eventName != J)) { return false } Event.extend(P); L.call(K, P) }; M.handler = L; N.push(M); return M } function I(M, J, K) { var L = F(M, J); return L.find(function(N) { return N.handler == K }) } function D(M, J, K) { var L = A(M); if (!L[J]) { return false } L[J] = L[J].without(I(M, J, K)) } function E() { for (var K in B) { for (var J in B[K]) { B[K][J] = null } } } if (window.attachEvent) { window.attachEvent("onunload", E) } return { observe: function(L, J, M) { L = $(L); var K = G(J); var N = H(L, J, M); if (!N) { return L } if (L.addEventListener) { L.addEventListener(K, N, false) } else { L.attachEvent("on" + K, N) } return L }, stopObserving: function(L, J, M) { L = $(L); var O = C(L), K = G(J); if (!M && J) { F(O, J).each(function(P) { L.stopObserving(J, P.handler) }); return L } else { if (!J) { Object.keys(A(O)).each(function(P) { L.stopObserving(P) }); return L } } var N = I(O, J, M); if (!N) { return L } if (L.removeEventListener) { L.removeEventListener(K, N, false) } else { L.detachEvent("on" + K, N) } D(O, J, M); return L }, fire: function(L, K, J) { L = $(L); if (L == document && document.createEvent && !L.dispatchEvent) { L = document.documentElement } if (document.createEvent) { var M = document.createEvent("HTMLEvents"); M.initEvent("dataavailable", true, true) } else { var M = document.createEventObject(); M.eventType = "ondataavailable" } M.eventName = K; M.memo = J || {}; if (document.createEvent) { L.dispatchEvent(M) } else { L.fireEvent(M.eventType, M) } return M } } })()); Object.extend(Event, Event.Methods); Element.addMethods({ fire: Event.fire, observe: Event.observe, stopObserving: Event.stopObserving }); Object.extend(document, { fire: Element.Methods.fire.methodize(), observe: Element.Methods.observe.methodize(), stopObserving: Element.Methods.stopObserving.methodize() }); (function() { var C, B = false; function A() { if (B) { return } if (C) { window.clearInterval(C) } document.fire("dom:loaded"); B = true } if (document.addEventListener) { if (Prototype.Browser.WebKit) { C = window.setInterval(function() { if (/loaded|complete/.test(document.readyState)) { A() } }, 0); Event.observe(window, "load", A) } else { document.addEventListener("DOMContentLoaded", A, false) } } else { document.write("<script id=__onDOMContentLoaded defer src=//:><\/script>"); $("__onDOMContentLoaded").onreadystatechange = function() { if (this.readyState == "complete") { this.onreadystatechange = null; A() } } } })(); Hash.toQueryString = Object.toQueryString; var Toggle = { display: Element.toggle }; Element.Methods.childOf = Element.Methods.descendantOf; var Insertion = { Before: function(A, B) { return Element.insert(A, { before: B }) }, Top: function(A, B) { return Element.insert(A, { top: B }) }, Bottom: function(A, B) { return Element.insert(A, { bottom: B }) }, After: function(A, B) { return Element.insert(A, { after: B }) } }; var $continue = new Error('"throw $continue" is deprecated, use "return" instead'); var Position = { includeScrollOffsets: false, prepare: function() { this.deltaX = window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0; this.deltaY = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0 }, within: function(B, A, C) { if (this.includeScrollOffsets) { return this.withinIncludingScrolloffsets(B, A, C) } this.xcomp = A; this.ycomp = C; this.offset = Element.cumulativeOffset(B); return (C >= this.offset[1] && C < this.offset[1] + B.offsetHeight && A >= this.offset[0] && A < this.offset[0] + B.offsetWidth) }, withinIncludingScrolloffsets: function(B, A, D) { var C = Element.cumulativeScrollOffset(B); this.xcomp = A + C[0] - this.deltaX; this.ycomp = D + C[1] - this.deltaY; this.offset = Element.cumulativeOffset(B); return (this.ycomp >= this.offset[1] && this.ycomp < this.offset[1] + B.offsetHeight && this.xcomp >= this.offset[0] && this.xcomp < this.offset[0] + B.offsetWidth) }, overlap: function(B, A) { if (!B) { return 0 } if (B == "vertical") { return ((this.offset[1] + A.offsetHeight) - this.ycomp) / A.offsetHeight } if (B == "horizontal") { return ((this.offset[0] + A.offsetWidth) - this.xcomp) / A.offsetWidth } }, cumulativeOffset: Element.Methods.cumulativeOffset, positionedOffset: Element.Methods.positionedOffset, absolutize: function(A) { Position.prepare(); return Element.absolutize(A) }, relativize: function(A) { Position.prepare(); return Element.relativize(A) }, realOffset: Element.Methods.cumulativeScrollOffset, offsetParent: Element.Methods.getOffsetParent, page: Element.Methods.viewportOffset, clone: function(B, C, A) { A = A || {}; return Element.clonePosition(C, B, A) } }; if (!document.getElementsByClassName) { document.getElementsByClassName = function(B) { function A(C) { return C.blank() ? null : "[contains(concat(' ', @class, ' '), ' " + C + " ')]" } B.getElementsByClassName = Prototype.BrowserFeatures.XPath ? function(C, E) { E = E.toString().strip(); var D = /\s/.test(E) ? $w(E).map(A).join("") : A(E); return D ? document._getElementsByXPath(".//*" + D, C) : [] } : function(E, F) { F = F.toString().strip(); var G = [], H = (/\s/.test(F) ? $w(F) : null); if (!H && !F) { return G } var C = $(E).getElementsByTagName("*"); F = " " + F + " "; for (var D = 0, J, I; J = C[D]; D++) { if (J.className && (I = " " + J.className + " ") && (I.include(F) || (H && H.all(function(K) { return !K.toString().blank() && I.include(" " + K + " ") })))) { G.push(Element.extend(J)) } } return G }; return function(D, C) { return $(C || document.body).getElementsByClassName(D) } } (Element.Methods) } Element.ClassNames = Class.create(); Element.ClassNames.prototype = { initialize: function(A) { this.element = $(A) }, _each: function(A) { this.element.className.split(/\s+/).select(function(B) { return B.length > 0 })._each(A) }, set: function(A) { this.element.className = A }, add: function(A) { if (this.include(A)) { return } this.set($A(this).concat(A).join(" ")) }, remove: function(A) { if (!this.include(A)) { return } this.set($A(this).without(A).join(" ")) }, toString: function() { return $A(this).join(" ") } }; Object.extend(Element.ClassNames.prototype, Enumerable); Element.addMethods();(function() {var l = this, g, y = l.jQuery, p = l.$, o = l.jQuery = l.$ = function(E, F) { return new o.fn.init(E, F) }, D = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/, f = /^.[^:#\[\.,]*$/; o.fn = o.prototype = { init: function(E, H) { E = E || document; if (E.nodeType) { this[0] = E; this.length = 1; this.context = E; return this } if (typeof E === "string") { var G = D.exec(E); if (G && (G[1] || !H)) { if (G[1]) { E = o.clean([G[1]], H) } else { var I = document.getElementById(G[3]); if (I && I.id != G[3]) { return o().find(E) } var F = o(I || []); F.context = document; F.selector = E; return F } } else { return o(H).find(E) } } else { if (o.isFunction(E)) { return o(document).ready(E) } } if (E.selector && E.context) { this.selector = E.selector; this.context = E.context } return this.setArray(o.isArray(E) ? E : o.makeArray(E)) }, selector: "", jquery: "1.3.2", size: function() { return this.length }, get: function(E) { return E === g ? Array.prototype.slice.call(this) : this[E] }, pushStack: function(F, H, E) { var G = o(F); G.prevObject = this; G.context = this.context; if (H === "find") { G.selector = this.selector + (this.selector ? " " : "") + E } else { if (H) { G.selector = this.selector + "." + H + "(" + E + ")" } } return G }, setArray: function(E) { this.length = 0; Array.prototype.push.apply(this, E); return this }, each: function(F, E) { return o.each(this, F, E) }, index: function(E) { return o.inArray(E && E.jquery ? E[0] : E, this) }, attr: function(F, H, G) { var E = F; if (typeof F === "string") { if (H === g) { return this[0] && o[G || "attr"](this[0], F) } else { E = {}; E[F] = H } } return this.each(function(I) { for (F in E) { o.attr(G ? this.style : this, F, o.prop(this, E[F], G, I, F)) } }) }, css: function(E, F) { if ((E == "width" || E == "height") && parseFloat(F) < 0) { F = g } return this.attr(E, F, "curCSS") }, text: function(F) { if (typeof F !== "object" && F != null) { return this.empty().append((this[0] && this[0].ownerDocument || document).createTextNode(F)) } var E = ""; o.each(F || this, function() { o.each(this.childNodes, function() { if (this.nodeType != 8) { E += this.nodeType != 1 ? this.nodeValue : o.fn.text([this]) } }) }); return E }, wrapAll: function(E) { if (this[0]) { var F = o(E, this[0].ownerDocument).clone(); if (this[0].parentNode) { F.insertBefore(this[0]) } F.map(function() { var G = this; while (G.firstChild) { G = G.firstChild } return G }).append(this) } return this }, wrapInner: function(E) { return this.each(function() { o(this).contents().wrapAll(E) }) }, wrap: function(E) { return this.each(function() { o(this).wrapAll(E) }) }, append: function() { return this.domManip(arguments, true, function(E) { if (this.nodeType == 1) { this.appendChild(E) } }) }, prepend: function() { return this.domManip(arguments, true, function(E) { if (this.nodeType == 1) { this.insertBefore(E, this.firstChild) } }) }, before: function() { return this.domManip(arguments, false, function(E) { this.parentNode.insertBefore(E, this) }) }, after: function() { return this.domManip(arguments, false, function(E) { this.parentNode.insertBefore(E, this.nextSibling) }) }, end: function() { return this.prevObject || o([]) }, push: [].push, sort: [].sort, splice: [].splice, find: function(E) { if (this.length === 1) { var F = this.pushStack([], "find", E); F.length = 0; o.find(E, this[0], F); return F } else { return this.pushStack(o.unique(o.map(this, function(G) { return o.find(E, G) })), "find", E) } }, clone: function(G) { var E = this.map(function() { if (!o.support.noCloneEvent && !o.isXMLDoc(this)) { var I = this.outerHTML; if (!I) { var J = this.ownerDocument.createElement("div"); J.appendChild(this.cloneNode(true)); I = J.innerHTML } return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g, "").replace(/^\s*/, "")])[0] } else { return this.cloneNode(true) } }); if (G === true) { var H = this.find("*").andSelf(), F = 0; E.find("*").andSelf().each(function() { if (this.nodeName !== H[F].nodeName) { return } var I = o.data(H[F], "events"); for (var K in I) { for (var J in I[K]) { o.event.add(this, K, I[K][J], I[K][J].data) } } F++ }) } return E }, filter: function(E) { return this.pushStack(o.isFunction(E) && o.grep(this, function(G, F) { return E.call(G, F) }) || o.multiFilter(E, o.grep(this, function(F) { return F.nodeType === 1 })), "filter", E) }, closest: function(E) { var G = o.expr.match.POS.test(E) ? o(E) : null, F = 0; return this.map(function() { var H = this; while (H && H.ownerDocument) { if (G ? G.index(H) > -1 : o(H).is(E)) { o.data(H, "closest", F); return H } H = H.parentNode; F++ } }) }, not: function(E) { if (typeof E === "string") { if (f.test(E)) { return this.pushStack(o.multiFilter(E, this, true), "not", E) } else { E = o.multiFilter(E, this) } } var F = E.length && E[E.length - 1] !== g && !E.nodeType; return this.filter(function() { return F ? o.inArray(this, E) < 0 : this != E }) }, add: function(E) { return this.pushStack(o.unique(o.merge(this.get(), typeof E === "string" ? o(E) : o.makeArray(E)))) }, is: function(E) { return !!E && o.multiFilter(E, this).length > 0 }, hasClass: function(E) { return !!E && this.is("." + E) }, val: function(K) { if (K === g) { var E = this[0]; if (E) { if (o.nodeName(E, "option")) { return (E.attributes.value || {}).specified ? E.value : E.text } if (o.nodeName(E, "select")) { var I = E.selectedIndex, L = [], M = E.options, H = E.type == "select-one"; if (I < 0) { return null } for (var F = H ? I : 0, J = H ? I + 1 : M.length; F < J; F++) { var G = M[F]; if (G.selected) { K = o(G).val(); if (H) { return K } L.push(K) } } return L } return (E.value || "").replace(/\r/g, "") } return g } if (typeof K === "number") { K += "" } return this.each(function() { if (this.nodeType != 1) { return } if (o.isArray(K) && /radio|checkbox/.test(this.type)) { this.checked = (o.inArray(this.value, K) >= 0 || o.inArray(this.name, K) >= 0) } else { if (o.nodeName(this, "select")) { var N = o.makeArray(K); o("option", this).each(function() { this.selected = (o.inArray(this.value, N) >= 0 || o.inArray(this.text, N) >= 0) }); if (!N.length) { this.selectedIndex = -1 } } else { this.value = K } } }) }, html: function(E) { return E === g ? (this[0] ? this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g, "") : null) : this.empty().append(E) }, replaceWith: function(E) { return this.after(E).remove() }, eq: function(E) { return this.slice(E, +E + 1) }, slice: function() { return this.pushStack(Array.prototype.slice.apply(this, arguments), "slice", Array.prototype.slice.call(arguments).join(",")) }, map: function(E) { return this.pushStack(o.map(this, function(G, F) { return E.call(G, F, G) })) }, andSelf: function() { return this.add(this.prevObject) }, domManip: function(J, M, L) { if (this[0]) { var I = (this[0].ownerDocument || this[0]).createDocumentFragment(), F = o.clean(J, (this[0].ownerDocument || this[0]), I), H = I.firstChild; if (H) { for (var G = 0, E = this.length; G < E; G++) { L.call(K(this[G], H), this.length > 1 || G > 0 ? I.cloneNode(true) : I) } } if (F) { o.each(F, z) } } return this; function K(N, O) { return M && o.nodeName(N, "table") && o.nodeName(O, "tr") ? (N.getElementsByTagName("tbody")[0] || N.appendChild(N.ownerDocument.createElement("tbody"))) : N } } }; o.fn.init.prototype = o.fn; function z(E, F) { if (F.src) { o.ajax({ url: F.src, async: false, dataType: "script" }) } else { o.globalEval(F.text || F.textContent || F.innerHTML || "") } if (F.parentNode) { F.parentNode.removeChild(F) } } function e() { return +new Date } o.extend = o.fn.extend = function() { var J = arguments[0] || {}, H = 1, I = arguments.length, E = false, G; if (typeof J === "boolean") { E = J; J = arguments[1] || {}; H = 2 } if (typeof J !== "object" && !o.isFunction(J)) { J = {} } if (I == H) { J = this; --H } for (; H < I; H++) { if ((G = arguments[H]) != null) { for (var F in G) { var K = J[F], L = G[F]; if (J === L) { continue } if (E && L && typeof L === "object" && !L.nodeType) { J[F] = o.extend(E, K || (L.length != null ? [] : {}), L) } else { if (L !== g) { J[F] = L } } } } } return J }; var b = /z-?index|font-?weight|opacity|zoom|line-?height/i, q = document.defaultView || {}, s = Object.prototype.toString; o.extend({ noConflict: function(E) { l.$ = p; if (E) { l.jQuery = y } return o }, isFunction: function(E) { return s.call(E) === "[object Function]" }, isArray: function(E) { return s.call(E) === "[object Array]" }, isXMLDoc: function(E) { return E.nodeType === 9 && E.documentElement.nodeName !== "HTML" || !!E.ownerDocument && o.isXMLDoc(E.ownerDocument) }, globalEval: function(G) { if (G && /\S/.test(G)) { var F = document.getElementsByTagName("head")[0] || document.documentElement, E = document.createElement("script"); E.type = "text/javascript"; if (o.support.scriptEval) { E.appendChild(document.createTextNode(G)) } else { E.text = G } F.insertBefore(E, F.firstChild); F.removeChild(E) } }, nodeName: function(F, E) { return F.nodeName && F.nodeName.toUpperCase() == E.toUpperCase() }, each: function(G, K, F) { var E, H = 0, I = G.length; if (F) { if (I === g) { for (E in G) { if (K.apply(G[E], F) === false) { break } } } else { for (; H < I; ) { if (K.apply(G[H++], F) === false) { break } } } } else { if (I === g) { for (E in G) { if (K.call(G[E], E, G[E]) === false) { break } } } else { for (var J = G[0]; H < I && K.call(J, H, J) !== false; J = G[++H]) { } } } return G }, prop: function(H, I, G, F, E) { if (o.isFunction(I)) { I = I.call(H, F) } return typeof I === "number" && G == "curCSS" && !b.test(E) ? I + "px" : I }, className: { add: function(E, F) { o.each((F || "").split(/\s+/), function(G, H) { if (E.nodeType == 1 && !o.className.has(E.className, H)) { E.className += (E.className ? " " : "") + H } }) }, remove: function(E, F) { if (E.nodeType == 1) { E.className = F !== g ? o.grep(E.className.split(/\s+/), function(G) { return !o.className.has(F, G) }).join(" ") : "" } }, has: function(F, E) { return F && o.inArray(E, (F.className || F).toString().split(/\s+/)) > -1 } }, swap: function(H, G, I) { var E = {}; for (var F in G) { E[F] = H.style[F]; H.style[F] = G[F] } I.call(H); for (var F in G) { H.style[F] = E[F] } }, css: function(H, F, J, E) { if (F == "width" || F == "height") { var L, G = { position: "absolute", visibility: "hidden", display: "block" }, K = F == "width" ? ["Left", "Right"] : ["Top", "Bottom"]; function I() { L = F == "width" ? H.offsetWidth : H.offsetHeight; if (E === "border") { return } o.each(K, function() { if (!E) { L -= parseFloat(o.curCSS(H, "padding" + this, true)) || 0 } if (E === "margin") { L += parseFloat(o.curCSS(H, "margin" + this, true)) || 0 } else { L -= parseFloat(o.curCSS(H, "border" + this + "Width", true)) || 0 } }) } if (H.offsetWidth !== 0) { I() } else { o.swap(H, G, I) } return Math.max(0, Math.round(L)) } return o.curCSS(H, F, J) }, curCSS: function(I, F, G) { var L, E = I.style; if (F == "opacity" && !o.support.opacity) { L = o.attr(E, "opacity"); return L == "" ? "1" : L } if (F.match(/float/i)) { F = w } if (!G && E && E[F]) { L = E[F] } else { if (q.getComputedStyle) { if (F.match(/float/i)) { F = "float" } F = F.replace(/([A-Z])/g, "-$1").toLowerCase(); var M = q.getComputedStyle(I, null); if (M) { L = M.getPropertyValue(F) } if (F == "opacity" && L == "") { L = "1" } } else { if (I.currentStyle) { var J = F.replace(/\-(\w)/g, function(N, O) { return O.toUpperCase() }); L = I.currentStyle[F] || I.currentStyle[J]; if (!/^\d+(px)?$/i.test(L) && /^\d/.test(L)) { var H = E.left, K = I.runtimeStyle.left; I.runtimeStyle.left = I.currentStyle.left; E.left = L || 0; L = E.pixelLeft + "px"; E.left = H; I.runtimeStyle.left = K } } } } return L }, clean: function(F, K, I) { K = K || document; if (typeof K.createElement === "undefined") { K = K.ownerDocument || K[0] && K[0].ownerDocument || document } if (!I && F.length === 1 && typeof F[0] === "string") { var H = /^<(\w+)\s*\/?>$/.exec(F[0]); if (H) { return [K.createElement(H[1])] } } var G = [], E = [], L = K.createElement("div"); o.each(F, function(P, S) { if (typeof S === "number") { S += "" } if (!S) { return } if (typeof S === "string") { S = S.replace(/(<(\w+)[^>]*?)\/>/g, function(U, V, T) { return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i) ? U : V + "></" + T + ">" }); var O = S.replace(/^\s+/, "").substring(0, 10).toLowerCase(); var Q = !O.indexOf("<opt") && [1, "<select multiple='multiple'>", "</select>"] || !O.indexOf("<leg") && [1, "<fieldset>", "</fieldset>"] || O.match(/^<(thead|tbody|tfoot|colg|cap)/) && [1, "<table>", "</table>"] || !O.indexOf("<tr") && [2, "<table><tbody>", "</tbody></table>"] || (!O.indexOf("<td") || !O.indexOf("<th")) && [3, "<table><tbody><tr>", "</tr></tbody></table>"] || !O.indexOf("<col") && [2, "<table><tbody></tbody><colgroup>", "</colgroup></table>"] || !o.support.htmlSerialize && [1, "div<div>", "</div>"] || [0, "", ""]; L.innerHTML = Q[1] + S + Q[2]; while (Q[0]--) { L = L.lastChild } if (!o.support.tbody) { var R = /<tbody/i.test(S), N = !O.indexOf("<table") && !R ? L.firstChild && L.firstChild.childNodes : Q[1] == "<table>" && !R ? L.childNodes : []; for (var M = N.length - 1; M >= 0; --M) { if (o.nodeName(N[M], "tbody") && !N[M].childNodes.length) { N[M].parentNode.removeChild(N[M]) } } } if (!o.support.leadingWhitespace && /^\s/.test(S)) { L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]), L.firstChild) } S = o.makeArray(L.childNodes) } if (S.nodeType) { G.push(S) } else { G = o.merge(G, S) } }); if (I) { for (var J = 0; G[J]; J++) { if (o.nodeName(G[J], "script") && (!G[J].type || G[J].type.toLowerCase() === "text/javascript")) { E.push(G[J].parentNode ? G[J].parentNode.removeChild(G[J]) : G[J]) } else { if (G[J].nodeType === 1) { G.splice.apply(G, [J + 1, 0].concat(o.makeArray(G[J].getElementsByTagName("script")))) } I.appendChild(G[J]) } } return E } return G }, attr: function(J, G, K) { if (!J || J.nodeType == 3 || J.nodeType == 8) { return g } var H = !o.isXMLDoc(J), L = K !== g; G = H && o.props[G] || G; if (J.tagName) { var F = /href|src|style/.test(G); if (G == "selected" && J.parentNode) { J.parentNode.selectedIndex } if (G in J && H && !F) { if (L) { if (G == "type" && o.nodeName(J, "input") && J.parentNode) { throw "type property can't be changed" } J[G] = K } if (o.nodeName(J, "form") && J.getAttributeNode(G)) { return J.getAttributeNode(G).nodeValue } if (G == "tabIndex") { var I = J.getAttributeNode("tabIndex"); return I && I.specified ? I.value : J.nodeName.match(/(button|input|object|select|textarea)/i) ? 0 : J.nodeName.match(/^(a|area)$/i) && J.href ? 0 : g } return J[G] } if (!o.support.style && H && G == "style") { return o.attr(J.style, "cssText", K) } if (L) { J.setAttribute(G, "" + K) } var E = !o.support.hrefNormalized && H && F ? J.getAttribute(G, 2) : J.getAttribute(G); return E === null ? g : E } if (!o.support.opacity && G == "opacity") { if (L) { J.zoom = 1; J.filter = (J.filter || "").replace(/alpha\([^)]*\)/, "") + (parseInt(K) + "" == "NaN" ? "" : "alpha(opacity=" + K * 100 + ")") } return J.filter && J.filter.indexOf("opacity=") >= 0 ? (parseFloat(J.filter.match(/opacity=([^)]*)/)[1]) / 100) + "" : "" } G = G.replace(/-([a-z])/ig, function(M, N) { return N.toUpperCase() }); if (L) { J[G] = K } return J[G] }, trim: function(E) { return (E || "").replace(/^\s+|\s+$/g, "") }, makeArray: function(G) { var E = []; if (G != null) { var F = G.length; if (F == null || typeof G === "string" || o.isFunction(G) || G.setInterval) { E[0] = G } else { while (F) { E[--F] = G[F] } } } return E }, inArray: function(G, H) { for (var E = 0, F = H.length; E < F; E++) { if (H[E] === G) { return E } } return -1 }, merge: function(H, E) { var F = 0, G, I = H.length; if (!o.support.getAll) { while ((G = E[F++]) != null) { if (G.nodeType != 8) { H[I++] = G } } } else { while ((G = E[F++]) != null) { H[I++] = G } } return H }, unique: function(K) { var F = [], E = {}; try { for (var G = 0, H = K.length; G < H; G++) { var J = o.data(K[G]); if (!E[J]) { E[J] = true; F.push(K[G]) } } } catch (I) { F = K } return F }, grep: function(F, J, E) { var G = []; for (var H = 0, I = F.length; H < I; H++) { if (!E != !J(F[H], H)) { G.push(F[H]) } } return G }, map: function(E, J) { var F = []; for (var G = 0, H = E.length; G < H; G++) { var I = J(E[G], G); if (I != null) { F[F.length] = I } } return F.concat.apply([], F) } }); var C = navigator.userAgent.toLowerCase(); o.browser = { version: (C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [0, "0"])[1], safari: /webkit/.test(C), opera: /opera/.test(C), msie: /msie/.test(C) && !/opera/.test(C), mozilla: /mozilla/.test(C) && !/(compatible|webkit)/.test(C) }; o.each({ parent: function(E) { return E.parentNode }, parents: function(E) { return o.dir(E, "parentNode") }, next: function(E) { return o.nth(E, 2, "nextSibling") }, prev: function(E) { return o.nth(E, 2, "previousSibling") }, nextAll: function(E) { return o.dir(E, "nextSibling") }, prevAll: function(E) { return o.dir(E, "previousSibling") }, siblings: function(E) { return o.sibling(E.parentNode.firstChild, E) }, children: function(E) { return o.sibling(E.firstChild) }, contents: function(E) { return o.nodeName(E, "iframe") ? E.contentDocument || E.contentWindow.document : o.makeArray(E.childNodes) } }, function(E, F) { o.fn[E] = function(G) { var H = o.map(this, F); if (G && typeof G == "string") { H = o.multiFilter(G, H) } return this.pushStack(o.unique(H), E, G) } }); o.each({ appendTo: "append", prependTo: "prepend", insertBefore: "before", insertAfter: "after", replaceAll: "replaceWith" }, function(E, F) { o.fn[E] = function(G) { var J = [], L = o(G); for (var K = 0, H = L.length; K < H; K++) { var I = (K > 0 ? this.clone(true) : this).get(); o.fn[F].apply(o(L[K]), I); J = J.concat(I) } return this.pushStack(J, E, G) } }); o.each({ removeAttr: function(E) { o.attr(this, E, ""); if (this.nodeType == 1) { this.removeAttribute(E) } }, addClass: function(E) { o.className.add(this, E) }, removeClass: function(E) { o.className.remove(this, E) }, toggleClass: function(F, E) { if (typeof E !== "boolean") { E = !o.className.has(this, F) } o.className[E ? "add" : "remove"](this, F) }, remove: function(E) { if (!E || o.filter(E, [this]).length) { o("*", this).add([this]).each(function() { o.event.remove(this); o.removeData(this) }); if (this.parentNode) { this.parentNode.removeChild(this) } } }, empty: function() { o(this).children().remove(); while (this.firstChild) { this.removeChild(this.firstChild) } } }, function(E, F) { o.fn[E] = function() { return this.each(F, arguments) } }); function j(E, F) { return E[0] && parseInt(o.curCSS(E[0], F, true), 10) || 0 } var h = "jQuery" + e(), v = 0, A = {}; o.extend({ cache: {}, data: function(F, E, G) { F = F == l ? A : F; var H = F[h]; if (!H) { H = F[h] = ++v } if (E && !o.cache[H]) { o.cache[H] = {} } if (G !== g) { o.cache[H][E] = G } return E ? o.cache[H][E] : H }, removeData: function(F, E) { F = F == l ? A : F; var H = F[h]; if (E) { if (o.cache[H]) { delete o.cache[H][E]; E = ""; for (E in o.cache[H]) { break } if (!E) { o.removeData(F) } } } else { try { delete F[h] } catch (G) { if (F.removeAttribute) { F.removeAttribute(h) } } delete o.cache[H] } }, queue: function(F, E, H) { if (F) { E = (E || "fx") + "queue"; var G = o.data(F, E); if (!G || o.isArray(H)) { G = o.data(F, E, o.makeArray(H)) } else { if (H) { G.push(H) } } } return G }, dequeue: function(H, G) { var E = o.queue(H, G), F = E.shift(); if (!G || G === "fx") { F = E[0] } if (F !== g) { F.call(H) } } }); o.fn.extend({ data: function(E, G) { var H = E.split("."); H[1] = H[1] ? "." + H[1] : ""; if (G === g) { var F = this.triggerHandler("getData" + H[1] + "!", [H[0]]); if (F === g && this.length) { F = o.data(this[0], E) } return F === g && H[1] ? this.data(H[0]) : F } else { return this.trigger("setData" + H[1] + "!", [H[0], G]).each(function() { o.data(this, E, G) }) } }, removeData: function(E) { return this.each(function() { o.removeData(this, E) }) }, queue: function(E, F) { if (typeof E !== "string") { F = E; E = "fx" } if (F === g) { return o.queue(this[0], E) } return this.each(function() { var G = o.queue(this, E, F); if (E == "fx" && G.length == 1) { G[0].call(this) } }) }, dequeue: function(E) { return this.each(function() { o.dequeue(this, E) }) } });(function() { var R = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g, L = 0, H = Object.prototype.toString; var F = function(Y, U, ab, ac) { ab = ab || []; U = U || document; if (U.nodeType !== 1 && U.nodeType !== 9) { return [] } if (!Y || typeof Y !== "string") { return ab } var Z = [], W, af, ai, T, ad, V, X = true; R.lastIndex = 0; while ((W = R.exec(Y)) !== null) { Z.push(W[1]); if (W[2]) { V = RegExp.rightContext; break } } if (Z.length > 1 && M.exec(Y)) { if (Z.length === 2 && I.relative[Z[0]]) { af = J(Z[0] + Z[1], U) } else { af = I.relative[Z[0]] ? [U] : F(Z.shift(), U); while (Z.length) { Y = Z.shift(); if (I.relative[Y]) { Y += Z.shift() } af = J(Y, af) } } } else { var ae = ac ? { expr: Z.pop(), set: E(ac)} : F.find(Z.pop(), Z.length === 1 && U.parentNode ? U.parentNode : U, Q(U)); af = F.filter(ae.expr, ae.set); if (Z.length > 0) { ai = E(af) } else { X = false } while (Z.length) { var ah = Z.pop(), ag = ah; if (!I.relative[ah]) { ah = "" } else { ag = Z.pop() } if (ag == null) { ag = U } I.relative[ah](ai, ag, Q(U)) } } if (!ai) { ai = af } if (!ai) { throw "Syntax error, unrecognized expression: " + (ah || Y) } if (H.call(ai) === "[object Array]") { if (!X) { ab.push.apply(ab, ai) } else { if (U.nodeType === 1) { for (var aa = 0; ai[aa] != null; aa++) { if (ai[aa] && (ai[aa] === true || ai[aa].nodeType === 1 && K(U, ai[aa]))) { ab.push(af[aa]) } } } else { for (var aa = 0; ai[aa] != null; aa++) { if (ai[aa] && ai[aa].nodeType === 1) { ab.push(af[aa]) } } } } } else { E(ai, ab) } if (V) { F(V, U, ab, ac); if (G) { hasDuplicate = false; ab.sort(G); if (hasDuplicate) { for (var aa = 1; aa < ab.length; aa++) { if (ab[aa] === ab[aa - 1]) { ab.splice(aa--, 1) } } } } } return ab }; F.matches = function(T, U) { return F(T, null, null, U) }; F.find = function(aa, T, ab) { var Z, X; if (!aa) { return [] } for (var W = 0, V = I.order.length; W < V; W++) { var Y = I.order[W], X; if ((X = I.match[Y].exec(aa))) { var U = RegExp.leftContext; if (U.substr(U.length - 1) !== "\\") { X[1] = (X[1] || "").replace(/\\/g, ""); Z = I.find[Y](X, T, ab); if (Z != null) { aa = aa.replace(I.match[Y], ""); break } } } } if (!Z) { Z = T.getElementsByTagName("*") } return { set: Z, expr: aa} }; F.filter = function(ad, ac, ag, W) { var V = ad, ai = [], aa = ac, Y, T, Z = ac && ac[0] && Q(ac[0]); while (ad && ac.length) { for (var ab in I.filter) { if ((Y = I.match[ab].exec(ad)) != null) { var U = I.filter[ab], ah, af; T = false; if (aa == ai) { ai = [] } if (I.preFilter[ab]) { Y = I.preFilter[ab](Y, aa, ag, ai, W, Z); if (!Y) { T = ah = true } else { if (Y === true) { continue } } } if (Y) { for (var X = 0; (af = aa[X]) != null; X++) { if (af) { ah = U(af, Y, X, aa); var ae = W ^ !!ah; if (ag && ah != null) { if (ae) { T = true } else { aa[X] = false } } else { if (ae) { ai.push(af); T = true } } } } } if (ah !== g) { if (!ag) { aa = ai } ad = ad.replace(I.match[ab], ""); if (!T) { return [] } break } } } if (ad == V) { if (T == null) { throw "Syntax error, unrecognized expression: " + ad } else { break } } V = ad } return aa }; var I = F.selectors = { order: ["ID", "NAME", "TAG"], match: { ID: /#((?:[\w\u00c0-\uFFFF_-]|\\.)+)/, CLASS: /\.((?:[\w\u00c0-\uFFFF_-]|\\.)+)/, NAME: /\[name=['"]*((?:[\w\u00c0-\uFFFF_-]|\\.)+)['"]*\]/, ATTR: /\[\s*((?:[\w\u00c0-\uFFFF_-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/, TAG: /^((?:[\w\u00c0-\uFFFF\*_-]|\\.)+)/, CHILD: /:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/, POS: /:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/, PSEUDO: /:((?:[\w\u00c0-\uFFFF_-]|\\.)+)(?:\((['"]*)((?:\([^\)]+\)|[^\2\(\)]*)+)\2\))?/ }, attrMap: { "class": "className", "for": "htmlFor" }, attrHandle: { href: function(T) { return T.getAttribute("href") } }, relative: { "+": function(aa, T, Z) { var X = typeof T === "string", ab = X && !/\W/.test(T), Y = X && !ab; if (ab && !Z) { T = T.toUpperCase() } for (var W = 0, V = aa.length, U; W < V; W++) { if ((U = aa[W])) { while ((U = U.previousSibling) && U.nodeType !== 1) { } aa[W] = Y || U && U.nodeName === T ? U || false : U === T } } if (Y) { F.filter(T, aa, true) } }, ">": function(Z, U, aa) { var X = typeof U === "string"; if (X && !/\W/.test(U)) { U = aa ? U : U.toUpperCase(); for (var V = 0, T = Z.length; V < T; V++) { var Y = Z[V]; if (Y) { var W = Y.parentNode; Z[V] = W.nodeName === U ? W : false } } } else { for (var V = 0, T = Z.length; V < T; V++) { var Y = Z[V]; if (Y) { Z[V] = X ? Y.parentNode : Y.parentNode === U } } if (X) { F.filter(U, Z, true) } } }, "": function(W, U, Y) { var V = L++, T = S; if (!U.match(/\W/)) { var X = U = Y ? U : U.toUpperCase(); T = P } T("parentNode", U, V, W, X, Y) }, "~": function(W, U, Y) { var V = L++, T = S; if (typeof U === "string" && !U.match(/\W/)) { var X = U = Y ? U : U.toUpperCase(); T = P } T("previousSibling", U, V, W, X, Y) } }, find: { ID: function(U, V, W) { if (typeof V.getElementById !== "undefined" && !W) { var T = V.getElementById(U[1]); return T ? [T] : [] } }, NAME: function(V, Y, Z) { if (typeof Y.getElementsByName !== "undefined") { var U = [], X = Y.getElementsByName(V[1]); for (var W = 0, T = X.length; W < T; W++) { if (X[W].getAttribute("name") === V[1]) { U.push(X[W]) } } return U.length === 0 ? null : U } }, TAG: function(T, U) { return U.getElementsByTagName(T[1]) } }, preFilter: { CLASS: function(W, U, V, T, Z, aa) { W = " " + W[1].replace(/\\/g, "") + " "; if (aa) { return W } for (var X = 0, Y; (Y = U[X]) != null; X++) { if (Y) { if (Z ^ (Y.className && (" " + Y.className + " ").indexOf(W) >= 0)) { if (!V) { T.push(Y) } } else { if (V) { U[X] = false } } } } return false }, ID: function(T) { return T[1].replace(/\\/g, "") }, TAG: function(U, T) { for (var V = 0; T[V] === false; V++) { } return T[V] && Q(T[V]) ? U[1] : U[1].toUpperCase() }, CHILD: function(T) { if (T[1] == "nth") { var U = /(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2] == "even" && "2n" || T[2] == "odd" && "2n+1" || !/\D/.test(T[2]) && "0n+" + T[2] || T[2]); T[2] = (U[1] + (U[2] || 1)) - 0; T[3] = U[3] - 0 } T[0] = L++; return T }, ATTR: function(X, U, V, T, Y, Z) { var W = X[1].replace(/\\/g, ""); if (!Z && I.attrMap[W]) { X[1] = I.attrMap[W] } if (X[2] === "~=") { X[4] = " " + X[4] + " " } return X }, PSEUDO: function(X, U, V, T, Y) { if (X[1] === "not") { if (X[3].match(R).length > 1 || /^\w/.test(X[3])) { X[3] = F(X[3], null, null, U) } else { var W = F.filter(X[3], U, V, true ^ Y); if (!V) { T.push.apply(T, W) } return false } } else { if (I.match.POS.test(X[0]) || I.match.CHILD.test(X[0])) { return true } } return X }, POS: function(T) { T.unshift(true); return T } }, filters: { enabled: function(T) { return T.disabled === false && T.type !== "hidden" }, disabled: function(T) { return T.disabled === true }, checked: function(T) { return T.checked === true }, selected: function(T) { T.parentNode.selectedIndex; return T.selected === true }, parent: function(T) { return !!T.firstChild }, empty: function(T) { return !T.firstChild }, has: function(V, U, T) { return !!F(T[3], V).length }, header: function(T) { return /h\d/i.test(T.nodeName) }, text: function(T) { return "text" === T.type }, radio: function(T) { return "radio" === T.type }, checkbox: function(T) { return "checkbox" === T.type }, file: function(T) { return "file" === T.type }, password: function(T) { return "password" === T.type }, submit: function(T) { return "submit" === T.type }, image: function(T) { return "image" === T.type }, reset: function(T) { return "reset" === T.type }, button: function(T) { return "button" === T.type || T.nodeName.toUpperCase() === "BUTTON" }, input: function(T) { return /input|select|textarea|button/i.test(T.nodeName) } }, setFilters: { first: function(U, T) { return T === 0 }, last: function(V, U, T, W) { return U === W.length - 1 }, even: function(U, T) { return T % 2 === 0 }, odd: function(U, T) { return T % 2 === 1 }, lt: function(V, U, T) { return U < T[3] - 0 }, gt: function(V, U, T) { return U > T[3] - 0 }, nth: function(V, U, T) { return T[3] - 0 == U }, eq: function(V, U, T) { return T[3] - 0 == U } }, filter: { PSEUDO: function(Z, V, W, aa) { var U = V[1], X = I.filters[U]; if (X) { return X(Z, W, V, aa) } else { if (U === "contains") { return (Z.textContent || Z.innerText || "").indexOf(V[3]) >= 0 } else { if (U === "not") { var Y = V[3]; for (var W = 0, T = Y.length; W < T; W++) { if (Y[W] === Z) { return false } } return true } } } }, CHILD: function(T, W) { var Z = W[1], U = T; switch (Z) { case "only": case "first": while (U = U.previousSibling) { if (U.nodeType === 1) { return false } } if (Z == "first") { return true } U = T; case "last": while (U = U.nextSibling) { if (U.nodeType === 1) { return false } } return true; case "nth": var V = W[2], ac = W[3]; if (V == 1 && ac == 0) { return true } var Y = W[0], ab = T.parentNode; if (ab && (ab.sizcache !== Y || !T.nodeIndex)) { var X = 0; for (U = ab.firstChild; U; U = U.nextSibling) { if (U.nodeType === 1) { U.nodeIndex = ++X } } ab.sizcache = Y } var aa = T.nodeIndex - ac; if (V == 0) { return aa == 0 } else { return (aa % V == 0 && aa / V >= 0) } } }, ID: function(U, T) { return U.nodeType === 1 && U.getAttribute("id") === T }, TAG: function(U, T) { return (T === "*" && U.nodeType === 1) || U.nodeName === T }, CLASS: function(U, T) { return (" " + (U.className || U.getAttribute("class")) + " ").indexOf(T) > -1 }, ATTR: function(Y, W) { var V = W[1], T = I.attrHandle[V] ? I.attrHandle[V](Y) : Y[V] != null ? Y[V] : Y.getAttribute(V), Z = T + "", X = W[2], U = W[4]; return T == null ? X === "!=" : X === "=" ? Z === U : X === "*=" ? Z.indexOf(U) >= 0 : X === "~=" ? (" " + Z + " ").indexOf(U) >= 0 : !U ? Z && T !== false : X === "!=" ? Z != U : X === "^=" ? Z.indexOf(U) === 0 : X === "$=" ? Z.substr(Z.length - U.length) === U : X === "|=" ? Z === U || Z.substr(0, U.length + 1) === U + "-" : false }, POS: function(X, U, V, Y) { var T = U[2], W = I.setFilters[T]; if (W) { return W(X, V, U, Y) } } } }; var M = I.match.POS; for (var O in I.match) { I.match[O] = RegExp(I.match[O].source + /(?![^\[]*\])(?![^\(]*\))/.source) } var E = function(U, T) { U = Array.prototype.slice.call(U); if (T) { T.push.apply(T, U); return T } return U }; try { Array.prototype.slice.call(document.documentElement.childNodes) } catch (N) { E = function(X, W) { var U = W || []; if (H.call(X) === "[object Array]") { Array.prototype.push.apply(U, X) } else { if (typeof X.length === "number") { for (var V = 0, T = X.length; V < T; V++) { U.push(X[V]) } } else { for (var V = 0; X[V]; V++) { U.push(X[V]) } } } return U } } var G; if (document.documentElement.compareDocumentPosition) { G = function(U, T) { var V = U.compareDocumentPosition(T) & 4 ? -1 : U === T ? 0 : 1; if (V === 0) { hasDuplicate = true } return V } } else { if ("sourceIndex" in document.documentElement) { G = function(U, T) { var V = U.sourceIndex - T.sourceIndex; if (V === 0) { hasDuplicate = true } return V } } else { if (document.createRange) { G = function(W, U) { var V = W.ownerDocument.createRange(), T = U.ownerDocument.createRange(); V.selectNode(W); V.collapse(true); T.selectNode(U); T.collapse(true); var X = V.compareBoundaryPoints(Range.START_TO_END, T); if (X === 0) { hasDuplicate = true } return X } } } } (function() { var U = document.createElement("form"), V = "script" + (new Date).getTime(); U.innerHTML = "<input name='" + V + "'/>"; var T = document.documentElement; T.insertBefore(U, T.firstChild); if (!!document.getElementById(V)) { I.find.ID = function(X, Y, Z) { if (typeof Y.getElementById !== "undefined" && !Z) { var W = Y.getElementById(X[1]); return W ? W.id === X[1] || typeof W.getAttributeNode !== "undefined" && W.getAttributeNode("id").nodeValue === X[1] ? [W] : g : [] } }; I.filter.ID = function(Y, W) { var X = typeof Y.getAttributeNode !== "undefined" && Y.getAttributeNode("id"); return Y.nodeType === 1 && X && X.nodeValue === W } } T.removeChild(U) })(); (function() { var T = document.createElement("div"); T.appendChild(document.createComment("")); if (T.getElementsByTagName("*").length > 0) { I.find.TAG = function(U, Y) { var X = Y.getElementsByTagName(U[1]); if (U[1] === "*") { var W = []; for (var V = 0; X[V]; V++) { if (X[V].nodeType === 1) { W.push(X[V]) } } X = W } return X } } T.innerHTML = "<a href='#'></a>"; if (T.firstChild && typeof T.firstChild.getAttribute !== "undefined" && T.firstChild.getAttribute("href") !== "#") { I.attrHandle.href = function(U) { return U.getAttribute("href", 2) } } })(); if (document.querySelectorAll) { (function() { var T = F, U = document.createElement("div"); U.innerHTML = "<p class='TEST'></p>"; if (U.querySelectorAll && U.querySelectorAll(".TEST").length === 0) { return } F = function(Y, X, V, W) { X = X || document; if (!W && X.nodeType === 9 && !Q(X)) { try { return E(X.querySelectorAll(Y), V) } catch (Z) { } } return T(Y, X, V, W) }; F.find = T.find; F.filter = T.filter; F.selectors = T.selectors; F.matches = T.matches })() } if (document.getElementsByClassName && document.documentElement.getElementsByClassName) { (function() { var T = document.createElement("div"); T.innerHTML = "<div class='test e'></div><div class='test'></div>"; if (T.getElementsByClassName("e").length === 0) { return } T.lastChild.className = "e"; if (T.getElementsByClassName("e").length === 1) { return } I.order.splice(1, 0, "CLASS"); I.find.CLASS = function(U, V, W) { if (typeof V.getElementsByClassName !== "undefined" && !W) { return V.getElementsByClassName(U[1]) } } })() } function P(U, Z, Y, ad, aa, ac) { var ab = U == "previousSibling" && !ac; for (var W = 0, V = ad.length; W < V; W++) { var T = ad[W]; if (T) { if (ab && T.nodeType === 1) { T.sizcache = Y; T.sizset = W } T = T[U]; var X = false; while (T) { if (T.sizcache === Y) { X = ad[T.sizset]; break } if (T.nodeType === 1 && !ac) { T.sizcache = Y; T.sizset = W } if (T.nodeName === Z) { X = T; break } T = T[U] } ad[W] = X } } } function S(U, Z, Y, ad, aa, ac) { var ab = U == "previousSibling" && !ac; for (var W = 0, V = ad.length; W < V; W++) { var T = ad[W]; if (T) { if (ab && T.nodeType === 1) { T.sizcache = Y; T.sizset = W } T = T[U]; var X = false; while (T) { if (T.sizcache === Y) { X = ad[T.sizset]; break } if (T.nodeType === 1) { if (!ac) { T.sizcache = Y; T.sizset = W } if (typeof Z !== "string") { if (T === Z) { X = true; break } } else { if (F.filter(Z, [T]).length > 0) { X = T; break } } } T = T[U] } ad[W] = X } } } var K = document.compareDocumentPosition ? function(U, T) { return U.compareDocumentPosition(T) & 16 } : function(U, T) { return U !== T && (U.contains ? U.contains(T) : true) }; var Q = function(T) { return T.nodeType === 9 && T.documentElement.nodeName !== "HTML" || !!T.ownerDocument && Q(T.ownerDocument) }; var J = function(T, aa) { var W = [], X = "", Y, V = aa.nodeType ? [aa] : aa; while ((Y = I.match.PSEUDO.exec(T))) { X += Y[0]; T = T.replace(I.match.PSEUDO, "") } T = I.relative[T] ? T + "*" : T; for (var Z = 0, U = V.length; Z < U; Z++) { F(T, V[Z], W) } return F.filter(X, W) }; o.find = F; o.filter = F.filter; o.expr = F.selectors; o.expr[":"] = o.expr.filters; F.selectors.filters.hidden = function(T) { return T.offsetWidth === 0 || T.offsetHeight === 0 }; F.selectors.filters.visible = function(T) { return T.offsetWidth > 0 || T.offsetHeight > 0 }; F.selectors.filters.animated = function(T) { return o.grep(o.timers, function(U) { return T === U.elem }).length }; o.multiFilter = function(V, T, U) { if (U) { V = ":not(" + V + ")" } return F.matches(V, T) }; o.dir = function(V, U) { var T = [], W = V[U]; while (W && W != document) { if (W.nodeType == 1) { T.push(W) } W = W[U] } return T }; o.nth = function(X, T, V, W) { T = T || 1; var U = 0; for (; X; X = X[V]) { if (X.nodeType == 1 && ++U == T) { break } } return X }; o.sibling = function(V, U) { var T = []; for (; V; V = V.nextSibling) { if (V.nodeType == 1 && V != U) { T.push(V) } } return T }; return; l.Sizzle = F })(); o.event = { add: function(I, F, H, K) { if (I.nodeType == 3 || I.nodeType == 8) { return } if (I.setInterval && I != l) { I = l } if (!H.guid) { H.guid = this.guid++ } if (K !== g) { var G = H; H = this.proxy(G); H.data = K } var E = o.data(I, "events") || o.data(I, "events", {}), J = o.data(I, "handle") || o.data(I, "handle", function() { return typeof o !== "undefined" && !o.event.triggered ? o.event.handle.apply(arguments.callee.elem, arguments) : g }); J.elem = I; o.each(F.split(/\s+/), function(M, N) { var O = N.split("."); N = O.shift(); H.type = O.slice().sort().join("."); var L = E[N]; if (o.event.specialAll[N]) { o.event.specialAll[N].setup.call(I, K, O) } if (!L) { L = E[N] = {}; if (!o.event.special[N] || o.event.special[N].setup.call(I, K, O) === false) { if (I.addEventListener) { I.addEventListener(N, J, false) } else { if (I.attachEvent) { I.attachEvent("on" + N, J) } } } } L[H.guid] = H; o.event.global[N] = true }); I = null }, guid: 1, global: {}, remove: function(K, H, J) { if (K.nodeType == 3 || K.nodeType == 8) { return } var G = o.data(K, "events"), F, E; if (G) { if (H === g || (typeof H === "string" && H.charAt(0) == ".")) { for (var I in G) { this.remove(K, I + (H || "")) } } else { if (H.type) { J = H.handler; H = H.type } o.each(H.split(/\s+/), function(M, O) { var Q = O.split("."); O = Q.shift(); var N = RegExp("(^|\\.)" + Q.slice().sort().join(".*\\.") + "(\\.|$)"); if (G[O]) { if (J) { delete G[O][J.guid] } else { for (var P in G[O]) { if (N.test(G[O][P].type)) { delete G[O][P] } } } if (o.event.specialAll[O]) { o.event.specialAll[O].teardown.call(K, Q) } for (F in G[O]) { break } if (!F) { if (!o.event.special[O] || o.event.special[O].teardown.call(K, Q) === false) { if (K.removeEventListener) { K.removeEventListener(O, o.data(K, "handle"), false) } else { if (K.detachEvent) { K.detachEvent("on" + O, o.data(K, "handle")) } } } F = null; delete G[O] } } }) } for (F in G) { break } if (!F) { var L = o.data(K, "handle"); if (L) { L.elem = null } o.removeData(K, "events"); o.removeData(K, "handle") } } }, trigger: function(I, K, H, E) { var G = I.type || I; if (!E) { I = typeof I === "object" ? I[h] ? I : o.extend(o.Event(G), I) : o.Event(G); if (G.indexOf("!") >= 0) { I.type = G = G.slice(0, -1); I.exclusive = true } if (!H) { I.stopPropagation(); if (this.global[G]) { o.each(o.cache, function() { if (this.events && this.events[G]) { o.event.trigger(I, K, this.handle.elem) } }) } } if (!H || H.nodeType == 3 || H.nodeType == 8) { return g } I.result = g; I.target = H; K = o.makeArray(K); K.unshift(I) } I.currentTarget = H; var J = o.data(H, "handle"); if (J) { J.apply(H, K) } if ((!H[G] || (o.nodeName(H, "a") && G == "click")) && H["on" + G] && H["on" + G].apply(H, K) === false) { I.result = false } if (!E && H[G] && !I.isDefaultPrevented() && !(o.nodeName(H, "a") && G == "click")) { this.triggered = true; try { H[G]() } catch (L) { } } this.triggered = false; if (!I.isPropagationStopped()) { var F = H.parentNode || H.ownerDocument; if (F) { o.event.trigger(I, K, F, true) } } }, handle: function(K) { var J, E; K = arguments[0] = o.event.fix(K || l.event); K.currentTarget = this; var L = K.type.split("."); K.type = L.shift(); J = !L.length && !K.exclusive; var I = RegExp("(^|\\.)" + L.slice().sort().join(".*\\.") + "(\\.|$)"); E = (o.data(this, "events") || {})[K.type]; for (var G in E) { var H = E[G]; if (J || I.test(H.type)) { K.handler = H; K.data = H.data; var F = H.apply(this, arguments); if (F !== g) { K.result = F; if (F === false) { K.preventDefault(); K.stopPropagation() } } if (K.isImmediatePropagationStopped()) { break } } } }, props: "altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "), fix: function(H) { if (H[h]) { return H } var F = H; H = o.Event(F); for (var G = this.props.length, J; G; ) { J = this.props[--G]; H[J] = F[J] } if (!H.target) { H.target = H.srcElement || document } if (H.target.nodeType == 3) { H.target = H.target.parentNode } if (!H.relatedTarget && H.fromElement) { H.relatedTarget = H.fromElement == H.target ? H.toElement : H.fromElement } if (H.pageX == null && H.clientX != null) { var I = document.documentElement, E = document.body; H.pageX = H.clientX + (I && I.scrollLeft || E && E.scrollLeft || 0) - (I.clientLeft || 0); H.pageY = H.clientY + (I && I.scrollTop || E && E.scrollTop || 0) - (I.clientTop || 0) } if (!H.which && ((H.charCode || H.charCode === 0) ? H.charCode : H.keyCode)) { H.which = H.charCode || H.keyCode } if (!H.metaKey && H.ctrlKey) { H.metaKey = H.ctrlKey } if (!H.which && H.button) { H.which = (H.button & 1 ? 1 : (H.button & 2 ? 3 : (H.button & 4 ? 2 : 0))) } return H }, proxy: function(F, E) { E = E || function() { return F.apply(this, arguments) }; E.guid = F.guid = F.guid || E.guid || this.guid++; return E }, special: { ready: { setup: B, teardown: function() { } } }, specialAll: { live: { setup: function(E, F) { o.event.add(this, F[0], c) }, teardown: function(G) { if (G.length) { var E = 0, F = RegExp("(^|\\.)" + G[0] + "(\\.|$)"); o.each((o.data(this, "events").live || {}), function() { if (F.test(this.type)) { E++ } }); if (E < 1) { o.event.remove(this, G[0], c) } } } }} }; o.Event = function(E) { if (!this.preventDefault) { return new o.Event(E) } if (E && E.type) { this.originalEvent = E; this.type = E.type } else { this.type = E } this.timeStamp = e(); this[h] = true }; function k() { return false } function u() { return true } o.Event.prototype = { preventDefault: function() { this.isDefaultPrevented = u; var E = this.originalEvent; if (!E) { return } if (E.preventDefault) { E.preventDefault() } E.returnValue = false }, stopPropagation: function() { this.isPropagationStopped = u; var E = this.originalEvent; if (!E) { return } if (E.stopPropagation) { E.stopPropagation() } E.cancelBubble = true }, stopImmediatePropagation: function() { this.isImmediatePropagationStopped = u; this.stopPropagation() }, isDefaultPrevented: k, isPropagationStopped: k, isImmediatePropagationStopped: k }; var a = function(F) { var E = F.relatedTarget; while (E && E != this) { try { E = E.parentNode } catch (G) { E = this } } if (E != this) { F.type = F.data; o.event.handle.apply(this, arguments) } }; o.each({ mouseover: "mouseenter", mouseout: "mouseleave" }, function(F, E) { o.event.special[E] = { setup: function() { o.event.add(this, F, a, E) }, teardown: function() { o.event.remove(this, F, a) } } }); o.fn.extend({ bind: function(F, G, E) { return F == "unload" ? this.one(F, G, E) : this.each(function() { o.event.add(this, F, E || G, E && G) }) }, one: function(G, H, F) { var E = o.event.proxy(F || H, function(I) { o(this).unbind(I, E); return (F || H).apply(this, arguments) }); return this.each(function() { o.event.add(this, G, E, F && H) }) }, unbind: function(F, E) { return this.each(function() { o.event.remove(this, F, E) }) }, trigger: function(E, F) { return this.each(function() { o.event.trigger(E, F, this) }) }, triggerHandler: function(E, G) { if (this[0]) { var F = o.Event(E); F.preventDefault(); F.stopPropagation(); o.event.trigger(F, G, this[0]); return F.result } }, toggle: function(G) { var E = arguments, F = 1; while (F < E.length) { o.event.proxy(G, E[F++]) } return this.click(o.event.proxy(G, function(H) { this.lastToggle = (this.lastToggle || 0) % F; H.preventDefault(); return E[this.lastToggle++].apply(this, arguments) || false })) }, hover: function(E, F) { return this.mouseenter(E).mouseleave(F) }, ready: function(E) { B(); if (o.isReady) { E.call(document, o) } else { o.readyList.push(E) } return this }, live: function(G, F) { var E = o.event.proxy(F); E.guid += this.selector + G; o(document).bind(i(G, this.selector), this.selector, E); return this }, die: function(F, E) { o(document).unbind(i(F, this.selector), E ? { guid: E.guid + this.selector + F} : null); return this } }); function c(H) { var E = RegExp("(^|\\.)" + H.type + "(\\.|$)"), G = true, F = []; o.each(o.data(this, "events").live || [], function(I, J) { if (E.test(J.type)) { var K = o(H.target).closest(J.data)[0]; if (K) { F.push({ elem: K, fn: J }) } } }); F.sort(function(J, I) { return o.data(J.elem, "closest") - o.data(I.elem, "closest") }); o.each(F, function() { if (this.fn.call(this.elem, H, this.fn.data) === false) { return (G = false) } }); return G } function i(F, E) { return ["live", F, E.replace(/\./g, "`").replace(/ /g, "|")].join(".") } o.extend({ isReady: false, readyList: [], ready: function() { if (!o.isReady) { o.isReady = true; if (o.readyList) { o.each(o.readyList, function() { this.call(document, o) }); o.readyList = null } o(document).triggerHandler("ready") } } }); var x = false; function B() { if (x) { return } x = true; if (document.addEventListener) { document.addEventListener("DOMContentLoaded", function() { document.removeEventListener("DOMContentLoaded", arguments.callee, false); o.ready() }, false) } else { if (document.attachEvent) { document.attachEvent("onreadystatechange", function() { if (document.readyState === "complete") { document.detachEvent("onreadystatechange", arguments.callee); o.ready() } }); if (document.documentElement.doScroll && l == l.top) { (function() { if (o.isReady) { return } try { document.documentElement.doScroll("left") } catch (E) { setTimeout(arguments.callee, 0); return } o.ready() })() } } } o.event.add(l, "load", o.ready) } o.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","), function(F, E) { o.fn[E] = function(G) { return G ? this.bind(E, G) : this.trigger(E) } }); o(l).bind("unload", function() { for (var E in o.cache) { if (E != 1 && o.cache[E].handle) { o.event.remove(o.cache[E].handle.elem) } } }); (function() { o.support = {}; var F = document.documentElement, G = document.createElement("script"), K = document.createElement("div"), J = "script" + (new Date).getTime(); K.style.display = "none"; K.innerHTML = '  <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>'; var H = K.getElementsByTagName("*"), E = K.getElementsByTagName("a")[0]; if (!H || !H.length || !E) { return } o.support = { leadingWhitespace: K.firstChild.nodeType == 3, tbody: !K.getElementsByTagName("tbody").length, objectAll: !!K.getElementsByTagName("object")[0].getElementsByTagName("*").length, htmlSerialize: !!K.getElementsByTagName("link").length, style: /red/.test(E.getAttribute("style")), hrefNormalized: E.getAttribute("href") === "/a", opacity: E.style.opacity === "0.5", cssFloat: !!E.style.cssFloat, scriptEval: false, noCloneEvent: true, boxModel: null }; G.type = "text/javascript"; try { G.appendChild(document.createTextNode("window." + J + "=1;")) } catch (I) { } F.insertBefore(G, F.firstChild); if (l[J]) { o.support.scriptEval = true; delete l[J] } F.removeChild(G); if (K.attachEvent && K.fireEvent) { K.attachEvent("onclick", function() { o.support.noCloneEvent = false; K.detachEvent("onclick", arguments.callee) }); K.cloneNode(true).fireEvent("onclick") } o(function() { var L = document.createElement("div"); L.style.width = L.style.paddingLeft = "1px"; document.body.appendChild(L); o.boxModel = o.support.boxModel = L.offsetWidth === 2; document.body.removeChild(L).style.display = "none" }) })(); var w = o.support.cssFloat ? "cssFloat" : "styleFloat"; o.props = { "for": "htmlFor", "class": "className", "float": w, cssFloat: w, styleFloat: w, readonly: "readOnly", maxlength: "maxLength", cellspacing: "cellSpacing", rowspan: "rowSpan", tabindex: "tabIndex" }; o.fn.extend({ _load: o.fn.load, load: function(G, J, K) { if (typeof G !== "string") { return this._load(G) } var I = G.indexOf(" "); if (I >= 0) { var E = G.slice(I, G.length); G = G.slice(0, I) } var H = "GET"; if (J) { if (o.isFunction(J)) { K = J; J = null } else { if (typeof J === "object") { J = o.param(J); H = "POST" } } } var F = this; o.ajax({ url: G, type: H, dataType: "html", data: J, complete: function(M, L) { if (L == "success" || L == "notmodified") { F.html(E ? o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g, "")).find(E) : M.responseText) } if (K) { F.each(K, [M.responseText, L, M]) } } }); return this }, serialize: function() { return o.param(this.serializeArray()) }, serializeArray: function() { return this.map(function() { return this.elements ? o.makeArray(this.elements) : this }).filter(function() { return this.name && !this.disabled && (this.checked || /select|textarea/i.test(this.nodeName) || /text|hidden|password|search/i.test(this.type)) }).map(function(E, F) { var G = o(this).val(); return G == null ? null : o.isArray(G) ? o.map(G, function(I, H) { return { name: F.name, value: I} }) : { name: F.name, value: G} }).get() } }); o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","), function(E, F) { o.fn[F] = function(G) { return this.bind(F, G) } }); var r = e(); o.extend({ get: function(E, G, H, F) { if (o.isFunction(G)) { H = G; G = null } return o.ajax({ type: "GET", url: E, data: G, success: H, dataType: F }) }, getScript: function(E, F) { return o.get(E, null, F, "script") }, getJSON: function(E, F, G) { return o.get(E, F, G, "json") }, post: function(E, G, H, F) { if (o.isFunction(G)) { H = G; G = {} } return o.ajax({ type: "POST", url: E, data: G, success: H, dataType: F }) }, ajaxSetup: function(E) { o.extend(o.ajaxSettings, E) }, ajaxSettings: { url: location.href, global: true, type: "GET", contentType: "application/x-www-form-urlencoded", processData: true, async: true, xhr: function() { return l.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest() }, accepts: { xml: "application/xml, text/xml", html: "text/html", script: "text/javascript, application/javascript", json: "application/json, text/javascript", text: "text/plain", _default: "*/*"} }, lastModified: {}, ajax: function(M) { M = o.extend(true, M, o.extend(true, {}, o.ajaxSettings, M)); var W, F = /=\?(&|$)/g, R, V, G = M.type.toUpperCase(); if (M.data && M.processData && typeof M.data !== "string") { M.data = o.param(M.data) } if (M.dataType == "jsonp") { if (G == "GET") { if (!M.url.match(F)) { M.url += (M.url.match(/\?/) ? "&" : "?") + (M.jsonp || "callback") + "=?" } } else { if (!M.data || !M.data.match(F)) { M.data = (M.data ? M.data + "&" : "") + (M.jsonp || "callback") + "=?" } } M.dataType = "json" } if (M.dataType == "json" && (M.data && M.data.match(F) || M.url.match(F))) { W = "jsonp" + r++; if (M.data) { M.data = (M.data + "").replace(F, "=" + W + "$1") } M.url = M.url.replace(F, "=" + W + "$1"); M.dataType = "script"; l[W] = function(X) { V = X; I(); L(); l[W] = g; try { delete l[W] } catch (Y) { } if (H) { H.removeChild(T) } } } if (M.dataType == "script" && M.cache == null) { M.cache = false } if (M.cache === false && G == "GET") { var E = e(); var U = M.url.replace(/(\?|&)_=.*?(&|$)/, "$1_=" + E + "$2"); M.url = U + ((U == M.url) ? (M.url.match(/\?/) ? "&" : "?") + "_=" + E : "") } if (M.data && G == "GET") { M.url += (M.url.match(/\?/) ? "&" : "?") + M.data; M.data = null } if (M.global && !o.active++) { o.event.trigger("ajaxStart") } var Q = /^(\w+:)?\/\/([^\/?#]+)/.exec(M.url); if (M.dataType == "script" && G == "GET" && Q && (Q[1] && Q[1] != location.protocol || Q[2] != location.host)) { var H = document.getElementsByTagName("head")[0]; var T = document.createElement("script"); T.src = M.url; if (M.scriptCharset) { T.charset = M.scriptCharset } if (!W) { var O = false; T.onload = T.onreadystatechange = function() { if (!O && (!this.readyState || this.readyState == "loaded" || this.readyState == "complete")) { O = true; I(); L(); T.onload = T.onreadystatechange = null; H.removeChild(T) } } } H.appendChild(T); return g } var K = false; var J = M.xhr(); if (M.username) { J.open(G, M.url, M.async, M.username, M.password) } else { J.open(G, M.url, M.async) } try { if (M.data) { J.setRequestHeader("Content-Type", M.contentType) } if (M.ifModified) { J.setRequestHeader("If-Modified-Since", o.lastModified[M.url] || "Thu, 01 Jan 1970 00:00:00 GMT") } J.setRequestHeader("X-Requested-With", "XMLHttpRequest"); J.setRequestHeader("Accept", M.dataType && M.accepts[M.dataType] ? M.accepts[M.dataType] + ", */*" : M.accepts._default) } catch (S) { } if (M.beforeSend && M.beforeSend(J, M) === false) { if (M.global && ! --o.active) { o.event.trigger("ajaxStop") } J.abort(); return false } if (M.global) { o.event.trigger("ajaxSend", [J, M]) } var N = function(X) { if (J.readyState == 0) { if (P) { clearInterval(P); P = null; if (M.global && ! --o.active) { o.event.trigger("ajaxStop") } } } else { if (!K && J && (J.readyState == 4 || X == "timeout")) { K = true; if (P) { clearInterval(P); P = null } R = X == "timeout" ? "timeout" : !o.httpSuccess(J) ? "error" : M.ifModified && o.httpNotModified(J, M.url) ? "notmodified" : "success"; if (R == "success") { try { V = o.httpData(J, M.dataType, M) } catch (Z) { R = "parsererror" } } if (R == "success") { var Y; try { Y = J.getResponseHeader("Last-Modified") } catch (Z) { } if (M.ifModified && Y) { o.lastModified[M.url] = Y } if (!W) { I() } } else { o.handleError(M, J, R) } L(); if (X) { J.abort() } if (M.async) { J = null } } } }; if (M.async) { var P = setInterval(N, 13); if (M.timeout > 0) { setTimeout(function() { if (J && !K) { N("timeout") } }, M.timeout) } } try { J.send(M.data) } catch (S) { o.handleError(M, J, null, S) } if (!M.async) { N() } function I() { if (M.success) { M.success(V, R) } if (M.global) { o.event.trigger("ajaxSuccess", [J, M]) } } function L() { if (M.complete) { M.complete(J, R) } if (M.global) { o.event.trigger("ajaxComplete", [J, M]) } if (M.global && ! --o.active) { o.event.trigger("ajaxStop") } } return J }, handleError: function(F, H, E, G) { if (F.error) { F.error(H, E, G) } if (F.global) { o.event.trigger("ajaxError", [H, F, G]) } }, active: 0, httpSuccess: function(F) { try { return !F.status && location.protocol == "file:" || (F.status >= 200 && F.status < 300) || F.status == 304 || F.status == 1223 } catch (E) { } return false }, httpNotModified: function(G, E) { try { var H = G.getResponseHeader("Last-Modified"); return G.status == 304 || H == o.lastModified[E] } catch (F) { } return false }, httpData: function(J, H, G) { var F = J.getResponseHeader("content-type"), E = H == "xml" || !H && F && F.indexOf("xml") >= 0, I = E ? J.responseXML : J.responseText; if (E && I.documentElement.tagName == "parsererror") { throw "parsererror" } if (G && G.dataFilter) { I = G.dataFilter(I, H) } if (typeof I === "string") { if (H == "script") { o.globalEval(I) } if (H == "json") { I = l["eval"]("(" + I + ")") } } return I }, param: function(E) { var G = []; function H(I, J) { G[G.length] = encodeURIComponent(I) + "=" + encodeURIComponent(J) } if (o.isArray(E) || E.jquery) { o.each(E, function() { H(this.name, this.value) }) } else { for (var F in E) { if (o.isArray(E[F])) { o.each(E[F], function() { H(F, this) }) } else { H(F, o.isFunction(E[F]) ? E[F]() : E[F]) } } } return G.join("&").replace(/%20/g, "+") } }); var m = {}, n, d = [["height", "marginTop", "marginBottom", "paddingTop", "paddingBottom"], ["width", "marginLeft", "marginRight", "paddingLeft", "paddingRight"], ["opacity"]]; function t(F, E) { var G = {}; o.each(d.concat.apply([], d.slice(0, E)), function() { G[this] = F }); return G } o.fn.extend({ show: function(J, L) { if (J) { return this.animate(t("show", 3), J, L) } else { for (var H = 0, F = this.length; H < F; H++) { var E = o.data(this[H], "olddisplay"); this[H].style.display = E || ""; if (o.css(this[H], "display") === "none") { var G = this[H].tagName, K; if (m[G]) { K = m[G] } else { var I = o("<" + G + " />").appendTo("body"); K = I.css("display"); if (K === "none") { K = "block" } I.remove(); m[G] = K } o.data(this[H], "olddisplay", K) } } for (var H = 0, F = this.length; H < F; H++) { this[H].style.display = o.data(this[H], "olddisplay") || "" } return this } }, hide: function(H, I) { if (H) { return this.animate(t("hide", 3), H, I) } else { for (var G = 0, F = this.length; G < F; G++) { var E = o.data(this[G], "olddisplay"); if (!E && E !== "none") { o.data(this[G], "olddisplay", o.css(this[G], "display")) } } for (var G = 0, F = this.length; G < F; G++) { this[G].style.display = "none" } return this } }, _toggle: o.fn.toggle, toggle: function(G, F) { var E = typeof G === "boolean"; return o.isFunction(G) && o.isFunction(F) ? this._toggle.apply(this, arguments) : G == null || E ? this.each(function() { var H = E ? G : o(this).is(":hidden"); o(this)[H ? "show" : "hide"]() }) : this.animate(t("toggle", 3), G, F) }, fadeTo: function(E, G, F) { return this.animate({ opacity: G }, E, F) }, animate: function(I, F, H, G) { var E = o.speed(F, H, G); return this[E.queue === false ? "each" : "queue"](function() { var K = o.extend({}, E), M, L = this.nodeType == 1 && o(this).is(":hidden"), J = this; for (M in I) { if (I[M] == "hide" && L || I[M] == "show" && !L) { return K.complete.call(this) } if ((M == "height" || M == "width") && this.style) { K.display = o.css(this, "display"); K.overflow = this.style.overflow } } if (K.overflow != null) { this.style.overflow = "hidden" } K.curAnim = o.extend({}, I); o.each(I, function(O, S) { var R = new o.fx(J, K, O); if (/toggle|show|hide/.test(S)) { R[S == "toggle" ? L ? "show" : "hide" : S](I) } else { var Q = S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/), T = R.cur(true) || 0; if (Q) { var N = parseFloat(Q[2]), P = Q[3] || "px"; if (P != "px") { J.style[O] = (N || 1) + P; T = ((N || 1) / R.cur(true)) * T; J.style[O] = T + P } if (Q[1]) { N = ((Q[1] == "-=" ? -1 : 1) * N) + T } R.custom(T, N, P) } else { R.custom(T, S, "") } } }); return true }) }, stop: function(F, E) { var G = o.timers; if (F) { this.queue([]) } this.each(function() { for (var H = G.length - 1; H >= 0; H--) { if (G[H].elem == this) { if (E) { G[H](true) } G.splice(H, 1) } } }); if (!E) { this.dequeue() } return this } }); o.each({ slideDown: t("show", 1), slideUp: t("hide", 1), slideToggle: t("toggle", 1), fadeIn: { opacity: "show" }, fadeOut: { opacity: "hide"} }, function(E, F) { o.fn[E] = function(G, H) { return this.animate(F, G, H) } }); o.extend({ speed: function(G, H, F) { var E = typeof G === "object" ? G : { complete: F || !F && H || o.isFunction(G) && G, duration: G, easing: F && H || H && !o.isFunction(H) && H }; E.duration = o.fx.off ? 0 : typeof E.duration === "number" ? E.duration : o.fx.speeds[E.duration] || o.fx.speeds._default; E.old = E.complete; E.complete = function() { if (E.queue !== false) { o(this).dequeue() } if (o.isFunction(E.old)) { E.old.call(this) } }; return E }, easing: { linear: function(G, H, E, F) { return E + F * G }, swing: function(G, H, E, F) { return ((-Math.cos(G * Math.PI) / 2) + 0.5) * F + E } }, timers: [], fx: function(F, E, G) { this.options = E; this.elem = F; this.prop = G; if (!E.orig) { E.orig = {} } } }); o.fx.prototype = { update: function() { if (this.options.step) { this.options.step.call(this.elem, this.now, this) } (o.fx.step[this.prop] || o.fx.step._default)(this); if ((this.prop == "height" || this.prop == "width") && this.elem.style) { this.elem.style.display = "block" } }, cur: function(F) { if (this.elem[this.prop] != null && (!this.elem.style || this.elem.style[this.prop] == null)) { return this.elem[this.prop] } var E = parseFloat(o.css(this.elem, this.prop, F)); return E && E > -10000 ? E : parseFloat(o.curCSS(this.elem, this.prop)) || 0 }, custom: function(I, H, G) { this.startTime = e(); this.start = I; this.end = H; this.unit = G || this.unit || "px"; this.now = this.start; this.pos = this.state = 0; var E = this; function F(J) { return E.step(J) } F.elem = this.elem; if (F() && o.timers.push(F) && !n) { n = setInterval(function() { var K = o.timers; for (var J = 0; J < K.length; J++) { if (!K[J]()) { K.splice(J--, 1) } } if (!K.length) { clearInterval(n); n = g } }, 13) } }, show: function() { this.options.orig[this.prop] = o.attr(this.elem.style, this.prop); this.options.show = true; this.custom(this.prop == "width" || this.prop == "height" ? 1 : 0, this.cur()); o(this.elem).show() }, hide: function() { this.options.orig[this.prop] = o.attr(this.elem.style, this.prop); this.options.hide = true; this.custom(this.cur(), 0) }, step: function(H) { var G = e(); if (H || G >= this.options.duration + this.startTime) { this.now = this.end; this.pos = this.state = 1; this.update(); this.options.curAnim[this.prop] = true; var E = true; for (var F in this.options.curAnim) { if (this.options.curAnim[F] !== true) { E = false } } if (E) { if (this.options.display != null) { this.elem.style.overflow = this.options.overflow; this.elem.style.display = this.options.display; if (o.css(this.elem, "display") == "none") { this.elem.style.display = "block" } } if (this.options.hide) { o(this.elem).hide() } if (this.options.hide || this.options.show) { for (var I in this.options.curAnim) { o.attr(this.elem.style, I, this.options.orig[I]) } } this.options.complete.call(this.elem) } return false } else { var J = G - this.startTime; this.state = J / this.options.duration; this.pos = o.easing[this.options.easing || (o.easing.swing ? "swing" : "linear")](this.state, J, 0, 1, this.options.duration); this.now = this.start + ((this.end - this.start) * this.pos); this.update() } return true } }; o.extend(o.fx, { speeds: { slow: 600, fast: 200, _default: 400 }, step: { opacity: function(E) { o.attr(E.elem.style, "opacity", E.now) }, _default: function(E) { if (E.elem.style && E.elem.style[E.prop] != null) { E.elem.style[E.prop] = E.now + E.unit } else { E.elem[E.prop] = E.now } } } }); if (document.documentElement.getBoundingClientRect) { o.fn.offset = function() { if (!this[0]) { return { top: 0, left: 0} } if (this[0] === this[0].ownerDocument.body) { return o.offset.bodyOffset(this[0]) } var G = this[0].getBoundingClientRect(), J = this[0].ownerDocument, F = J.body, E = J.documentElement, L = E.clientTop || F.clientTop || 0, K = E.clientLeft || F.clientLeft || 0, I = G.top + (self.pageYOffset || o.boxModel && E.scrollTop || F.scrollTop) - L, H = G.left + (self.pageXOffset || o.boxModel && E.scrollLeft || F.scrollLeft) - K; return { top: I, left: H} } } else { o.fn.offset = function() { if (!this[0]) { return { top: 0, left: 0} } if (this[0] === this[0].ownerDocument.body) { return o.offset.bodyOffset(this[0]) } o.offset.initialized || o.offset.initialize(); var J = this[0], G = J.offsetParent, F = J, O = J.ownerDocument, M, H = O.documentElement, K = O.body, L = O.defaultView, E = L.getComputedStyle(J, null), N = J.offsetTop, I = J.offsetLeft; while ((J = J.parentNode) && J !== K && J !== H) { M = L.getComputedStyle(J, null); N -= J.scrollTop, I -= J.scrollLeft; if (J === G) { N += J.offsetTop, I += J.offsetLeft; if (o.offset.doesNotAddBorder && !(o.offset.doesAddBorderForTableAndCells && /^t(able|d|h)$/i.test(J.tagName))) { N += parseInt(M.borderTopWidth, 10) || 0, I += parseInt(M.borderLeftWidth, 10) || 0 } F = G, G = J.offsetParent } if (o.offset.subtractsBorderForOverflowNotVisible && M.overflow !== "visible") { N += parseInt(M.borderTopWidth, 10) || 0, I += parseInt(M.borderLeftWidth, 10) || 0 } E = M } if (E.position === "relative" || E.position === "static") { N += K.offsetTop, I += K.offsetLeft } if (E.position === "fixed") { N += Math.max(H.scrollTop, K.scrollTop), I += Math.max(H.scrollLeft, K.scrollLeft) } return { top: N, left: I} } } o.offset = { initialize: function() { if (this.initialized) { return } var L = document.body, F = document.createElement("div"), H, G, N, I, M, E, J = L.style.marginTop, K = '<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>'; M = { position: "absolute", top: 0, left: 0, margin: 0, border: 0, width: "1px", height: "1px", visibility: "hidden" }; for (E in M) { F.style[E] = M[E] } F.innerHTML = K; L.insertBefore(F, L.firstChild); H = F.firstChild, G = H.firstChild, I = H.nextSibling.firstChild.firstChild; this.doesNotAddBorder = (G.offsetTop !== 5); this.doesAddBorderForTableAndCells = (I.offsetTop === 5); H.style.overflow = "hidden", H.style.position = "relative"; this.subtractsBorderForOverflowNotVisible = (G.offsetTop === -5); L.style.marginTop = "1px"; this.doesNotIncludeMarginInBodyOffset = (L.offsetTop === 0); L.style.marginTop = J; L.removeChild(F); this.initialized = true }, bodyOffset: function(E) { o.offset.initialized || o.offset.initialize(); var G = E.offsetTop, F = E.offsetLeft; if (o.offset.doesNotIncludeMarginInBodyOffset) { G += parseInt(o.curCSS(E, "marginTop", true), 10) || 0, F += parseInt(o.curCSS(E, "marginLeft", true), 10) || 0 } return { top: G, left: F} } }; o.fn.extend({ position: function() { var I = 0, H = 0, F; if (this[0]) { var G = this.offsetParent(), J = this.offset(), E = /^body|html$/i.test(G[0].tagName) ? { top: 0, left: 0} : G.offset(); J.top -= j(this, "marginTop"); J.left -= j(this, "marginLeft"); E.top += j(G, "borderTopWidth"); E.left += j(G, "borderLeftWidth"); F = { top: J.top - E.top, left: J.left - E.left} } return F }, offsetParent: function() { var E = this[0].offsetParent || document.body; while (E && (!/^body|html$/i.test(E.tagName) && o.css(E, "position") == "static")) { E = E.offsetParent } return o(E) } }); o.each(["Left", "Top"], function(F, E) { var G = "scroll" + E; o.fn[G] = function(H) { if (!this[0]) { return null } return H !== g ? this.each(function() { this == l || this == document ? l.scrollTo(!F ? H : o(l).scrollLeft(), F ? H : o(l).scrollTop()) : this[G] = H }) : this[0] == l || this[0] == document ? self[F ? "pageYOffset" : "pageXOffset"] || o.boxModel && document.documentElement[G] || document.body[G] : this[0][G] } }); o.each(["Height", "Width"], function(I, G) { var E = I ? "Left" : "Top", H = I ? "Right" : "Bottom", F = G.toLowerCase(); o.fn["inner" + G] = function() { return this[0] ? o.css(this[0], F, false, "padding") : null }; o.fn["outer" + G] = function(K) { return this[0] ? o.css(this[0], F, false, K ? "margin" : "border") : null }; var J = G.toLowerCase(); o.fn[J] = function(K) { return this[0] == l ? document.compatMode == "CSS1Compat" && document.documentElement["client" + G] || document.body["client" + G] : this[0] == document ? Math.max(document.documentElement["client" + G], document.body["scroll" + G], document.documentElement["scroll" + G], document.body["offset" + G], document.documentElement["offset" + G]) : K === g ? (this.length ? o.css(this[0], J) : null) : this.css(J, typeof K === "string" ? K : K + "px") } })})();var $j = jQuery.noConflict();(function($) { var expr = (function() { var div = document.createElement('div'); try { div.style.setExpression('width', '0+0') } catch (e) { return false } return true })(); function sz(el, p) { return parseInt($.css(el, p)) || 0 }; function hex2(s) { var s = parseInt(s).toString(16); return (s.length < 2) ? '0' + s : s }; function gpc(node) { for (; node && node.nodeName.toLowerCase() != 'html'; node = node.parentNode) { var v = $.css(node, 'backgroundColor'); if (v.indexOf('rgb') >= 0) { if ($.browser.safari && v == 'rgba(0, 0, 0, 0)') continue; var rgb = v.match(/\d+/g); return '#' + hex2(rgb[0]) + hex2(rgb[1]) + hex2(rgb[2]) } if (v && v != 'transparent') return v } return '#ffffff' }; function getWidth(fx, i, width) { switch (fx) { case 'round': return Math.round(width * (1 - Math.cos(Math.asin(i / width)))); case 'cool': return Math.round(width * (1 + Math.cos(Math.asin(i / width)))); case 'sharp': return Math.round(width * (1 - Math.cos(Math.acos(i / width)))); case 'bite': return Math.round(width * (Math.cos(Math.asin((width - i - 1) / width)))); case 'slide': return Math.round(width * (Math.atan2(i, width / i))); case 'jut': return Math.round(width * (Math.atan2(width, (width - i - 1)))); case 'curl': return Math.round(width * (Math.atan(i))); case 'tear': return Math.round(width * (Math.cos(i))); case 'wicked': return Math.round(width * (Math.tan(i))); case 'long': return Math.round(width * (Math.sqrt(i))); case 'sculpt': return Math.round(width * (Math.log((width - i - 1), width))); case 'dog': return (i & 1) ? (i + 1) : width; case 'dog2': return (i & 2) ? (i + 1) : width; case 'dog3': return (i & 3) ? (i + 1) : width; case 'fray': return (i % 2) * width; case 'notch': return width; case 'bevel': return i + 1 } }; $.fn.corner = function(o) { if (this.length == 0) { if (!$.isReady && this.selector) { var s = this.selector, c = this.context; $(function() { $(s, c).corner(o) }) } return this } o = (o || "").toLowerCase(); var keep = /keep/.test(o); var cc = ((o.match(/cc:(#[0-9a-f]+)/) || [])[1]); var sc = ((o.match(/sc:(#[0-9a-f]+)/) || [])[1]); var width = parseInt((o.match(/(\d+)px/) || [])[1]) || 10; var re = /round|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dog/; var fx = ((o.match(re) || ['round'])[0]); var edges = { T: 0, B: 1 }; var opts = { TL: /top|tl/.test(o), TR: /top|tr/.test(o), BL: /bottom|bl/.test(o), BR: /bottom|br/.test(o) }; if (!opts.TL && !opts.TR && !opts.BL && !opts.BR) opts = { TL: 1, TR: 1, BL: 1, BR: 1 }; var strip = document.createElement('div'); strip.style.overflow = 'hidden'; strip.style.height = '1px'; strip.style.backgroundColor = sc || 'transparent'; strip.style.borderStyle = 'solid'; return this.each(function(index) { var pad = { T: parseInt($.css(this, 'paddingTop')) || 0, R: parseInt($.css(this, 'paddingRight')) || 0, B: parseInt($.css(this, 'paddingBottom')) || 0, L: parseInt($.css(this, 'paddingLeft')) || 0 }; if (typeof this.style.zoom != undefined) this.style.zoom = 1; if (!keep) this.style.border = 'none'; strip.style.borderColor = cc || gpc(this.parentNode); var cssHeight = $.curCSS(this, 'height'); for (var j in edges) { var bot = edges[j]; if ((bot && (opts.BL || opts.BR)) || (!bot && (opts.TL || opts.TR))) { strip.style.borderStyle = 'none ' + (opts[j + 'R'] ? 'solid' : 'none') + ' none ' + (opts[j + 'L'] ? 'solid' : 'none'); var d = document.createElement('div'); $(d).addClass('jquery-corner'); var ds = d.style; bot ? this.appendChild(d) : this.insertBefore(d, this.firstChild); if (bot && cssHeight != 'auto') { if ($.css(this, 'position') == 'static') this.style.position = 'relative'; ds.position = 'absolute'; ds.bottom = ds.left = ds.padding = ds.margin = '0'; if (expr) ds.setExpression('width', 'this.parentNode.offsetWidth'); else ds.width = '100%' } else if (!bot && $.browser.msie) { if ($.css(this, 'position') == 'static') this.style.position = 'relative'; ds.position = 'absolute'; ds.top = ds.left = ds.right = ds.padding = ds.margin = '0'; if (expr) { var bw = sz(this, 'borderLeftWidth') + sz(this, 'borderRightWidth'); ds.setExpression('width', 'this.parentNode.offsetWidth - ' + bw + '+ "px"') } else ds.width = '100%' } else { ds.margin = !bot ? '-' + pad.T + 'px -' + pad.R + 'px ' + (pad.T - width) + 'px -' + pad.L + 'px' : (pad.B - width) + 'px -' + pad.R + 'px -' + pad.B + 'px -' + pad.L + 'px' } for (var i = 0; i < width; i++) { var w = Math.max(0, getWidth(fx, i, width)); var e = strip.cloneNode(false); e.style.borderWidth = '0 ' + (opts[j + 'R'] ? w : 0) + 'px 0 ' + (opts[j + 'L'] ? w : 0) + 'px'; bot ? d.appendChild(e) : d.insertBefore(e, d.firstChild) } } } }) }; $.fn.uncorner = function() { $('div.jquery-corner', this).remove(); return this } })(jQuery);jQuery.ui || (function(c) { var i = c.fn.remove, d = c.browser.mozilla && (parseFloat(c.browser.version) < 1.9); c.ui = { version: "1.7.2", plugin: { add: function(k, l, n) { var m = c.ui[k].prototype; for (var j in n) { m.plugins[j] = m.plugins[j] || []; m.plugins[j].push([l, n[j]]) } }, call: function(j, l, k) { var n = j.plugins[l]; if (!n || !j.element[0].parentNode) { return } for (var m = 0; m < n.length; m++) { if (j.options[n[m][0]]) { n[m][1].apply(j.element, k) } } } }, contains: function(k, j) { return document.compareDocumentPosition ? k.compareDocumentPosition(j) & 16 : k !== j && k.contains(j) }, hasScroll: function(m, k) { if (c(m).css("overflow") == "hidden") { return false } var j = (k && k == "left") ? "scrollLeft" : "scrollTop", l = false; if (m[j] > 0) { return true } m[j] = 1; l = (m[j] > 0); m[j] = 0; return l }, isOverAxis: function(k, j, l) { return (k > j) && (k < (j + l)) }, isOver: function(o, k, n, m, j, l) { return c.ui.isOverAxis(o, n, j) && c.ui.isOverAxis(k, m, l) }, keyCode: { BACKSPACE: 8, CAPS_LOCK: 20, COMMA: 188, CONTROL: 17, DELETE: 46, DOWN: 40, END: 35, ENTER: 13, ESCAPE: 27, HOME: 36, INSERT: 45, LEFT: 37, NUMPAD_ADD: 107, NUMPAD_DECIMAL: 110, NUMPAD_DIVIDE: 111, NUMPAD_ENTER: 108, NUMPAD_MULTIPLY: 106, NUMPAD_SUBTRACT: 109, PAGE_DOWN: 34, PAGE_UP: 33, PERIOD: 190, RIGHT: 39, SHIFT: 16, SPACE: 32, TAB: 9, UP: 38} }; if (d) { var f = c.attr, e = c.fn.removeAttr, h = "http://www.w3.org/2005/07/aaa", a = /^aria-/, b = /^wairole:/; c.attr = function(k, j, l) { var m = l !== undefined; return (j == "role" ? (m ? f.call(this, k, j, "wairole:" + l) : (f.apply(this, arguments) || "").replace(b, "")) : (a.test(j) ? (m ? k.setAttributeNS(h, j.replace(a, "aaa:"), l) : f.call(this, k, j.replace(a, "aaa:"))) : f.apply(this, arguments))) }; c.fn.removeAttr = function(j) { return (a.test(j) ? this.each(function() { this.removeAttributeNS(h, j.replace(a, "")) }) : e.call(this, j)) } } c.fn.extend({ remove: function() { c("*", this).add(this).each(function() { c(this).triggerHandler("remove") }); return i.apply(this, arguments) }, enableSelection: function() { return this.attr("unselectable", "off").css("MozUserSelect", "").unbind("selectstart.ui") }, disableSelection: function() { return this.attr("unselectable", "on").css("MozUserSelect", "none").bind("selectstart.ui", function() { return false }) }, scrollParent: function() { var j; if ((c.browser.msie && (/(static|relative)/).test(this.css("position"))) || (/absolute/).test(this.css("position"))) { j = this.parents().filter(function() { return (/(relative|absolute|fixed)/).test(c.curCSS(this, "position", 1)) && (/(auto|scroll)/).test(c.curCSS(this, "overflow", 1) + c.curCSS(this, "overflow-y", 1) + c.curCSS(this, "overflow-x", 1)) }).eq(0) } else { j = this.parents().filter(function() { return (/(auto|scroll)/).test(c.curCSS(this, "overflow", 1) + c.curCSS(this, "overflow-y", 1) + c.curCSS(this, "overflow-x", 1)) }).eq(0) } return (/fixed/).test(this.css("position")) || !j.length ? c(document) : j } }); c.extend(c.expr[":"], { data: function(l, k, j) { return !!c.data(l, j[3]) }, focusable: function(k) { var l = k.nodeName.toLowerCase(), j = c.attr(k, "tabindex"); return (/input|select|textarea|button|object/.test(l) ? !k.disabled : "a" == l || "area" == l ? k.href || !isNaN(j) : !isNaN(j)) && !c(k)["area" == l ? "parents" : "closest"](":hidden").length }, tabbable: function(k) { var j = c.attr(k, "tabindex"); return (isNaN(j) || j >= 0) && c(k).is(":focusable") } }); function g(m, n, o, l) { function k(q) { var p = c[m][n][q] || []; return (typeof p == "string" ? p.split(/,?\s+/) : p) } var j = k("getter"); if (l.length == 1 && typeof l[0] == "string") { j = j.concat(k("getterSetter")) } return (c.inArray(o, j) != -1) } c.widget = function(k, j) { var l = k.split(".")[0]; k = k.split(".")[1]; c.fn[k] = function(p) { var n = (typeof p == "string"), o = Array.prototype.slice.call(arguments, 1); if (n && p.substring(0, 1) == "_") { return this } if (n && g(l, k, p, o)) { var m = c.data(this[0], k); return (m ? m[p].apply(m, o) : undefined) } return this.each(function() { var q = c.data(this, k); (!q && !n && c.data(this, k, new c[l][k](this, p))._init()); (q && n && c.isFunction(q[p]) && q[p].apply(q, o)) }) }; c[l] = c[l] || {}; c[l][k] = function(o, n) { var m = this; this.namespace = l; this.widgetName = k; this.widgetEventPrefix = c[l][k].eventPrefix || k; this.widgetBaseClass = l + "-" + k; this.options = c.extend({}, c.widget.defaults, c[l][k].defaults, c.metadata && c.metadata.get(o)[k], n); this.element = c(o).bind("setData." + k, function(q, p, r) { if (q.target == o) { return m._setData(p, r) } }).bind("getData." + k, function(q, p) { if (q.target == o) { return m._getData(p) } }).bind("remove", function() { return m.destroy() }) }; c[l][k].prototype = c.extend({}, c.widget.prototype, j); c[l][k].getterSetter = "option" }; c.widget.prototype = { _init: function() { }, destroy: function() { this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass + "-disabled " + this.namespace + "-state-disabled").removeAttr("aria-disabled") }, option: function(l, m) { var k = l, j = this; if (typeof l == "string") { if (m === undefined) { return this._getData(l) } k = {}; k[l] = m } c.each(k, function(n, o) { j._setData(n, o) }) }, _getData: function(j) { return this.options[j] }, _setData: function(j, k) { this.options[j] = k; if (j == "disabled") { this.element[k ? "addClass" : "removeClass"](this.widgetBaseClass + "-disabled " + this.namespace + "-state-disabled").attr("aria-disabled", k) } }, enable: function() { this._setData("disabled", false) }, disable: function() { this._setData("disabled", true) }, _trigger: function(l, m, n) { var p = this.options[l], j = (l == this.widgetEventPrefix ? l : this.widgetEventPrefix + l); m = c.Event(m); m.type = j; if (m.originalEvent) { for (var k = c.event.props.length, o; k; ) { o = c.event.props[--k]; m[o] = m.originalEvent[o] } } this.element.trigger(m, n); return !(c.isFunction(p) && p.call(this.element[0], m, n) === false || m.isDefaultPrevented()) } }; c.widget.defaults = { disabled: false }; c.ui.mouse = { _mouseInit: function() { var j = this; this.element.bind("mousedown." + this.widgetName, function(k) { return j._mouseDown(k) }).bind("click." + this.widgetName, function(k) { if (j._preventClickEvent) { j._preventClickEvent = false; k.stopImmediatePropagation(); return false } }); if (c.browser.msie) { this._mouseUnselectable = this.element.attr("unselectable"); this.element.attr("unselectable", "on") } this.started = false }, _mouseDestroy: function() { this.element.unbind("." + this.widgetName); (c.browser.msie && this.element.attr("unselectable", this._mouseUnselectable)) }, _mouseDown: function(l) { l.originalEvent = l.originalEvent || {}; if (l.originalEvent.mouseHandled) { return } (this._mouseStarted && this._mouseUp(l)); this._mouseDownEvent = l; var k = this, m = (l.which == 1), j = (typeof this.options.cancel == "string" ? c(l.target).parents().add(l.target).filter(this.options.cancel).length : false); if (!m || j || !this._mouseCapture(l)) { return true } this.mouseDelayMet = !this.options.delay; if (!this.mouseDelayMet) { this._mouseDelayTimer = setTimeout(function() { k.mouseDelayMet = true }, this.options.delay) } if (this._mouseDistanceMet(l) && this._mouseDelayMet(l)) { this._mouseStarted = (this._mouseStart(l) !== false); if (!this._mouseStarted) { l.preventDefault(); return true } } this._mouseMoveDelegate = function(n) { return k._mouseMove(n) }; this._mouseUpDelegate = function(n) { return k._mouseUp(n) }; c(document).bind("mousemove." + this.widgetName, this._mouseMoveDelegate).bind("mouseup." + this.widgetName, this._mouseUpDelegate); (c.browser.safari || l.preventDefault()); l.originalEvent.mouseHandled = true; return true }, _mouseMove: function(j) { if (c.browser.msie && !j.button) { return this._mouseUp(j) } if (this._mouseStarted) { this._mouseDrag(j); return j.preventDefault() } if (this._mouseDistanceMet(j) && this._mouseDelayMet(j)) { this._mouseStarted = (this._mouseStart(this._mouseDownEvent, j) !== false); (this._mouseStarted ? this._mouseDrag(j) : this._mouseUp(j)) } return !this._mouseStarted }, _mouseUp: function(j) { c(document).unbind("mousemove." + this.widgetName, this._mouseMoveDelegate).unbind("mouseup." + this.widgetName, this._mouseUpDelegate); if (this._mouseStarted) { this._mouseStarted = false; this._preventClickEvent = (j.target == this._mouseDownEvent.target); this._mouseStop(j) } return false }, _mouseDistanceMet: function(j) { return (Math.max(Math.abs(this._mouseDownEvent.pageX - j.pageX), Math.abs(this._mouseDownEvent.pageY - j.pageY)) >= this.options.distance) }, _mouseDelayMet: function(j) { return this.mouseDelayMet }, _mouseStart: function(j) { }, _mouseDrag: function(j) { }, _mouseStop: function(j) { }, _mouseCapture: function(j) { return true } }; c.ui.mouse.defaults = { cancel: null, distance: 1, delay: 0} })(jQuery); ;(function(a) { a.widget("ui.accordion", { _init: function() { var d = this.options, b = this; this.running = 0; if (d.collapsible == a.ui.accordion.defaults.collapsible && d.alwaysOpen != a.ui.accordion.defaults.alwaysOpen) { d.collapsible = !d.alwaysOpen } if (d.navigation) { var c = this.element.find("a").filter(d.navigationFilter); if (c.length) { if (c.filter(d.header).length) { this.active = c } else { this.active = c.parent().parent().prev(); c.addClass("ui-ac-content-active") } } } this.element.addClass("ui-ac ui-widget ui-helper-reset"); if (this.element[0].nodeName == "UL") { this.element.children("li").addClass("ui-ac-li-fix") } this.headers = this.element.find(d.header).addClass("ui-ac-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion", function() { a(this).addClass("ui-state-hover") }).bind("mouseleave.accordion", function() { a(this).removeClass("ui-state-hover") }).bind("focus.accordion", function() { a(this).addClass("ui-state-focus") }).bind("blur.accordion", function() { a(this).removeClass("ui-state-focus") }); this.headers.next().addClass("ui-ac-content ui-helper-reset ui-widget-content ui-corner-bottom"); this.active = this._findActive(this.active || d.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top"); this.active.next().addClass("ui-ac-content-active"); a("<span/>").addClass("ui-icon " + d.icons.header).prependTo(this.headers); this.active.find(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected); if (a.browser.msie) { this.element.find("a").css("zoom", "1") } this.resize(); this.element.attr("role", "tablist"); this.headers.attr("role", "tab").bind("keydown", function(e) { return b._keydown(e) }).next().attr("role", "tabpanel"); this.headers.not(this.active || "").attr("aria-expanded", "false").attr("tabIndex", "-1").next().hide(); if (!this.active.length) { this.headers.eq(0).attr("tabIndex", "0") } else { this.active.attr("aria-expanded", "true").attr("tabIndex", "0") } if (!a.browser.safari) { this.headers.find("a").attr("tabIndex", "-1") } if (d.event) { this.headers.bind((d.event) + ".accordion", function(e) { return b._clickHandler.call(b, e, this) }) } }, destroy: function() { var c = this.options; this.element.removeClass("ui-ac ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion"); this.headers.unbind(".accordion").removeClass("ui-ac-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex"); this.headers.find("a").removeAttr("tabindex"); this.headers.children(".ui-icon").remove(); var b = this.headers.next().css("display", "").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-ac-content ui-ac-content-active"); if (c.autoHeight || c.fillHeight) { b.css("height", "") } }, _setData: function(b, c) { if (b == "alwaysOpen") { b = "collapsible"; c = !c } a.widget.prototype._setData.apply(this, arguments) }, _keydown: function(e) { var g = this.options, f = a.ui.keyCode; if (g.disabled || e.altKey || e.ctrlKey) { return } var d = this.headers.length; var b = this.headers.index(e.target); var c = false; switch (e.keyCode) { case f.RIGHT: case f.DOWN: c = this.headers[(b + 1) % d]; break; case f.LEFT: case f.UP: c = this.headers[(b - 1 + d) % d]; break; case f.SPACE: case f.ENTER: return this._clickHandler({ target: e.target }, e.target) } if (c) { a(e.target).attr("tabIndex", "-1"); a(c).attr("tabIndex", "0"); c.focus(); return false } return true }, resize: function() { var e = this.options, d; if (e.fillSpace) { if (a.browser.msie) { var b = this.element.parent().css("overflow"); this.element.parent().css("overflow", "hidden") } d = this.element.parent().height(); if (a.browser.msie) { this.element.parent().css("overflow", b) } this.headers.each(function() { d -= a(this).outerHeight() }); var c = 0; this.headers.next().each(function() { c = Math.max(c, a(this).innerHeight() - a(this).height()) }).height(Math.max(0, d - c)).css("overflow", "auto") } else { if (e.autoHeight) { d = 0; this.headers.next().each(function() { d = Math.max(d, a(this).outerHeight()) }).height(d) } } }, activate: function(b) { var c = this._findActive(b)[0]; this._clickHandler({ target: c }, c) }, _findActive: function(b) { return b ? typeof b == "number" ? this.headers.filter(":eq(" + b + ")") : this.headers.not(this.headers.not(b)) : b === false ? a([]) : this.headers.filter(":eq(0)") }, _clickHandler: function(b, f) { var d = this.options; if (d.disabled) { return false } if (!b.target && d.collapsible) { this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header); this.active.next().addClass("ui-ac-content-active"); var h = this.active.next(), e = { options: d, newHeader: a([]), oldHeader: d.active, newContent: a([]), oldContent: h }, c = (this.active = a([])); this._toggle(c, h, e); return false } var g = a(b.currentTarget || f); var i = g[0] == this.active[0]; if (this.running || (!d.collapsible && i)) { return false } this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header); this.active.next().addClass("ui-ac-content-active"); if (!i) { g.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected); g.next().addClass("ui-ac-content-active") } var c = g.next(), h = this.active.next(), e = { options: d, newHeader: i && d.collapsible ? a([]) : g, oldHeader: this.active, newContent: i && d.collapsible ? a([]) : c.find("> *"), oldContent: h.find("> *") }, j = this.headers.index(this.active[0]) > this.headers.index(g[0]); this.active = i ? a([]) : g; this._toggle(c, h, e, i, j); return false }, _toggle: function(b, i, g, j, k) { var d = this.options, m = this; this.toShow = b; this.toHide = i; this.data = g; var c = function() { if (!m) { return } return m._completed.apply(m, arguments) }; this._trigger("changestart", null, this.data); this.running = i.size() === 0 ? b.size() : i.size(); if (d.animated) { var f = {}; if (d.collapsible && j) { f = { toShow: a([]), toHide: i, complete: c, down: k, autoHeight: d.autoHeight || d.fillSpace} } else { f = { toShow: b, toHide: i, complete: c, down: k, autoHeight: d.autoHeight || d.fillSpace} } if (!d.proxied) { d.proxied = d.animated } if (!d.proxiedDuration) { d.proxiedDuration = d.duration } d.animated = a.isFunction(d.proxied) ? d.proxied(f) : d.proxied; d.duration = a.isFunction(d.proxiedDuration) ? d.proxiedDuration(f) : d.proxiedDuration; var l = a.ui.accordion.animations, e = d.duration, h = d.animated; if (!l[h]) { l[h] = function(n) { this.slide(n, { easing: h, duration: e || 700 }) } } l[h](f) } else { if (d.collapsible && j) { b.toggle() } else { i.hide(); b.show() } c(true) } i.prev().attr("aria-expanded", "false").attr("tabIndex", "-1").blur(); b.prev().attr("aria-expanded", "true").attr("tabIndex", "0").focus() }, _completed: function(b) { var c = this.options; this.running = b ? 0 : --this.running; if (this.running) { return } if (c.clearStyle) { this.toShow.add(this.toHide).css({ height: "", overflow: "" }) } this._trigger("change", null, this.data) } }); a.extend(a.ui.accordion, { version: "1.7.2", defaults: { active: null, alwaysOpen: true, animated: "slide", autoHeight: true, clearStyle: false, collapsible: false, event: "click", fillSpace: false, header: "> li > :first-child,> :not(li):even", icons: { header: "ui-icon-triangle-1-e", headerSelected: "ui-icon-triangle-1-s" }, navigation: false, navigationFilter: function() { return this.href.toLowerCase() == location.href.toLowerCase() } }, animations: { slide: function(j, h) { j = a.extend({ easing: "swing", duration: 300 }, j, h); if (!j.toHide.size()) { j.toShow.animate({ height: "show" }, j); return } if (!j.toShow.size()) { j.toHide.animate({ height: "hide" }, j); return } var c = j.toShow.css("overflow"), g, d = {}, f = {}, e = ["height", "paddingTop", "paddingBottom"], b; var i = j.toShow; b = i[0].style.width; i.width(parseInt(i.parent().width(), 10) - parseInt(i.css("paddingLeft"), 10) - parseInt(i.css("paddingRight"), 10) - (parseInt(i.css("borderLeftWidth"), 10) || 0) - (parseInt(i.css("borderRightWidth"), 10) || 0)); a.each(e, function(k, m) { f[m] = "hide"; var l = ("" + a.css(j.toShow[0], m)).match(/^([\d+-.]+)(.*)$/); d[m] = { value: l[1], unit: l[2] || "px"} }); j.toShow.css({ height: 0, overflow: "hidden" }).show(); j.toHide.filter(":hidden").each(j.complete).end().filter(":visible").animate(f, { step: function(k, l) { if (l.prop == "height") { g = (l.now - l.start) / (l.end - l.start) } j.toShow[0].style[l.prop] = (g * d[l.prop].value) + d[l.prop].unit }, duration: j.duration, easing: j.easing, complete: function() { if (!j.autoHeight) { j.toShow.css("height", "") } j.toShow.css("width", b); j.toShow.css({ overflow: c }); j.complete() } }) }, bounceslide: function(b) { this.slide(b, { easing: b.down ? "easeOutBounce" : "swing", duration: b.down ? 1000 : 200 }) }, easeslide: function(b) { this.slide(b, { easing: "easeinout", duration: 700 }) } } }) })(jQuery);(function(a) { a.widget("ui.tabs", { _init: function() { if (this.options.deselectable !== undefined) { this.options.collapsible = this.options.deselectable } this._tabify(true) }, _setData: function(b, c) { if (b == "selected") { if (this.options.collapsible && c == this.options.selected) { return } this.select(c) } else { this.options[b] = c; if (b == "deselectable") { this.options.collapsible = c } this._tabify() } }, _tabId: function(b) { var id = b.title && b.title.replace(/\s/g, "_").replace(/[^A-Za-z0-9\-_:\.]/g, "") || this.options.idPrefix + a.data(b); if(id=='_'||id==' ') id=this.options.idPrefix + a.data(b);return id; }, _sanitizeSelector: function(b) { return b.replace(/:/g, "\\:") }, _cookie: function() { var b = this.cookie || (this.cookie = this.options.cookie.name || "ui-tabs-" + a.data(this.list[0])); return a.cookie.apply(null, [b].concat(a.makeArray(arguments))) }, _ui: function(c, b) { return { tab: c, panel: b, index: this.anchors.index(c)} }, _cleanup: function() { this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function() { var b = a(this); b.html(b.data("label.tabs")).removeData("label.tabs") }) }, _tabify: function(n) { this.list = this.element.children("ul:first"); this.lis = a("li:has(a[href])", this.list); this.anchors = this.lis.map(function() { return a("a", this)[0] }); this.panels = a([]); var p = this, d = this.options; var c = /^#.+/; this.anchors.each(function(r, o) { var q = a(o).attr("href"); var s = q.split("#")[0], u; if (s && (s === location.toString().split("#")[0] || (u = a("base")[0]) && s === u.href)) { q = o.hash; o.href = q } if (c.test(q)) { p.panels = p.panels.add(p._sanitizeSelector(q)) } else { if (q != "#") { a.data(o, "href.tabs", q); a.data(o, "load.tabs", q.replace(/#.*$/, "")); var w = p._tabId(o); o.href = "#" + w; var v = a("#" + w); if (!v.length) { v = a(d.panelTemplate).attr("id", w).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(p.panels[r - 1] || p.list); v.data("destroy.tabs", true) } p.panels = p.panels.add(v) } else { d.disabled.push(r) } } }); if (n) { this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all"); this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"); this.lis.addClass("ui-state-default ui-corner-top"); this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom"); if (d.selected === undefined) { if (location.hash) { this.anchors.each(function(q, o) { if (o.hash == location.hash) { d.selected = q; return false } }) } if (typeof d.selected != "number" && d.cookie) { d.selected = parseInt(p._cookie(), 10) } if (typeof d.selected != "number" && this.lis.filter(".ui-tabs-selected").length) { d.selected = this.lis.index(this.lis.filter(".ui-tabs-selected")) } d.selected = d.selected || 0 } else { if (d.selected === null) { d.selected = -1 } } d.selected = ((d.selected >= 0 && this.anchors[d.selected]) || d.selected < 0) ? d.selected : 0; d.disabled = a.unique(d.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"), function(q, o) { return p.lis.index(q) }))).sort(); if (a.inArray(d.selected, d.disabled) != -1) { d.disabled.splice(a.inArray(d.selected, d.disabled), 1) } this.panels.addClass("ui-tabs-hide"); this.lis.removeClass("ui-tabs-selected ui-state-active"); if (d.selected >= 0 && this.anchors.length) { this.panels.eq(d.selected).removeClass("ui-tabs-hide"); this.lis.eq(d.selected).addClass("ui-tabs-selected ui-state-active"); p.element.queue("tabs", function() { p._trigger("show", null, p._ui(p.anchors[d.selected], p.panels[d.selected])) }); this.load(d.selected) } a(window).bind("unload", function() { p.lis.add(p.anchors).unbind(".tabs"); p.lis = p.anchors = p.panels = null }) } else { d.selected = this.lis.index(this.lis.filter(".ui-tabs-selected")) } this.element[d.collapsible ? "addClass" : "removeClass"]("ui-tabs-collapsible"); if (d.cookie) { this._cookie(d.selected, d.cookie) } for (var g = 0, m; (m = this.lis[g]); g++) { a(m)[a.inArray(g, d.disabled) != -1 && !a(m).hasClass("ui-tabs-selected") ? "addClass" : "removeClass"]("ui-state-disabled") } if (d.cache === false) { this.anchors.removeData("cache.tabs") } this.lis.add(this.anchors).unbind(".tabs"); if (d.event != "mouseover") { var f = function(o, i) { if (i.is(":not(.ui-state-disabled)")) { i.addClass("ui-state-" + o) } }; var j = function(o, i) { i.removeClass("ui-state-" + o) }; this.lis.bind("mouseover.tabs", function() { f("hover", a(this)) }); this.lis.bind("mouseout.tabs", function() { j("hover", a(this)) }); this.anchors.bind("focus.tabs", function() { f("focus", a(this).closest("li")) }); this.anchors.bind("blur.tabs", function() { j("focus", a(this).closest("li")) }) } var b, h; if (d.fx) { if (a.isArray(d.fx)) { b = d.fx[0]; h = d.fx[1] } else { b = h = d.fx } } function e(i, o) { i.css({ display: "" }); if (a.browser.msie && o.opacity) { i[0].style.removeAttribute("filter") } } var k = h ? function(i, o) { a(i).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active"); o.hide().removeClass("ui-tabs-hide").animate(h, h.duration || "normal", function() { e(o, h); p._trigger("show", null, p._ui(i, o[0])) }) } : function(i, o) { a(i).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active"); o.removeClass("ui-tabs-hide"); p._trigger("show", null, p._ui(i, o[0])) }; var l = b ? function(o, i) { i.animate(b, b.duration || "normal", function() { p.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default"); i.addClass("ui-tabs-hide"); e(i, b); p.element.dequeue("tabs") }) } : function(o, i, q) { p.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default"); i.addClass("ui-tabs-hide"); p.element.dequeue("tabs") }; this.anchors.bind(d.event + ".tabs", function() { var o = this, r = a(this).closest("li"), i = p.panels.filter(":not(.ui-tabs-hide)"), q = a(p._sanitizeSelector(this.hash)); if ((r.hasClass("ui-tabs-selected") && !d.collapsible) || r.hasClass("ui-state-disabled") || r.hasClass("ui-state-processing") || p._trigger("select", null, p._ui(this, q[0])) === false) { this.blur(); return false } d.selected = p.anchors.index(this); p.abort(); if (d.collapsible) { if (r.hasClass("ui-tabs-selected")) { d.selected = -1; if (d.cookie) { p._cookie(d.selected, d.cookie) } p.element.queue("tabs", function() { l(o, i) }).dequeue("tabs"); this.blur(); return false } else { if (!i.length) { if (d.cookie) { p._cookie(d.selected, d.cookie) } p.element.queue("tabs", function() { k(o, q) }); p.load(p.anchors.index(this)); this.blur(); return false } } } if (d.cookie) { p._cookie(d.selected, d.cookie) } if (q.length) { if (i.length) { p.element.queue("tabs", function() { l(o, i) }) } p.element.queue("tabs", function() { k(o, q) }); p.load(p.anchors.index(this)) } else { throw "jQuery UI Tabs: Mismatching fragment identifier." } if (a.browser.msie) { this.blur() } }); this.anchors.bind("click.tabs", function() { return false }) }, destroy: function() { var b = this.options; this.abort(); this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs"); this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all"); this.anchors.each(function() { var c = a.data(this, "href.tabs"); if (c) { this.href = c } var d = a(this).unbind(".tabs"); a.each(["href", "load", "cache"], function(e, f) { d.removeData(f + ".tabs") }) }); this.lis.unbind(".tabs").add(this.panels).each(function() { if (a.data(this, "destroy.tabs")) { a(this).remove() } else { a(this).removeClass(["ui-state-default", "ui-corner-top", "ui-tabs-selected", "ui-state-active", "ui-state-hover", "ui-state-focus", "ui-state-disabled", "ui-tabs-panel", "ui-widget-content", "ui-corner-bottom", "ui-tabs-hide"].join(" ")) } }); if (b.cookie) { this._cookie(null, b.cookie) } }, add: function(e, d, c) { if (c === undefined) { c = this.anchors.length } var b = this, g = this.options, i = a(g.tabTemplate.replace(/#\{href\}/g, e).replace(/#\{label\}/g, d)), h = !e.indexOf("#") ? e.replace("#", "") : this._tabId(a("a", i)[0]); i.addClass("ui-state-default ui-corner-top").data("destroy.tabs", true); var f = a("#" + h); if (!f.length) { f = a(g.panelTemplate).attr("id", h).data("destroy.tabs", true) } f.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide"); if (c >= this.lis.length) { i.appendTo(this.list); f.appendTo(this.list[0].parentNode) } else { i.insertBefore(this.lis[c]); f.insertBefore(this.panels[c]) } g.disabled = a.map(g.disabled, function(k, j) { return k >= c ? ++k : k }); this._tabify(); if (this.anchors.length == 1) { i.addClass("ui-tabs-selected ui-state-active"); f.removeClass("ui-tabs-hide"); this.element.queue("tabs", function() { b._trigger("show", null, b._ui(b.anchors[0], b.panels[0])) }); this.load(0) } this._trigger("add", null, this._ui(this.anchors[c], this.panels[c])) }, remove: function(b) { var d = this.options, e = this.lis.eq(b).remove(), c = this.panels.eq(b).remove(); if (e.hasClass("ui-tabs-selected") && this.anchors.length > 1) { this.select(b + (b + 1 < this.anchors.length ? 1 : -1)) } d.disabled = a.map(a.grep(d.disabled, function(g, f) { return g != b }), function(g, f) { return g >= b ? --g : g }); this._tabify(); this._trigger("remove", null, this._ui(e.find("a")[0], c[0])) }, enable: function(b) { var c = this.options; if (a.inArray(b, c.disabled) == -1) { return } this.lis.eq(b).removeClass("ui-state-disabled"); c.disabled = a.grep(c.disabled, function(e, d) { return e != b }); this._trigger("enable", null, this._ui(this.anchors[b], this.panels[b])) }, disable: function(c) { var b = this, d = this.options; if (c != d.selected) { this.lis.eq(c).addClass("ui-state-disabled"); d.disabled.push(c); d.disabled.sort(); this._trigger("disable", null, this._ui(this.anchors[c], this.panels[c])) } }, select: function(b) { if (typeof b == "string") { b = this.anchors.index(this.anchors.filter("[href$=" + b + "]")) } else { if (b === null) { b = -1 } } if (b == -1 && this.options.collapsible) { b = this.options.selected } this.anchors.eq(b).trigger(this.options.event + ".tabs") }, load: function(e) { var c = this, g = this.options, b = this.anchors.eq(e)[0], d = a.data(b, "load.tabs"); this.abort(); if (!d || this.element.queue("tabs").length !== 0 && a.data(b, "cache.tabs")) { this.element.dequeue("tabs"); return } this.lis.eq(e).addClass("ui-state-processing"); if (g.spinner) { var f = a("span", b); f.data("label.tabs", f.html()).html(g.spinner) } this.xhr = a.ajax(a.extend({}, g.ajaxOptions, { url: d, success: function(i, h) { a(c._sanitizeSelector(b.hash)).html(i); c._cleanup(); if (g.cache) { a.data(b, "cache.tabs", true) } c._trigger("load", null, c._ui(c.anchors[e], c.panels[e])); try { g.ajaxOptions.success(i, h) } catch (j) { } c.element.dequeue("tabs") } })) }, abort: function() { this.element.queue([]); this.panels.stop(false, true); if (this.xhr) { this.xhr.abort(); delete this.xhr } this._cleanup() }, url: function(c, b) { this.anchors.eq(c).removeData("cache.tabs").data("load.tabs", b) }, length: function() { return this.anchors.length } }); a.extend(a.ui.tabs, { version: "1.7.2", getter: "length", defaults: { ajaxOptions: null, cache: false, cookie: null, collapsible: false, disabled: [], event: "click", fx: null, idPrefix: "ui-tabs-", panelTemplate: "<div></div>", spinner: "<em>Loading&#8230;</em>", tabTemplate: '<li><a href="#{href}"><span>#{label}</span></a></li>'} }); a.extend(a.ui.tabs.prototype, { rotation: null, rotate: function(d, f) { var b = this, g = this.options; var c = b._rotate || (b._rotate = function(h) { clearTimeout(b.rotation); b.rotation = setTimeout(function() { var i = g.selected; b.select(++i < b.anchors.length ? i : 0) }, d); if (h) { h.stopPropagation() } }); var e = b._unrotate || (b._unrotate = !f ? function(h) { if (h.clientX) { b.rotate(null) } } : function(h) { t = g.selected; c() }); if (d) { this.element.bind("tabsshow", c); this.anchors.bind(g.event + ".tabs", e); c() } else { clearTimeout(b.rotation); this.element.unbind("tabsshow", c); this.anchors.unbind(g.event + ".tabs", e); delete this._rotate; delete this._unrotate } } }) })(jQuery);;(function(c) { var b = { dragStart: "start.draggable", drag: "drag.draggable", dragStop: "stop.draggable", maxHeight: "maxHeight.resizable", minHeight: "minHeight.resizable", maxWidth: "maxWidth.resizable", minWidth: "minWidth.resizable", resizeStart: "start.resizable", resize: "drag.resizable", resizeStop: "stop.resizable" }, a = "ui-dialog ui-widget ui-widget-content ui-corner-all "; c.widget("ui.dialog", { _init: function() { this.originalTitle = this.element.attr("title"); var l = this, m = this.options, j = m.title || this.originalTitle || "&nbsp;", e = c.ui.dialog.getTitleId(this.element), k = (this.uiDialog = c("<div/>")).appendTo(document.body).hide().addClass(a + m.dialogClass).css({ position: "absolute", overflow: "hidden", zIndex: m.zIndex }).attr("tabIndex", -1).css("outline", 0).keydown(function(n) { (m.closeOnEscape && n.keyCode && n.keyCode == c.ui.keyCode.ESCAPE && l.close(n)) }).attr({ role: "dialog", "aria-labelledby": e }).mousedown(function(n) { l.moveToTop(false, n) }), g = this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(k), f = (this.uiDialogTitlebar = c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(k), i = c('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role", "button").hover(function() { i.addClass("ui-state-hover") }, function() { i.removeClass("ui-state-hover") }).focus(function() { i.addClass("ui-state-focus") }).blur(function() { i.removeClass("ui-state-focus") }).mousedown(function(n) { n.stopPropagation() }).click(function(n) { l.close(n); return false }).appendTo(f), h = (this.uiDialogTitlebarCloseText = c("<span/>")).addClass("ui-icon ui-icon-closethick").text(m.closeText).appendTo(i), d = c("<span/>").addClass("ui-dialog-title").attr("id", e).html(j).prependTo(f); f.find("*").add(f).disableSelection(); (m.draggable && c.fn.draggable && this._makeDraggable()); (m.resizable && c.fn.resizable && this._makeResizable()); this._createButtons(m.buttons); this._isOpen = false; (m.bgiframe && c.fn.bgiframe && k.bgiframe()); (m.autoOpen && this.open()) }, destroy: function() { (this.overlay && this.overlay.destroy()); this.uiDialog.hide(); this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body"); this.uiDialog.remove(); (this.originalTitle && this.element.attr("title", this.originalTitle)) }, close: function(f) { var d = this; if (false === d._trigger("beforeclose", f)) { return } (d.overlay && d.overlay.destroy()); d.uiDialog.unbind("keypress.ui-dialog"); (d.options.hide ? d.uiDialog.hide(d.options.hide, function() { d._trigger("close", f) }) : d.uiDialog.hide() && d._trigger("close", f)); c.ui.dialog.overlay.resize(); d._isOpen = false; if (d.options.modal) { var e = 0; c(".ui-dialog").each(function() { if (this != d.uiDialog[0]) { e = Math.max(e, c(this).css("z-index")) } }); c.ui.dialog.maxZ = e } }, isOpen: function() { return this._isOpen }, moveToTop: function(f, e) { if ((this.options.modal && !f) || (!this.options.stack && !this.options.modal)) { return this._trigger("focus", e) } if (this.options.zIndex > c.ui.dialog.maxZ) { c.ui.dialog.maxZ = this.options.zIndex } (this.overlay && this.overlay.$el.css("z-index", c.ui.dialog.overlay.maxZ = ++c.ui.dialog.maxZ)); var d = { scrollTop: this.element.attr("scrollTop"), scrollLeft: this.element.attr("scrollLeft") }; this.uiDialog.css("z-index", ++c.ui.dialog.maxZ); this.element.attr(d); this._trigger("focus", e) }, open: function() { if (this._isOpen) { return } var e = this.options, d = this.uiDialog; this.overlay = e.modal ? new c.ui.dialog.overlay(this) : null; (d.next().length && d.appendTo("body")); this._size(); this._position(e.position); d.show(e.show); this.moveToTop(true); (e.modal && d.bind("keypress.ui-dialog", function(h) { if (h.keyCode != c.ui.keyCode.TAB) { return } var g = c(":tabbable", this), i = g.filter(":first")[0], f = g.filter(":last")[0]; if (h.target == f && !h.shiftKey) { setTimeout(function() { i.focus() }, 1) } else { if (h.target == i && h.shiftKey) { setTimeout(function() { f.focus() }, 1) } } })); c([]).add(d.find(".ui-dialog-content :tabbable:first")).add(d.find(".ui-dialog-buttonpane :tabbable:first")).add(d).filter(":first").focus(); this._trigger("open"); this._isOpen = true }, _createButtons: function(g) { var f = this, d = false, e = c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"); this.uiDialog.find(".ui-dialog-buttonpane").remove(); (typeof g == "object" && g !== null && c.each(g, function() { return !(d = true) })); if (d) { c.each(g, function(h, i) { c('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(h).click(function() { i.apply(f.element[0], arguments) }).hover(function() { c(this).addClass("ui-state-hover") }, function() { c(this).removeClass("ui-state-hover") }).focus(function() { c(this).addClass("ui-state-focus") }).blur(function() { c(this).removeClass("ui-state-focus") }).appendTo(e) }); e.appendTo(this.uiDialog) } }, _makeDraggable: function() { var d = this, f = this.options, e; this.uiDialog.draggable({ cancel: ".ui-dialog-content", handle: ".ui-dialog-titlebar", containment: "document", start: function() { e = f.height; c(this).height(c(this).height()).addClass("ui-dialog-dragging"); (f.dragStart && f.dragStart.apply(d.element[0], arguments)) }, drag: function() { (f.drag && f.drag.apply(d.element[0], arguments)) }, stop: function() { c(this).removeClass("ui-dialog-dragging").height(e); (f.dragStop && f.dragStop.apply(d.element[0], arguments)); c.ui.dialog.overlay.resize() } }) }, _makeResizable: function(g) { g = (g === undefined ? this.options.resizable : g); var d = this, f = this.options, e = typeof g == "string" ? g : "n,e,s,w,se,sw,ne,nw"; this.uiDialog.resizable({ cancel: ".ui-dialog-content", alsoResize: this.element, maxWidth: f.maxWidth, maxHeight: f.maxHeight, minWidth: f.minWidth, minHeight: f.minHeight, start: function() { c(this).addClass("ui-dialog-resizing"); (f.resizeStart && f.resizeStart.apply(d.element[0], arguments)) }, resize: function() { (f.resize && f.resize.apply(d.element[0], arguments)) }, handles: e, stop: function() { c(this).removeClass("ui-dialog-resizing"); f.height = c(this).height(); f.width = c(this).width(); (f.resizeStop && f.resizeStop.apply(d.element[0], arguments)); c.ui.dialog.overlay.resize() } }).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se") }, _position: function(i) { var e = c(window), f = c(document), g = f.scrollTop(), d = f.scrollLeft(), h = g; if (c.inArray(i, ["center", "top", "right", "bottom", "left"]) >= 0) { i = [i == "right" || i == "left" ? i : "center", i == "top" || i == "bottom" ? i : "middle"] } if (i.constructor != Array) { i = ["center", "middle"] } if (i[0].constructor == Number) { d += i[0] } else { switch (i[0]) { case "left": d += 0; break; case "right": d += e.width() - this.uiDialog.outerWidth(); break; default: case "center": d += (e.width() - this.uiDialog.outerWidth()) / 2 } } if (i[1].constructor == Number) { g += i[1] } else { switch (i[1]) { case "top": g += 0; break; case "bottom": g += e.height() - this.uiDialog.outerHeight(); break; default: case "middle": g += (e.height() - this.uiDialog.outerHeight()) / 2 } } g = Math.max(g, h); this.uiDialog.css({ top: g, left: d }) }, _setData: function(e, f) { (b[e] && this.uiDialog.data(b[e], f)); switch (e) { case "buttons": this._createButtons(f); break; case "closeText": this.uiDialogTitlebarCloseText.text(f); break; case "dialogClass": this.uiDialog.removeClass(this.options.dialogClass).addClass(a + f); break; case "draggable": (f ? this._makeDraggable() : this.uiDialog.draggable("destroy")); break; case "height": this.uiDialog.height(f); break; case "position": this._position(f); break; case "resizable": var d = this.uiDialog, g = this.uiDialog.is(":data(resizable)"); (g && !f && d.resizable("destroy")); (g && typeof f == "string" && d.resizable("option", "handles", f)); (g || this._makeResizable(f)); break; case "title": c(".ui-dialog-title", this.uiDialogTitlebar).html(f || "&nbsp;"); break; case "width": this.uiDialog.width(f); break } c.widget.prototype._setData.apply(this, arguments) }, _size: function() { var e = this.options; this.element.css({ height: 0, minHeight: 0, width: "auto" }); var d = this.uiDialog.css({ height: "auto", width: e.width }).height(); this.element.css({ minHeight: Math.max(e.minHeight - d, 0), height: e.height == "auto" ? "auto" : Math.max(e.height - d, 0) }) } }); c.extend(c.ui.dialog, { version: "1.7.2", defaults: { autoOpen: true, bgiframe: false, buttons: {}, closeOnEscape: true, closeText: "close", dialogClass: "", draggable: true, hide: null, height: "auto", maxHeight: false, maxWidth: false, minHeight: 150, minWidth: 150, modal: false, position: "center", resizable: true, show: null, stack: true, title: "", width: 300, zIndex: 1000 }, getter: "isOpen", uuid: 0, maxZ: 0, getTitleId: function(d) { return "ui-dialog-title-" + (d.attr("id") || ++this.uuid) }, overlay: function(d) { this.$el = c.ui.dialog.overlay.create(d) } }); c.extend(c.ui.dialog.overlay, { instances: [], maxZ: 0, events: c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","), function(d) { return d + ".dialog-overlay" }).join(" "), create: function(e) { if (this.instances.length === 0) { setTimeout(function() { if (c.ui.dialog.overlay.instances.length) { c(document).bind(c.ui.dialog.overlay.events, function(f) { var g = c(f.target).parents(".ui-dialog").css("zIndex") || 0; return (g > c.ui.dialog.overlay.maxZ) }) } }, 1); c(document).bind("keydown.dialog-overlay", function(f) { (e.options.closeOnEscape && f.keyCode && f.keyCode == c.ui.keyCode.ESCAPE && e.close(f)) }); c(window).bind("resize.dialog-overlay", c.ui.dialog.overlay.resize) } var d = c("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({ width: this.width(), height: this.height() }); (e.options.bgiframe && c.fn.bgiframe && d.bgiframe()); this.instances.push(d); return d }, destroy: function(d) { this.instances.splice(c.inArray(this.instances, d), 1); if (this.instances.length === 0) { c([document, window]).unbind(".dialog-overlay") } d.remove(); var e = 0; c.each(this.instances, function() { e = Math.max(e, this.css("z-index")) }); this.maxZ = e }, height: function() { if (c.browser.msie && c.browser.version < 7) { var e = Math.max(document.documentElement.scrollHeight, document.body.scrollHeight); var d = Math.max(document.documentElement.offsetHeight, document.body.offsetHeight); if (e < d) { return c(window).height() + "px" } else { return e + "px" } } else { return c(document).height() + "px" } }, width: function() { if (c.browser.msie && c.browser.version < 7) { var d = Math.max(document.documentElement.scrollWidth, document.body.scrollWidth); var e = Math.max(document.documentElement.offsetWidth, document.body.offsetWidth); if (d < e) { return c(window).width() + "px" } else { return d + "px" } } else { return c(document).width() + "px" } }, resize: function() { var d = c([]); c.each(c.ui.dialog.overlay.instances, function() { d = d.add(this) }); d.css({ width: 0, height: 0 }).css({ width: c.ui.dialog.overlay.width(), height: c.ui.dialog.overlay.height() }) } }); c.extend(c.ui.dialog.overlay.prototype, { destroy: function() { c.ui.dialog.overlay.destroy(this.$el) } }) })(jQuery);;(function(a) { a.widget("ui.slider", a.extend({}, a.ui.mouse, { _init: function() { var b = this, c = this.options; this._keySliding = false; this._handleIndex = null; this._detectOrientation(); this._mouseInit(); this.element.addClass("ui-slider ui-slider-" + this.orientation + " ui-widget ui-widget-content ui-corner-all"); this.range = a([]); if (c.range) { if (c.range === true) { this.range = a("<div></div>"); if (!c.values) { c.values = [this._valueMin(), this._valueMin()] } if (c.values.length && c.values.length != 2) { c.values = [c.values[0], c.values[0]] } } else { this.range = a("<div></div>") } this.range.appendTo(this.element).addClass("ui-slider-range"); if (c.range == "min" || c.range == "max") { this.range.addClass("ui-slider-range-" + c.range) } this.range.addClass("ui-widget-header") } if (a(".ui-slider-handle", this.element).length == 0) { a('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle") } if (c.values && c.values.length) { while (a(".ui-slider-handle", this.element).length < c.values.length) { a('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle") } } this.handles = a(".ui-slider-handle", this.element).addClass("ui-state-default ui-corner-all"); this.handle = this.handles.eq(0); this.handles.add(this.range).filter("a").click(function(d) { d.preventDefault() }).hover(function() { if (!c.disabled) { a(this).addClass("ui-state-hover") } }, function() { a(this).removeClass("ui-state-hover") }).focus(function() { if (!c.disabled) { a(".ui-slider .ui-state-focus").removeClass("ui-state-focus"); a(this).addClass("ui-state-focus") } else { a(this).blur() } }).blur(function() { a(this).removeClass("ui-state-focus") }); this.handles.each(function(d) { a(this).data("index.ui-slider-handle", d) }); this.handles.keydown(function(i) { var f = true; var e = a(this).data("index.ui-slider-handle"); if (b.options.disabled) { return } switch (i.keyCode) { case a.ui.keyCode.HOME: case a.ui.keyCode.END: case a.ui.keyCode.UP: case a.ui.keyCode.RIGHT: case a.ui.keyCode.DOWN: case a.ui.keyCode.LEFT: f = false; if (!b._keySliding) { b._keySliding = true; a(this).addClass("ui-state-active"); b._start(i, e) } break } var g, d, h = b._step(); if (b.options.values && b.options.values.length) { g = d = b.values(e) } else { g = d = b.value() } switch (i.keyCode) { case a.ui.keyCode.HOME: d = b._valueMin(); break; case a.ui.keyCode.END: d = b._valueMax(); break; case a.ui.keyCode.UP: case a.ui.keyCode.RIGHT: if (g == b._valueMax()) { return } d = g + h; break; case a.ui.keyCode.DOWN: case a.ui.keyCode.LEFT: if (g == b._valueMin()) { return } d = g - h; break } b._slide(i, e, d); return f }).keyup(function(e) { var d = a(this).data("index.ui-slider-handle"); if (b._keySliding) { b._stop(e, d); b._change(e, d); b._keySliding = false; a(this).removeClass("ui-state-active") } }); this._refreshValue() }, destroy: function() { this.handles.remove(); this.range.remove(); this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider"); this._mouseDestroy() }, _mouseCapture: function(d) { var e = this.options; if (e.disabled) { return false } this.elementSize = { width: this.element.outerWidth(), height: this.element.outerHeight() }; this.elementOffset = this.element.offset(); var h = { x: d.pageX, y: d.pageY }; var j = this._normValueFromMouse(h); var c = this._valueMax() - this._valueMin() + 1, f; var k = this, i; this.handles.each(function(l) { var m = Math.abs(j - k.values(l)); if (c > m) { c = m; f = a(this); i = l } }); if (e.range == true && this.values(1) == e.min) { f = a(this.handles[++i]) } this._start(d, i); k._handleIndex = i; f.addClass("ui-state-active").focus(); var g = f.offset(); var b = !a(d.target).parents().andSelf().is(".ui-slider-handle"); this._clickOffset = b ? { left: 0, top: 0} : { left: d.pageX - g.left - (f.width() / 2), top: d.pageY - g.top - (f.height() / 2) - (parseInt(f.css("borderTopWidth"), 10) || 0) - (parseInt(f.css("borderBottomWidth"), 10) || 0) + (parseInt(f.css("marginTop"), 10) || 0) }; j = this._normValueFromMouse(h); this._slide(d, i, j); return true }, _mouseStart: function(b) { return true }, _mouseDrag: function(d) { var b = { x: d.pageX, y: d.pageY }; var c = this._normValueFromMouse(b); this._slide(d, this._handleIndex, c); return false }, _mouseStop: function(b) { this.handles.removeClass("ui-state-active"); this._stop(b, this._handleIndex); this._change(b, this._handleIndex); this._handleIndex = null; this._clickOffset = null; return false }, _detectOrientation: function() { this.orientation = this.options.orientation == "vertical" ? "vertical" : "horizontal" }, _normValueFromMouse: function(d) { var c, h; if ("horizontal" == this.orientation) { c = this.elementSize.width; h = d.x - this.elementOffset.left - (this._clickOffset ? this._clickOffset.left : 0) } else { c = this.elementSize.height; h = d.y - this.elementOffset.top - (this._clickOffset ? this._clickOffset.top : 0) } var f = (h / c); if (f > 1) { f = 1 } if (f < 0) { f = 0 } if ("vertical" == this.orientation) { f = 1 - f } var e = this._valueMax() - this._valueMin(), i = f * e, b = i % this.options.step, g = this._valueMin() + i - b; if (b > (this.options.step / 2)) { g += this.options.step } return parseFloat(g.toFixed(5)) }, _start: function(d, c) { var b = { handle: this.handles[c], value: this.value() }; if (this.options.values && this.options.values.length) { b.value = this.values(c); b.values = this.values() } this._trigger("start", d, b) }, _slide: function(f, e, d) { var g = this.handles[e]; if (this.options.values && this.options.values.length) { var b = this.values(e ? 0 : 1); if ((this.options.values.length == 2 && this.options.range === true) && ((e == 0 && d > b) || (e == 1 && d < b))) { d = b } if (d != this.values(e)) { var c = this.values(); c[e] = d; var h = this._trigger("slide", f, { handle: this.handles[e], value: d, values: c }); var b = this.values(e ? 0 : 1); if (h !== false) { this.values(e, d, (f.type == "mousedown" && this.options.animate), true) } } } else { if (d != this.value()) { var h = this._trigger("slide", f, { handle: this.handles[e], value: d }); if (h !== false) { this._setData("value", d, (f.type == "mousedown" && this.options.animate)) } } } }, _stop: function(d, c) { var b = { handle: this.handles[c], value: this.value() }; if (this.options.values && this.options.values.length) { b.value = this.values(c); b.values = this.values() } this._trigger("stop", d, b) }, _change: function(d, c) { var b = { handle: this.handles[c], value: this.value() }; if (this.options.values && this.options.values.length) { b.value = this.values(c); b.values = this.values() } this._trigger("change", d, b) }, value: function(b) { if (arguments.length) { this._setData("value", b); this._change(null, 0) } return this._value() }, values: function(b, e, c, d) { if (arguments.length > 1) { this.options.values[b] = e; this._refreshValue(c); if (!d) { this._change(null, b) } } if (arguments.length) { if (this.options.values && this.options.values.length) { return this._values(b) } else { return this.value() } } else { return this._values() } }, _setData: function(b, d, c) { a.widget.prototype._setData.apply(this, arguments); switch (b) { case "disabled": if (d) { this.handles.filter(".ui-state-focus").blur(); this.handles.removeClass("ui-state-hover"); this.handles.attr("disabled", "disabled") } else { this.handles.removeAttr("disabled") } case "orientation": this._detectOrientation(); this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-" + this.orientation); this._refreshValue(c); break; case "value": this._refreshValue(c); break } }, _step: function() { var b = this.options.step; return b }, _value: function() { var b = this.options.value; if (b < this._valueMin()) { b = this._valueMin() } if (b > this._valueMax()) { b = this._valueMax() } return b }, _values: function(b) { if (arguments.length) { var c = this.options.values[b]; if (c < this._valueMin()) { c = this._valueMin() } if (c > this._valueMax()) { c = this._valueMax() } return c } else { return this.options.values } }, _valueMin: function() { var b = this.options.min; return b }, _valueMax: function() { var b = this.options.max; return b }, _refreshValue: function(c) { var f = this.options.range, d = this.options, l = this; if (this.options.values && this.options.values.length) { var i, h; this.handles.each(function(p, n) { var o = (l.values(p) - l._valueMin()) / (l._valueMax() - l._valueMin()) * 100; var m = {}; m[l.orientation == "horizontal" ? "left" : "bottom"] = o + "%"; a(this).stop(1, 1)[c ? "animate" : "css"](m, d.animate); if (l.options.range === true) { if (l.orientation == "horizontal") { (p == 0) && l.range.stop(1, 1)[c ? "animate" : "css"]({ left: o + "%" }, d.animate); (p == 1) && l.range[c ? "animate" : "css"]({ width: (o - lastValPercent) + "%" }, { queue: false, duration: d.animate }) } else { (p == 0) && l.range.stop(1, 1)[c ? "animate" : "css"]({ bottom: (o) + "%" }, d.animate); (p == 1) && l.range[c ? "animate" : "css"]({ height: (o - lastValPercent) + "%" }, { queue: false, duration: d.animate }) } } lastValPercent = o }) } else { var j = this.value(), g = this._valueMin(), k = this._valueMax(), e = k != g ? (j - g) / (k - g) * 100 : 0; var b = {}; b[l.orientation == "horizontal" ? "left" : "bottom"] = e + "%"; this.handle.stop(1, 1)[c ? "animate" : "css"](b, d.animate); (f == "min") && (this.orientation == "horizontal") && this.range.stop(1, 1)[c ? "animate" : "css"]({ width: e + "%" }, d.animate); (f == "max") && (this.orientation == "horizontal") && this.range[c ? "animate" : "css"]({ width: (100 - e) + "%" }, { queue: false, duration: d.animate }); (f == "min") && (this.orientation == "vertical") && this.range.stop(1, 1)[c ? "animate" : "css"]({ height: e + "%" }, d.animate); (f == "max") && (this.orientation == "vertical") && this.range[c ? "animate" : "css"]({ height: (100 - e) + "%" }, { queue: false, duration: d.animate }) } } })); a.extend(a.ui.slider, { getter: "value values", version: "1.7.3", eventPrefix: "slide", defaults: { animate: false, delay: 0, distance: 0, max: 100, min: 0, orientation: "horizontal", range: false, step: 1, value: 0, values: null} }) })(jQuery); ;(function($) { $.extend($.ui, { datepicker: { version: "1.7.2"} }); var PROP_NAME = "datepicker"; function Datepicker() { this.debug = false; this._curInst = null; this._keyEvent = false; this._disabledInputs = []; this._datepickerShowing = false; this._inDialog = false; this._mainDivId = "ui-datepicker-div"; this._inlineClass = "ui-datepicker-inline"; this._appendClass = "ui-datepicker-append"; this._triggerClass = "ui-datepicker-trigger"; this._dialogClass = "ui-datepicker-dialog"; this._disableClass = "ui-datepicker-disabled"; this._unselectableClass = "ui-datepicker-unselectable"; this._currentClass = "ui-datepicker-current-day"; this._dayOverClass = "ui-datepicker-days-cell-over"; this.regional = []; this.regional[""] = { closeText: "Done", prevText: "Prev", nextText: "Next", currentText: "Today", monthNames: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], monthNamesShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], dayNames: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], dayNamesShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], dayNamesMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"], dateFormat: "mm/dd/yy", firstDay: 0, isRTL: false }; this._defaults = { showOn: "focus", showAnim: "show", showOptions: {}, defaultDate: null, appendText: "", buttonText: "...", buttonImage: "", buttonImageOnly: false, hideIfNoPrevNext: false, navigationAsDateFormat: false, gotoCurrent: false, changeMonth: false, changeYear: false, showMonthAfterYear: false, yearRange: "-10:+10", showOtherMonths: false, calculateWeek: this.iso8601Week, shortYearCutoff: "+10", minDate: null, maxDate: null, duration: "normal", beforeShowDay: null, beforeShow: null, onSelect: null, onChangeMonthYear: null, onClose: null, numberOfMonths: 1, showCurrentAtPos: 0, stepMonths: 1, stepBigMonths: 12, altField: "", altFormat: "", constrainInput: true, showButtonPanel: false }; $.extend(this._defaults, this.regional[""]); this.dpDiv = $('<div id="' + this._mainDivId + '" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all ui-helper-hidden-accessible"></div>') } $.extend(Datepicker.prototype, { markerClassName: "hasDatepicker", log: function() { if (this.debug) { console.log.apply("", arguments) } }, setDefaults: function(settings) { extendRemove(this._defaults, settings || {}); return this }, _attachDatepicker: function(target, settings) { var inlineSettings = null; for (var attrName in this._defaults) { var attrValue = target.getAttribute("date:" + attrName); if (attrValue) { inlineSettings = inlineSettings || {}; try { inlineSettings[attrName] = eval(attrValue) } catch (err) { inlineSettings[attrName] = attrValue } } } var nodeName = target.nodeName.toLowerCase(); var inline = (nodeName == "div" || nodeName == "span"); if (!target.id) { target.id = "dp" + (++this.uuid) } var inst = this._newInst($(target), inline); inst.settings = $.extend({}, settings || {}, inlineSettings || {}); if (nodeName == "input") { this._connectDatepicker(target, inst) } else { if (inline) { this._inlineDatepicker(target, inst) } } }, _newInst: function(target, inline) { var id = target[0].id.replace(/([:\[\]\.])/g, "\\\\$1"); return { id: id, input: target, selectedDay: 0, selectedMonth: 0, selectedYear: 0, drawMonth: 0, drawYear: 0, inline: inline, dpDiv: (!inline ? this.dpDiv : $('<div class="' + this._inlineClass + ' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))} }, _connectDatepicker: function(target, inst) { var input = $(target); inst.append = $([]); inst.trigger = $([]); if (input.hasClass(this.markerClassName)) { return } var appendText = this._get(inst, "appendText"); var isRTL = this._get(inst, "isRTL"); if (appendText) { inst.append = $('<span class="' + this._appendClass + '">' + appendText + "</span>"); input[isRTL ? "before" : "after"](inst.append) } var showOn = this._get(inst, "showOn"); if (showOn == "focus" || showOn == "both") { input.focus(this._showDatepicker) } if (showOn == "button" || showOn == "both") { var buttonText = this._get(inst, "buttonText"); var buttonImage = this._get(inst, "buttonImage"); inst.trigger = $(this._get(inst, "buttonImageOnly") ? $("<img/>").addClass(this._triggerClass).attr({ src: buttonImage, alt: buttonText, title: buttonText }) : $('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage == "" ? buttonText : $("<img/>").attr({ src: buttonImage, alt: buttonText, title: buttonText }))); input[isRTL ? "before" : "after"](inst.trigger); inst.trigger.click(function() { if ($.datepicker._datepickerShowing && $.datepicker._lastInput == target) { $.datepicker._hideDatepicker() } else { $.datepicker._showDatepicker(target) } return false }) } input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker", function(event, key, value) { inst.settings[key] = value }).bind("getData.datepicker", function(event, key) { return this._get(inst, key) }); $.data(target, PROP_NAME, inst) }, _inlineDatepicker: function(target, inst) { var divSpan = $(target); if (divSpan.hasClass(this.markerClassName)) { return } divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker", function(event, key, value) { inst.settings[key] = value }).bind("getData.datepicker", function(event, key) { return this._get(inst, key) }); $.data(target, PROP_NAME, inst); this._setDate(inst, this._getDefaultDate(inst)); this._updateDatepicker(inst); this._updateAlternate(inst) }, _dialogDatepicker: function(input, dateText, onSelect, settings, pos) { var inst = this._dialogInst; if (!inst) { var id = "dp" + (++this.uuid); this._dialogInput = $('<input type="text" id="' + id + '" size="1" style="position: absolute; top: -100px;"/>'); this._dialogInput.keydown(this._doKeyDown); $("body").append(this._dialogInput); inst = this._dialogInst = this._newInst(this._dialogInput, false); inst.settings = {}; $.data(this._dialogInput[0], PROP_NAME, inst) } extendRemove(inst.settings, settings || {}); this._dialogInput.val(dateText); this._pos = (pos ? (pos.length ? pos : [pos.pageX, pos.pageY]) : null); if (!this._pos) { var browserWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth; var browserHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; var scrollX = document.documentElement.scrollLeft || document.body.scrollLeft; var scrollY = document.documentElement.scrollTop || document.body.scrollTop; this._pos = [(browserWidth / 2) - 100 + scrollX, (browserHeight / 2) - 150 + scrollY] } this._dialogInput.css("left", this._pos[0] + "px").css("top", this._pos[1] + "px"); inst.settings.onSelect = onSelect; this._inDialog = true; this.dpDiv.addClass(this._dialogClass); this._showDatepicker(this._dialogInput[0]); if ($.blockUI) { $.blockUI(this.dpDiv) } $.data(this._dialogInput[0], PROP_NAME, inst); return this }, _destroyDatepicker: function(target) { var $target = $(target); var inst = $.data(target, PROP_NAME); if (!$target.hasClass(this.markerClassName)) { return } var nodeName = target.nodeName.toLowerCase(); $.removeData(target, PROP_NAME); if (nodeName == "input") { inst.append.remove(); inst.trigger.remove(); $target.removeClass(this.markerClassName).unbind("focus", this._showDatepicker).unbind("keydown", this._doKeyDown).unbind("keypress", this._doKeyPress) } else { if (nodeName == "div" || nodeName == "span") { $target.removeClass(this.markerClassName).empty() } } }, _enableDatepicker: function(target) { var $target = $(target); var inst = $.data(target, PROP_NAME); if (!$target.hasClass(this.markerClassName)) { return } var nodeName = target.nodeName.toLowerCase(); if (nodeName == "input") { target.disabled = false; inst.trigger.filter("button").each(function() { this.disabled = false }).end().filter("img").css({ opacity: "1.0", cursor: "" }) } else { if (nodeName == "div" || nodeName == "span") { var inline = $target.children("." + this._inlineClass); inline.children().removeClass("ui-state-disabled") } } this._disabledInputs = $.map(this._disabledInputs, function(value) { return (value == target ? null : value) }) }, _disableDatepicker: function(target) { var $target = $(target); var inst = $.data(target, PROP_NAME); if (!$target.hasClass(this.markerClassName)) { return } var nodeName = target.nodeName.toLowerCase(); if (nodeName == "input") { target.disabled = true; inst.trigger.filter("button").each(function() { this.disabled = true }).end().filter("img").css({ opacity: "0.5", cursor: "default" }) } else { if (nodeName == "div" || nodeName == "span") { var inline = $target.children("." + this._inlineClass); inline.children().addClass("ui-state-disabled") } } this._disabledInputs = $.map(this._disabledInputs, function(value) { return (value == target ? null : value) }); this._disabledInputs[this._disabledInputs.length] = target }, _isDisabledDatepicker: function(target) { if (!target) { return false } for (var i = 0; i < this._disabledInputs.length; i++) { if (this._disabledInputs[i] == target) { return true } } return false }, _getInst: function(target) { try { return $.data(target, PROP_NAME) } catch (err) { throw "Missing instance data for this datepicker" } }, _optionDatepicker: function(target, name, value) { var inst = this._getInst(target); if (arguments.length == 2 && typeof name == "string") { return (name == "defaults" ? $.extend({}, $.datepicker._defaults) : (inst ? (name == "all" ? $.extend({}, inst.settings) : this._get(inst, name)) : null)) } var settings = name || {}; if (typeof name == "string") { settings = {}; settings[name] = value } if (inst) { if (this._curInst == inst) { this._hideDatepicker(null) } var date = this._getDateDatepicker(target); extendRemove(inst.settings, settings); this._setDateDatepicker(target, date); this._updateDatepicker(inst) } }, _changeDatepicker: function(target, name, value) { this._optionDatepicker(target, name, value) }, _refreshDatepicker: function(target) { var inst = this._getInst(target); if (inst) { this._updateDatepicker(inst) } }, _setDateDatepicker: function(target, date, endDate) { var inst = this._getInst(target); if (inst) { this._setDate(inst, date, endDate); this._updateDatepicker(inst); this._updateAlternate(inst) } }, _getDateDatepicker: function(target) { var inst = this._getInst(target); if (inst && !inst.inline) { this._setDateFromField(inst) } return (inst ? this._getDate(inst) : null) }, _doKeyDown: function(event) { var inst = $.datepicker._getInst(event.target); var handled = true; var isRTL = inst.dpDiv.is(".ui-datepicker-rtl"); inst._keyEvent = true; if ($.datepicker._datepickerShowing) { switch (event.keyCode) { case 9: $.datepicker._hideDatepicker(null, ""); break; case 13: var sel = $("td." + $.datepicker._dayOverClass + ", td." + $.datepicker._currentClass, inst.dpDiv); if (sel[0]) { $.datepicker._selectDay(event.target, inst.selectedMonth, inst.selectedYear, sel[0]) } else { $.datepicker._hideDatepicker(null, $.datepicker._get(inst, "duration")) } return false; break; case 27: $.datepicker._hideDatepicker(null, $.datepicker._get(inst, "duration")); break; case 33: $.datepicker._adjustDate(event.target, (event.ctrlKey ? -$.datepicker._get(inst, "stepBigMonths") : -$.datepicker._get(inst, "stepMonths")), "M"); break; case 34: $.datepicker._adjustDate(event.target, (event.ctrlKey ? +$.datepicker._get(inst, "stepBigMonths") : +$.datepicker._get(inst, "stepMonths")), "M"); break; case 35: if (event.ctrlKey || event.metaKey) { $.datepicker._clearDate(event.target) } handled = event.ctrlKey || event.metaKey; break; case 36: if (event.ctrlKey || event.metaKey) { $.datepicker._gotoToday(event.target) } handled = event.ctrlKey || event.metaKey; break; case 37: if (event.ctrlKey || event.metaKey) { $.datepicker._adjustDate(event.target, (isRTL ? +1 : -1), "D") } handled = event.ctrlKey || event.metaKey; if (event.originalEvent.altKey) { $.datepicker._adjustDate(event.target, (event.ctrlKey ? -$.datepicker._get(inst, "stepBigMonths") : -$.datepicker._get(inst, "stepMonths")), "M") } break; case 38: if (event.ctrlKey || event.metaKey) { $.datepicker._adjustDate(event.target, -7, "D") } handled = event.ctrlKey || event.metaKey; break; case 39: if (event.ctrlKey || event.metaKey) { $.datepicker._adjustDate(event.target, (isRTL ? -1 : +1), "D") } handled = event.ctrlKey || event.metaKey; if (event.originalEvent.altKey) { $.datepicker._adjustDate(event.target, (event.ctrlKey ? +$.datepicker._get(inst, "stepBigMonths") : +$.datepicker._get(inst, "stepMonths")), "M") } break; case 40: if (event.ctrlKey || event.metaKey) { $.datepicker._adjustDate(event.target, +7, "D") } handled = event.ctrlKey || event.metaKey; break; default: handled = false } } else { if (event.keyCode == 36 && event.ctrlKey) { $.datepicker._showDatepicker(this) } else { handled = false } } if (handled) { event.preventDefault(); event.stopPropagation() } }, _doKeyPress: function(event) { var inst = $.datepicker._getInst(event.target); if ($.datepicker._get(inst, "constrainInput")) { var chars = $.datepicker._possibleChars($.datepicker._get(inst, "dateFormat")); var chr = String.fromCharCode(event.charCode == undefined ? event.keyCode : event.charCode); return event.ctrlKey || (chr < " " || !chars || chars.indexOf(chr) > -1) } }, _showDatepicker: function(input) { input = input.target || input; if (input.nodeName.toLowerCase() != "input") { input = $("input", input.parentNode)[0] } if ($.datepicker._isDisabledDatepicker(input) || $.datepicker._lastInput == input) { return } var inst = $.datepicker._getInst(input); var beforeShow = $.datepicker._get(inst, "beforeShow"); extendRemove(inst.settings, (beforeShow ? beforeShow.apply(input, [input, inst]) : {})); $.datepicker._hideDatepicker(null, ""); $.datepicker._lastInput = input; $.datepicker._setDateFromField(inst); if ($.datepicker._inDialog) { input.value = "" } if (!$.datepicker._pos) { $.datepicker._pos = $.datepicker._findPos(input); $.datepicker._pos[1] += input.offsetHeight } var isFixed = false; $(input).parents().each(function() { isFixed |= $(this).css("position") == "fixed"; return !isFixed }); if (isFixed && $.browser.opera) { $.datepicker._pos[0] -= document.documentElement.scrollLeft; $.datepicker._pos[1] -= document.documentElement.scrollTop } var offset = { left: $.datepicker._pos[0], top: $.datepicker._pos[1] }; $.datepicker._pos = null; inst.rangeStart = null; inst.dpDiv.css({ position: "absolute", display: "block", top: "-1000px" }); $.datepicker._updateDatepicker(inst); offset = $.datepicker._checkOffset(inst, offset, isFixed); inst.dpDiv.css({ position: ($.datepicker._inDialog && $.blockUI ? "static" : (isFixed ? "fixed" : "absolute")), display: "none", left: offset.left + "px", top: offset.top + "px" }); if (!inst.inline) { var showAnim = $.datepicker._get(inst, "showAnim") || "show"; var duration = $.datepicker._get(inst, "duration"); var postProcess = function() { $.datepicker._datepickerShowing = true; if ($.browser.msie && parseInt($.browser.version, 10) < 7) { $("iframe.ui-datepicker-cover").css({ width: inst.dpDiv.width() + 4, height: inst.dpDiv.height() + 4 }) } }; if ($.effects && $.effects[showAnim]) { inst.dpDiv.show(showAnim, $.datepicker._get(inst, "showOptions"), duration, postProcess) } else { inst.dpDiv[showAnim](duration, postProcess) } if (duration == "") { postProcess() } if (inst.input[0].type != "hidden") { inst.input[0].focus() } $.datepicker._curInst = inst } }, _updateDatepicker: function(inst) { var dims = { width: inst.dpDiv.width() + 4, height: inst.dpDiv.height() + 4 }; var self = this; inst.dpDiv.empty().append(this._generateHTML(inst)).find("iframe.ui-datepicker-cover").css({ width: dims.width, height: dims.height }).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout", function() { $(this).removeClass("ui-state-hover"); if (this.className.indexOf("ui-datepicker-prev") != -1) { $(this).removeClass("ui-datepicker-prev-hover") } if (this.className.indexOf("ui-datepicker-next") != -1) { $(this).removeClass("ui-datepicker-next-hover") } }).bind("mouseover", function() { if (!self._isDisabledDatepicker(inst.inline ? inst.dpDiv.parent()[0] : inst.input[0])) { $(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"); $(this).addClass("ui-state-hover"); if (this.className.indexOf("ui-datepicker-prev") != -1) { $(this).addClass("ui-datepicker-prev-hover") } if (this.className.indexOf("ui-datepicker-next") != -1) { $(this).addClass("ui-datepicker-next-hover") } } }).end().find("." + this._dayOverClass + " a").trigger("mouseover").end(); var numMonths = this._getNumberOfMonths(inst); var cols = numMonths[1]; var width = 17; if (cols > 1) { inst.dpDiv.addClass("ui-datepicker-multi-" + cols).css("width", (width * cols) + "em") } else { inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("") } inst.dpDiv[(numMonths[0] != 1 || numMonths[1] != 1 ? "add" : "remove") + "Class"]("ui-datepicker-multi"); inst.dpDiv[(this._get(inst, "isRTL") ? "add" : "remove") + "Class"]("ui-datepicker-rtl"); if (inst.input && inst.input[0].type != "hidden" && inst == $.datepicker._curInst) { $(inst.input[0]).focus() } }, _checkOffset: function(inst, offset, isFixed) { var dpWidth = inst.dpDiv.outerWidth(); var dpHeight = inst.dpDiv.outerHeight(); var inputWidth = inst.input ? inst.input.outerWidth() : 0; var inputHeight = inst.input ? inst.input.outerHeight() : 0; var viewWidth = (window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) + $(document).scrollLeft(); var viewHeight = (window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight) + $(document).scrollTop(); offset.left -= (this._get(inst, "isRTL") ? (dpWidth - inputWidth) : 0); offset.left -= (isFixed && offset.left == inst.input.offset().left) ? $(document).scrollLeft() : 0; offset.top -= (isFixed && offset.top == (inst.input.offset().top + inputHeight)) ? $(document).scrollTop() : 0; offset.left -= (offset.left + dpWidth > viewWidth && viewWidth > dpWidth) ? Math.abs(offset.left + dpWidth - viewWidth) : 0; offset.top -= (offset.top + dpHeight > viewHeight && viewHeight > dpHeight) ? Math.abs(offset.top + dpHeight + inputHeight * 2 - viewHeight) : 0; return offset }, _findPos: function(obj) { while (obj && (obj.type == "hidden" || obj.nodeType != 1)) { obj = obj.nextSibling } var position = $(obj).offset(); return [position.left, position.top] }, _hideDatepicker: function(input, duration) { var inst = this._curInst; if (!inst || (input && inst != $.data(input, PROP_NAME))) { return } if (inst.stayOpen) { this._selectDate("#" + inst.id, this._formatDate(inst, inst.currentDay, inst.currentMonth, inst.currentYear)) } inst.stayOpen = false; if (this._datepickerShowing) { duration = (duration != null ? duration : this._get(inst, "duration")); var showAnim = this._get(inst, "showAnim"); var postProcess = function() { $.datepicker._tidyDialog(inst) }; if (duration != "" && $.effects && $.effects[showAnim]) { inst.dpDiv.hide(showAnim, $.datepicker._get(inst, "showOptions"), duration, postProcess) } else { inst.dpDiv[(duration == "" ? "hide" : (showAnim == "slideDown" ? "slideUp" : (showAnim == "fadeIn" ? "fadeOut" : "hide")))](duration, postProcess) } if (duration == "") { this._tidyDialog(inst) } var onClose = this._get(inst, "onClose"); if (onClose) { onClose.apply((inst.input ? inst.input[0] : null), [(inst.input ? inst.input.val() : ""), inst]) } this._datepickerShowing = false; this._lastInput = null; if (this._inDialog) { this._dialogInput.css({ position: "absolute", left: "0", top: "-100px" }); if ($.blockUI) { $.unblockUI(); $("body").append(this.dpDiv) } } this._inDialog = false } this._curInst = null }, _tidyDialog: function(inst) { inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar") }, _checkExternalClick: function(event) { if (!$.datepicker._curInst) { return } var $target = $(event.target); if (($target.parents("#" + $.datepicker._mainDivId).length == 0) && !$target.hasClass($.datepicker.markerClassName) && !$target.hasClass($.datepicker._triggerClass) && $.datepicker._datepickerShowing && !($.datepicker._inDialog && $.blockUI)) { $.datepicker._hideDatepicker(null, "") } }, _adjustDate: function(id, offset, period) { var target = $(id); var inst = this._getInst(target[0]); if (this._isDisabledDatepicker(target[0])) { return } this._adjustInstDate(inst, offset + (period == "M" ? this._get(inst, "showCurrentAtPos") : 0), period); this._updateDatepicker(inst) }, _gotoToday: function(id) { var target = $(id); var inst = this._getInst(target[0]); if (this._get(inst, "gotoCurrent") && inst.currentDay) { inst.selectedDay = inst.currentDay; inst.drawMonth = inst.selectedMonth = inst.currentMonth; inst.drawYear = inst.selectedYear = inst.currentYear } else { var date = new Date(); inst.selectedDay = date.getDate(); inst.drawMonth = inst.selectedMonth = date.getMonth(); inst.drawYear = inst.selectedYear = date.getFullYear() } this._notifyChange(inst); this._adjustDate(target) }, _selectMonthYear: function(id, select, period) { var target = $(id); var inst = this._getInst(target[0]); inst._selectingMonthYear = false; inst["selected" + (period == "M" ? "Month" : "Year")] = inst["draw" + (period == "M" ? "Month" : "Year")] = parseInt(select.options[select.selectedIndex].value, 10); this._notifyChange(inst); this._adjustDate(target) }, _clickMonthYear: function(id) { var target = $(id); var inst = this._getInst(target[0]); if (inst.input && inst._selectingMonthYear && !$.browser.msie) { inst.input[0].focus() } inst._selectingMonthYear = !inst._selectingMonthYear }, _selectDay: function(id, month, year, td) { var target = $(id); if ($(td).hasClass(this._unselectableClass) || this._isDisabledDatepicker(target[0])) { return } var inst = this._getInst(target[0]); inst.selectedDay = inst.currentDay = $("a", td).html(); inst.selectedMonth = inst.currentMonth = month; inst.selectedYear = inst.currentYear = year; if (inst.stayOpen) { inst.endDay = inst.endMonth = inst.endYear = null } this._selectDate(id, this._formatDate(inst, inst.currentDay, inst.currentMonth, inst.currentYear)); if (inst.stayOpen) { inst.rangeStart = this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay)); this._updateDatepicker(inst) } }, _clearDate: function(id) { var target = $(id); var inst = this._getInst(target[0]); inst.stayOpen = false; inst.endDay = inst.endMonth = inst.endYear = inst.rangeStart = null; this._selectDate(target, "") }, _selectDate: function(id, dateStr) { var target = $(id); var inst = this._getInst(target[0]); dateStr = (dateStr != null ? dateStr : this._formatDate(inst)); if (inst.input) { inst.input.val(dateStr) } this._updateAlternate(inst); var onSelect = this._get(inst, "onSelect"); if (onSelect) { onSelect.apply((inst.input ? inst.input[0] : null), [dateStr, inst]) } else { if (inst.input) { inst.input.trigger("change") } } if (inst.inline) { this._updateDatepicker(inst) } else { if (!inst.stayOpen) { this._hideDatepicker(null, this._get(inst, "duration")); this._lastInput = inst.input[0]; if (typeof (inst.input[0]) != "object") { inst.input[0].focus() } this._lastInput = null } } }, _updateAlternate: function(inst) { var altField = this._get(inst, "altField"); if (altField) { var altFormat = this._get(inst, "altFormat") || this._get(inst, "dateFormat"); var date = this._getDate(inst); dateStr = this.formatDate(altFormat, date, this._getFormatConfig(inst)); $(altField).each(function() { $(this).val(dateStr) }) } }, noWeekends: function(date) { var day = date.getDay(); return [(day > 0 && day < 6), ""] }, iso8601Week: function(date) { var checkDate = new Date(date.getFullYear(), date.getMonth(), date.getDate()); var firstMon = new Date(checkDate.getFullYear(), 1 - 1, 4); var firstDay = firstMon.getDay() || 7; firstMon.setDate(firstMon.getDate() + 1 - firstDay); if (firstDay < 4 && checkDate < firstMon) { checkDate.setDate(checkDate.getDate() - 3); return $.datepicker.iso8601Week(checkDate) } else { if (checkDate > new Date(checkDate.getFullYear(), 12 - 1, 28)) { firstDay = new Date(checkDate.getFullYear() + 1, 1 - 1, 4).getDay() || 7; if (firstDay > 4 && (checkDate.getDay() || 7) < firstDay - 3) { return 1 } } } return Math.floor(((checkDate - firstMon) / 86400000) / 7) + 1 }, parseDate: function(format, value, settings) { if (format == null || value == null) { throw "Invalid arguments" } value = (typeof value == "object" ? value.toString() : value + ""); if (value == "") { return null } var shortYearCutoff = (settings ? settings.shortYearCutoff : null) || this._defaults.shortYearCutoff; var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort; var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames; var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort; var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames; var year = -1; var month = -1; var day = -1; var doy = -1; var literal = false; var lookAhead = function(match) { var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match); if (matches) { iFormat++ } return matches }; var getNumber = function(match) { lookAhead(match); var origSize = (match == "@" ? 14 : (match == "y" ? 4 : (match == "o" ? 3 : 2))); var size = origSize; var num = 0; while (size > 0 && iValue < value.length && value.charAt(iValue) >= "0" && value.charAt(iValue) <= "9") { num = num * 10 + parseInt(value.charAt(iValue++), 10); size-- } if (size == origSize) { throw "Missing number at position " + iValue } return num }; var getName = function(match, shortNames, longNames) { var names = (lookAhead(match) ? longNames : shortNames); var size = 0; for (var j = 0; j < names.length; j++) { size = Math.max(size, names[j].length) } var name = ""; var iInit = iValue; while (size > 0 && iValue < value.length) { name += value.charAt(iValue++); for (var i = 0; i < names.length; i++) { if (name == names[i]) { return i + 1 } } size-- } throw "Unknown name at position " + iInit }; var checkLiteral = function() { if (value.charAt(iValue) != format.charAt(iFormat)) { throw "Unexpected literal at position " + iValue } iValue++ }; var iValue = 0; for (var iFormat = 0; iFormat < format.length; iFormat++) { if (literal) { if (format.charAt(iFormat) == "'" && !lookAhead("'")) { literal = false } else { checkLiteral() } } else { switch (format.charAt(iFormat)) { case "d": day = getNumber("d"); break; case "D": getName("D", dayNamesShort, dayNames); break; case "o": doy = getNumber("o"); break; case "m": month = getNumber("m"); break; case "M": month = getName("M", monthNamesShort, monthNames); break; case "y": year = getNumber("y"); break; case "@": var date = new Date(getNumber("@")); year = date.getFullYear(); month = date.getMonth() + 1; day = date.getDate(); break; case "'": if (lookAhead("'")) { checkLiteral() } else { literal = true } break; default: checkLiteral() } } } if (year == -1) { year = new Date().getFullYear() } else { if (year < 100) { year += new Date().getFullYear() - new Date().getFullYear() % 100 + (year <= shortYearCutoff ? 0 : -100) } } if (doy > -1) { month = 1; day = doy; do { var dim = this._getDaysInMonth(year, month - 1); if (day <= dim) { break } month++; day -= dim } while (true) } var date = this._daylightSavingAdjust(new Date(year, month - 1, day)); if (date.getFullYear() != year || date.getMonth() + 1 != month || date.getDate() != day) { throw "Invalid date" } return date }, ATOM: "yy-mm-dd", COOKIE: "D, dd M yy", ISO_8601: "yy-mm-dd", RFC_822: "D, d M y", RFC_850: "DD, dd-M-y", RFC_1036: "D, d M y", RFC_1123: "D, d M yy", RFC_2822: "D, d M yy", RSS: "D, d M y", TIMESTAMP: "@", W3C: "yy-mm-dd", formatDate: function(format, date, settings) { if (!date) { return "" } var dayNamesShort = (settings ? settings.dayNamesShort : null) || this._defaults.dayNamesShort; var dayNames = (settings ? settings.dayNames : null) || this._defaults.dayNames; var monthNamesShort = (settings ? settings.monthNamesShort : null) || this._defaults.monthNamesShort; var monthNames = (settings ? settings.monthNames : null) || this._defaults.monthNames; var lookAhead = function(match) { var matches = (iFormat + 1 < format.length && format.charAt(iFormat + 1) == match); if (matches) { iFormat++ } return matches }; var formatNumber = function(match, value, len) { var num = "" + value; if (lookAhead(match)) { while (num.length < len) { num = "0" + num } } return num }; var formatName = function(match, value, shortNames, longNames) { return (lookAhead(match) ? longNames[value] : shortNames[value]) }; var output = ""; var literal = false; if (date) { for (var iFormat = 0; iFormat < format.length; iFormat++) { if (literal) { if (format.charAt(iFormat) == "'" && !lookAhead("'")) { literal = false } else { output += format.charAt(iFormat) } } else { switch (format.charAt(iFormat)) { case "d": output += formatNumber("d", date.getDate(), 2); break; case "D": output += formatName("D", date.getDay(), dayNamesShort, dayNames); break; case "o": var doy = date.getDate(); for (var m = date.getMonth() - 1; m >= 0; m--) { doy += this._getDaysInMonth(date.getFullYear(), m) } output += formatNumber("o", doy, 3); break; case "m": output += formatNumber("m", date.getMonth() + 1, 2); break; case "M": output += formatName("M", date.getMonth(), monthNamesShort, monthNames); break; case "y": output += (lookAhead("y") ? date.getFullYear() : (date.getYear() % 100 < 10 ? "0" : "") + date.getYear() % 100); break; case "@": output += date.getTime(); break; case "'": if (lookAhead("'")) { output += "'" } else { literal = true } break; default: output += format.charAt(iFormat) } } } } return output }, _possibleChars: function(format) { var chars = ""; var literal = false; for (var iFormat = 0; iFormat < format.length; iFormat++) { if (literal) { if (format.charAt(iFormat) == "'" && !lookAhead("'")) { literal = false } else { chars += format.charAt(iFormat) } } else { switch (format.charAt(iFormat)) { case "d": case "m": case "y": case "@": chars += "0123456789"; break; case "D": case "M": return null; case "'": if (lookAhead("'")) { chars += "'" } else { literal = true } break; default: chars += format.charAt(iFormat) } } } return chars }, _get: function(inst, name) { return inst.settings[name] !== undefined ? inst.settings[name] : this._defaults[name] }, _setDateFromField: function(inst) { var dateFormat = this._get(inst, "dateFormat"); var dates = inst.input ? inst.input.val() : null; inst.endDay = inst.endMonth = inst.endYear = null; var date = defaultDate = this._getDefaultDate(inst); var settings = this._getFormatConfig(inst); try { date = this.parseDate(dateFormat, dates, settings) || defaultDate } catch (event) { this.log(event); date = defaultDate } inst.selectedDay = date.getDate(); inst.drawMonth = inst.selectedMonth = date.getMonth(); inst.drawYear = inst.selectedYear = date.getFullYear(); inst.currentDay = (dates ? date.getDate() : 0); inst.currentMonth = (dates ? date.getMonth() : 0); inst.currentYear = (dates ? date.getFullYear() : 0); this._adjustInstDate(inst) }, _getDefaultDate: function(inst) { var date = this._determineDate(this._get(inst, "defaultDate"), new Date()); var minDate = this._getMinMaxDate(inst, "min", true); var maxDate = this._getMinMaxDate(inst, "max"); date = (minDate && date < minDate ? minDate : date); date = (maxDate && date > maxDate ? maxDate : date); return date }, _determineDate: function(date, defaultDate) { var offsetNumeric = function(offset) { var date = new Date(); date.setDate(date.getDate() + offset); return date }; var offsetString = function(offset, getDaysInMonth) { var date = new Date(); var year = date.getFullYear(); var month = date.getMonth(); var day = date.getDate(); var pattern = /([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g; var matches = pattern.exec(offset); while (matches) { switch (matches[2] || "d") { case "d": case "D": day += parseInt(matches[1], 10); break; case "w": case "W": day += parseInt(matches[1], 10) * 7; break; case "m": case "M": month += parseInt(matches[1], 10); day = Math.min(day, getDaysInMonth(year, month)); break; case "y": case "Y": year += parseInt(matches[1], 10); day = Math.min(day, getDaysInMonth(year, month)); break } matches = pattern.exec(offset) } return new Date(year, month, day) }; date = (date == null ? defaultDate : (typeof date == "string" ? offsetString(date, this._getDaysInMonth) : (typeof date == "number" ? (isNaN(date) ? defaultDate : offsetNumeric(date)) : date))); date = (date && date.toString() == "Invalid Date" ? defaultDate : date); if (date) { date.setHours(0); date.setMinutes(0); date.setSeconds(0); date.setMilliseconds(0) } return this._daylightSavingAdjust(date) }, _daylightSavingAdjust: function(date) { if (!date) { return null } date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0); return date }, _setDate: function(inst, date, endDate) { var clear = !(date); var origMonth = inst.selectedMonth; var origYear = inst.selectedYear; date = this._determineDate(date, new Date()); inst.selectedDay = inst.currentDay = date.getDate(); inst.drawMonth = inst.selectedMonth = inst.currentMonth = date.getMonth(); inst.drawYear = inst.selectedYear = inst.currentYear = date.getFullYear(); if (origMonth != inst.selectedMonth || origYear != inst.selectedYear) { this._notifyChange(inst) } this._adjustInstDate(inst); if (inst.input) { inst.input.val(clear ? "" : this._formatDate(inst)) } }, _getDate: function(inst) { var startDate = (!inst.currentYear || (inst.input && inst.input.val() == "") ? null : this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay))); return startDate }, _generateHTML: function(inst) { var today = new Date(); today = this._daylightSavingAdjust(new Date(today.getFullYear(), today.getMonth(), today.getDate())); var isRTL = this._get(inst, "isRTL"); var showButtonPanel = this._get(inst, "showButtonPanel"); var hideIfNoPrevNext = this._get(inst, "hideIfNoPrevNext"); var navigationAsDateFormat = this._get(inst, "navigationAsDateFormat"); var numMonths = this._getNumberOfMonths(inst); var showCurrentAtPos = this._get(inst, "showCurrentAtPos"); var stepMonths = this._get(inst, "stepMonths"); var stepBigMonths = this._get(inst, "stepBigMonths"); var isMultiMonth = (numMonths[0] != 1 || numMonths[1] != 1); var currentDate = this._daylightSavingAdjust((!inst.currentDay ? new Date(9999, 9, 9) : new Date(inst.currentYear, inst.currentMonth, inst.currentDay))); var minDate = this._getMinMaxDate(inst, "min", true); var maxDate = this._getMinMaxDate(inst, "max"); var drawMonth = inst.drawMonth - showCurrentAtPos; var drawYear = inst.drawYear; if (drawMonth < 0) { drawMonth += 12; drawYear-- } if (maxDate) { var maxDraw = this._daylightSavingAdjust(new Date(maxDate.getFullYear(), maxDate.getMonth() - numMonths[1] + 1, maxDate.getDate())); maxDraw = (minDate && maxDraw < minDate ? minDate : maxDraw); while (this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1)) > maxDraw) { drawMonth--; if (drawMonth < 0) { drawMonth = 11; drawYear-- } } } inst.drawMonth = drawMonth; inst.drawYear = drawYear; var prevText = this._get(inst, "prevText"); prevText = (!navigationAsDateFormat ? prevText : this.formatDate(prevText, this._daylightSavingAdjust(new Date(drawYear, drawMonth - stepMonths, 1)), this._getFormatConfig(inst))); var prev = (this._canAdjustMonth(inst, -1, drawYear, drawMonth) ? '<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#' + inst.id + "', -" + stepMonths + ", 'M');\" title=\"" + prevText + '"><span class="ui-icon ui-icon-circle-triangle-' + (isRTL ? "e" : "w") + '">' + prevText + "</span></a>" : (hideIfNoPrevNext ? "" : '<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="' + prevText + '"><span class="ui-icon ui-icon-circle-triangle-' + (isRTL ? "e" : "w") + '">' + prevText + "</span></a>")); var nextText = this._get(inst, "nextText"); nextText = (!navigationAsDateFormat ? nextText : this.formatDate(nextText, this._daylightSavingAdjust(new Date(drawYear, drawMonth + stepMonths, 1)), this._getFormatConfig(inst))); var next = (this._canAdjustMonth(inst, +1, drawYear, drawMonth) ? '<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery.datepicker._adjustDate(\'#' + inst.id + "', +" + stepMonths + ", 'M');\" title=\"" + nextText + '"><span class="ui-icon ui-icon-circle-triangle-' + (isRTL ? "w" : "e") + '">' + nextText + "</span></a>" : (hideIfNoPrevNext ? "" : '<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="' + nextText + '"><span class="ui-icon ui-icon-circle-triangle-' + (isRTL ? "w" : "e") + '">' + nextText + "</span></a>")); var currentText = this._get(inst, "currentText"); var gotoDate = (this._get(inst, "gotoCurrent") && inst.currentDay ? currentDate : today); currentText = (!navigationAsDateFormat ? currentText : this.formatDate(currentText, gotoDate, this._getFormatConfig(inst))); var controls = (!inst.inline ? '<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery.datepicker._hideDatepicker();">' + this._get(inst, "closeText") + "</button>" : ""); var buttonPanel = (showButtonPanel) ? '<div class="ui-datepicker-buttonpane ui-widget-content">' + (isRTL ? controls : "") + (this._isInRange(inst, gotoDate) ? '<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery.datepicker._gotoToday(\'#' + inst.id + "');\">" + currentText + "</button>" : "") + (isRTL ? "" : controls) + "</div>" : ""; var firstDay = parseInt(this._get(inst, "firstDay"), 10); firstDay = (isNaN(firstDay) ? 0 : firstDay); var dayNames = this._get(inst, "dayNames"); var dayNamesShort = this._get(inst, "dayNamesShort"); var dayNamesMin = this._get(inst, "dayNamesMin"); var monthNames = this._get(inst, "monthNames"); var monthNamesShort = this._get(inst, "monthNamesShort"); var beforeShowDay = this._get(inst, "beforeShowDay"); var showOtherMonths = this._get(inst, "showOtherMonths"); var calculateWeek = this._get(inst, "calculateWeek") || this.iso8601Week; var endDate = inst.endDay ? this._daylightSavingAdjust(new Date(inst.endYear, inst.endMonth, inst.endDay)) : currentDate; var defaultDate = this._getDefaultDate(inst); var html = ""; for (var row = 0; row < numMonths[0]; row++) { var group = ""; for (var col = 0; col < numMonths[1]; col++) { var selectedDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, inst.selectedDay)); var cornerClass = " ui-corner-all"; var calender = ""; if (isMultiMonth) { calender += '<div class="ui-datepicker-group ui-datepicker-group-'; switch (col) { case 0: calender += "first"; cornerClass = " ui-corner-" + (isRTL ? "right" : "left"); break; case numMonths[1] - 1: calender += "last"; cornerClass = " ui-corner-" + (isRTL ? "left" : "right"); break; default: calender += "middle"; cornerClass = ""; break } calender += '">' } calender += '<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix' + cornerClass + '">' + (/all|left/.test(cornerClass) && row == 0 ? (isRTL ? next : prev) : "") + (/all|right/.test(cornerClass) && row == 0 ? (isRTL ? prev : next) : "") + this._generateMonthYearHeader(inst, drawMonth, drawYear, minDate, maxDate, selectedDate, row > 0 || col > 0, monthNames, monthNamesShort) + '</div><table class="ui-datepicker-calendar"><thead><tr>'; var thead = ""; for (var dow = 0; dow < 7; dow++) { var day = (dow + firstDay) % 7; thead += "<th" + ((dow + firstDay + 6) % 7 >= 5 ? ' class="ui-datepicker-week-end"' : "") + '><span title="' + dayNames[day] + '">' + dayNamesMin[day] + "</span></th>" } calender += thead + "</tr></thead><tbody>"; var daysInMonth = this._getDaysInMonth(drawYear, drawMonth); if (drawYear == inst.selectedYear && drawMonth == inst.selectedMonth) { inst.selectedDay = Math.min(inst.selectedDay, daysInMonth) } var leadDays = (this._getFirstDayOfMonth(drawYear, drawMonth) - firstDay + 7) % 7; var numRows = (isMultiMonth ? 6 : Math.ceil((leadDays + daysInMonth) / 7)); var printDate = this._daylightSavingAdjust(new Date(drawYear, drawMonth, 1 - leadDays)); for (var dRow = 0; dRow < numRows; dRow++) { calender += "<tr>"; var tbody = ""; for (var dow = 0; dow < 7; dow++) { var daySettings = (beforeShowDay ? beforeShowDay.apply((inst.input ? inst.input[0] : null), [printDate]) : [true, ""]); var otherMonth = (printDate.getMonth() != drawMonth); var unselectable = otherMonth || !daySettings[0] || (minDate && printDate < minDate) || (maxDate && printDate > maxDate); tbody += '<td class="' + ((dow + firstDay + 6) % 7 >= 5 ? " ui-datepicker-week-end" : "") + (otherMonth ? " ui-datepicker-other-month" : "") + ((printDate.getTime() == selectedDate.getTime() && drawMonth == inst.selectedMonth && inst._keyEvent) || (defaultDate.getTime() == printDate.getTime() && defaultDate.getTime() == selectedDate.getTime()) ? " " + this._dayOverClass : "") + (unselectable ? " " + this._unselectableClass + " ui-state-disabled" : "") + (otherMonth && !showOtherMonths ? "" : " " + daySettings[1] + (printDate.getTime() >= currentDate.getTime() && printDate.getTime() <= endDate.getTime() ? " " + this._currentClass : "") + (printDate.getTime() == today.getTime() ? " ui-datepicker-today" : "")) + '"' + ((!otherMonth || showOtherMonths) && daySettings[2] ? ' title="' + daySettings[2] + '"' : "") + (unselectable ? "" : " onclick=\"DP_jQuery.datepicker._selectDay('#" + inst.id + "'," + drawMonth + "," + drawYear + ', this);return false;"') + ">" + (otherMonth ? (showOtherMonths ? printDate.getDate() : "&#xa0;") : (unselectable ? '<span class="ui-state-default">' + printDate.getDate() + "</span>" : '<a class="ui-state-default' + (printDate.getTime() == today.getTime() ? " ui-state-highlight" : "") + (printDate.getTime() >= currentDate.getTime() && printDate.getTime() <= endDate.getTime() ? " ui-state-active" : "") + '" href="#">' + printDate.getDate() + "</a>")) + "</td>"; printDate.setDate(printDate.getDate() + 1); printDate = this._daylightSavingAdjust(printDate) } calender += tbody + "</tr>" } drawMonth++; if (drawMonth > 11) { drawMonth = 0; drawYear++ } calender += "</tbody></table>" + (isMultiMonth ? "</div>" + ((numMonths[0] > 0 && col == numMonths[1] - 1) ? '<div class="ui-datepicker-row-break"></div>' : "") : ""); group += calender } html += group } html += buttonPanel + ($.browser.msie && parseInt($.browser.version, 10) < 7 && !inst.inline ? '<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>' : ""); inst._keyEvent = false; return html }, _generateMonthYearHeader: function(inst, drawMonth, drawYear, minDate, maxDate, selectedDate, secondary, monthNames, monthNamesShort) { minDate = (inst.rangeStart && minDate && selectedDate < minDate ? selectedDate : minDate); var changeMonth = this._get(inst, "changeMonth"); var changeYear = this._get(inst, "changeYear"); var showMonthAfterYear = this._get(inst, "showMonthAfterYear"); var html = '<div class="ui-datepicker-title">'; var monthHtml = ""; if (secondary || !changeMonth) { monthHtml += '<span class="ui-datepicker-month">' + monthNames[drawMonth] + "</span> " } else { var inMinYear = (minDate && minDate.getFullYear() == drawYear); var inMaxYear = (maxDate && maxDate.getFullYear() == drawYear); monthHtml += '<select class="ui-datepicker-month" onchange="DP_jQuery.datepicker._selectMonthYear(\'#' + inst.id + "', this, 'M');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#" + inst.id + "');\">"; for (var month = 0; month < 12; month++) { if ((!inMinYear || month >= minDate.getMonth()) && (!inMaxYear || month <= maxDate.getMonth())) { monthHtml += '<option value="' + month + '"' + (month == drawMonth ? ' selected="selected"' : "") + ">" + monthNamesShort[month] + "</option>" } } monthHtml += "</select>" } if (!showMonthAfterYear) { html += monthHtml + ((secondary || changeMonth || changeYear) && (!(changeMonth && changeYear)) ? "&#xa0;" : "") } if (secondary || !changeYear) { html += '<span class="ui-datepicker-year">' + drawYear + "</span>" } else { var years = this._get(inst, "yearRange").split(":"); var year = 0; var endYear = 0; if (years.length != 2) { year = drawYear - 10; endYear = drawYear + 10 } else { if (years[0].charAt(0) == "+" || years[0].charAt(0) == "-") { year = drawYear + parseInt(years[0], 10); endYear = drawYear + parseInt(years[1], 10) } else { year = parseInt(years[0], 10); endYear = parseInt(years[1], 10) } } year = (minDate ? Math.max(year, minDate.getFullYear()) : year); endYear = (maxDate ? Math.min(endYear, maxDate.getFullYear()) : endYear); html += '<select class="ui-datepicker-year" onchange="DP_jQuery.datepicker._selectMonthYear(\'#' + inst.id + "', this, 'Y');\" onclick=\"DP_jQuery.datepicker._clickMonthYear('#" + inst.id + "');\">"; for (; year <= endYear; year++) { html += '<option value="' + year + '"' + (year == drawYear ? ' selected="selected"' : "") + ">" + year + "</option>" } html += "</select>" } if (showMonthAfterYear) { html += (secondary || changeMonth || changeYear ? "&#xa0;" : "") + monthHtml } html += "</div>"; return html }, _adjustInstDate: function(inst, offset, period) { var year = inst.drawYear + (period == "Y" ? offset : 0); var month = inst.drawMonth + (period == "M" ? offset : 0); var day = Math.min(inst.selectedDay, this._getDaysInMonth(year, month)) + (period == "D" ? offset : 0); var date = this._daylightSavingAdjust(new Date(year, month, day)); var minDate = this._getMinMaxDate(inst, "min", true); var maxDate = this._getMinMaxDate(inst, "max"); date = (minDate && date < minDate ? minDate : date); date = (maxDate && date > maxDate ? maxDate : date); inst.selectedDay = date.getDate(); inst.drawMonth = inst.selectedMonth = date.getMonth(); inst.drawYear = inst.selectedYear = date.getFullYear(); if (period == "M" || period == "Y") { this._notifyChange(inst) } }, _notifyChange: function(inst) { var onChange = this._get(inst, "onChangeMonthYear"); if (onChange) { onChange.apply((inst.input ? inst.input[0] : null), [inst.selectedYear, inst.selectedMonth + 1, inst]) } }, _getNumberOfMonths: function(inst) { var numMonths = this._get(inst, "numberOfMonths"); return (numMonths == null ? [1, 1] : (typeof numMonths == "number" ? [1, numMonths] : numMonths)) }, _getMinMaxDate: function(inst, minMax, checkRange) { var date = this._determineDate(this._get(inst, minMax + "Date"), null); return (!checkRange || !inst.rangeStart ? date : (!date || inst.rangeStart > date ? inst.rangeStart : date)) }, _getDaysInMonth: function(year, month) { return 32 - new Date(year, month, 32).getDate() }, _getFirstDayOfMonth: function(year, month) { return new Date(year, month, 1).getDay() }, _canAdjustMonth: function(inst, offset, curYear, curMonth) { var numMonths = this._getNumberOfMonths(inst); var date = this._daylightSavingAdjust(new Date(curYear, curMonth + (offset < 0 ? offset : numMonths[1]), 1)); if (offset < 0) { date.setDate(this._getDaysInMonth(date.getFullYear(), date.getMonth())) } return this._isInRange(inst, date) }, _isInRange: function(inst, date) { var newMinDate = (!inst.rangeStart ? null : this._daylightSavingAdjust(new Date(inst.selectedYear, inst.selectedMonth, inst.selectedDay))); newMinDate = (newMinDate && inst.rangeStart < newMinDate ? inst.rangeStart : newMinDate); var minDate = newMinDate || this._getMinMaxDate(inst, "min"); var maxDate = this._getMinMaxDate(inst, "max"); return ((!minDate || date >= minDate) && (!maxDate || date <= maxDate)) }, _getFormatConfig: function(inst) { var shortYearCutoff = this._get(inst, "shortYearCutoff"); shortYearCutoff = (typeof shortYearCutoff != "string" ? shortYearCutoff : new Date().getFullYear() % 100 + parseInt(shortYearCutoff, 10)); return { shortYearCutoff: shortYearCutoff, dayNamesShort: this._get(inst, "dayNamesShort"), dayNames: this._get(inst, "dayNames"), monthNamesShort: this._get(inst, "monthNamesShort"), monthNames: this._get(inst, "monthNames")} }, _formatDate: function(inst, day, month, year) { if (!day) { inst.currentDay = inst.selectedDay; inst.currentMonth = inst.selectedMonth; inst.currentYear = inst.selectedYear } var date = (day ? (typeof day == "object" ? day : this._daylightSavingAdjust(new Date(year, month, day))) : this._daylightSavingAdjust(new Date(inst.currentYear, inst.currentMonth, inst.currentDay))); return this.formatDate(this._get(inst, "dateFormat"), date, this._getFormatConfig(inst)) } }); function extendRemove(target, props) { $.extend(target, props); for (var name in props) { if (props[name] == null || props[name] == undefined) { target[name] = props[name] } } return target } function isArray(a) { return (a && (($.browser.safari && typeof a == "object" && a.length) || (a.constructor && a.constructor.toString().match(/\Array\(\)/)))) } $.fn.datepicker = function(options) { if (!$.datepicker.initialized) { $(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv); $.datepicker.initialized = true } var otherArgs = Array.prototype.slice.call(arguments, 1); if (typeof options == "string" && (options == "isDisabled" || options == "getDate")) { return $.datepicker["_" + options + "Datepicker"].apply($.datepicker, [this[0]].concat(otherArgs)) } if (options == "option" && arguments.length == 2 && typeof arguments[1] == "string") { return $.datepicker["_" + options + "Datepicker"].apply($.datepicker, [this[0]].concat(otherArgs)) } return this.each(function() { typeof options == "string" ? $.datepicker["_" + options + "Datepicker"].apply($.datepicker, [this].concat(otherArgs)) : $.datepicker._attachDatepicker(this, options) }) }; $.datepicker = new Datepicker(); $.datepicker.initialized = false; $.datepicker.uuid = new Date().getTime(); $.datepicker.version = "1.7.2"; window.DP_jQuery = $ })(jQuery);;(function($) {function hoverFade(elem,conf) {var self=this;elem=$j(elem);jQuery.extend(self,{getVersion:function() {return [1,0,0];},getParent:function() {return elem;}});elem.hover(function() {if(conf) elem.toggleClass(conf.classCurrent);var fade=$j('>.hover',elem);if(fade.is(':animated')) {fade.stop().fadeTo(conf.speed,1,function() { fade.show().css("opacity",1); });} else {fade.fadeIn(conf.speed);}},function() {if(conf) elem.toggleClass(conf.classCurrent);var fade=$j('>.hover',elem);if(fade.is(':animated')) {fade.stop().fadeTo(conf.speed,0,function() { fade.hide().css("opacity",1); });} else {fade.fadeOut(conf.speed);}});}jQuery.fn.hoverFade=function(conf) {var api=jQuery(this).eq(typeof conf=='number' ? conf:0).data("hoverFade");var defaultConf={speed:200,classCurrent:null}jQuery.extend(defaultConf,conf);this.each(function() {var el=new hoverFade(jQuery(this),defaultConf);jQuery(this).data("hoverFade",el);});return this;};function imgRollover(elem,conf) {var self=this;elem=$j(elem);jQuery.extend(self,{getVersion:function() {return [1,0,0];},getParent:function() {return elem;}});elem.each(function() {if($j(this).hasClass(conf.classNoOffect)) return;var height=parseInt($j($j(this).parents(conf.parent)[0]).css("height")) - 1;var elheight=(conf.elheight==null) ? parseInt($j(this).css("height")):conf.elheight;var heightStart=(conf.heightStart==null) ? parseInt($j(this).css("top")):conf.heightStart;$j(this).hover(function() {if($j(this).is(':animated')) {$j(this).stop().animate({ top:"0px",height:height + "px" },conf.speed,conf.openCb);} else {$j(this).animate({ top:"0px",height:height + "px" },conf.speed,conf.openCb);};if(typeof conf.opening==='function') {conf.opening($j(this));}},function() {if($j(this).is(':animated')) {$j(this).stop().animate({ top:heightStart + "px",height:elheight + "px" },conf.speed,conf.closeCb);} else {$j(this).animate({ top:heightStart + "px",height:elheight + "px" },conf.speed,conf.closeCb);};if(typeof conf.closing==='function') {conf.closing($j(this));}});});}jQuery.fn.imgRollover=function(conf) {var api=jQuery(this).eq(typeof conf=='number' ? conf:0).data("imgRollover");var defaultConf={speed:100,classNoOffect:'noeffect',parent:'div.vThumbContainer',comment:'div.vComment',title:'div.vTitle',openCb:null,closeCb:null,heightStart:null,elheight:null}jQuery.extend(defaultConf,conf);function GetLineHeight(obj) {return obj.height() / parseInt(obj.css('lineHeight').replace('px',''));}function stringCut(s,len) {if(s.length>len) {var str=s.substr(0,len);return str.substr(0,str.lastIndexOf(" ")) + '...';}}this.each(function() {try {var hideClass=$j(this).hasClass('hideComment');if(hideClass) {var t=$j(defaultConf.title,this);var c=$j(defaultConf.comment,this);var titleLines=GetLineHeight(t);var commentLines=GetLineHeight(c);if(typeof commentLines==='number'&&typeof titleLines==='number') {var chr;switch (titleLines) {case 1:chr=135;break;case 2:chr=110;break;default:chr=100;}var s=stringCut($j(defaultConf.comment,this).text(),chr);$j(defaultConf.comment,this).text(s);}}} catch (e) { }var el=new imgRollover(jQuery(this),defaultConf);jQuery(this).data("imgRollover",el);});return this;};function uefaLive(elem,conf) {var self=this;var timerid;elem=$j(elem);jQuery.extend(self,{getVersion:function() {return [1,0,0];},getParent:function() {return elem;},getTimeout:function() {return conf.timeout;},setConfig:function(data) {jQuery.extend(conf,data);},stop:function() {clearTimeout(conf.timerid);},start:function(data) {clearTimeout(conf.timerid);if(data) { jQuery.extend(conf,data); };if(conf.timeout>0) {conf.timerid=setTimeout(self.checkVersion,conf.timeout);console.debug('new timeout:' + conf.timeout);} else {console.debug('live stopped');};},checkVersion:function() {clearTimeout(conf.timerid);$j.ajax({type:"GET",cache:false,url:conf.urlcheck,dataType:'json',success:function(data) {if(conf.timestamp!=data.timestamp) {jQuery.extend(conf,data);self.refresh();} else {jQuery.extend(conf,data);if(conf.timeout>0) {conf.timerid=setTimeout(self.checkVersion,conf.timeout);};};conf.callbackCheck(data);}});},refresh:function() {if(conf.urlcheck=='') clearTimeout(conf.timerid);if(conf.urlget!='') {$j.ajax({type:"GET",cache:false,url:conf.urlget,success:function(html) {conf.callback(elem,html);if(conf.timeout>0) {if(conf.urlcheck!='')conf.timerid=setTimeout(self.checkVersion,conf.timeout);elseconf.timerid=setTimeout(self.refresh,conf.timeout);};}});};},restart:function() {clearTimeout(conf.timerid);conf.timerid=setTimeout(self.refresh,conf.timeout);}});if(conf.timeout>0) {if(conf.urlcheck!='')conf.timerid=setTimeout(self.checkVersion,conf.timeout);elseself.refresh();};return this;}jQuery.fn.uefaLive=function(conf) {var api=jQuery(this).eq(typeof conf=='number' ? conf:0).data("uefaLive");if(api) return api;var defaultConf={timestamp:'',     timeout:0,      urlcheck:'',     urlget:'',      timerid:0,      callbackCheck:function(data) { },callback:function(elem,html) {  elem.html($j(html).html());}}jQuery.extend(defaultConf,conf);this.each(function() {var el=new uefaLive(jQuery(this),defaultConf);jQuery(this).data("uefaLive",el);});return this;}})();var swfobject = function() { var D = "undefined", r = "object", S = "Shockwave Flash", W = "ShockwaveFlash.ShockwaveFlash", q = "application/x-shockwave-flash", R = "SWFObjectExprInst", x = "onreadystatechange", O = window, j = document, t = navigator, T = false, U = [h], o = [], N = [], I = [], l, Q, E, B, J = false, a = false, n, G, m = true, M = function() { var aa = typeof j.getElementById != D && typeof j.getElementsByTagName != D && typeof j.createElement != D, ah = t.userAgent.toLowerCase(), Y = t.platform.toLowerCase(), ae = Y ? /win/.test(Y) : /win/.test(ah), ac = Y ? /mac/.test(Y) : /mac/.test(ah), af = /webkit/.test(ah) ? parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/, "$1")) : false, X = ! +"\v1", ag = [0, 0, 0], ab = null; if (typeof t.plugins != D && typeof t.plugins[S] == r) { ab = t.plugins[S].description; if (ab && !(typeof t.mimeTypes != D && t.mimeTypes[q] && !t.mimeTypes[q].enabledPlugin)) { T = true; X = false; ab = ab.replace(/^.*\s+(\S+\s+\S+$)/, "$1"); ag[0] = parseInt(ab.replace(/^(.*)\..*$/, "$1"), 10); ag[1] = parseInt(ab.replace(/^.*\.(.*)\s.*$/, "$1"), 10); ag[2] = /[a-zA-Z]/.test(ab) ? parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/, "$1"), 10) : 0 } } else { if (typeof O.ActiveXObject != D) { try { var ad = new ActiveXObject(W); if (ad) { ab = ad.GetVariable("$version"); if (ab) { X = true; ab = ab.split(" ")[1].split(","); ag = [parseInt(ab[0], 10), parseInt(ab[1], 10), parseInt(ab[2], 10)] } } } catch (Z) { } } } return { w3: aa, pv: ag, wk: af, ie: X, win: ae, mac: ac} } (), k = function() { if (!M.w3) { return } if ((typeof j.readyState != D && j.readyState == "complete") || (typeof j.readyState == D && (j.getElementsByTagName("body")[0] || j.body))) { f() } if (!J) { if (typeof j.addEventListener != D) { j.addEventListener("DOMContentLoaded", f, false) } if (M.ie && M.win) { j.attachEvent(x, function() { if (j.readyState == "complete") { j.detachEvent(x, arguments.callee); f() } }); if (O == top) { (function() { if (J) { return } try { j.documentElement.doScroll("left") } catch (X) { setTimeout(arguments.callee, 0); return } f() })() } } if (M.wk) { (function() { if (J) { return } if (!/loaded|complete/.test(j.readyState)) { setTimeout(arguments.callee, 0); return } f() })() } s(f) } } (); function f() { if (J) { return } try { var Z = j.getElementsByTagName("body")[0].appendChild(C("span")); Z.parentNode.removeChild(Z) } catch (aa) { return } J = true; var X = U.length; for (var Y = 0; Y < X; Y++) { U[Y]() } } function K(X) { if (J) { X() } else { U[U.length] = X } } function s(Y) { if (typeof O.addEventListener != D) { O.addEventListener("load", Y, false) } else { if (typeof j.addEventListener != D) { j.addEventListener("load", Y, false) } else { if (typeof O.attachEvent != D) { i(O, "onload", Y) } else { if (typeof O.onload == "function") { var X = O.onload; O.onload = function() { X(); Y() } } else { O.onload = Y } } } } } function h() { if (T) { V() } else { H() } } function V() { var X = j.getElementsByTagName("body")[0]; var aa = C(r); aa.setAttribute("type", q); var Z = X.appendChild(aa); if (Z) { var Y = 0; (function() { if (typeof Z.GetVariable != D) { var ab = Z.GetVariable("$version"); if (ab) { ab = ab.split(" ")[1].split(","); M.pv = [parseInt(ab[0], 10), parseInt(ab[1], 10), parseInt(ab[2], 10)] } } else { if (Y < 10) { Y++; setTimeout(arguments.callee, 10); return } } X.removeChild(aa); Z = null; H() })() } else { H() } } function H() { var ag = o.length; if (ag > 0) { for (var af = 0; af < ag; af++) { var Y = o[af].id; var ab = o[af].callbackFn; var aa = { success: false, id: Y }; if (M.pv[0] > 0) { var ae = c(Y); if (ae) { if (F(o[af].swfVersion) && !(M.wk && M.wk < 312)) { w(Y, true); if (ab) { aa.success = true; aa.ref = z(Y); ab(aa) } } else { if (o[af].expressInstall && A()) { var ai = {}; ai.data = o[af].expressInstall; ai.width = ae.getAttribute("width") || "0"; ai.height = ae.getAttribute("height") || "0"; if (ae.getAttribute("class")) { ai.styleclass = ae.getAttribute("class") } if (ae.getAttribute("align")) { ai.align = ae.getAttribute("align") } var ah = {}; var X = ae.getElementsByTagName("param"); var ac = X.length; for (var ad = 0; ad < ac; ad++) { if (X[ad].getAttribute("name").toLowerCase() != "movie") { ah[X[ad].getAttribute("name")] = X[ad].getAttribute("value") } } P(ai, ah, Y, ab) } else { p(ae); if (ab) { ab(aa) } } } } } else { w(Y, true); if (ab) { var Z = z(Y); if (Z && typeof Z.SetVariable != D) { aa.success = true; aa.ref = Z } ab(aa) } } } } } function z(aa) { var X = null; var Y = c(aa); if (Y && Y.nodeName == "OBJECT") { if (typeof Y.SetVariable != D) { X = Y } else { var Z = Y.getElementsByTagName(r)[0]; if (Z) { X = Z } } } return X } function A() { return !a && F("6.0.65") && (M.win || M.mac) && !(M.wk && M.wk < 312) } function P(aa, ab, X, Z) { a = true; E = Z || null; B = { success: false, id: X }; var ae = c(X); if (ae) { if (ae.nodeName == "OBJECT") { l = g(ae); Q = null } else { l = ae; Q = X } aa.id = R; if (typeof aa.width == D || (!/%$/.test(aa.width) && parseInt(aa.width, 10) < 310)) { aa.width = "310" } if (typeof aa.height == D || (!/%$/.test(aa.height) && parseInt(aa.height, 10) < 137)) { aa.height = "137" } j.title = j.title.slice(0, 47) + " - Flash Player Installation"; var ad = M.ie && M.win ? "ActiveX" : "PlugIn", ac = "MMredirectURL=" + O.location.toString().replace(/&/g, "%26") + "&MMplayerType=" + ad + "&MMdoctitle=" + j.title; if (typeof ab.flashvars != D) { ab.flashvars += "&" + ac } else { ab.flashvars = ac } if (M.ie && M.win && ae.readyState != 4) { var Y = C("div"); X += "SWFObjectNew"; Y.setAttribute("id", X); ae.parentNode.insertBefore(Y, ae); ae.style.display = "none"; (function() { if (ae.readyState == 4) { ae.parentNode.removeChild(ae) } else { setTimeout(arguments.callee, 10) } })() } u(aa, ab, X) } } function p(Y) { if (M.ie && M.win && Y.readyState != 4) { var X = C("div"); Y.parentNode.insertBefore(X, Y); X.parentNode.replaceChild(g(Y), X); Y.style.display = "none"; (function() { if (Y.readyState == 4) { Y.parentNode.removeChild(Y) } else { setTimeout(arguments.callee, 10) } })() } else { Y.parentNode.replaceChild(g(Y), Y) } } function g(ab) { var aa = C("div"); if (M.win && M.ie) { aa.innerHTML = ab.innerHTML } else { var Y = ab.getElementsByTagName(r)[0]; if (Y) { var ad = Y.childNodes; if (ad) { var X = ad.length; for (var Z = 0; Z < X; Z++) { if (!(ad[Z].nodeType == 1 && ad[Z].nodeName == "PARAM") && !(ad[Z].nodeType == 8)) { aa.appendChild(ad[Z].cloneNode(true)) } } } } } return aa } function u(ai, ag, Y) { var X, aa = c(Y); if (M.wk && M.wk < 312) { return X } if (aa) { if (typeof ai.id == D) { ai.id = Y } if (M.ie && M.win) { var ah = ""; for (var ae in ai) { if (ai[ae] != Object.prototype[ae]) { if (ae.toLowerCase() == "data") { ag.movie = ai[ae] } else { if (ae.toLowerCase() == "styleclass") { ah += ' class="' + ai[ae] + '"' } else { if (ae.toLowerCase() != "classid") { ah += " " + ae + '="' + ai[ae] + '"' } } } } } var af = ""; for (var ad in ag) { if (ag[ad] != Object.prototype[ad]) { af += '<param name="' + ad + '" value="' + ag[ad] + '" />' } } aa.outerHTML = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"' + ah + ">" + af + "</object>"; N[N.length] = ai.id; X = c(ai.id) } else { var Z = C(r); Z.setAttribute("type", q); for (var ac in ai) { if (ai[ac] != Object.prototype[ac]) { if (ac.toLowerCase() == "styleclass") { Z.setAttribute("class", ai[ac]) } else { if (ac.toLowerCase() != "classid") { Z.setAttribute(ac, ai[ac]) } } } } for (var ab in ag) { if (ag[ab] != Object.prototype[ab] && ab.toLowerCase() != "movie") { e(Z, ab, ag[ab]) } } aa.parentNode.replaceChild(Z, aa); X = Z } } return X } function e(Z, X, Y) { var aa = C("param"); aa.setAttribute("name", X); aa.setAttribute("value", Y); Z.appendChild(aa) } function y(Y) { var X = c(Y); if (X && X.nodeName == "OBJECT") { if (M.ie && M.win) { X.style.display = "none"; (function() { if (X.readyState == 4) { b(Y) } else { setTimeout(arguments.callee, 10) } })() } else { X.parentNode.removeChild(X) } } } function b(Z) { var Y = c(Z); if (Y) { for (var X in Y) { if (typeof Y[X] == "function") { Y[X] = null } } Y.parentNode.removeChild(Y) } } function c(Z) { var X = null; try { X = j.getElementById(Z) } catch (Y) { } return X } function C(X) { return j.createElement(X) } function i(Z, X, Y) { Z.attachEvent(X, Y); I[I.length] = [Z, X, Y] } function F(Z) { var Y = M.pv, X = Z.split("."); X[0] = parseInt(X[0], 10); X[1] = parseInt(X[1], 10) || 0; X[2] = parseInt(X[2], 10) || 0; return (Y[0] > X[0] || (Y[0] == X[0] && Y[1] > X[1]) || (Y[0] == X[0] && Y[1] == X[1] && Y[2] >= X[2])) ? true : false } function v(ac, Y, ad, ab) { if (M.ie && M.mac) { return } var aa = j.getElementsByTagName("head")[0]; if (!aa) { return } var X = (ad && typeof ad == "string") ? ad : "screen"; if (ab) { n = null; G = null } if (!n || G != X) { var Z = C("style"); Z.setAttribute("type", "text/css"); Z.setAttribute("media", X); n = aa.appendChild(Z); if (M.ie && M.win && typeof j.styleSheets != D && j.styleSheets.length > 0) { n = j.styleSheets[j.styleSheets.length - 1] } G = X } if (M.ie && M.win) { if (n && typeof n.addRule == r) { n.addRule(ac, Y) } } else { if (n && typeof j.createTextNode != D) { n.appendChild(j.createTextNode(ac + " {" + Y + "}")) } } } function w(Z, X) { if (!m) { return } var Y = X ? "visible" : "hidden"; if (J && c(Z)) { c(Z).style.visibility = Y } else { v("#" + Z, "visibility:" + Y) } } function L(Y) { var Z = /[\\\"<>\.;]/; var X = Z.exec(Y) != null; return X && typeof encodeURIComponent != D ? encodeURIComponent(Y) : Y } var d = function() { if (M.ie && M.win) { window.attachEvent("onunload", function() { var ac = I.length; for (var ab = 0; ab < ac; ab++) { I[ab][0].detachEvent(I[ab][1], I[ab][2]) } var Z = N.length; for (var aa = 0; aa < Z; aa++) { y(N[aa]) } for (var Y in M) { M[Y] = null } M = null; for (var X in swfobject) { swfobject[X] = null } swfobject = null }) } } (); return { registerObject: function(ab, X, aa, Z) { if (M.w3 && ab && X) { var Y = {}; Y.id = ab; Y.swfVersion = X; Y.expressInstall = aa; Y.callbackFn = Z; o[o.length] = Y; w(ab, false) } else { if (Z) { Z({ success: false, id: ab }) } } }, getObjectById: function(X) { if (M.w3) { return z(X) } }, embedSWF: function(ab, ah, ae, ag, Y, aa, Z, ad, af, ac) { var X = { success: false, id: ah }; if (M.w3 && !(M.wk && M.wk < 312) && ab && ah && ae && ag && Y) { w(ah, false); K(function() { ae += ""; ag += ""; var aj = {}; if (af && typeof af === r) { for (var al in af) { aj[al] = af[al] } } aj.data = ab; aj.width = ae; aj.height = ag; var am = {}; if (ad && typeof ad === r) { for (var ak in ad) { am[ak] = ad[ak] } } if (Z && typeof Z === r) { for (var ai in Z) { if (typeof am.flashvars != D) { am.flashvars += "&" + ai + "=" + Z[ai] } else { am.flashvars = ai + "=" + Z[ai] } } } if (F(Y)) { var an = u(aj, am, ah); if (aj.id == ah) { w(ah, true) } X.success = true; X.ref = an } else { if (aa && A()) { aj.data = aa; P(aj, am, ah, ac); return } else { w(ah, true) } } if (ac) { ac(X) } }) } else { if (ac) { ac(X) } } }, switchOffAutoHideShow: function() { m = false }, ua: M, getFlashPlayerVersion: function() { return { major: M.pv[0], minor: M.pv[1], release: M.pv[2]} }, hasFlashPlayerVersion: F, createSWF: function(Z, Y, X) { if (M.w3) { return u(Z, Y, X) } else { return undefined } }, showExpressInstall: function(Z, aa, X, Y) { if (M.w3 && A()) { P(Z, aa, X, Y) } }, removeSWF: function(X) { if (M.w3) { y(X) } }, createCSS: function(aa, Z, Y, X) { if (M.w3) { v(aa, Z, Y, X) } }, addDomLoadEvent: K, addLoadEvent: s, getQueryParamValue: function(aa) { var Z = j.location.search || j.location.hash; if (Z) { if (/\?/.test(Z)) { Z = Z.split("?")[1] } if (aa == null) { return L(Z) } var Y = Z.split("&"); for (var X = 0; X < Y.length; X++) { if (Y[X].substring(0, Y[X].indexOf("=")) == aa) { return L(Y[X].substring((Y[X].indexOf("=") + 1))) } } } return "" }, expressInstallCallback: function() { if (a) { var X = c(R); if (X && l) { X.parentNode.replaceChild(l, X); if (Q) { w(Q, true); if (M.ie && M.win) { l.style.display = "block" } } if (E) { E(B) } } a = false } } } } ();/*--------------------------*//*js Draw.... da vedere AD *//*--------------------------*/if (typeof deconcept == "undefined") { var deconcept = new Object(); }if (typeof deconcept.util == "undefined") { deconcept.util = new Object(); }if (typeof deconcept.SWFObjectUtil == "undefined") { deconcept.SWFObjectUtil = new Object(); }deconcept.SWFObject = function(_1, id, w, h, _5, c, _7, _8, _9, _a, _b) {if (!document.createElement || !document.getElementById) { return; }this.DETECT_KEY = _b ? _b : "detectflash";this.skipDetect = deconcept.util.getRequestParameter(this.DETECT_KEY);this.params = new Object();this.variables = new Object();this.attributes = new Array();if (_1) { this.setAttribute("swf", _1); }if (id) { this.setAttribute("id", id); }if (id) { this.setAttribute("name", name); }if (w) { this.setAttribute("width", w); }if (h) { this.setAttribute("height", h); }if (_5) { this.setAttribute("version", new deconcept.PlayerVersion(_5.toString().split("."))); }this.installedVer = deconcept.SWFObjectUtil.getPlayerVersion(this.getAttribute("version"), _7);if (c) { this.addParam("bgcolor", c); }var q = _8 ? _8 : "high";this.addParam("quality", q);this.addParam('BASE', '.');this.setAttribute("useExpressInstall", _7);this.setAttribute("doExpressInstall", false);var _d = (_9) ? _9 : window.location;this.setAttribute("xiRedirectUrl", _d);this.setAttribute("redirectUrl", "");if (_a) { this.setAttribute("redirectUrl", _a); }};deconcept.SWFObject.prototype = { setAttribute: function(_e, _f) {this.attributes[_e] = _f;}, getAttribute: function(_10) {return this.attributes[_10];}, addParam: function(_11, _12) {this.params[_11] = _12;}, getParams: function() {return this.params;}, addVariable: function(_13, _14) {this.variables[_13] = _14;}, getVariable: function(_15) {return this.variables[_15];}, getVariables: function() {return this.variables;}, getVariablePairs: function() {var _16 = new Array();var key;var _18 = this.getVariables();for (key in _18) {_16.push(key + "=" + _18[key]);}return _16;}, getSWFHTML: function() {var _19 = "";if (navigator.plugins && navigator.mimeTypes && navigator.mimeTypes.length) {if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "PlugIn"); }_19 = "<embed type=\"application/x-shockwave-flash\" allowFullScreen=\"true\" src=\"" + this.getAttribute("swf") + "\" width=\"" + this.getAttribute("width") + "\" height=\"" + this.getAttribute("height") + "\"";_19 += " id=\"" + this.getAttribute("id") + "\" name=\"" + this.getAttribute("id") + "\" ";var _1a = this.getParams();for (var key in _1a) { _19 += [key] + "=\"" + _1a[key] + "\" "; }var _1c = this.getVariablePairs().join("&");if (_1c.length > 0) { _19 += "flashvars=\"" + _1c + "\""; }_19 += "/>";} else {if (this.getAttribute("doExpressInstall")) { this.addVariable("MMplayerType", "ActiveX"); }_19 = "<object id=\"" + this.getAttribute("id") + "\" name=\"" + this.getAttribute("name") + "\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"" + this.getAttribute("width") + "\" height=\"" + this.getAttribute("height") + "\">";_19 += "<param name=\"movie\" value=\"" + this.getAttribute("swf") + "\" />";_19 += "<param name=\"name\" value=\"" + this.getAttribute("id") + "\" />";var _1d = this.getParams();for (var key in _1d) { _19 += "<param name=\"" + key + "\" value=\"" + _1d[key] + "\" />"; }var _1f = this.getVariablePairs().join("&");if (_1f.length > 0) { _19 += "<param name=\"flashvars\" value=\"" + _1f + "\" />"; }_19 += "<param name=\"allowFullScreen\" value=\"true\" />";_19 += "</object>";}return _19;}, write: function(_20) {if (this.getAttribute("useExpressInstall")) {var _21 = new deconcept.PlayerVersion([6, 0, 65]);if (this.installedVer.versionIsValid(_21) && !this.installedVer.versionIsValid(this.getAttribute("version"))) {this.setAttribute("doExpressInstall", true);this.addVariable("MMredirectURL", escape(this.getAttribute("xiRedirectUrl")));document.title = document.title.slice(0, 47) + " - Flash Player Installation";this.addVariable("MMdoctitle", document.title);}}if (this.skipDetect || this.getAttribute("doExpressInstall") || this.installedVer.versionIsValid(this.getAttribute("version"))) {var n = (typeof _20 == "string") ? document.getElementById(_20) : _20;n.innerHTML = this.getSWFHTML();return true;} else {if (this.getAttribute("redirectUrl") != "") { document.location.replace(this.getAttribute("redirectUrl")); }}return false;}};deconcept.SWFObjectUtil.getPlayerVersion = function(_23, _24) {var _25 = new deconcept.PlayerVersion([0, 0, 0]);if (navigator.plugins && navigator.mimeTypes.length) {var x = navigator.plugins["Shockwave Flash"];if (x && x.description) { _25 = new deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/, "").replace(/(\s+r|\s+b[0-9]+)/, ".").split(".")); }} else {try {var axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash");for (var i = 3; axo != null; i++) {axo = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i);_25 = new deconcept.PlayerVersion([i, 0, 0]);}}catch (e) { }if (_23 && _25.major > _23.major) { return _25; }if (!_23 || ((_23.minor != 0 || _23.rev != 0) && _25.major == _23.major) || _25.major != 6 || _24) {try { _25 = new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(",")); }catch (e) { }}}return _25;};deconcept.PlayerVersion = function(_29) {this.major = parseInt(_29[0]) != null ? parseInt(_29[0]) : 0;this.minor = parseInt(_29[1]) || 0;this.rev = parseInt(_29[2]) || 0;};deconcept.PlayerVersion.prototype.versionIsValid = function(fv) {if (this.major < fv.major) { return false; }if (this.major > fv.major) { return true; }if (this.minor < fv.minor) { return false; }if (this.minor > fv.minor) { return true; }if (this.rev < fv.rev) { return false; } return true;};deconcept.util = { getRequestParameter: function(_2b) {var q = document.location.search || document.location.hash;if (q) {var _2d = q.indexOf(_2b + "=");var _2e = (q.indexOf("&", _2d) > -1) ? q.indexOf("&", _2d) : q.length;if (q.length > 1 && _2d > -1) {return q.substring(q.indexOf("=", _2d) + 1, _2e);}} return "";}};if (Array.prototype.push == null) {Array.prototype.push = function(_2f) {this[this.length] = _2f;return this.length;};}var getQueryParamValue = deconcept.util.getRequestParameter;var FlashObject = deconcept.SWFObject; // for backwards compatibilityvar SWFObject = deconcept.SWFObject;function openVideo(p_url) {//NewWindow=window.open(p_url,"mcAudio","width=810,height=520,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No");NewWindow = window.open(p_url, "mcAudio", "width=848,height=610,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No");if (navigator.userAgent.indexOf('Firefox') != -1) {//setTimeout("NewWindow.close()",1000);}//NewWindow.focus();void (0);//alert("Video " + p_url) ;}function openAudio(p_url) {//NewWindow=window.open(p_url,"mcAudio","width=810,height=520,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No");NewWindow = window.open(p_url, "mcAudio", "width=848,height=610,left=0,top=0,toolbar=No,location=No,scrollbars=No,status=No,resizable=No,fullscreen=No");if (navigator.userAgent.indexOf('Firefox') != -1) {//setTimeout("NewWindow.close()",1000);}//NewWindow.focus();void (0);//alert("Audio " + p_url) ;}/*--------------------------*//*--------------------------*//*--------------------------*//*--------------------------*/(function($) {$.fn.jc=function(o) {return this.each(function() {new $jc(this,o);});};var defaults={vertical:false,start:1,offset:1,size:null,scroll:3,visible:null,animation:'normal',easing:'swing',auto:0,wrap:null,initCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null,itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,buttonNextHTML:'<div></div>',buttonPrevHTML:'<div></div>',buttonNextEvent:'click',buttonPrevEvent:'click',buttonNextCallback:null,buttonPrevCallback:null,forceSetup:false};$.jc=function(e,o) {this.options=$.extend({},defaults,o||{});this.locked=false;this.container=null;this.clip=null;this.list=null;this.buttonNext=null;this.buttonPrev=null;this.wh=!this.options.vertical ? 'width':'height';this.lt=!this.options.vertical ? 'left':'top';var skin='',split=e.className.split(' ');for (var i=0; i<split.length; i++) {if(split[i].indexOf('jc-skin')!=-1) {$(e).removeClass(split[i]);var skin=split[i];break;}}if(e.nodeName=='UL'||e.nodeName=='OL') {this.list=$(e);this.container=this.list.parent();if(this.container.hasClass('jc-clip')) {if(!this.container.parent().hasClass('jc-cont'))this.container=this.container.wrap('<div></div>');this.container=this.container.parent();} else if(!this.container.hasClass('jc-cont'))this.container=this.list.wrap('<div></div>').parent();} else {this.container=$(e);this.list=$(e).find('>ul,>ol,div>ul,div>ol');}if(skin!=''&&this.container.parent()[0].className.indexOf('jc-skin')==-1)this.container.wrap('<div class=" ' + skin + '"></div>');this.clip=this.list.parent();if(!this.clip.length||!this.clip.hasClass('jc-clip'))this.clip=this.list.wrap('<div></div>').parent();this.buttonPrev=$('.jc-prev',this.container);if(this.buttonPrev.size()==0&&this.options.buttonPrevHTML!=null)this.buttonPrev=this.clip.before(this.options.buttonPrevHTML).prev();this.buttonPrev.addClass(this.className('jc-prev'));this.buttonNext=$('.jc-next',this.container);if(this.buttonNext.size()==0&&this.options.buttonNextHTML!=null)this.buttonNext=this.clip.before(this.options.buttonNextHTML).prev();this.buttonNext.addClass(this.className('jc-next'));this.clip.addClass(this.className('jc-clip'));this.list.addClass(this.className('jc-list'));this.container.addClass(this.className('jc-cont'));var di=this.options.visible!=null ? Math.ceil(this.clipping() / this.options.visible):null;var li=this.list.children('li');var self=this;if(li.size()>0) {var wh=0,i=this.options.offset;li.each(function() {self.format(this,i++);wh += self.dimension(this,di);});this.list.css(this.wh,wh + 'px');if(!o||o.size===undefined)this.options.size=li.size();}this.container.css('display','block');this.buttonNext.css('display','block');this.buttonPrev.css('display','block');this.funcNext=function() { self.next(); };this.funcPrev=function() { self.prev(); };this.funcResize=function() { self.reload(); };if(this.options.initCallback!=null)this.options.initCallback(this,'init');if($.browser.safari) {this.buttons(false,false);if(this.options.forceSetup)self.setup();else$(window).bind('load',function() { self.setup(); });} elsethis.setup();};var $jc=$.jc;$jc.fn=$jc.prototype={jc:'0.2.3'};$jc.fn.extend=$jc.extend=$.extend;$jc.fn.extend({setup:function() {this.first=null;this.last=null;this.prevFirst=null;this.prevLast=null;this.animating=false;this.timer=null;this.tail=null;this.inTail=false;if(this.locked)return;this.list.css(this.lt,this.pos(this.options.offset) + 'px');var p=this.pos(this.options.start);this.prevFirst=this.prevLast=null;this.animate(p,false);$(window).unbind('resize',this.funcResize).bind('resize',this.funcResize);},reset:function() {this.list.empty();this.list.css(this.lt,'0px');this.list.css(this.wh,'10px');if(this.options.initCallback!=null)this.options.initCallback(this,'reset');this.setup();},reload:function() {if(this.tail!=null&&this.inTail)this.list.css(this.lt,$jc.intval(this.list.css(this.lt)) + this.tail);this.tail=null;this.inTail=false;if(this.options.reloadCallback!=null)this.options.reloadCallback(this);if(this.options.visible!=null) {var self=this;var di=Math.ceil(this.clipping() / this.options.visible),wh=0,lt=0;$('li',this.list).each(function(i) {wh += self.dimension(this,di);if(i + 1<self.first)lt=wh;});this.list.css(this.wh,wh + 'px');this.list.css(this.lt,-lt + 'px');}this.scroll(this.first,false);},lock:function() {this.locked=true;this.buttons();},unlock:function() {this.locked=false;this.buttons();},size:function(s) {if(s!=undefined) {this.options.size=s;if(!this.locked)this.buttons();}return this.options.size;},has:function(i,i2) {if(i2==undefined||!i2)i2=i;if(this.options.size!==null&&i2>this.options.size)i2=this.options.size;for (var j=i; j<=i2; j++) {var e=this.get(j);if(!e.length||e.hasClass('jc-item-placeholder'))return false;}return true;},get:function(i) {return $('.jc-item-' + i,this.list);},add:function(i,s) {var e=this.get(i),old=0,add=0;if(e.length==0) {var c,e=this.create(i),j=$jc.intval(i);while (c=this.get(--j)) {if(j<=0||c.length) {j<=0 ? this.list.prepend(e):c.after(e);break;}}} elseold=this.dimension(e);e.removeClass(this.className('jc-item-placeholder'));typeof s=='string' ? e.html(s):e.empty().append(s);var di=this.options.visible!=null ? Math.ceil(this.clipping() / this.options.visible):null;var wh=this.dimension(e,di) - old;if(i>0&&i<this.first)this.list.css(this.lt,$jc.intval(this.list.css(this.lt)) - wh + 'px');this.list.css(this.wh,$jc.intval(this.list.css(this.wh)) + wh + 'px');return e;},remove:function(i) {var e=this.get(i);if(!e.length||(i>=this.first&&i<=this.last))return;var d=this.dimension(e);if(i<this.first)this.list.css(this.lt,$jc.intval(this.list.css(this.lt)) + d + 'px');e.remove();this.list.css(this.wh,$jc.intval(this.list.css(this.wh)) - d + 'px');},next:function() {this.stopAuto();if(this.tail!=null&&!this.inTail) {this.scrollTail(false);}else {this.scroll(((this.options.wrap=='both'||this.options.wrap=='last')&&this.options.size!=null&&this.last==this.options.size) ? 1:this.first + this.options.scroll);}},prev:function() {this.stopAuto();if(this.tail!=null&&this.inTail)this.scrollTail(true);elsethis.scroll(((this.options.wrap=='both'||this.options.wrap=='first')&&this.options.size!=null&&this.first==1) ? this.options.size:this.first - this.options.scroll);},scrollTail:function(b) {if(this.locked||this.animating||!this.tail)return;var pos=$jc.intval(this.list.css(this.lt));!b ? pos -= this.tail:pos += this.tail;this.inTail=!b;this.prevFirst=this.first;this.prevLast=this.last;this.animate(pos);},scroll:function(i,a) {if(this.locked||this.animating)return;this.animate(this.pos(i),a);},pos:function(i) {if(this.locked||this.animating)return;i=$jc.intval(i);if(this.options.wrap!='circular')i=i<1 ? 1:(this.options.size&&i>this.options.size ? this.options.size:i);var back=this.first>i;var pos=$jc.intval(this.list.css(this.lt));var f=this.options.wrap!='circular'&&this.first<=1 ? 1:this.first;var c=back ? this.get(f):this.get(this.last);var j=back ? f:f - 1;var e=null,l=0,p=false,d=0;while (back ? --j>=i:++j<i) {e=this.get(j);p=!e.length;if(e.length==0) {e=this.create(j).addClass(this.className('jc-item-placeholder'));c[back ? 'before':'after'](e);}c=e;d=this.dimension(e);if(p)l += d;if(this.first!=null&&(this.options.wrap=='circular'||(j>=1&&(this.options.size==null||j<=this.options.size))))pos=back ? pos + d:pos - d;}var clipping=this.clipping();var cache=[];var visible=0,j=i,v=0;var c=this.get(i - 1);while (++visible) {e=this.get(j);p=!e.length;if((e.length==0)) {e=this.create(j).addClass(this.className('jc-item-placeholder'));c.length==0 ? this.list.prepend(e):c[back ? 'before':'after'](e);}c=e;var d=this.dimension(e);if(d==0) {this.options.wrap=null;return 0;}if(this.options.wrap!='circular'&&this.options.size!==null&&j>this.options.size)cache.push(e);else if(p)l += d;v += d;if(v>=clipping)break;j++;}for (var x=0; x<cache.length; x++)cache[x].remove();if(l>0) {this.list.css(this.wh,this.dimension(this.list) + l + 'px');if(back) {pos -= l;this.list.css(this.lt,$jc.intval(this.list.css(this.lt)) - l + 'px');}}var last=i + visible - 1;if(this.options.wrap!='circular'&&this.options.size&&last>this.options.size)last=this.options.size;if(j>last) {visible=0,j=last,v=0;while (++visible) {var e=this.get(j--);if(!e.length)break;v += this.dimension(e);if(v>=clipping)break;}}var first=last - visible + 1;if(this.options.wrap!='circular'&&first<1)first=1;if(this.inTail&&back) {pos += this.tail;this.inTail=false;}this.tail=null;if(this.options.wrap!='circular'&&last==this.options.size&&(last - visible + 1)>=1) {var m=$jc.margin(this.get(last),!this.options.vertical ? 'marginRight':'marginBottom');if((v - m)>clipping)this.tail=v - clipping - m;}while (i-->first)pos += this.dimension(this.get(i));this.prevFirst=this.first;this.prevLast=this.last;this.first=first;this.last=last;return pos;},animate:function(p,a) {if(this.locked||this.animating)return;this.animating=true;var self=this;var scrolled=function() {self.animating=false;if(p==0)self.list.css(self.lt,0);if(self.options.wrap=='circular'||self.options.wrap=='both'||self.options.wrap=='last'||self.options.size==null||self.last<self.options.size)self.startAuto();self.buttons();self.notify('onAfterAnimation');};this.notify('onBeforeAnimation');if(!this.options.animation||a==false) {this.list.css(this.lt,p + 'px');scrolled();} else {var o=!this.options.vertical ? { 'left':p}:{ 'top':p };this.list.animate(o,this.options.animation,this.options.easing,scrolled);}},startAuto:function(s) {if(s!=undefined)this.options.auto=s;if(this.options.auto==0)return this.stopAuto();if(this.timer!=null)return;var self=this;this.timer=setTimeout(function() { self.next(); },this.options.auto * 1000);},stopAuto:function() {if(this.timer==null)return;clearTimeout(this.timer);this.timer=null;},buttons:function(n,p) {if(n==undefined||n==null) {var n=!this.locked&&this.options.size!==0&&((this.options.wrap&&this.options.wrap!='first')||this.options.size==null||this.last<this.options.size);if(!this.locked&&(!this.options.wrap||this.options.wrap=='first')&&this.options.size!=null&&this.last>=this.options.size)n=this.tail!=null&&!this.inTail;}if(p==undefined||p==null) {var p=!this.locked&&this.options.size!==0&&((this.options.wrap&&this.options.wrap!='last')||this.first>1);if(!this.locked&&(!this.options.wrap||this.options.wrap=='last')&&this.options.size!=null&&this.first==1)p=this.tail!=null&&this.inTail;}var self=this;this.buttonNext[n ? 'bind':'unbind'](this.options.buttonNextEvent,this.funcNext)[n ? 'removeClass':'addClass'](this.className('jc-next-disabled')).attr('disabled',n ? false:true);this.buttonPrev[p ? 'bind':'unbind'](this.options.buttonPrevEvent,this.funcPrev)[p ? 'removeClass':'addClass'](this.className('jc-prev-disabled')).attr('disabled',p ? false:true);if(this.buttonNext.length>0&&(this.buttonNext[0].jcarouselstate==undefined||this.buttonNext[0].jcarouselstate!=n)&&this.options.buttonNextCallback!=null) {this.buttonNext.each(function() { self.options.buttonNextCallback(self,this,n); });this.buttonNext[0].jcarouselstate=n;}if(this.buttonPrev.length>0&&(this.buttonPrev[0].jcarouselstate==undefined||this.buttonPrev[0].jcarouselstate!=p)&&this.options.buttonPrevCallback!=null) {this.buttonPrev.each(function() { self.options.buttonPrevCallback(self,this,p); });this.buttonPrev[0].jcarouselstate=p;}},notify:function(evt) {var state=this.prevFirst==null ? 'init':(this.prevFirst<this.first ? 'next':'prev');this.callback('itemLoadCallback',evt,state);if(this.prevFirst!==this.first) {this.callback('itemFirstInCallback',evt,state,this.first);this.callback('itemFirstOutCallback',evt,state,this.prevFirst);}if(this.prevLast!==this.last) {this.callback('itemLastInCallback',evt,state,this.last);this.callback('itemLastOutCallback',evt,state,this.prevLast);}this.callback('itemVisibleInCallback',evt,state,this.first,this.last,this.prevFirst,this.prevLast);this.callback('itemVisibleOutCallback',evt,state,this.prevFirst,this.prevLast,this.first,this.last);},callback:function(cb,evt,state,i1,i2,i3,i4) {if(this.options[cb]==undefined||(typeof this.options[cb]!='object'&&evt!='onAfterAnimation'))return;var callback=typeof this.options[cb]=='object' ? this.options[cb][evt]:this.options[cb];if(!$.isFunction(callback))return;var self=this;if(i1===undefined)callback(self,state,evt);else if(i2===undefined)this.get(i1).each(function() { callback(self,this,i1,state,evt); });else {for (var i=i1; i<=i2; i++)if(i!==null&&!(i>=i3&&i<=i4))this.get(i).each(function() { callback(self,this,i,state,evt); });}},create:function(i) {return this.format('<li></li>',i);},format:function(e,i) {var $e=$(e).addClass(this.className('jc-item')).addClass(this.className('jc-item-' + i));$e.attr('jcarouselindex',i);return $e;},className:function(c) {return c + ' ' + c + (!this.options.vertical ? '-hor':'-vertical');},dimension:function(e,d) {var el=e.jquery!=undefined ? e[0]:e;var old=!this.options.vertical ?el.offsetWidth + $jc.margin(el,'marginLeft') + $jc.margin(el,'marginRight'):el.offsetHeight + $jc.margin(el,'marginTop') + $jc.margin(el,'marginBottom');if(d==undefined||old==d)return old;var w=!this.options.vertical ?d - $jc.margin(el,'marginLeft') - $jc.margin(el,'marginRight'):d - $jc.margin(el,'marginTop') - $jc.margin(el,'marginBottom');$(el).css(this.wh,w + 'px');return this.dimension(el);},clipping:function() {return !this.options.vertical ?this.clip[0].offsetWidth - $jc.intval(this.clip.css('borderLeftWidth')) - $jc.intval(this.clip.css('borderRightWidth')):this.clip[0].offsetHeight - $jc.intval(this.clip.css('borderTopWidth')) - $jc.intval(this.clip.css('borderBottomWidth'));},index:function(i,s) {if(s==undefined)s=this.options.size;return Math.round((((i - 1) / s) - Math.floor((i - 1) / s)) * s) + 1;}});$jc.extend({defaults:function(d) {return $.extend(defaults,d||{});},margin:function(e,p) {if(!e)return 0;var el=e.jquery!=undefined ? e[0]:e;if(p=='marginRight'&&$.browser.safari) {var old={ 'display':'block','float':'none','width':'auto' },oWidth,oWidth2;$.swap(el,old,function() { oWidth=el.offsetWidth; });old['marginRight']=0;$.swap(el,old,function() { oWidth2=el.offsetWidth; });return oWidth2 - oWidth;}return $jc.intval($.css(el,p));},intval:function(v) {v=parseInt(v);return isNaN(v) ? 0:v;}});})(jQuery);; (function($) {$.fn.photoslideRewriteUrl=function() {if(this.length>0) {var regexS="photoid=[0-9]*",_location=location.pathname;}return this.each(function() {var _href=this.href;if(_href.indexOf("photoid")!==-1) {var regex=new RegExp(regexS);var _id=regex.exec(this.href);if(_id&&_id[0]&&_id[0].indexOf("photoid=")!==-1) {_id=_id.pop().replace("photoid=","");_href=_href.replace("photoid=" + _id + ".html","photo.html#" + _id);this.href=_href;}}});};$.fn.photoslideRewriteUrlFromImageSrc=function() {if(this.length>0) {var regexS="[0-9]*\_(w4|w6).jpg";}return this.each(function() {var _img=$(this).find("img");if(_img.length>0) {try {var regex=new RegExp(regexS);var _src=_img.attr("src");var _id=regex.exec(_src).shift().replace("_w4.jpg","").replace("_w6.jpg","");this.href=this.href + "#" + _id;} catch (e) {if(console&&console.log) {console.log(e);}}}});};})(jQuery);$j(document).ready(function() {$j('.jboxdiv').each(function() {var objId=$j(this).attr('id');var classes=$j(this).attr('class');var scroll=keepValueFromClass(classes,'scroll');var animation=keepValueFromClass(classes,'animation');var auto=keepValueFromClass(classes,'autostart');var wrapper=keepValueFromClass(classes,'wrapper');$j("#" + objId).jc({scroll:(scroll=='') ? 0:parseInt(scroll),animation:animation,auto:(auto=='') ? 0:parseInt(auto),wrap:(wrapper=='') ? null:wrapper,itemVisibleInCallback:function(carousel,item,i,state,evt) {var $jpg=$j('.jc-pgstat-' + objId);if($jpg.length) { $jpg.text(i); }}});$j('#' + objId + ' input.src').each(function() {var $cont=$j($j(this).parents('a')[0]);var src=$j('.src',$cont).val();var width=$j('.width',$cont).val();var height=$j('.height',$cont).val();var title=$j('.title',$cont).val();var $ph=$j('.placeholder',$cont);$ph.replaceWith($j('<img />').attr('src',src).attr('width',width).attr('height',height).attr('title',title));});});$j(".photoGrid_4cols a.newsThumb,.photoGrid_2cols a.newsThumb,.jboxdiv a.newsThumb,.rewritePhotosById a.newsThumb").photoslideRewriteUrl();$j(".rewritePhoto a.newsThumb").photoslideRewriteUrlFromImageSrc();});/*** TableSorter 2.0 - Client-side table sorting with ease!* Version 2.0.3* @requires jQuery v1.2.3** Copyright (c) 2007 Christian Bach* Examples and docs at: http://tablesorter.com* Dual licensed under the MIT and GPL licenses:* http://www.opensource.org/licenses/mit-license.php* http://www.gnu.org/licenses/gpl.html**//**** @description Create a sortable table with multi-column sorting capabilitys** @example $('table').tablesorter();* @desc Create a simple tablesorter interface.** @example $('table').tablesorter({ sortList:[[0,0],[1,0]] });* @desc Create a tablesorter interface and sort on the first and secound column in ascending order.** @example $('table').tablesorter({ headers: { 0: { sorter: false}, 1: {sorter: false} } });* @desc Create a tablesorter interface and disableing the first and secound column headers.** @example $('table').tablesorter({ 0: {sorter:"integer"}, 1: {sorter:"currency"} });* @desc Create a tablesorter interface and set a column parser for the first and secound column.*** @param Object settings An object literal containing key/value pairs to provide optional settings.** @option String cssHeader (optional)  A string of the class name to be appended to sortable tr elements in the thead of the table.*       Default value: "header"** @option String cssAsc (optional)  A string of the class name to be appended to sortable tr elements in the thead on a ascending sort.*       Default value: "headerSortUp"** @option String cssDesc (optional)  A string of the class name to be appended to sortable tr elements in the thead on a descending sort.*       Default value: "headerSortDown"** @option String sortInitialOrder (optional) A string of the inital sorting order can be asc or desc.*       Default value: "asc"** @option String sortMultisortKey (optional) A string of the multi-column sort key.*       Default value: "shiftKey"** @option String textExtraction (optional) A string of the text-extraction method to use.*       For complex html structures inside td cell set this option to "complex",*       on large tables the complex option can be slow.*       Default value: "simple"** @option Object headers (optional)  An array containing the forces sorting rules.*       This option let's you specify a default sorting rule.*       Default value: null** @option Array sortList (optional)  An array containing the forces sorting rules.*       This option let's you specify a default sorting rule.*       Default value: null** @option Array sortForce (optional)  An array containing forced sorting rules.*       This option let's you specify a default sorting rule, which is prepended to user-selected rules.*       Default value: null** @option Array sortAppend (optional)  An array containing forced sorting rules.*       This option let's you specify a default sorting rule, which is appended to user-selected rules.*       Default value: null** @option Boolean widthFixed (optional)  Boolean flag indicating if tablesorter should apply fixed widths to the table columns.*       This is usefull when using the pager companion plugin.*       This options requires the dimension jquery plugin.*       Default value: false** @option Boolean cancelSelection (optional) Boolean flag indicating if tablesorter should cancel selection of the table headers text.*       Default value: true** @option Boolean debug (optional)  Boolean flag indicating if tablesorter should display debuging information usefull for development.** @type jQuery** @name tablesorter** @cat Plugins/Tablesorter** @author Christian Bach/christian.bach@polyester.se*/(function($) {$.extend({tablesorter: new function() {var parsers = [], widgets = [];this.defaults = {cssHeader: "header",cssAsc: "headerSortUp",cssDesc: "headerSortDown",sortInitialOrder: "asc",sortMultiSortKey: "shiftKey",sortForce: null,sortAppend: null,textExtraction: "simple",parsers: {},widgets: [],widgetZebra: { css: ["even", "odd"] },headers: {},widthFixed: false,cancelSelection: true,sortList: [],headerList: [],dateFormat: "us",decimal: '.',debug: false,delta: 0};/* debuging utils */function benchmark(s, d) {log(s + "," + (new Date().getTime() - d.getTime()) + "ms");}this.benchmark = benchmark;function log(s) {if (typeof console != "undefined" && typeof console.debug != "undefined") {console.log(s);} else {alert(s);}}/* parsers utils */function buildParserCache(table, $headers) {//debugger;if (table.config.debug) { var parsersDebug = ""; }var rows = table.tBodies[0].rows;if (table.tBodies[0].rows[0]) {var list = [], cells = rows[0].cells, l = cells.length;for (var i = 0; i < l; i++) {var p = false;if ($.metadata && ($($headers[i]).metadata() && $($headers[i]).metadata().sorter)) {p = getParserById($($headers[i]).metadata().sorter);} else if ((table.config.headers[i] && table.config.headers[i].sorter)) {p = getParserById(table.config.headers[i].sorter);}if (!p) {p = detectParserForColumn(table, cells[i]);}if (table.config.debug) { parsersDebug += "column:" + i + " parser:" + p.id + "\n"; }list.push(p);}}if (table.config.debug) { log(parsersDebug); }return list;};function detectParserForColumn(table, node) {var l = parsers.length;for (var i = 1; i < l; i++) {if (parsers[i].is($.trim(getElementText(table.config, node)), table, node)) {return parsers[i];}}// 0 is always the generic parser (text)return parsers[0];}function getParserById(name) {var l = parsers.length;for (var i = 0; i < l; i++) {if (parsers[i].id.toLowerCase() == name.toLowerCase()) {return parsers[i];}}return false;}/* utils */function buildCache(table) {if (table.config.debug) { var cacheTime = new Date(); }var totalRows = (table.tBodies[0] && table.tBodies[0].rows.length) || 0,totalCells = (table.tBodies[0].rows[0] && table.tBodies[0].rows[0].cells.length) || 0,parsers = table.config.parsers,cache = { row: [], normalized: [] };for (var i = 0; i < totalRows; ++i) {/** Add the table data to main data array */var c = table.tBodies[0].rows[i], cols = [];cache.row.push($(c));for (var j = 0; j < totalCells; ++j) {cols.push(parsers[j].format(getElementText(table.config, c.cells[j]), table, c.cells[j]));}cols.push(i); // add position for rowCachecache.normalized.push(cols);cols = null;};if (table.config.debug) { benchmark("Building cache for " + totalRows + " rows:", cacheTime); }return cache;};function getElementText(config, node) {//debugger;if (!node) return "";var t = "";if (config.textExtraction == "simple") {if (node.childNodes[0] && node.childNodes[0].hasChildNodes()) {t = node.childNodes[0].innerHTML;} else {t = node.innerHTML;}} else {if (typeof (config.textExtraction) == "function") {t = config.textExtraction(node);} else {t = $(node).text();}}return t;}function appendToTable(table, cache) {if (table.config.debug) { var appendTime = new Date() }var c = cache,r = c.row,n = c.normalized,totalRows = n.length,checkCell = (n[0].length - 1),tableBody = $(table.tBodies[0]),rows = [];for (var i = 0; i < totalRows; i++) {rows.push(r[n[i][checkCell]]);if (!table.config.appender) {var o = r[n[i][checkCell]];var l = o.length;for (var j = 0; j < l; j++) {tableBody[0].appendChild(o[j]);}//tableBody.append(r[n[i][checkCell]]);}}if (table.config.appender) {table.config.appender(table, rows);}rows = null;if (table.config.debug) { benchmark("Rebuilt table:", appendTime); }//apply table widgetsapplyWidget(table);// trigger sortendsetTimeout(function() {$(table).trigger("sortEnd");}, 0);};function buildHeaders(table) {if (table.config.debug) { var time = new Date(); }var meta = ($.metadata) ? true : false, tableHeadersRows = [];for (var i = 0; i < table.tHead.rows.length; i++) { tableHeadersRows[i] = 0; };$tableHeaders = $("thead th", table);$tableHeaders.each(function(index) {this.count = 0;this.column = index;this.order = formatSortingOrder(table.config.sortInitialOrder);if (checkHeaderMetadata(this) || checkHeaderOptions(table, index)) this.sortDisabled = true;if (!this.sortDisabled) {$(this).addClass(table.config.cssHeader);}// add cell to headerListtable.config.headerList[index] = this;});if (table.config.debug) { benchmark("Built headers:", time); log($tableHeaders); }return $tableHeaders;};function checkCellColSpan(table, rows, row) {var arr = [], r = table.tHead.rows, c = r[row].cells;for (var i = 0; i < c.length; i++) {var cell = c[i];if (cell.colSpan > 1) {arr = arr.concat(checkCellColSpan(table, headerArr, row++));} else {if (table.tHead.length == 1 || (cell.rowSpan > 1 || !r[row + 1])) {arr.push(cell);}//headerArr[row] = (i+row);}}return arr;};function checkHeaderMetadata(cell) {if (($.metadata) && ($(cell).metadata().sorter === false)) { return true; };return false;}function checkHeaderOptions(table, i) {if ((table.config.headers[i]) && (table.config.headers[i].sorter === false)) { return true; };return false;}function applyWidget(table) {var c = table.config.widgets;var l = c.length;for (var i = 0; i < l; i++) {getWidgetById(c[i]).format(table);}}function getWidgetById(name) {var l = widgets.length;for (var i = 0; i < l; i++) {if (widgets[i].id.toLowerCase() == name.toLowerCase()) {return widgets[i];}}};function formatSortingOrder(v) {if (typeof (v) != "Number") {i = (v.toLowerCase() == "desc") ? 1 : 0;} else {i = (v == (0 || 1)) ? v : 0;}return i;}function isValueInArray(v, a) {var l = a.length;for (var i = 0; i < l; i++) {if (a[i][0] == v) {return true;}}return false;}function setHeadersCss(table, $headers, list, css, delta) {// remove all header information$headers.removeClass(css[0]).removeClass(css[1]);var h = [];$headers.each(function(offset) {if (!this.sortDisabled) {h[this.column] = $(this);}});var l = list.length;for (var i = 0; i < l; i++) {h[list[i][0] + delta].addClass(css[list[i][1]]);}}function fixColumnWidth(table, $headers) {var c = table.config;if (c.widthFixed) {var colgroup = $('<colgroup>');$("tr:first td", table.tBodies[0]).each(function() {colgroup.append($('<col>').css('width', $(this).width()));});$(table).prepend(colgroup);};}function updateHeaderSortCount(table, sortList) {var c = table.config, l = sortList.length;for (var i = 0; i < l; i++) {var s = sortList[i], o = c.headerList[s[0]];o.count = s[1];o.count++;}}/* sorting methods */function multisort(table, sortList, cache) {if (table.config.debug) { var sortTime = new Date(); }var dynamicExp = "var sortWrapper = function(a,b) {", l = sortList.length;for (var i = 0; i < l; i++) {var c = sortList[i][0];var order = sortList[i][1];var s = (getCachedSortType(table.config.parsers, c) == "text") ? ((order == 0) ? "sortText" : "sortTextDesc") : ((order == 0) ? "sortNumeric" : "sortNumericDesc");//debugger;var e = "e" + i;dynamicExp += "var " + e + " = " + s + "(a[" + c + "],b[" + c + "]); ";dynamicExp += "if(" + e + ") { return " + e + "; } ";dynamicExp += "else { ";}// if value is the same keep orignal ordervar orgOrderCol = cache.normalized[0].length - 1;dynamicExp += "return a[" + orgOrderCol + "]-b[" + orgOrderCol + "];";for (var i = 0; i < l; i++) {dynamicExp += "}; ";}dynamicExp += "return 0; ";dynamicExp += "}; ";eval(dynamicExp);cache.normalized.sort(sortWrapper);if (table.config.debug) { benchmark("Sorting on " + sortList.toString() + " and dir " + order + " time:", sortTime); }return cache;};function sortText(a, b) {return ((a < b) ? -1 : ((a > b) ? 1 : 0));};function sortTextDesc(a, b) {return ((b < a) ? -1 : ((b > a) ? 1 : 0));};function sortNumeric(a, b) {return a - b;};function sortNumericDesc(a, b) {var c = b - a;//debugger;return b - a;};function getCachedSortType(parsers, i) {return parsers[i].type;};/* public methods */this.construct = function(settings) {return this.each(function() {if (!this.tHead || !this.tBodies) return;var $this, $document, $headers, cache, config, shiftDown = 0, sortOrder;this.config = {};config = $.extend(this.config, $.tablesorter.defaults, settings);// store common expression for speed$this = $(this);// build headers$headers = buildHeaders(this);// try to auto detect column type, and store in tables configthis.config.parsers = buildParserCache(this, $headers);// build the cache for the tbody cellscache = buildCache(this);// get the css class names, could be done else where.var sortCSS = [config.cssDesc, config.cssAsc];// fixate columns if the users supplies the fixedWidth optionfixColumnWidth(this);// apply event handling to headers// this is to big, perhaps break it out?$("thead th", $this).not(".nobind").click(function(e) {$this.trigger("sortStart");var totalRows = ($this[0].tBodies[0] && $this[0].tBodies[0].rows.length) || 0;if (!this.sortDisabled && totalRows > 0) {// store exp, for speedvar $cell = $(this);// get current column indexvar i = this.column - config.delta;// get current column sort orderthis.order = this.count++ % 2;// user only whants to sort on one columnif (!e[config.sortMultiSortKey]) {// flush the sort listconfig.sortList = [];if (config.sortForce != null) {var a = config.sortForce;for (var j = 0; j < a.length; j++) {if (a[j][0] != i) {config.sortList.push(a[j]);}}}// add column to sort listconfig.sortList.push([i, this.order]);// multi column sorting} else {// the user has clicked on an all ready sortet column.if (isValueInArray(i, config.sortList)) {// revers the sorting direction for all tables.for (var j = 0; j < config.sortList.length; j++) {var s = config.sortList[j], o = config.headerList[s[0]];if (s[0] == i) {o.count = s[1];o.count++;s[1] = o.count % 2;}}} else {// add column to sort list arrayconfig.sortList.push([i, this.order]);}};setTimeout(function() {//set css for headerssetHeadersCss($this[0], $headers, config.sortList, sortCSS, config.delta);appendToTable($this[0], multisort($this[0], config.sortList, cache));}, 1);// stop normal event by returning falsereturn false;}// cancel selection}).mousedown(function() {if (config.cancelSelection) {this.onselectstart = function() { return false };return false;}});// apply easy methods that trigger binded events$this.bind("update", function() {// rebuild parsers.this.config.parsers = buildParserCache(this, $headers);// rebuild the cache mapcache = buildCache(this);}).bind("modify", function() {//AB: per tabella filtratathis.config.parsers = buildParserCache(this, $headers);cache = buildCache(this);}).bind("sorton", function(e, list) {$(this).trigger("sortStart");config.sortList = list;// update and store the sortlistvar sortList = config.sortList;// update header count indexupdateHeaderSortCount(this, sortList);//set css for headerssetHeadersCss(this, $headers, sortList, sortCSS, config.delta);// sort the table and append it to the domappendToTable(this, multisort(this, sortList, cache));}).bind("appendCache", function() {appendToTable(this, cache);}).bind("applyWidgetId", function(e, id) {getWidgetById(id).format(this);}).bind("applyWidgets", function() {// apply widgetsapplyWidget(this);});if ($.metadata && ($(this).metadata() && $(this).metadata().sortlist)) {config.sortList = $(this).metadata().sortlist;}// if user has supplied a sort list to constructor.if (config.sortList.length > 0) {$this.trigger("sorton", [config.sortList]);}// apply widgetsapplyWidget(this);});};this.addParser = function(parser) {var l = parsers.length, a = true;for (var i = 0; i < l; i++) {if (parsers[i].id.toLowerCase() == parser.id.toLowerCase()) {a = false;}}if (a) { parsers.push(parser); };};this.addWidget = function(widget) {widgets.push(widget);};this.formatFloat = function(s) {var i = parseFloat(s);return (isNaN(i)) ? 0 : i;};this.formatInt = function(s) {var i = parseInt(s);return (isNaN(i)) ? 0 : i;};this.isDigit = function(s, config) {//debugger;var DECIMAL = '\\' + config.decimal;// var exp = '/(^[+]?0(' + DECIMAL + '0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9][0-9]*)' + DECIMAL + '(0*[1-9][0-9]*)))$)|(^[-+]?[1-9]+[0-9]*' + DECIMAL + '0+$)/';var exp = '^[0-9]*' + DECIMAL + '?[0-9]+([eE][-+]?[0-9]+)?$';//alert(exp);return RegExp(exp).test($.trim(s));};this.clearTableBody = function(table) {if ($.browser.msie) {function empty() {while (this.firstChild) this.removeChild(this.firstChild);}empty.apply(table.tBodies[0]);} else {table.tBodies[0].innerHTML = "";}};}});// extend plugin scope$.fn.extend({tablesorter: $.tablesorter.construct});var ts = $.tablesorter;// add default parsersts.addParser({id: "text",is: function(s) {return true;},format: function(s) {return $.trim(s.toLowerCase());},type: "text"});ts.addParser({id: "digit",is: function(s, table) {var c = table.config;return $.tablesorter.isDigit(s, c);},format: function(s) {return $.tablesorter.formatFloat(s);},type: "numeric"});ts.addParser({id: "currency",is: function(s) {return /^[£$€?.]/.test(s);},format: function(s) {return $.tablesorter.formatFloat(s.replace(new RegExp(/[^0-9.]/g), ""));},type: "numeric"});ts.addParser({id: "ipAddress",is: function(s) {return /^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s);},format: function(s) {var a = s.split("."), r = "", l = a.length;for (var i = 0; i < l; i++) {var item = a[i];if (item.length == 2) {r += "0" + item;} else {r += item;}}return $.tablesorter.formatFloat(r);},type: "numeric"});ts.addParser({id: "url",is: function(s) {return /^(https?|ftp|file):\/\/$/.test(s);},format: function(s) {return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//), ''));},type: "text"});ts.addParser({id: "isoDate",is: function(s) {return /^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s);},format: function(s) {return $.tablesorter.formatFloat((s != "") ? new Date(s.replace(new RegExp(/-/g), "/")).getTime() : "0");},type: "numeric"});ts.addParser({id: "percent",is: function(s) {return /\%$/.test($.trim(s));},format: function(s) {return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g), ""));},type: "numeric"});ts.addParser({id: "usLongDate",is: function(s) {return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/));},format: function(s) {return $.tablesorter.formatFloat(new Date(s).getTime());},type: "numeric"});ts.addParser({id: "shortDate",is: function(s) {return /\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s);},format: function(s, table) {var c = table.config;s = s.replace(/\-/g, "/");if (c.dateFormat == "us") {// reformat the string in ISO formats = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/, "$3/$1/$2");} else if (c.dateFormat == "uk") {//reformat the string in ISO formats = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/, "$3/$2/$1");} else if (c.dateFormat == "dd/mm/yy" || c.dateFormat == "dd-mm-yy") {s = s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/, "$1/$2/$3");}return $.tablesorter.formatFloat(new Date(s).getTime());},type: "numeric"});ts.addParser({id: "time",is: function(s) {return /^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s);},format: function(s) {return $.tablesorter.formatFloat(new Date("2000/01/01 " + s).getTime());},type: "numeric"});ts.addParser({id: "metadata",is: function(s) {return false;},format: function(s, table, cell) {var c = table.config, p = (!c.parserMetadataName) ? 'sortValue' : c.parserMetadataName;return $(cell).metadata()[p];},type: "numeric"});// add default widgetsts.addWidget({id: "zebra",format: function(table) {if (table.config.debug) { var time = new Date(); }$("tr:visible", table.tBodies[0]).filter(':even').removeClass(table.config.widgetZebra.css[1]).addClass(table.config.widgetZebra.css[0]).end().filter(':odd').removeClass(table.config.widgetZebra.css[0]).addClass(table.config.widgetZebra.css[1]);if (table.config.debug) { $.tablesorter.benchmark("Applying Zebra widget", time); }}});})(jQuery);$j.tablesorter.addWidget({id:"checkNoSort",format:function(table) {$j("thead th",table).each(function() {if($j(this).hasClass("nosort")) {$j(this).removeClass("header");table.config.headerList[$j("thead th:visible",table).index(this)].sortDisabled=true;}})}});(function($) {$(document).ready(function() {$('.jAccor').each(function() {var active="";var o={autoHeight:false,header:'h3,p.accHeader'};var accordionId=this.id;$("#" + accordionId + " p.accHeader" + ",#" + accordionId + " h3").each(function(i) {if($(this).hasClass("selected")) {active=i;}});if(active!="") { o.active=active }if(accordionId=='HPMatches') { o.fillSpace=true }$(this).accordion(o).bind("accordionchange",function(event,ui) {ui.newContent.prevObject.css("overflow","auto");});});});})(jQuery);(function($j) {function History() {this._curHash='';this._callback=function(hash) { };};$j.extend(History.prototype,{init:function(callback) {this._callback=callback;this._curHash=location.hash;if($j.browser.msie&&$j.browser.version>=8&&('onhashchange' in document.body)) {document.body.onhashchange=function() {this._check;};} else if($j.browser.msie&&$j.browser.version<8) {if(this._curHash=='') {this._curHash='#';}$j("body").prepend('<iframe id="jQuery_history" style="display:none;"></iframe>');var iframe=$j("#jQuery_history")[0].contentWindow.document;iframe.open();iframe.close();iframe.location.hash=this._curHash;} else if(BrowserDetect.browser=='Safari') {this._historyBackStack=[];this._historyBackStack.length=history.length;this._historyForwardStack=[];this._isFirst=true;this._dontCheck=false;}this._callback(this._curHash.replace(/^#/,''));setInterval(this._check,200);},add:function(hash) {this._historyBackStack.push(hash);this._historyForwardStack.length=0; this._isFirst=true;},_check:function() {if($j.browser.msie&&!($j.browser.version>=8&&'onhashchange' in document.body)) {var ihistory=$j("#jQuery_history")[0];var iframe=ihistory.contentDocument||ihistory.contentWindow.document;var current_hash=iframe.location.hash;if(current_hash!=$j.history._curHash) {location.hash=current_hash;$j.history._curHash=current_hash;$j.history._callback(current_hash);}} else if(BrowserDetect.browser=='Safari') {if(!$j.history._dontCheck) {var historyDelta=history.length - $j.history._historyBackStack.length;if(historyDelta) { $j.history._isFirst=false;if(historyDelta<0) { for (var i=0; i<Math.abs(historyDelta); i++) $j.history._historyForwardStack.unshift($j.history._historyBackStack.pop());} else { for (var i=0; i<historyDelta; i++) $j.history._historyBackStack.push($j.history._historyForwardStack.shift());}var cachedHash=$j.history._historyBackStack[$j.history._historyBackStack.length - 1];if(cachedHash!=undefined) {$j.history._curHash=location.hash;$j.history._callback(cachedHash);}} else if($j.history._historyBackStack[$j.history._historyBackStack.length - 1]==undefined&&!$j.history._isFirst) {if(document.URL.indexOf('#')>=0) {$j.history._callback(document.URL.split('#')[1]);} else {$j.history._callback('');}$j.history._isFirst=true;}}} else {var current_hash=location.hash;if(current_hash!=$j.history._curHash) {$j.history._curHash=current_hash;$j.history._callback(current_hash);}}},load:function(hash) {var newhash;newhash='#' + hash;location.hash=newhash;this._curHash=newhash;if($j.browser.msie&&!($j.browser.version>=8&&'onhashchange' in document.body)) {var ihistory=$j("#jQuery_history")[0]; var iframe=ihistory.contentWindow.document;iframe.open();iframe.close();iframe.location.hash=newhash;this._callback(hash);} else if(BrowserDetect.browser=='Safari') {this._dontCheck=true;this.add(hash);var fn=function() { $j.history._dontCheck=false; };window.setTimeout(fn,200);this._callback(hash);location.hash=newhash;}else {this._callback(hash);}}});$j(document).ready(function() {$j.history=new History(); });})(jQuery);(function($j) {$j.fn.historyManager=function() {var self=this;var options={tab:getUrlParameter('tab'),page:getUrlParameter('page'),CurrentTab:null,Panel:null,SeeLoader:true,LoaderUrl:'/imgml/icons/ajaxloader-gray.gif'};var GetHash=function(tab,page) {return "tab=" + tab + "&page=" + page;};var first=true;var OnCallbackSuccess=function() {$j('.previousLink a,.nextLink a,.navigator li a',options.Panel).removeAttr('onclick');$j('.previousLink a',options.Panel).click(function(e) {if(typeof options.page===undefined) options.page=1;var index=(parseInt(options.page) - 1)>=1 ? (parseInt(options.page) - 1):1;$j.history.load(GetHash(options.tab,index));e.preventDefault();});$j('.nextLink a',options.Panel).click(function(e) {$j.history.load(GetHash(options.tab,(parseInt(options.page) + 1)));e.preventDefault();});$j('.navigator li a',options.Panel).click(function(e) {$j.history.load(GetHash(options.tab,$j(this).attr('href').replace(/^.*#/,'')));e.preventDefault();});};var Callback=function(hash) {options.tab=(getUrlParameter('tab')!='')? getUrlParameter('tab'):0;options.page=(getUrlParameter('page')!=''&&getUrlParameter('page')!=0)? getUrlParameter('page'):1;options.CurrentTab=$j('.ui-tabs-nav li a',self).get(options.tab);if(first&&hash=='') {OnCallbackSuccess();first=false;} else {window.scrollTo(0,0);if(options.CurrentTab.getAttribute('rel')!='') {var lib=options.CurrentTab.getAttribute('rel').replace('{page}',options.page);$j.ajax({url:lib,dataType:'html',beforeSend:function() {if(options.SeeLoader) {$j('div.navigator:last-child',options.Panel).remove();$j('div.newsList div.innerText',options.Panel).addClass('cb').html('<div class="historyloader"><img src="' + options.LoaderUrl + '" width="32" height="32" /></div>');}},success:function(fragment) {$j('.ui-tabs-selected',self).removeClass('ui-tabs-selected').removeClass('ui-state-active');$j($j('.ui-tabs-nav li',self).get(options.tab)).addClass('ui-tabs-selected ui-state-active');options.Panel.empty().append(fragment);OnCallbackSuccess();}});} else {self.tabs('select',parseInt(options.tab));}}}; if(self.hasClass('history')) {self.tabs({show:function(event,ui) {options.CurrentTab=$j(ui.tab);options.Panel=$j(ui.panel);},select:function(event,ui) {var hash=GetHash(ui.index,1)if($j.browser.msie&&!($j.browser.version>=8&&'onhashchange' in document.body)) {$j("#jQuery_history")[0].contentWindow.document.location.hash=hash;}location.hash=hash;}});$j.history.init(Callback);} else {var active=$j('li a',self).index($j('li.selected a',self)); var fnAfterShow="show:function(event,ui) { if(typeof(fnTabsAfterShow)!='undefined') fnTabsAfterShow(event,ui); }";if(active>-1) {active="{selected:" + active + "," + fnAfterShow + " }";} else {active="{" + fnAfterShow + "}";}eval("$j(this).tabs(" + active + ");");}return self;};})(jQuery);$j(document).ready(function() {$j('.jTabs').each(function() { $j(this).historyManager(); });});(function($) {var isTooltipOpen=0;function Simpletip(elem,conf) {var self=this;elem=$(elem);var tooltip;if(conf.objcontent) {conf.content=conf.objcontent.html();tooltip=conf.objcontent.addClass((conf.fixed) ? conf.fixedClass:'').addClass((conf.persistent) ? conf.persistentClass:'');} else {tooltip=$(document.createElement('span')).addClass(conf.baseClass).addClass((conf.fixed) ? conf.fixedClass:'').addClass((conf.persistent) ? conf.persistentClass:'').html(conf.content).appendTo(elem);};if(!conf.hidden) tooltip.show();else tooltip.hide();if(!conf.persistent) {elem.hover(function(event) { self.show(event) },function() { self.hide() });if(!conf.fixed) {elem.mousemove(function(event) {if(tooltip.css('display')!=='none') self.updatePos(event);});};}else {elem.click(function(event) {if((event.target===elem.get(0)||conf.clickOnAll)&&($(event.target).attr('class')!='closeST')) {if(tooltip.css('display')!=='none') {if(!conf.button) {self.hide();isTooltipOpen=0;}}else {if(!conf.button||(conf.button&&!isTooltipOpen)) {self.show(event);isTooltipOpen=1;}}};});$(window).mousedown(function(event) {if(tooltip.css('display')!=='none') {var check=(conf.focus) ? $(event.target).parents('.tooltip').andSelf().filter(function() { return this===tooltip.get(0) }).length:0;if(check===0) {self.hide();isTooltipOpen=0;}};});};$.extend(self,{getVersion:function() {return [1,3,2];},getParent:function() {return elem;},getTooltip:function() {return tooltip;},getPos:function() {return tooltip.offset();},setPos:function(posX,posY) {var elemPos=elem.offset();if(typeof posX=='string') posX=parseInt(posX) + elemPos.left;if(typeof posY=='string') posY=parseInt(posY) + elemPos.top;tooltip.css({ left:posX,top:posY });return self;},show:function(event) {conf.onBeforeShow.call(self);self.updatePos((conf.fixed) ? null:event);switch (conf.showEffect) {case 'fade':tooltip.fadeIn(conf.showTime); break;case 'slide':tooltip.slideDown(conf.showTime,self.updatePos); break;case 'custom':conf.showCustom.call(tooltip,conf.showTime); break;default:case 'none':tooltip.show(); break;};tooltip.addClass(conf.activeClass);conf.onShow.call(self);return self;},hide:function() {conf.onBeforeHide.call(self);switch (conf.hideEffect) {case 'fade':tooltip.fadeOut(conf.hideTime); break;case 'slide':tooltip.slideUp(conf.hideTime); break;case 'custom':conf.hideCustom.call(tooltip,conf.hideTime); break;default:case 'none':tooltip.hide(); break;};tooltip.removeClass(conf.activeClass);conf.onHide.call(self);return self;},update:function(content) {tooltip.html(content);conf.content=content;return self;},load:function(uri,data) {conf.beforeContentLoad.call(self);tooltip.load(uri,data,function() { conf.onContentLoad.call(self); });return self;},boundryCheck:function(posX,posY) {var newX=posX + tooltip.outerWidth();var newY=posY + tooltip.outerHeight();var windowWidth=$(window).width() + $(window).scrollLeft();var windowHeight=$(window).height() + $(window).scrollTop();return [(newX>=windowWidth),(newY>=windowHeight)];},onBeforeShowComplete:function() {if(conf.button) {var me=this;$('<span>&nbsp;Close</span>').addClass(conf.closeButtonClass).unbind('click').click(function() {tooltip.hide();isTooltipOpen=0;me.hide.call(me);}).appendTo(tooltip);$(document).unbind('keydown').keydown(function(e) {switch (e.keyCode) {case 27:me.hide.call(me);isTooltipOpen=0;break;}});};},updatePos:function(event) {var tooltipWidth=tooltip.outerWidth();var tooltipHeight=tooltip.outerHeight();if(!event&&conf.fixed||conf.position=='custom') {if(conf.position.constructor==Array) {posX=parseInt(conf.position[0]);posY=parseInt(conf.position[1]);}else if($(conf.position).attr('nodeType')===1) {var offset=$(conf.position).offset();posX=offset.left;posY=offset.top;}else {var elemPos=elem.offset();var elemWidth=elem.outerWidth();var elemHeight=elem.outerHeight();switch (conf.position) {case 'top':var posX=elemPos.left - (tooltipWidth / 2) + (elemWidth / 2);var posY=elemPos.top - tooltipHeight;break;case 'bottom':var posX=elemPos.left - (tooltipWidth / 2) + (elemWidth / 2);var posY=elemPos.top + elemHeight;break;case 'left':var posX=elemPos.left - tooltipWidth;var posY=elemPos.top - (tooltipHeight / 2) + (elemHeight / 2);break;case 'right':var posX=elemPos.left + elemWidth;var posY=elemPos.top - (tooltipHeight / 2) + (elemHeight / 2);break;case 'custom':var parent=conf.wrapper;var parentY=parent.height()var posX=conf.customPos[0];var posY=(conf.customPos[1]=='top') ? elemPos.top - parent.offset().top:conf.customPos[1];if(posY + tooltipHeight>parentY) {posY=parentY - tooltipHeight;}break;default:case 'default':var posX=(elemWidth / 2) + elemPos.left + 20;var posY=elemPos.top;break;};};}else {var posX=event.pageX;var posY=event.pageY;};if(typeof conf.position!='object') {posX=posX + conf.offset[0];posY=posY + conf.offset[1];if(conf.boundryCheck) {var overflow=self.boundryCheck(posX,posY);if(overflow[0]) posX=posX - (tooltipWidth / 2) - (2 * conf.offset[0]);if(overflow[1]) posY=posY - (tooltipHeight / 2) - (2 * conf.offset[1]);}} else {if(typeof conf.position[0]=="string") posX=String(posX);if(typeof conf.position[1]=="string") posY=String(posY);};if(posX!='0'||posY!='0') self.setPos(posX,posY);return self;}});};$.fn.simpletip=function(conf) {var api=$(this).eq(typeof conf=='number' ? conf:0).data("simpletip");if(api) return api;var defaultConf={objcontent:null,content:'A simple tooltip',persistent:false,focus:false,hidden:true,button:false,clickOnAll:false,position:'default',offset:[0,0],boundryCheck:true,fixed:true,showEffect:'fade',showTime:0,showCustom:null,hideEffect:'fade',hideTime:0,hideCustom:null,baseClass:'tooltip',activeClass:'active',fixedClass:'fixed',persistentClass:'persistent',focusClass:'focus',closeButtonClass:'closeST',onBeforeShow:function() { },onShow:function() { },onBeforeHide:function() { },onHide:function() { },beforeContentLoad:function() { },onContentLoad:function() { }};$.extend(defaultConf,conf);this.each(function() {var el=new Simpletip($(this),defaultConf);$(this).data("simpletip",el);});return this;};})(jQuery);var Cookie={set:function(name,value,expires,path,domain,secure) {var today=new Date();today.setTime(today.getTime());if(expires) {expires=expires * 1000 * 60 * 60 * 24;}var expires_date=new Date(today.getTime() + (expires));var d=(domain!==undefined&&domain!=null&&domain!='') ? ";domain=" + domain:((cookieDomain!==undefined&&cookieDomain!=null&&cookieDomain!='') ? ";domain=" + cookieDomain:"");document.cookie=name + "=" + escape(value) +((expires) ? ";expires=" + expires_date.toGMTString():"") +((path) ? ";path=" + path:";path=" + "/") +d +((secure) ? ";secure":"");},get:function(name,doUnescape) {if(typeof doUnescape=='undefined') doUnescape=true;var cookie=document.cookie.match(new RegExp('(^|;)\\s*' + escape(name) + '=([^;\\s]*)'));return (cookie ? (doUnescape ? unescape(cookie[2]):cookie[2]):null);},erase:function(name) {Cookie.set(name,'',-1);},accept:function() {if(typeof navigator.cookieEnabled=='boolean') {return navigator.cookieEnabled;}Cookie.set('_test','1');return (Cookie.erase('_test')==='1');}};function User() {this.cookieNameS='SCKUefa';this.cookieNameP='PCKUefa';this.cookieNameTalkFootball='TalkFootballTandC';this.cookieNameShare='TalkFootballShare';this.cookieNameUclf='uclf';this.ckLogOrigin='uefa__ckLogOrigin';this.ckRegOrigin='uefa__ckRegOrigin';this.cookieDomain=".uefa.com";this.Data=null;this.isLogged=function() {var c=Cookie.get(this.cookieNameS);if(c===undefined||c==null||c=='') return false;return true;}this.loadData=function() {if(this.isLogged()) {this.Data=Cookie.get(this.cookieNameS,false).toQueryParams();}}this.logout=function() {this.logoutNoRedirect();history.go(0);}this.logoutNoRedirect=function() {Cookie.set(this.cookieNameS,'',-1,'/',this.cookieDomain);Cookie.set(this.cookieNameP,'',-1,'/',this.cookieDomain);Cookie.erase(this.cookieNameS);Cookie.erase(this.cookieNameP);var uclfCk=Cookie.get(this.cookieNameUclf);if((uclfCk===undefined)||(uclfCk==null)||(uclfCk=='null')) {Cookie.set(this.cookieNameUclf,'',-1,'/','.uclfantasy' + this.cookieDomain);Cookie.erase(this.cookieNameUclf);}}this.getAvatar=function() {if(this.isLogged())if(this.Data.Avatar!==undefined&&this.Data.Avatar!=null&&this.Data.Avatar!='')return "http://img.uefa.com/ml/images/avatar/" + this.Data.Avatar + ".gif";elsereturn "http://img.uefa.com/ml/images/avatar/null.gif";elsereturn "http://img.uefa.com/ml/images/avatar/null.gif";}this.setTalkFootballTandC=function(value) {if(value!='1') value='0';Cookie.set(this.cookieNameTalkFootball,value,365,'/','.uefa.com');}this.getTalkFootballTandC=function() {var c=Cookie.get(this.cookieNameTalkFootball);if((c===undefined)||(c==null)||(c=='null'))c='0';return c;}this.setTalkFootballShare=function(value) {if(value!='1') value='0';Cookie.set(this.cookieNameShare,value,365,'/','.uefa.com');}this.getTalkFootballShare=function() {var c=Cookie.get(this.cookieNameShare);if((c===undefined)||(c==null)||(c=='null'))c='-1';return c;}this.fillOmnitureProperties=function() {if(this.isLogged()) {s.prop25='Logged in';s.prop24=this.Data.UserID;s.prop27=this.Data.BirthDateStr.substr(this.Data.BirthDateStr.length - 4,4);s.prop28=this.Data.Gender;s.prop29=this.Data.Lang;if(this.Data.Avatar)s.prop31='Y';elses.prop31='N';s.prop32=this.Data.CountryCode;s.prop43='web';if((this.Data.NewsLetter)&&(this.Data.NewsLetter>0))s.prop33='yes';elses.prop33='no';if(this.Data.RefService)s.prop26=this.Data.RefService;if(this.Data.FavTeamNames)s.prop30=this.Data.FavTeamNames;if(this.Data.FavClubsNames)s.prop46=this.Data.FavClubsNames;}else {s.prop25='Not logged in';}var c=Cookie.get(this.ckLogOrigin);if(c) {s.eVar36=c;if(s.events)s.events += ",";elses.events="";Cookie.erase(this.ckLogOrigin);}}this.loadData();};function sso() {this.getModifiedPageName=function() {var url=location.href.replace(location.search,'');return url.substring(0,url.length - 1) + 'x';},this.myWriteDebug=function(s) {if(typeof console!='undefined') console.log("MYDEBUG>" + s);},this.omnitureEvents={onSuccesfullyLogin:function(referrer) {SCW.TL(this,'o','User login',{linkTrackVars:'events,eVar36',linkTrackEvents:'event7',events:'event7',eVar36:referrer});} ,onAcceptMergePwd:function() {SCW.TL(this,'o','Tool Used',{linkTrackVars:'events,eVar43',linkTrackEvents:'event20',events:'event20',eVar43:'merge account'});if(typeof console!='undefined') console.log("MYDEBUG>omniture launched [onAcceptMergePwd]");},onRegistrationMailSent:function(referrer) {SCW.AddProp('34','web');SCW.AddProp('26',this.getReferrerDescription(referrer));SCW.AddEvent('event18');SCW.AddEVar('35','User Registration');SCW.AddEVar('45',referrer);if(typeof console!='undefined') console.log("MYDEBUG>omniture launched [onRegistrationMailSent]");},onRegistrationMailConfirmed:function() {SCW.AddProp('34','web');SCW.AddEvent('event19');SCW.AddEVar('35','User Registration');if(typeof console!='undefined') console.log("MYDEBUG>omniture launched [onRegistrationMailConfirmed]");},onUserProfileUpdate:function() {SCW.AddEvent('event8');if(typeof console!='undefined') console.log("MYDEBUG>omniture launched [onUserProfileUpdate]");},onUserAccountUpdate:function() {SCW.AddEvent('event8');if(typeof console!='undefined') console.log("MYDEBUG>omniture launched [onUserAccountUpdate]");},onUserAccountDeleted:function() {SCW.AddEvent('event31');if(typeof console!='undefined') console.log("MYDEBUG>omniture launched [onUserAccountDeleted]");},onNewsletterUpdate:function(newsletterArray) {SCW.TL(this,'o','Tool Used',{linkTrackVars:'events,eVar43',linkTrackEvents:'event20',events:'event20',eVar43:this.parseNewsletterArray(newsletterArray)});if(typeof console!='undefined') console.log("MYDEBUG>omniture launched [onNewsletterUpdate]:" + newsletterArray);},parseNewsletterArray:function(newsletterArray) {var res='';if(newsletterArray.length>0) {res='newsletter - ';for (var i=0; i<newsletterArray.length; i++) {if(i>0) res += ' | ';res += newsletterArray[i];}}if(typeof console!='undefined') console.log("parseNewsletterArray(..):" + res);return res;},getReferrerDescription:function(referrer) {var res='web';if(('' + referrer)=='') res='other';return res;}} }; function checkPassword(passwd,responseDiv) {var intScore=0if(passwd.length<5) {intScore=passwd.length}else if(passwd.length>4&&passwd.length<8) {intScore=(intScore + 6)}else if(passwd.length>7&&passwd.length<16) {intScore=(intScore + 12)}else if(passwd.length>15) {intScore=(intScore + 18)}if(passwd.match(/[a-z]/)) {intScore=(intScore + 1)}if(passwd.match(/[A-Z]/)) {intScore=(intScore + 5)}if(passwd.match(/\d+/)) {intScore=(intScore + 5)}if(passwd.match(/(.*[0-9].*[0-9].*[0-9])/)) {intScore=(intScore + 5)}if(passwd.match(/.[!,@,#,$,%,^,&,*,?,_,~]/)) {intScore=(intScore + 5)}if(passwd.match(/(.*[!,@,#,$,%,^,&,*,?,_,~].*[!,@,#,$,%,^,&,*,?,_,~])/)) {intScore=(intScore + 5)}if(passwd.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)) {intScore=(intScore + 2)}if(passwd.match(/([a-zA-Z])/)&&passwd.match(/([0-9])/)) {intScore=(intScore + 2)}if(passwd.match(/([a-zA-Z0-9].*[!,@,#,$,%,^,&,*,?,_,~])|([!,@,#,$,%,^,&,*,?,_,~].*[a-zA-Z0-9])/)) {intScore=(intScore + 2)}document.getElementById(responseDiv).innerHTML=(intScore * 2) + "%"document.getElementById(responseDiv).style.backgroundPosition=(intScore * 2) + "% 0%"}/** jQuery.Normalize*/(function() { jQuery.normalize = function(d) { var a = d.toUpperCase().charCodeAt(0); switch (a) { case 32: return "sp"; case 39: return "ax"; case 40: return "lb"; case 46: return "dt"; case 7838: case 223: return "ss"; case 198: case 230: return "ae"; case 45: return "sc"; case 47: return "sl"; case 92: return "bs"; case 95: return "us"; case 538: return "td" } switch (a) { case 1040: case 1072: return "1"; case 1041: case 1073: return "2"; case 1042: case 1074: return "3"; case 1043: case 1075: return "4"; case 1168: case 1169: return "5"; case 1044: case 1076: return "5"; case 1045: case 1077: return "6"; case 1028: case 1108: return "8"; case 1025: case 1105: return "7"; case 1046: case 1078: return "8"; case 1047: case 1079: return "9"; case 1048: case 1080: return "10"; case 1030: case 1110: return "12"; case 1031: case 1111: return "13"; case 1049: case 1081: return "11"; case 1050: case 1082: return "12"; case 1051: case 1083: return "13"; case 1052: case 1084: return "14"; case 1053: case 1085: return "15"; case 1054: case 1086: return "16"; case 1055: case 1077: return "17"; case 1056: case 1088: return "18"; case 1057: case 1089: return "19"; case 1058: case 1090: return "20"; case 1059: case 1091: return "21"; case 1060: case 1092: return "22"; case 1061: case 1093: return "23"; case 1062: case 1094: return "24"; case 1063: case 1095: return "25"; case 1064: case 1096: return "26"; case 1065: case 1097: return "27"; case 1066: case 1098: return "28"; case 1067: case 1099: return "29"; case 1068: case 1100: return "30"; case 1069: case 1101: return "31"; case 1070: case 1102: return "32"; case 1071: case 1103: return "33" } return a >= 191 && a <= 197 || a >= 224 && a <= 229 ? "a" : a == 223 ? "b" : a == 199 ? "c" : a == 208 ? "d" : a >= 200 && a <= 203 || a >= 232 && a <= 235 ? "e" : a >= 204 && a <= 207 || a >= 236 && a <= 239 ? "i" : a == 209 || a == 241 ? "n" : a >= 210 && a <= 214 || a == 216 || a == 240 || a >= 242 && a <= 246 || a == 248 ? "o" : a == 222 || a == 254 ? "p" : a >= 217 && a <= 220 || a == 249 || a >= 249 && a <= 252 ? "u" : a == 221 || a == 253 || a == 255 ? "y" : d.toUpperCase() } })(jQuery); jQuery.ui181 || function(d) { d.ui181 = { version: "1.8.1", plugin: { add: function(a, c, b) { var a = d.ui181[a].prototype, f; for (f in b) a.plugins[f] = a.plugins[f] || [], a.plugins[f].push([c, b[f]]) }, call: function(a, c, b) { if ((c = a.plugins[c]) && a.element[0].parentNode) for (var d = 0; d < c.length; d++) a.options[c[d][0]] && c[d][1].apply(a.element, b) } }, contains: function(a, c) { return document.compareDocumentPosition ? a.compareDocumentPosition(c) & 16 : a !== c && a.contains(c) }, hasScroll: function(a, c) { if (d(a).css("overflow") == "hidden") return !1; var b = c && c == "left" ? "scrollLeft" : "scrollTop", f = !1; if (a[b] > 0) return !0; a[b] = 1; f = a[b] > 0; a[b] = 0; return f }, isOverAxis: function(a, c, b) { return a > c && a < c + b }, isOver: function(a, c, b, f, e, g) { return d.ui181.isOverAxis(a, b, e) && d.ui181.isOverAxis(c, f, g) }, keyCode: { ALT: 18, BACKSPACE: 8, CAPS_LOCK: 20, COMMA: 188, CONTROL: 17, DELETE: 46, DOWN: 40, END: 35, ENTER: 13, ESCAPE: 27, HOME: 36, INSERT: 45, LEFT: 37, NUMPAD_ADD: 107, NUMPAD_DECIMAL: 110, NUMPAD_DIVIDE: 111, NUMPAD_ENTER: 108, NUMPAD_MULTIPLY: 106, NUMPAD_SUBTRACT: 109, PAGE_DOWN: 34, PAGE_UP: 33, PERIOD: 190, RIGHT: 39, SHIFT: 16, SPACE: 32, TAB: 9, UP: 38} }; d.fn.extend({ _focus: d.fn.focus, focus: function(a, c) { return typeof a === "number" ? this.each(function() { var b = this; setTimeout(function() { d(b).focus(); c && c.call(b) }, a) }) : this._focus.apply(this, arguments) }, enableSelection: function() { return this.attr("unselectable", "off").css("MozUserSelect", "") }, disableSelection: function() { return this.attr("unselectable", "on").css("MozUserSelect", "none") }, scrollParent: function() { var a; a = d.browser.msie && /(static|relative)/.test(this.css("position")) || /absolute/.test(this.css("position")) ? this.parents().filter(function() { return /(relative|absolute|fixed)/.test(d.curCSS(this, "position", 1)) && /(auto|scroll)/.test(d.curCSS(this, "overflow", 1) + d.curCSS(this, "overflow-y", 1) + d.curCSS(this, "overflow-x", 1)) }).eq(0) : this.parents().filter(function() { return /(auto|scroll)/.test(d.curCSS(this, "overflow", 1) + d.curCSS(this, "overflow-y", 1) + d.curCSS(this, "overflow-x", 1)) }).eq(0); return /fixed/.test(this.css("position")) || !a.length ? d(document) : a }, zIndex: function(a) { if (a !== void 0) return this.css("zIndex", a); if (this.length) for (var a = d(this[0]), c; a.length && a[0] !== document; ) { c = a.css("position"); if (c == "absolute" || c == "relative" || c == "fixed") if (c = parseInt(a.css("zIndex")), !isNaN(c) && c != 0) return c; a = a.parent() } return 0 } }); d.extend(d.expr[":"], { data: function(a, c, b) { return !!d.data(a, b[3]) }, focusable: function(a) { var c = a.nodeName.toLowerCase(), b = d.attr(a, "tabindex"); return (/input|select|textarea|button|object/.test(c) ? !a.disabled : "a" == c || "area" == c ? a.href || !isNaN(b) : !isNaN(b)) && !d(a)["area" == c ? "parents" : "closest"](":hidden").length }, tabbable: function(a) { var c = d.attr(a, "tabindex"); return (isNaN(c) || c >= 0) && d(a).is(":focusable") } }) } (jQuery); (function(d) { var a = d.fn.remove181; d.fn.remove181 = function(c, b) { return this.each(function() { b || (!c || d.filter(c, [this]).length) && d("*", this).add(this).each(function() { d(this).triggerHandler("remove") }); return a.call(d(this), c, b) }) }; d.widget181 = function(a, b, f) { var e = a.split(".")[0], g, a = a.split(".")[1]; g = e + "-" + a; if (!f) f = b, b = d.Widget181; d.expr[":"][g] = function(b) { return !!d.data(b, a) }; d[e] = d[e] || {}; d[e][a] = function(a, b) { arguments.length && this._createWidget(a, b) }; b = new b; b.options = d.extend({}, b.options); d[e][a].prototype = d.extend(!0, b, { namespace: e, widgetName: a, widgetEventPrefix: d[e][a].prototype.widgetEventPrefix || a, widgetBaseClass: g }, f); d.widget181.bridge(a, d[e][a]) }; d.widget181.bridge = function(a, b) { d.fn[a] = function(f) { var e = typeof f === "string", g = Array.prototype.slice.call(arguments, 1), l = this, f = !e && g.length ? d.extend.apply(null, [!0, f].concat(g)) : f; if (e && f.substring(0, 1) === "_") return l; e ? this.each(function() { var b = d.data(this, a), e = b && d.isFunction(b[f]) ? b[f].apply(b, g) : b; if (e !== b && e !== void 0) return l = e, !1 }) : this.each(function() { var e = d.data(this, a); e ? (f && e.option(f), e._init()) : d.data(this, a, new b(f, this)) }); return l } }; d.Widget181 = function(a, b) { arguments.length && this._createWidget(a, b) }; d.Widget181.prototype = { widgetName: "widget", widgetEventPrefix: "", options: { disabled: !1 }, _createWidget: function(a, b) { this.element = d(b).data(this.widgetName, this); this.options = d.extend(!0, {}, this.options, d.metadata && d.metadata.get(b)[this.widgetName], a); var f = this; this.element.bind("remove." + this.widgetName, function() { f.destroy() }); this._create(); this._init() }, _create: function() { }, _init: function() { }, destroy: function() { this.element.unbind("." + this.widgetName).removeData(this.widgetName); this.widget181().unbind("." + this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass + "-disabled ui-state-disabled") }, widget181: function() { return this.element }, option: function(a, b) { var f = a, e = this; if (arguments.length === 0) return d.extend({}, e.options); if (typeof a === "string") { if (b === void 0) return this.options[a]; f = {}; f[a] = b } d.each(f, function(a, b) { e._setOption(a, b) }); return e }, _setOption: function(a, b) { this.options[a] = b; a === "disabled" && this.widget181()[b ? "addClass" : "removeClass"](this.widgetBaseClass + "-disabled ui-state-disabled").attr("aria-disabled", b); return this }, enable: function() { return this._setOption("disabled", !1) }, disable: function() { return this._setOption("disabled", !0) }, _trigger: function(a, b, f) { var e = this.options[a], b = d.Event(b); b.type = (a === this.widgetEventPrefix ? a : this.widgetEventPrefix + a).toLowerCase(); f = f || {}; if (b.originalEvent) for (var a = d.event.props.length, g; a; ) g = d.event.props[--a], b[g] = b.originalEvent[g]; this.element.trigger(b, f); return !(d.isFunction(e) && e.call(this.element[0], b, f) === !1 || b.isDefaultPrevented()) } } })(jQuery); (function(d) { d.ui181 = d.ui181 || {}; var a = /left|center|right/, c = /top|center|bottom/, b = d.fn.position181, f = d.fn.offset; d.fn.position181 = function(e) { if (!e || !e.of) return b.apply(this, arguments); var e = d.extend({}, e), g = d(e.of), f = (e.collision || "flip").split(" "), k = e.offset ? e.offset.split(" ") : [0, 0], h, j, i; e.of.nodeType === 9 ? (h = g.width(), j = g.height(), i = { top: 0, left: 0 }) : e.of.scrollTo && e.of.document ? (h = g.width(), j = g.height(), i = { top: g.scrollTop(), left: g.scrollLeft() }) : e.of.preventDefault ? (e.at = "left top", h = j = 0, i = { top: e.of.pageY, left: e.of.pageX }) : (h = g.outerWidth(), j = g.outerHeight(), i = g.offset()); d.each(["my", "at"], function() { var b = (e[this] || "").split(" "); b.length === 1 && (b = a.test(b[0]) ? b.concat(["center"]) : c.test(b[0]) ? ["center"].concat(b) : ["center", "center"]); b[0] = a.test(b[0]) ? b[0] : "center"; b[1] = c.test(b[1]) ? b[1] : "center"; e[this] = b }); f.length === 1 && (f[1] = f[0]); k[0] = parseInt(k[0], 10) || 0; k.length === 1 && (k[1] = k[0]); k[1] = parseInt(k[1], 10) || 0; e.at[0] === "right" ? i.left += h : e.at[0] === "center" && (i.left += h / 2); e.at[1] === "bottom" ? i.top += j : e.at[1] === "center" && (i.top += j / 2); i.left += k[0]; i.top += k[1]; return this.each(function() { var a = d(this), b = a.outerWidth(), c = a.outerHeight(), g = d.extend({}, i); e.my[0] === "right" ? g.left -= b : e.my[0] === "center" && (g.left -= b / 2); e.my[1] === "bottom" ? g.top -= c : e.my[1] === "center" && (g.top -= c / 2); g.left = parseInt(g.left); g.top = parseInt(g.top); d.each(["left", "top"], function(a, i) { if (d.ui181.position[f[a]]) d.ui181.position[f[a]][i](g, { targetWidth: h, targetHeight: j, elemWidth: b, elemHeight: c, offset: k, my: e.my, at: e.at }) }); d.fn.bgiframe && a.bgiframe(); a.offset(d.extend(g, { using: e.using })) }) }; d.ui181.position = { fit: { left: function(a, b) { var c = d(window), c = a.left + b.elemWidth - c.width() - c.scrollLeft(); a.left = c > 0 ? a.left - c : Math.max(0, a.left) }, top: function(a, b) { var c = d(window), c = a.top + b.elemHeight - c.height() - c.scrollTop(); a.top = c > 0 ? a.top - c : Math.max(0, a.top) } }, flip: { left: function(a, b) { if (b.at[0] !== "center") { var c = d(window), c = a.left + b.elemWidth - c.width() - c.scrollLeft(), f = b.my[0] === "left" ? -b.elemWidth : b.my[0] === "right" ? b.elemWidth : 0, h = -2 * b.offset[0]; a.left += a.left < 0 ? f + b.targetWidth + h : c > 0 ? f - b.targetWidth + h : 0 } }, top: function(a, b) { if (b.at[1] !== "center") { var c = d(window), c = a.top + b.elemHeight - c.height() - c.scrollTop(), f = b.my[1] === "top" ? -b.elemHeight : b.my[1] === "bottom" ? b.elemHeight : 0, h = b.at[1] === "top" ? b.targetHeight : -b.targetHeight, j = -2 * b.offset[1]; a.top += a.top < 0 ? f + b.targetHeight + j : c > 0 ? f + h + j : 0 } } } }; if (!d.offset.setOffset) d.offset.setOffset = function(a, b) { if (/static/.test(d.curCSS(a, "position"))) a.style.position = "relative"; var c = d(a), f = c.offset(), h = parseInt(d.curCSS(a, "top", !0), 10) || 0, j = parseInt(d.curCSS(a, "left", !0), 10) || 0, f = { top: b.top - f.top + h, left: b.left - f.left + j }; "using" in b ? b.using.call(a, f) : c.css(f) }, d.fn.offset = function(a) { var b = this[0]; return !b || !b.ownerDocument ? null : a ? this.each(function() { d.offset.setOffset(this, a) }) : f.call(this) } })(jQuery); (function(d) { d.widget181("ui181.autocomplete", { options: { minLength: 1, delay: 300, dynamicSource: !1, limit: 0, item: null, offset: "", customClass: "", viewMore: null, footerElement: null, onTab: null, onEnter: null, currentLanguage: "E" }, _create: function() { var a = this, c = this.element[0].ownerDocument; this.element.addClass("ui-autocomplete-input").attr("autocomplete", "off").attr({ role: "textbox", "aria-autocomplete": "list", "aria-haspopup": "true" }).bind("keydown.autocomplete", function(b) { var c = d.ui181.keyCode; switch (b.keyCode) { case c.PAGE_UP: a._move("previousPage", b); break; case c.PAGE_DOWN: a._move("nextPage", b); break; case c.UP: a._move("previous", b); b.preventDefault(); break; case c.DOWN: a._move("next", b); b.preventDefault(); break; case c.ENTER: if (typeof a.options.onEnter === "function") { var e = !1; if (a.menu.active) e = !0, a._skip = !0; a.options.onEnter(b, a._getUI(c), e); a.close(); break } a.menu.active && b.preventDefault(); case c.ESCAPE: a.element.val(a.term); a.close(b); break; case c.LEFT: case c.RIGHT: case c.SHIFT: case c.CONTROL: case c.ALT: break; default: clearTimeout(a.searching), a.searching = setTimeout(function() { a.search(null, b) }, a.options.delay) } }).bind("focus.autocomplete", function() { a.selectedItem = null; a.previous = a.element.val() }).bind("blur.autocomplete", function(b) { clearTimeout(a.searching); a.closing = setTimeout(function() { a.close(b); a._change(b) }, 150) }); this._getUI = function() { var a = this.menu.active; a || (a = $j(this.menu.element.children().get(0))); return a.data("item.autocomplete") }; this._searching = !1; this.options.dynamicSource || this._initSource(); this.response = function() { return a._response.apply(a, arguments) }; this._skip = !1; this.menu = $j("<ul></ul>").addClass("ui-autocomplete" + (this.options.customClass == "" ? "" : " " + this.options.customClass)).appendTo("body", c).menu({ focus: function(b, c) { var d = c.item.data("item.autocomplete"); d != null && d !== void 0 && !1 !== a._trigger("focus", null, { item: d }) && /^key/.test(b.originalEvent.type) && a.element.val(d.label) }, selected: function(b, d) { if (d.item != null) { var e = d.item.data("item.autocomplete"); !1 !== a._trigger("select", b, { item: e }) && a.element.val(e.value); a.close(b); var g = a.previous; if (a.element[0] !== c.activeElement) a.element.focus(), a.previous = g; a.selectedItem = e } }, blur: function() { a.menu.element.is(":visible") && a.element.val(a.term) } }).css({ top: 0, left: 0, zIndex: 1E3 }).hide().data("menu"); d.fn.bgiframe && this.menu.element.bgiframe() }, destroy: function() { this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup"); this.menu.element.remove(); d.Widget181.prototype.destroy.call(this) }, _setOption: function(a) { d.Widget181.prototype._setOption.apply(this, arguments); a === "source" && this._initSource() }, _initSource: function(a) { var c, b, f, e, g = this; e = g.options.normalize; if (a != null && a !== void 0 || g.options.dynamicSource) { c = a.split(""); a = e ? jQuery.normalize(c[0], g.options.currentLanguage) : c[0]; f = e ? jQuery.normalize(c[1], g.options.currentLanguage) : c[1]; e = e ? jQuery.normalize(c[2], g.options.currentLanguage) : c[2]; g._termSearched = a + f + e; var l = RegExp(/(\?|\!|\*|\+|>|<)/); b = this.options.source.replace("{0}", a).replace("{1}", f).replace("{2}", e); this.source = function(a) { g._skip = !1; if (!g._searching) l.test(b) ? (g._searching = !1, g.close()) : g.data == null ? (g._searching = !0, d.ajax({ type: "GET", url: b, dataType: "json", cache: !0, timeout: 3E4, success: function(b) { if (!g._skip) b.length > 0 ? (g.response(d.ui181.autocomplete.filter(b, a.term)), g.data = b) : g.close(); g._skip = !1; g._searching = !1 } })) : g.response(d.ui181.autocomplete.filter(g.data, a.term)) } } else d.isArray(this.options.source) ? (c = this.options.source, this.source = function(a) { g.response(d.ui181.autocomplete.filter(c, a.term)) }) : typeof this.options.source === "string" ? (b = this.options.source, this.source = function(a, c) { d.getJSON(b, a, c) }) : this.source = this.options.source }, search: function(a, c) { var b, a = a != null ? a : this.element.val(); if (a.length < this.options.minLength) return this.close(c); else a.length == 3 && this.options.dynamicSource && (b = this._termSearched !== void 0 ? this._termSearched.toLowerCase() : this._termSearched, this.source == null || this.source === void 0 ? this._initSource(a) : b !== a.toLowerCase() && this._initSource(a)); clearTimeout(this.closing); return this._trigger("search") === !1 ? void 0 : this._search(a) }, _search: function(a) { this.term = this.element.addClass("ui-autocomplete-loading").val(); (typeof this.source === void 0 || this.source == null) && this._initSource(a); this.source({ term: a }, this.response) }, _response: function(a) { a.length ? (a = this._normalize(a), this._suggest(a), this._trigger("open")) : this.close(); this.element.removeClass("ui-autocomplete-loading") }, close: function(a) { clearTimeout(this.closing); this.data = null; this._skip = !0; if (this.options.onClose != null && typeof this.options.onClose === "function") this.options.onClose(); this.menu.element.is(":visible") && (this._trigger("close", a), this.menu.element.hide(), this.menu.deactivate()) }, _change: function(a) { this.previous !== this.element.val() && this._trigger("change", a, { item: this.selectedItem }) }, _normalize: function(a) { return a.length && a[0].label && a[0].value ? a : d.map(a, function(a) { return typeof a === "string" ? { label: a, value: a} : d.extend({ label: a.label || a.value, value: a.value || a.label }, a) }) }, _suggest: function(a) { var c = this.menu.element.empty().css("zIndex", 1E3), b; this._renderMenu(c, a); this.menu.deactivate(); this.menu.refresh(); this.menu.element.show().position181({ my: "left top", at: "left bottom", of: this.element, collision: "none", offset: this.options.offset }); a = c.width("").width(); b = this.element.width(); c.width(Math.max(a, b)) }, _renderMenu: function(a, c) { var b = this, f = b.options.limit; d.each(c, function(c, d) { f > 0 && c >= f || b._renderItem(a, d) }); b.options.viewMore != null && typeof b.options.viewMore === "function" && b.options.viewMore(a, b); b.options.footerElement != null && typeof b.options.footerElement === "function" && b.options.footerElement(a) }, _renderItem: function(a, c) { var b = this._highlight(c.label, this.term); if (this.options.item != null && typeof this.options.item === "function") this.options.item(a, c, b); else return d("<li></li>").data("item.autocomplete", c).append("<a>" + c.label + "</a>").appendTo(a) }, _highlight: function(a, c) { c = c.split(" ").join("|"); return a.replace(RegExp("(" + c + ")", "gi"), "<b>$1</b>") }, _move: function(a, c) { if (this.menu.element.is(":visible")) if (this.menu.first() && /^previous/.test(a) || this.menu.last() && /^next/.test(a)) this.element.val(this.term), this.menu.deactivate(); else this.menu[a](c); else this.search(null, c) }, widget181: function() { return this.menu.element } }); d.extend(d.ui181.autocomplete, { escapeRegex: function(a) { return a.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi, "\\$1") }, filter: function(a, c) { var b = RegExp(d.ui181.autocomplete.escapeRegex(c), "i"); return d.grep(a, function(a) { return b.test(a.value || a) }) } }) })(jQuery); (function(d) { d.widget181("ui181.menu", { _create: function() { var a = this; this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({ role: "listbox", "aria-activedescendant": "ui-active-menuitem" }).click(function(c) { d(c.target).closest(".ui-menu-item a").length && (c.preventDefault(), a.select(c)) }); this.refresh() }, refresh: function() { var a = this; this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role", "menuitem").children("a").addClass("ui-corner-all").attr("tabindex", -1).mouseenter(function(c) { a.activate(c, d(this).parent()) }).mouseleave(function() { a.deactivate() }) }, activate: function(a, c) { this.deactivate(); if (this.hasScroll()) { var b = c.offset().top - this.element.offset().top, d = this.element.attr("scrollTop"), e = this.element.height(); b < 0 ? this.element.attr("scrollTop", d + b) : b > e && this.element.attr("scrollTop", d + b - e + c.height()) } this.active = c.eq(0).children("a").addClass("ui-state-hover").attr("id", "ui-active-menuitem").end(); this._trigger("focus", a, { item: c }) }, deactivate: function() { if (this.active) this.active.children("a").removeClass("ui-state-hover").removeAttr("id"), this._trigger("blur"), this.active = null }, next: function(a) { this.move("next", ".ui-menu-item:first", a) }, previous: function(a) { this.move("prev", ".ui-menu-item:last", a) }, first: function() { return this.active && !this.active.prev().length }, last: function() { return this.active && !this.active.next().length }, move: function(a, c, b) { this.active ? (a = this.active[a + "All"](".ui-menu-item").eq(0), a.length ? this.activate(b, a) : this.activate(b, this.element.children(c))) : this.activate(b, this.element.children(c)) }, nextPage: function(a) { if (this.hasScroll()) if (!this.active || this.last()) this.activate(a, this.element.children(":first")); else { var c = this.active.offset().top, b = this.element.height(), f = this.element.children("li").filter(function() { var a = d(this).offset().top - c - b + d(this).height(); return a < 10 && a > -10 }); f.length || (f = this.element.children(":last")); this.activate(a, f) } else this.activate(a, this.element.children(!this.active || this.last() ? ":first" : ":last")) }, previousPage: function(a) { if (this.hasScroll()) if (!this.active || this.first()) this.activate(a, this.element.children(":last")); else { var c = this.active.offset().top, b = this.element.height(); result = this.element.children("li").filter(function() { var a = d(this).offset().top - c + b - d(this).height(); return a < 10 && a > -10 }); result.length || (result = this.element.children(":first")); this.activate(a, result) } else this.activate(a, this.element.children(!this.active || this.first() ? ":last" : ":first")) }, hasScroll: function() { return this.element.height() < this.element.attr("scrollHeight") }, select: function(a) { this._trigger("selected", a, { item: this.active }) } }) })(jQuery); (function(d) { function a(a, b) { var f = this, a = d(a); jQuery.extend(f, { init: function() { a.autocomplete({ source: b.source, limit: b.limit, minLength: b.minLength, delay: b.delay, dynamicSource: b.dynamicSource, normalize: b.normalize, offset: b.offset, customClass: b.customClass, currentLanguage: f.getCurrentLanguage(), onTab: function(a, c, d) { if (typeof b.onTab === "function") b.onTab(a, c, d) }, onEnter: function(a, c, d) { if (typeof b.onEnter === "function") b.onEnter(a, c, d) }, search: function() { f.loader(!0) }, open: function() { f.loader(!1) }, close: function() { f.loader(!1) }, onClose: function() { f.loader(!1) }, select: function(a, c) { typeof b.select === "function" && b.select(a, c) }, viewMore: function(a, c) { typeof b.viewMore === "function" && b.viewMore(a, c) }, item: function(a, b, c) { return d("<li></li>").data("item.autocomplete", b).append("<a>" + c + "</a>").appendTo(a) } }) }, getCurrentLanguage: function() { if (b.currentLanguage != null && b.currentLanguage !== void 0 && b.currentLanguage != "") return b.currentLanguage; if (d("#currentLanguage").size() == 1) return d("#currentLanguage").text(); for (var a = d("body").attr("class").split(" "), c = a.length - 1; c >= 0; c--) if (a[c].indexOf("lang") > -1) return a[c].replace("lang", "") }, loader: function(a) { typeof b.loader === "object" && (a ? b.loader.addClass("loading") : b.loader.removeClass("loading")) }, slide: function() { var b = a.parent(); b.is(".ui-autocomplete-open") || a.focus(function() { b.stop().animate({ width: 267 }, 500, function() { b.addClass("ui-autocomplete-open") }).end(); a.val().toLowerCase() == d(".seVal").text() && a.val("") }).blur(function() { b.stop().animate({ width: 119 }, 500, function() { b.removeClass("ui-autocomplete-open") }) }) } }) } jQuery.fn.autosuggestion = function(c) { var b = jQuery(this).eq(typeof c == "number" ? c : 0).data("d3AutoSuggestion"); if (b) return b; var d = { source: "http://" + LANG + ".uefa.com/search/suggestion/fl={0}/sl={1}/tl={2}/feed.js", limit: 10, minLength: 3, delay: 0, dynamicSource: !0, normalize: !0, slide: !1 }; jQuery.extend(d, c); jQuery.extend(jQuery(this), d); this.each(function() { var b = new a(jQuery(this), d); b.init(); c.slide && b.slide(); jQuery(this).data("d3AutoSuggestion", b) }); return jQuery(this) } })(jQuery);$j(document).ready(function() {var $tabs=$j("#newsReader").tabs({ fx:{ opacity:"toggle"} }).tabs("rotate",5000,true);var selected;var $kids=$j("#newsReader .ui-tabs-nav-item");$tabs.bind('tabsselect',function(event,ui) {$j('#newsReader .nextnavig').unbind('click',nextnavig);$j('#newsReader .prevnavig').unbind('click',prevnavig);});$tabs.bind('tabsshow',function(event,ui) {$tabs.tabs("rotate",5000,true);$j('#newsReader .nextnavig').one('click',nextnavig);$j('#newsReader .prevnavig').one('click',prevnavig);});$j('#newsReader .nextnavig').one('click',nextnavig);$j('#newsReader .prevnavig').one('click',prevnavig);function nextnavig() {$tabs.tabs("rotate",null,true);selected=$tabs.tabs('option','selected') + 1;if(selected==$kids.length) { selected=0; }$tabs.tabs('select',selected);return false;}function prevnavig() {$tabs.tabs("rotate",null,true);selected=$tabs.tabs('option','selected') - 1;if(selected<0) { selected=$kids.length - 1; }$tabs.tabs('select',selected);return false;}});eval(function(p, a, c, k, e, d) { e = function(c) { return (c < a ? "" : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) { d[e(c)] = k[c] || e(c) } k = [function(e) { return d[e] } ]; e = function() { return '\\w+' }; c = 1 }; while (c--) { if (k[c]) { p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]) } } return p } ('9.15.12=s(f,E){e(f==M)k;7 3={f:f,4:5,d:0};e(E){9.C(3,E)};9.C(3,{13:(3.4>1)?S:x});7 c=9(m);9.C(c,{T:3.d,f:3.f});e(!3.b||3.b==M||3.b==\'14\'){7 h=3.4*U;7 l=\'<D g="8-6" b="j:\'+h+\'r">\'}e(3.b==\'y\'){7 h=3.4*10;7 l=\'<D g="8-6 y-8" b="j:\'+h+\'r">\'}e(3.b==\'P\'){7 h=3.4*10;7 l=\'<B g="P-6"><D g="8-6 y-8" b="j:\'+h+\'r">\'}c.A(l);7 v,w,o=\'\';7 H=J.K(q/3.4*3.d);X(7 i=0;i<=3.4;i++){e(i==0){o+=\'<p g="G-6" b="j:\'+H+\'%;">\'+3.d+\'/\'+3.4+\'</p>\'}I{v=J.K(q/3.4*i);w=(3.4-i)+2;o+=\'<p g="8"><a O="#\'+i+\'" Y="\'+i+\'/\'+3.4+\'" b="j:\'+v+\'%;z-N:\'+w+\'">\'+i+\'</a></p>\'}}c.u(\'.8-6\').A(o);e(3.4>1){c.A(\'<B g="8-6-R"></B>\')}7 t=9(c).u(\'.8-6\').n(\'.8\');t.11(s(){e(3.4==1){3.d=(3.d==0)?1:0;9(c).u(\'.8-6\').n(\'.G-6\').V({j:(3.d*q)+\'%\'});9.Q(c.f,{"6":3.d});k x}I{3.d=t.N(m)+1;F=9(m).n(\'a\')[0].O.Z(\'#\')[1];9.Q(c.f,{"6":F},s(L){c.n(\'.8-6-R\').W(L)});k x}k S});k m}', 62, 68, '|||settings|maxvalue||rating|var|star|jQuery||style|container|curvalue|if|url|class|raterwidth||width|return|ratingparent|this|children|listitems|li|100|px|function|stars|find|starWidth|starIndex|false|small||append|span|extend|ul|options|raterValue|current|curvalueWidth|else|Math|floor|response|null|index|href|inline|post|result|true|averageRating|25|css|html|for|title|split||click|rater|cancel|basic|fn'.split('|'), 0, {}));(function(a){a(document).ready(function(){a(".newsCarMini, .newsPG").each(function(){function j(f,h){var d=f.index(h,a(".jcCont .news").length),c=a(".jc-item-"+h+" img",b).addClass("current");c.attr("src")&&(a(".widePhoto",b).attr("src",c.attr("src").replace("_"+a(".thumbSize",b).val(),"_"+a(".carouselWideSize",b).val())),a(".widePhoto",b).attr("alt",c.attr("alt")),a(".widePhotoHref",b).attr("href",a(i+d+" .newsUrl").val()),a(".position span",b).html(d));a(".widePhoto",b).fadeIn("200");a(".jcInfo",b).html(a(i+d,b).html())}function l(f){var d=a("<a></a>").addClass("newsThumb").attr("href","#"),b=new Image,c=a("input:eq(0)",f).val(),e;e=c&&c.indexOf("s5")!==-1?{h:75,w:75}:{h:60,w:60};a(b).load(function(){d.append(this)}).attr({src:c,height:e.h,width:e.w}).attr("alt",a("p.jcTitle a, p.medTitle, h2 a",f).html());return d}var b=this,i=a("#_news1").length>0?"#_news":"#cnt_news",g=1,e=document.location.search;e!=""&&(e=e.replace("pid=","").substring(1),e=a(".jboxNews").find("img[src*=/"+e+"_]"),e.length>0&&(g=e.parent().parent(),g=g.parent().find("li").index(g),g<0?g=0:a("#ph > .widePhoto",b).attr("src",e.attr("src").replace("_s5","_w2")),g++));var e=parseInt(a(".carouselAuto",b).val()),c=parseInt(a(".carouselScroll",b).val()),k=parseInt(a(".carouselAnimation",b).val()),d=a(".carouselWrap",b).val();parseInt(a(".carouselCount, input.count",b).val())<8&&(d=null);a(".jboxNews",b).jc({auto:e,scroll:c,animation:k,wrap:d,initCallback:function(f){f.buttonNext.bind("click",function(){f.startAuto()});f.buttonPrev.bind("click",function(){f.startAuto()});f.clip.hover(function(){f.stopAuto()},function(){f.startAuto()});f.list.children("li").bind("click",function(){var h=f.index(a(this).attr("jcarouselindex"),a(".jcCont .news",b).length);d==null?j(f,a.jc.intval(h)):f.scroll(a.jc.intval(h));return!1})},itemFirstInCallback:function(a,d,b){j(a,b)},itemFirstOutCallback:function(f,d,c){a(".jc-item-"+c+" img",b).removeClass("current")},itemVisibleInCallback:{onBeforeAnimation:function(d,c,e){c=d.index(e,a(".jcCont .news",b).length);d.add(e,l(a(i+c,b)));d.list.children("li").bind("click",function(){var c=d.index(a(this).attr("jcarouselindex"),a(".jcCont .news",b).length);d.scroll(a.jc.intval(c));return!1})}},itemVisibleOutCallback:{onAfterAnimation:function(a,d,c){a.remove(c)}},start:g})})})})(jQuery);(function(a){a(document).ready(function(){a(".promojc").each(function(){function j(a){a.buttonNext.bind("click",function(){a.startAuto()});a.buttonPrev.bind("click",function(){a.startAuto()});a.clip.hover(function(){a.stopAuto()},function(){a.startAuto()})}function l(d,b,e){d=d.index(e,a(".jcCont .news",c).length);a(".jboxNews .jc-item-"+e+" img",c).addClass("current");a(".position span",c).html(d);a(".jcInfo",c).html(a(k+d).html())}function b(d,b,e){a(".jc-item-"+e+" img",c).removeClass("current")}function i(d,b,e){b=d.index(e,a(".jcCont .news",c).length);d.add(e,g(a(k+b,c)))}function g(d){var b=a("a",d).attr("href"),c=a("<a></a>").addClass("newsThumb").attr("href",b),b=a("input:eq(0)",d).val(),e=new Image;a(e).load(function(){c.append(this)}).attr("src",b).attr("alt",a("p.medTitle, h2 a",d).html());return c}function e(a,b,c){a.remove(c)}var c=this,k=a("#_news1").length>0?"#_news":"#cnt_news";parseInt(a(".carouselCount, input.count",c).val())>0&&a(".jboxPromo",c).jc({auto:parseInt(a(".carouselAuto",c).val()),scroll:parseInt(a(".carouselScroll",c).val()),animation:parseInt(a(".carouselAnimation",c).val()),wrap:a(".carouselWrap",c).val(),initCallback:j,itemFirstInCallback:l,itemFirstOutCallback:b,itemVisibleInCallback:{onBeforeAnimation:i},itemVisibleOutCallback:{onAfterAnimation:e}})})})})(jQuery);$j(document).ready(function() {$j('.tooltip').each(function() {var $ttContent=$j(this);var $ttParent=$j($ttContent.parents()[0]);var classes=$j(this).attr('class');var _left=keepValueFromClass(classes,'left');var _top=keepValueFromClass(classes,'top');if(_left=='') _left=0;if(_top=='') _top=0;$ttParent.simpletip({objcontent:$ttContent,position:[_left,_top],fixed:true});});});(function($) {function Captcha(elem,conf) {var self=this;var img=$j("." + conf.ImgSelector,elem);var txtEnc=$j("." + conf.CriptSelector,elem);var NewImgId='';var NewCriptId='';elem=$j(elem);jQuery.extend(self,{getVersion:function() {return [1,0,0];},getParent:function() {return elem;},init:function() {if((conf.RenderElements)||(img.length==0)||(txtEnc.length==0)) {if(txtEnc.length==0) {self.appendCriptedCodeElement();} else {self.getCryptedCode();}if(img.length==0) {self.appendImgElement();} else {self.getImg();}}img.attr("style","cursor:pointer;");img.bind("click",function() {self.getImg();});},appendImgElement:function() {var ImgLength=$j("." + conf.ImgSelector).length;if(ImgLength>0) { NewImgId=conf.ImgId + "\_" + ImgLength };elem.append("<img id=\"" + NewImgId + "\" src=\"\" class=\"" + conf.ImgSelector + "\" width=\"" + conf.ImgWidth + "\" height=\"" + conf.ImgHeight + "\" style=\"display:none;\" />");img=$j("." + conf.ImgSelector,elem);},appendCriptedCodeElement:function() {var codeLength=$j("." + conf.CriptSelector).length;if(codeLength>0) { NewCriptId=conf.CriptId + "\_" + codeLength };elem.append("<input type=\"hidden\" name=\"" + NewCriptId + "\" id=\"" + NewCriptId + "\" src=\"\" class=\"" + conf.CriptSelector + "\" />");txtEnc=$j("." + conf.CriptSelector,elem)self.getCryptedCode();},getImg:function() {var d=new Date();var iu="/user/captcha.htmx?t=" + d.getMilliseconds() + unescape('%26') + "c=" + txtEnc.val();img.attr("src",iu);img.show();},getCryptedCode:function() {var d=new Date();$j.get("/user/captcha.htmx?t=" + d.getMilliseconds(),function(data) {txtEnc.val(data);self.getImg();});}});this.init();};jQuery.fn.Captcha=function(conf) {var api=jQuery(this).eq(typeof conf=='number' ? conf:0).data("d3Captcha");if(api) return api;var defaultConf={CriptSelector:'CodeEncoded',ImgSelector:'captcha',CriptId:'c_regCodeEncoded',ImgId:'c_regCodeImage',ImgWidth:200,ImgHeight:50,RenderElements:true};jQuery.extend(defaultConf,conf);jQuery.extend(jQuery(this),defaultConf);this.each(function() {var el=new Captcha(jQuery(this),defaultConf);jQuery(this).data("d3Captcha",el);});return jQuery(this).data("d3Captcha");};})();(function($) {jQuery.fn.comments=function(options) {var opts=$.extend({},$.fn.comments.defaults,options);var $wrapper=null;var _cacheValues={};var $this=null;$('body').data('jQuery.fn.comments',opts);return this.each(function() {$this=$(this);var _url=_translateUrl(opts.url);if(_url==null) return;jQuery.ajax({type:'get',cache:true,dataType:'xml',url:_url,success:function(data) {if(data!=null) {$wrapper=$('<div id="jquery-comments-' + new Date().getTime() + '"></div>');var _hsMore=_setContent(data);var _sm=$wrapper.find('.showMore');_sm.bind('click',function(e) {var $smthis=$(this);if(opts.showMore.ajax) {e.preventDefault();jQuery.ajax({async:true,cache:true,dataType:'xml',type:'get',url:$smthis.attr('href'),success:function(data) {opts.showMore.callback ? opts.showMore.callback(data):_showAllComments(data);_handlePermalink();}});}});_handlePermalink(_sm,_hsMore);}else { _setShowHide($this,opts); }}});});function _handlePermalink(_sm,_hsMore) {if(opts.plinkPrefixSelector) {var _type=opts.plinkPrefixSelector[0]=='#' ? 'id':'class';var _href=document.location.href;if(_href.lastIndexOf('#')>_href.lastIndexOf('.htm')) {var permalink=_href.substr(_href.lastIndexOf('#') + 1);if(permalink.length==0) return;if(isNaN(permalink)) return;var $plink=$(opts.plinkPrefixSelector + permalink);if($plink.length>0) jQuery.fn.comments.scrollToComment($plink);else {if(!_hsMore&&_sm) _sm.trigger('click');else jQuery.fn.comments.scrollToComment($wrapper.find('div[' + _type + '^=' + opts.plinkPrefixSelector.substr(1) + ']:eq(0)'));}}}};function _setContent(data,hideShowMore) {var $data=$(data);if($data.find(opts.wrapper.mapping[0]).length>0) {$wrapper.append(_translateContent(opts.wrapper,$data).replace('#{showMore.url}',_translateUrl(opts.showMore.url)));var _comments=$data.find('comments>comment');if(($data.find('ncomm').text() * 1)<=_comments.length) hideShowMore=true;$wrapper.html($wrapper.html().replace('#{' + opts.wrapper.mapping.length + '}',_translateContent(opts.content,_comments)));if(hideShowMore) $wrapper.find(opts.wrapper.showMoreSelector).hide();$this.append($wrapper);}else { _setShowHide($this,opts); }return hideShowMore;};function _setShowHide($this,opts) {if(!opts.hideElmIfEmpty) return;var isClass=opts.hideElmIfEmpty.indexOf('.')==0;if(isClass) {if($this.hasClass(opts.hideElmIfEmpty.substr(1))) { $this.hide(); }else if($this.parent().hasClass(opts.hideElmIfEmpty.substr(1))) { $this.parent().hide(); }else {$this.find(opts.showElmIfEmpty).show();$this.parent().find(opts.showElmIfEmpty).show();}}$this.find(opts.showElmIfEmpty).show();};function _translateContent(obj,data) {var result='';var _template=obj.template;if(data.length==1) _template=__translate(_template,obj,data);else {data.each(function(i) { result += __translate(_template,obj,data,$(this),i); });_template=result;}return _template;};function __translate(template,obj,data,item,index) {var _o=item ? item:data;for (var i=obj.mapping.length - 1; i>=0; i--) {var _wp=obj.mapping[i];var _owp=_o.find(_wp);if(_owp.length>0) {var _txt=_owp.text();if(_txt=='') _txt=_owp.html();if(_txt.indexOf('CDATA')!=-1) _txt=_txt.replace('<!--[CDATA[','').replace(']]-->','').replace('<![CDATA[','').replace(']]>','');for (var i2=opts.moveElmMapping.length - 1; i2>=0; i2--) {var _mm=opts.moveElmMapping[i2];if(_mm.substr(1)==_wp) {if(_txt!='') {$j(_mm).html(_txt);_txt='';}}}template=template.replace('#{' + i + '}',_txt);}}var _cssMarker='#{cssClass.index}';if(template.indexOf(_cssMarker)!=-1) template=template.replace(_cssMarker,index==0 ? ' ' + obj.cssClassIndex:'');return template;}function _translateUrl(url) {var result=url;var re=/\[([\w]+)\]*/;var match=re.exec(url);if(match!=null) {var _replace=match[0];var _par=match[1];var _value=_setCache(_par);if(_value==null) {if(!opts.urlParsTranslate.hasOwnProperty(_par)) return null;_value=_setCache(opts.urlParsTranslate[_par],_par);if(_value==null) return null;}var _nurl=url.replace(_replace,_par + '=' + _value);result=re.test(_nurl) ? _translateUrl(_nurl):_nurl;}return result;};function _setCache(_par,additionalItem) {var _value=_cacheValues.hasOwnProperty(_par) ? _cacheValues[_par]:_getData(_par);if(_value!=null) {_cacheValues[_par]=_value;if(additionalItem) _cacheValues[additionalItem]=_value;}return _value;};function _getData(toSearch) {var _d=opts.dataFrom.split('_');var result=null;for (var i=_d.length - 1; i>=0; i--) {result=$.fn.comments.__getData(_d[i],toSearch);if(result!=null) break;}return result;};function _showAllComments(data) {if(data!=null) {$wrapper.html('');_setContent(data,true);}}function _getNode(o,filter) {return o.find(filter).length>0 ? o.find(filter):o.filter(filter);}};jQuery.fn.comments.defaults={url:'/news/[newsid]/_comments.html',dataFrom:'URL_#newsId',wrapper:{template:'<h2 class="count">#{0}</h2><div class="jquery-comments-wrapper">#{3}</div><div class="showMoreComments"><a class="showMore" href="#{showMore.url}">#{1}</a></div>',mapping:['totComments','showAllLabel','ncomm'],showMoreSelector:'.showMoreComments'},hideElmIfEmpty:'.commentContainer',showElmIfEmpty:'.postCommentLink',moveElmMapping:[],content:{template:'<div id="comment_#{0}" class="jquery-single-comment#{cssClass.index}"><div class="avatar"><img src="#{1}"/></div><div class="comment"><div class="commentText">#{2}</div><div class="commentDetail"><span class="author">#{3}</span>&nbsp;-#{4}#{5}</div></div><div class="clear">&nbsp;</div></div>',mapping:['id','avatarSrc','text','screenName','countryName','dateIns'],cssClassIndex:'first'},showMore:{ajax:true,url:'/news/comment/[newsid]/_allcomments.xml',callback:null},urlParsTranslate:{newsid:'postid',postid:'newsid'},xmlRootElement:'root',plinkPrefixSelector:'#comment_'};jQuery.fn.comments.readPars=function(par,selector) {var _from=jQuery.fn.comments.defaults.dataFrom.split('_');var result=null;for (var i=0; i<_from.length; i++) {if(result) break;result=jQuery.fn.comments.__getData(_from[i],par);}if(!result&&selector) result=jQuery.fn.comments.__getData(selector,par);return result;};jQuery.fn.comments.__getData=function(from,toSearch) {var result=null;if(from.toLowerCase()=='url') {var _url=document.location.href.toLowerCase();var _ts=toSearch + '=';var _index=_url.indexOf(_ts);if(_index!=-1) result=jQuery.fn.comments._extractValue(_url.substring(_index + _ts.length),['.','/','&']);}if(result==null) {var _f=$(from);if(_f.length>0) result=_f.html();}return result;};jQuery.fn.comments._extractValue=function(value,chars) {for (var i=chars.length - 1; i>=0; i--) {var character=chars[i];var _index=value.indexOf(character);if(_index!=-1) value=value.substring(0,_index);}return value;};jQuery.fn.comments.scrollToComment=function(obj,duration) {var _to=typeof (obj)==typeof ({}) ? obj.offset().top:obj;$('html,body').animate({ scrollTop:_to },(duration ? duration:1000));}})(jQuery);if(!window.console||!console.firebug) { var names=["log","debug","info","warn","error","assert","dir","dirxml","group","groupEnd","time","timeEnd","count","trace","profile","profileEnd"]; window.console={}; for (var i=0; i<names.length; ++i) window.console[names[i]]=function() { } }function getHostName() { var s=document.location.href; s=s.replace(/(^[a-zA-z0-9]*:\/\/)/,''); s=s.replace(/(\/.*)/,''); return s; }function getUrlParams() { var s=document.location.href; if(s.indexOf('?')!=-1) return s.substring(s.indexOf('?') + 1); if(s.indexOf('#')!=-1) return s.substring(s.indexOf('#') + 1); return ''; }function fnClearInput(inp,ot) { if(inp.value.toLowerCase()==ot.toLowerCase()) inp.value=''; }function getUrlParameter(name) {name=name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&#]" + name + "=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(window.location.href);if(results==null)return "";elsereturn results[1];}function fnOpenWindow(address,target,toolbar,location,directories,status,menubar,scrollbars,resizable,width,height,top,left) {if((scrollbars=='yes')&&(window.screen.availHeight<height)) {width=parseInt(width) + 17;} else {scrollbars='no';}if(!(top>'0')) {top=(window.screen.availHeight / 2) - (height / 2);}if(!(left>'0')) {left=(window.screen.availWidth / 2) - (width / 2);}var option="toolbar=" + toolbar + ",location=" + location + "directories=" + directories + ",status=" + status + ",menubar=" + menubar + ",scrollbars=" + scrollbars + ",resizable=" + resizable + ",width=" + width + ",height=" + height + ",top=" + top + ",left=" + left;objWindow=window.open(address,target,option);objWindow.focus();}function openPopup(address,target,width,height,top,left) {if(top==null) top='';if(left==null) left='';fnOpenWindow(address,target,'no','no','no','no','no','no','no',width,height,top,left);}function openCustomPopup(address,type) {var width;var height;var target='';switch (type) {case 'uvs':width='848';height='610';break}openPopup(address,target,width,height,null,null);}function keepValueFromClass(sClass,nameClass) {var arrClass=sClass.split(' ');var i;var res;var value;i=0;res='';do {if(arrClass[i]!='') {value=arrClass[i].split('_');if(value[0]==nameClass) {res=value[1];i=arrClass.length;}}i += 1;} while (i<arrClass.length);return res;}$j(document).ready(function() {if(BrowserDetect.outdated==true) {if(Cookie.get('checkBrowser')!='false') {var host=location.hostname;var re=new RegExp("http://(www|en|fr|it|de|es|pt|ru|de|pl|ua|cn|kr|jp)\\.uefa\\.com/");if(re.test(host)) {$j.ajax({url:"/library/header/_browserdetection.html",cache:false,success:function(html) {$j(html).insertBefore('.d3cmsContent');$j('.d3cmsBrowser .body .browser span').html(BrowserDetect.browser + ' ' + BrowserDetect.version);$j(".d3cmsBrowser .header span.close").click(function() {if(window.confirm(_MSGDETECTALERT)) {$j(".d3cmsBrowser").hide();Cookie.set('checkBrowser','false',365,'/',_DOMAIN);} else {return false;}});$j(".d3cmsBrowser .header span.hidethis").click(function() {$j(".d3cmsBrowser").hide();Cookie.set('checkBrowser','false',0,'/',_DOMAIN);});}});}};};$j(".sortTable").each(function() {var deltal;if($j('thead tr',$j(this)).length==1) {deltal=0;} else {deltal=$j('thead tr:first-child th',$j(this)).length;}$j(this).tablesorter({ delta:deltal,debug:true,widgets:['zebra','checkNoSort'],widgetZebra:{ css:["on","off"]} }).bind("sortEnd",columnHighlight);});var _cmts;if((_cmts=$j('.postComments,.postCommentsToty')).length>0)_cmts.comments({ url:'/news/comment/[newsid]/_comments.xml',moveElmMapping:['#totComments','.ncomm']});$j('.fadeThis').hover(function() {$j('>.hover',this).show();},function() {$j('>.hover',this).hide();});$j("div.vBgTitle").imgRollover();$j(".toggleVisibility").click(function() {$j(this).toggleClass("visible");$j(this).parent().siblings("div").slideToggle("slow");return false;});if($j('.newsActions').length>0) {window.jprint=$j('.newsActions .type_print a:visible').jPrint();if(window.jprint&&!window.jprint.jPrint.hasToken()) {var _a=$j('.newsActions .type_mail a:visible,.newsActions .type_share a:visible');window.jshare=_a.jShare({ dialogSelector:'.share-dialog' });var _href=window.location.href;if(_href.indexOf('newsid=')==-1&&_href.indexOf('postid=')==-1) {_href=$j('.newsActions .type_print a:eq(0)').attr('href');}window.jshare.init({ $this:_a,href:_href });}}if($j('.postListActions').length>0) {setPostJShare();}$j(".d3pg .fb-button").hover(function() {$j(".d3pg").css("overflow","visible");$j(".d3pg .d3wide").css("overflow","visible");$j(".d3pg").parents(".row").css("overflow","visible");},function() {$j(".d3pg").css("overflow","hidden");$j(".d3pg .d3wide").css("overflow","hidden");});$j('#d3pgArticle .d3wide .wTop').append($j('#PGContainer .newsActions').removeClass("abshide"));if($j('#headerRanking').length>0) {var _c=$j('#headerRanking').parents('.row:eq(0),.d3cmsTopContent:eq(0),#associationHeader');var _nor=$j('.d3cmsTopContent');$j('#headerRanking').hover(function() {_c.css('overflow','visible');},function() {_c.css('overflow','hidden');});if($j('#dml3_women.current,#dml3_futsal.current').size()==0) {$j('#headerRanking').css('display','block');}}if($j('.d3cmsTopContent .fblike').length>0) {if(!(jQuery.browser.msie&&jQuery.browser.version==7)) {var _nor=$j('.d3cmsTopContent');$j('.d3cmsTopContent .fblike').hover(function() {_nor.css('overflow','visible');},function() {_nor.css('overflow','hidden');});}}$j('#hse').autosuggestion({slide:true,offset:'0 0',customClass:'ui-autocomplete-header',loader:$j('#headerSearch .seLoad'),viewMore:function(ul,self) {if($j('li',ul).size()>=10) {var moreResults=$j('#seMoreRes').text() + ' &raquo;';$j('<li />').addClass('ui-menu-item ui-menu-more').append($j('<div />').append($j('<a />').html(moreResults).click(function() {if(location.href.indexOf('/search/')>-1) {DirectSearch(self.term);} else {location.href='http:/' + '/' + LANG + '.uefa.com/search/index.html#' + self.term;}}))).appendTo(ul);}},onTab:function(event,ui,active) {SearchLoad(event,ui,active);event.preventDefault();},onEnter:function(event,ui,active) {SearchLoad(event,ui,active);event.preventDefault();},select:function(event,ui) {SearchLoad(event,ui.item,true);}});function SearchLoad(event,ui,active) {var hash;if(ui!=null&&active) {hash=ui.label + '&' + ui.type + '=' + ui.id + '&ob=' + ui.type;} else {hash=$j('#hse').val();}if(location.href.indexOf('/search/')>-1) {if(active) {Search(event,ui);} else {DirectSearch(hash);}$j('#hse').val('').blur();} else {location.href='http:/' + '/' + LANG + '.uefa.com/search/index.html#' + hash;}}$j('#headerSearch').submit(function(e) {var q=$j('input#hse',$j(this)).val();if(q.toLowerCase()!=$j('.seVal').text()&&q!='') {location.href='http:/' + '/' + LANG + '.uefa.com/search/index.html#' + q;}e.preventDefault();});});function fnSearchSubmit(o,cSearch) {if(o.q.value.toLowerCase()==cSearch.toLowerCase()||o.q.value=='') {return false;} else {location.href='http:/' + '/' + LANG + '.uefa.com/search/index.html#' + o.q.value;return false;}}function fnClearSearch(o,cSearch) {if(o.form.q.value.toLowerCase()==cSearch.toLowerCase())o.form.q.value='';}var columnHighlight=function() {$j("table.sortTable td").removeClass("highlight");$j("table.sortTable tbody tr").removeClass("on").removeClass("off");$j("table.sortTable tbody tr:nth-child(odd)").addClass("on");$j("table.sortTable tbody tr:nth-child(even)").addClass("off");var tr;if($j(this).find('thead tr').length==1) {tr=$j(this).find('thead tr');} else {tr=$j(this).find('thead tr:nth-child(2)');}var tbody=$j(this).find('tbody');var pos=0;$j('th',tr).each(function() {pos += 1;if($j(this).hasClass("headerSortDown")||$j(this).hasClass("headerSortUp")) tbody.find("td:nth-child(" + pos + ")").addClass("highlight");});}function setPostJShare() {var $o=$j('.postListActions .type_share a');$o.jShare({ dialogSelector:'.share-dialog' });return $o.length;}function isdefined(variableName) {var res=document.getElementById(variableName)!=null;return res;}function isVarDefined(variable) {var res=(typeof (window[variable])=="undefined") ? false:true;return res;}function mycarousel_getItemHTML(item) {return $(item).html();};function addADLinkScript(url) {document.write('<scr' + 'ipt src="' + url + '" type="text/javascript"><\/scr' + 'ipt>');}function addFlashScript(param0,param1,param2,param3,param4) {var customUrl='';if(isVarDefined('_flashVideoID')) {customUrl='&amp;' + _flashVideoID;}param4=param4.replace('|customurl|',customUrl);if(param0!='') { eval(param0 + ";"); }var split=param4.split("&amp;");param4=split.join("&");eval("_isNoFlashShow=true; " + param1 + param2 + param3 + ";swfobject.embedSWF(" + param4 + ",function(e){if(!e.success){_isNoFlashShow=true; if(__URL_NoFlashLink!='') location.href=__URL_NoFlashLink;}});");}function setFlashParamaters(vid,autoplay) {var flashParams=param4 + 'vid=' + vid + '&amp;autoplay=' + autoplay + param5;var split=flashParams.split("&amp;");flashParams=split.join("&");return flashParams;}function ShareUrl(extSite) {pageUrl=(parent.opener ? parent.opener:window).location.toString();switch (extSite) {case 'Facebook':ShareExtUrl="http://www.facebook.com/share.php?u=" + pageUrl;window.open(ShareExtUrl);break;case 'Digg':ShareExtUrl="http://digg.com/submit?url=" + pageUrl;window.open(ShareExtUrl);break;case 'Delicious':ShareExtUrl="http://del.icio.us/post?url=" + pageUrl;window.open(ShareExtUrl);break;case 'Twitter':ShareExtUrl="http://twitter.com/home?status=" + pageUrl;window.open(ShareExtUrl);break;}}function getUrlPar(key) {key=key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS="[\\?&]" + key + "=([^&#]*)";var regex=new RegExp(regexS);var results=regex.exec(window.location.href);if(results==null)return "";elsereturn results[1];}function addEvent(obj,evType,fn,useCapture) {if(obj.addEventListener) {obj.addEventListener(evType,fn,useCapture);return true;} else if(obj.attachEvent) {var r=obj.attachEvent("on" + evType,fn);return r;} else {alert("It was not possible to set an event handler");}}addEvent(window,'load',initLogin,false);function initLogin() {if(typeof myHeader=='undefined')myHeader=new headerScript();}function headerScript() {this.MAX_MAIL_LEN=30;this.currentUser=null;this.setUserHeader=function() {var u=this.currentUser;var logged=(typeof u!='undefined')&&u.isLogged();if(logged) {document.getElementById('loggedH').style.display='block';document.getElementById('logoutH').style.display='block';document.getElementById('registerH').style.display='none';document.getElementById('loginH').style.display='none';document.getElementById('myuefacomH').style.display='block';var email=u.Data.UserEMail;var loggedUserSpan=document.getElementById("loggedUserSpan");loggedUserSpan.setAttribute("title",email);var screenName="";if(u.Data.ScreenName!='undefined'&&u.Data.ScreenName!=null) {screenName=u.Data.ScreenName;screenName=screenName.replace(/\+/g," ");}var langUrl=location.hostname.split('.')[0];var rootUrl=langUrl + '.uefa.com';email=this.trimString(email,this.MAX_MAIL_LEN,'..');var atPos=email.indexOf("@",0);email=email.substring(0,atPos);email="<a href='http://" + rootUrl + "/community/mypage/profile.htmx'>" + screenName + "</a>";loggedUserSpan.innerHTML=email;var el=document.getElementById("logoutHL");el.setAttribute("onClick","myHeader.logout();");el.setAttribute("style","float:right;");} else {document.getElementById('loggedH').style.display='none';document.getElementById('logoutH').style.display='none';document.getElementById('registerH').style.display='block';document.getElementById('loginH').style.display='block';document.getElementById('myuefacomH').style.display='none';}}this.myWriteConsole=function(msg) {if(typeof window.console!='undefined') {window.console.log(msg);}}this.trimString=function(s,max,suffix) {s='' + s;var maxLen=max - suffix.length;if(s.length>maxLen) {s=s.substring(0,maxLen) + suffix;}return s;}this.logout=function() {if(typeof this.currentUser!='undefined'&&this.currentUser.isLogged()) {this.currentUser.logout();this.setUserHeader();}}this.myInit=function() {this.currentUser=new User();if(isdefined('loggedH')&&isdefined('logoutH')&&isdefined('registerH')&&isdefined('loginH')) {this.setUserHeader();}}this.myInit();}function reloadLib(id,path) {var div=$j('#' + id).parent();var SPath=path;var ObjName=$j.get(SPath,function(transport) {var resName=transport;if(resName!='') {div.html(resName);} else {div.html('Something went wrong...');}});};$j(document).ready(function() {var langs=new Array('en','fr','de','it','es','pt');var lang=langs[0];var currentLang=location.hostname.split('.')[0];for (var i=0; i<langs.length; i++) {if(langs[i]==currentLang) {lang=langs[i];break;}}var orderUrl="https://order.uefa.com/code/content/landingpage/LandingPage.aspx?r=myaccount&lang=" + lang;var target="VideoService";var n="width=848,height=610,resizable=yes,scrollbars=auto,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no";$j('#ml3_video_uvs a').click(function() {window.open(orderUrl,target,n);return false;});});function calcAge(_date,_cssrule) {$j.ajax({url:"/library/ajax/_getdate.html",cache:false,async:false,success:function(html) {var age=0;var d=_date.split('/');var today=new Date(html);var bday=new Date(d[2],d[1],d[0]);var by=bday.getFullYear();var bm=bday.getMonth() - 1;var bd=bday.getDate();var dif=bday;while (dif<=today) {var dif=new Date(by + age,bm,bd);age++;}age += -2;$j(_cssrule).html(age);}});}function basicPaging(url,elToUpdate,inTabAjax) {url=url.replace(/\|/g,"/");if(inTabAjax) {elToUpdate=$j(elToUpdate).parents('.ui-tabs-panel');$j(elToUpdate).load(url,function() {window.scrollTo(0,$j(elToUpdate).offset().top);});} else {var _u=$j(elToUpdate).parents(".ajaxclass");_u.load(url,function() {var anchor=location.hash;if(anchor!='') {window.scrollTo(0,$j(anchor).offset().top);}else {if(_u.length>0) {window.scrollTo(0,_u.offset().top);}}});}}function getMatchIndexRefresh(lib) {$j.ajax({url:"/library/ajax/_getdateAMG.html",cache:false,async:false,success:function(html) {if($j('table.date' + html)) {$j('table.date' + html).uefaLive({timestamp:'',timeout:30000,urlcheck:'',urlget:lib,callback:function(elem,html) {var content=$j($j(html)[1]).find('tbody:odd').addClass('odd').end().html();elem.html(content); }});}}});}function getUrlParamsToty() {var strUrl=document.location.href;if(strUrl.indexOf('t=')!=-1) {strUrl=strUrl.substring(strUrl.indexOf('t=') + 2);return strUrl;}else {return "null";}}function addLoadEvent(func) {var oldonload=window.onload;if(typeof window.onload!='function') {window.onload=func;} else {window.onload=function() {oldonload();func();}}}function LangFromHost() {var _a=location.host.split(".");var _b=new RegExp('/|www|en|it|fr|de|es|pt|ru|pl|ua|jp|kr|cn|origin|/');var _ret=_a[0]&&_b.test(_a[0]) ? _a[0]:'www'; var _c=new RegExp('/|template.infra|template.stg.irt|template.trn.irt|static.stg.infra|static.trn.infra|/');return _c.test(location.host) ? location.host.replace('.uefa.com',''):_ret;}var LANG=LangFromHost();function ChangeDivVideoContent(content,cupfolder,elemToRefresh) {urltoget="/[CupFolder]/video/library/[md]_video[pagename].html"urltoget=urltoget.replace('[CupFolder]',cupfolder);if(isdefined("matchday")) {mdreplace="md=" + matchday + "/";} else {mdreplace="";}if(content.indexOf('md')>-1) {urltoget=urltoget.replace('[md]',content + '/');urltoget=urltoget.replace('[pagename]',$j('#videonewsinterview').val());} else {if(content!="") {urltoget=urltoget.replace('[pagename]',content);if($j('#selectRound').val()!="") {urltoget=urltoget.replace('[md]',$j('#selectRound').val() + '/');} else {urltoget=urltoget.replace('[md]',mdreplace);}} else {urltoget=urltoget.replace('[pagename]',$j('#videonewsinterview').val());urltoget=urltoget.replace('[md]',mdreplace);}}$j("#" + elemToRefresh + " div:first-child").addClass('hidevideo');$j("#" + elemToRefresh).addClass('loading');$j("#" + elemToRefresh).load(urltoget,function() {$j("#" + elemToRefresh + " div:first-child").removeClass('hidevideo');$j("#" + elemToRefresh).removeClass('loading');});}function setTrackOmniture() {SCW.TL(this,'o','Tool used',{linkTrackVars:'events,eVar43',linkTrackEvents:'event20',events:'event20',eVar43:'free video - change matchday'});}function flashFullPopup() {}var callBackFunctVpOnComplete='DefaultVideoComplete';var OmnExc={"jprint":{"params":[{"type":"article:print"}],"mode":"hash"}}var SCW={ContentProperties:null,EVars:null,Props:null,CustomSocialNetwork:null,CustomValues:null,FlashPage:false,Active:true,Events:null,AllowedJSContent:null,Initialize:function(properties) {SCW.Events=new Array();SCW.EVars={};SCW.Props={};SCW.CustomSocialNetwork={};SCW.ContentProperties={}; SCW.AllowedJSContent=new Array(); },Execute:function() {if(!SCW.Active) return;CustomSCW.Execute();if(SCW.ContentProperties["pagetype"]&&SCW.ContentProperties["pagetype"]=="errorPage")s.pageName="404:" + s.wd.location.href;if(!SCW.FlashPage) {var s_code=s.t();if(s_code)document.write(s_code);}},SimulateExecute:function() {if(!SCW.Active) return;CustomSCW.Execute();},AddContent:function(contentName,contentValue,ignoreCheck) {if((ignoreCheck)||(SCW.AllowedJSContent.indexOf(contentName)>-1))SCW.ContentProperties[contentName]=contentValue;},AddEvent:function(name) {if(SCW.Events.indexOf(name)<0)SCW.Events.push(name);},GetEventString:function() {var retVal="";for (var index=0,len=SCW.Events.length; index<len; ++index) {retVal += SCW.Events[index];retVal += ",";}return retVal.substring(0,retVal.length - 1);},AddEVar:function(n,val) {SCW.EVars[n]=val;},AddProp:function(n,val) {SCW.Props[n]=val;},TL:function(linkObject,kind,friendlyName,options) {if(!SCW.Active) return;if(!options) options={};var stl=s_gi(s_account);for (key in options) { stl[key]=options[key]; }stl.tl(linkObject,kind,friendlyName);s.linkTrackVars="None";s.linkTrackEvents="None";}}var CustomSCW={subsectionCount:4,fillUserDetails:function() {var u=new User();u.fillOmnitureProperties();},chainProps:function(ht,count,separator) {if(!separator)separator=":";var retVal=ht["sec"] + separator;for (var ix=1; ix<=count; ix++) {if(ht["subsec" + ix]) {retVal += ht["subsec" + ix];retVal += separator;}}return retVal.substring(0,retVal.length - 1);},fillCommonPageProperties:function(ht) {s.channel=ht["sec"];s.pageType=ht["pagetype"];for (var ix=1; ix<=CustomSCW.subsectionCount; ix++) {if(ht["subsec" + ix]) {var val=CustomSCW.chainProps(ht,ix);val=this.onPropSave(ix,val);s["prop" + ix]=val;} else {break;}}checkOmnitureException(ht); s.prop5=ht["type"];s.hier1=CustomSCW.chainProps(ht,CustomSCW.subsectionCount,",");s.hier1=ANSICharConverter(s.hier1);s.pageName=CustomSCW.chainProps(ht,CustomSCW.subsectionCount);if(ht["type"]) {s.pageName += ":";s.pageName += ht["type"];}s.pageName=ANSICharConverter(s.pageName);s.prop11=ht["lang"];},Execute:function() {CustomSCW.fillUserDetails();CustomSCW.fillCommonPageProperties(SCW.ContentProperties);if(SCW.ContentProperties["title"]) {s.prop8=SCW.ContentProperties["title"];s.pageName += ":";s.pageName += SCW.ContentProperties["title"];}if(SCW.ContentProperties["id"])s.prop7=SCW.ContentProperties["id"];if(SCW.ContentProperties["author"])s.prop9=SCW.ContentProperties["author"];if(SCW.ContentProperties["comp"])s.prop13=SCW.ContentProperties["comp"];if(SCW.ContentProperties["round"])s.prop17=SCW.ContentProperties["round"];if(SCW.ContentProperties["match"])s.prop16=SCW.ContentProperties["match"];if(SCW.ContentProperties["club"])s.prop19=SCW.ContentProperties["club"];if(SCW.ContentProperties["season"])s.prop14=SCW.ContentProperties["season"];if(SCW.ContentProperties["group"])s.prop18=SCW.ContentProperties["group"];if(SCW.ContentProperties["player"])s.prop20=SCW.ContentProperties["player"];if(SCW.ContentProperties["mds"]) {var mds=SCW.ContentProperties["mds"];mds=s.prop13 + " " + mds;if(s.prop14) {mds=mds + " " + s.prop14;}s.prop15=mds;}var sEvents=SCW.GetEventString();if(sEvents.length>0) {if(s.events)s.events += ",";elses.events="";s.events += sEvents;}for (key in SCW.EVars) { s["eVar" + key]=SCW.EVars[key]; }for (key in SCW.Props) { s["prop" + key]=SCW.Props[key]; }},onPropSave:function(n,val) {if(n==2) val=ANSICharConverter(val);return val;}}function ANSICharConverter(s) {return s;var charList=new Array(206,238,234,202,158,138,192,193,196,197,229,224,225,227,228,198,230,201,203,200,232,233,235,204,205,207,236,237,239,338,211,214,216,243,246,248,244,220,218,252,250,268,269,199,231,262,263,209,241,353,352,223,221,253,381,382,351);var mappingList=new Array("I","i","e","E","z","S","A","A","A","A","a","a","a","a","a","AE","ae","E","E","E","e","e","e","I","I","I","i","i","i","OE","O","O","O","o","o","o","o","U","U","u","u","C","c","C","c","c","c","N","n","s","S","ss","Y","y","Z","z","s");s='' + s;var stringBuilder='';for (var n=0; n<s.length; n++) {var c_old=s.charCodeAt(n);var pos=charList.indexOf(c_old);var c_new=String.fromCharCode(c_old);if(pos!=-1) c_new=mappingList[pos];stringBuilder += c_new;}return stringBuilder;}function checkOmnitureException(ht) {$j.each(OmnExc,function(k,v) {switch (v.mode) {case 'hash':if(window.location.href.indexOf('#' + k)!=-1) {$j.each(v.params,function(key,val) {console.log('key %s val %s',key,val);$j.extend(ht,val);});}break;}});}var s_account = accountOmniturevar s = s_gi(s_account)s.currencyCode = "EUR"s.trackDownloadLinks = trues.trackExternalLinks = trues.trackInlineStats = trues.linkDownloadFileTypes = "exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx,m4v,ics"s.linkInternalFilters = linkInternalFilterss.linkLeaveQueryString = falses.linkTrackVars = "None"s.linkTrackEvents = "None"s.dstStart = "03/28/" + new Date().getFullYear();s.dstEnd = "10/31/" + new Date().getFullYear();s.currentYear = +new Date().getFullYear();s.usePlugins = true;function s_doPlugins(s) {s.events = s.apl(s.events, "event2", ",", 1);if (s.prop10) {s.prop10 = s.prop10.toLowerCase();s.eVar1 = s.prop10;var t_search = s.getValOnce(s.eVar1, 'ev1', 0);if (t_search) {s.events = s.apl(s.events, 'event1', ',', 1);if (!s.products) s.products = ';';}}var oMetaData = document.getElementsByTagName("META");if (oMetaData && oMetaData.length > 0) {for (var i = 0; i < oMetaData.length; i++) {if (oMetaData[i].content.indexOf('charset=') > -1) {var sCSet = oMetaData[i].content.split('=');s.charSet = sCSet[1];}}} else {s.charSet = "UTF-8";}if (s.hier1 && s.prop11) s.hier2 = s.prop11 + "," + s.hier1;if (s.pageName && s.prop11) s.prop12 = s.prop11 + ":" + s.pageName;s.eVar2 = s.getQueryParam('int_cmp');if (s.prop5 && !s.eVar5) s.eVar5 = s.prop5;if (!s.eVar6) {s.eVar6 = s.getQueryParam('rss');s.eVar6 = s.eVar6.toLowerCase();if (s.eVar6) {var t_rss = s.getValOnce(s.eVar6, 'ev6', 0)if (t_rss) s.events = s.apl(s.events, "event33", ",", 2)}}if (s.prop11 && !s.eVar11) s.eVar11 = s.prop11;if (s.prop13 && !s.eVar13) s.eVar13 = s.prop13;if (s.prop14 && !s.eVar14) s.eVar14 = s.prop14;if (s.prop15 && !s.eVar15) s.eVar15 = s.prop15;if (s.prop16 && !s.eVar16) s.eVar16 = s.prop16;if (s.prop17 && !s.eVar17) s.eVar17 = s.prop17;if (s.prop18 && !s.eVar18) s.eVar18 = s.prop18;if (s.prop19 && !s.eVar19) s.eVar19 = s.prop19;if (s.prop20 && !s.eVar20) s.eVar20 = s.prop20;if (s.prop21 && !s.eVar21) s.eVar21 = s.prop21;if (s.prop22 && !s.eVar22) s.eVar22 = s.prop22;if (s.prop23 && !s.eVar23) s.eVar23 = s.prop23;s.campaign = s.getQueryParam('cid,emv_mid');s.campaign = s.getValOnce(s.campaign, 's_campaign', 0);if (s.campaign) s.eVar24 = s.getQueryParam('emv_rid');if (s.prop25 && !s.eVar25) s.eVar25 = s.prop25;if (s.prop26 && !s.eVar26) s.eVar26 = s.prop26;if (s.prop27 && !s.eVar27) s.eVar27 = s.prop27;if (s.prop28 && !s.eVar28) s.eVar28 = s.prop28;if (s.prop29 && !s.eVar29) s.eVar29 = s.prop29;if (s.prop30 && !s.eVar30) s.eVar30 = s.prop30;if (s.prop31 && !s.eVar31) s.eVar31 = s.prop31;if (s.prop32 && !s.eVar32) s.eVar32 = s.prop32;if (s.prop33 && !s.eVar33) s.eVar33 = s.prop33;if (s.prop34 && !s.eVar34) s.eVar34 = s.prop34;//s.eVar45=s.getPreviousNValue(s.pageName,2,'gpnv_e45','event18');if (s.pageName && !s.eVar8) s.eVar8 = s.pageName;if (s.channel && !s.eVar9) s.eVar9 = s.channel;s.prop38 = s.getTimeParting('h', '+1'); // Set hours.prop39 = s.getTimeParting('d', '+1'); // Set days.prop40 = s.getTimeParting('w', '+1'); // Set Weekend / Weekdayif (s.prop38 && !s.eVar38) s.eVar38 = s.prop38;if (s.prop39 && !s.eVar39) s.eVar39 = s.prop39;if (s.prop40 && !s.eVar40) s.eVar40 = s.prop40;s.url = s.downloadLinkHandler();if (s.url) {s.eVar41 = s.url.substring(s.url.lastIndexOf("/") + 1, s.url.length);s.events = s.apl(s.events, "event9", ",", 2)s.linkTrackVars = "eVar41,events"s.linkTrackEvents = "event9"}if (s.prop44 && !s.eVar44) s.eVar44 = s.prop44;}s.doPlugins = s_doPluginss.downloadLinkHandler = new Function("p", ""+ "var s=this,h=s.p_gh(),n='linkDownloadFileTypes',i,t;if(!h||(s.linkT"+ "ype&&(h||s.linkName)))return '';i=h.indexOf('?');t=s[n];s[n]=p?p:t;"+ "if(s.lt(h)=='d')s.linkType='d';else h='';s[n]=t;return h;");s.p_gh = new Function(""+ "var s=this;if(!s.eo&&!s.lnk)return '';var o=s.eo?s.eo:s.lnk,y=s.ot("+ "o),n=s.oid(o),x=o.s_oidt;if(s.eo&&o==s.eo){while(o&&!n&&y!='BODY'){"+ "o=o.parentElement?o.parentElement:o.parentNode;if(!o)return '';y=s."+ "ot(o);n=s.oid(o);x=o.s_oidt}}return o.href?o.href:'';");s.getPreviousNValue = new Function("v", "n", "c", "el", ""+ "var s=this,t=new Date(),e,i,j,r='',rv='',ml=5,cl=0,wr='',cr='';t.se"+ "tTime(t.getTime()+1800000);if(n>ml)return'ERROR: index out of range"+ "';if(isNaN(n))return'ERROR: the previous value index must be a numb"+ "er';if(s.c_r(c)){r=s.c_r(c);cl=(s.split(r,'~')).length}if(n>cl){if("+ "v){if(s.c_r(c)){r=s.c_r(c);wr=s.apl(r,v,'~',2)}else wr=s.pageName}e"+ "lse wr='no value'}else{cr=s.c_r(c);r=s.split(cr,'~');if(el){if(s.ev"+ "ents){rv='';wr=s.apl(cr,v,'~',2);i=s.split(el,',');j=s.split(s.even"+ "ts,',');for(x in i){for(y in j){if(i[x]==j[y])rv=r[r.length-n]}}}el"+ "se{rv=r[r.length-n];wr=s.apl(cr,v,'~',2)}}else{rv=r[r.length-n];wr="+ "s.apl(cr,v,'~',2)}}if(ml<=cl+1){var tmp=s.split(wr,'~');wr=tmp.slic"+ "e(1,tmp.length);wr=wr.join('~')}s.c_w(c,wr,t);return rv;");s.split = new Function("l", "d", ""+ "var i,x=0,a=new Array;while(l){i=l.indexOf(d);i=i>-1?i:l.length;a[x"+ "++]=l.substring(0,i);l=l.substring(i+d.length);}return a");s.apl = new Function("l", "v", "d", "u", ""+ "var s=this,m=0;if(!l)l='';if(u){var i,n,a=s.split(l,d);for(i=0;i<a."+ "length;i++){n=a[i];m=m||(u==1?(n==v):(n.toLowerCase()==v.toLowerCas"+ "e()));}}if(!m)l=l?l+d+v:v;return l");s.getTimeParting = new Function("t", "z", ""+ "var s=this,cy;var dc=new Date('1/1/2000');"+ "if(dc.getDay()!=6||dc.getMonth()!=0){return'Data Not Available'}"+ "else{;z=parseFloat(z);var dsts=new Date(s.dstStart);"+ "var dste=new Date(s.dstEnd);fl=dste;cd=new Date();if(cd>dsts&&cd<fl)"+ "{z=z+1}else{z=z};utc=cd.getTime()+(cd.getTimezoneOffset()*60000);"+ "tz=new Date(utc + (3600000*z));thisy=tz.getFullYear();"+ "var days=['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday',"+ "'Saturday'];if(thisy!=s.currentYear){return'Data Not Available'}else{;"+ "thish=tz.getHours();thismin=tz.getMinutes();thisd=tz.getDay();"+ "var dow=days[thisd];var ap='AM';var dt='Weekday';var mint='00';"+ "if(thismin>30){mint='30'}if(thish>=12){ap='PM';thish=thish-12};"+ "if (thish==0){thish=12};if(thisd==6||thisd==0){dt='Weekend'};"+ "var timestring=thish+':'+mint+ap;if(t=='h'){return timestring}"+ "if(t=='d'){return dow};if(t=='w'){return dt}}};");s.getQueryParam = new Function("p", "d", "u", ""+ "var s=this,v='',i,t;d=d?d:'';u=u?u:(s.pageURL?s.pageURL:s.wd.locati"+ "on);if(u=='f')u=s.gtfs().location;while(p){i=p.indexOf(',');i=i<0?p"+ ".length:i;t=s.p_gpv(p.substring(0,i),u+'');if(t){t=t.indexOf('#')>-"+ "1?t.substring(0,t.indexOf('#')):t;}if(t)v+=v?d+t:t;p=p.substring(i="+ "=p.length?i:i+1)}return v");s.p_gpv = new Function("k", "u", ""+ "var s=this,v='',i=u.indexOf('?'),q;if(k&&i>-1){q=u.substring(i+1);v"+ "=s.pt(q,'&','p_gvf',k)}return v");s.p_gvf = new Function("t", "k", ""+ "if(t){var s=this,i=t.indexOf('='),p=i<0?t:t.substring(0,i),v=i<0?'T"+ "rue':t.substring(i+1);if(p.toLowerCase()==k.toLowerCase())return s."+ "epa(v)}return ''");s.getValOnce = new Function("v", "c", "e", ""+ "var s=this,v=v?v:'',k=s.c_r(c),a=new Date,e=e?e:0;if(v){a.setTime(a"+ ".getTime()+e*86400000);s.c_w(c,v,e?a:0);}return v==k?'':v");s.loadModule("Media")s.Media.autoTrack = falses.Media.trackWhilePlaying = trues.Media.trackVars = "None"s.Media.trackEvents = "None"s.Media.monitor = function(s, media) {//If Needed}s.visitorNamespace = "uefa"s.trackingServer = "metrics.uefa.com"s.trackingServerSecure = "smetrics.uefa.com"s.dc = "122"s.m_Media_c = "var m=s.m_i('Media');m.cn=function(n){var m=this;return m.s.rep(m.s.rep(m.s.rep(n,\"\\n\",''),\"\\r\",''),'--**--','')};m.open=function(n,l,p,b){var m=this,i=new Object,tm=new Date,a='',"+ "x;n=m.cn(n);l=parseInt(l);if(!l)l=1;if(n&&p){if(!m.l)m.l=new Object;if(m.l[n])m.close(n);if(b&&b.id)a=b.id;for (x in m.l)if(m.l[x]&&m.l[x].a==a)m.close(m.l[x].n);i.n=n;i.l=l;i.p=m.cn(p);i.a=a;i.t=0"+ ";i.ts=0;i.s=Math.floor(tm.getTime()/1000);i.lx=0;i.lt=i.s;i.lo=0;i.e='';i.to=-1;m.l[n]=i}};m.close=function(n){this.e(n,0,-1)};m.play=function(n,o){var m=this,i;i=m.e(n,1,o);i.m=new Function('var m"+ "=s_c_il['+m._in+'],i;if(m.l){i=m.l[\"'+m.s.rep(i.n,'\"','\\\\\"')+'\"];if(i){if(i.lx==1)m.e(i.n,3,-1);i.mt=setTimeout(i.m,5000)}}');i.m()};m.stop=function(n,o){this.e(n,2,o)};m.track=function(n){va"+ "r m=this;if (m.trackWhilePlaying) {m.e(n,4,-1)}};m.e=function(n,x,o){var m=this,i,tm=new Date,ts=Math.floor(tm.getTime()/1000),ti=m.trackSeconds,tp=m.trackMilestones,z=new Array,j,d='--**--',t=1,b,"+ "v=m.trackVars,e=m.trackEvents,pe='media',pev3,w=new Object,vo=new Object;n=m.cn(n);i=n&&m.l&&m.l[n]?m.l[n]:0;if(i){w.name=n;w.length=i.l;w.playerName=i.p;if(i.to<0)w.event=\"OPEN\";else w.event=(x="+ "=1?\"PLAY\":(x==2?\"STOP\":(x==3?\"MONITOR\":\"CLOSE\")));w.openTime=new Date();w.openTime.setTime(i.s*1000);if(x>2||(x!=i.lx&&(x!=2||i.lx==1))) {b=\"Media.\"+name;pev3 = m.s.ape(i.n)+d+i.l+d+m.s.a"+ "pe(i.p)+d;if(x){if(o<0&&i.lt>0){o=(ts-i.lt)+i.lo;o=o<i.l?o:i.l-1}o=Math.floor(o);if(x>=2&&i.lo<o){i.t+=o-i.lo;i.ts+=o-i.lo;}if(x<=2){i.e+=(x==1?'S':'E')+o;i.lx=x;}else if(i.lx!=1)m.e(n,1,o);i.lt=ts"+ ";i.lo=o;pev3+=i.t+d+i.s+d+(m.trackWhilePlaying&&i.to>=0?'L'+i.to:'')+i.e+(x!=2?(m.trackWhilePlaying?'L':'E')+o:'');if(m.trackWhilePlaying){b=0;pe='m_o';if(x!=4){w.offset=o;w.percent=((w.offset+1)/w"+ ".length)*100;w.percent=w.percent>100?100:Math.floor(w.percent);w.timePlayed=i.t;if(m.monitor)m.monitor(m.s,w)}if(i.to<0)pe='m_s';else if(x==4)pe='m_i';else{t=0;v=e='None';ti=ti?parseInt(ti):0;z=tp?"+ "m.s.sp(tp,','):0;if(ti&&i.ts>=ti)t=1;else if(z){if(o<i.to)i.to=o;else{for(j=0;j<z.length;j++){ti=z[j]?parseInt(z[j]):0;if(ti&&((i.to+1)/i.l<ti/100)&&((o+1)/i.l>=ti/100)){t=1;j=z.length}}}}}}}else{m"+ ".e(n,2,-1);if(m.trackWhilePlaying){w.offset=i.lo;w.percent=((w.offset+1)/w.length)*100;w.percent=w.percent>100?100:Math.floor(w.percent);w.timePlayed=i.t;if(m.monitor)m.monitor(m.s,w)}m.l[n]=0;if(i"+ ".e){pev3+=i.t+d+i.s+d+(m.trackWhilePlaying&&i.to>=0?'L'+i.to:'')+i.e;if(m.trackWhilePlaying){v=e='None';pe='m_o'}else{t=0;m.s.fbr(b)}}else t=0;b=0}if(t){vo.linkTrackVars=v;vo.linkTrackEvents=e;vo.p"+ "e=pe;vo.pev3=pev3;m.s.t(vo,b);if(m.trackWhilePlaying){i.ts=0;i.to=o;i.e=''}}}}return i};m.ae=function(n,l,p,x,o,b){if(n&&p){var m=this;if(!m.l||!m.l[n])m.open(n,l,p,b);m.e(n,x,o)}};m.a=function(o,t"+ "){var m=this,i=o.id?o.id:o.name,n=o.name,p=0,v,c,c1,c2,xc=m.s.h,x,e,f1,f2='s_media_'+m._in+'_oc',f3='s_media_'+m._in+'_t',f4='s_media_'+m._in+'_s',f5='s_media_'+m._in+'_l',f6='s_media_'+m._in+'_m',"+ "f7='s_media_'+m._in+'_c',tcf,w;if(!i){if(!m.c)m.c=0;i='s_media_'+m._in+'_'+m.c;m.c++}if(!o.id)o.id=i;if(!o.name)o.name=n=i;if(!m.ol)m.ol=new Object;if(m.ol[i])return;m.ol[i]=o;if(!xc)xc=m.s.b;tcf=n"+ "ew Function('o','var e,p=0;try{if(o.versionInfo&&o.currentMedia&&o.controls)p=1}catch(e){p=0}return p');p=tcf(o);if(!p){tcf=new Function('o','var e,p=0,t;try{t=o.GetQuickTimeVersion();if(t)p=2}catc"+ "h(e){p=0}return p');p=tcf(o);if(!p){tcf=new Function('o','var e,p=0,t;try{t=o.GetVersionInfo();if(t)p=3}catch(e){p=0}return p');p=tcf(o)}}v=\"var m=s_c_il[\"+m._in+\"],o=m.ol['\"+i+\"']\";if(p==1){"+ "p='Windows Media Player '+o.versionInfo;c1=v+',n,p,l,x=-1,cm,c,mn;if(o){cm=o.currentMedia;c=o.controls;if(cm&&c){mn=cm.name?cm.name:c.URL;l=cm.duration;p=c.currentPosition;n=o.playState;if(n){if(n="+ "=8)x=0;if(n==3)x=1;if(n==1||n==2||n==4||n==5||n==6)x=2;}';c2='if(x>=0)m.ae(mn,l,\"'+p+'\",x,x!=2?p:-1,o)}}';c=c1+c2;if(m.s.isie&&xc){x=m.s.d.createElement('script');x.language='jscript';x.type='tex"+ "t/javascript';x.htmlFor=i;x.event='PlayStateChange(NewState)';x.defer=true;x.text=c;xc.appendChild(x);o[f6]=new Function(c1+'if(n==3){x=3;'+c2+'}setTimeout(o.'+f6+',5000)');o[f6]()}}if(p==2){p='Qui"+ "ckTime Player '+(o.GetIsQuickTimeRegistered()?'Pro ':'')+o.GetQuickTimeVersion();f1=f2;c=v+',n,x,t,l,p,p2,mn;if(o){mn=o.GetMovieName()?o.GetMovieName():o.GetURL();n=o.GetRate();t=o.GetTimeScale();l"+ "=o.GetDuration()/t;p=o.GetTime()/t;p2=o.'+f5+';if(n!=o.'+f4+'||p<p2||p-p2>5){x=2;if(n!=0)x=1;else if(p>=l)x=0;if(p<p2||p-p2>5)m.ae(mn,l,\"'+p+'\",2,p2,o);m.ae(mn,l,\"'+p+'\",x,x!=2?p:-1,o)}if(n>0&&"+ "o.'+f7+'>=10){m.ae(mn,l,\"'+p+'\",3,p,o);o.'+f7+'=0}o.'+f7+'++;o.'+f4+'=n;o.'+f5+'=p;setTimeout(\"'+v+';o.'+f2+'(0,0)\",500)}';o[f1]=new Function('a','b',c);o[f4]=-1;o[f7]=0;o[f1](0,0)}if(p==3){p='"+ "RealPlayer '+o.GetVersionInfo();f1=n+'_OnPlayStateChange';c1=v+',n,x=-1,l,p,mn;if(o){mn=o.GetTitle()?o.GetTitle():o.GetSource();n=o.GetPlayState();l=o.GetLength()/1000;p=o.GetPosition()/1000;if(n!="+ "o.'+f4+'){if(n==3)x=1;if(n==0||n==2||n==4||n==5)x=2;if(n==0&&(p>=l||p==0))x=0;if(x>=0)m.ae(mn,l,\"'+p+'\",x,x!=2?p:-1,o)}if(n==3&&(o.'+f7+'>=10||!o.'+f3+')){m.ae(mn,l,\"'+p+'\",3,p,o);o.'+f7+'=0}o."+ "'+f7+'++;o.'+f4+'=n;';c2='if(o.'+f2+')o.'+f2+'(o,n)}';if(m.s.wd[f1])o[f2]=m.s.wd[f1];m.s.wd[f1]=new Function('a','b',c1+c2);o[f1]=new Function('a','b',c1+'setTimeout(\"'+v+';o.'+f1+'(0,0)\",o.'+f3+"+ "'?500:5000);'+c2);o[f4]=-1;if(m.s.isie)o[f3]=1;o[f7]=0;o[f1](0,0)}};m.as=new Function('e','var m=s_c_il['+m._in+'],l,n;if(m.autoTrack&&m.s.d.getElementsByTagName){l=m.s.d.getElementsByTagName(m.s.i"+ "sie?\"OBJECT\":\"EMBED\");if(l)for(n=0;n<l.length;n++)m.a(l[n]);}');if(s.wd.attachEvent)s.wd.attachEvent('onload',m.as);else if(s.wd.addEventListener)s.wd.addEventListener('load',m.as,false)";s.m_i("Media");var s_code = '', s_objectID; function s_gi(un, pg, ss) {var c = "=fun`o(~.substring(~){`Ps=^O~.indexOf(~#2 ~;$2~`b$2~=new Fun`o(~.length~.toLowerCase()~`Ps#8c_#k^an+'],~=new Object~};s.~`YMigrationServer~.toU"+ "pperCase~){$2~','~s.wd~);s.~')q='~=new Array~ookieDomainPeriods~.location~^LingServer~dynamicAccount~var ~link~s.m_~=='~s.apv~BufferedRequests~Element~)$2x^b!Object#WObject.prototype#WObject.protot"+ "ype[x])~etTime~visitor~$w@c(~referrer~else ~s.pt(~s.maxDelay~}c#E(e){~#i+~=''~.lastIndexOf(~^wc_i~}$2~.protocol~=new Date~^wobjectID=s.ppu=$I=$Iv1=$Iv2=$Iv3~for(i=~ction~javaEnabled~onclick~Name~te"+ "rnalFilters~javascript~s.dl~@6s.b.addBehavior(\"# default# ~=parseFloat(~typeof(v)==\"~window~cookie~while(~s.vl_g~Type~;i#U{~tfs~s.un~&&s.~o^woid~browser~.parent~document~colorDepth~String~.host~s"+ ".fl(~s.rep(~s.eo~'+tm@S~s.sq~parseInt(~t=s.ot(o)~track~nload~j='1.~this~#PURL~}else{~s.vl_l~lugins~'){q='~dynamicVariablePrefix~');~;for(~Sampling~s.rc[un]~Event~._i~&&(~loadModule~resolution~s.c_r"+ "(~s.c_w(~s.eh~s.isie~\"m_\"+n~Secure~Height~tcf~isopera~ismac~escape(~'s_~.href~screen.~s#8gi(~Version~harCode~variableProvider~.s_~)s_sv(v,n[k],i)}~')>=~){s.~)?'Y':'N'~u=m[t+1](~i)clearTimeout(~e&"+ "&l$bSESSION'~name~home#P~;try{~,$m)~s.ssl~s.oun~s.rl[u~Width~o.type~s.vl_t~=s.sp(~Lifetime~s.gg('objectID~sEnabled~'+n+'~.mrq(@wun+'\"~ExternalLinks~charSet~lnk~onerror~http~currencyCode~.src~disab"+ "le~.get~MigrationKey~(''+~&&!~f',~){t=~r=s[f](~u=m[t](~Opera~Math.~s.ape~s.fsg~s.ns6~conne~InlineStats~&&l$bNONE'~Track~'0123456789~true~+\"_c\"]~s.epa(~t.m_nl~s.va_t~m._d~n=s.oid(o)~,'sqs',q);~Lea"+ "veQuery~?'&~'=')~n){~\"'+~){n=~'_'+~'+n;~\",''),~,255)}~if(~vo)~s.sampled~=s.oh(o);~+(y<1900?~n]=~1);~&&o~:'';h=h?h~;'+(n?'o.~sess~campaign~lif~ in ~s.co(~ffset~s.pe~m._l~s.c_d~s.brl~s.nrs~s[mn]~,'"+ "vo~s.pl~=(apn~space~\"s_gs(\")~vo._t~b.attach~2o7.net'~Listener~Year(~d.create~=s.n.app~)}}}~!='~'||t~)+'/~s()+'~){p=~():''~a['!'+t]~&&c){~://')i+=~){v=s.n.~channel~100~rs,~.target~o.value~s_si(t)~"+ "')dc='1~\".tl(\")~etscape~s_')t=t~omePage~='+~&&t~[b](e);~\"){n[k]~';s.va_~a+1,b):~return~mobile~height~events~random~code~=s_~=un~,pev~'MSIE ~'fun~floor(~atch~transa~s.num(~m._e~s.c_gd~,'lt~tm.g~."+ "inner~;s.gl(~,f1,f2~',s.bc~page~Group,~.fromC~sByTag~')<~++)~)){~||!~+';'~i);~y+=~l&&~''+x~[t]=~[i]=~[n];~' '+~'+v]~>=5)~:'')~+1))~il['+s~!a[t])~~s._c=^pc';`H=`y`5!`H`i@v`H`il`K;`H`in=0;}s^al=`H`il"+ ";s^an=`H`in;s^al[s^a$7s;`H`in++;s.an#8an;s.cls`0x,c){`Pi,y`g`5!c)c=^O.an;`n0;i<x`8^3n=x`1i,i+1)`5c`3n)>=0)#Zn}`4y`Cfl`0x,l){`4x?@Ux)`10,l):x`Cco`0o`F!o)`4o;`Pn`B,x^Wx$Fo)$2x`3'select#T0&&x`3'filter"+ "#T0)n[x]=o[x];`4n`Cnum`0x){x`g+x^W`Pp=0;p<x`8;p#U$2(@j')`3x`1p,p#j<0)`40;`41`Crep#8rep;s.sp#8sp;s.jn#8jn;@c`0x`2,h=@jABCDEF',i,c=s.@L,n,l,e,y`g;c=c?c`E$g`5x){x`g+x`5c`SAUTO'^b'').c^uAt){`n0;i<x`8^3"+ "c=x`1i,i+$8n=x.c^uAt(i)`5n>127){l=0;e`g;^0n||l<4){e=h`1n%16,n%16+1)+e;n=(n-n%16)/16;l++}#Z'%u'+e}`6c`S+')#Z'%2B';`b#Z^oc)}x=y^Qx=x?^F^o#b),'+`G%2B'):x`5x&&c^6em==1&&x`3'%u#T0&&x`3'%U#T0){i=x`3'%^V^"+ "0i>=0){i++`5h`18)`3x`1i,i+1)`E())>=0)`4x`10,i)+'u00'+x`1#Yi=x`3'%',i$a}`4x`Cepa`0x`2;`4x?un^o^F#b,'+`G ')):x`Cpt`0x,d,f,a`2,t=x,z=0,y,r;^0t){y=t`3d);y=y<0?t`8:y;t=t`10,y);@Yt,a)`5r)`4r;z+=y+d`8;t=x"+ "`1z,x`8);t=z<x`8?t:''}`4''`Cisf`0t,a){`Pc=a`3':')`5c>=0)a=a`10,c)`5t`10,2)`S$u`12);`4(t!`g$x==a)`Cfsf`0t,a`2`5`ca,`G,'is@Wt))@d+=(@d!`g?`G`ft;`40`Cfs`0x,f`2;@d`g;`cx,`G,'fs@Wf);`4@d`Csi`0wd`2,c`g+s"+ "_gi,a=c`3\"{\"),b=c`h\"}\"),m;c#8fe(a>0&&b>0?c`1#10)`5wd&&wd.^A$iwd.s`Xout(#C`o s_sv(o,n,k){`Pv=o[k],i`5v`F`xstring\"||`xnumber\")n[k]=v;`bif (`xarray$z`K;`n0;i<v`8;i++^x`bif (`xobject$z`B^Wi$Fv^x}"+ "}fun`o $q{`Pwd=`y,s,i,j,c,a,b;wd^wgi`7\"un\",\"pg\",\"ss\",@wc+'\");wd.^s@w@9+'\");s=wd.s;s.sa(@w^5+'\"`I^4=wd;`c^1,\",\",\"vo1\",t`I@M=^G=s.`Q`r=s.`Q^2=`H`m=\\'\\'`5t.m_#a@n)`n0;i<@n`8^3n=@n[i]`5@"+ "vm=t#ec=t[^i]`5m$ic=\"\"+c`5c`3\"fun`o\")>=0){a=c`3\"{\");b=c`h\"}\");c=a>0&&b>0?c`1#10;s[^i@l=c`5#H)s.^c(n)`5s[n])for(j=0;j<$J`8;j#Us_sv(m,s[n],$J[j]$a}}`Pe,o,t@6o=`y.opener`5o$9^wgi@Xo^wgi(@w^5+'"+ "\")`5t)$q}`e}',1)}`Cc_d`g;#If`0t,a`2`5!#Gt))`41;`40`Cc_gd`0`2,d=`H`M^D@4,n=s.fpC`L,p`5!n)n=s.c`L`5d@V$K@xn?^Jn):2;n=n>2?n:2;p=d`h'.')`5p>=0){^0p>=0&&n>1$fd`h'.',p-$8n--}$K=p>0&&`cd,'.`Gc_gd@W0)?d`1"+ "p):d}}`4$K`Cc_r`0k`2;k=@c(k);`Pc=#fs.d.`z,i=c`3#fk+@u,e=i<0?i:c`3';',i),v=i<0?'':@mc`1i+2+k`8,e<0?c`8:e));`4v$b[[B]]'?v:''`Cc_w`0k,v,e`2,d=#I(),l=s.`z@F,t;v`g+v;l=l?@Ul)`E$g`5@3@h@X(v!`g?^Jl?l:0):-"+ "60)`5t){e`l;e.s`X(e.g`X()+(t*$m0))}`jk@h^zd.`z=k+'`Zv!`g?v:'[[B]]')+'; path=/;'+(@3?' expires$we.toGMT^C()#X`f(d?' domain$wd#X:'^V`4^ek)==v}`40`Ceh`0o,e,r,f`2,b=^p'+e+@ys^an,n=-1,l,i,x`5!^gl)^gl`K;"+ "l=^gl;`n0;i<l`8&&n<0;i++`Fl[i].o==o&&l[i].e==e)n=i`jn<0@xi;l[n]`B}x=l#ex.o=o;x.e=e;f=r?x.b:f`5r||f){x.b=r?0:o[e];x.o[e]=f`jx.b){x.o[b]=x.b;`4b}`40`Ccet`0f,a,t,o,b`2,r,^l`5`T>=5^b!s.^m||`T>=7#V^l`7'"+ "s`Gf`Ga`Gt`G`Pe,r@6@Ya)`er=s[t](e)}`4r^Vr=^l(s,f,a,t)^Q$2s.^n^6u`3#B4^y0)r=s[b](a);else{^g(`H,'@N',0,o);@Ya`Ieh(`H,'@N',1)}}`4r`Cg^4et`0e`2;`4s.^4`Cg^4oe`7'e`G`Ac;^g(`y,\"@N\",1`Ie^4=1;c=s.t()`5c)s"+ ".d.write(c`Ie^4=0;`4@k'`Ig^4fb`0a){`4`y`Cg^4f`0w`2,p=w^9,l=w`M;s.^4=w`5p&&p`M!=#ap`M^D==l^D^z^4=p;`4s.g^4f(s.^4)}`4s.^4`Cg^4`0`2`5!s.^4^z^4=`H`5!s.e^4)s.^4=s.cet('g^4@Ws.^4,'g^4et',s.g^4oe,'g^4fb')"+ "}`4s.^4`Cmrq`0u`2,l=@A],n,r;@A]=0`5l)for(n=0;n<l`8;n#U{r=l#es.mr(0,0,r.r,0,r.t,r.u)}`Cbr`0id,rs`2`5s.@R`U#W^f^pbr',rs))$L=rs`Cflush`U`0){^O.fbr(0)`Cfbr`0id`2,br=^e^pbr')`5!br)br=$L`5br`F!s.@R`U)^f^"+ "pbr`G'`Imr(0,0,br)}$L=0`Cmr`0$C,q,$nid,ta,u`2,dc=s.dc,t1=s.`N,t2=s.`N^j,tb=s.`NBase,p='.sc',ns=s.`Y`r$R,un=s.cls(u?u:(ns?ns:s.fun)),r`B,l,imn=^pi_'+(un),im,b,e`5!rs`Ft1`Ft2^6ssl)t1=t2^Q$2!tb)tb='$V"+ "`5dc)dc=@Udc)`9;`bdc='d1'`5tb`S$V`Fdc`Sd1$r12';`6dc`Sd2$r22';p`g}t1#9+'.'+dc+'.'+p+tb}rs='@O'+(@8?'s'`f'://'+t1+'/b/ss/'+^5+'/'+(s.#3?'5.1':'1'$dH.20.3/'+$C+'?AQB=1&ndh=1'+(q?q`f'&AQE=1'`5^h@Vs.^n`"+ "F`T>5.5)rs=^E$n4095);`brs=^E$n2047)`jid^zbr(id,rs);#2}`js.d.images&&`T>=3^b!s.^m||`T>=7)^b@e<0||`T>=6.1)`F!s.rc)s.rc`B`5!^Y){^Y=1`5!s.rl)s.rl`B;@An]`K;s`Xout('$2`y`il)`y`il['+s^an+']@J)',750)^Ql=@A"+ "n]`5l){r.t=ta;r.u#9;r.r=rs;l[l`8]=r;`4''}imn+=@y^Y;^Y++}im=`H[imn]`5!im)im=`H[im$7new Image;im^wl=0;im.o^M`7'e`G^O^wl=1;`Pwd=`y,s`5wd`il){s=wd`il['+s^an+'];s@J`Inrs--`5!$M)`Rm(\"rr\")}')`5!$M^znrs="+ "1;`Rm('rs')}`b$M++;im@Q=rs`5rs`3'&pe=^y0^b!ta||ta`S_self$ca`S_top'||(`H.@4$xa==`H.@4)#Vb=e`l;^0!im^w#ae.g`X()-b.g`X()<500)e`l}`4''}`4'<im'+'g sr'+'c=@wrs+'\" width=1 #4=1 border=0 alt=\"\">'`Cgg`0v"+ "`2`5!`H[^p#g)`H[^p#g`g;`4`H[^p#g`Cglf`0t,a`Ft`10,2)`S$u`12);`Ps=^O,v=s.gg(t)`5v)s#cv`Cgl`0v`2`5s.pg)`cv,`G,'gl@W0)`Crf`0x`2,y,i,j,h,l,a,b`g,c`g,t`5x){y`g+x;i=y`3'?')`5i>0){a=y`1i+$8y=y`10,#Yh=y`9;i"+ "=0`5h`10,7)`S@O$j7;`6h`10,8)`S@Os$j8;h=h`1#Yi=h`3\"/\")`5i>0){h=h`10,i)`5h`3'google^y0){a@Ea,'&')`5a`8>1){l=',q,ie,start,search_key,word,kw,cd,'^Wj=0;j<a`8;j++@Xa[j];i=t`3@u`5i>0&&l`3`G+t`10,i)+`G)"+ ">=0)b+=(b@t'`ft;`bc+=(c@t'`ft`jb$i#Z'?'+b+'&'+c`5#b!=y)x=y}}}}}}`4x`Chav`0`2,qs`g,fv=s.`Q@iVa$nfe=s.`Q@i^Zs,mn,i`5$I){mn=$I`10,1)`E()+$I`11)`5$N){fv=$N.^LVars;fe=$N.^L^Zs}}fv=fv?fv+`G+^R+`G+^R2:'';"+ "`n0;i<@o`8^3`Pk=@o[i],v=s[k],b=k`10,4),x=k`14),n=^Jx),q=k`5v&&k$b`Q`r'&&k$b`Q^2'`F$I||s.@M||^G`Ffv^b`G+fv+`G)`3`G+k+`G)<0)v`g`5k`S#5'&&fe)v=s.fs(v,fe)`jv`Fk`S^U`JD';`6k`S`YID`Jvid';`6k`S^P^Tg';v=^E"+ "v$1`6k`S`a^Tr';v=^Es.rf(v)$1`6k`Svmk'||k`S`Y@T`Jvmt';`6k`S`D^Tvmf'`5@8^6`D^j)v`g}`6k`S`D^j^Tvmf'`5!@8^6`D)v`g}`6k`S@L^Tce'`5v`E()`SAUTO')v='ISO8859-1';`6s.em==2)v='UTF-8'}`6k`S`Y`r$R`Jns';`6k`Sc`L`"+ "Jcdp';`6k`S`z@F`Jcl';`6k`S^v`Jvvp';`6k`S@P`Jcc';`6k`S$l`Jch';`6k`S#F`oID`Jxact';`6k`S$D`Jv0';`6k`S^d`Js';`6k`S^B`Jc';`6k`S`t^t`Jj';`6k`S`p`Jv';`6k`S`z@H`Jk';`6k`S^8@B`Jbw';`6k`S^8^k`Jbh';`6k`S@f`o^"+ "2`Jct';`6k`S@5`Jhp';`6k`Sp^S`Jp';`6#Gx)`Fb`Sprop`Jc@z`6b`SeVar`Jv@z`6b`Slist`Jl@z`6b`Shier^Th@zv=^Ev$1`jv)qs+='&'+q+'$w(k`10,3)$bpev'?@c(v):v$a`4qs`Cltdf`0t,h@Xt?t`9$A`9:'';`Pqi=h`3'?^Vh=qi>=0?h`10"+ ",qi):h`5t&&h`1h`8-(t`8#j`S.'+t)`41;`40`Cltef`0t,h@Xt?t`9$A`9:''`5t&&h`3t)>=0)`41;`40`Clt`0h`2,lft=s.`QDow^MFile^2s,lef=s.`QEx`s,$E=s.`QIn`s;$E=$E?$E:`H`M^D@4;h=h`9`5s.^LDow^MLinks&&lft&&`clft,`G#Jd"+ "@Wh))`4'd'`5s.^L@K&&h`10,1)$b# '^blef||$E)^b!lef||`clef,`G#Je@Wh))^b!$E#W`c$E,`G#Je@Wh)))`4'e';`4''`Clc`7'e`G`Ab=^g(^O,\"`q\"`I@M=$G^O`It(`I@M=0`5b)`4^O$y`4@k'`Ibc`7'e`G`Af,^l`5s.d^6d.all^6d.all.cp"+ "pXYctnr)#2;^G=e@Q`V?e@Q`V:e$o;^l`7\"s\",\"`Pe@6$2^G^b^G.tag`r||^G^9`V||^G^9Node))s.t()`e}\");^l(s`Ieo=0'`Ioh`0o`2,l=`H`M,h=o^q?o^q:'',i,j,k,p;i=h`3':^Vj=h`3'?^Vk=h`3'/')`5h^bi<0||(j>=0&&i>j)||(k>=0"+ "&&i>k))$fo`k$9`k`8>1?o`k:(l`k?l`k:'^Vi=l.path@4`h'/^Vh=(p?p+'//'`f(o^D?o^D:(l^D?l^D#i)+(h`10,1)$b/'?l.path@4`10,i<0?0:i$d'`fh}`4h`Cot`0o){`Pt=o.tag`r;t=t$x`E?t`E$g`5t`SSHAPE')t`g`5t`Ft`SINPUT'&&@C&"+ "&@C`E)t=@C`E();`6!t$9^q)t='A';}`4t`Coid`0o`2,^K,p,c,n`g,x=0`5t@V^7$fo`k;c=o.`q`5o^q^bt`SA$c`SAREA')^b!c#Wp||p`9`3'`t#T0))n$5`6c@x^Fs.rep(^Fs.rep@Uc,\"\\r$0\"\\n$0\"\\t$0' `G^Vx=2}`6$p^bt`SINPUT$c`S"+ "SUBMIT')@x$p;x=3}`6o@Q$x`SIMAGE')n=o@Q`5@v^7=^En@7;^7t=x}}`4^7`Crqf`0t,un`2,e=t`3@u,u=e>=0?`G+t`10,e)+`G:'';`4u&&u`3`G+un+`G)>=0?@mt`1e#j:''`Crq`0un`2,c#9`3`G),v=^e^psq'),q`g`5c<0)`4`cv,'&`Grq@Wun)"+ ";`4`cun,`G,'rq',0)`Csqp`0t,a`2,e=t`3@u,q=e<0?'':@mt`1e+1)`Isqq[q]`g`5e>=0)`ct`10,e),`G@r`40`Csqs`0un,q`2;^Iu[u$7q;`40`Csq`0q`2,k=^psq',v=^ek),x,c=0;^Iq`B;^Iu`B;^Iq[q]`g;`cv,'&`Gsqp',0`Ipt(^5,`G@rv`"+ "g^Wx$F^Iu`W)^Iq[^Iu[x]]+=(^Iq[^Iu[x]]?`G`fx^Wx$F^Iq`W^6sqq[x]^bx==q||c<2#Vv+=(v@t'`f^Iq[x]+'`Zx);c++}`4^fk,v,0)`Cwdl`7'e`G`Ar=@k,b=^g(`H,\"o^M\"),i,o,oc`5b)r=^O$y`n0;i<s.d.`Qs`8^3o=s.d.`Qs[i];oc=o."+ "`q?\"\"+o.`q:\"\"`5(oc`3$S<0||oc`3\"^woc(\")>=0)$9c`3$s<0)^g(o,\"`q\",0,s.lc);}`4r^V`Hs`0`2`5`T>3^b!^h#Ws.^n||`T#h`Fs.b^6$U^Z)s.$U^Z('`q#O);`6s.b^6b.add^Z$W)s.b.add^Z$W('click#O,false);`b^g(`H,'o^M"+ "',0,`Hl)}`Cvs`0x`2,v=s.`Y^X,g=s.`Y^X#Qk=^pvsn_'+^5+(g?@yg#i,n=^ek),e`l,y=e@S$X);e.set$Xy+10$61900:0))`5v){v*=$m`5!n`F!^fk,x,e))`40;n=x`jn%$m00>v)`40}`41`Cdyasmf`0t,m`Ft&&m&&m`3t)>=0)`41;`40`Cdyasf`"+ "0t,m`2,i=t?t`3@u:-1,n,x`5i>=0&&m){`Pn=t`10,i),x=t`1i+1)`5`cx,`G,'dyasm@Wm))`4n}`40`Cuns`0`2,x=s.`OSele`o,l=s.`OList,m=s.`OM#E,n,i;^5=^5`9`5x&&l`F!m)m=`H`M^D`5!m.toLowerCase)m`g+m;l=l`9;m=m`9;n=`cl,"+ "';`Gdyas@Wm)`5n)^5=n}i=^5`3`G`Ifun=i<0?^5:^5`10,i)`Csa`0un`2;^5#9`5!@9)@9#9;`6(`G+@9+`G)`3`G+un+`G)<0)@9+=`G+un;^5s()`Cm_i`0n,a`2,m,f=n`10,1),r,l,i`5!`Rl)`Rl`B`5!`Rnl)`Rnl`K;m=`Rl[n]`5!a&&m&&#H@Vm^"+ "a)`Ra(n)`5!m){m`B,m._c=^pm';m^an=`H`in;m^al=s^al;m^al[m^a$7m;`H`in++;m.s=s;m._n=n;$J`K('_c`G_in`G_il`G_i`G_e`G_d`G_dl`Gs`Gn`G_r`G_g`G_g1`G_t`G_t1`G_x`G_x1`G_rs`G_rr`G_l'`Im_l[$7m;`Rnl[`Rnl`8]=n}`6m"+ "._r@Vm._m){r=m._r;r._m=m;l=$J;`n0;i<l`8;i#U$2m[l[i]])r[l[i]]=m[l[i]];r^al[r^a$7r;m=`Rl[$7r`jf==f`E())s[$7m;`4m`Cm_a`7'n`Gg`Ge`G$2!g)g=^i;`Ac=s[g@l,m,x,f=0`5!c)c=`H[\"s_\"+g@l`5c&&s_d)s[g]`7\"s\",s_"+ "ft(s_d(c)));x=s[g]`5!x)x=`H[\\'s_\\'+g]`5!x)x=`H[g];m=`Ri(n,1)`5x^b!m^a||g!=^i#Vm^a=f=1`5(\"\"+x)`3\"fun`o\")>=0)x(s);`b`Rm(\"x\",n,x,e)}m=`Ri(n,1)`5@pl)@pl=@p=0;`ut();`4f'`Im_m`0t,n,d,e@X@yt;`Ps=^"+ "O,i,x,m,f=@yt,r=0,u`5`R#a`Rnl)`n0;i<`Rnl`8^3x=`Rnl[i]`5!n||x==@vm=`Ri(x);u=m[t]`5u`F@Uu)`3#C`o^y0`Fd&&e)@Zd,e);`6d)@Zd);`b@Z)}`ju)r=1;u=m[t+1]`5u@Vm[f]`F@Uu)`3#C`o^y0`Fd&&e)@1d,e);`6d)@1d);`b@1)}}m"+ "[f]=1`5u)r=1}}`4r`Cm_ll`0`2,g=`Rdl,i,o`5g)`n0;i<g`8^3o=g[i]`5o)s.^c(o.n,o.u,o.d,o.l,o.e,$8g#d0}`C^c`0n,u,d,l,e,ln`2,m=0,i,g,o=0#N,c=s.h?s.h:s.b,b,^l`5@vi=n`3':')`5i>=0){g=n`1i+$8n=n`10,i)}`bg=^i;m="+ "`Ri(n)`j(l||(n@V`Ra(n,g)))&&u^6d&&c^6$Y`V`Fd){@p=1;@pl=1`jln`F@8)u=^Fu,'@O:`G@Os:^Vi=^ps:'+s^an+':@I:'+g;b='`Ao=s.d@S`VById(@wi+'\")`5s$9`F!o.#a`H.'+g+'){o.l=1`5o.@2o.#Yo.i=0;`Ra(\"@I\",@wg+'@w(e?'"+ ",@we+'\"'`f')}';f2=b+'o.c++`5!`d)`d=250`5!o.l$9.c<(`d*2)/$m)o.i=s`Xout(o.f2@7}';f1`7'e',b+'}^V^l`7's`Gc`Gi`Gu`Gf1`Gf2`G`Pe,o=0@6o=s.$Y`V(\"script\")`5o){@C=\"text/`t\"$Bid=i;o.defer=@k;o.o^M=o.onre"+ "adystatechange=f1;o.f2=f2;o.l=0;'`f'o@Q=u;c.appendChild(o)$Bc=0;o.i=s`Xout(f2@7'`f'}`eo=0}`4o^Vo=^l(s,c,i,u#N)^Qo`B;o.n=n+':'+g;o.u=u;o.d=d;o.l=l;o.e=e;g=`Rdl`5!g)g=`Rdl`K;i=0;^0i<g`8&&g[i])i++;g#d"+ "o}}`6@vm=`Ri(n);#H=1}`4m`Cvo1`0t,a`Fa[t]||$h)^O#ca[t]`Cvo2`0t,a`F#l{a#c^O[t]`5#l$h=1}`Cdlt`7'`Ad`l,i,vo,f=0`5`ul)`n0;i<`ul`8^3vo=`ul[i]`5vo`F!`Rm(\"d\")||d.g`X()-$T>=`d){`ul#d0;s.t($3}`bf=1}`j`u@2`"+ "ui`Idli=0`5f`F!`ui)`ui=s`Xout(`ut,`d)}`b`ul=0'`Idl`0vo`2,d`l`5!$3vo`B;`c^1,`G$O2',$3;$T=d.g`X()`5!`ul)`ul`K;`ul[`ul`8]=vo`5!`d)`d=250;`ut()`Ct`0vo,id`2,trk=1,tm`l,sed=Math&&@b#6?@b#D@b#6()*$m000000"+ "00000):#K`X(),$C='s'+@b#D#K`X()/10800000)%10+sed,y=tm@S$X),vt=tm@SDate($d^HMonth($d'$6y+1900:y)+' ^HHour$e:^HMinute$e:^HSecond$e ^HDay()+#f#K`XzoneO$H(),^l,^4=s.g^4(),ta`g,q`g,qs`g,#7`g,vb`B#M^1`Iu"+ "ns(`Im_ll()`5!s.td){`Ptl=^4`M,a,o,i,x`g,c`g,v`g,p`g,bw`g,bh`g,^N0',k=^f^pcc`G@k',0@0,hp`g,ct`g,pn=0,ps`5^C&&^C.prototype){^N1'`5j.m#E){^N2'`5tm.setUTCDate){^N3'`5^h^6^n&&`T#h^N4'`5pn.toPrecisio@v^N"+ "5';a`K`5a.forEach){^N6';i=0;o`B;^l`7'o`G`Pe,i=0@6i=new Iterator(o)`e}`4i^Vi=^l(o)`5i&&i.next)^N7'}}}}`j`T>=4)x=^rwidth+'x'+^r#4`5s.isns||s.^m`F`T>=3$k`p(@0`5`T>=4){c=^rpixelDepth;bw=`H#L@B;bh=`H#L^"+ "k}}$P=s.n.p^S}`6^h`F`T>=4$k`p(@0;c=^r^B`5`T#h{bw=s.d.^A`V.o$H@B;bh=s.d.^A`V.o$H^k`5!s.^n^6b){^l`7's`Gtl`G`Pe,hp=0`vh$v\");hp=s.b.isH$v(tl)?\"Y\":\"N\"`e}`4hp^Vhp=^l(s,tl);^l`7's`G`Pe,ct=0`vclientCa"+ "ps\");ct=s.b.@f`o^2`e}`4ct^Vct=^l(s$a`br`g`j$P)^0pn<$P`8&&pn<30){ps=^E$P[pn].@4@7#X`5p`3ps)<0)p+=ps;pn++}s.^d=x;s.^B=c;s.`t^t=j;s.`p=v;s.`z@H=k;s.^8@B=bw;s.^8^k=bh;s.@f`o^2=ct;s.@5=hp;s.p^S=p;s.td="+ "1`j$3{`c^1,`G$O2',vb`Ipt(^1,`G$O1',$3`js.useP^S)s.doP^S(s);`Pl=`H`M,r=^4.^A.`a`5!s.^P)s.^P=l^q?l^q:l`5!s.`a@Vs._1_`a^z`a=r;s._1_`a=1`j(vo&&$T)#W`Rm('d'#V`Rm('g')`5s.@M||^G){`Po=^G?^G:s.@M`5!o)`4'';"+ "`Pp=s.#P`r,w=1,^K,@q,x=^7t,h,l,i,oc`5^G$9==^G){^0o@Vn$x$bBODY'){o=o^9`V?o^9`V:o^9Node`5!o)`4'';^K;@q;x=^7t}oc=o.`q?''+o.`q:''`5(oc`3$S>=0$9c`3\"^woc(\")<0)||oc`3$s>=0)`4''}ta=n?o$o:1;h$5i=h`3'?^Vh="+ "s.`Q@s^C||i<0?h:h`10,#Yl=s.`Q`r;t=s.`Q^2?s.`Q^2`9:s.lt(h)`5t^bh||l))q+='&pe=@M_'+(t`Sd$c`Se'?@c(t):'o')+(h@tpev1`Zh)`f(l@tpev2`Zl):'^V`btrk=0`5s.^L@g`F!p$fs.^P;w=0}^K;i=o.sourceIndex`5@G')@x@G^Vx=1"+ ";i=1`jp&&n$x)qs='&pid`Z^Ep,255))+(w@tpidt$ww`f'&oid`Z^En@7)+(x@toidt$wx`f'&ot`Zt)+(i@toi$wi#i}`j!trk@Vqs)`4'';$4=s.vs(sed)`5trk`F$4)#7=s.mr($C,(vt@tt`Zvt)`fs.hav()+q+(qs?qs:s.rq(^5)),0,id,ta);qs`g;"+ "`Rm('t')`5s.p_r)s.p_r(`I`a`g}^I(qs);^Q`u($3;`j$3`c^1,`G$O1',vb`I@M=^G=s.`Q`r=s.`Q^2=`H`m`g`5s.pg)`H^w@M=`H^weo=`H^w`Q`r=`H^w`Q^2`g`5!id@Vs.tc^ztc=1;s.flush`U()}`4#7`Ctl`0o,t,n,vo`2;s.@M=$Go`I`Q^2=t"+ ";s.`Q`r=n;s.t($3}`5pg){`H^wco`0o){`P^s\"_\",1,$8`4$Go)`Cwd^wgs`0u@v`P^sun,1,$8`4s.t()`Cwd^wdc`0u@v`P^sun,$8`4s.t()}}@8=(`H`M`k`9`3'@Os^y0`Id=^A;s.b=s.d.body`5s.d@S`V#S`r^zh=s.d@S`V#S`r('HEAD')`5s.h"+ ")s.h=s.h[0]}s.n=navigator;s.u=s.n.userAgent;@e=s.u`3'N$t6/^V`Papn$Z`r,v$Z^t,ie=v`3#B'),o=s.u`3'@a '),i`5v`3'@a^y0||o>0)apn='@a';^h$Q`SMicrosoft Internet Explorer'`Iisns$Q`SN$t'`I^m$Q`S@a'`I^n=(s.u`"+ "3'Mac^y0)`5o>0)`T`ws.u`1o+6));`6ie>0){`T=^Ji=v`1ie+5))`5`T>3)`T`wi)}`6@e>0)`T`ws.u`1@e+10));`b`T`wv`Iem=0`5^C#R^u){i=^o^C#R^u(256))`E(`Iem=(i`S%C4%80'?2:(i`S%U0$m'?1:0))}s.sa(un`Ivl_l='^U,`YID,vmk,"+ "`Y@T,`D,`D^j,ppu,@L,`Y`r$R,c`L,`z@F,#P`r,^P,`a,@P#0l@E^R,`G`Ivl_t=^R+',^v,$l,server,#P^2,#F`oID,purchaseID,$D,state,zip,#5,products,`Q`r,`Q^2'^W`Pn=1;n<51;n#U@D+=',prop@I,eVar@I,hier@I,list@z^R2=',"+ "tnt,pe#A1#A2#A3,^d,^B,`t^t,`p,`z@H,^8@B,^8^k,@f`o^2,@5,p^S';@D+=^R2;@o@E@D,`G`Ivl_g=@D+',`N,`N^j,`NBase,fpC`L,@R`U,#3,`Y^X,`Y^X#Q`OSele`o,`OList,`OM#E,^LDow^MLinks,^L@K,^L@g,`Q@s^C,`QDow^MFile^2s,`"+ "QEx`s,`QIn`s,`Q@iVa$n`Q@i^Zs,`Q`rs,@M,eo,_1_`a#0g@E^1,`G`Ipg=pg#M^1)`5!ss)`Hs()",w = window, l = w.s_c_il, n = navigator, u = n.userAgent, v = n.appVersion, e = v.indexOf('MSIE '), m = u.indexOf('Netscape6/'), a, i, s; if (un) { un = un.toLowerCase(); if (l) for (i = 0; i < l.length; i++) { s = l[i]; if (!s._c || s._c == 's_c') { if (s.oun == un) return s; else if (s.fs && s.sa && s.fs(s.oun, un)) { s.sa(un); return s } } } } w.s_an = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';w.s_sp = new Function("x", "d", "var a=new Array,i=0,j;if(x){if(x.split)a=x.split(d);else if(!d)for(i=0;i<x.length;i++)a[a.length]=x.substring(i,i+1);else while(i>=0){j=x.indexOf(d,i);a[a.length]=x.subst"+ "ring(i,j<0?x.length:j);i=j;if(i>=0)i+=d.length}}return a");w.s_jn = new Function("a", "d", "var x='',i,j=a.length;if(a&&j>0){x=a[0];if(j>1){if(a.join)x=a.join(d);else for(i=1;i<j;i++)x+=d+a[i]}}return x");w.s_rep = new Function("x", "o", "n", "return s_jn(s_sp(x,o),n)");w.s_d = new Function("x", "var t='`^@$#',l=s_an,l2=new Object,x2,d,b=0,k,i=x.lastIndexOf('~~'),j,v,w;if(i>0){d=x.substring(0,i);x=x.substring(i+2);l=s_sp(l,'');for(i=0;i<62;i++)l2[l[i]]=i;t=s_sp(t,'');d"+ "=s_sp(d,'~');i=0;while(i<5){v=0;if(x.indexOf(t[i])>=0) {x2=s_sp(x,t[i]);for(j=1;j<x2.length;j++){k=x2[j].substring(0,1);w=t[i]+k;if(k!=' '){v=1;w=d[b+l2[k]]}x2[j]=w+x2[j].substring(1)}}if(v)x=s_jn("+ "x2,'');else{w=t[i]+' ';if(x.indexOf(w)>=0)x=s_rep(x,w,t[i]);i++;b+=62}}}return x");w.s_fe = new Function("c", "return s_rep(s_rep(s_rep(c,'\\\\','\\\\\\\\'),'\"','\\\\\"'),\"\\n\",\"\\\\n\")");w.s_fa = new Function("f", "var s=f.indexOf('(')+1,e=f.indexOf(')'),a='',c;while(s>=0&&s<e){c=f.substring(s,s+1);if(c==',')a+='\",\"';else if((\"\\n\\r\\t \").indexOf(c)<0)a+=c;s++}return a?'\"'+a+'\"':"+ "a");w.s_ft = new Function("c", "c+='';var s,e,o,a,d,q,f,h,x;s=c.indexOf('=function(');while(s>=0){s++;d=1;q='';x=0;f=c.substring(s);a=s_fa(f);e=o=c.indexOf('{',s);e++;while(d>0){h=c.substring(e,e+1);if(q){i"+ "f(h==q&&!x)q='';if(h=='\\\\')x=x?0:1;else x=0}else{if(h=='\"'||h==\"'\")q=h;if(h=='{')d++;if(h=='}')d--}if(d>0)e++}c=c.substring(0,s)+'new Function('+(a?a+',':'')+'\"'+s_fe(c.substring(o+1,e))+'\")"+ "'+c.substring(e+1);s=c.indexOf('=function(')}return c;");c = s_d(c); if (e > 0) { a = parseInt(i = v.substring(e + 5)); if (a > 3) a = parseFloat(i) } else if (m > 0) a = parseFloat(u.substring(m + 10)); else a = parseFloat(v); if (a >= 5 && v.indexOf('Opera') < 0 && u.indexOf('Opera') < 0) { w.s_c = new Function("un", "pg", "ss", "var s=this;" + c); return new s_c(un, pg, ss) } else s = new Function("un", "pg", "ss", "var s=new Object;" + s_ft(c) + ";return s"); return s(un, pg, ss)}var AreaTagger={Click:function(event) {if(SCW) {if(SCW.ContentProperties.trackingprefix) {prefixVar=SCW.ContentProperties.trackingprefix;}else {prefixVar=SCW.ContentProperties.sec;};SCW.TL(this,'o','HP Content Area Click',{linkTrackVars:'events,eVar46',linkTrackEvents:'event3',events:'event3',eVar46:prefixVar + ' - ' + event.data.areaName});};},Tag:function() {$j('[class*=omniture]').each(function() {classesArray=$j(this).attr('class').split(' ');for (i=0; i<classesArray.length; i++) {if(classesArray[i].indexOf('omniture')!=-1) {areaVar=classesArray[i].replace('omniture_','').replace(/_/g,' ');$j('.' + classesArray[i] + ' a').bind('click',{areaName:areaVar},AreaTagger.Click);};};});},TagHPMatches:function() {$j('.HpMatches').each(function() {var parentOmn=$j($j(this).parents('[class*=omniture]').get(0));if(parentOmn!=null&&parentOmn!='undefined'&&parentOmn!="") {var classesArray=parentOmn.attr('class').split(' ');for (i=0; i<classesArray.length; i++) {if(classesArray[i].indexOf('omniture')!=-1) {var areaVar=classesArray[i].replace('omniture_','').replace(/_/g,' ');$j('.HpMatches a').bind('click',{areaName:areaVar},AreaTagger.Click);}}}});},TagGeneral:function(jOb) {if(jOb) {var parentOmn=jOb.parents('[class*=omniture]').eq(0);if(parentOmn!=null&&parentOmn!='undefined'&&parentOmn!="") {var classesArray=parentOmn.attr('class').split(' ');for (i=0; i<classesArray.length; i++) {if(classesArray[i].indexOf('omniture')!=-1) {var areaVar=classesArray[i].replace('omniture_','').replace(/_/g,' ');$j('a',jOb).bind('click',{areaName:areaVar},AreaTagger.Click);}}}}}};$j(document).ready(AreaTagger.Tag);(function($) {$.fn.jShare=function(options) {var defaults={type:'news',cssClass:'share-dialog',jsonPath:'/news/[padded-newsid]/json/newsid=[newsid],media.js',altPath:null,value:null,obj:[],dialogSelector:null,titleSelector:'#share-subject',templatePath:'/library/sendmail/_dialogtemplate.html'};var $document=$(document);var opts=$.extend(defaults,options);var c=__getDialog().css({ position:'absolute',zIndex:9999 ,border:'4px solid #999',backgroundColor:'#FFF',display:'none' });c.hide();var _w=$(window);this.close=function() {if(c.length==0) return;c.find('input[type="text"]').each(function() {$(this).val('');});c.find('textarea').each(function() {$(this).val('');});c.find('select').each(function() {$(this).find('option[selected]').removeAttr('selected');$(this).find('options:eq(0)').attr('selected','selected');});c.hide();};var _defCallback=function($this) {var _wh=_w.height();var _ww=_w.width();var _ch=c.outerHeight();var _cw=c.outerWidth();_ch=_ch<=8 ? 404:_ch;_cw=_cw<=8 ? 350:_ch;c.html(jQuery.data($document,'__dialogcontent_' + jQuery.data($this,'value'))).css({ top:(_wh / 2) - (_ch / 2) + _w.scrollTop(),left:(_ww / 2) - (_cw / 2) }).show().find('.close').bind('click',function(e) {e.preventDefault();c.hide();c.find('.close').unbind('click');});};this.init=function(paramsObj) {if(paramsObj.type) {opts.type=paramsObj.type;}if(opts.type=='photostream') {var _getIdImage=function(_src) {var regexS="[0-9]*\_(s6).jpg";try {var regex=new RegExp(regexS);var _id=regex.exec(_src).shift().replace("_s6.jpg","");return _id;} catch (e) {if(console&&console.log) {console.log(e);}}};paramsObj.$this.bind("click",function() {var _current=$('.thumbs .current img');var _src=_current.attr("src");opts.value=_getIdImage(_src);return _init(paramsObj.$this);});return false;}if(paramsObj.value) opts.value=paramsObj.value;else if(paramsObj.href) opts.value=_rawInit(paramsObj.href);if(paramsObj.jsonPath&&paramsObj.jsonPath!=opts.jsonPath) opts.jsonPath=paramsObj.jsonPath;if(paramsObj.altPath) opts.altPath=paramsObj.altPath;return _init(paramsObj.$this);};function _rawInit(href) {var _s,_inews;var re=new RegExp('(newsid=|postid=)');if(re.test(href)) {if(href.indexOf('newsid=')>-1) {_s='newsid=';_inews=href.indexOf('newsid=');} else {_s='postid=';_inews=href.indexOf('postid=');}}var _inews=href.indexOf(_s);if(_inews>-1) {return href.substring(_inews + _s.length,href.indexOf('.htm')).replace(',print','').replace('/_emailpopup','');} else if(href.indexOf('nid=')>-1) {return href.substring(href.indexOf('#nid=') + 5);} else if(location.href.indexOf('uefarankings')>-1) {return 'uefarankings'} else {return null;}}function _init($this) {$.ajax({url:opts.templatePath,success:function(response) {c.html(response)$this.each(function() {var _$this=$(this);var _value=opts.value ? opts.value:_rawInit(_$this.attr('href'));if(_value) {jQuery.data(_$this,'value',_value);var _v=_getValue(_$this);if(opts.type=='photostream') {var _title=$('.wInfoTitle').text();opts.href=$('.type_permalink a').attr("href");opts.obj={"NewsId":opts.value,"NewsTitle":_title};$('#c_urln',c).val(opts.href);jQuery.data($document,'__dialogcontent_' + opts.value,__translateMarker(__restoreMarker(c.html())));_defCallback(_$this);} else {if(_value!='uefarankings') {_setAjaxCall(_$this,opts.jsonPath);} else {opts.obj={"NewsId":"uefarankings","NewsTitle":__getSubject()};setjQueryData(opts.obj);}$this.removeAttr('onclick');_$this.bind('click',function(e) {e.preventDefault();_defCallback(_$this);});}}});}});return $this;}function _setAjaxCall($this,_p,onErrorStop) {$.ajax({type:'GET',url:_translatePath($this,_p),dataType:'json',error:function(http,status) {if(!onErrorStop&&opts.altPath) _setAjaxCall($this,opts.altPath,true);else $this.hide(); },success:function(data) {opts.obj=data;setjQueryData(data);}});}function setjQueryData(data) {if(!data.hasOwnProperty('NewsId')) return;jQuery.data($document,'__dialogcontent_' + data.NewsId,__translateMarker(__restoreMarker(c.html())));}function _translatePath($this,p) {var v=jQuery.data($this,'value');var result=p;var re=new RegExp(/\[+([\w\-]*)\]/gim);var _m=re.exec(p);if(_m) {var _l=_m.length;var _mi;for (var i=_l - 1; i>=0; i--) {_mi=_m[i];if(_mi.indexOf('padded')!=-1&&_mi.indexOf('[')==-1) v=_setPadded(v);result=result.replace(_m[i - 1],v);}result=_translatePath($this,result);}return result;};function __translateMarker(html) {return __translate(html,/\[+([\w\-]*)\]/gim,['*','*']);}function __restoreMarker(html) {return __translate(html,/\*+([\w\-]*)\*/gim,['[',']']);}function __translate(html,rePattern,replaceArr) {var result=html;var re=new RegExp(rePattern);var _m=re.exec(html);if(_m) {var _l=_m.length;var _mi;for (var i=_l - 1; i>=0; i--) {_mi=_m[i];var _r=opts.obj[_mi];if(!_r) _r=replaceArr[0] + _mi + replaceArr[1];result=result.replace(_m[i - 1],_r);}result=__translate(result,rePattern,replaceArr);}return result;}function _setPadded(p) {if(p.length % 2!=0) p='0' + p;var _l=p.length;var result='';for (var i=0; i<_l - 1; i=i + 2) {result += p.substr(i,2) + '/';}return result.substr(0,result.length - 1);};function __getDialog() {var _o=null;if(opts.dialogSelector) _o=_setClone($(opts.dialogSelector));else if(!(_o=__exists('#jshare-dialog'))) _o=_setContent();else _o=_setClone(_o);return _o;}function __getSubject() {var _s='';if(opts.titleSelector&&__exists(opts.titleSelector)) {_s=$(opts.titleSelector).val();}return _s;}function _setClone(_o,appendTo) {var r=_o;if(_o) {var _html=_o.html();_o=_o.html('');if(opts.dialogSelector.indexOf('#')==0) document.getElementById(opts.dialogSelector.replace('#','')).removeAttribute('id');r=_setContent().html(_html);}return r;}function _setContent(appendTo) {if(!appendTo) appendTo='body';return $('<div id="jshare-dialog" class="' + opts.cssClass + '"></div>').appendTo(appendTo);}function _getValue($this) {var _o=__exists(jQuery.data($this,'value'));return _o!=null ? _o.text():jQuery.data($this,'value');};function __exists(sel) {var _s=$(sel);return _s.length>0 ? _s:null;};return this;};})(jQuery);var BrowserDetect={init:function() {this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS";this.language=(navigator.language||navigator.systemLanguage||navigator.userLanguage||'en').substr(0,2).toLowerCase();this.outdated=false;if(this.browser=='Internet Explorer') if(parseInt(this.version)<7) this.outdated=true;if(this.browser=='Firefox') if(parseInt(this.version)<3) this.outdated=true;if(this.browser=='Chrome') if(parseInt(this.version)<4) this.outdated=true;if(this.browser=='Safari') if(parseInt(this.version)<4) this.outdated=true;if(this.browser=='Opera') if(parseInt(this.version)<9) this.outdated=true;},searchString:function(data) {for (var i=0; i<data.length; i++) {var dataString=data[i].string;var dataProp=data[i].prop;this.versionSearchString=data[i].versionSearch||data[i].identity;if(dataString) {if(dataString.indexOf(data[i].subString)!=-1)return data[i].identity;}else if(dataProp)return data[i].identity;}},searchVersion:function(dataString) {var index=dataString.indexOf(this.versionSearchString);if(index==-1) return;return parseFloat(dataString.substring(index + this.versionSearchString.length + 1));},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{ string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{ string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Internet Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{ string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.userAgent,subString:"iPad",identity:"iPad"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();var d3UEFACOM={};(function($) {$.pluginMaker=function(name,plugin) {$.fn[name]=function(options) {var args=$.makeArray(arguments),after=args.slice(1);return this.each(function() {var instance=$.data(this,plugin.prototype.name);if(instance) {if(typeof options=="string") {instance[options].apply(instance,after);} else if(instance.update) {instance.update.apply(instance,args);}} else {new plugin(this,options);}})};};})(jQuery);(function($) {var methods={_addedKey:'___cssLinks',_elmsKey:'___elms',init:function($this,opts) {var _t=this;$this.bind('click',function(e) {e.preventDefault();if(opts.click.callback) {opts.click.callback(_t,opts);methods.clickCallback(_t,opts);}else methods.clickCallback(_t,opts);});jQuery.data(_t,_t._addedKey,$('link[media*="screen"]'));jQuery.data(_t,_t._elmsKey,opts.elms);if(methods.hasToken(opts)) $this.trigger('click');return $this;},clickCallback:function(mthis,opts) {var _gt=new Date().getTime();var _hasToken=methods.hasToken(opts);if(opts.click.newWindow&&!_hasToken) {var _w=window.open(window.location.href + methods.setHash(opts),'printpage' + _gt);_w.focus&&_w.focus();return;}if(!_hasToken) window.location.href += methods.setHash(opts);mthis.setElms();if(opts.photoData) {var content=$(opts.photoData.title).attr('content');if(content!=''&&content!='undefined'&&content!=null) {var _sel=opts.photoData.selector;if($(_sel).length==0) {var _attr=_sel.indexOf('.')==0;var _html='<span ' + (_attr ? 'class':'id') + '="' + _sel.substr(1) + '">' + content + '</span>';$(_html).appendTo(opts.photoData.parent);}}}if($('.d3pg')) { $('.d3pg').replaceWith(''); }if($('body')) { $('body').addClass('jprint'); }if(opts.firstTime==false) {jQuery.data(mthis,mthis._addedKey).each(function() {var _$this=$(this);if(_$this.attr('href').indexOf(opts.css.toSwitch)!=-1) {_$this.attr('href',opts.css.toAdd + '?' + _gt);}else _$this.replaceWith('');});opts.firstTime=true;}mthis.checkStatus(mthis,opts);},setHash:function(opts) {return opts.urlParam + (opts.appendTime ? '_' + new Date().getTime():'');},_tm:null,checkStatus:function(mthis,opts) {_tm=setTimeout(function() {if(methods.hasToken(opts)) methods.checkStatus(mthis,opts);else methods.reverse(mthis,opts);},200);},reverse:function(mthis,opts) {var mthis=this;clearTimeout(_tm);if(methods.hasToken(opts)) return;mthis.setElms();jQuery.data(mthis,mthis._addedKey).each(function() {var _$this=$(this);if(_$this.attr('href').indexOf(opts.css.toAdd)!=-1) {_$this.attr('href',opts.css.toSwitch + '?' + new Date().getTime());}else _$this.appendTo('head');});},hasToken:function(opts) {return (window.location.href.indexOf(opts.urlParam)!=-1);},setElms:function() {var mthis=this;mthis.setSwitchElms('mapBefore','mapAfter');mthis.setMoveElms('from','toAfter');mthis.setInjectElms(mthis);},setSwitchElms:function(propFrom,propTo) {var mthis=this;var _elms=jQuery.data(mthis,mthis._elmsKey)['switch'];var i=_elms[propFrom].length;while (i--) {var _from=_elms[propFrom][i];var _to=_elms[propTo][i];if(_to) {var _$to=$(_to);if(_$to.length>0) {var _toclass="";if(_$to[0]) _toclass=_$to[0].className;var _tohtml=_$to.html();var _$from=$(_from);var _fromhtml=_$from.html();var _fromclass="";if(_$from[0]) _fromclass=_$from[0].className;_$to.replaceWith('<div class="' + _fromclass + '">' + _fromhtml + '</div>');_$from.replaceWith('<div class="' + _toclass + '">' + _tohtml + '</div>');}}}},setMoveElms:function(propFrom,propTo) {var mthis=this;var _elms=jQuery.data(mthis,mthis._elmsKey).move;propFrom=mthis._setProp(propFrom,_elms);propTo=mthis._setProp(propTo,_elms);var i=_elms[propFrom].length;while (i--) {var _from=_elms[propFrom][i];var _to=_elms[propTo][i];if(_to) {var _$to=$(_to);var _$from=$(_from);if(!methods._setMovement(propTo,_$from,_$to)) { methods._setMovement(propFrom,_$to,_$from); }}}},setInjectElms:function() {if(opts.firstInject==false) {var mthis=this;var _elms=jQuery.data(mthis,mthis._elmsKey).inject;if(_elms.domCheck!=''&&mthis._prevIsImage(_elms.domCheck)) return;var i=_elms.what.length;while (i--) {var _what=_elms.what[i];var _where=_elms.where[i];if(_where) {var $where=$(_where);$(_what).prependTo($where);}}}opts.firstInject=true;},_prevIsImage:function(o) {return (typeof $(o).prev().attr('src')!=='undefined');},_setProp:function(prop,_elms) {if(prop=='toAfter'&&_elms['toAfter'].length==0) prop='toBefore';if(prop=='toBefore'&&_elms['toBefore'].length==0) prop='toAfter';return prop;},_setMovement:function(prop,from,to) {switch (prop) {case 'toAfter':to.after(from);break;case 'toBefore':to.before(from);break;default:return false;}return true;}};var defaults={firstTime:false,firstInject:false,urlParam:'#jprint',css:{ toSwitch:'/inc/css/main.css',toAdd:'/inc/css/printscreen.css' },click:{ mode:'auto',callback:null,newWindow:true },appendTime:false,elms:{ 'switch':{ mapBefore:['.postHead>.innerText>.postInfo>.fl'],mapAfter:['.postHead .innerText .clear:eq(0)'] },move:{ from:['#newsHeading>.byText.pubText','.postHead .innerText .fl'],toAfter:['.def_Newshead>.innerText>.newsTitle','.def_Newshead>.innerText>.newsTitle'],toBefore:[] },inject:{ what:['<img class="header" width="656" height="69" src="/img/template/news_UefaLogoPrint.jpg"/>'],where:['.innerText>h1.newsTitle:eq(0)'],domCheck:'.firstDiv.newsArt' }},photoData:{ title:'meta[name="phototitle"]',parent:'.newsPhoto.rel',selector:'.phTitle' }};var opts={};$.fn.jPrint=function(options) {if(this.length==0) return;opts=$.extend(defaults,options);if(opts.click.mode=='inherit') opts.click.callback=this.attr('onclick');this.removeAttr('onclick');return methods.init(this,opts);};$.fn.jPrint.hasToken=function() {return methods.hasToken(opts);};})(jQuery);(function($) {var Flags={facebook:false,fbAsyncInit:false};var D3fb=function(el,o) {var that=el,_lang=$('html').attr('lang'),_w=90,_conf={};if($(that).data("fb")) {return;} else {$(that).data("fb",true);}if(o&&o.additionalOmnParam!==undefined&&o.additionalOmnParam!==null&&o.additionalOmnParam!=='') {$(that).data('addOmnParam',o.additionalOmnParam);}var _callback=function(href,widget) {var compFolder=href;var evar='facebook like';var sendOmn=false;var addOmnParam='';var jElem=$(widget.dom).parent();if(window.SCW&&SCW.Active) {if(href.indexOf('uefa-best-player-award')>-1) { if(href.indexOf('/player=35018/')>-1) {addOmnParam='xavi hernández'}if(href.indexOf('/player=95803/')>-1) {addOmnParam='messi'}if(href.indexOf('/player=63706/')>-1) {addOmnParam='cristiano ronaldo'}}if(jElem.data('addOmnParam')) {addOmnParam=jElem.data('addOmnParam');}if(addOmnParam=='') {if(SCW.CustomSocialNetwork&&SCW.CustomSocialNetwork.hp!=null&&SCW.CustomSocialNetwork.hp!=undefined&&SCW.CustomSocialNetwork.hp!=''&&(s.prop5=='homepage'||s.prop5=='hub')) {evar=evar + ' - ' + SCW.CustomSocialNetwork.hp;sendOmn=true;} else {if(SCW.CustomSocialNetwork&&SCW.CustomSocialNetwork.valfb!=null&&SCW.CustomSocialNetwork.valfb!=undefined&&SCW.CustomSocialNetwork.valfb!='') {evar=evar + ' - ' + SCW.CustomSocialNetwork.valfb;sendOmn=true;} else {if(s.prop5!=null&&s.prop5!==undefined&&s.prop5!='') {evar += ' - ' + s.prop5;sendOmn=true;}}}} else {evar=evar + ' - ' + addOmnParam;sendOmn=true;}if(sendOmn==true) {SCW.TL(this,'o','Tool Used',{linkTrackVars:'events,eVar43',linkTrackEvents:'event20',events:'event20',eVar43:evar});}}};var _url=location.href;if(location.search!=='') {_url=_url.split('?')[0];}if(_url.match(/\/index.html$/)===null) { if(_url.match(/\/$/)===null) { _url += '/';}_url += 'index.html';}var _o={SDK:'/' + '/connect.facebook.net/{lang}/all.js',url:_url,uiculture:'en_US',additionalOmnParam:'',app_id:'241194762579707',like:{layout:'button_count',showfaces:false,width:false}};var _facebook=function() {if(!Flags.facebook) {Flags.facebook=true;window.fbAsyncInit=function() {FB.init({ appId:'241194762579707',status:true,cookie:true,xfbml:true });FB.Event.subscribe('edge.remove',function(href,widget) {setTimeout(function() {$(widget.dom).find("iframe").css("width",_w + "px");},500);});FB.Event.subscribe('edge.create',function(href,widget) {_callback(href,widget);});Flags.fbAsyncInit=true;};(function() {var js,fjs=document.getElementsByTagName('script')[0];if(document.getElementById('facebook-jssdk')) { return; }js=document.createElement('script');js.id='facebook-jssdk';js.src=document.location.protocol + _o.SDK.replace('{lang}',_o.uiculture) + '#xfbml=1&appId=241194762579707';fjs.parentNode.insertBefore(js,fjs);} ());}if(Flags.fbAsyncInit) {FB.XFBML.parse(that);}},_getCultureInfo=function() {if(!_lang)return 'en_US';switch (_lang.toLowerCase()) {case 'ua':case 'uk':return 'uk_UA';case 'ja':case 'jp':return 'ja_JP';case 'zh':case 'cn':return 'zh_CN';case 'ko':case 'kr':return 'ko_KR';case 'en':return 'en_US';default:return _lang.toLowerCase() + '_' + _lang.toUpperCase();}},_buttonWidth=function() {if(_o.like.width)_w=_o.like.width;switch (_lang.toLowerCase()) {case 'ru':case 'ua':_w=150;break;case 'it':case 'pt':_w=120;break;case 'de':case 'jp':_w=115;break;case 'es':case 'fr':case 'pl':case 'kr':_w=110;break;case 'cn':case 'en':_w=90;break;}};if($(that).parents('.d3cmsBCbot').size()>0) {that.innerHTML="";return false;}$.extend(true,_o,o||{});_o.uiculture=_getCultureInfo();_o.url=_o.url.indexOf('http')==-1 ? 'http:/' + '/' + location.host + _o.url:_o.url;_buttonWidth();that.innerHTML='<fb:like href="' + _o.url + '" layout="' + _o.like.layout + '" show_faces="' + _o.like.showfaces + '" width="' + _w + '"/>';_facebook();};$.fn.d3fb=function(o) {return this.each(function(n) {new D3fb(this,o);});};$(document).ready(function() {if($('.nolike').length===0) {$('.fb-button,.fblike').d3fb();}});})(jQuery);(function($) {var _static=false;var D3twitter=function(el,o) {var that=el,_lang=$('html').attr('lang');if($(that).data("twitter")) {return;} else {$(that).data("twitter",true);}var _o={url:location.href,API:'http:/' + '/platform.twitter.com/widgets.js',datacount:'horizontal',datatext:null,via:'uefacom'};var _twitter=function() {if(!_static) {_static=true;(function() {var e=document.createElement('script');e.async=true;e.src=_o.API;document.getElementsByTagName('head')[0].appendChild(e);} ());}var _a=$('<a />').attr({href:'http:/' + '/twitter.com/share','data-url':_o.url.replace(/en/,'www'),'data-count':_o.datacount,'data-lang':_lang.replace(/en|pt|ru|pl|uk|cn/,'en'),'data-via':_o.via}).addClass('twitter-share-button');if(_o.datatext!=null) {_a.attr('data-text',_o.datatext);}$(that).append(_a);if(window.twttr) _render();},_render=function() {try {(function() {var twitterWidgets=document.createElement("script");twitterWidgets.type="text/javascript";twitterWidgets.async=true;twitterWidgets.src="http://platform.twitter.com/widgets.js";document.getElementsByTagName("head")[0].appendChild(twitterWidgets);})();} catch (e) { }};$.extend(true,_o,o||{});_o.url=_o.url.indexOf('http')==-1 ? 'http:/' + '/' + location.host + _o.url:_o.url;_twitter();};$.fn.d3twitter=function(o) {return this.each(function(n) {new D3twitter(this,o);});};$(document).ready(function() {$('.twitter-share').d3twitter();});})(jQuery);(function($) {window.BlogAddSocials=function(context) {var _t=context==document ? $('.d3Posts .post'):$(context);_t.each(function() {var _url=$(this).find(".newsTitle a").attr("href");_url=_url.indexOf('http')==-1 ? 'http:/' + '/' + location.host + _url:_url;if(_url) {var _actions=$('.postActions',this);var _tw=$('<li class="action twitter-share-inline" />').prependTo(_actions);var _fb=$('<li class="action fb-button-inline" />').prependTo(_actions);$(_tw).d3twitter({ url:_url });$(_fb).d3fb({ url:_url });}});};window.AwardAddSocials=function(context) {var _t=context==document ? $('.nomineeAction'):$(context);_t.each(function() {_url=_getAddUrl(this);_omnParam=_getAddOmnParam(this);var _tw=$('<li class="action twitter-share-inline" />').prependTo(this);var _fb=$('<li class="action fb-button-inline" />').prependTo(this);;$(_tw).d3twitter({ url:_url });$(_fb).d3fb({ url:_url,additionalOmnParam:_omnParam });});};window.InitSocials=function(context) {$(context).each(function() {_url=_getAddUrl(this);$('.twitter-share',this).d3twitter({ url:_url });$('.fb-button',this).d3fb({ url:_url });});};window.ClubHeader=function(context) {var _t=$('.HeaderDetails .fb-like');_t.each(function() {var parent=$(this).parent();var pos=parent.offset();var titleWidth=parent.find('a').width();_t.appendTo($('body')).css({left:pos.left + titleWidth + 20,top:pos.top + 8,position:'absolute'});$(window).resize(function() {var pos=parent.offset();_t.css({left:pos.left + titleWidth + 20,top:pos.top + 8});});_t.d3fb({ url:location.href });});}window.AddLike=function(context) {function addLike(init) {$('.fb-like').each(function() {var me=$(this),pos=me.offset(),leftMod=0,topMod=0,cl=me.attr('class'),exec,reTop=new RegExp(/top_([0-9]+)/),reLeft=new RegExp(/left_([0-9]+)/);if(me.data('fb')) return;if(reTop.test(cl)) {topMod=parseInt(reTop.exec(cl)[1]);}if(reLeft.test(cl)) {leftMod=parseInt(reLeft.exec(cl)[1]);}me.appendTo($('body')).css({left:pos.left + leftMod,top:pos.top + topMod,position:'absolute'});if(init) {me.d3fb({url:me.getParam('href',location.href),additionalOmnParam:me.getParam('title','').toLowerCase()});}});}$(window).resize(function() {addLike(false);return false;});addLike(true);}$.fn.getParam=function(attrName,defaultValue) {var attr=$(this).attr(attrName);if(attr!='') {$(this).removeAttr(attrName);return attr;} else {return defaultValue;}};function _getAddUrl(obj) {var _url=location.href;_url=$('.url a',obj) ? $('.url a',obj).attr('href'):_urlreturn _url}function _getAddOmnParam(obj) {var _omnParam='';_omnParam=$('.url a',obj) ? $('.url a',obj).text():_omnParamreturn _omnParam}$(document).ready(function() {ClubHeader(document);AwardAddSocials(document);AddLike(document);});})(jQuery);(function($) {jQuery.fn.VideoInitializer=function(config) {var _this=$(this);function _init(cfg) {if(PlayerVideo) {PlayerVideo.init(_this,cfg);}}$.ajax({dataType:'script',cache:true,url:'/inc/js/video/videoplayer.js',success:function() {if(config.mmurl1!==null & config.mmurl1!==undefined & config.mmurl1!='') {_init(config);}else {$.ajax({dataType:'json',url:'/library/video/videoid=' + config.videoid + ',feed.js',success:function(data) {var cfg={};cfg.videoid=parseInt(config.videoid);cfg.mmurl1=data.MMURL_1;if(data.MMURL_2) cfg.mmurl2=data.MMURL_2;if(data.MMURL_3) cfg.mmurl3=data.MMURL_3;if(data.MMURL_4) cfg.mmurl4=data.MMURL_4;if(data.MMURL_5) cfg.mmurl5=data.MMURL_5;if(data.MMURL_6) cfg.mmurl6=data.MMURL_6;cfg.posterimg=data.UefaComUrl;cfg.posterimg += (config.posterpath) ? config.posterpath:data.MMURL_w2;cfg.poster=false;cfg.postersize=config.postersize ? config.postersize:"w2";if(data.NewsTitle) cfg.title=data.NewsTitle;if(data.NewsComment) cfg.comment=data.NewsComment;cfg.area=data.NewsArea;cfg.areaid=data.NewsAreaID;cfg.kind=data.NewsKind;cfg.kindid=data.NewsKindID;cfg.section=data.NewsSection;cfg.sectionid=data.NewsSectionID;if(data.IdCup) cfg.cup=data.IdCup;if(data.NewsSeason) cfg.season=data.NewsSeason;_init(cfg);}});}}});return _this;};})(jQuery);var OmnitureMC={SummaryPageClick:function(portletName) {if(portletName!='undefined'&&portletName!=undefined) {s.eVar46=s.prop13 + " - matchcentre portlet - " + portletName;s.linkTrackVars="events,eVar46";s.linkTrackEvents="event3";s.events="event3";s.tl(this,'o','HP Content Area Click');s.linkTrackVars="None";s.linkTrackEvents="None";}},SendPortletOpen:function(portletOpens) {var omnValue="mc portlets ";for (i=0; i<portletOpens.length; i++) {if(i==0) {omnValue=omnValue + " " + portletOpens[i];} else {omnValue=omnValue + " | " + portletOpens[i];}}if(portletOpens.length>0) {this.genericTrackEvents(omnValue);}},facebooksharecommentary:function() {this.genericTrackEvents('facebook share - mc commentary');},facebooklikevideo:function() {this.genericTrackEvents('facebook like - mc video');},twittersharecommentary:function() {this.genericTrackEvents('twitter share - mc commentary');},toolbaropen:function() {this.genericTrackEvents('mc toolbar - open');},toolbarsave:function() {this.genericTrackEvents('mc toolbar - save workspace');},toolbarofficecompanion:function() {this.genericTrackEvents('mc toolbar - office companion');},toolbartvcompanion:function() {this.genericTrackEvents('mc toolbar - tv companion');},toolbarcustomlayout:function() {this.genericTrackEvents('mc toolbar - custom layout');},genericTrackEvents:function(evar) {var stl=s_gi(s_account);stl.eVar43=evar;stl.linkTrackVars="events,eVar43";stl.linkTrackEvents="event20";stl.events="event20";stl.tl(this,'o','Tool Used');stl.linkTrackVars="None";stl.linkTrackEvents="None";}};(function($) {$(document).ready(function(e) {u=new User();$j("#submit_slogan").click(function(e) {if(u.isLogged()) {e.preventDefault();initCountryList();}});});})(jQuery);function addSocial(k) {addLikeButton($j('.fblike',$j('#hyundai_widget')),k);addTwButton($j('.twshare',$j('#hyundai_widget')));}function initCountryList() {updateUJSON(u.Data.UserID,false);if(!isEmpty(uJson)) { if(u.Data.CountryCode in countries) {$j.each(uJson,function(k,v) {$j('#hyundai_widget').load('/uefaeuro/be-there-with-hyundai/library/widget/team=' + k + '/_teamSlide.html',function() {addSocial(k);});});} else { $j('#hyundai_widget').html($j('#countryError').html());}} else { if(u.Data.CountryCode!='') {if(u.Data.CountryCode in countries) { $j('#teamID').html(countries[u.Data.CountryCode]);callBusPage(countries[u.Data.CountryCode]);} else { $j('#hyundai_widget').html($j('#countryError').html());}} else {$j('#hyundai_widget').load('/uefaeuro/be-there-with-hyundai/library/widget/_map.html');}}}function widgetTermsCheck(frm,u) {var errorsFound=new Array();if(u.isLogged()) {var teamID=$j('#teamID').text();if(!$j('#agree').is(':checked'))errorsFound.push('.errorTC');if(errorsFound.length>0) {$j('.errorsList').show();for (i=0; i<errorsFound.length; i++) {$j(errorsFound[i]).show();}return false;}var check_hyundai=$j('#check_one').is(':checked') ? 1:0;var check_uefa=$j('#check_two').is(':checked') ? 1:0;$j.ajax({type:'POST',url:'/uefaeuro/be-there-with-hyundai/library/widget/team=' + teamID + '/_teamSlide.html',data:{ UserID:u.Data.UserID,TeamID:teamID },success:function(data) {$j('#hyundai_widget').html(data);if(check_hyundai) { $j('#check_one').attr('checked','checked'); }if(check_uefa) { $j('#check_two').attr('checked','checked'); }SCW.TL(this,'o','Tool Used',{linkTrackVars:'events,eVar43',linkTrackEvents:'event20',events:'event20',eVar43:'newsletter - uefa'});s.eVar43='';}});}return false;}function widgetCountryCheck(frm,u) {if(u.isLogged()) {var countryId=$j('#uCountry',frm).val();if(countryId==-1) {$j('.errorsList').show();$j('.errorSelectCountry').show();return false;}$j.ajax({type:'POST',url:'/uefaeuro/be-there-with-hyundai/library/team=' + countryId + '/_teamSlide.htmx',data:{ SaveData:1,UserID:u.Data.UserID,TeamID:countryId },success:function(data) {if(data==-1) {$j('#hyundai_widget').html($j('#countryError').html());SCW.AddContent("subsec2",'country not eligible',true);SCW.AddContent("type",'popup',true);s.eVar8=s.prop1 + ":country not eligible:popup";s.eVar5='popup';s.events='event2';SCW.Execute();} else {$j("#teamID").text(data);$j.ajax({type:'POST',url:'/uefaeuro/be-there-with-hyundai/library/widget/_termsconditions.html',success:function(data) {$j('#hyundai_widget').html(data);}});}}});}return false;}function callBusPage(country) {$j.ajax({type:'POST',url:'/uefaeuro/be-there-with-hyundai/library/widget/team=' + country + '/_bus.html',success:function(data) {$j('#hyundai_widget').html(data);$j("#enter_slogan").click(function() {$j('#hyundai_widget').load('/uefaeuro/be-there-with-hyundai/library/widget/_termsconditions.html');});}});}function closeButton() {$j('#hyundai_widget').load('/uefaeuro/be-there-with-hyundai/library/widget/_cntWidget.html .intro',function(e) {u=new User();$j('.fblike').remove();$j("#submit_slogan").click(function(e) {e.preventDefault();initCountryList();});});}
