﻿//class.js
(function(){var i=false,fnTest=/xyz/.test(function(){xyz})?/\bbase\b/:/.*/;this.Class=function(){};Class.extend=function(e){var f=this.prototype;i=true;var g=new this();i=false;for(var h in e){g[h]=typeof e[h]=="function"&&typeof f[h]=="function"&&fnTest.test(e[h])?(function(c,d){return function(){var a=this.base;this.base=f[c];var b=d.apply(this,arguments);this.base=a;return b}})(h,e[h]):e[h]}function Class(){if(!i&&this.init)this.init.apply(this,arguments)}Class.prototype=g;Class.constructor=Class;Class.extend=arguments.callee;return Class}})();
//string.js
if (!String.prototype.trim) String.prototype.trim = function(a) { var b; if (!a) b = /^\s+|\s+$/g; else b = RegExp("^(?:" + a + ")+|(?:" + a + ")+$", "g"); return this.replace(b, "") }; if (!String.prototype.leftTrim) String.prototype.leftTrim = function(a) { var b; if (!a) b = /^\s+/; else b = new RegExp("^(?:" + a + ")+"); return this.replace(b, "") }; if (!String.prototype.rightTrim) String.prototype.rightTrim = function(a) { var b; if (!a) b = /\s+$/; else b = new RegExp("(?:" + a + ")+$"); return this.replace(b, "") }; if (!String.prototype.startsWith) String.prototype.startsWith = function(a, b) { var c = b || false; if (c) { var d = new RegExp('^' + a, 'i'); return d.test(this) } else return (this.substring(0, a.length) == a) }; if (!String.prototype.endsWith) String.prototype.endsWith = function(a, b) { var c = this.length; var d = a.length; var e = b || false; if (d > c) return false; if (e) { var f = new RegExp(a + '$', 'i'); return f.test(this) } else return (d == 0 || this.substring(c - d) == a) }; if (!String.prototype.format) String.prototype.format = function(a) { a = arguments[0] && arguments[0].constructor === Array ? arguments[0] : Array.prototype.slice.call(arguments); if (a.length == 0) return this; for (var s = this, i = 0, j = a.length; i < j; i++) { s = s.replace(new RegExp("\\{" + i + "\\}", "g"), a[i]) } return s };
//array.js
Array.prototype.inArray=function(a){for(var i=0;i<this.length;i++){if(this[i]===a){return true}}return false};
//util.js
(function() { window.tx = window.tx || {}; var j = "0.3.4"; var k = navigator.userAgent.toLowerCase(); function each(a, b, c) { var d, i = 0, length = a.length; if (c) { if (length == undefined) { for (d in a) if (b.apply(a[d], c) === false) break } else for (; i < length; ) if (b.apply(a[i++], c) === false) break } else { if (length == undefined) { for (d in a) if (b.call(a[d], d, a[d]) === false) break } else for (var e = a[0]; i < length && b.call(e, i, e) !== false; e = a[++i]) { } } return a } function nameSpace(a, b) { var c = a.split(/\./); var d = window; for (var e = 0; e < c.length - 1; e++) { if (!d[c[e]]) { d[c[e]] = {} } d = d[c[e]] } d[c[c.length - 1]] = b } function toggle(a, b, c, d) { return function() { a[b] = (a[b] != d) ? d : c } } function setCookie(a, b, c, d, e, f) { var g = new Date(); g.setTime(g.getTime()); if (c) { c = c * 1000 * 60 * 60 * 24 } var h = new Date(g.getTime() + (c)); document.cookie = a + "=" + escape(b) + ((c) ? ";expires=" + h.toGMTString() : "") + ((d) ? ";path=" + d : "") + ((e) ? ";domain=" + e : "") + ((f) ? ";secure" : "") } function getCookie(a) { var b = document.cookie.indexOf(a + "="); var c = b + a.length + 1; if ((!b) && (a != document.cookie.substring(0, a.length))) { return null } if (b == -1) return null; var d = document.cookie.indexOf(";", c); if (d == -1) d = document.cookie.length; return unescape(document.cookie.substring(c, d)) } function deleteCookie(a, b, c) { if (getCookie(a)) document.cookie = a + "=" + ((b) ? ";path=" + b : "") + ((c) ? ";domain=" + c : "") + ";expires=Thu, 01-Jan-1970 00:00:01 GMT" } tx.global = this; tx.nullFunction = function() { }; tx.nullObject = {}; tx.evalWorksForGlobals_ = null; tx.provide = function(a) { if (tx.getObjectByName(a) && !tx.implicitNamespaces_[a]) { throw Error('Namespace "' + a + '" already declared.'); } var b = a; while ((b = b.substring(0, b.lastIndexOf('.')))) { tx.implicitNamespaces_[b] = true } tx.exportPath_(a) }; tx.implicitNamespaces_ = {}; tx.exportPath_ = function(a, b, c) { var d = a.split('.'); var e = c || tx.global; if (!(d[0] in e) && e.execScript) { e.execScript('var ' + d[0]) } for (var f; d.length && (f = d.shift()); ) { if (!d.length && b !== undefined) { e[f] = b } else if (e[f]) { e = e[f] } else { e = e[f] = {} } } }; tx.getObjectByName = function(a, b) { var c = a.split('.'); var d = b || tx.global; for (var e; e = c.shift(); ) { if (d[e]) { d = d[e] } else { return null } } return d }; tx.bind = function(b, c, d) { var e = c || tx.global; if (arguments.length > 2) { var f = Array.prototype.slice.call(arguments, 2); return function() { var a = Array.prototype.slice.call(arguments); Array.prototype.unshift.apply(a, f); return b.apply(e, a) } } else { return function() { return b.apply(e, arguments) } } }; if (/msie/.test(k)) { try { document.execCommand("BackgroundImageCache", false, true) } catch (e) { } } each("each,nameSpace,toggle,setCookie,getCookie,deleteCookie".split(","), function() { nameSpace("tx.util." + this, eval("(" + this + ")")) }); each("each".split(","), function() { nameSpace("tx." + this, eval("(" + this + ")")) }); tx.toString = function() { return "[object tx(version " + j + ")]" } })();
//style.js
(function(){var e=(function(){var d={};return function(c){if(!d[c]){return d[c]=c.replace(/-([a-z])/g,function(a,b){return b.toUpperCase()})}else{return d[c]}}})();function toStyleObj(b){var c=['{"'];c.push(b.replace(/[^\d]\:[^\/\/]/g,function(a){return a.replace(/\:/,"\":\"")}).replace(/\;$/,function(){return""}).replace(/\;/gi,function(){return'","'}));c.push('"}');return c.join("")}function setStyle(a,b,c){var d=null;for(var i=0,len=a.length;i<len;i++){d=(typeof a[i]=="string")?document.getElementById(a[i]):a[i];if(b=="opacity"){d.style.filter="alpha(opacity="+c*100+")";d.style.opacity=c;continue}if(b=="float"){d.style.styleFloat=c;d.style.cssFloat=c;continue}d.style[e(b)]=c}}function setCSS(a,b){if(typeof b=="string")b=eval("("+toStyleObj(b)+")");for(var c in b){if(!b.hasOwnProperty(c))continue;setStyle(a,c.trim(),b[c].trim())}}function addClass(a,b){if(typeof a=="string")a=document.getElementById(a);a.className+=" "+b}function removeClass(a,b){if(typeof a=="string")a=document.getElementById(a);a.className=a.className.replace(b," ")}tx.util.each("setCSS,setStyle,addClass,removeClass".split(","),function(){tx.util.nameSpace("tx.style."+this,eval("("+this+")"))});tx.util.each("setCSS,addClass,removeClass".split(","),function(){tx.util.nameSpace("tx."+this,eval("("+this+")"))})})();
//dom.js
(function(){function $(){var a=[];for(var i=0;i<arguments.length;i++){var b=arguments[i];if(typeof b=='string')b=document.getElementById(b);if(arguments.length==1)return b;a.push(b)}return a}function tag(a,b){return(b||document).getElementsByTagName(a)}function byClass(a,b,c){var d=[];if(b==null)b=document;if(c==null)c='*';var e=b.getElementsByTagName(tag);var f=new RegExp("(^|\\s)"+a+"(\\s|$)");for(i=0,j=0;i<e.length;i++){if(f.test(e[i].className)){d[j]=e[i];j++}}return d}function prev(a){do{a=a.previousSibling}while(a&&a.nodeType!=1);return a}function next(a){do{a=a.nextSibling}while(a&&a.nodeType!=1);return a}function first(a){var a=a.firstChild;return(a&&a.nodeType!=1)?next(a):a}function last(a){var a=a.lastChild;return(a&&a.nodeType!=1)?prev(a):a}function getParent(a,b){var b=b||1;for(var i=0;i<b;i++)if(a!=null)a=a.parentNode;return a}function before(a,b){var c=a.parentNode;var d=checkElem(b);for(var i=d.length-1;i>=0;i--){c.insertBefore(d[i],a)}}function after(a,b){var c=checkElem(b);for(var i=c.length-1;i>=0;i--){if(a.nextSibling)a.parentNode.insertBefore(c[i],a.nextSibling);else a.parentNode.appendChild(c[i])}}function create(a){return document.createElementNS?document.createElementNS('',a):document.createElement(a)}function append(a,b){var c=checkElem(b);for(var i=0;i<c.length;i++){a.appendChild(c[i])}}function remove(a){if(a)a.parentNode.removeChild(a)}function empty(a){while(a.firstChild)remove(a.firstChild)}function getAttr(a,b){return attr(a,b)}function setAttr(a,b,c){return attr(a,b,c)}function attr(a,b,c){if(!b||b.constructor!=String)return"";b={"for":"htmlFor","class":"className"}[b]||b;if(c!=null){a[b]=c;if(a.setAttribute)a.setAttribute(b,c)}return a[b]||a.getAttribute(b)||""}function checkElem(a){var r=[];if(a.constructor!=Array)a=[a];for(var i=0;i<a.length;i++){if(a[i].constructor==String){var b=document.createElement("div");b.innerHTML=a[i];for(var j=0;j<b.childNodes.length;j++)r[r.length]=b.childNodes[j]}else if(a[i].length){for(var j=0;j<a[i].length;j++)r[r.length]=a[i][j]}else{r[r.length]=a[i]}}return r}tx.util.each("$,byClass,tag,prev,next,first,last,getParent,before,after,create,append,remove,empty,getAttr,setAttr,attr".split(","),function(){tx.util.nameSpace("tx.dom."+this,eval("("+this+")"))});tx.util.each("$,byClass,tag".split(","),function(){tx.util.nameSpace("tx."+this,eval("("+this+")"))})})();
//event.js
(function() { function addEvent(a, b, c) { if (a.addEventListener) { a.addEventListener(b, c, false) } else { if (!c.$$guid) c.$$guid = addEvent.guid++; if (!a.events) a.events = {}; var d = a.events[b]; if (!d) { d = a.events[b] = {}; if (a["on" + b]) { d[0] = a["on" + b] } } d[c.$$guid] = c; a["on" + b] = handleEvent } }; addEvent.guid = 1; function removeEvent(a, b, c) { if (a.removeEventListener) { a.removeEventListener(b, c, false) } else { if (a.events && a.events[b]) { delete a.events[b][c.$$guid] } } }; function handleEvent(a) { var b = true; a = a || fixEvent(((this.ownerDocument || this.document || this).parentWindow || window).event); var c = this.events[a.type]; for (var i in c) { this.$$handleEvent = c[i]; if (this.$$handleEvent(a) === false) { b = false } } return b }; function fixEvent(a) { a.preventDefault = fixEvent.preventDefault; a.stopPropagation = fixEvent.stopPropagation; return a }; fixEvent.preventDefault = function() { this.returnValue = false }; fixEvent.stopPropagation = function() { this.cancelBubble = true }; var e = false, readyList = []; function domReady(a) { bindReady(); if (e) a.call(document); else readyList.push(a) } function ready() { if (!e) { e = true; if (readyList) { tx.each(readyList, function() { this.call(document) }); readyList = null } } } var f = false; function bindReady() { if (f) return; f = true; if (document.addEventListener) { document.addEventListener("DOMContentLoaded", function() { document.removeEventListener("DOMContentLoaded", arguments.callee, false); ready() }, false) } else if (document.attachEvent) { document.attachEvent("onreadystatechange", function() { if (document.readyState === "complete") { document.detachEvent("onreadystatechange", arguments.callee); ready() } }); if (document.documentElement.doScroll && window == window.top) (function() { if (e) return; try { document.documentElement.doScroll("left") } catch (error) { setTimeout(arguments.callee, 0); return } ready() })() } addEvent(window, "load", ready) } tx.util.each("addEvent,removeEvent,domReady".split(","), function() { tx.util.nameSpace("tx.event." + this, eval("(" + this + ")")) }); tx.util.each("addEvent,removeEvent,domReady".split(","), function() { tx.util.nameSpace("tx." + this, eval("(" + this + ")")) }) })();
//ajax.js
(function() { tx.provide("tx.ajax"); var g = "2.1.0"; var h = !(navigator.userAgent.toLowerCase().indexOf("opera") > -1) && ((document.all) ? true : false) && ([/MSIE (\d)\.0/i.exec(navigator.userAgent)][0][1] == 6); var j = { _objPool: [], async: true, _getInstance: function() { for (var i = 0; i < this._objPool.length; i++) { if (this._objPool[i].readyState == 0 || this._objPool[i].readyState == 4) { return this._objPool[i] } } this._objPool[this._objPool.length] = this._CreateXHR(); return this._objPool[this._objPool.length - 1] }, _CreateXHR: function() { if (window.XMLHttpRequest) { var a = new XMLHttpRequest() } else { var b = ['Msxml2.XMLHTTP.6.0', 'MSXML2.XMLHTTP.5.0', 'MSXML2.XMLHTTP.4.0', 'MSXML2.XMLHTTP.3.0', 'MSXML2.XMLHTTP', 'Microsoft.XMLHTTP']; for (var i = 0; i < b.length; i++) { try { var a = new ActiveXObject(b[i]); break } catch (e) { } } } if (a.readyState == null) { a.readyState = 0; a.addEventListener("load", function() { a.readyState = 4; if (typeof a.onreadystatechange == "function") { a.onreadystatechange() } }, false) } return a }, _param: function(a) { if (a === null || a == "null") return null; var s = []; if (a.constructor == Object) { for (var b in a) { s.push(encodeURIComponent(b.toString()) + "=" + encodeURIComponent(a[b])) } } else { var c = a.split("&"); for (var i = 0; i < c.length; i++) { var d = c[i].split("="); s.push(encodeURIComponent(d[0]) + "=" + encodeURIComponent(d[1])) } } return s.join("&").replace(/%20/g, "+") }, _send: function(a, b, c, d) { var f = this._getInstance(); d = d || tx.nullFunction; try { if (b.indexOf("?") > 0) { b += "&randnum=" + Math.random() } else { b += "?randnum=" + Math.random() } f.open(a, b, true); f.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded; charset=utf-8'); f.send(this._param(c)); f.onreadystatechange = function() { if (f.readyState == 4 && (f.status == 200 || f.status == 304)) { if (typeof d == "function") { d(f) } } } } catch (e) {  } }, _addQueryString: function(a, b) { if (a.indexOf("?") > 0) { a += ("&" + b) } else { a += ("?" + b) } return a }, post: function(a, b, c) { j._send("POST", a, b, c) }, get: function(a, b) { if (!a.indexOf("http") || !a.indexOf("//")) { var c = document.getElementsByTagName("head")[0]; var d = document.createElement("script"); d.src = a; d.onload = d.onreadystatechange = function() { if ((!d.readyState || d.readyState == "loaded" || d.readyState == "complete")) { (b || function() { })(); (!h) && c.removeChild(d) } }; c.appendChild(d) } else { if (typeof b == "string") { b = this._param(b); a = this._addQueryString(a, b); b = arguments[2] } j._send("GET", a, "null", b) } }, request: function(a) { a = a || tx.nullObject; a.type = a.type || "GET"; a.url = a.url || ""; a.data = a.data || ""; a.onSuccess = a.onSuccess || tx.nullFunction; if (a.type.toUpperCase() == "GET") { a.url = this._addQueryString(a.url, a.data); a.data = null } this._send(a.type.toUpperCase(), a.url, a.data, a.onSuccess) } }; tx.ajax.toString = function() { return "[object ajax(version " + g + ")]" }; tx.ajax.post = tx.bind(j.post, j); tx.ajax.get = tx.bind(j.get, j); tx.ajax.request = tx.bind(j.request, j) })();
//loader.js
(function() { window['tx'] = window['tx'] || {}; window['tx']['loader'] = window['tx']['loader'] || {}; tx.loader.ServiceBase = 'http://img.txooo.com/js'; tx.loader.TxoooApisBase = 'http://img.txooo.com/js'; function setLoad(a, b) { return a.load = b } var F = {}; function E(a) { if (a in F) return F[a]; return F[a] = navigator.userAgent.toLowerCase().indexOf(a) != -1 } function inherit(a, b) { var c = function() { }; c.prototype = b.prototype; a.K = b.prototype; a.prototype = new c } function H(a, b) { var c = a.w || []; c = c.concat(Array.prototype.slice.call(arguments, 2)); if (typeof a.r != "undefined") b = a.r; if (typeof a.q != "undefined") a = a.q; var d = function() { var g = c.concat(Array.prototype.slice.call(arguments)); return a.apply(b, g) }; d.w = c; d.r = b; d.q = a; return d } function error(a) { var b = new Error(a); b.toString = function() { return this.message }; return b } function nameSpace(a, b) { for (var c = a.split(/\./), d = window, g = 0; g < c.length - 1; g++) { d[c[g]] || (d[c[g]] = {}); d = d[c[g]] } d[c[c.length - 1]] = b } function K(a, b, c) { a[b] = c } if (!L) var L = nameSpace; if (!e) var e = K; tx.loader.callbacks = {}; L("tx.loader.callbacks", tx.loader.callbacks); var h = {}, N = {}; tx.loader.eval = {}; L("tx.loader.eval", tx.loader.eval); setLoad(tx, function(a, b, c) { var d = h[":" + a]; if (d) { if (c && !c.language && c.locale) c.language = c.locale; if (c && typeof c.callback == "string") { var g = c.callback; if (g.match(/^[[\]A-Za-z0-9._]+$/)) { g = window.eval(g); c.callback = g } } var l = c && c.callback != f; if (l && !d.p(b)) throw error("Module: '" + a + "' must be loaded before DOM onLoad!"); else if (l) d.k(b, c) ? window.setTimeout(c.callback, 0) : d.load(b, c); else d.k(b, c) || d.load(b, c) } else throw error("模块: \"" + a + "\" 未找到!"); }); L("tx.load", tx.load); tx.setOnLoadCallback = function(b) { var c = tx.loader["mname"]; var a = c; h[":" + a]["load"].setOnLoad(b) }; L("tx.setOnLoadCallback", tx.setOnLoadCallback); tx.loader.writeLoadTag = function(a, b, c) { if (c) { var d; if (a == "script") { d = document.createElement("script"); d.type = "text/javascript"; d.src = b } else if (a == "css") { d = document.createElement("link"); d.type = "text/css"; d.href = b; d.rel = "stylesheet" } var g = document.getElementsByTagName("head")[0]; g || (g = document.body.parentNode.appendChild(document.createElement("head"))); g.appendChild(d) } else if (a == "script") document.write('<script src="' + b + '" type="text/javascript"><\/script>'); else a == "css" && document.write('<link href="' + b + '" type="text/css" rel="stylesheet"></link>') }; L("tx.loader.writeLoadTag", tx.loader.writeLoadTag); tx.loader.rfm = function(a) { N = a }; L("tx.loader.rfm", tx.loader.rfm); tx.loader.rpl = function(a) { for (var b in a) if (typeof b == "string" && b && b.charAt(0) == ":" && !h[b]) h[b] = new rpl(b.substring(1), a[b]) }; L("tx.loader.rpl", tx.loader.rpl); tx.loader.rm = function(a) { if ((a = a.specs) && a.length) for (var b = 0; b < a.length; ++b) { var c = a[b]; if (typeof c == "string") h[":" + c] = new U(c); else { var d = new V(c.name, c.baseSpec, c.customSpecs); h[":" + d.name] = d } } }; L("tx.loader.rm", tx.loader.rm); tx.loader.loaded = function(a) { h[":" + a.module].i(a) }; L("tx.loader.loaded", tx.loader.loaded); function U(a) { this.a = a; this.n = {}; this.b = {}; this.j = true; this.c = -1 } U.prototype.f = function(a, b) { var c = ""; if (b != undefined) { if (b.language != undefined) c += "&hl=" + encodeURIComponent(b.language); if (b.nocss != undefined) c += "&output=" + encodeURIComponent("nocss=" + b.nocss); if (b.nooldnames != undefined) c += "&nooldnames=" + encodeURIComponent(b.nooldnames); if (b.packages != undefined) c += "&packages=" + encodeURIComponent(b.packages); if (b.callback != f) c += "&async=2"; if (b.other_params != undefined) c += "&" + b.other_params } if (!this.j) { if (k[this.a] && k[this.a].JSHash) c += "&sig=" + encodeURIComponent(k[this.a].JSHash); var d = []; for (var g in this.n) g.charAt(0) == ":" && d.push(g.substring(1)); for (g in this.b) g.charAt(0) == ":" && d.push(g.substring(1)); c += "&have=" + encodeURIComponent(d.join(",")) } return tx.loader.ServiceBase + "/?file=" + this.a + "&v=" + a + tx.loader.AdditionalParams + c }; U.prototype.u = function(a) { var b = f; if (a) b = a.packages; var c = f; if (b) if (typeof b == "string") c = [a.packages]; else if (b.length) { c = []; for (var d = 0; d < b.length; d++) typeof b[d] == "string" && c.push(b[d].replace(/^\s*|\s*$/, "").toLowerCase()) } c || (c = ["default"]); var g = []; for (d = 0; d < c.length; d++) this.n[":" + c[d]] || g.push(c[d]); return g }; setLoad(U.prototype, function(a, b) { var c = this.u(b), d = b && b.callback != f; if (d) var g = new W(b.callback); for (var l = [], u = c.length - 1; u >= 0; u--) { var y = c[u]; d && g.z(y); if (this.b[":" + y]) { c.splice(u, 1); d && this.b[":" + y].push(g) } else l.push(y) } if (c.length) { if (b && b.packages) b.packages = c.sort().join(","); if (!b && N[":" + this.a] != f && N[":" + this.a].versions[":" + a] != f && !tx.loader.AdditionalParams && this.j) { var z = N[":" + this.a]; k[this.a] = k[this.a] || {}; for (var Q in z.properties) if (Q && Q.charAt(0) == ":") k[this.a][Q.substring(1)] = z.properties[Q]; tx.loader.writeLoadTag("script", tx.loader.ServiceBase + z.path + z.js, d); z.css && tx.loader.writeLoadTag("css", tx.loader.ServiceBase + z.path + z.css, d) } else if (!b || !b.autoloaded) tx.loader.writeLoadTag("script", this.f(a, b), d); if (this.j) { this.j = false; this.c = (new Date).getTime(); if (this.c % 100 != 1) this.c = -1 } for (u = 0; u < l.length; u++) { y = l[u]; this.b[":" + y] = []; d && this.b[":" + y].push(g) } } }); U.prototype.i = function(a) { if (this.c != -1) { this.c = -1 } for (var b = 0; b < a.components.length; b++) { this.n[":" + a.components[b]] = true; var c = this.b[":" + a.components[b]]; if (c) { for (var d = 0; d < c.length; d++) c[d].C(a.components[b]); delete this.b[":" + a.components[b]] } } }; U.prototype.k = function(a, b) { return this.u(b).length == 0 }; U.prototype.p = function() { return true }; function W(a) { this.B = a; this.l = {}; this.o = 0 } W.prototype.z = function(a) { this.o++; this.l[":" + a] = true }; W.prototype.C = function(a) { if (this.l[":" + a]) { this.l[":" + a] = false; this.o--; this.o == 0 && window.setTimeout(this.B, 0) } }; function V(a, b, c) { this.name = a; this.A = b; this.m = c; this.t = this.g = false; this.h = []; tx.loader.callbacks[this.name] = H(this.i, this) } inherit(V, U); V.prototype.load = function(a, b) { var c = b && b.callback != f; if (c) { this.h.push(b.callback); b.callback = "tx.loader.callbacks." + this.name } else this.g = true; if (!b || !b.autoloaded) { var d = this.f(a, b); tx.loader["mname"] = this.name; h[":" + this.name]["load"] = new loadScript(d) } }; V.prototype.k = function(a, b) { return b && b.callback != f ? this.t : this.g }; V.prototype.i = function() { this.t = true; for (var a = 0; a < this.h.length; a++) window.setTimeout(this.h[a], 0); this.h = [] }; V.prototype.f = function(a, b) { return this.F(this.v(a), a, b) }; V.prototype.F = function(a, b, c) { var d = ""; var g = tx.loader.Secure && a.ssl ? a.ssl : a.uri; return g + d }; V.prototype.p = function(a) { return this.v(a).deferred }; V.prototype.v = function(a) { if (this.m) for (var b = 0; b < this.m.length; ++b) { var c = this.m[b]; if ((new RegExp(c.pattern)).test(a)) return c } return this.A }; function rpl(a, b) { this.a = a; this.e = b; this.g = false } inherit(rpl, U); rpl.prototype.load = function(a, b) { this.g = true; var c = this.f(a, b); tx.loader["mname"] = this.a; h[":" + this.a]["load"] = new loadScript(c) }; rpl.prototype.k = function() { return this.g }; rpl.prototype.i = function() { }; rpl.prototype.f = function(a, b) { if (!this.e.versions[":" + a]) { if (this.e.aliases) { var c = this.e.aliases[":" + a]; if (c) a = c } if (!this.e.versions[":" + a]) throw error("Module: '" + this.a + "' with version '" + a + "' not found!"); } var d = tx.loader.TxoooApisBase + "/libs/" + this.a + "/" + a + "/" + this.e.versions[":" + a][b && b.uncompressed ? "uncompressed" : "compressed"]; return d }; rpl.prototype.p = function() { return false }; function loadScript(a) { this.src = a } loadScript.prototype.setOnLoad = function(a) { var b = document.createElement("script"); b.src = this.src; var c = document.getElementsByTagName("head")[0]; c || (c = document.body.parentNode.appendChild(document.createElement("head"))); c.appendChild(b); b.onload = b.onreadystatechange = function() { if ((!b.readyState || b.readyState == "loaded" || b.readyState == "complete")) { a.call(window) } } }; tx.module = function(a, b, c) { tx.load(a, b); tx.setOnLoadCallback(c || function() { }) }; tx.loader.rm({ "specs": [{ "name": "imagecut", "baseSpec": { "uri": "http://img.txooo.com/pichelper/imagecut.js", "ssl": null, "key": { "string": "key" }, "version": { "string": "v" }, "deferred": true, "params": { "callback": { "string": "callback" }, "language": { "string": "hl" }, "country": { "string": "gl"}}}}] }); tx.loader.rfm({}); tx.loader.rpl({ ":popup": { "versions": { ":1.0.0": { "uncompressed": "popup.js", "compressed": "popup.js"} }, "aliases": { ":1": "1.0.0"} }, ":cssselect": { "versions": { ":1.0.0": { "uncompressed": "cssselect.js", "compressed": "cssselect.js"} }, "aliases": { ":1": "1.0.0"} }, ":colorpicker": { "versions": { ":1.0.0": { "uncompressed": "colorpicker.js", "compressed": "colorpicker.js"} }, "aliases": { ":1": "1.0.0"} }, ":calendar": { "versions": { ":0.1.0": { "uncompressed": "calendar.js", "compressed": "calendar.js"} }, "aliases": { ":1": "0.1.0"} }, ":adstyle": { "versions": { ":1.0.0": { "uncompressed": "adstyle.js", "compressed": "adstyle.js" }, ":2.0.0": { "uncompressed": "adstyle.js", "compressed": "adstyle.js"} }, "aliases": { ":1": "1.0.0", ":2": "2.0.0"} }, ":linkage": { "versions": { ":1.0.0": { "uncompressed": "linkage.js", "compressed": "linkage.js"} }, "aliases": { ":1": "1.0.0"} }, ":animation": { "versions": { ":1.0.0": { "uncompressed": "fx.js", "compressed": "fx.js"} }, "aliases": { ":1": "1.0.0"} }, ":validate": { "versions": { ":1.0.0": { "uncompressed": "validate.js", "compressed": "validate.js"} }, "aliases": { ":1": "1.0.0"}} }) })();
