Signin  Pricing  Examples  Support

Libraries > main-1.6.13.min.js

main-1.6.13.min.js - Search Live Website Code
It's like doing CTRL+F on millions of websites' source code



NerdyData is a search engine for source code. Search the source code of 200 million websites.


JAVASCRIPT FILE http://gamek4.vcmedia.vn/web_js/main-1.6.13.min.js

Function Explorer



















































































































































Libraries on gamek4.vcmedia.vn


KpcSlider.pack.js

main-1.6.13.min.js



Explore More


modernizr-2.6.2.min.js

skrollr.ie.min.js

skrollr.menu.min.js

skrollr.min.js

main-1.6.13.min.js
				
/* jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement){cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),cm.close()}d=cm.createElement(a),cm.body.appendChild(d),e=f.css(d,"display"),b.removeChild(cl)}ck[a]=e}return ck[a]}function cu(a,b){var c={};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=a});return c}function ct(){cr=b}function cs(){setTimeout(ct,0);return cr=f.now()}function cj(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return new a.XMLHttpRequest}catch(b){}}function cc(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1){for(h in a.converters){typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h])}}l=k,k=d[g];if(k==="*"){k=l}else{if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}}return c}function cb(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g){i in d&&(c[g[i]]=d[i])}while(f[0]==="*"){f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"))}if(h){for(i in e){if(e[i]&&e[i].test(h)){f.unshift(i);break}}}if(f[0] in d){j=f[0]}else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function ca(a,b,c,d){if(f.isArray(b)){f.each(b,function(b,e){c||bE.test(a)?d(a,e):ca(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)})}else{if(!c&&b!=null&&typeof b=="object"){for(var e in b){ca(a+"["+e+"]",b[e],c,d)}}else{d(a,b)}}}function b_(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c){c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d])}e&&f.extend(!0,a,e)}function b$(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bT,l;for(;i<j&&(k||!l);i++){l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=b$(a,c,d,e,l,g)))}(k||!l)&&!g["*"]&&(l=b$(a,c,d,e,"*",g));return l}function bZ(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bP),e=0,g=d.length,h,i,j;for(;e<g;e++){h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}}function bC(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bx:by,g=0,h=e.length;if(d>0){if(c!=="border"){for(;g<h;g++){c||(d-=parseFloat(f.css(a,"padding"+e[g]))||0),c==="margin"?d+=parseFloat(f.css(a,c+e[g]))||0:d-=parseFloat(f.css(a,"border"+e[g]+"Width"))||0}}return d+"px"}d=bz(a,b,b);if(d<0||d==null){d=a.style[b]||0}d=parseFloat(d)||0;if(c){for(;g<h;g++){d+=parseFloat(f.css(a,"padding"+e[g]))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+e[g]+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+e[g]))||0)}}return d+"px"}function bp(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bf,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bo(a){var b=c.createElement("div");bh.appendChild(b),b.innerHTML=a.outerHTML;return b.firstChild}function bn(a){var b=(a.nodeName||"").toLowerCase();b==="input"?bm(a):b!=="script"&&typeof a.getElementsByTagName!="undefined"&&f.grep(a.getElementsByTagName("input"),bm)}function bm(a){if(a.type==="checkbox"||a.type==="radio"){a.defaultChecked=a.checked}}function bl(a){return typeof a.getElementsByTagName!="undefined"?a.getElementsByTagName("*"):typeof a.querySelectorAll!="undefined"?a.querySelectorAll("*"):[]}function bk(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object"){b.outerHTML=a.outerHTML}else{if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option"){b.selected=a.defaultSelected}else{if(c==="input"||c==="textarea"){b.defaultValue=a.defaultValue}}}else{a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value)}}b.removeAttribute(f.expando)}}function bj(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c,d,e,g=f._data(a),h=f._data(b,g),i=g.events;if(i){delete h.handle,h.events={};for(c in i){for(d=0,e=i[c].length;d<e;d++){f.event.add(b,c+(i[c][d].namespace?".":"")+i[c][d].namespace,i[c][d],i[c][d].data)}}}h.data&&(h.data=f.extend({},h.data))}}function bi(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function U(a){var b=V.split("|"),c=a.createDocumentFragment();if(c.createElement){while(b.length){c.createElement(b.pop())}}return c}function T(a,b,c){b=b||0;if(f.isFunction(b)){return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c})}if(b.nodeType){return f.grep(a,function(a,d){return a===b===c})}if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(O.test(b)){return f.filter(b,d,!c)}b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function S(a){return !a||!a.parentNode||a.parentNode.nodeType===11}function K(){return !0}function J(){return !1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b])){continue}if(b!=="toJSON"){return !1}}return !0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?parseFloat(d):j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else{d=b}}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c<d;c++){b[a[c]]=!0}return b}var c=a.document,d=a.navigator,e=a.location,f=function(){function J(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(J,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a){return this}if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2]){return f.find(a)}this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return !d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a)){return f.ready(a)}a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++){if((a=arguments[j])!=null){for(c in a){d=i[c],f=a[c];if(i===f){continue}l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}}}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body){return setTimeout(e.ready,1)}e.isReady=!0;if(a!==!0&&--e.readyWait>0){return}A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete"){return setTimeout(e.ready,1)}if(c.addEventListener){c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1)}else{if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval" in a},isNumeric:function(a){return !isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a)){return !1}try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf")){return !1}}catch(c){return !1}var d;for(d in a){}return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a){return !1}return !0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b){return null}b=e.trim(b);if(a.JSON&&a.JSON.parse){return a.JSON.parse(b)}if(n.test(b.replace(o,"@").replace(p,"]").replace(q,""))){return(new Function("return "+b))()}e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a){if(c.apply(a[f],d)===!1){break}}}else{for(;g<h;){if(c.apply(a[g++],d)===!1){break}}}}else{if(i){for(f in a){if(c.call(a[f],f,a[f])===!1){break}}}else{for(;g<h;){if(c.call(a[g],g,a[g++])===!1){break}}}}return a},trim:G?function(a){return a==null?"":G.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?E.call(c,a):e.merge(c,a)}return c},inArray:function(a,b,c){var d;if(b){if(H){return H.call(b,a,c)}d=b.length,c=c?c<0?Math.max(0,d+c):c:0;for(;c<d;c++){if(c in b&&b[c]===a){return c}}}return -1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number"){for(var f=c.length;e<f;e++){a[d++]=c[e]}}else{while(c[e]!==b){a[d++]=c[e++]}}a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++){e=!!b(a[f],f),c!==e&&d.push(a[f])}return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k){for(;i<j;i++){f=c(a[i],i,d),f!=null&&(h[h.length]=f)}}else{for(g in a){f=c(a[g],g,d),f!=null&&(h[h.length]=f)}}return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a)){return b}var f=F.call(arguments,2),g=function(){return a.apply(c,f.concat(F.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c){e.access(a,j,c[j],f,g,d)}return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++){g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h)}return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=r.exec(a)||s.exec(a)||t.exec(a)||a.indexOf("compatible")<0&&u.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){I["[object "+b+"]"]=b.toLowerCase()}),z=e.uaMatch(y),z.browser&&(e.browser[z.browser]=!0,e.browser.version=z.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?B=function(){c.removeEventListener("DOMContentLoaded",B,!1),e.ready()}:c.attachEvent&&(B=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",B),e.ready())});return e}(),g={};f.Callbacks=function(a){a=a?g[a]||h(a):{};var c=[],d=[],e,i,j,k,l,m=function(b){var d,e,g,h,i;for(d=0,e=b.length;d<e;d++){g=b[d],h=f.type(g),h==="array"?m(g):h==="function"&&(!a.unique||!o.has(g))&&c.push(g)}},n=function(b,f){f=f||[],e=!a.memory||[b,f],i=!0,l=j||0,j=0,k=c.length;for(;c&&l<k;l++){if(c[l].apply(b,f)===!1&&a.stopOnFalse){e=!0;break}}i=!1,c&&(a.once?e===!0?o.disable():c=[]:d&&d.length&&(e=d.shift(),o.fireWith(e[0],e[1])))},o={add:function(){if(c){var a=c.length;m(arguments),i?k=c.length:e&&e!==!0&&(j=a,n(e[0],e[1]))}return this},remove:function(){if(c){var b=arguments,d=0,e=b.length;for(;d<e;d++){for(var f=0;f<c.length;f++){if(b[d]===c[f]){i&&f<=k&&(k--,f<=l&&l--),c.splice(f--,1);if(a.unique){break}}}}}return this},has:function(a){if(c){var b=0,d=c.length;for(;b<d;b++){if(a===c[b]){return !0}}}return !1},empty:function(){c=[];return this},disable:function(){c=d=e=b;return this},disabled:function(){return !c},lock:function(){d=b,(!e||e===!0)&&o.disable();return this},locked:function(){return !d},fireWith:function(b,c){d&&(i?a.once||d.push([b,c]):(!a.once||!e)&&n(b,c));return this},fire:function(){o.fireWith(this,arguments);return this},fired:function(){return !!e}};return o};var i=[].slice;f.extend({Deferred:function(a){var b=f.Callbacks("once memory"),c=f.Callbacks("once memory"),d=f.Callbacks("memory"),e="pending",g={resolve:b,reject:c,notify:d},h={done:b.add,fail:c.add,progress:d.add,state:function(){return e},isResolved:b.fired,isRejected:c.fired,then:function(a,b,c){i.done(a).fail(b).progress(c);return this},always:function(){i.done.apply(i,arguments).fail.apply(i,arguments);return this},pipe:function(a,b,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[b,"reject"],progress:[c,"notify"]},function(a,b){var c=b[0],e=b[1],g;f.isFunction(c)?i[a](function(){g=c.apply(this,arguments),g&&f.isFunction(g.promise)?g.promise().then(d.resolve,d.reject,d.notify):d[e+"With"](this===i?d:this,[g])}):i[a](d[e])})}).promise()},promise:function(a){if(a==null){a=h}else{for(var b in h){a[b]=h[b]}}return a}},i=h.promise({}),j;for(j in g){i[j]=g[j].fire,i[j+"With"]=g[j].fireWith}i.done(function(){e="resolved"},c.disable,d.lock).fail(function(){e="rejected"},b.disable,d.lock),a&&a.call(i,i);return i},when:function(a){function m(a){return function(b){e[a]=arguments.length>1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c<d;c++){b[c]&&b[c].promise&&f.isFunction(b[c].promise)?b[c].promise().then(l(c),j.reject,m(c)):--g}g||j.resolveWith(j,b)}else{j!==a&&j.resolveWith(j,d?[a]:[])}return k}}),f.support=function(){var b,d,e,g,h,i,j,k,l,m,n,o,p,q=c.createElement("div"),r=c.documentElement;q.setAttribute("className","t"),q.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=q.getElementsByTagName("*"),e=q.getElementsByTagName("a")[0];if(!d||!d.length||!e){return{}}g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=q.getElementsByTagName("input")[0],b={leadingWhitespace:q.firstChild.nodeType===3,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:q.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete q.test}catch(s){b.deleteExpando=!1}!q.addEventListener&&q.attachEvent&&q.fireEvent&&(q.attachEvent("onclick",function(){b.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),q.appendChild(i),k=c.createDocumentFragment(),k.appendChild(q.lastChild),b.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,k.removeChild(i),k.appendChild(q),q.innerHTML="",a.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",q.style.width="2px",q.appendChild(j),b.reliableMarginRight=(parseInt((a.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0);if(q.attachEvent){for(o in {submit:1,change:1,focusin:1}){n="on"+o,p=n in q,p||(q.setAttribute(n,"return;"),p=typeof q[n]=="function"),b[o+"Bubbles"]=p}}k.removeChild(q),k=g=h=j=q=i=null,f(function(){var a,d,e,g,h,i,j,k,m,n,o,r=c.getElementsByTagName("body")[0];!r||(j=1,k="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",m="visibility:hidden;border:0;",n="style='"+k+"border:5px solid #000;padding:0;'",o="<div "+n+"><div></div></div><table "+n+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>",a=c.createElement("div"),a.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+j+"px",r.insertBefore(a,r.firstChild),q=c.createElement("div"),a.appendChild(q),q.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",l=q.getElementsByTagName("td"),p=l[0].offsetHeight===0,l[0].style.display="",l[1].style.display="none",b.reliableHiddenOffsets=p&&l[0].offsetHeight===0,q.innerHTML="",q.style.width=q.style.paddingLeft="1px",f.boxModel=b.boxModel=q.offsetWidth===2,typeof q.style.zoom!="undefined"&&(q.style.display="inline",q.style.zoom=1,b.inlineBlockNeedsLayout=q.offsetWidth===2,q.style.display="",q.innerHTML="<div style='width:4px;'></div>",b.shrinkWrapBlocks=q.offsetWidth!==2),q.style.cssText=k+m,q.innerHTML=o,d=q.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,i={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:h.offsetTop===5},e.style.position="fixed",e.style.top="20px",i.fixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",i.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,i.doesNotIncludeMarginInBodyOffset=r.offsetTop!==j,r.removeChild(a),q=a=null,f.extend(b,i))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return !!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b){return}n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function"){e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c)}g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c]){return g.events}k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k]){return}if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e<g;e++){delete d[b[e]]}if(!(c?m:f.isEmptyObject)(d)){return}}}if(!c){delete j[k].data;if(!m(j[k])){return}}f.support.deleteExpando||!j.setInterval?delete j[k]:j[k]=null,i&&(f.support.deleteExpando?delete a[h]:a.removeAttribute?a.removeAttribute(h):a[h]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b){return b!==!0&&a.getAttribute("classid")===b}}return !0}}),f.fn.extend({data:function(a,c){var d,e,g,h=null;if(typeof a=="undefined"){if(this.length){h=f.data(this[0]);if(this[0].nodeType===1&&!f._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var i=0,j=e.length;i<j;i++){g=e[i].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),l(this[0],g,h[g]))}f._data(this[0],"parsedAttrs",!0)}}return h}if(typeof a=="object"){return this.each(function(){f.data(this,a)})}d=a.split("."),d[1]=d[1]?"."+d[1]:"";if(c===b){h=this.triggerHandler("getData"+d[1]+"!",[d[0]]),h===b&&this.length&&(h=f.data(this[0],a),h=l(this[0],a,h));return h===b&&d[1]?this.data(d[0]):h}return this.each(function(){var b=f(this),e=[d[0],c];b.triggerHandler("setData"+d[1]+"!",e),f.data(this,a,c),b.triggerHandler("changeData"+d[1]+"!",e)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,b){a&&(b=(b||"fx")+"mark",f._data(a,b,(f._data(a,b)||0)+1))},_unmark:function(a,b,c){a!==!0&&(c=b,b=a,a=!1);if(b){c=c||"fx";var d=c+"mark",e=a?0:(f._data(b,d)||1)-1;e?f._data(b,d,e):(f.removeData(b,d,!0),n(b,c,"mark"))}},queue:function(a,b,c){var d;if(a){b=(b||"fx")+"queue",d=f._data(a,b),c&&(!d||f.isArray(c)?d=f._data(a,b,f.makeArray(c)):d.push(c));return d||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e={};d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),f._data(a,b+".run",e),d.call(a,function(){f.dequeue(a,b)},e)),c.length||(f.removeData(a,b+"queue "+b+".run",!0),n(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b){return f.queue(this[0],a)}return this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(b,c){var d=setTimeout(b,a);c.stop=function(){clearTimeout(d)}})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--){if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f.Callbacks("once memory"),!0)){h++,l.add(m)}}m();return d.promise()}});var o=/[\n\t\r]/g,p=/\s+/,q=/\r/g,r=/^(?:button|input)$/i,s=/^(?:button|input|object|select|textarea)$/i,t=/^a(?:rea)?$/i,u=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,v=f.support.getSetAttribute,w,x,y;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a)){return this.each(function(b){f(this).addClass(a.call(this,b,this.className))})}if(a&&typeof a=="string"){b=a.split(p);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1){if(!e.className&&b.length===1){e.className=a}else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++){~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ")}e.className=f.trim(g)}}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a)){return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))})}if(a&&typeof a=="string"||a===b){c=(a||"").split(p);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className){if(a){h=(" "+g.className+" ").replace(o," ");for(i=0,j=c.length;i<j;i++){h=h.replace(" "+c[i]+" "," ")}g.className=f.trim(h)}else{g.className=""}}}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a)){return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)})}return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(p);while(e=j[g++]){i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}}else{if(c==="undefined"||c==="boolean"){this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""}}})},hasClass:function(a){var b=" "+a+" ",c=0,d=this.length;for(;c<d;c++){if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(o," ").indexOf(b)>-1){return !0}}return !1},val:function(a){var c,d,e,g=this[0];if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set" in c)||c.set(this,h,"value")===b){this.value=h}}})}if(g){c=f.valHooks[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c&&"get" in c&&(d=c.get(g,"value"))!==b){return d}d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return !b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0){return null}c=j?g:0,d=j?g+1:i.length;for(;c<d;c++){e=i[c];if(e.selected&&(f.support.optDisabled?!e.disabled:e.getAttribute("disabled")===null)&&(!e.parentNode.disabled||!f.nodeName(e.parentNode,"optgroup"))){b=f(e).val();if(j){return b}h.push(b)}}if(j&&!h.length&&i.length){return f(i[g]).val()}return h},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn){return f(a)[c](d)}if(typeof a.getAttribute=="undefined"){return f.prop(a,c,d)}i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set" in h&&i&&(g=h.set(a,d,c))!==b){return g}a.setAttribute(c,""+d);return d}if(h&&"get" in h&&i&&(g=h.get(a,c))!==null){return g}g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;h<g;h++){e=d[h],e&&(c=f.propFix[e]||e,f.attr(a,e,""),a.removeAttribute(v?e:c),u.test(e)&&c in a&&(a[c]=!1))}}},attrHooks:{type:{set:function(a,b){if(r.test(a.nodeName)&&a.parentNode){f.error("type property can't be changed")}else{if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}}},value:{get:function(a,b){if(w&&f.nodeName(a,"button")){return w.get(a,b)}return b in a?a.value:null},set:function(a,b,c){if(w&&f.nodeName(a,"button")){return w.set(a,b,c)}a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e,g,h,i=a.nodeType;if(!!a&&i!==3&&i!==8&&i!==2){h=i!==1||!f.isXMLDoc(a),h&&(c=f.propFix[c]||c,g=f.propHooks[c]);return d!==b?g&&"set" in g&&(e=g.set(a,d,c))!==b?e:a[c]=d:g&&"get" in g&&(e=g.get(a,c))!==null?e:a[c]}},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):s.test(a.nodeName)||t.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabindex=f.propHooks.tabIndex,x={get:function(a,c){var d,e=f.prop(a,c);return e===!0||typeof e!="boolean"&&(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},v||(y={name:!0,id:!0},w=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&(y[c]?d.nodeValue!=="":d.specified)?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.attrHooks.tabindex.set=w.set,f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})}),f.attrHooks.contenteditable={get:w.get,set:function(a,b,c){b===""&&(b="false"),w.set(a,b,c)}}),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.enctype||(f.propFix.enctype="encoding"),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b)){return a.checked=f.inArray(f(a).val(),b)>=0}}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/\bhover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")};f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k<c.length;k++){l=A.exec(c[k])||[],m=l[1],n=(l[2]||"").split(".").sort(),s=f.event.special[m]||{},m=(g?s.delegateType:s.bindType)||m,s=f.event.special[m]||{},o=f.extend({type:m,origType:l[1],data:e,handler:d,guid:d.guid,selector:g,quick:G(g),namespace:n.join(".")},p),r=j[m];if(!r){r=j[m]=[],r.delegateCount=0;if(!s.setup||s.setup.call(a,e,n,i)===!1){a.addEventListener?a.addEventListener(m,i,!1):a.attachEvent&&a.attachEvent("on"+m,i)}}s.add&&(s.add.call(a,o),o.handler.guid||(o.handler.guid=d.guid)),g?r.splice(r.delegateCount++,0,o):r.push(o),f.event.global[m]=!0}a=null}},global:{},remove:function(a,b,c,d,e){var g=f.hasData(a)&&f._data(a),h,i,j,k,l,m,n,o,p,q,r,s;if(!!g&&!!(o=g.events)){b=f.trim(I(b||"")).split(" ");for(h=0;h<b.length;h++){i=A.exec(b[h])||[],j=k=i[1],l=i[2];if(!j){for(j in o){f.event.remove(a,j+b[h],c,d,!0)}continue}p=f.event.special[j]||{},j=(d?p.delegateType:p.bindType)||j,r=o[j]||[],m=r.length,l=l?new RegExp("(^|\\.)"+l.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(n=0;n<r.length;n++){s=r[n],(e||k===s.origType)&&(!c||c.guid===s.guid)&&(!l||l.test(s.namespace))&&(!d||d===s.selector||d==="**"&&s.selector)&&(r.splice(n--,1),s.selector&&r.delegateCount--,p.remove&&p.remove.call(a,s))}r.length===0&&m!==r.length&&((!p.teardown||p.teardown.call(a,l)===!1)&&f.removeEvent(a,j,g.handle),delete o[j])}f.isEmptyObject(o)&&(q=g.handle,q&&(q.elem=null),f.removeData(a,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){if(!e||e.nodeType!==3&&e.nodeType!==8){var h=c.type||c,i=[],j,k,l,m,n,o,p,q,r,s;if(E.test(h+f.event.triggered)){return}h.indexOf("!")>=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h]){return}c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j){j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0)}return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1){return}r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode){r.push([m,s]),n=m}n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;l<r.length&&!c.isPropagationStopped();l++){m=r[l][0],c.type=r[l][1],q=(f._data(m,"events")||{})[c.type]&&f._data(m,"handle"),q&&q.apply(m,d),q=o&&m[o],q&&f.acceptData(m)&&q.apply(m,d)===!1&&c.preventDefault()}c.type=h,!g&&!c.isDefaultPrevented()&&(!p._default||p._default.apply(e.ownerDocument,d)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)&&o&&e[h]&&(h!=="focus"&&h!=="blur"||c.target.offsetWidth!==0)&&!f.isWindow(e)&&(n=e[o],n&&(e[o]=null),f.event.triggered=h,e[h](),f.event.triggered=b,n&&(e[o]=n));return c.result}},dispatch:function(c){c=f.event.fix(c||a.event);var d=(f._data(this,"events")||{})[c.type]||[],e=d.delegateCount,g=[].slice.call(arguments,0),h=!c.exclusive&&!c.namespace,i=[],j,k,l,m,n,o,p,q,r,s,t;g[0]=c,c.delegateTarget=this;if(e&&!c.target.disabled&&(!c.button||c.type!=="click")){m=f(this),m.context=this.ownerDocument||this;for(l=c.target;l!=this;l=l.parentNode||this){o={},q=[],m[0]=l;for(j=0;j<e;j++){r=d[j],s=r.selector,o[s]===b&&(o[s]=r.quick?H(l,r.quick):m.is(s)),o[s]&&q.push(r)}q.length&&i.push({elem:l,matches:q})}}d.length>e&&i.push({elem:this,matches:d.slice(e)});for(j=0;j<i.length&&!c.isPropagationStopped();j++){p=i[j],c.currentTarget=p.elem;for(k=0;k<p.matches.length&&!c.isImmediatePropagationStopped();k++){r=p.matches[k];if(h||!c.namespace&&!r.namespace||c.namespace_re&&c.namespace_re.test(r.namespace)){c.data=r.data,c.handleObj=r,n=((f.event.special[r.origType]||{}).handle||r.handler).apply(p.elem,g),n!==b&&(c.result=n,n===!1&&(c.preventDefault(),c.stopPropagation()))}}}return c.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(a,b){a.which==null&&(a.which=b.charCode!=null?b.charCode:b.keyCode);return a}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(a,d){var e,f,g,h=d.button,i=d.fromElement;a.pageX==null&&d.clientX!=null&&(e=a.target.ownerDocument||c,f=e.documentElement,g=e.body,a.pageX=d.clientX+(f&&f.scrollLeft||g&&g.scrollLeft||0)-(f&&f.clientLeft||g&&g.clientLeft||0),a.pageY=d.clientY+(f&&f.scrollTop||g&&g.scrollTop||0)-(f&&f.clientTop||g&&g.clientTop||0)),!a.relatedTarget&&i&&(a.relatedTarget=i===a.target?d.toElement:i),!a.which&&h!==b&&(a.which=h&1?1:h&2?3:h&4?2:0);return a}},fix:function(a){if(a[f.expando]){return a}var d,e,g=a,h=f.event.fixHooks[a.type]||{},i=h.props?this.props.concat(h.props):this.props;a=f.Event(g);for(d=i.length;d;){e=i[--d],a[e]=g[e]}a.target||(a.target=g.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),a.metaKey===b&&(a.metaKey=a.ctrlKey);return h.filter?h.filter(a,g):a},special:{ready:{setup:f.bindReady},load:{noBubble:!0},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}},simulate:function(a,b,c,d){var e=f.extend(new f.Event,c,{type:a,isSimulated:!0,originalEvent:{}});d?f.event.trigger(e,null,b):f.event.dispatch.call(b,e),e.isDefaultPrevented()&&c.preventDefault()}},f.event.handle=f.event.dispatch,f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!(this instanceof f.Event)){return new f.Event(a,b)}a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?K:J):this.type=a,b&&f.extend(this,b),this.timeStamp=a&&a.timeStamp||f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=K;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=K;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=K,this.stopPropagation()},isDefaultPrevented:J,isPropagationStopped:J,isImmediatePropagationStopped:J},f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={delegateType:b,bindType:b,handle:function(a){var c=this,d=a.relatedTarget,e=a.handleObj,g=e.selector,h;if(!d||d!==c&&!f.contains(c,d)){a.type=e.origType,h=e.handler.apply(this,arguments),a.type=b}return h}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(){if(f.nodeName(this,"form")){return !1}f.event.add(this,"click._submit keypress._submit",function(a){var c=a.target,d=f.nodeName(c,"input")||f.nodeName(c,"button")?c.form:b;d&&!d._submit_attached&&(f.event.add(d,"submit._submit",function(a){this.parentNode&&!a.isTrigger&&f.event.simulate("submit",this.parentNode,a,!0)}),d._submit_attached=!0)})},teardown:function(){if(f.nodeName(this,"form")){return !1}f.event.remove(this,"._submit")}}),f.support.changeBubbles||(f.event.special.change={setup:function(){if(z.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){f.event.add(this,"propertychange._change",function(a){a.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),f.event.add(this,"click._change",function(a){this._just_changed&&!a.isTrigger&&(this._just_changed=!1,f.event.simulate("change",this,a,!0))})}return !1}f.event.add(this,"beforeactivate._change",function(a){var b=a.target;z.test(b.nodeName)&&!b._change_attached&&(f.event.add(b,"change._change",function(a){this.parentNode&&!a.isSimulated&&!a.isTrigger&&f.event.simulate("change",this.parentNode,a,!0)}),b._change_attached=!0)})},handle:function(a){var b=a.target;if(this!==b||a.isSimulated||a.isTrigger||b.type!=="radio"&&b.type!=="checkbox"){return a.handleObj.handler.apply(this,arguments)}},teardown:function(){f.event.remove(this,"._change");return z.test(this.nodeName)}}),f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){var d=0,e=function(a){f.event.simulate(b,a.target,f.event.fix(a),!0)};f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.fn.extend({on:function(a,c,d,e,g){var h,i;if(typeof a=="object"){typeof c!="string"&&(d=c,c=b);for(i in a){this.on(i,c,d,a[i],g)}return this}d==null&&e==null?(e=c,d=c=b):e==null&&(typeof c=="string"?(e=d,d=b):(e=d,d=c,c=b));if(e===!1){e=J}else{if(!e){return this}}g===1&&(h=e,e=function(a){f().off(a);return h.apply(this,arguments)},e.guid=h.guid||(h.guid=f.guid++));return this.each(function(){f.event.add(this,a,e,d,c)})},one:function(a,b,c,d){return this.on.call(this,a,b,c,d,1)},off:function(a,c,d){if(a&&a.preventDefault&&a.handleObj){var e=a.handleObj;f(a.delegateTarget).off(e.namespace?e.type+"."+e.namespace:e.type,e.selector,e.handler);return this}if(typeof a=="object"){for(var g in a){this.off(g,c,a[g])}return this}if(c===!1||typeof c=="function"){d=c,c=b}d===!1&&(d=J);return this.each(function(){f.event.remove(this,a,d,c)})},bind:function(a,b,c){return this.on(a,null,b,c)},unbind:function(a,b){return this.off(a,null,b)},live:function(a,b,c){f(this.context).on(a,this.selector,b,c);return this},die:function(a,b){f(this.context).off(a,this.selector||"**",b);return this},delegate:function(a,b,c,d){return this.on(b,a,c,d)},undelegate:function(a,b,c){return arguments.length==1?this.off(a,"**"):this.off(b,a,c)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){return f.event.trigger(a,b,this[0],!0)}},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f._data(this,"lastToggle"+a.guid)||0)%d;f._data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length){b[d++].guid=c}return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}if(j.nodeType===1){g||(j[d]=c,j.sizset=h);if(typeof b!="string"){if(j===b){k=!0;break}}else{if(m.filter(b,[j]).length>0){k=j;break}}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h<i;h++){var j=e[h];if(j){var k=!1;j=j[a];while(j){if(j[d]===c){k=e[j.sizset];break}j.nodeType===1&&!g&&(j[d]=c,j.sizset=h);if(j.nodeName.toLowerCase()===b){k=j;break}j=j[a]}e[h]=k}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9){return[]}if(!b||typeof b!="string"){return e}var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b)){if(w.length===2&&o.relative[w[0]]){j=y(w[0]+w[1],d,f)}else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length){b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}}}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length){q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}}else{k=w=[]}}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]"){if(!u){e.push.apply(e,k)}else{if(d&&d.nodeType===1){for(t=0;k[t]!=null;t++){k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t])}}else{for(t=0;k[t]!=null;t++){k[t]&&k[t].nodeType===1&&e.push(j[t])}}}}else{s(k,e)}l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h){for(var b=1;b<a.length;b++){a[b]===a[b-1]&&a.splice(b--,1)}}}return a},m.matches=function(a,b){return m(a,null,null,b)},m.matchesSelector=function(a,b){return m(b,null,null,[a]).length>0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a){return[]}for(e=0,f=o.order.length;e<f;e++){h=o.order[e];if(g=o.leftMatch[h].exec(a)){i=g[1],g.splice(1,1);if(i.substr(i.length-1)!=="\\"){g[1]=(g[1]||"").replace(j,""),d=o.find[h](g,b,c);if(d!=null){a=a.replace(o.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},m.filter=function(a,c,d,e){var f,g,h,i,j,k,l,n,p,q=a,r=[],s=c,t=c&&c[0]&&m.isXML(c[0]);while(a&&c.length){for(h in o.filter){if((f=o.leftMatch[h].exec(a))!=null&&f[2]){k=o.filter[h],l=f[1],g=!1,f.splice(1,1);if(l.substr(l.length-1)==="\\"){continue}s===r&&(r=[]);if(o.preFilter[h]){f=o.preFilter[h](f,s,d,r,e,t);if(!f){g=i=!0}else{if(f===!0){continue}}}if(f){for(n=0;(j=s[n])!=null;n++){j&&(i=k(j,f,n,s),p=e^i,d&&i!=null?p?g=!0:s[n]=!1:p&&(r.push(j),g=!0))}}if(i!==b){d||(s=r),a=a.replace(o.match[h],"");if(!g){return[]}break}}}if(a===q){if(g==null){m.error(a)}else{break}}q=a}return s},m.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)};var n=m.getText=function(a){var b,c,d=a.nodeType,e="";if(d){if(d===1||d===9){if(typeof a.textContent=="string"){return a.textContent}if(typeof a.innerText=="string"){return a.innerText.replace(k,"")}for(a=a.firstChild;a;a=a.nextSibling){e+=n(a)}}else{if(d===3||d===4){return a.nodeValue}}}else{for(b=0;c=a[b];b++){c.nodeType!==8&&(e+=n(c))}}return e},o=m.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|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!l.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++){if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1){}a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}}e&&m.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++){c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b)}d&&m.filter(b,a,!0)}},"":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("parentNode",b,f,a,d,c)},"~":function(a,b,c){var d,f=e++,g=x;typeof b=="string"&&!l.test(b)&&(b=b.toLowerCase(),d=b,g=w),g("previousSibling",b,f,a,d,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++){d[e].getAttribute("name")===a[1]&&c.push(d[e])}return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined"){return b.getElementsByTagName(a[1])}}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(j,"")+" ";if(f){return a}for(var g=0,h;(h=b[g])!=null;g++){h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1))}return !1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else{a[2]&&m.error(a[0])}a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not"){if((a.exec(b[3])||"").length>1||/^\w/.test(b[3])){b[3]=m(b[3],null,null,c)}else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return !1}}else{if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0])){return !0}}return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return !!a.firstChild},empty:function(a){return !a.firstChild},has:function(a,b,c){return !!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f){return f(a,c,b,d)}if(e==="contains"){return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0}if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++){if(g[h]===a){return !1}}return !0}m.error(e)},CHILD:function(a,b){var c,e,f,g,h,i,j,k=b[1],l=a;switch(k){case"only":case"first":while(l=l.previousSibling){if(l.nodeType===1){return !1}}if(k==="first"){return !0}l=a;case"last":while(l=l.nextSibling){if(l.nodeType===1){return !1}}return !0;case"nth":c=b[2],e=b[3];if(c===1&&e===0){return !0}f=b[0],g=a.parentNode;if(g&&(g[d]!==f||!a.nodeIndex)){i=0;for(l=g.firstChild;l;l=l.nextSibling){l.nodeType===1&&(l.nodeIndex=++i)}g[d]=f}j=a.nodeIndex-e;return c===0?j===0:j%c===0&&j/c>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f){return f(a,c,b,d)}}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match){o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q))}var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]"){Array.prototype.push.apply(d,a)}else{if(typeof a.length=="number"){for(var e=a.length;c<e;c++){d.push(a[c])}}else{for(;a[c];c++){d.push(a[c])}}}return d}}var u,v;c.documentElement.compareDocumentPosition?u=function(a,b){if(a===b){h=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition){return a.compareDocumentPosition?-1:1}return a.compareDocumentPosition(b)&4?-1:1}:(u=function(a,b){if(a===b){h=!0;return 0}if(a.sourceIndex&&b.sourceIndex){return a.sourceIndex-b.sourceIndex}var c,d,e=[],f=[],g=a.parentNode,i=b.parentNode,j=g;if(g===i){return v(a,b)}if(!g){return -1}if(!i){return 1}while(j){e.unshift(j),j=j.parentNode}j=i;while(j){f.unshift(j),j=j.parentNode}c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++){if(e[k]!==f[k]){return v(e[k],f[k])}}return k===c?v(a,f[k],-1):v(e[k],b,1)},v=function(a,b,c){if(a===b){return c}var d=a.nextSibling;while(d){if(d===b){return -1}d=d.nextSibling}return 1}),function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++){c[e].nodeType===1&&d.push(c[e])}c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1]){return s(e.getElementsByTagName(b),f)}if(h[2]&&o.find.CLASS&&e.getElementsByClassName){return s(e.getElementsByClassName(h[2]),f)}}if(e.nodeType===9){if(b==="body"&&e.body){return s([e.body],f)}if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode){return s([],f)}if(i.id===h[3]){return s([i],f)}}try{return s(e.querySelectorAll(b),f)}catch(j){}}else{if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p){return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}}catch(r){}finally{l||k.removeAttribute("id")}}}}return a(b,e,f,g)};for(var e in a){m[e]=a[e]}b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a)){try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11){return f}}}catch(g){}}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1){return}o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c){return b.getElementsByClassName(a[1])}},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return !!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return !1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a)){f+=d[0],a=a.replace(o.match.PSEUDO,"")}a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h<i;h++){m(a,g[h],e,c)}return m.filter(f,e)};m.attr=f.attr,m.selectors.attrMap={},f.find=m,f.expr=m.selectors,f.expr[":"]=f.expr.filters,f.unique=m.uniqueSort,f.text=m.getText,f.isXMLDoc=m.isXML,f.contains=m.contains}();var L=/Until$/,M=/^(?:parents|prevUntil|prevAll)/,N=/,/,O=/^.[^:#\[\.,]*$/,P=Array.prototype.slice,Q=f.expr.match.POS,R={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string"){return f(a).filter(function(){for(c=0,d=b.length;c<d;c++){if(f.contains(b[c],this)){return !0}}})}var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0){for(h=g;h<e.length;h++){for(i=0;i<g;i++){if(e[i]===e[h]){e.splice(h--,1);break}}}}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++){if(f.contains(this,b[a])){return !0}}})},not:function(a){return this.pushStack(T(this,a,!1),"not",a)},filter:function(a){return this.pushStack(T(this,a,!0),"filter",a)},is:function(a){return !!a&&(typeof a=="string"?Q.test(a)?f(a,this.context).index(this[0])>=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d<a.length;d++){f(g).is(a[d])&&c.push({selector:a[d],elem:g,level:h})}g=g.parentNode,h++}return c}var i=Q.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(i?i.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11){break}}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a){return this[0]&&this[0].parentNode?this.prevAll().length:-1}if(typeof a=="string"){return f.inArray(this[0],f(a))}return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d))){g.nodeType===1&&e.push(g),g=g[c]}return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c]){if(a.nodeType===1&&++e===b){break}}return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling){a.nodeType===1&&a!==b&&c.push(a)}return c}});var V="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|style)/i,bb=/<(?:script|object|embed|option|style)/i,bc=new RegExp("<(?:"+V+")","i"),bd=/checked\s*(?:[^=]|=\s*.checked.)/i,be=/\/(java|ecma)script/i,bf=/^\s*<!(?:\[CDATA\[|\-\-)/,bg={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunction(a)){return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))})}if(typeof a!="object"&&a!==b){return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a))}return f.text(this)},wrapAll:function(a){if(f.isFunction(a)){return this.each(function(b){f(this).wrapAll(a.call(this,b))})}if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1){a=a.firstChild}return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a)){return this.each(function(b){f(this).wrapInner(a.call(this,b))})}return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)})}if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)})}if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++){if(!a||f.filter(a,[d]).length){!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d)}}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild){b.removeChild(b.firstChild)}}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null}if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++){this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}}catch(e){this.empty().append(a)}}else{f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a)}return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a)){return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))})}typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bd.test(j)){return this.each(function(){f(this).domManip(a,c,d,!0)})}if(f.isFunction(j)){return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)})}if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++){d.call(c?bi(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}}k.length&&f.each(k,bp)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i,j=a[0];b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof j=="string"&&j.length<512&&i===c&&j.charAt(0)==="<"&&!bb.test(j)&&(f.support.checkClone||!bd.test(j))&&(f.support.html5Clone||!bc.test(j))&&(g=!0,h=f.fragments[j],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean(a,i,e,d)),g&&(f.fragments[j]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||!bc.test("<"+a.nodeName)?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g){e[g]&&bk(d[g],e[g])}}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g){bj(d[g],e[g])}}}d=e=null;return h},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k){continue}if(typeof k=="string"){if(!_.test(k)){k=b.createTextNode(k)}else{k=k.replace(Y,"<$1></$2>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");b===c?bh.appendChild(o):U(b).appendChild(o),o.innerHTML=m[1]+k+m[2];while(n--){o=o.lastChild}if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i){f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}}var r;if(!f.support.appendChecked){if(k[0]&&typeof(r=k.length)=="number"){for(i=0;i<r;i++){bn(k[i])}}else{bn(k)}}k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return !a.type||be.test(a.type)};for(j=0;h[j];j++){if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript")){e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j])}else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.event.special,g=f.support.deleteExpando;for(var h=0,i;(i=a[h])!=null;h++){if(i.nodeName&&f.noData[i.nodeName.toLowerCase()]){continue}c=i[f.expando];if(c){b=d[c];if(b&&b.events){for(var j in b.events){e[j]?f.event.remove(i,j):f.removeEvent(i,j,b.handle)}b.handle&&(b.handle.elem=null)}g?delete i[f.expando]:i.removeAttribute&&i.removeAttribute(f.expando),delete d[c]}}}});var bq=/alpha\([^)]*\)/i,br=/opacity=([^)]*)/,bs=/([A-Z]|^ms)/g,bt=/^-?\d+(?:px)?$/i,bu=/^-?\d/,bv=/^([\-+])=([\-+.\de]+)/,bw={position:"absolute",visibility:"hidden",display:"block"},bx=["Left","Right"],by=["Top","Bottom"],bz,bA,bB;f.fn.css=function(a,c){if(arguments.length===2&&c===b){return this}return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bz(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get" in k&&(g=k.get(a,!1,e))!==b){return g}return j[c]}h=typeof d,h==="string"&&(g=bv.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d)){return}h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set" in k)||(d=k.set(a,d))!==b){try{j[c]=d}catch(l){}}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get" in g&&(e=g.get(a,!0,d))!==b){return e}if(bz){return bz(a,c)}},swap:function(a,b,c){var d={};for(var e in b){d[e]=a.style[e],a.style[e]=b[e]}c.call(a);for(e in b){a.style[e]=d[e]}}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0){return bC(a,b,d)}f.swap(a,bw,function(){e=bC(a,b,d)});return e}},set:function(a,b){if(!bt.test(b)){return b}b=parseFloat(b);if(b>=0){return b+"px"}}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return br.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bq,""))===""){c.removeAttribute("filter");if(d&&!d.filter){return}}c.filter=bq.test(g)?g.replace(bq,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,b){var c,d,e;b=b.replace(bs,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b)));return c}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f===null&&g&&(e=g[b])&&(f=e),!bt.test(f)&&bu.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f||0,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return !f.expr.filters.hidden(a)});var bD=/%20/g,bE=/\[\]$/,bF=/\r?\n/g,bG=/#.*$/,bH=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bI=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bJ=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bK=/^(?:GET|HEAD)$/,bL=/^\/\//,bM=/\?/,bN=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bO=/^(?:select|textarea)/i,bP=/\s+/,bQ=/([?&])_=[^&]*/,bR=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bS=f.fn.load,bT={},bU={},bV,bW,bX=["*/"]+["*"];try{bV=e.href}catch(bY){bV=c.createElement("a"),bV.href="",bV=bV.href}bW=bR.exec(bV.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bS){return bS.apply(this,arguments)}if(!this.length){return this}var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bN,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bO.test(this.nodeName)||bI.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bF,"\r\n")}}):{name:b.name,value:c.replace(bF,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b_(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b_(a,b);return a},ajaxSettings:{url:bV,isLocal:bJ.test(bW[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bX},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(bT),ajaxTransport:bZ(bU),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?cb(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified")){f.lastModified[k]=y}if(z=v.getResponseHeader("Etag")){f.etag[k]=z}}if(a===304){w="notmodified",o=!0}else{try{r=cc(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}}else{u=w;if(!w||a){w="error",a<0&&(a=0)}}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bH.exec(n)){o[c[1].toLowerCase()]=c[2]}}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2){for(b in a){j[b]=[j[b],a[b]]}}else{b=a[v.status],v.then(b,b)}}return this},d.url=((a||d.url)+"").replace(bG,"").replace(bL,bW[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bP),d.crossDomain==null&&(r=bR.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bW[1]&&r[2]==bW[2]&&(r[3]||(r[1]==="http:"?80:443))==(bW[3]||(bW[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),b$(bT,d,c,v);if(s===2){return !1}t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bK.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bM.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bQ,"$1_="+x);d.url=y+(y===d.url?(bM.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bX+"; q=0.01":""):d.accepts["*"]);for(u in d.headers){v.setRequestHeader(u,d.headers[u])}if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return !1}for(u in {success:1,error:1,complete:1}){v[u](d[u])}p=b$(bU,d,c,v);if(!p){w(-1,"No Transport")}else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2){w(-1,z)}else{throw z}}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a)){f.each(a,function(){e(this.name,this.value)})}else{for(var g in a){ca(g,a[g],c,e)}}return d.join("&").replace(bD,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cd=f.now(),ce=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cd++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ce.test(b.url)||e&&ce.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ce,l),b.url===j&&(e&&(k=k.replace(ce,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState)){d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")}},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cf=a.ActiveXObject?function(){for(var a in ch){ch[a](0,1)}}:!1,cg=0,ch;f.ajaxSettings.xhr=a.ActiveXObject?function(){return !this.isLocal&&ci()||cj()}:ci,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials" in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields){for(j in c.xhrFields){h[j]=c.xhrFields[j]}}c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e){h.setRequestHeader(j,e[j])}}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cf&&delete ch[i]);if(e){h.readyState!==4&&h.abort()}else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cg,cf&&(ch||(ch={},f(a).unload(cf)),ch[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ck={},cl,cm,cn=/^(?:toggle|show|hide)$/,co=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cp,cq=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cr;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0){return this.animate(cu("show",3),a,b,c)}for(var g=0,h=this.length;g<h;g++){d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",cv(d.nodeName)))}for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none"){d.style.display=f._data(d,"olddisplay")||""}}}return this},hide:function(a,b,c){if(a||a===0){return this.animate(cu("hide",3),a,b,c)}var d,e,g=0,h=this.length;for(;g<h;g++){d=this[g],d.style&&(e=f.css(d,"display"),e!=="none"&&!f._data(d,"olddisplay")&&f._data(d,"olddisplay",e))}for(g=0;g<h;g++){this[g].style&&(this[g].style.display="none")}return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cu("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){function g(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d){return b.complete.call(this)}c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(!f.support.inlineBlockNeedsLayout||cv(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a){j=new f.fx(this,b,i),h=a[i],cn.test(h)?(o=f._data(this,"toggle"+i)||(h==="toggle"?d?"show":"hide":0),o?(f._data(this,"toggle"+i,o==="show"?"hide":"show"),j[o]()):j[h]()):(k=co.exec(h),l=j.cur(),k?(m=parseFloat(k[2]),n=k[3]||(f.cssNumber[i]?"":"px"),n!=="px"&&(f.style(this,i,(m||1)+n),l=(m||1)/j.cur()*l,f.style(this,i,l+n)),k[1]&&(m=(k[1]==="-="?-1:1)*m+l),j.custom(l,m,n)):j.custom(l,h,""))}return !0}var e=f.speed(b,c,d);if(f.isEmptyObject(a)){return this.each(e.complete,[!1])}a=f.extend({},a);return e.queue===!1?this.each(g):this.queue(e.queue,g)},stop:function(a,c,d){typeof a!="string"&&(d=c,c=a,a=b),c&&a!==!1&&this.queue(a||"fx",[]);return this.each(function(){function h(a,b,c){var e=b[c];f.removeData(a,c,!0),e.stop(d)}var b,c=!1,e=f.timers,g=f._data(this);d||f._unmark(!0,this);if(a==null){for(b in g){g[b]&&g[b].stop&&b.indexOf(".run")===b.length-4&&h(this,g,b)}}else{g[b=a+".run"]&&g[b].stop&&h(this,g,b)}for(b=e.length;b--;){e[b].elem===this&&(a==null||e[b].queue===a)&&(d?e[b](!0):e[b].saveState(),c=!0,e.splice(b,1))}(!d||!c)&&f.dequeue(this,a)})}}),f.each({slideDown:cu("show",1),slideUp:cu("hide",1),slideToggle:cu("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default;if(d.queue==null||d.queue===!0){d.queue="fx"}d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue?f.dequeue(this,d.queue):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+0.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,c,d){function h(a){return e.step(a)}var e=this,g=f.fx;this.startTime=cr||cs(),this.end=c,this.now=this.start=a,this.pos=this.state=0,this.unit=d||this.unit||(f.cssNumber[this.prop]?"":"px"),h.queue=this.options.queue,h.elem=this.elem,h.saveState=function(){e.options.hide&&f._data(e.elem,"fxshow"+e.prop)===b&&f._data(e.elem,"fxshow"+e.prop,e.start)},h()&&f.timers.push(h)&&!cp&&(cp=setInterval(g.tick,g.interval))},show:function(){var a=f._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=a||f.style(this.elem,this.prop),this.options.show=!0,a!==b?this.custom(this.cur(),a):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f._data(this.elem,"fxshow"+this.prop)||f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b,c,d,e=cr||cs(),g=!0,h=this.elem,i=this.options;if(a||e>=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties){i.animatedProperties[b]!==!0&&(g=!1)}if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show){for(b in i.animatedProperties){f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0)}}d=i.complete,d&&(i.complete=!1,d.call(h))}return !1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return !0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c<b.length;c++){a=b[c],!a()&&b[c]===a&&b.splice(c--,1)}b.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cp),cp=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=a.now+a.unit:a.elem[a.prop]=a.now}}}),f.each(["width","height"],function(a,b){f.fx.step[b]=function(a){f.style(a.elem,b,Math.max(0,a.now)+a.unit)}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cw=/^t(?:able|d|h)$/i,cx=/^(?:body|html)$/i;"getBoundingClientRect" in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a){return this.each(function(b){f.offset.setOffset(this,a,b)})}if(!b||!b.ownerDocument){return null}if(b===b.ownerDocument.body){return f.offset.bodyOffset(b)}try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b)){return c?{top:c.top,left:c.left}:{top:0,left:0}}var h=e.body,i=cy(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a){return this.each(function(b){f.offset.setOffset(this,a,b)})}if(!b||!b.ownerDocument){return null}if(b===b.ownerDocument.body){return f.offset.bodyOffset(b)}var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.support.fixedPosition&&k.position==="fixed"){break}c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.support.doesNotAddBorder&&(!f.support.doesAddBorderForTableAndCells||!cw.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.support.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static"){l+=i.offsetTop,m+=i.offsetLeft}f.support.fixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},f.offset={bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.support.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using" in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0]){return null}var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static"){a=a.offsetParent}return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e){return null}g=cy(e);return g?"pageXOffset" in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cy(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,d,"padding")):this[d]():null},f.fn["outer"+c]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,d,a?"margin":"border")):this[d]():null},f.fn[d]=function(a){var e=this[0];if(!e){return a==null?null:this}if(f.isFunction(a)){return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))})}if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9){return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c])}if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNumeric(j)?j:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window);/*
 * jQuery Cookie Plugin v1.3.1
 * https://github.com/carhartl/jquery-cookie
 *
 * Copyright 2013 Klaus Hartl
 * Released under the MIT license
 */
(function(a){if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a)}else{a(jQuery)}}(function(d){var b=/\+/g;function c(g){return g}function f(g){return decodeURIComponent(g.replace(b," "))}function e(g){if(g.indexOf('"')===0){g=g.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\")}return a.json?JSON.parse(g):g}var a=d.cookie=function(v,q,k){if(q!==undefined){k=d.extend({},a.defaults,k);if(typeof k.expires==="number"){var h=k.expires,o=k.expires=new Date();o.setDate(o.getDate()+h)}q=a.json?JSON.stringify(q):String(q);return(document.cookie=[encodeURIComponent(v),"=",a.raw?q:encodeURIComponent(q),k.expires?"; expires="+k.expires.toUTCString():"",k.path?"; path="+k.path:"",k.domain?"; domain="+k.domain:"",k.secure?"; secure":""].join(""))}var p=a.raw?c:f;var g=document.cookie.split("; ");var u=v?undefined:{};for(var r=0,s=g.length;r<s;r++){var n=g[r].split("=");var j=p(n.shift());var m=p(n.join("="));if(v&&v===j){u=e(m);break}if(!v){u[j]=e(m)}}return u};a.defaults={};d.removeCookie=function(g,h){if(d.cookie(g)!==undefined){d.cookie(g,"",d.extend(h,{expires:-1}));return true}return false}}));(function(g){var c=g.browser.msie&&parseInt(g.browser.version)===6&&typeof window.XMLHttpRequest!=="object",b=g.browser.msie&&parseInt(g.browser.version)===7,e=null,a=[];g.modal=function(d,f){return g.modal.impl.init(d,f)};g.modal.close=function(){g.modal.impl.close()};g.modal.focus=function(d){g.modal.impl.focus(d)};g.modal.setContainerDimensions=function(){g.modal.impl.setContainerDimensions()};g.modal.setPosition=function(){g.modal.impl.setPosition()};g.modal.update=function(d,f){g.modal.impl.update(d,f)};g.fn.modal=function(d){return g.modal.impl.init(this,d)};g.modal.defaults={appendTo:"body",focus:true,opacity:50,overlayId:"simplemodal-overlay",overlayCss:{},containerId:"simplemodal-container",containerCss:{},dataId:"simplemodal-data",dataCss:{},minHeight:null,minWidth:null,maxHeight:null,maxWidth:null,autoResize:false,autoPosition:true,zIndex:1000,close:true,closeHTML:'<a class="modalCloseImg" title="Close"></a>',closeClass:"simplemodal-close",escClose:true,overlayClose:false,position:null,persist:false,modal:true,onOpen:null,onShow:null,onClose:null};g.modal.impl={d:{},init:function(d,f){var h=this;if(h.d.data){return false}e=g.browser.msie&&!g.boxModel;h.o=g.extend({},g.modal.defaults,f);h.zIndex=h.o.zIndex;h.occb=false;if(typeof d==="object"){d=d instanceof jQuery?d:g(d);h.d.placeholder=false;if(d.parent().parent().size()>0){d.before(g("<span></span>").attr("id","simplemodal-placeholder").css({display:"none"}));h.d.placeholder=true;h.display=d.css("display");if(!h.o.persist){h.d.orig=d.clone(true)}}}else{if(typeof d==="string"||typeof d==="number"){d=g("<div></div>").html(d)}else{alert("SimpleModal Error: Unsupported data type: "+typeof d);return h}}h.create(d);h.open();g.isFunction(h.o.onShow)&&h.o.onShow.apply(h,[h.d]);return h},create:function(d){var f=this;a=f.getDimensions();if(f.o.modal&&c){f.d.iframe=g('<iframe src="javascript:false;"></iframe>').css(g.extend(f.o.iframeCss,{display:"none",opacity:0,position:"fixed",height:a[0],width:a[1],zIndex:f.o.zIndex,top:0,left:0})).appendTo(f.o.appendTo)}f.d.overlay=g("<div></div>").attr("id",f.o.overlayId).addClass("simplemodal-overlay").css(g.extend(f.o.overlayCss,{display:"none",opacity:f.o.opacity/100,height:f.o.modal?a[0]:0,width:f.o.modal?a[1]:0,position:"fixed",left:0,top:0,zIndex:f.o.zIndex+1})).appendTo(f.o.appendTo);f.d.container=g("<div></div>").attr("id",f.o.containerId).addClass("simplemodal-container").css(g.extend(f.o.containerCss,{display:"none",position:"fixed",zIndex:f.o.zIndex+2})).append(f.o.close&&f.o.closeHTML?g(f.o.closeHTML).addClass(f.o.closeClass):"").appendTo(f.o.appendTo);f.d.wrap=g("<div></div>").attr("tabIndex",-1).addClass("simplemodal-wrap").css({height:"100%",outline:0,width:"100%"}).appendTo(f.d.container);f.d.data=d.attr("id",d.attr("id")||f.o.dataId).addClass("simplemodal-data").css(g.extend(f.o.dataCss,{display:"none"})).appendTo("body");f.setContainerDimensions();f.d.data.appendTo(f.d.wrap);if(c||e){f.fixIE()}},bindEvents:function(){var d=this;g("."+d.o.closeClass).bind("click.simplemodal",function(f){f.preventDefault();d.close()});d.o.modal&&d.o.close&&d.o.overlayClose&&d.d.overlay.bind("click.simplemodal",function(f){f.preventDefault();d.close()});g(document).bind("keydown.simplemodal",function(f){if(d.o.modal&&f.keyCode===9){d.watchTab(f)}else{if(d.o.close&&d.o.escClose&&f.keyCode===27){f.preventDefault();d.close()}}});g(window).bind("resize.simplemodal",function(){a=d.getDimensions();d.o.autoResize?d.setContainerDimensions():d.o.autoPosition&&d.setPosition();if(c||e){d.fixIE()}else{if(d.o.modal){d.d.iframe&&d.d.iframe.css({height:a[0],width:a[1]});d.d.overlay.css({height:a[0],width:a[1]})}}})},unbindEvents:function(){g("."+this.o.closeClass).unbind("click.simplemodal");g(document).unbind("keydown.simplemodal");g(window).unbind("resize.simplemodal");this.d.overlay.unbind("click.simplemodal")},fixIE:function(){var d=this,f=d.o.position;g.each([d.d.iframe||null,!d.o.modal?null:d.d.overlay,d.d.container],function(k,i){if(i){var j=i[0].style;j.position="absolute";if(k<2){j.removeExpression("height");j.removeExpression("width");j.setExpression("height",'document.body.scrollHeight > document.body.clientHeight ? document.body.scrollHeight : document.body.clientHeight + "px"');j.setExpression("width",'document.body.scrollWidth > document.body.clientWidth ? document.body.scrollWidth : document.body.clientWidth + "px"')}else{var l;if(f&&f.constructor===Array){k=f[0]?typeof f[0]==="number"?f[0].toString():f[0].replace(/px/,""):i.css("top").replace(/px/,"");k=k.indexOf("%")===-1?k+' + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"':parseInt(k.replace(/%/,""))+' * ((document.documentElement.clientHeight || document.body.clientHeight) / 100) + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"';if(f[1]){l=typeof f[1]==="number"?f[1].toString():f[1].replace(/px/,"");l=l.indexOf("%")===-1?l+' + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"':parseInt(l.replace(/%/,""))+' * ((document.documentElement.clientWidth || document.body.clientWidth) / 100) + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"'}}else{k='(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (t = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"';l='(document.documentElement.clientWidth || document.body.clientWidth) / 2 - (this.offsetWidth / 2) + (t = document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft) + "px"'}j.removeExpression("top");j.removeExpression("left");j.setExpression("top",k);j.setExpression("left",l)}}})},focus:function(d){var f=this;d=d&&g.inArray(d,["first","last"])!==-1?d:"first";var h=g(":input:enabled:visible:"+d,f.d.wrap);setTimeout(function(){h.length>0?h.focus():f.d.wrap.focus()},10)},getDimensions:function(){var d=g(window);return[g.browser.opera&&g.browser.version>"9.5"&&g.fn.jquery<"1.3"||g.browser.opera&&g.browser.version<"9.5"&&g.fn.jquery>"1.2.6"?d[0].innerHeight:d.height(),d.width()]},getVal:function(d,f){return d?typeof d==="number"?d:d==="auto"?0:d.indexOf("%")>0?parseInt(d.replace(/%/,""))/100*(f==="h"?a[0]:a[1]):parseInt(d.replace(/px/,"")):null},update:function(d,f){var h=this;if(!h.d.data){return false}h.d.origHeight=h.getVal(d,"h");h.d.origWidth=h.getVal(f,"w");h.d.data.hide();d&&h.d.container.css("height",d);f&&h.d.container.css("width",f);h.setContainerDimensions();h.d.data.show();h.o.focus&&h.focus();h.unbindEvents();h.bindEvents()},setContainerDimensions:function(){var l=this,m=c||b,n=l.d.origHeight?l.d.origHeight:g.browser.opera?l.d.container.height():l.getVal(m?l.d.container[0].currentStyle.height:l.d.container.css("height"),"h");m=l.d.origWidth?l.d.origWidth:g.browser.opera?l.d.container.width():l.getVal(m?l.d.container[0].currentStyle.width:l.d.container.css("width"),"w");var d=l.d.data.outerHeight(true),p=l.d.data.outerWidth(true);l.d.origHeight=l.d.origHeight||n;l.d.origWidth=l.d.origWidth||m;var o=l.o.maxHeight?l.getVal(l.o.maxHeight,"h"):null,f=l.o.maxWidth?l.getVal(l.o.maxWidth,"w"):null;o=o&&o<a[0]?o:a[0];f=f&&f<a[1]?f:a[1];var k=l.o.minHeight?l.getVal(l.o.minHeight,"h"):"auto";n=n?l.o.autoResize&&n>o?o:n<k?k:n:d?d>o?o:l.o.minHeight&&k!=="auto"&&d<k?k:d:k;o=l.o.minWidth?l.getVal(l.o.minWidth,"w"):"auto";m=m?l.o.autoResize&&m>f?f:m<o?o:m:p?p>f?f:l.o.minWidth&&o!=="auto"&&p<o?o:p:o;l.d.container.css({height:n,width:m});l.d.wrap.css({overflow:d>n||p>m?"auto":"visible"});l.o.autoPosition&&l.setPosition()},setPosition:function(){var d=this,f,h;f=a[0]/2-d.d.container.outerHeight(true)/2;h=a[1]/2-d.d.container.outerWidth(true)/2;if(d.o.position&&Object.prototype.toString.call(d.o.position)==="[object Array]"){f=d.o.position[0]||f;h=d.o.position[1]||h}else{f=f;h=h}d.d.container.css({left:h,top:f})},watchTab:function(d){var f=this;if(g(d.target).parents(".simplemodal-container").length>0){f.inputs=g(":input:enabled:visible:first, :input:enabled:visible:last",f.d.data[0]);if(!d.shiftKey&&d.target===f.inputs[f.inputs.length-1]||d.shiftKey&&d.target===f.inputs[0]||f.inputs.length===0){d.preventDefault();f.focus(d.shiftKey?"last":"first")}}else{d.preventDefault();f.focus()}},open:function(){var d=this;d.d.iframe&&d.d.iframe.show();if(g.isFunction(d.o.onOpen)){d.o.onOpen.apply(d,[d.d])}else{d.d.overlay.show();d.d.container.show();d.d.data.show()}d.o.focus&&d.focus();d.bindEvents()},close:function(){var d=this;if(!d.d.data){return false}d.unbindEvents();if(g.isFunction(d.o.onClose)&&!d.occb){d.occb=true;d.o.onClose.apply(d,[d.d])}else{if(d.d.placeholder){var f=g("#simplemodal-placeholder");if(d.o.persist){f.replaceWith(d.d.data.removeClass("simplemodal-data").css("display",d.display))}else{d.d.data.hide().remove();f.replaceWith(d.d.orig)}}else{d.d.data.hide().remove()}d.d.container.hide().remove();d.d.overlay.hide();d.d.iframe&&d.d.iframe.hide().remove();setTimeout(function(){d.d.overlay.remove();d.d={}},10)}}}})(jQuery);window.JSON||(window.JSON={}),function(){function f(a){return a<10?"0"+a:a}function quote(a){return escapable.lastIndex=0,escapable.test(a)?'"'+a.replace(escapable,function(a){var b=meta[a];return typeof b=="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function str(a,b){var c,d,e,f,g=gap,h,i=b[a];i&&typeof i=="object"&&typeof i.toJSON=="function"&&(i=i.toJSON(a)),typeof rep=="function"&&(i=rep.call(b,a,i));switch(typeof i){case"string":return quote(i);case"number":return isFinite(i)?String(i):"null";case"boolean":case"null":return String(i);case"object":if(!i){return"null"}gap+=indent,h=[];if(Object.prototype.toString.apply(i)==="[object Array]"){f=i.length;for(c=0;c<f;c+=1){h[c]=str(c,i)||"null"}return e=h.length===0?"[]":gap?"[\n"+gap+h.join(",\n"+gap)+"\n"+g+"]":"["+h.join(",")+"]",gap=g,e}if(rep&&typeof rep=="object"){f=rep.length;for(c=0;c<f;c+=1){d=rep[c],typeof d=="string"&&(e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e))}}else{for(d in i){Object.hasOwnProperty.call(i,d)&&(e=str(d,i),e&&h.push(quote(d)+(gap?": ":":")+e))}}return e=h.length===0?"{}":gap?"{\n"+gap+h.join(",\n"+gap)+"\n"+g+"}":"{"+h.join(",")+"}",gap=g,e}}"use strict",typeof Date.prototype.toJSON!="function"&&(Date.prototype.toJSON=function(a){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(a){return this.valueOf()});var JSON=window.JSON,cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;typeof JSON.stringify!="function"&&(JSON.stringify=function(a,b,c){var d;gap="",indent="";if(typeof c=="number"){for(d=0;d<c;d+=1){indent+=" "}}else{typeof c=="string"&&(indent=c)}rep=b;if(!b||typeof b=="function"||typeof b=="object"&&typeof b.length=="number"){return str("",{"":a})}throw new Error("JSON.stringify")}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){function walk(a,b){var c,d,e=a[b];if(e&&typeof e=="object"){for(c in e){Object.hasOwnProperty.call(e,c)&&(d=walk(e,c),d!==undefined?e[c]=d:delete e[c])}}return reviver.call(a,b,e)}var j;text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)}));if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){return j=eval("("+text+")"),typeof reviver=="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")})}(),function(e,f){var g=e.History=e.History||{},h=e.jQuery;if(typeof g.Adapter!="undefined"){throw new Error("History.js Adapter has already been loaded...")}g.Adapter={bind:function(d,i,j){h(d).bind(i,j)},trigger:function(d,i,j){h(d).trigger(i,j)},extractEventData:function(b,i,j){var k=i&&i.originalEvent&&i.originalEvent[b]||j&&j[b]||f;return k},onDomLoad:function(b){h(b)}},typeof g.init!="undefined"&&g.init()}(window),function(h,i){var j=h.document,k=h.setTimeout||k,l=h.clearTimeout||l,m=h.setInterval||m,n=h.History=h.History||{};if(typeof n.initHtml4!="undefined"){throw new Error("History.js HTML4 Support has already been loaded...")}n.initHtml4=function(){if(typeof n.initHtml4.initialized!="undefined"){return !1}n.initHtml4.initialized=!0,n.enabled=!0,n.savedHashes=[],n.isLastHash=function(d){var e=n.getHashByIndex(),f;return f=d===e,f},n.saveHash=function(b){return n.isLastHash(b)?!1:(n.savedHashes.push(b),!0)},n.getHashByIndex=function(c){var d=null;return typeof c=="undefined"?d=n.savedHashes[n.savedHashes.length-1]:c<0?d=n.savedHashes[n.savedHashes.length+c]:d=n.savedHashes[c],d},n.discardedHashes={},n.discardedStates={},n.discardState=function(f,g,o){var p=n.getHashByState(f),q;return q={discardedState:f,backState:o,forwardState:g},n.discardedStates[p]=q,!0},n.discardHash=function(e,f,g){var o={discardedHash:e,backState:g,forwardState:f};return n.discardedHashes[e]=o,!0},n.discardedState=function(d){var e=n.getHashByState(d),f;return f=n.discardedStates[e]||!1,f},n.discardedHash=function(c){var d=n.discardedHashes[c]||!1;return d},n.recycleState=function(c){var d=n.getHashByState(c);return n.discardedState(c)&&delete n.discardedStates[d],!0},n.emulated.hashChange&&(n.hashChangeInit=function(){n.checkerFunction=null;var f="",g,o,a,c;return n.isInternetExplorer()?(g="historyjs-iframe",o=j.createElement("iframe"),o.setAttribute("id",g),o.style.display="none",j.body.appendChild(o),o.contentWindow.document.open(),o.contentWindow.document.close(),a="",c=!1,n.checkerFunction=function(){if(c){return !1}c=!0;var e=n.getHash()||"",b=n.unescapeHash(o.contentWindow.document.location.hash)||"";return e!==f?(f=e,b!==e&&(a=b=e,o.contentWindow.document.open(),o.contentWindow.document.close(),o.contentWindow.document.location.hash=n.escapeHash(e)),n.Adapter.trigger(h,"hashchange")):b!==a&&(a=b,n.setHash(b,!1)),c=!1,!0}):n.checkerFunction=function(){var b=n.getHash();return b!==f&&(f=b,n.Adapter.trigger(h,"hashchange")),!0},n.intervalList.push(m(n.checkerFunction,n.options.hashChangeInterval)),!0},n.Adapter.onDomLoad(n.hashChangeInit)),n.emulated.pushState&&(n.onHashChange=function(o){var p=o&&o.newURL||j.location.href,q=n.getHashByUrl(p),r=null,a=null,c=null,g;return n.isLastHash(q)?(n.busy(!1),!1):(n.doubleCheckComplete(),n.saveHash(q),q&&n.isTraditionalAnchor(q)?(n.Adapter.trigger(h,"anchorchange"),n.busy(!1),!1):(r=n.extractState(n.getFullUrl(q||j.location.href,!1),!0),n.isLastSavedState(r)?(n.busy(!1),!1):(a=n.getHashByState(r),g=n.discardedState(r),g?(n.getHashByIndex(-2)===n.getHashByState(g.forwardState)?n.back(!1):n.forward(!1),!1):(n.pushState(r.data,r.title,r.url,!1),!0))))},n.Adapter.bind(h,"hashchange",n.onHashChange),n.pushState=function(q,r,s,t){if(n.getHashByUrl(s)){throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).")}if(t!==!1&&n.busy()){return n.pushQueue({scope:n,callback:n.pushState,args:arguments,queue:t}),!1}n.busy(!0);var a=n.createStateObject(q,r,s),c=n.getHashByState(a),g=n.getState(!1),o=n.getHashByState(g),p=n.getHash();return n.storeState(a),n.expectedStateId=a.id,n.recycleState(a),n.setTitle(a),c===o?(n.busy(!1),!1):c!==p&&c!==n.getShortUrl(j.location.href)?(n.setHash(c,!1),!1):(n.saveState(a),n.Adapter.trigger(h,"statechange"),n.busy(!1),!0)},n.replaceState=function(o,p,q,r){if(n.getHashByUrl(q)){throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).")}if(r!==!1&&n.busy()){return n.pushQueue({scope:n,callback:n.replaceState,args:arguments,queue:r}),!1}n.busy(!0);var s=n.createStateObject(o,p,q),t=n.getState(!1),g=n.getStateByIndex(-2);return n.discardState(t,s,g),n.pushState(s.data,s.title,s.url,!1),!0}),n.emulated.pushState&&n.getHash()&&!n.emulated.hashChange&&n.Adapter.onDomLoad(function(){n.Adapter.trigger(h,"hashchange")})},typeof n.init!="undefined"&&n.init()}(window),function(v,w){var x=v.console||w,y=v.document,z=v.navigator,A=v.sessionStorage||!1,B=v.setTimeout,o=v.clearTimeout,p=v.setInterval,q=v.clearInterval,r=v.JSON,s=v.alert,t=v.History=v.History||{},u=v.history;r.stringify=r.stringify||r.encode,r.parse=r.parse||r.decode;if(typeof t.init!="undefined"){throw new Error("History.js Core has already been loaded...")}t.init=function(){return typeof t.Adapter=="undefined"?!1:(typeof t.initCore!="undefined"&&t.initCore(),typeof t.initHtml4!="undefined"&&t.initHtml4(),!0)},t.initCore=function(){if(typeof t.initCore.initialized!="undefined"){return !1}t.initCore.initialized=!0,t.options=t.options||{},t.options.hashChangeInterval=t.options.hashChangeInterval||100,t.options.safariPollInterval=t.options.safariPollInterval||500,t.options.doubleCheckInterval=t.options.doubleCheckInterval||500,t.options.storeInterval=t.options.storeInterval||1000,t.options.busyDelay=t.options.busyDelay||250,t.options.debug=t.options.debug||!1,t.options.initialTitle=t.options.initialTitle||y.title,t.intervalList=[],t.clearAllIntervals=function(){var c,d=t.intervalList;if(typeof d!="undefined"&&d!==null){for(c=0;c<d.length;c++){q(d[c])}t.intervalList=null}},t.debug=function(){(t.options.debug||!1)&&t.log.apply(t,arguments)},t.log=function(){var l=typeof x!="undefined"&&typeof x.log!="undefined"&&typeof x.log.apply!="undefined",m=y.getElementById("log"),n,C,D,c,d;l?(c=Array.prototype.slice.call(arguments),n=c.shift(),typeof x.debug!="undefined"?x.debug.apply(x,[n,c]):x.log.apply(x,[n,c])):n="\n"+arguments[0]+"\n";for(C=1,D=arguments.length;C<D;++C){d=arguments[C];if(typeof d=="object"&&typeof r!="undefined"){try{d=r.stringify(d)}catch(k){}}n+="\n"+d+"\n"}return m?(m.value+=n+"\n-----\n",m.scrollTop=m.scrollHeight-m.clientHeight):l||s(n),!0},t.getInternetExplorerMajorVersion=function(){var c=t.getInternetExplorerMajorVersion.cached=typeof t.getInternetExplorerMajorVersion.cached!="undefined"?t.getInternetExplorerMajorVersion.cached:function(){var d=3,e=y.createElement("div"),f=e.getElementsByTagName("i");while((e.innerHTML="<!--[if gt IE "+ ++d+"]><i></i><![endif]-->")&&f[0]){}return d>4?d:!1}();return c},t.isInternetExplorer=function(){var c=t.isInternetExplorer.cached=typeof t.isInternetExplorer.cached!="undefined"?t.isInternetExplorer.cached:Boolean(t.getInternetExplorerMajorVersion());return c},t.emulated={pushState:!Boolean(v.history&&v.history.pushState&&v.history.replaceState&&!/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(z.userAgent)&&!/AppleWebKit\/5([0-2]|3[0-2])/i.test(z.userAgent)),hashChange:Boolean(!("onhashchange" in v||"onhashchange" in y)||t.isInternetExplorer()&&t.getInternetExplorerMajorVersion()<8)},t.enabled=!t.emulated.pushState,t.bugs={setHash:Boolean(!t.emulated.pushState&&z.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(z.userAgent)),safariPoll:Boolean(!t.emulated.pushState&&z.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(z.userAgent)),ieDoubleCheck:Boolean(t.isInternetExplorer()&&t.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(t.isInternetExplorer()&&t.getInternetExplorerMajorVersion()<7)},t.isEmptyObject=function(c){for(var d in c){return !1}return !0},t.cloneObject=function(d){var e,f;return d?(e=r.stringify(d),f=r.parse(e)):f={},f},t.getRootUrl=function(){var c=y.location.protocol+"//"+(y.location.hostname||y.location.host);if(y.location.port||!1){c+=":"+y.location.port}return c+="/",c},t.getBaseHref=function(){var d=y.getElementsByTagName("base"),e=null,f="";return d.length===1&&(e=d[0],f=e.href.replace(/[^\/]+$/,"")),f=f.replace(/\/+$/,""),f&&(f+="/"),f},t.getBaseUrl=function(){var c=t.getBaseHref()||t.getBasePageUrl()||t.getRootUrl();return c},t.getPageUrl=function(){var d=t.getState(!1,!1),e=(d||{}).url||y.location.href,f;return f=e.replace(/\/+$/,"").replace(/[^\/]+$/,function(g,h,i){return/\./.test(g)?g:g+"/"}),f},t.getBasePageUrl=function(){var c=y.location.href.replace(/[#\?].*/,"").replace(/[^\/]+$/,function(d,e,f){return/[^\/]$/.test(d)?"":d}).replace(/\/+$/,"")+"/";return c},t.getFullUrl=function(e,f){var g=e,h=e.substring(0,1);return f=typeof f=="undefined"?!0:f,/[a-z]+\:\/\//.test(e)||(h==="/"?g=t.getRootUrl()+e.replace(/^\/+/,""):h==="#"?g=t.getPageUrl().replace(/#.*/,"")+e:h==="?"?g=t.getPageUrl().replace(/[\?#].*/,"")+e:f?g=t.getBaseUrl()+e.replace(/^(\.\/)+/,""):g=t.getBasePageUrl()+e.replace(/^(\.\/)+/,"")),g.replace(/\#$/,"")},t.getShortUrl=function(e){var f=e,g=t.getBaseUrl(),h=t.getRootUrl();return t.emulated.pushState&&(f=f.replace(g,"")),f=f.replace(h,"/"),t.isTraditionalAnchor(f)&&(f="./"+f),f=f.replace(/^(\.\/)+/g,"./").replace(/\#$/,""),f},t.store={},t.idToState=t.idToState||{},t.stateToId=t.stateToId||{},t.urlToId=t.urlToId||{},t.storedStates=t.storedStates||[],t.savedStates=t.savedStates||[],t.normalizeStore=function(){t.store.idToState=t.store.idToState||{},t.store.urlToId=t.store.urlToId||{},t.store.stateToId=t.store.stateToId||{}},t.getState=function(d,e){typeof d=="undefined"&&(d=!0),typeof e=="undefined"&&(e=!0);var f=t.getLastSavedState();return !f&&e&&(f=t.createStateObject()),d&&(f=t.cloneObject(f),f.url=f.cleanUrl||f.url),f},t.getIdByState=function(d){var e=t.extractId(d.url),f;if(!e){f=t.getStateString(d);if(typeof t.stateToId[f]!="undefined"){e=t.stateToId[f]}else{if(typeof t.store.stateToId[f]!="undefined"){e=t.store.stateToId[f]}else{for(;;){e=(new Date).getTime()+String(Math.random()).replace(/\D/g,"");if(typeof t.idToState[e]=="undefined"&&typeof t.store.idToState[e]=="undefined"){break}}t.stateToId[f]=e,t.idToState[e]=d}}}return e},t.normalizeState=function(d){var e,f;if(!d||typeof d!="object"){d={}}if(typeof d.normalized!="undefined"){return d}if(!d.data||typeof d.data!="object"){d.data={}}e={},e.normalized=!0,e.title=d.title||"",e.url=t.getFullUrl(t.unescapeString(d.url||y.location.href)),e.hash=t.getShortUrl(e.url),e.data=t.cloneObject(d.data),e.id=t.getIdByState(e),e.cleanUrl=e.url.replace(/\??\&_suid.*/,""),e.url=e.cleanUrl,f=!t.isEmptyObject(e.data);if(e.title||f){e.hash=t.getShortUrl(e.url).replace(/\??\&_suid.*/,""),/\?/.test(e.hash)||(e.hash+="?"),e.hash+="&_suid="+e.id}return e.hashedUrl=t.getFullUrl(e.hash),(t.emulated.pushState||t.bugs.safariPoll)&&t.hasUrlDuplicate(e)&&(e.url=e.hashedUrl),e},t.createStateObject=function(e,f,g){var h={data:e,title:f,url:g};return h=t.normalizeState(h),h},t.getStateById=function(d){d=String(d);var e=t.idToState[d]||t.store.idToState[d]||w;return e},t.getStateString=function(e){var f,g,h;return f=t.normalizeState(e),g={data:f.data,title:e.title,url:e.url},h=r.stringify(g),h},t.getStateId=function(d){var e,f;return e=t.normalizeState(d),f=e.id,f},t.getHashByState=function(d){var e,f;return e=t.normalizeState(d),f=e.hash,f},t.extractId=function(e){var f,g,h;return g=/(.*)\&_suid=([0-9]+)$/.exec(e),h=g?g[1]||e:e,f=g?String(g[2]||""):"",f||!1},t.isTraditionalAnchor=function(c){var d=!/[\/\?\.]/.test(c);return d},t.extractState=function(f,g){var h=null,i,j;return g=g||!1,i=t.extractId(f),i&&(h=t.getStateById(i)),h||(j=t.getFullUrl(f),i=t.getIdByUrl(j)||!1,i&&(h=t.getStateById(i)),!h&&g&&!t.isTraditionalAnchor(f)&&(h=t.createStateObject(null,null,j))),h},t.getIdByUrl=function(d){var e=t.urlToId[d]||t.store.urlToId[d]||w;return e},t.getLastSavedState=function(){return t.savedStates[t.savedStates.length-1]||w},t.getLastStoredState=function(){return t.storedStates[t.storedStates.length-1]||w},t.hasUrlDuplicate=function(d){var e=!1,f;return f=t.extractState(d.url),e=f&&f.id!==d.id,e},t.storeState=function(c){return t.urlToId[c.url]=c.id,t.storedStates.push(t.cloneObject(c)),c},t.isLastSavedState=function(f){var g=!1,h,i,j;return t.savedStates.length&&(h=f.id,i=t.getLastSavedState(),j=i.id,g=h===j),g},t.saveState=function(c){return t.isLastSavedState(c)?!1:(t.savedStates.push(t.cloneObject(c)),!0)},t.getStateByIndex=function(c){var d=null;return typeof c=="undefined"?d=t.savedStates[t.savedStates.length-1]:c<0?d=t.savedStates[t.savedStates.length+c]:d=t.savedStates[c],d},t.getHash=function(){var c=t.unescapeHash(y.location.hash);return c},t.unescapeString=function(e){var f=e,g;for(;;){g=v.unescape(f);if(g===f){break}f=g}return f},t.unescapeHash=function(c){var d=t.normalizeHash(c);return d=t.unescapeString(d),d},t.normalizeHash=function(c){var d=c.replace(/[^#]*#/,"").replace(/#.*/,"");return d},t.setHash=function(g,h){var i,j,d;return h!==!1&&t.busy()?(t.pushQueue({scope:t,callback:t.setHash,args:arguments,queue:h}),!1):(i=t.escapeHash(g),t.busy(!0),j=t.extractState(g,!0),j&&!t.emulated.pushState?t.pushState(j.data,j.title,j.url,!1):y.location.hash!==i&&(t.bugs.setHash?(d=t.getPageUrl(),t.pushState(null,null,d+"#"+i,!1)):y.location.hash=i),t)},t.escapeHash=function(d){var e=t.normalizeHash(d);return e=v.escape(e),t.bugs.hashEscape||(e=e.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?")),e},t.getHashByUrl=function(c){var d=String(c).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");return d=t.unescapeHash(d),d},t.setTitle=function(d){var f=d.title,g;f||(g=t.getStateByIndex(0),g&&g.url===d.url&&(f=g.title||t.options.initialTitle));try{y.getElementsByTagName("title")[0].innerHTML=f.replace("<","&lt;").replace(">","&gt;").replace(" & "," &amp; ")}catch(h){}return y.title=f,t},t.queues=[],t.busy=function(c){typeof c!="undefined"?t.busy.flag=c:typeof t.busy.flag=="undefined"&&(t.busy.flag=!1);if(!t.busy.flag){o(t.busy.timeout);var d=function(){var e,f,g;if(t.busy.flag){return}for(e=t.queues.length-1;e>=0;--e){f=t.queues[e];if(f.length===0){continue}g=f.shift(),t.fireQueueItem(g),t.busy.timeout=B(d,t.options.busyDelay)}};t.busy.timeout=B(d,t.options.busyDelay)}return t.busy.flag},t.busy.flag=!1,t.fireQueueItem=function(c){return c.callback.apply(c.scope||t,c.args||[])},t.pushQueue=function(c){return t.queues[c.queue||0]=t.queues[c.queue||0]||[],t.queues[c.queue||0].push(c),t},t.queue=function(c,d){return typeof c=="function"&&(c={callback:c}),typeof d!="undefined"&&(c.queue=d),t.busy()?t.pushQueue(c):t.fireQueueItem(c),t},t.clearQueue=function(){return t.busy.flag=!1,t.queues=[],t},t.stateChanged=!1,t.doubleChecker=!1,t.doubleCheckComplete=function(){return t.stateChanged=!0,t.doubleCheckClear(),t},t.doubleCheckClear=function(){return t.doubleChecker&&(o(t.doubleChecker),t.doubleChecker=!1),t},t.doubleCheck=function(c){return t.stateChanged=!1,t.doubleCheckClear(),t.bugs.ieDoubleCheck&&(t.doubleChecker=B(function(){return t.doubleCheckClear(),t.stateChanged||c(),!0},t.options.doubleCheckInterval)),t},t.safariStatePoll=function(){var d=t.extractState(y.location.href),e;if(!t.isLastSavedState(d)){e=d}else{return}return e||(e=t.createStateObject()),t.Adapter.trigger(v,"popstate"),t},t.back=function(c){return c!==!1&&t.busy()?(t.pushQueue({scope:t,callback:t.back,args:arguments,queue:c}),!1):(t.busy(!0),t.doubleCheck(function(){t.back(!1)}),u.go(-1),!0)},t.forward=function(c){return c!==!1&&t.busy()?(t.pushQueue({scope:t,callback:t.forward,args:arguments,queue:c}),!1):(t.busy(!0),t.doubleCheck(function(){t.forward(!1)}),u.go(1),!0)},t.go=function(d,e){var f;if(d>0){for(f=1;f<=d;++f){t.forward(e)}}else{if(!(d<0)){throw new Error("History.go: History.go requires a positive or negative integer passed.")}for(f=-1;f>=d;--f){t.back(e)}}return t};if(t.emulated.pushState){var b=function(){};t.pushState=t.pushState||b,t.replaceState=t.replaceState||b}else{t.onPopState=function(i,j){var k=!1,l=!1,m,d;return t.doubleCheckComplete(),m=t.getHash(),m?(d=t.extractState(m||y.location.href,!0),d?t.replaceState(d.data,d.title,d.url,!1):(t.Adapter.trigger(v,"anchorchange"),t.busy(!1)),t.expectedStateId=!1,!1):(k=t.Adapter.extractEventData("state",i,j)||!1,k?l=t.getStateById(k):t.expectedStateId?l=t.getStateById(t.expectedStateId):l=t.extractState(y.location.href),l||(l=t.createStateObject(null,null,y.location.href)),t.expectedStateId=!1,t.isLastSavedState(l)?(t.busy(!1),!1):(t.storeState(l),t.saveState(l),t.setTitle(l),t.Adapter.trigger(v,"statechange"),t.busy(!1),!0))},t.Adapter.bind(v,"popstate",t.onPopState),t.pushState=function(h,i,j,k){if(t.getHashByUrl(j)&&t.emulated.pushState){throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).")}if(k!==!1&&t.busy()){return t.pushQueue({scope:t,callback:t.pushState,args:arguments,queue:k}),!1}t.busy(!0);var g=t.createStateObject(h,i,j);return t.isLastSavedState(g)?t.busy(!1):(t.storeState(g),t.expectedStateId=g.id,u.pushState(g.id,g.title,g.url),t.Adapter.trigger(v,"popstate")),!0},t.replaceState=function(h,i,j,k){if(t.getHashByUrl(j)&&t.emulated.pushState){throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).")}if(k!==!1&&t.busy()){return t.pushQueue({scope:t,callback:t.replaceState,args:arguments,queue:k}),!1}t.busy(!0);var g=t.createStateObject(h,i,j);return t.isLastSavedState(g)?t.busy(!1):(t.storeState(g),t.expectedStateId=g.id,u.replaceState(g.id,g.title,g.url),t.Adapter.trigger(v,"popstate")),!0}}if(A){try{t.store=r.parse(A.getItem("History.store"))||{}}catch(a){t.store={}}t.normalizeStore()}else{t.store={},t.normalizeStore()}t.Adapter.bind(v,"beforeunload",t.clearAllIntervals),t.Adapter.bind(v,"unload",t.clearAllIntervals),t.saveState(t.storeState(t.extractState(y.location.href,!0))),A&&(t.onUnload=function(){var d,e;try{d=r.parse(A.getItem("History.store"))||{}}catch(f){d={}}d.idToState=d.idToState||{},d.urlToId=d.urlToId||{},d.stateToId=d.stateToId||{};for(e in t.idToState){if(!t.idToState.hasOwnProperty(e)){continue}d.idToState[e]=t.idToState[e]}for(e in t.urlToId){if(!t.urlToId.hasOwnProperty(e)){continue}d.urlToId[e]=t.urlToId[e]}for(e in t.stateToId){if(!t.stateToId.hasOwnProperty(e)){continue}d.stateToId[e]=t.stateToId[e]}t.store=d,t.normalizeStore(),A.setItem("History.store",r.stringify(d))},t.intervalList.push(p(t.onUnload,t.options.storeInterval)),t.Adapter.bind(v,"beforeunload",t.onUnload),t.Adapter.bind(v,"unload",t.onUnload));if(!t.emulated.pushState){t.bugs.safariPoll&&t.intervalList.push(p(t.safariStatePoll,t.options.safariPollInterval));if(z.vendor==="Apple Computer, Inc."||(z.appCodeName||"")==="Mozilla"){t.Adapter.bind(v,"hashchange",function(){t.Adapter.trigger(v,"popstate")}),t.getHash()&&t.Adapter.onDomLoad(function(){t.Adapter.trigger(v,"hashchange")})}}},t.init()}(window);/*
* jQuery blockUI plugin
* Version 2.43 (29-JUL-2012)
* @requires jQuery v1.2.3 or later
*
* Examples at: http://malsup.com/jquery/block/
* Copyright (c) 2007-2010 M. Alsup
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Thanks to Amir-Hossein Sobhi for some excellent contributions!
*/
(function(){function a(m){if(/1\.(0|1|2)\.(0|1|2)/.test(m.fn.jquery)||/^1.1/.test(m.fn.jquery)){alert("blockUI requires jQuery v1.2.3 or later!  You are using v"+m.fn.jquery);return}m.fn._fadeIn=m.fn.fadeIn;var h=function(){};var b=document.documentMode||0;var l=m.browser.msie&&((m.browser.version<8&&!b)||b<8);var k=m.browser.msie&&/MSIE 6.0/.test(navigator.userAgent)&&!b;m.blockUI=function(q){i(window,q)};m.unblockUI=function(q){d(window,q)};m.growlUI=function(u,s,r,q){var t=m('<div class="growlUI"></div>');if(u){t.append("<h1>"+u+"</h1>")}if(s){t.append("<h2>"+s+"</h2>")}if(r==undefined){r=3000}m.blockUI({message:t,fadeIn:700,fadeOut:1000,centerY:false,timeout:r,showOverlay:false,onUnblock:q,css:m.blockUI.defaults.growlCSS})};m.fn.block=function(r){var q=m.extend({},m.blockUI.defaults,r||{});this.each(function(){var s=m(this);if(q.ignoreIfBlocked&&s.data("blockUI.isBlocked")){return}s.unblock({fadeOut:0})});return this.each(function(){if(m.css(this,"position")=="static"){this.style.position="relative"}if(m.browser.msie){this.style.zoom=1}i(this,r)})};m.fn.unblock=function(q){return this.each(function(){d(this,q)})};m.blockUI.version=2.42;m.blockUI.defaults={message:"<h1>Please wait...</h1>",title:null,draggable:true,theme:false,css:{padding:0,margin:0,width:"100%",top:"0px",left:"0%",textAlign:"justify",cursor:"auto"},themedCSS:{width:"30%",top:"100%",left:"0%"},overlayCSS:{backgroundColor:"#000",opacity:0.92,cursor:"auto"},growlCSS:{width:"350px",top:"10px",left:"",right:"10px",border:"none",padding:"5px",opacity:0.92,cursor:"default",color:"#fff",backgroundColor:"#000","-webkit-border-radius":"10px","-moz-border-radius":"10px","border-radius":"10px"},iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank",forceIframe:false,baseZ:9999,centerX:true,centerY:true,allowBodyStretch:true,bindEvents:true,constrainTabKey:true,fadeIn:200,fadeOut:400,timeout:0,showOverlay:true,focusInput:true,applyPlatformOpacityRules:true,onBlock:null,onUnblock:null,quirksmodeOffsetHack:4,blockMsgClass:"blockMsg",ignoreIfBlocked:false};var e=null;var o=[];function i(r,M){var N,D;var w=(r==window);var B=(M&&M.message!==undefined?M.message:undefined);M=m.extend({},m.blockUI.defaults,M||{});if(M.ignoreIfBlocked&&m(r).data("blockUI.isBlocked")){return}M.overlayCSS=m.extend({},m.blockUI.defaults.overlayCSS,M.overlayCSS||{});N=m.extend({},m.blockUI.defaults.css,M.css||{});D=m.extend({},m.blockUI.defaults.themedCSS,M.themedCSS||{});B=B===undefined?M.message:B;if(w&&e){d(window,{fadeOut:0})}if(B&&typeof B!="string"&&(B.parentNode||B.jquery)){var u=B.jquery?B[0]:B;var K={};m(r).data("blockUI.history",K);K.el=u;K.parent=u.parentNode;K.display=u.style.display;K.position=u.style.position;if(K.parent){K.parent.removeChild(u)}}m(r).data("blockUI.onUnblock",M.onUnblock);var q=M.baseZ;var C=(m.browser.msie||M.forceIframe)?m('<iframe class="blockUI" style="z-index:'+(q++)+';display:none;border:none;margin:0;padding:0;position:absolute;width:100%;height:100%;top:0;left:0" src="'+M.iframeSrc+'"></iframe>'):m('<div class="blockUI" style="display:none"></div>');var P=M.theme?m('<div class="blockUI blockOverlay ui-widget-overlay" style="z-index:'+(q++)+';display:none"></div>'):m('<div class="blockUI blockOverlay" style="z-index:'+(q++)+';display:none;border:none;margin:0;padding:0;width:100%;height:100%;top:0px;left:0"></div>');var O,A;if(M.theme&&w){A='<div class="blockUI '+M.blockMsgClass+' blockPage ui-dialog ui-widget ui-corner-all" style="z-index:'+(q+10)+';display:none;position:fixed">';if(M.title){A+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(M.title||"&nbsp;")+"</div>"}A+='<div class="ui-widget-content ui-dialog-content"></div>';A+="</div>"}else{if(M.theme){A='<div class="blockUI '+M.blockMsgClass+' blockElement ui-dialog ui-widget ui-corner-all" style="z-index:'+(q+10)+';display:none;position:absolute">';if(M.title){A+='<div class="ui-widget-header ui-dialog-titlebar ui-corner-all blockTitle">'+(M.title||"&nbsp;")+"</div>"}A+='<div class="ui-widget-content ui-dialog-content"></div>';A+="</div>"}else{if(w){A='<div class="blockUI '+M.blockMsgClass+' blockPage" style="z-index:'+(q+10)+';display:none;position:fixed"></div>'}else{A='<div class="blockUI '+M.blockMsgClass+' blockElement" style="z-index:'+(q+10)+';display:none;position:absolute"></div>'}}}O=m(A);if(B){if(M.theme){O.css(D);O.addClass("ui-widget-content")}else{O.css(N)}}if(!M.theme&&(!M.applyPlatformOpacityRules||!(m.browser.mozilla&&/Linux/.test(navigator.platform)))){P.css(M.overlayCSS)}P.css("position",w?"fixed":"absolute");if(m.browser.msie||M.forceIframe){C.css("opacity",0)}var J=[C,P,O],I=w?m("body"):m(r);m.each(J,function(){this.appendTo(I)});if(M.theme&&M.draggable&&m.fn.draggable){O.draggable({handle:".ui-dialog-titlebar",cancel:"li"})}var G=l&&(!m.boxModel||m("object,embed",w?null:r).length>0);if(k||G){if(w&&M.allowBodyStretch&&m.boxModel){m("html,body").css("height","100%")}if((k||!m.boxModel)&&!w){var y=f(r,"borderTopWidth"),H=f(r,"borderLeftWidth");var x=y?"(0 - "+y+")":0;var F=H?"(0 - "+H+")":0}m.each([C,P,O],function(z,t){var R=t[0].style;R.position="absolute";if(z<2){w?R.setExpression("height","Math.max(document.body.scrollHeight, document.body.offsetHeight) - (jQuery.boxModel?0:"+M.quirksmodeOffsetHack+') + "px"'):R.setExpression("height",'this.parentNode.offsetHeight + "px"');w?R.setExpression("width",'jQuery.boxModel && document.documentElement.clientWidth || document.body.clientWidth + "px"'):R.setExpression("width",'this.parentNode.offsetWidth + "px"');if(F){R.setExpression("left",F)}if(x){R.setExpression("top",x)}}else{if(M.centerY){if(w){R.setExpression("top",'(document.documentElement.clientHeight || document.body.clientHeight) / 2 - (this.offsetHeight / 2) + (blah = document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "px"')}R.marginTop=0}else{if(!M.centerY&&w){var S=(M.css&&M.css.top)?parseInt(M.css.top):0;var T="((document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop) + "+S+') + "px"';R.setExpression("top",T)}}}})}if(B){if(M.theme){O.find(".ui-widget-content").append(B)}else{O.append(B)}if(B.jquery||B.nodeType){m(B).show()}}if((m.browser.msie||M.forceIframe)&&M.showOverlay){C.show()}if(M.fadeIn){var E=M.onBlock?M.onBlock:h;var L=(M.showOverlay&&!B)?E:h;var v=B?E:h;if(M.showOverlay){P._fadeIn(M.fadeIn,L)}if(B){O._fadeIn(M.fadeIn,v)}}else{if(M.showOverlay){P.show()}if(B){O.show()}if(M.onBlock){M.onBlock()}}n(1,r,M);if(w){e=O[0];o=m(":input:enabled:visible",e);if(M.focusInput){setTimeout(j,20)}}else{c(O[0],M.centerX,M.centerY)}if(M.timeout){var Q=setTimeout(function(){w?m.unblockUI(M):m(r).unblock(M)},M.timeout);m(r).data("blockUI.timeout",Q)}}function d(v,u){var q=(v==window);var s=m(v);var r=s.data("blockUI.history");var w=s.data("blockUI.timeout");if(w){clearTimeout(w);s.removeData("blockUI.timeout")}u=m.extend({},m.blockUI.defaults,u||{});n(0,v,u);if(u.onUnblock===null){u.onUnblock=s.data("blockUI.onUnblock");s.removeData("blockUI.onUnblock")}var t;if(q){t=m("body").children().filter(".blockUI").add("body > .blockUI")}else{t=m(".blockUI",v)}if(q){e=o=null}if(u.fadeOut){t.fadeOut(u.fadeOut);setTimeout(function(){p(t,r,u,v)},u.fadeOut)}else{p(t,r,u,v)}}function p(r,q,s,t){r.each(function(u,v){if(this.parentNode){this.parentNode.removeChild(this)}});if(q&&q.el){q.el.style.display=q.display;q.el.style.position=q.position;if(q.parent){q.parent.appendChild(q.el)}m(t).removeData("blockUI.history")}if(typeof s.onUnblock=="function"){s.onUnblock(t,s)}}function n(t,u,s){var q=u==window,r=m(u);if(!t&&(q&&!e||!q&&!r.data("blockUI.isBlocked"))){return}r.data("blockUI.isBlocked",t);if(!s.bindEvents||(t&&!s.showOverlay)){return}var v="mousedown mouseup keydown keypress";t?m(document).bind(v,s,g):m(document).unbind(v,g)}function g(u){if(u.keyCode&&u.keyCode==9){if(e&&u.data.constrainTabKey){var r=o;var s=!u.shiftKey&&u.target===r[r.length-1];var t=u.shiftKey&&u.target===r[0];if(s||t){setTimeout(function(){j(t)},10);return false}}}var q=u.data;if(m(u.target).parents("div."+q.blockMsgClass).length>0){return true}return m(u.target).parents().children().filter("div.blockUI").length==0}function j(r){if(!o){return}var q=o[r===true?o.length-1:0];if(q){q.focus()}}function c(w,q,r){var v=w.parentNode,z=w.style;var u=((v.offsetWidth-w.offsetWidth)/2)-f(v,"borderLeftWidth");var A=((v.offsetHeight-w.offsetHeight)/2)-f(v,"borderTopWidth");if(q){z.left=u>0?(u+"px"):"0"}if(r){z.top=A>0?(A+"px"):"0"}}function f(r,q){return parseInt(m.css(r,q))||0}}if(typeof define==="function"&&define.amd&&define.amd.jQuery){define(["jquery"],a)}else{a(jQuery)}})();eval(function(f,i,g,b,h,d){h=function(a){return(a<i?"":h(parseInt(a/i)))+((a=a%i)>35?String.fromCharCode(a+29):a.toString(36))};if(!"".replace(/^/,String)){while(g--){d[h(g)]=b[g]||h(g)}b=[function(a){return d[a]}];h=function(){return"\\w+"};g=1}while(g--){if(b[g]){f=f.replace(new RegExp("\\b"+h(g)+"\\b","g"),b[g])}}return f}("(I($){8($.1P.1J)J;$.1P.1J=I(y,z){8(1h.W==0){1c(M,'5q 4p 6t 1m \"'+1h.3U+'\".');J 1h}8(1h.W>1){J 1h.1Q(I(){$(1h).1J(y,z)})}F A=1h,$19=1h[0];8(A.1q('4q')){F B=A.1A('5r');A.X('5s',M)}Q{F B=O}A.3V=I(o,b,c){o=3W($19,o);8(o.1c){H.1c=o.1c;1c(H,'6u \"1c\" 6v 6w 6x 6y 3u 5t 6z 4r-1j.')}F e=['G','1n','T','17','1a','1b'];1m(F a=0,l=e.W;a<l;a++){o[e[a]]=3W($19,o[e[a]])}8(K o.1n=='14'){8(o.1n<=50)o.1n={'G':o.1n};Q o.1n={'1k':o.1n}}Q{8(K o.1n=='1l')o.1n={'1G':o.1n}}8(K o.G=='14')o.G={'P':o.G};Q 8(o.G=='1e')o.G={'P':o.G,'S':o.G,'1s':o.G};8(K o.G!='1j')o.G={};8(b)2u=$.25(M,{},$.1P.1J.4s,o);7=$.25(M,{},$.1P.1J.4s,o);8(K 7.G.12!='1j')7.G.12={};8(7.G.2I==0&&K c=='14'){7.G.2I=c}C.4t=(7.2J);C.2k=(7.2k=='4u'||7.2k=='1t')?'1a':'17';F f=[['S','34','26','1s','5u','2K','1t','2L','1E',0,1,2,3],['1s','5u','2K','S','34','26','2L','1t','3X',3,2,1,0]];F g=f[0].W,5v=(7.2k=='2M'||7.2k=='1t')?0:1;7.d={};1m(F d=0;d<g;d++){7.d[f[0][d]]=f[5v][d]}F h=A.Z();1x(K 7.G.P){V'1j':7.G.12.2N=7.G.P.2N;7.G.12.27=7.G.P.27;7.G.P=O;18;V'1l':8(7.G.P=='1e'){7.G.12.1e=M}Q{7.G.12.2l=7.G.P}7.G.P=O;18;V'I':7.G.12.2l=7.G.P;7.G.P=O;18}8(K 7.G.1v=='1y'){7.G.1v=(h.1v(':2O').W>0)?':P':'*'}8(7[7.d['S']]=='T'){7[7.d['S']]=3v(h,7,'26')}8(3Y(7[7.d['S']])&&!7.2J){7[7.d['S']]=3Z(35($1B.36(),7,'34'),7[7.d['S']]);C.4t=M}8(7[7.d['1s']]=='T'){7[7.d['1s']]=3v(h,7,'2K')}8(!7.G[7.d['S']]){8(7.2J){1c(M,'5w a '+7.d['S']+' 1m 5t G!');7.G[7.d['S']]=3v(h,7,'26')}Q{7.G[7.d['S']]=(4v(h,7,'26'))?'1e':h[7.d['26']](M)}}8(!7.G[7.d['1s']]){7.G[7.d['1s']]=(4v(h,7,'2K'))?'1e':h[7.d['2K']](M)}8(!7[7.d['1s']]){7[7.d['1s']]=7.G[7.d['1s']]}8(!7.G.P&&!7.2J){8(7.G[7.d['S']]=='1e'){7.G.12.1e=M}8(!7.G.12.1e){8(K 7[7.d['S']]=='14'){7.G.P=1K.3w(7[7.d['S']]/7.G[7.d['S']])}Q{F i=35($1B.36(),7,'34');7.G.P=1K.3w(i/7.G[7.d['S']]);7[7.d['S']]=7.G.P*7.G[7.d['S']];8(!7.G.12.2l)7.1C=O}8(7.G.P=='6A'||7.G.P<1){1c(M,'28 a 4w 14 3x P G: 5w 3u \"1e\".');7.G.12.1e=M}}}8(!7[7.d['S']]){7[7.d['S']]='1e';8(!7.2J&&7.G.1v=='*'&&!7.G.12.1e&&7.G[7.d['S']]!='1e'){7[7.d['S']]=7.G.P*7.G[7.d['S']];7.1C=O}}8(7.G.12.1e){7.3y=(7[7.d['S']]=='1e')?35($1B.36(),7,'34'):7[7.d['S']];8(7.1C===O){7[7.d['S']]='1e'}7.G.P=2P(h,7,0)}Q 8(7.G.1v!='*'){7.G.12.41=7.G.P;7.G.P=3z(h,7,0)}8(K 7.1C=='1y'){7.1C=(7[7.d['S']]=='1e')?O:'4x'}7.G.P=2Q(7.G.P,7,7.G.12.2l,$19);7.G.12.2m=7.G.P;7.1u=O;8(7.2J){8(!7.G.12.2N)7.G.12.2N=7.G.P;8(!7.G.12.27)7.G.12.27=7.G.P;7.1C=O;7.1i=[0,0,0,0];F j=$1B.1W(':P');8(j)$1B.3a();F k=3Z(35($1B.36(),7,'34'),7[7.d['S']]);8(K 7[7.d['S']]=='14'&&k<7[7.d['S']]){k=7[7.d['S']]}8(j)$1B.3b();F m=4y(1K.2v(k/7.G[7.d['S']]),7.G.12);8(m>h.W){m=h.W}F n=1K.3w(k/m),4z=7[7.d['1s']],5x=3Y(4z);h.1Q(I(){F a=$(1h),4A=n-5y(a,7,'6B');a[7.d['S']](4A);8(5x){a[7.d['1s']](3Z(4A,4z))}});7.G.P=m;7.G[7.d['S']]=n;7[7.d['S']]=m*n}Q{7.1i=5z(7.1i);8(7.1C=='2L')7.1C='1t';8(7.1C=='4B')7.1C='2M';1x(7.1C){V'4x':V'1t':V'2M':8(7[7.d['S']]!='1e'){F p=42(3c(h,7),7);7.1u=M;7.1i[7.d[1]]=p[1];7.1i[7.d[3]]=p[0]}18;2w:7.1C=O;7.1u=(7.1i[0]==0&&7.1i[1]==0&&7.1i[2]==0&&7.1i[3]==0)?O:M;18}}8(K 7.2n=='1r'&&7.2n)7.2n='6C'+A.6D('6E');8(K 7.G.3d!='14')7.G.3d=7.G.P;8(K 7.1n.1k!='14')7.1n.1k=5A;8(K 7.1n.G=='1y')7.1n.G=(7.G.12.1e||7.G.1v!='*')?'P':7.G.P;7.T=3A($19,7.T,'T');7.17=3A($19,7.17);7.1a=3A($19,7.1a);7.1b=3A($19,7.1b,'1b');7.T=$.25(M,{},7.1n,7.T);7.17=$.25(M,{},7.1n,7.17);7.1a=$.25(M,{},7.1n,7.1a);7.1b=$.25(M,{},7.1n,7.1b);8(K 7.1b.43!='1r')7.1b.43=O;8(K 7.1b.3e!='I'&&7.1b.3e!==O)7.1b.3e=$.1P.1J.5B;8(K 7.T.1H!='1r')7.T.1H=M;8(K 7.T.4C!='14')7.T.4C=0;8(K 7.T.44=='1y')7.T.44=M;8(K 7.T.4D!='1r')7.T.4D=M;8(K 7.T.3f!='14')7.T.3f=(7.T.1k<10)?6F:7.T.1k*5;8(7.29){7.29=4E(7.29)}8(H.1c){1c(H,'3g S: '+7.S);1c(H,'3g 1s: '+7.1s);8(7.3y)1c(H,'6G '+7.d['S']+': '+7.3y);1c(H,'5C 6H: '+7.G.S);1c(H,'5C 6I: '+7.G.1s);1c(H,'45 3x G P: '+7.G.P);8(7.T.1H)1c(H,'45 3x G 4F 6J: '+7.T.G);8(7.17.Y)1c(H,'45 3x G 4F 4G: '+7.17.G);8(7.1a.Y)1c(H,'45 3x G 4F 5D: '+7.1a.G)}};A.5E=I(){A.1q('4q',M);F a={'4H':A.16('4H'),'4I':A.16('4I'),'3B':A.16('3B'),'2L':A.16('2L'),'2M':A.16('2M'),'4B':A.16('4B'),'1t':A.16('1t'),'S':A.16('S'),'1s':A.16('1s'),'4J':A.16('4J'),'1E':A.16('1E'),'3X':A.16('3X'),'4K':A.16('4K')};1x(a.3B){V'4L':F b='4L';18;V'5F':F b='5F';18;2w:F b='6K'}$1B.16(a).16({'6L':'2O','3B':b});A.1q('5G',a).16({'4H':'1t','4I':'46','3B':'4L','2L':0,'1t':0,'4J':0,'1E':0,'3X':0,'4K':0});8(7.1u){A.Z().1Q(I(){F m=2o($(1h).16(7.d['1E']));8(2p(m))m=0;$(1h).1q('1S',m)})}};A.5H=I(){A.4M();A.13(L('4N',H),I(e,a){e.1f();8(!C.1Z){8(7.T.Y){7.T.Y.2R(2q('47',H))}}C.1Z=M;8(7.T.1H){7.T.1H=O;A.X(L('2S',H),a)}J M});A.13(L('4O',H),I(e){e.1f();8(C.1T){3C(R)}J M});A.13(L('2S',H),I(e,a,b){e.1f();1F=3h(1F);8(a&&C.1T){R.1Z=M;F c=2x()-R.2T;R.1k-=c;8(R.1o)R.1o.1k-=c;8(R.1R)R.1R.1k-=c;3C(R,O)}8(!C.1X&&!C.1T){8(b)1F.3D+=2x()-1F.2T}8(!C.1X){8(7.T.Y){7.T.Y.2R(2q('5I',H))}}C.1X=M;8(7.T.5J){F d=7.T.3f-1F.3D,3E=3F-1K.2v(d*3F/7.T.3f);7.T.5J.1z($19,3E,d)}J M});A.13(L('1H',H),I(e,b,c,d){e.1f();1F=3h(1F);F v=[b,c,d],t=['1l','14','1r'],a=2U(v,t);F b=a[0],c=a[1],d=a[2];8(b!='17'&&b!='1a')b=C.2k;8(K c!='14')c=0;8(K d!='1r')d=O;8(d){C.1Z=O;7.T.1H=M}8(!7.T.1H){e.20();J 1c(H,'3g 47: 28 2V.')}8(C.1X){8(7.T.Y){7.T.Y.2y(2q('47',H));7.T.Y.2y(2q('5I',H))}}C.1X=O;1F.2T=2x();F f=7.T.3f+c;3G=f-1F.3D;3E=3F-1K.2v(3G*3F/f);1F.T=6M(I(){8(7.T.5K){7.T.5K.1z($19,3E,3G)}8(C.1T){A.X(L('1H',H),b)}Q{A.X(L(b,H),7.T)}},3G);8(7.T.5L){7.T.5L.1z($19,3E,3G)}J M});A.13(L('2W',H),I(e){e.1f();8(R.1Z){R.1Z=O;C.1X=O;C.1T=M;R.2T=2x();2a(R)}Q{A.X(L('1H',H))}J M});A.13(L('17',H)+' '+L('1a',H),I(e,b,f,g){e.1f();8(C.1Z||A.1W(':2O')){e.20();J 1c(H,'3g 47 6N 2O: 28 2V.')}8(7.G.3d>=N.U){e.20();J 1c(H,'28 5M G ('+N.U+', '+7.G.3d+' 5N): 28 2V.')}F v=[b,f,g],t=['1j','14/1l','I'],a=2U(v,t);F b=a[0],f=a[1],g=a[2];F h=e.4P.1d(H.3i.3H.W);8(K b!='1j'||b==2b)b=7[h];8(K g=='I')b.21=g;8(K f!='14'){8(7.G.1v!='*'){f='P'}Q{F i=[f,b.G,7[h].G];1m(F a=0,l=i.W;a<l;a++){8(K i[a]=='14'||i[a]=='5O'||i[a]=='P'){f=i[a];18}}}1x(f){V'5O':e.20();J A.1A(h+'6O',[b,g]);18;V'P':8(!7.G.12.1e&&7.G.1v=='*'){f=7.G.P}18}}8(R.1Z){A.X(L('2W',H));A.X(L('3j',H),[h,[b,f,g]]);e.20();J 1c(H,'3g 6P 2V.')}8(b.1k>0){8(C.1T){8(b.3j)A.X(L('3j',H),[h,[b,f,g]]);e.20();J 1c(H,'3g 6Q 2V.')}}8(b.4Q&&!b.4Q.1z($19)){e.20();J 1c(H,'6R \"4Q\" 6S O.')}1F.3D=0;A.X('5P'+h,[b,f]);8(7.29){F s=7.29,c=[b,f];1m(F j=0,l=s.W;j<l;j++){F d=h;8(!s[j][1])c[0]=s[j][0].1A('5Q',h);8(!s[j][2])d=(d=='17')?'1a':'17';c[1]=f+s[j][3];s[j][0].X('5P'+d,c)}}J M});A.13(L('6T',H,O),I(e,f,g){e.1f();F h=A.Z();8(!7.1L){8(N.11==0){8(7.3k){A.X(L('1a',H),N.U-1)}J e.20()}}8(7.1u)1M(h,7);8(K g!='14'){8(7.G.12.1e){g=48(h,7,N.U-1)}Q 8(7.G.1v!='*'){F i=(K f.G=='14')?f.G:4R(A,7);g=5R(h,7,N.U-1,i)}Q{g=7.G.P}g=4a(g,7,f.G,$19)}8(!7.1L){8(N.U-g<N.11){g=N.U-N.11}}7.G.12.2m=7.G.P;8(7.G.12.1e){F j=2P(h,7,N.U-g);8(7.G.P+g<=j&&g<N.U){g++;j=2P(h,7,N.U-g)}7.G.P=2Q(j,7,7.G.12.2l,$19)}Q 8(7.G.1v!='*'){F j=3z(h,7,N.U-g);7.G.P=2Q(j,7,7.G.12.2l,$19)}8(7.1u)1M(h,7,M);8(g==0){e.20();J 1c(H,'0 G 3u 1n: 28 2V.')}1c(H,'5S '+g+' G 4G.');N.11+=g;22(N.11>=N.U){N.11-=N.U}8(!7.1L){8(N.11==0&&f.4b)f.4b.1z($19);8(!7.3k)2X(7,N.11,H)}A.Z().1d(N.U-g,N.U).6U(A);8(N.U<7.G.P+g){A.Z().1d(0,(7.G.P+g)-N.U).4c(M).3I(A)}F h=A.Z(),2r=5T(h,7,g),1U=5U(h,7),2c=h.1N(g-1),2d=2r.2Y(),2z=1U.2Y();8(7.1u)1M(h,7);8(7.1C){F p=42(1U,7),k=p[0],2s=p[1]}Q{F k=0,2s=0}F l=(k<0)?7.1i[7.d[3]]:0;8(f.1I=='5V'&&7.G.P<g){F m=h.1d(7.G.12.2m,g),4d=7.G[7.d['S']];m.1Q(I(){F a=$(1h);a.1q('4e',a.1W(':2O')).3a()});7.G[7.d['S']]='1e'}Q{F m=O}F n=3l(h.1d(0,g),7,'S'),2e=4f(2A(1U,7,M),7,!7.1u);8(m)7.G[7.d['S']]=4d;8(7.1u){1M(h,7,M);8(2s>=0){1M(2d,7,7.1i[7.d[1]])}1M(2c,7,7.1i[7.d[3]])}8(7.1C){7.1i[7.d[1]]=2s;7.1i[7.d[3]]=k}F o={},1w=f.1k;8(f.1I=='46')1w=0;Q 8(1w=='T')1w=7.1n.1k/7.1n.G*g;Q 8(1w<=0)1w=0;Q 8(1w<10)1w=n/1w;R=23(1w,f.1G);8(7[7.d['S']]=='1e'||7[7.d['1s']]=='1e'){R.1g.1p([$1B,2e])}8(7.1u){F q=7.1i[7.d[3]];8(2z.4S(2c).W){F r={};r[7.d['1E']]=2c.1q('1S');8(k<0)2c.16(r);Q R.1g.1p([2c,r])}8(2z.4S(2d).W){F s={};s[7.d['1E']]=2d.1q('1S');R.1g.1p([2d,s])}8(2s>=0){F t={};t[7.d['1E']]=2z.1q('1S')+7.1i[7.d[1]];R.1g.1p([2z,t])}}Q{F q=0}o[7.d['1t']]=q;F u=[2r,1U,2e,1w];8(f.2f)f.2f.3J($19,u);1Y.2f=3K(1Y.2f,$19,u);1x(f.1I){V'2B':V'2g':V'2C':V'2h':R.1o=23(R.1k,R.1G);R.1R=23(R.1k,R.1G);R.1k=0;18}1x(f.1I){V'2g':V'2C':V'2h':F v=A.4c().3I($1B);18}1x(f.1I){V'2h':v.Z().1d(0,g).1O();V'2g':V'2C':v.Z().1d(7.G.P).1O();18}1x(f.1I){V'2B':R.1o.1g.1p([A,{'2i':0}]);18;V'2g':v.16({'2i':0});R.1o.1g.1p([A,{'S':'+=0'},I(){v.1O()}]);R.1R.1g.1p([v,{'2i':1}]);18;V'2C':R=4T(R,A,v,7,M);18;V'2h':R=4U(R,A,v,7,M,g);18}F w=I(){F b=7.G.P+g-N.U;8(b>0){A.Z().1d(N.U).1O();2r=$(A.Z().1d(N.U-(7.G.P-b)).4g().5W(A.Z().1d(0,b).4g()))}8(m){m.1Q(I(){F a=$(1h);8(!a.1q('4e'))a.3b()})}8(7.1u){F c=A.Z().1N(7.G.P+g-1);c.16(7.d['1E'],c.1q('1S'))}R.1g=[];8(R.1o)R.1o=23(R.4V,R.1G);F d=I(){1x(f.1I){V'2B':V'2g':A.16('1v','');18}R.1R=23(0,2b);C.1T=O;F a=[2r,1U,2e];8(f.21)f.21.3J($19,a);1Y.21=3K(1Y.21,$19,a);8(1V.W){A.X(L(1V[0][0],H),1V[0][1]);1V.5X()}8(!C.1X)A.X(L('1H',H))};1x(f.1I){V'2B':R.1o.1g.1p([A,{'2i':1},d]);2a(R.1o);18;V'2h':R.1o.1g.1p([A,{'S':'+=0'},d]);2a(R.1o);18;2w:d();18}};R.1g.1p([A,o,w]);C.1T=M;A.16(7.d['1t'],-(n-l));1F=3h(1F);2a(R);4W(7.2n,A.1A(L('3L',H)));A.X(L('2D',H),[O,2e]);J M});A.13(L('6V',H,O),I(e,f,g){e.1f();F h=A.Z();8(!7.1L){8(N.11==7.G.P){8(7.3k){A.X(L('17',H),N.U-1)}J e.20()}}8(7.1u)1M(h,7);8(K g!='14'){8(7.G.1v!='*'){F i=(K f.G=='14')?f.G:4R(A,7);g=5Y(h,7,0,i)}Q{g=7.G.P}g=4a(g,7,f.G,$19)}F j=(N.11==0)?N.U:N.11;8(!7.1L){8(7.G.12.1e){F k=2P(h,7,g),i=48(h,7,j-1)}Q{F k=7.G.P,i=7.G.P}8(g+k>j){g=j-i}}7.G.12.2m=7.G.P;8(7.G.12.1e){F k=4X(h,7,g,j);22(7.G.P-g>=k&&g<N.U){g++;k=4X(h,7,g,j)}7.G.P=2Q(k,7,7.G.12.2l,$19)}Q 8(7.G.1v!='*'){F k=3z(h,7,g);7.G.P=2Q(k,7,7.G.12.2l,$19)}8(7.1u)1M(h,7,M);8(g==0){e.20();J 1c(H,'0 G 3u 1n: 28 2V.')}1c(H,'5S '+g+' G 5D.');N.11-=g;22(N.11<0){N.11+=N.U}8(!7.1L){8(N.11==7.G.P&&f.4b)f.4b.1z($19);8(!7.3k)2X(7,N.11,H)}8(N.U<7.G.P+g){A.Z().1d(0,(7.G.P+g)-N.U).4c(M).3I(A)}F h=A.Z(),2r=4Y(h,7),1U=4Z(h,7,g),2c=h.1N(g-1),2d=2r.2Y(),2z=1U.2Y();8(7.1u)1M(h,7);8(7.1C){F p=42(1U,7),l=p[0],2s=p[1]}Q{F l=0,2s=0}8(f.1I=='5V'&&7.G.12.2m<g){F m=h.1d(7.G.12.2m,g),4d=7.G[7.d['S']];m.1Q(I(){F a=$(1h);a.1q('4e',a.1W(':2O')).3a()});7.G[7.d['S']]='1e'}Q{F m=O}F n=3l(h.1d(0,g),7,'S'),2e=4f(2A(1U,7,M),7,!7.1u);8(m)7.G[7.d['S']]=4d;8(7.1C){8(7.1i[7.d[1]]<0){7.1i[7.d[1]]=0}}8(7.1u){1M(h,7,M);1M(2d,7,7.1i[7.d[1]])}8(7.1C){7.1i[7.d[1]]=2s;7.1i[7.d[3]]=l}F o={},1w=f.1k;8(f.1I=='46')1w=0;Q 8(1w=='T')1w=7.1n.1k/7.1n.G*g;Q 8(1w<=0)1w=0;Q 8(1w<10)1w=n/1w;R=23(1w,f.1G);8(7[7.d['S']]=='1e'||7[7.d['1s']]=='1e'){R.1g.1p([$1B,2e])}8(7.1u){F q=2z.1q('1S');8(2s>=0){q+=7.1i[7.d[1]]}2z.16(7.d['1E'],q);8(2c.4S(2d).W){F r={};r[7.d['1E']]=2d.1q('1S');R.1g.1p([2d,r])}F s=2c.1q('1S');8(l>=0){s+=7.1i[7.d[3]]}F t={};t[7.d['1E']]=s;R.1g.1p([2c,t])}o[7.d['1t']]=-n;8(l<0){o[7.d['1t']]+=l}F u=[2r,1U,2e,1w];8(f.2f)f.2f.3J($19,u);1Y.2f=3K(1Y.2f,$19,u);1x(f.1I){V'2B':V'2g':V'2C':V'2h':R.1o=23(R.1k,R.1G);R.1R=23(R.1k,R.1G);R.1k=0;18}1x(f.1I){V'2g':V'2C':V'2h':F v=A.4c().3I($1B);18}1x(f.1I){V'2h':v.Z().1d(7.G.12.2m).1O();18;V'2g':V'2C':v.Z().1d(0,g).1O();v.Z().1d(7.G.P).1O();18}1x(f.1I){V'2B':R.1o.1g.1p([A,{'2i':0}]);18;V'2g':v.16({'2i':0});R.1o.1g.1p([A,{'S':'+=0'},I(){v.1O()}]);R.1R.1g.1p([v,{'2i':1}]);18;V'2C':R=4T(R,A,v,7,O);18;V'2h':R=4U(R,A,v,7,O,g);18}F w=I(){F b=7.G.P+g-N.U,5Z=(7.1u)?7.1i[7.d[3]]:0;A.16(7.d['1t'],5Z);8(b>0){A.Z().1d(N.U).1O()}F c=A.Z().1d(0,g).3I(A).2Y();8(b>0){1U=3c(h,7)}8(m){m.1Q(I(){F a=$(1h);8(!a.1q('4e'))a.3b()})}8(7.1u){8(N.U<7.G.P+g){F d=A.Z().1N(7.G.P-1);d.16(7.d['1E'],d.1q('1S')+7.1i[7.d[3]])}c.16(7.d['1E'],c.1q('1S'))}R.1g=[];8(R.1o)R.1o=23(R.4V,R.1G);F e=I(){1x(f.1I){V'2B':V'2g':A.16('1v','');18}R.1R=23(0,2b);C.1T=O;F a=[2r,1U,2e];8(f.21)f.21.3J($19,a);1Y.21=3K(1Y.21,$19,a);8(1V.W){A.X(L(1V[0][0],H),1V[0][1]);1V.5X()}8(!C.1X)A.X(L('1H',H))};1x(f.1I){V'2B':R.1o.1g.1p([A,{'2i':1},e]);2a(R.1o);18;V'2h':R.1o.1g.1p([A,{'S':'+=0'},e]);2a(R.1o);18;2w:e();18}};R.1g.1p([A,o,w]);C.1T=M;1F=3h(1F);2a(R);4W(7.2n,A.1A(L('3L',H)));A.X(L('2D',H),[O,2e]);J M});A.13(L('2Z',H),I(e,b,c,d,f,g,h){e.1f();F v=[b,c,d,f,g,h],t=['1l/14/1j','14','1r','1j','1l','I'],a=2U(v,t);F f=a[3],g=a[4],h=a[5];b=3m(a[0],a[1],a[2],N,A);8(b==0)J;8(K f!='1j')f=O;8(C.1T){8(K f!='1j'||f.1k>0)J O}8(g!='17'&&g!='1a'){8(7.1L){8(b<=N.U/2)g='1a';Q g='17'}Q{8(N.11==0||N.11>b)g='1a';Q g='17'}}8(g=='17')b=N.U-b;A.X(L(g,H),[f,b,h]);J M});A.13(L('6W',H),I(e,a,b){e.1f();F c=A.1A(L('3M',H));J A.1A(L('51',H),[c-1,a,'17',b])});A.13(L('6X',H),I(e,a,b){e.1f();F c=A.1A(L('3M',H));J A.1A(L('51',H),[c+1,a,'1a',b])});A.13(L('51',H),I(e,a,b,c,d){e.1f();8(K a!='14')a=A.1A(L('3M',H));F f=7.1b.G||7.G.P,27=1K.2v(N.U/f)-1;8(a<0)a=27;8(a>27)a=0;J A.1A(L('2Z',H),[a*f,0,M,b,c,d])});A.13(L('60',H),I(e,s){e.1f();8(s)s=3m(s,0,M,N,A);Q s=0;s+=N.11;8(s!=0){22(s>N.U)s-=N.U;A.6Y(A.Z().1d(s,N.U))}J M});A.13(L('29',H),I(e,s){e.1f();8(s)s=4E(s);Q 8(7.29)s=7.29;Q J 1c(H,'5q 6Z 3u 29.');F n=A.1A(L('3L',H)),x=M;1m(F j=0,l=s.W;j<l;j++){8(!s[j][0].1A(L('2Z',H),[n,s[j][3],M])){x=O}}J x});A.13(L('3j',H),I(e,a,b){e.1f();8(K a=='I'){a.1z($19,1V)}Q 8(31(a)){1V=a}Q 8(K a!='1y'){1V.1p([a,b])}J 1V});A.13(L('70',H),I(e,b,c,d,f){e.1f();F v=[b,c,d,f],t=['1l/1j','1l/14/1j','1r','14'],a=2U(v,t);F b=a[0],c=a[1],d=a[2],f=a[3];8(K b=='1j'&&K b.3n=='1y')b=$(b);8(K b=='1l')b=$(b);8(K b!='1j'||K b.3n=='1y'||b.W==0)J 1c(H,'28 a 4w 1j.');8(K c=='1y')c='4h';8(7.1u){b.1Q(I(){F m=2o($(1h).16(7.d['1E']));8(2p(m))m=0;$(1h).1q('1S',m)})}F g=c,3N='3N';8(c=='4h'){8(d){8(N.11==0){c=N.U-1;3N='61'}Q{c=N.11;N.11+=b.W}8(c<0)c=0}Q{c=N.U-1;3N='61'}}Q{c=3m(c,f,d,N,A)}8(g!='4h'&&!d){8(c<N.11)N.11+=b.W}8(N.11>=N.U)N.11-=N.U;F h=A.Z().1N(c);8(h.W){h[3N](b)}Q{A.62(b)}N.U=A.Z().W;F i=A.1A('52');3O(7,N.U,H);2X(7,N.11,H);A.X(L('53',H));A.X(L('2D',H),[M,i]);J M});A.13(L('71',H),I(e,b,c,d){e.1f();F v=[b,c,d],t=['1l/14/1j','1r','14'],a=2U(v,t);F b=a[0],c=a[1],d=a[2];8(K b=='1y'||b=='4h'){A.Z().2Y().1O()}Q{b=3m(b,d,c,N,A);F f=A.Z().1N(b);8(f.W){8(b<N.11)N.11-=f.W;f.1O()}}N.U=A.Z().W;F g=A.1A('52');3O(7,N.U,H);2X(7,N.11,H);A.X(L('2D',H),[M,g]);J M});A.13(L('2f',H)+' '+L('21',H),I(e,a){e.1f();F b=e.4P.1d(H.3i.3H.W);8(31(a))1Y[b]=a;8(K a=='I')1Y[b].1p(a);J 1Y[b]});A.13(L('5r',H,O),I(e,a){e.1f();J A.1A(L('3L',H),a)});A.13(L('3L',H),I(e,a){e.1f();8(N.11==0)F b=0;Q F b=N.U-N.11;8(K a=='I')a.1z($19,b);J b});A.13(L('3M',H),I(e,a){e.1f();F b=7.1b.G||7.G.P;F c=1K.2v(N.U/b-1);8(N.11==0)F d=0;Q 8(N.11<N.U%b)F d=0;Q 8(N.11==b&&!7.1L)F d=c;Q F d=1K.72((N.U-N.11)/b);8(d<0)d=0;8(d>c)d=c;8(K a=='I')a.1z($19,d);J d});A.13(L('73',H),I(e,a){e.1f();$i=3c(A.Z(),7);8(K a=='I')a.1z($19,$i);J $i});A.13(L('1d',H),I(e,f,l,b){e.1f();F v=[f,l,b],t=['14','14','I'],a=2U(v,t);f=(K a[0]=='14')?a[0]:0,l=(K a[1]=='14')?a[1]:N.U,b=a[2];f+=N.11;l+=N.11;22(f>N.U){f-=N.U}22(l>N.U){l-=N.U}22(f<0){f+=N.U}22(l<0){l+=N.U}F c=A.Z();8(l>f){F d=c.1d(f,l)}Q{F d=$(c.1d(f,N.U).4g().5W(c.1d(0,l).4g()))}8(K b=='I')b.1z($19,d);J d});A.13(L('1X',H)+' '+L('1Z',H)+' '+L('1T',H),I(e,a){e.1f();F b=e.4P.1d(H.3i.3H.W);8(K a=='I')a.1z($19,C[b]);J C[b]});A.13(L('5Q',H,O),I(e,a,b,c){e.1f();J A.1A(L('4r',H),[a,b,c])});A.13(L('4r',H),I(e,a,b,c){e.1f();F d=O;8(K a=='I'){a.1z($19,7)}Q 8(K a=='1j'){2u=$.25(M,{},2u,a);8(b!==O)d=M;Q 7=$.25(M,{},7,a)}Q 8(K a!='1y'){8(K b=='I'){F f=4i('7.'+a);8(K f=='1y')f='';b.1z($19,f)}Q 8(K b!='1y'){8(K c!=='1r')c=M;4i('2u.'+a+' = b');8(c!==O)d=M;Q 4i('7.'+a+' = b')}Q{J 4i('7.'+a)}}8(d){1M(A.Z(),7);A.3V(2u);A.54();F g=3P(A,7,O);A.X(L('2D',H),[M,g])}J 7});A.13(L('53',H),I(e,a,b){e.1f();8(K a=='1y'||a.W==0)a=$('74');Q 8(K a=='1l')a=$(a);8(K a!='1j')J 1c(H,'28 a 4w 1j.');8(K b!='1l'||b.W==0)b='a.63';a.75(b).1Q(I(){F h=1h.64||'';8(h.W>0&&A.Z().65($(h))!=-1){$(1h).24('55').55(I(e){e.2j();A.X(L('2Z',H),h)})}});J M});A.13(L('2D',H),I(e,b,c){e.1f();8(!7.1b.1D)J;8(b){F d=7.1b.G||7.G.P,l=1K.2v(N.U/d);8(7.1b.3e){7.1b.1D.Z().1O();7.1b.1D.1Q(I(){1m(F a=0;a<l;a++){F i=A.Z().1N(3m(a*d,0,M,N,A));$(1h).62(7.1b.3e(a+1,i))}})}7.1b.1D.1Q(I(){$(1h).Z().24(7.1b.3o).1Q(I(a){$(1h).13(7.1b.3o,I(e){e.2j();A.X(L('2Z',H),[a*d,0,M,7.1b])})})})}7.1b.1D.1Q(I(){$(1h).Z().2y(2q('66',H)).1N(A.1A(L('3M',H))).2R(2q('66',H))});J M});A.13(L('52',H),I(e){F a=A.Z(),3Q=7.G.P;8(7.G.12.1e)3Q=2P(a,7,0);Q 8(7.G.1v!='*')3Q=3z(a,7,0);8(!7.1L&&N.11!=0&&3Q>N.11){8(7.G.12.1e){F b=48(a,7,N.11)-N.11}Q 8(7.G.1v!='*'){F b=68(a,7,N.11)-N.11}Q{b=7.G.P-N.11}1c(H,'76 77-1L: 78 '+b+' G 4G.');A.X('17',b)}7.G.P=2Q(3Q,7,7.G.12.2l,$19);J 3P(A,7)});A.13(L('5s',H,O),I(e,a){e.1f();A.X(L('69',H),a);J M});A.13(L('69',H),I(e,a){e.1f();1F=3h(1F);A.1q('4q',O);A.X(L('4O',H));8(a){A.X(L('60',H))}8(7.1u){1M(A.Z(),7)}A.16(A.1q('5G'));A.4M();A.56();$1B.79(A);J M})};A.4M=I(){A.24(L('',H));A.24(L('',H,O))};A.54=I(){A.56();3O(7,N.U,H);2X(7,N.11,H);8(7.T.2t){F c=3p(7.T.2t);$1B.13(L('4j',H,O),I(){A.X(L('2S',H),c)}).13(L('4k',H,O),I(){A.X(L('2W',H))})}8(7.T.Y){7.T.Y.13(L(7.T.3o,H,O),I(e){e.2j();F a=O,c=2b;8(C.1X){a='1H'}Q 8(7.T.44){a='2S';c=3p(7.T.44)}8(a){A.X(L(a,H),c)}})}8(7.17.Y){7.17.Y.13(L(7.17.3o,H,O),I(e){e.2j();A.X(L('17',H))});8(7.17.2t){F c=3p(7.17.2t);7.17.Y.13(L('4j',H,O),I(){A.X(L('2S',H),c)}).13(L('4k',H,O),I(){A.X(L('2W',H))})}}8(7.1a.Y){7.1a.Y.13(L(7.1a.3o,H,O),I(e){e.2j();A.X(L('1a',H))});8(7.1a.2t){F c=3p(7.1a.2t);7.1a.Y.13(L('4j',H,O),I(){A.X(L('2S',H),c)}).13(L('4k',H,O),I(){A.X(L('2W',H))})}}8($.1P.2E){8(7.17.2E){8(!C.57){C.57=M;$1B.2E(I(e,a){8(a>0){e.2j();F b=59(7.17.2E);A.X(L('17',H),b)}})}}8(7.1a.2E){8(!C.5a){C.5a=M;$1B.2E(I(e,a){8(a<0){e.2j();F b=59(7.1a.2E);A.X(L('1a',H),b)}})}}}8($.1P.3R){F d=(7.17.5b)?I(){A.X(L('17',H))}:2b,3S=(7.1a.5b)?I(){A.X(L('1a',H))}:2b;8(3S||3S){8(!C.3R){C.3R=M;F f={'7a':30,'7b':30,'7c':M};1x(7.2k){V'4u':V'6a':f.7d=d;f.7e=3S;18;2w:f.7f=3S;f.7g=d}$1B.3R(f)}}}8(7.1b.1D){8(7.1b.2t){F c=3p(7.1b.2t);7.1b.1D.13(L('4j',H,O),I(){A.X(L('2S',H),c)}).13(L('4k',H,O),I(){A.X(L('2W',H))})}}8(7.17.2F||7.1a.2F){$(3T).13(L('6b',H,O,M,M),I(e){F k=e.6c;8(k==7.1a.2F){e.2j();A.X(L('1a',H))}8(k==7.17.2F){e.2j();A.X(L('17',H))}})}8(7.1b.43){$(3T).13(L('6b',H,O,M,M),I(e){F k=e.6c;8(k>=49&&k<58){k=(k-49)*7.G.P;8(k<=N.U){e.2j();A.X(L('2Z',H),[k,0,M,7.1b])}}})}8(7.T.1H){A.X(L('1H',H),7.T.4C)}8(C.4t){$(3q).13(L('7h',H,O,M,M),I(e){A.X(L('4O',H));8(7.T.4D&&!C.1X){A.X(L('1H',H))}1M(A.Z(),7);A.3V(2u);F a=3P(A,7,O);A.X(L('2D',H),[M,a])})}};A.56=I(){F a=L('',H),3r=L('',H,O);5c=L('',H,O,M,M);$(3T).24(5c);$(3q).24(5c);$1B.24(3r);8(7.T.Y)7.T.Y.24(3r);8(7.17.Y)7.17.Y.24(3r);8(7.1a.Y)7.1a.Y.24(3r);8(7.1b.1D){7.1b.1D.24(3r);8(7.1b.3e){7.1b.1D.Z().1O()}}3O(7,'3a',H);2X(7,'2y',H)};F C={'2k':'1a','1X':M,'1T':O,'1Z':O,'5a':O,'57':O,'3R':O},N={'U':A.Z().W,'11':0},1F={'7i':2b,'T':2b,'3j':2b,'2T':2x(),'3D':0},R={'1Z':O,'1k':0,'2T':0,'1G':'','1g':[]},1Y={'2f':[],'21':[]},1V=[],H=$.25(M,{},$.1P.1J.6d,z),7={},2u=y,$1B=A.7j('<'+H.5d.4p+' 7k=\"'+H.5d.6e+'\" />').36();H.3U=A.3U;H.4l=$.1P.1J.4l++;A.3V(2u,M,B);A.5E();A.5H();A.54();8(31(7.G.2I)){F D=7.G.2I}Q{F D=[];8(7.G.2I!=0){D.1p(7.G.2I)}}8(7.2n){D.7l(6f(7.2n))}8(D.W>0){1m(F a=0,l=D.W;a<l;a++){F s=D[a];8(s==0){5e}8(s===M){s=3q.7m.64;8(s.W<1){5e}}Q 8(s==='6g'){s=1K.3w(1K.6g()*N.U)}8(A.1A(L('2Z',H),[s,0,M,{1I:'46'}])){18}}}F E=3P(A,7,O),6h=3c(A.Z(),7);8(7.6i){7.6i.1z($19,6h,E)}A.X(L('2D',H),[M,E]);A.X(L('53',H));J A};$.1P.1J.4l=1;$.1P.1J.4s={'29':O,'3k':M,'1L':M,'2J':O,'2k':'1t','G':{'2I':0},'1n':{'1G':'7n','1k':5A,'2t':O,'2E':O,'5b':O,'3o':'55','3j':O}};$.1P.1J.6d={'1c':O,'3i':{'3H':'','6j':'7o'},'5d':{'4p':'7p','6e':'7q'},'5f':{}};$.1P.1J.5B=I(a,b){J'<a 7r=\"#\"><6k>'+a+'</6k></a>'};I 23(d,e){J{1g:[],1k:d,4V:d,1G:e,2T:2x()}}I 2a(s){8(K s.1o=='1j'){2a(s.1o)}1m(F a=0,l=s.1g.W;a<l;a++){F b=s.1g[a];8(!b)5e;8(b[3])b[0].4N();b[0].6l(b[1],{6m:b[2],1k:s.1k,1G:s.1G})}8(K s.1R=='1j'){2a(s.1R)}}I 3C(s,c){8(K c!='1r')c=M;8(K s.1o=='1j'){3C(s.1o,c)}1m(F a=0,l=s.1g.W;a<l;a++){F b=s.1g[a];b[0].4N(M);8(c){b[0].16(b[1]);8(K b[2]=='I')b[2]()}}8(K s.1R=='1j'){3C(s.1R,c)}}I 3h(t){8(t.T)7s(t.T);J t}I 3K(b,t,c){8(b.W){1m(F a=0,l=b.W;a<l;a++){b[a].3J(t,c)}}J[]}I 7t(a,c,x,d,f){F o={'1k':d,'1G':a.1G};8(K f=='I')o.6m=f;c.6l({2i:x},o)}I 4T(a,b,c,o,d){F e=2A(4Y(b.Z(),o),o,M)[0],5g=2A(c.Z(),o,M)[0],4m=(d)?-5g:e,2G={},3s={};2G[o.d['S']]=5g;2G[o.d['1t']]=4m;3s[o.d['1t']]=0;a.1o.1g.1p([b,{'2i':1}]);a.1R.1g.1p([c,3s,I(){$(1h).1O()}]);c.16(2G);J a}I 4U(a,b,c,o,d,n){F e=2A(4Z(b.Z(),o,n),o,M)[0],5h=2A(c.Z(),o,M)[0],4m=(d)?-5h:e,2G={},3s={};2G[o.d['S']]=5h;2G[o.d['1t']]=0;3s[o.d['1t']]=4m;a.1R.1g.1p([c,3s,I(){$(1h).1O()}]);c.16(2G);J a}I 3O(o,t,c){8(t=='3b'||t=='3a'){F f=t}Q 8(o.G.3d>=t){1c(c,'28 5M G: 7u 7v ('+t+' G, '+o.G.3d+' 5N).');F f='3a'}Q{F f='3b'}F s=(f=='3b')?'2y':'2R',h=2q('2O',c);8(o.T.Y)o.T.Y[f]()[s](h);8(o.17.Y)o.17.Y[f]()[s](h);8(o.1a.Y)o.1a.Y[f]()[s](h);8(o.1b.1D)o.1b.1D[f]()[s](h)}I 2X(o,f,c){8(o.1L||o.3k)J;F a=(f=='2y'||f=='2R')?f:O,4n=2q('7w',c);8(o.T.Y&&a){o.T.Y[a](4n)}8(o.17.Y){F b=a||(f==0)?'2R':'2y';o.17.Y[b](4n)}8(o.1a.Y){F b=a||(f==o.G.P)?'2R':'2y';o.1a.Y[b](4n)}}I 3W(a,b){8(K b=='I')b=b.1z(a);8(K b=='1y')b={};J b}I 3A(a,b,c){8(K c!='1l')c='';b=3W(a,b);8(K b=='1l'){F d=5i(b);8(d==-1)b=$(b);Q b=d}8(c=='1b'){8(K b=='1r')b={'43':b};8(K b.3n!='1y')b={'1D':b};8(K b.1D=='I')b.1D=b.1D.1z(a);8(K b.1D=='1l')b.1D=$(b.1D);8(K b.G!='14')b.G=O}Q 8(c=='T'){8(K b.3n!='1y')b={'Y':b};8(K b=='1r')b={'1H':b};8(K b=='14')b={'3f':b};8(K b.Y=='I')b.Y=b.Y.1z(a);8(K b.Y=='1l')b.Y=$(b.Y)}Q{8(K b.3n!='1y')b={'Y':b};8(K b=='14')b={'2F':b};8(K b.Y=='I')b.Y=b.Y.1z(a);8(K b.Y=='1l')b.Y=$(b.Y);8(K b.2F=='1l')b.2F=5i(b.2F)}J b}I 3m(a,b,c,d,e){8(K a=='1l'){8(2p(a))a=$(a);Q a=2o(a)}8(K a=='1j'){8(K a.3n=='1y')a=$(a);a=e.Z().65(a);8(a==-1)a=0;8(K c!='1r')c=O}Q{8(K c!='1r')c=M}8(2p(a))a=0;Q a=2o(a);8(2p(b))b=0;Q b=2o(b);8(c){a+=d.11}a+=b;8(d.U>0){22(a>=d.U){a-=d.U}22(a<0){a+=d.U}}J a}I 48(i,o,s){F t=0,x=0;1m(F a=s;a>=0;a--){F j=i.1N(a);t+=(j.1W(':P'))?j[o.d['26']](M):0;8(t>o.3y)J x;8(a==0)a=i.W;x++}}I 68(i,o,s){J 5j(i,o.G.1v,o.G.12.41,s)}I 5R(i,o,s,m){J 5j(i,o.G.1v,m,s)}I 5j(i,f,m,s){F t=0,x=0;1m(F a=s,l=i.W-1;a>=0;a--){x++;8(x==l)J x;F j=i.1N(a);8(j.1W(f)){t++;8(t==m)J x}8(a==0)a=i.W}}I 4R(a,o){J o.G.12.41||a.Z().1d(0,o.G.P).1v(o.G.1v).W}I 2P(i,o,s){F t=0,x=0;1m(F a=s,l=i.W-1;a<=l;a++){F j=i.1N(a);t+=(j.1W(':P'))?j[o.d['26']](M):0;8(t>o.3y)J x;x++;8(x==l)J x;8(a==l)a=-1}}I 4X(i,o,s,l){F v=2P(i,o,s);8(!o.1L){8(s+v>l)v=l-s}J v}I 3z(i,o,s){J 5k(i,o.G.1v,o.G.12.41,s,o.1L)}I 5Y(i,o,s,m){J 5k(i,o.G.1v,m+1,s,o.1L)-1}I 5k(i,f,m,s,c){F t=0,x=0;1m(F a=s,l=i.W-1;a<=l;a++){x++;8(x==l)J x;F j=i.1N(a);8(j.1W(f)){t++;8(t==m)J x}8(a==l)a=-1}}I 3c(i,o){J i.1d(0,o.G.P)}I 5T(i,o,n){J i.1d(n,o.G.12.2m+n)}I 5U(i,o){J i.1d(0,o.G.P)}I 4Y(i,o){J i.1d(0,o.G.12.2m)}I 4Z(i,o,n){J i.1d(n,o.G.P+n)}I 1M(i,o,m){F x=(K m=='1r')?m:O;8(K m!='14')m=0;i.1Q(I(){F j=$(1h);F t=2o(j.16(o.d['1E']));8(2p(t))t=0;j.1q('6n',t);j.16(o.d['1E'],((x)?j.1q('6n'):m+j.1q('1S')))})}I 3P(a,o,p){F b=a.36(),$i=a.Z(),$v=3c($i,o),4o=4f(2A($v,o,M),o,p);b.16(4o);8(o.1u){F p=o.1i,r=p[o.d[1]];8(o.1C){8(r<0)r=0}F c=$v.2Y();c.16(o.d['1E'],c.1q('1S')+r);a.16(o.d['2L'],p[o.d[0]]);a.16(o.d['1t'],p[o.d[3]])}a.16(o.d['S'],4o[o.d['S']]+(3l($i,o,'S')*2));a.16(o.d['1s'],5l($i,o,'1s'));J 4o}I 2A(i,o,a){F b=3l(i,o,'S',a),6o=5l(i,o,'1s',a);J[b,6o]}I 5l(i,o,a,b){8(K b!='1r')b=O;8(K o[o.d[a]]=='14'&&b)J o[o.d[a]];8(K o.G[o.d[a]]=='14')J o.G[o.d[a]];F c=(a.5m().32('S')>-1)?'26':'2K';J 3v(i,o,c)}I 3v(i,o,b){F s=0;1m(F a=0,l=i.W;a<l;a++){F j=i.1N(a);F m=(j.1W(':P'))?j[o.d[b]](M):0;8(s<m)s=m}J s}I 35(b,o,c){8(!b.1W(':P'))J 0;F d=b[o.d[c]](),5n=(o.d[c].5m().32('S')>-1)?['7x','7y']:['7z','7A'];1m(F a=0,l=5n.W;a<l;a++){F m=2o(b.16(5n[a]));d-=(2p(m))?0:m}J d}I 3l(i,o,b,c){8(K c!='1r')c=O;8(K o[o.d[b]]=='14'&&c)J o[o.d[b]];8(K o.G[o.d[b]]=='14')J o.G[o.d[b]]*i.W;F d=(b.5m().32('S')>-1)?'26':'2K',s=0;1m(F a=0,l=i.W;a<l;a++){F j=i.1N(a);s+=(j.1W(':P'))?j[o.d[d]](M):0}J s}I 4v(i,o,b){F s=O,v=O;1m(F a=0,l=i.W;a<l;a++){F j=i.1N(a);F c=(j.1W(':P'))?j[o.d[b]](M):0;8(s===O)s=c;Q 8(s!=c)v=M;8(s==0)v=M}J v}I 5y(i,o,d){J i[o.d['7B'+d]](M)-35(i,o,'7C'+d)}I 3Y(x){J(K x=='1l'&&x.1d(-1)=='%')}I 3Z(s,o){8(3Y(o)){o=o.1d(0,-1);8(2p(o))J s;s*=o/3F}J s}I L(n,c,a,b,d){8(K a!='1r')a=M;8(K b!='1r')b=M;8(K d!='1r')d=O;8(a)n=c.3i.3H+n;8(b)n=n+'.'+c.3i.6j;8(b&&d)n+=c.4l;J n}I 2q(n,c){J(K c.5f[n]=='1l')?c.5f[n]:n}I 4f(a,o,p){8(K p!='1r')p=M;F b=(o.1u&&p)?o.1i:[0,0,0,0];F c={};c[o.d['S']]=a[0]+b[1]+b[3];c[o.d['1s']]=a[1]+b[0]+b[2];J c}I 2U(c,d){F e=[];1m(F a=0,6p=c.W;a<6p;a++){1m(F b=0,6q=d.W;b<6q;b++){8(d[b].32(K c[a])>-1&&K e[b]=='1y'){e[b]=c[a];18}}}J e}I 5z(p){8(K p=='1y')J[0,0,0,0];8(K p=='14')J[p,p,p,p];Q 8(K p=='1l')p=p.3t('7D').6r('').3t('7E').6r('').3t(' ');8(!31(p)){J[0,0,0,0]}1m(F i=0;i<4;i++){p[i]=2o(p[i])}1x(p.W){V 0:J[0,0,0,0];V 1:J[p[0],p[0],p[0],p[0]];V 2:J[p[0],p[1],p[0],p[1]];V 3:J[p[0],p[1],p[2],p[1]];2w:J[p[0],p[1],p[2],p[3]]}}I 42(a,o){F x=(K o[o.d['S']]=='14')?1K.2v(o[o.d['S']]-3l(a,o,'S')):0;1x(o.1C){V'1t':J[0,x];V'2M':J[x,0];V'4x':2w:J[1K.2v(x/2),1K.3w(x/2)]}}I 4a(x,o,a,b){F v=x;8(K a=='I'){v=a.1z(b,v)}Q 8(K a=='1l'){F p=a.3t('+'),m=a.3t('-');8(m.W>p.W){F c=M,5o=m[0],2H=m[1]}Q{F c=O,5o=p[0],2H=p[1]}1x(5o){V'7F':v=(x%2==1)?x-1:x;18;V'7G':v=(x%2==0)?x-1:x;18;2w:v=x;18}2H=2o(2H);8(!2p(2H)){8(c)2H=-2H;v+=2H}}8(K v!='14')v=1;8(v<1)v=1;J v}I 2Q(x,o,a,b){J 4y(4a(x,o,a,b),o.G.12)}I 4y(v,i){8(K i.2N=='14'&&v<i.2N)v=i.2N;8(K i.27=='14'&&v>i.27)v=i.27;8(v<1)v=1;J v}I 4E(s){8(!31(s))s=[[s]];8(!31(s[0]))s=[s];1m(F j=0,l=s.W;j<l;j++){8(K s[j][0]=='1l')s[j][0]=$(s[j][0]);8(K s[j][1]!='1r')s[j][1]=M;8(K s[j][2]!='1r')s[j][2]=M;8(K s[j][3]!='14')s[j][3]=0}J s}I 5i(k){8(k=='2M')J 39;8(k=='1t')J 37;8(k=='4u')J 38;8(k=='6a')J 40;J-1}I 4W(n,v){8(n)3T.2n=n+'='+v+'; 7H=/'}I 6f(n){n+='=';F b=3T.2n.3t(';');1m(F a=0,l=b.W;a<l;a++){F c=b[a];22(c.7I(0)==' '){c=c.1d(1)}8(c.32(n)==0){J c.1d(n.W)}}J 0}I 3p(p){8(p&&K p=='1l'){F i=(p.32('7J')>-1)?M:O,r=(p.32('2W')>-1)?M:O}Q{F i=r=O}J[i,r]}I 59(a){J(K a=='14')?a:2b}I 31(a){J K(a)=='1j'&&(a 7K 7L)}I 2x(){J 7M 7N().2x()}I 1c(d,m){8(K d=='1j'){F s=' ('+d.3U+')';d=d.1c}Q{F s=''}8(!d)J O;8(K m=='1l')m='1J'+s+': '+m;Q m=['1J'+s+':',m];8(3q.5p&&3q.5p.6s)3q.5p.6s(m);J O}$.1P.63=I(o,c){J 1h.1J(o,c)};$.25($.1G,{'7O':I(t){F a=t*t;J t*(-a*t+4*a-6*t+4)},'7P':I(t){J t*(4*t*t-9*t+6)},'7Q':I(t){F a=t*t;J t*(33*a*a-7R*a*t+7S*a-67*t+15)}})})(7T);",62,490,"|||||||opts|if|||||||||||||||||||||||||||||||||var|items|conf|function|return|typeof|cf_e|true|itms|false|visible|else|scrl|width|auto|total|case|length|trigger|button|children||first|visibleConf|bind|number||css|prev|break|tt0|next|pagination|debug|slice|variable|stopPropagation|anims|this|padding|object|duration|string|for|scroll|pre|push|data|boolean|height|left|usePadding|filter|a_dur|switch|undefined|call|triggerHandler|wrp|align|container|marginRight|tmrs|easing|play|fx|carouFredSel|Math|circular|sz_resetMargin|eq|remove|fn|each|post|cfs_origCssMargin|isScrolling|c_new|queu|is|isPaused|clbk|isStopped|stopImmediatePropagation|onAfter|while|sc_setScroll|unbind|extend|outerWidth|max|Not|synchronise|sc_startScroll|null|l_cur|l_old|w_siz|onBefore|crossfade|uncover|opacity|preventDefault|direction|adjust|old|cookie|parseInt|isNaN|cf_c|c_old|pR|pauseOnHover|opts_orig|ceil|default|getTime|removeClass|l_new|ms_getSizes|fade|cover|updatePageStatus|mousewheel|key|css_o|adj|start|responsive|outerHeight|top|right|min|hidden|gn_getVisibleItemsNext|cf_getItemsAdjust|addClass|pause|startTime|cf_sortParams|scrolling|resume|nv_enableNavi|last|slideTo||is_array|indexOf||innerWidth|ms_getTrueInnerSize|parent||||hide|show|gi_getCurrentItems|minimum|anchorBuilder|pauseDuration|Carousel|sc_clearTimers|events|queue|infinite|ms_getTotalSize|gn_getItemIndex|jquery|event|bt_pauseOnHoverConfig|window|ns2|ani_o|split|to|ms_getTrueLargestSize|floor|of|maxDimention|gn_getVisibleItemsNextFilter|go_getNaviObject|position|sc_stopScroll|timePassed|perc|100|dur2|prefix|appendTo|apply|sc_callCallbacks|currentPosition|currentPage|before|nv_showNavi|sz_setSizes|vI|touchwipe|wN|document|selector|_cfs_init|go_getObject|marginBottom|ms_isPercentage|ms_getPercentage||org|cf_getAlignPadding|keys|pauseOnEvent|Number|none|stopped|gn_getVisibleItemsPrev||cf_getAdjust|onEnd|clone|orgW|isHidden|cf_mapWrapperSizes|get|end|eval|mouseenter|mouseleave|serialNumber|cur_l|di|sz|element|cfs_isCarousel|configuration|defaults|upDateOnWindowResize|up|ms_hasVariableSizes|valid|center|cf_getItemAdjustMinMax|seco|nw|bottom|delay|pauseOnResize|cf_getSynchArr|scrolled|backward|textAlign|float|marginTop|marginLeft|absolute|_cfs_unbind_events|stop|finish|type|conditions|gn_getVisibleOrg|not|fx_cover|fx_uncover|orgDuration|cf_setCookie|gn_getVisibleItemsNextTestCircular|gi_getOldItemsNext|gi_getNewItemsNext||slideToPage|updateSizes|linkAnchors|_cfs_bind_buttons|click|_cfs_unbind_buttons|mousewheelPrev||bt_mousesheelNumber|mousewheelNext|wipe|ns3|wrapper|continue|classnames|new_w|old_w|cf_getKeyCode|gn_getItemsPrevFilter|gn_getItemsNextFilter|ms_getLargestSize|toLowerCase|arr|sta|console|No|_cfs_currentPosition|_cfs_destroy|the|innerHeight|dx|Set|secp|ms_getPaddingBorderMargin|cf_getPadding|500|pageAnchorBuilder|Item|forward|_cfs_build|fixed|cfs_origCss|_cfs_bind_events|paused|onPausePause|onPauseEnd|onPauseStart|enough|needed|page|_cfs_slide_|_cfs_configuration|gn_getScrollItemsPrevFilter|Scrolling|gi_getOldItemsPrev|gi_getNewItemsPrev|directscroll|concat|shift|gn_getScrollItemsNextFilter|new_m|jumpToStart|after|append|caroufredsel|hash|index|selected||gn_getVisibleItemsPrevFilter|destroy|down|keyup|keyCode|configs|classname|cf_readCookie|random|itm|onCreate|namespace|span|animate|complete|cfs_tempCssMargin|s2|l1|l2|join|log|found|The|option|should|be|moved|second|Infinity|Width|caroufredsel_cookie_|attr|id|2500|Available|widths|heights|automatically|relative|overflow|setTimeout|or|Page|resumed|currently|Callback|returned|_cfs_slide_prev|prependTo|_cfs_slide_next|prevPage|nextPage|prepend|carousel|insertItem|removeItem|round|currentVisible|body|find|Preventing|non|sliding|replaceWith|min_move_x|min_move_y|preventDefaultEvents|wipeUp|wipeDown|wipeLeft|wipeRight|resize|timer|wrap|class|unshift|location|swing|cfs|div|caroufredsel_wrapper|href|clearTimeout|fx_fade|hiding|navigation|disabled|paddingLeft|paddingRight|paddingTop|paddingBottom|outer|inner|px|em|even|odd|path|charAt|immediate|instanceof|Array|new|Date|quadratic|cubic|elastic|106|126|jQuery".split("|"),0,{}));if(window.jQuery){(function(a){if(a.browser.msie){try{document.execCommand("BackgroundImageCache",false,true)}catch(b){}}a.fn.rating=function(c){if(this.length==0){return this}if(typeof arguments[0]=="string"){if(this.length>1){var d=arguments;return this.each(function(){a.fn.rating.apply(a(this),d)})}a.fn.rating[arguments[0]].apply(this,a.makeArray(arguments).slice(1)||[]);return this}var c=a.extend({},a.fn.rating.options,c||{});a.fn.rating.calls++;this.not(".star-rating-applied").addClass("star-rating-applied").each(function(){var f,i=a(this);var l=(this.name||"unnamed-rating").replace(/\[|\]/g,"_").replace(/^\_+|\_+$/g,"");var h=a(this.form||document.body);var m=h.data("rating");if(!m||m.call!=a.fn.rating.calls){m={count:0,call:a.fn.rating.calls}}var e=m[l];if(e){f=e.data("rating")}if(e&&f){f.count++}else{f=a.extend({},c||{},(a.metadata?i.metadata():(a.meta?i.data():null))||{},{count:0,stars:[],inputs:[]});f.serial=m.count++;e=a('<span class="star-rating-control"/>');i.before(e);e.addClass("rating-to-be-drawn");if(i.attr("disabled")||i.hasClass("disabled")){f.readOnly=true}if(i.hasClass("required")){f.required=true}e.append(f.cancel=a('<div class="rating-cancel"><a title="'+f.cancel+'">'+f.cancelValue+"</a></div>").mouseover(function(){a(this).rating("drain");a(this).addClass("star-rating-hover")}).mouseout(function(){a(this).rating("draw");a(this).removeClass("star-rating-hover")}).click(function(){if(a.cookie(_ming)=="true"){return}a(this).rating("select")}).data("rating",f))}var g=a('<div class="star-rating rater-'+f.serial+'"><a title="'+(this.title||this.value)+'">'+this.value+"</a></div>");e.append(g);if(this.id){g.attr("id",this.id)}if(this.className){g.addClass(this.className)}if(f.half){f.split=2}if(typeof f.split=="number"&&f.split>0){var j=(a.fn.width?g.width():0)||f.starWidth;var n=(f.count%f.split),k=Math.floor(j/f.split);g.width(k).find("a").css({"margin-left":"-"+(n*k)+"px"})}if(f.readOnly){g.addClass("star-rating-readonly")}else{g.addClass("star-rating-live").mouseover(function(){a(this).rating("fill");a(this).rating("focus")}).mouseout(function(){a(this).rating("draw");a(this).rating("blur")}).click(function(){a(this).rating("select")})}if(this.checked){f.current=g}if(this.nodeName=="A"){if(a(this).hasClass("selected")){f.current=g}}i.hide();i.change(function(){a(this).rating("select")});g.data("rating.input",i.data("rating.star",g));f.stars[f.stars.length]=g[0];f.inputs[f.inputs.length]=i[0];f.rater=m[l]=e;f.context=h;i.data("rating",f);e.data("rating",f);g.data("rating",f);h.data("rating",m)});a(".rating-to-be-drawn").rating("draw").removeClass("rating-to-be-drawn");return this};a.extend(a.fn.rating,{calls:0,focus:function(){var d=this.data("rating");if(!d){return this}if(!d.focus){return this}var c=a(this).data("rating.input")||a(this.tagName=="INPUT"?this:null);if(d.focus){d.focus.apply(c[0],[c.val(),a("a",c.data("rating.star"))[0]])}},blur:function(){var d=this.data("rating");if(!d){return this}if(!d.blur){return this}var c=a(this).data("rating.input")||a(this.tagName=="INPUT"?this:null);if(d.blur){d.blur.apply(c[0],[c.val(),a("a",c.data("rating.star"))[0]])}},fill:function(){var c=this.data("rating");if(!c){return this}if(c.readOnly){return}this.rating("drain");this.prevAll().andSelf().filter(".rater-"+c.serial).addClass("star-rating-hover")},drain:function(){var c=this.data("rating");if(!c){return this}if(c.readOnly){return}c.rater.children().filter(".rater-"+c.serial).removeClass("star-rating-on").removeClass("star-rating-hover")},draw:function(){var c=this.data("rating");if(!c){return this}this.rating("drain");if(c.current){c.current.data("rating.input").attr("checked","checked");c.current.prevAll().andSelf().filter(".rater-"+c.serial).addClass("star-rating-on")}else{a(c.inputs).removeAttr("checked")}c.cancel[c.readOnly||c.required?"hide":"show"]();this.siblings()[c.readOnly?"addClass":"removeClass"]("star-rating-readonly")},select:function(c,f){var d=this.data("rating");if(!d){return this}if(d.readOnly){return}d.current=null;if(typeof c!="undefined"){if(typeof c=="number"){return a(d.stars[c]).rating("select",undefined,f)}if(typeof c=="string"){a.each(d.stars,function(){if(a(this).data("rating.input").val()==c){a(this).rating("select",undefined,f)}})}}else{d.current=this[0].tagName=="INPUT"?this.data("rating.star"):(this.is(".rater-"+d.serial)?this:null)}this.data("rating",d);this.rating("draw");var e=a(d.current?d.current.data("rating.input"):null);if((f||f==undefined)&&d.callback){d.callback.apply(e[0],[e.val(),a("a",d.current)[0]])}},readOnly:function(d,c){var e=this.data("rating");if(!e){return this}e.readOnly=d||d==undefined?true:false;if(c){a(e.inputs).attr("disabled","disabled")}else{a(e.inputs).removeAttr("disabled")}this.data("rating",e);this.rating("draw")},disable:function(){this.rating("readOnly",true,true)},enable:function(){this.rating("readOnly",false,false)}});a.fn.rating.options={cancel:"Cancel Rating",cancelValue:"",split:0,starWidth:16};a(function(){a("input[type=radio].star").rating()})})(jQuery)};$.ajaxTransport("+*",function(d,a,b){if(jQuery.browser.msie&&window.XDomainRequest){var c;return{send:function(e,f){c=new XDomainRequest();c.open("get",d.url);c.onload=function(){if(this.contentType.match(/\/xml/)){var g=new ActiveXObject("Microsoft.XMLDOM");g.async=false;g.loadXML(this.responseText);f(200,"success",[g])}else{f(200,"success",[this.responseText])}};c.ontimeout=function(){f(408,"error",["The request timed out."])};c.onerror=function(){f(404,"error",["The requested resource could not be found."])};c.send()},abort:function(){if(c){c.abort()}}}}});function htmlEscape(a){return String(a).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function htmlUnescape(a){return String(a).replace(/&quot;/g,'"').replace(/&#39;/g,"'").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&")}function removeNewLine(b){var a="";for(var c=0;c<b.length;c++){if(b.charAt(c)!="\n"&&b.charAt(c)!="\r"&&b.charAt(c)!="\t"){a+=b.charAt(c)}}return a}String.format=function(c){if(arguments.length<=1){return c}var a=arguments.length-2;for(var b=0;b<=a;b++){c=c.replace(new RegExp("\\{"+b+"\\}","gi"),arguments[b+1])}return c};function UnicodeToKoDauAndGach(a){strChar="abcdefghiklmnopqrstxyzuvxw0123456789 ";a=UnicodeToKoDau(a.toLowerCase());sReturn="";for(i=0;i<a.length;i++){if(strChar.indexOf(a.charAt(i))>-1){if(a.charAt(i)!=" "){sReturn+=a.charAt(i)}else{if(i>0&&a.charAt(i-1)!=" "&&a.charAt(i-1)!="-"){sReturn+="-"}}}}return sReturn}function UnicodeToKoDau(a){uniChars="àáảãạâầấẩẫậăằắẳẵặèéẻẽẹêềếểễệđìíỉĩịòóỏõọôồốổỗộơờớởỡợùúủũụưừứửữựỳýỷỹỵÀÁẢÃẠÂẦẤẨẪẬĂẰẮẲẴẶÈÉẺẼẸÊỀẾỂỄỆĐÌÍỈĨỊÒÓỎÕỌÔỒỐỔỖỘƠỜỚỞỠỢÙÚỦŨỤƯỪỨỬỮỰỲÝỶỸỴÂĂĐÔƠƯ";KoDauChars="aaaaaaaaaaaaaaaaaeeeeeeeeeeediiiiiooooooooooooooooouuuuuuuuuuuyyyyyAAAAAAAAAAAAAAAAAEEEEEEEEEEEDIIIOOOOOOOOOOOOOOOOOOOUUUUUUUUUUUYYYYYAADOOU";retVal="";for(i=0;i<a.length;i++){pos=uniChars.indexOf(a.charAt(i));if(pos>=0){retVal+=KoDauChars.charAt(pos)}else{retVal+=a.charAt(i)}}return retVal}var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";(function(d){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var b=function(g){g=g.replace(/\x0d\x0a/g,"\x0a");var f="";for(var h=0;h<g.length;h++){var e=g.charCodeAt(h);if(e<128){f+=String.fromCharCode(e)}else{if((e>127)&&(e<2048)){f+=String.fromCharCode((e>>6)|192);f+=String.fromCharCode((e&63)|128)}else{f+=String.fromCharCode((e>>12)|224);f+=String.fromCharCode(((e>>6)&63)|128);f+=String.fromCharCode((e&63)|128)}}}return f};var c=function(e){var g="";var f=0;var h=c1=c2=0;while(f<e.length){h=e.charCodeAt(f);if(h<128){g+=String.fromCharCode(h);f++}else{if((h>191)&&(h<224)){c2=e.charCodeAt(f+1);g+=String.fromCharCode(((h&31)<<6)|(c2&63));f+=2}else{c2=e.charCodeAt(f+1);c3=e.charCodeAt(f+2);g+=String.fromCharCode(((h&15)<<12)|((c2&63)<<6)|(c3&63));f+=3}}}return g};d.extend({base64Encode:function(g){var k="";var f,l,m,n,h,o,j;var e=0;g=b(g);while(e<g.length){f=g.charCodeAt(e++);l=g.charCodeAt(e++);m=g.charCodeAt(e++);n=f>>2;h=((f&3)<<4)|(l>>4);o=((l&15)<<2)|(m>>6);j=m&63;if(isNaN(l)){o=j=64}else{if(isNaN(m)){j=64}}k=k+a.charAt(n)+a.charAt(h)+a.charAt(o)+a.charAt(j)}return k},base64Decode:function(g){var k="";var f,l,m;var n,h,o,j;var e=0;g=g.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(e<g.length){n=a.indexOf(g.charAt(e++));h=a.indexOf(g.charAt(e++));o=a.indexOf(g.charAt(e++));j=a.indexOf(g.charAt(e++));f=(n<<2)|(h>>4);l=((h&15)<<4)|(o>>2);m=((o&3)<<6)|j;k=k+String.fromCharCode(f);if(o!=64){k=k+String.fromCharCode(l)}if(j!=64){k=k+String.fromCharCode(m)}}k=c(k);return k}})})(jQuery);function ConvertDate(h){var j=/-?\d+/;var f=j.exec(h);var k=new Date(parseInt(f[0]));var b=k.getDate();var e=k.getMonth()+1;var c=k.getHours();var g=k.getMinutes();var l=k.getFullYear();return"  "+c+":"+g+" - "+b+"/"+e+"/"+l}function require_txt(b,a){if(document.getElementById(b).value==""){alert(a);document.getElementById(b).focus();return false}return true}var supported=(document.all||document.getElementById);var disabled=false;var charmapid=1;var keymodeid=0;var linebreak=0;var theTyper=null;reset=function(){};telexingVietUC=initTyper;function setTypingMode(a){keymodeid=a;if(theTyper){theTyper.keymode=initKeys()}if(!supported&&!disabled){alert("Xin loi, trinh duyet web cua ban khong cho phep dung VietTyping.\n");disabled=true}}function autoConvert(d,b){if(!d){return}var a=detectFormat(d.value);if(!a){return}var c=initCharMap(a);var e=initCharMap(b);d.value=c.convertTxtTo(d.value,e)}function loadModule(mURI,idstr){if(!document.all){return alert("Sorry, only IE4,5,6 support this feature.")}var ls="&nbsp;<script defer type='text/javascript' src='"+mURI+"'></script>";document.body.insertAdjacentHTML("beforeEnd",ls);if(!eval(idstr)){alert(errormsg)}}var errormsg="Module chu+a na.p xong, co' the^? ke^'t no^'i cha^.m...\nBa.n ha~y thu+.c hie^.n thao ta'c mo^.t la^`n nu+~a!";function convertAtOnce(b){if(!b){return}if(theTyper.keymode.off){var a="Bo^. go~ ddang o+? tra.ng tha'i ta('t.\n Ba.n pha?i ddu+a ve^` kie^?u dda~ du`ng dde^? vie^'t ba`i truo+'c khi soa't da^'u";return alert(a)}if(!theTyper){theTyper=new CVietString("")}b.value=theTyper.doConvertIt(b.value)}initCharMap=function(){return new CVietUniCodeMap()};initKeys=function(){switch(keymodeid){case 1:return new CTelexKeys();case 2:return new CVniKeys();case 3:return new CViqrKeys();default:return new CVKOff()}};function initTyper(a){a.vietarea=true;a.onkeyup=null;if(!supported){return}a.onkeypress=vietTyping;a.getCurrentWord=getCurrentWord;a.replaceWord=replaceWord;a.onkeydown=onKeyDown;a.onmousedown=onMouseDown}function getEvt(a){return document.all?event.keyCode:(a&&a.which)?a.which:0}function onKeyDown(b){var a=getEvt(b);if((a==10)||(a==13)){reset(1);linebreak=1}else{if((a<49)&&(a!=16)&&(a!=20)){linebreak=0;reset(a==32)}}return true}function onMouseDown(a){reset(0);linebreak=0;return true}function vietTyping(d){var b=getEvt(d);if(theTyper){theTyper.value=this.getCurrentWord()}else{theTyper=new CVietString(this.getCurrentWord())}var a=(b>32)&&theTyper.typing(b);if(a){this.replaceWord(theTyper.value)}return !a}function getCurrentWord(){if(!document.all){return this.value}var b=this.document.selection.createRange();var c=-17;do{var a=b.duplicate();a.moveStart("character",c++)}while(a.parentElement()!=this&&c<0);this.curword=a.duplicate();return a.text}function replaceWord(a){if(!document.all){this.value=a;return}this.curword.text=a;this.curword.collapse(false)}function CVietString(a){this.value=a;this.keymode=initKeys();this.charmap=initCharMap();this.ctrlchar="-";this.changed=0;this.typing=typing;this.Compose=Compose;this.doConvertIt=doConvertIt;this.findCharToChange=findCharToChange;return this}function typing(a){this.changed=0;this.ctrlchar=String.fromCharCode(a);if(linebreak){linebreak=0}else{this.keymode.getAction(this)}return this.changed}function doConvertIt(c){var a=1,b=c.length;this.value=c.charAt(0);while(a<b){this.ctrlchar=c.charAt(a++);this.changed=0;this.keymode.getAction(this);if(!this.changed){this.value+=this.ctrlchar}}return this.value}function Compose(a){var b=this.findCharToChange(a);if(!b){return}var c;if(b[0]=="\\"){c=[1,this.ctrlchar,1]}else{if(a>6){c=this.charmap.getAEOWD(b[0],a,b[3])}else{c=this.charmap.getDau(b[0],a)}}if(!(this.changed=c[0])){return}this.value=this.value.replaceAt(b[1],c[1],b[2]);if(!c[2]){spellerror=1;this.value+=this.ctrlchar}}function findCharToChange(h){var l=this.charmap.lastCharsOf(this.value,5);var a=0,g=l[0][0],k=0;if(g=="\\"){return[g,this.value.length-1,1]}if(h==15){while(!(k=this.charmap.isVD(g))){if((g<"A")||(a>=4)||!(g=l[++a][0])){return null}}}else{while("cghmnptCGHMNPT".indexOf(g)>=0){if((g<"A")||(a>=2)||!(g=l[++a][0])){return null}}}g=l[0][0].toLowerCase();var n=l[1][0].toLowerCase();var e=l[2][0].toLowerCase();if(a==2&&h<6){var o=n+g;if((o!="ng")&&(o!="ch")&&(o!="nh")){return null}if(o=="ch"&&h!=1&&h!=3){return null}}else{if(a==1&&h<6){if((g=="g")||(g=="h")){return null}if("cpt".indexOf(g)>=0&&h!=1&&h!=3){return null}}else{if(a==0&&h!=15){if((k=this.charmap.isVowel(l[1][0]))&&("uyoia".indexOf(g)>=0)&&!this.charmap.isUO(n,g)&&!((n=="o"&&g=="a")||(n=="u"&&g=="y"))&&!((e=="q"&&n=="u")||(e=="g"&&n=="i"))){++a}if(g=="a"&&(h==9||h==7)){a=0}}}}g=l[a][0];if((a==0||k==0)&&h!=15){k=this.charmap.isVowel(g)}if(!k){return null}var d=l[a][1],b=0;if((a>0)&&(h==7||h==8||h==11)){b=this.charmap.isUO(l[a+1][0],g);if(b){k=b;d+=l[++a][1];b=1}}var m=this.value.length;for(var f=0;f<=a;f++){m-=l[f][1]}return[k,m,d,b]}function CVietCharMap(){this.vietchars=null;this.length=149;return this}CVietCharMap.prototype.charAt=function(b){var a=this.vietchars[b];return a?String.fromCharCode(a):null};CVietCharMap.prototype.isVowel=function(b){var a=this.length-5;while((b!=this.charAt(a))&&a){--a}return a};CVietCharMap.prototype.isVD=function(b){var a=this.length-5;while((b!=this.charAt(a))&&(a<this.length)){++a}return(a<this.length)?a:0};CVietCharMap.prototype.isCol=function(c,d){var a=12,b=c+1;while(a>=0&&(this.charAt(a*12+b)!=d)){--a}return(a>=0)?a*12+b:0};CVietCharMap.prototype.isUO=function(b,d){if(!b||!d){return 0}var c=this.isCol(9,b);if(!c){c=this.isCol(10,b)}if(!c){return 0}var a=this.isCol(6,d);if(!a){a=this.isCol(7,d)}if(!a){a=this.isCol(8,d)}if(!a){return 0}return[c,a]};CVietCharMap.prototype.getDau=function(b,f){var a=(b<25)?0:1;var d=(b-1)%24+1;var c=(f==6)?0:f;if((f==6)&&!a){return[0]}var g=c*24+d;if(g==b){g=d}var e=this.charAt(g);if(!e){e=this.lowerCaseOf(0,g)}return[1,e,g>24||f==6]};var map=[[7,7,7,8,8,8,9,10,11,15],[0,3,6,0,6,9,0,3,6,0],[1,4,7,2,8,10,1,4,7,1]];CVietCharMap.prototype.getAEOWD=function(d,h,b){var j=0,a=b?d[0]:d;var e=(h==15)?(a-1)%2:(a-1)%12;if(b){base=d[1]-(d[1]-1)%12;if(h==7||h==11){j=this.charAt(a-e+9)+this.charAt(base+7)}else{if(h==8){j=this.charAt(a-e+10)+this.charAt(base+8)}}return[j!=0,j,1]}var l=-1,k=0,f=0;while(k==0&&++l<map[0].length){if(map[0][l]==h){if(map[1][l]==e){k=map[2][l]-e}else{if(map[2][l]==e){k=map[1][l]-e}}}}if(k==0){if(h==7&&(e==2||e==8)){k=-1}else{if((h==9&&e==2)||(h==11&&e==8)){k=-1}else{if(h==8&&(e==1||e==7)){k=1}}}f=1}else{f=(k>0)}var g=this.charAt(a+k);if(!g){g=this.lowerCaseOf(0,a+k)}return[k!=0,g,f]};CVietCharMap.prototype.lastCharsOf=function(c,a){if(!a){return[c.charAt(c.length-1),1]}var b=new Array(a);for(var d=0;d<a;d++){b[d]=[c.charAt(c.length-d-1),1]}return b};String.prototype.replaceAt=function(b,c,a){return this.substring(0,b)+c+this.substring(b+a)};function CVietUniCodeMap(){var a=new CVietCharMap();a.vietchars=new Array("UNICODE",97,226,259,101,234,105,111,244,417,117,432,121,65,194,258,69,202,73,79,212,416,85,431,89,225,7845,7855,233,7871,237,243,7889,7899,250,7913,253,193,7844,7854,201,7870,205,211,7888,7898,218,7912,221,224,7847,7857,232,7873,236,242,7891,7901,249,7915,7923,192,7846,7856,200,7872,204,210,7890,7900,217,7914,7922,7841,7853,7863,7865,7879,7883,7885,7897,7907,7909,7921,7925,7840,7852,7862,7864,7878,7882,7884,7896,7906,7908,7920,7924,7843,7849,7859,7867,7875,7881,7887,7893,7903,7911,7917,7927,7842,7848,7858,7866,7874,7880,7886,7892,7902,7910,7916,7926,227,7851,7861,7869,7877,297,245,7895,7905,361,7919,7929,195,7850,7860,7868,7876,296,213,7894,7904,360,7918,7928,100,273,68,272);return a}function CVietKeys(){this.getAction=function(a){var b=this.keys.indexOf(a.ctrlchar.toLowerCase());if(b>=0){a.Compose(this.actions[b])}};return this}function CVKOff(){this.off=true;this.getAction=function(){};return this}function CTelexKeys(){var a=new CVietKeys();a.keys="sfjrxzaeowd";a.actions=[1,2,3,4,5,6,9,10,11,8,15];a.istelex=true;return a}function CVniKeys(){var a=new CVietKeys();a.keys="0123456789";a.actions=[6,1,2,4,5,3,7,8,8,15];return a}function CViqrKeys(){var a=new CVietKeys();a.keys="\xB4/'`.?~-^(*+d";a.actions=[1,1,1,2,3,4,5,6,7,8,8,8,15];return a}function Rundate(){var a=new Date();var k=a.getHours();var h=a.getMinutes();var c=a.getSeconds();var b=a.getDate();var d=a.getDay();var f=a.getMonth()+1;var g=a.getFullYear();var j="";if(k>12){k-=12}if(k==0){k=12}if(k<10){k="0"+k}if(h<10){h="0"+h}if(c<10){c="0"+c}switch(d){case 0:j="Chủ nhật, ";break;case 1:j="Thứ hai, ";break;case 2:j="Thứ 3, ";break;case 3:j="Thứ 4, ";break;case 4:j="Thứ 5, ";break;case 5:j="Thứ 6, ";break;case 6:j="Thứ 7, "}var e="Cập nhật "+k+":"+h+" , "+j+"Ngày "+b+" , tháng "+f+" , "+g;$(".datetime").html(e)}function loadjscssfile(a,c){var b;if(c=="js"){b=document.createElement("script");b.setAttribute("type","text/javascript");b.setAttribute("src",a)}else{if(c=="css"){b=document.createElement("link");b.setAttribute("rel","stylesheet");b.setAttribute("type","text/css");b.setAttribute("href",a)}}if(typeof b!="undefined"){document.getElementsByTagName("head")[0].appendChild(b)}}String.prototype.toSubString=function(b){var c=this;if(c==""||c.Length<=b){return c}var a=c.lastIndexOf(" ");c=c.substring(0,Math.min(c.length,b));if(c.length>a){c=c.substring(0,a)}return c};$.fn.trimContent=function(b,g,a){if(!g){g=$(this)}var e=$(this).text().length;var f=($(g).outerHeight()>b&&e>0);while($(g).outerHeight()>b&&e>0){e--;var d=$(this).html().toSubString(e);$(this).html(d)}if(f){if(a){$(this).html($(this).html().toSubString($(this).html().length-3)+a)}else{$(this).html($(this).html().toSubString($(this).html().length-3)+"...")}}};$.fn.trimLine=function(f,b){var g=$(this).html().length;var d=parseFloat($(this).css("line-height"))*f;if(isNaN(d)){d=parseFloat($(this).css("font-size").replace("px",""))*f}var h=($(this).height()>d&&g>0);var e=new RegExp("</?[a-z0-9]+[^>]*/?>$");while($(this).height()>d&&g>0){if(e.test($(this).html())){$(this).find("*:last-child").remove();g=$(this).html().length}else{g--;var a=$(this).html().toSubString(g);$(this).html(a)}}if(h){$(this).html($(this).html().toSubString($(this).html().length-3)+"...")}if(true===b){$(this).css({"min-height":d+"px"})}};var EnumLiveStatus={Pending:0,Living:1,Finished:2};var apiUrl="http://s.gamek.vn";function GetCountComment(b,a){$.ajax({url:apiUrl+"/Handlers/GetCountCommentByVietId.ashx",data:{m:"mingcommentcount",url:b},dataType:"json",success:function(c){if(c.Success){if(c.Data!="null"){var d=parseInt(c.Data);$(a).find("b").html(d)}}}})}function removeHTMLTags(b){var a=document.getElementById(b).value;a=a.replace(/&(lt|gt);/g,function(e,d){return(d=="lt")?"<":">"});var c=a.replace(/<\/?[^>]+(>|$)/g,"");while(c.indexOf('"')!=-1){c=c.replace('"',"")}while(c.indexOf("'")!=-1){c=c.replace("'","")}document.getElementById(b).value=c;return c}function require_txt(b,a){if(document.getElementById(b).value==""){alert(a);document.getElementById(b).focus();return false}return true}function ValidateSearch(){if(!require_txt("searchinput","Bạn chưa nhập từ khóa")){return false}key=removeHTMLTags("searchinput");window.location.href="/tim-kiem.chn?keyword="+encodeURIComponent(key);return false}function HideText(){$("#searchinput").val("")}function ShowText(){var a=$("#searchinput");if(a){a.val(a.val().trim())}if(a!=null&&a.val().length==0){$("#searchinput").val("Tìm kiếm...")}}function BBEnterPress1(b){var a;if(b&&b.which){b=b;a=b.which}else{b=window.event;a=b.keyCode}if(a==13){ValidateSearch();return false}return true}var LC=readCookie("__RC")==4?1:2;function readCookie(f){var b=f+"=";var d,e=document.cookie.split(";");for(var a=0;a<e.length;a++){d=e[a];while(d.charAt(0)==" "){d=d.substring(1,d.length)}if(d.indexOf(b)==0){return d.substring(b.length,d.length)}}}function isSmartPhone(){return(navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|Windows Phone|webOS)/i)!=null)}function SmartPhoneEmbed(c,d,e,i){if(isSmartPhone()){var k=$(c).find("object");var f="";var g=$(k).find("embed").attr("width");var b=$(k).find("embed").attr("height");var j=false;if(d){g=d}if(e){b=e}if(i){j=i}if(k.length>0){$(k).each(function(h,a){if(h>0){f+=";"}f+=$(a).find("embed").attr("id")});$.ajax({url:apiUrl+"/Handlers/Video/VideoHandler.ashx",data:{m:"html5",key:f,width:g,height:b,auto:j},dataType:"json",type:"GET",success:function(a){if(a.Success){for(var h=0;h<a.Data.length;h++){$(k)[h].outerHTML=a.Data[h].Embed}}}})}}};function JSONscriptRequest(a){this.fullUrl=a;this.noCacheIE="&noCacheIE="+(new Date()).getTime();this.headLoc=document.getElementsByTagName("head").item(0);this.scriptId="YJscriptId"+JSONscriptRequest.scriptCounter++}JSONscriptRequest.scriptCounter=1;JSONscriptRequest.prototype.buildScriptTag=function(){this.scriptObj=document.createElement("script");this.scriptObj.setAttribute("type","text/javascript");this.scriptObj.setAttribute("src",this.fullUrl);this.scriptObj.setAttribute("id",this.scriptId)};JSONscriptRequest.prototype.removeScriptTag=function(){this.headLoc.removeChild(this.scriptObj)};JSONscriptRequest.prototype.addScriptTag=function(){this.headLoc.appendChild(this.scriptObj)};var _host="http://gamek.vn";var _ming="__MingLogin__";function MingInfo(a){$.cookie(_ming,a,{expires:30,path:"/"});MingNotify.init();MingNotify.reloadIFrame();parent.window.location.reload()}var MingNotify={ming_app:"0e279e8e03d18c297341deb9313b79d3",callback:_host+"/MingCallBack.aspx",init:function(){var me=this;if($.cookie(_ming)=="true"){return}$.getScript("http://vietid.net/login/Checksession");mingAuthCallBack=function(data1){if(data1!="null"){var rels=eval("("+data1+")");var strQuery="username="+rels.username+"&email="+rels.email+"&full_name="+rels.full_name+"&id="+rels.id+"&checksum="+rels.checksum;$.getScript("/MingCheckLogin.aspx?"+strQuery);loginCallBack=function(data){if(data!="null"){var html="";html+='<a class="fr" href="javascript:void(0)" onclick="MingNotify.logout();" rel="nofollow">&nbsp;Thoát</a>';html+='<div class="fr"><div id="mingid_notification" class="mingid_notification"></div></div>';html+='<span class="fr" vid="'+data.ID+'">Chào, '+data.UName+"</span>";$(".login").html(html);MINGID_NOTIF_FUNC.initNotif(me.ming_app);setTimeout(function(){$(".login").removeClass("overflow")},2000)}}}}},reloadIFrame:function(){if($("#mingid_comment_iframe").length>0){$("#mingid_comment_iframe").attr("src",$("#mingid_comment_iframe").attr("src"))}if($(".mingid_comment_iframe").length>0){$(".mingid_comment_iframe").each(function(){$(this).attr("src",$(this).attr("src"))})}return false},logout:function(){var b=this;if($("#basic-modal-content").length>0){$("#basic-modal-content").remove()}var a=$("<div />").attr("id","basic-modal-content").appendTo($("body"));a.modal();$("<iframe style='background:none;border:none;height:500px;width:580px;'/>").attr("src",String.format("http://vietid.net/OauthServerV2/logout?app_key={0}&call_back={1}",b.ming_app,b.callback)).appendTo(a);$(".simplemodal-close").click(function(){window.location.reload(true)})},openPopup:function(){if($("#basic-modal-content").length>0){$("#basic-modal-content").remove()}var a=$("<div />").attr("id","basic-modal-content").appendTo($("body"));a.modal();$("<iframe style='background:none;border:none;height:500px;width:580px;'/>").attr("src","/MingLogin.aspx").appendTo(a);return false},logoutOnSite:function(){$.cookie(_ming,true,{expires:30,path:"/"});parent.window.location.reload()},closePopup:function(){$.modal.close()}};var photoDetail={arr:new Array(),divElement:".rightdetail",imgSr:"vcmedia.vn",app_key:"bcde0a3ae781fab61c493b6f84a5fb05",title:"",sapo:"",width:0,height:0,photoWidth:0,flag:true,_admZone:66,allowFullScreen:true,isStop:false,init:function(){var a=this;if(a.isStop){return}var b="";a.arr=new Array();a.title=$(".topdetail h1").text();a.sapo=$(".rightdetail h2").text();var c=$(a.divElement).find('img[src*="'+a.imgSr+'"]');c.each(function(){if(!$(this).parent().is("a")&&$(this).width()>170){b+=String.format('<li><a href="javascript:void(0)"><img src="{0}" alt="" /></a></li>',$(this).attr("src"));a.arr.push($(this).attr("src"))}});console.log(a.arr);c.hover(function(){if(!$(this).parent().is('a[target="_blank"]')&&$(this).width()>170){$(this).css("cursor","-webkit-zoom-in");$(this).css("cursor","-moz-zoom-in")}},function(){if(!$(this).parent().is('a[target="_blank"]')&&$(this).width()>170){$(this).css("cursor","none")}});c.off("click").on("click",function(){if(!$(this).parent().is("a")&&$(this).width()>170){a.openPopup();a.bindData($(this).attr("src"))}});if(window.location.hash!=""){if(window.location.hash.split("#")[1].indexOf("lb")!=-1){lb=window.location.hash.split("#")[1].replace("lb","");if($(a.divElement).find('img[lb="'+lb+'"]')!=null){a.openPopup();a.bindData($(a.divElement).find('img[lb="'+lb+'"]').attr("src"))}}}$(".popup-detail-content").hover(function(){$(this).css("cursor","pointer")});$(".popup-slide ul li").hover(function(){$(this).css("opacity","1")},function(){$(this).css("opacity","0.3")});$("#popup-detail-left").hover(function(){if(a.isZoom()||!a.flag){$(".popup-detail-content .zoom").fadeIn()}else{$(".popup-detail-content .zoom").hide()}if($.inArray($(".popup-slide li.active img").attr("src"),a.arr)==0){if(a.arr.length==1){return}$(".popup-detail-content .next").show()}else{if($.inArray($(".popup-slide li.active img").attr("src"),a.arr)==a.arr.length-1){$(".popup-detail-content .prev").show()}else{$(".popup-detail-content .prev, .popup-detail-content .next").fadeIn()}}},function(){$("#popup-detail-left .zoom").hide();$(".popup-detail-content .prev, .popup-detail-content .next").hide()})},bindData:function(h){var g=this;if(h==""){return}h=h.replace("/690/","/640/");g.reset();$(window).resize(function(){g.resize(g.width,g.height)});$(".popup-detail-content .prev, .popup-detail-content .next").hide();$("#popup-detail-bg").scrollTop(0);$(".popup-detail-content li").removeClass("active");if($.inArray(h,g.arr)==0){$(".popup-detail-content .next").show()}else{if($.inArray(h,g.arr)==g.arr.length-1){$(".popup-detail-content .prev").show()}else{$(".popup-detail-content .prev, .popup-detail-content .next").fadeIn()}}var d="";var f="";var b=0;var c=0;var e="";for(var a=0;a<g.arr.length;a++){if(g.arr[a]==h){if(typeof(g.arr[a+1])!="undefined"){d=g.arr[a+1]}if(typeof(g.arr[a-1])!="undefined"){f=g.arr[a-1]}break}}if($(g.divElement).find('img[src="'+h+'"]').attr("w")!=null){b=$(g.divElement).find('img[src="'+h+'"]').attr("w")}else{b=$(g.divElement).find('img[src="'+h+'"]').width()}if($(g.divElement).find('img[src="'+h+'"]').attr("h")!=null){c=$(g.divElement).find('img[src="'+h+'"]').attr("h")}else{c=$(g.divElement).find('img[src="'+h+'"]').height()}if($(g.divElement).find('img[src="'+h+'"]').attr("lb")!=null){e=encodeURIComponent("#lb"+$(g.divElement).find('img[src="'+h+'"]').attr("lb"))}g.width=b;g.height=c;$(".popup-detail-content > img").hide().attr("src",h.replace(/zoom\/([0-9]+)_([0-9]+)\/|thumb_w\/([0-9]+)\//,"")).delay(800).fadeIn();g.resize(b,c);g.callBack(d,f);$(document).off("keyup").on("keyup",function(i){g.keyUp(i,d,f)});if(g.title!=null){$(".popup-detail-right-top h2").text(g.title)}if(g.allowFullScreen&&g.isZoom()){g.resizeFullScreen(b,c);$(".popup-detail-content .zoom").fadeIn();g.flag=false}if(g.isZoom()||!this.flag){$(".popup-detail-content .zoom").fadeIn()}else{$(".popup-detail-content .zoom").hide()}$(".popup-detail-content").off("mousemove").on("mousemove",function(k){var j=parseInt($(this).width()/2);var i=parseInt(k.pageX-$(this).position().left);if(i>=j){$("#popup-detail-left .next").addClass("active");$("#popup-detail-left .prev").removeClass("active")}else{$("#popup-detail-left .prev").addClass("active");$("#popup-detail-left .next").removeClass("active")}$(this).off("click").on("click",function(){if(i>j){if(d!=null){g.bindData(d)}else{return false}}else{if(f!=null){g.bindData(f)}else{return false}}})})},genMingComment:function(k){var i=this;var d="100%";var g=i.app_key;var h=$.base64Encode(encodeURI(i.title));var a="";if($(i.divElement).find('img[src="'+k+'"]').attr("lb")!=null){a=window.location.protocol+"//"+window.location.host+window.location.pathname+lb}else{a=k}var e=5;var l=1;var b=0;var c=0;var j="mingid_comments_content_popup";var f="mingId_frame_lightbox";$("#mingid_comments_content_popup").empty();MINGID_IFRAME_FUNC.mingidGenIfram(d,238,g,a,h,e,l,b,c,a,j,f,0,0,2);setTimeout(function(){i.showRightPanelScroll()},2000)},openPopup:function(){if(typeof(admDrawIframe)==="function"){admDrawIframe()}$("#popup-detail-bg").fadeIn("slow");$("body").addClass("no-scroll");$("#scroll_top").hide()},closePopup:function(){$("#popup-detail-bg").fadeOut("slow");$("body").removeClass("no-scroll");$(document).off("keyup")},resize:function(u,s){var g=700;var e=700;var a=700;var q=400;var l=90;var p=70;var d=window.innerWidth-100;var t=window.innerHeight-75;d=(d<a)?a:d;t=(t<q)?q:t;var m=320;var o=15;var b=30;var r=d-$("#popup-detail-right").innerWidth();r=(r<e)?e:r;var k=r;if(u<=r){k=u}else{k=r}var f=parseInt(k*s/u);if(f>t){f=t-l;k=parseInt(u*f/s)}if(k<g){k=g;f=parseInt(k*s/u)}while(f>t){k=k-10;f=parseInt(k*s/u)}$("#popup-detail-wrap").css({width:d});$("#popup-detail-left .move").hide();$("#popup-detail-left, .popup-detail-content").css("width",r);if($("#popup-detail-left ul").html()!=""){$("#popup-detail-left, .popup-detail-content").css("height",t-p)}else{$("#popup-detail-left, .popup-detail-content").css("height",t)}$("#popup-detail-left .move").hide();$("#popup-detail-right").css("height",t);var j=document.documentElement.clientWidth;var h=document.documentElement.clientHeight;var n=$("#popup-detail-wrap").width();var c=$("#popup-detail-wrap").height();var i=(j/2-n/2-10)>0?j/2-n/2-10:0;$("#popup-detail-wrap").css({left:i});this.flag=true;$(".popup-detail-content > img").attr("width",k).attr("height",f)},callBack:function(b,a){var c=this;$("#popup-detail-left .next").off("click").on("click",function(){if(b!=null){c.bindData(b)}else{return false}});$("#popup-detail-left .prev").off("click").on("click",function(){if(a!=null){c.bindData(a)}else{return false}});$("#popup-detail-left .zoom").off("click").on("click",function(){if(c.isZoom()&&c.flag){c.flag=false;c.resizeFullScreen(c.width,c.height)}else{$("#popup-detail-left .move").hide();$(".popup-detail-right-box").css({position:"relative",left:"0",top:"0"});$("#popup-detail-bg").off("scroll");$(".popup-detail-content .next").css({position:"absolute",right:"30px"});$(".popup-detail-content .prev").css({position:"absolute",left:"30px"});c.flag=true;c.resize(c.width,c.height)}$(".popup-detail-content .zoom").css({position:"absolute",right:"20px"});return false});$(".move").off("click").on("click",function(){var d=$("#popup-detail-bg").scrollTop();$("#popup-detail-bg").animate({scrollTop:d+150},"slow");return false});$(".popup-slide ul li a img").off("click").on("click",function(){if($(this).parent().parent("li").hasClass("active")){return}c.bindData($(this).attr("src"));return});$("#popup-detail-wrap").click(function(){return false});$("#popup-detail-bg").click(function(){c.closePopup()})},keyUp:function(c,b,a){switch(c.keyCode){case 27:photoDetail.closePopup();break;case 37:if(a!=null){photoDetail.bindData(a)}break;case 39:if(b!=null){photoDetail.bindData(b)}break}},resizeFullScreen:function(c,d){var i=window.innerWidth-100;var g=window.innerHeight-75;var h=15;var b=70;var j=$("#popup-detail-right").innerWidth()+$("#popup-detail-wrap").position().left+45+"px";var e=$("#popup-detail-wrap").position().left+30+"px";$("#popup-detail-bg").scrollTop(0);if(c>$("#popup-detail-left").width()){$(".popup-detail-content > img").attr({width:$("#popup-detail-left").width(),height:Math.round($("#popup-detail-left").width()*d/c)})}else{$(".popup-detail-content > img").attr({width:c,height:d})}$("#popup-detail-left").css("height","auto");$(".popup-detail-content .next").css({position:"fixed",right:j});$(".popup-detail-content .prev").css({position:"fixed",left:e});if($("#popup-detail-left ul").html()!=""){if(this.allowFullScreen){$("#popup-detail-right").css("height",$(".popup-detail-content > img").height()+b)}else{$("#popup-detail-right").css("height",$("#popup-detail-left").height()+b)}}else{$("#popup-detail-left, .popup-detail-content").css("height",g);if(this.allowFullScreen){$("#popup-detail-right").css("height",$(".popup-detail-content > img").height())}else{$("#popup-detail-right").css("height",$(".popup-detail-content").height())}}var f=document.documentElement.clientWidth;var k=$("#popup-detail-wrap").width();var a=$("#popup-detail-left").width()+(f/2-k/2-10)+h;$("#popup-detail-left .move").show();$("#popup-detail-bg").scroll(function(){var l=$(this).scrollTop();if(l>35){$(".popup-detail-right-box").css({position:"fixed",left:a,top:"0",height:g+40});$("#popup-detail-left .move").hide();$(".popup-detail-content .zoom").css({position:"fixed",right:$("#popup-detail-right").innerWidth()+$("#popup-detail-wrap").position().left+40+"px"})}else{$(".popup-detail-right-box").css({position:"relative",left:"0",top:"0"});$(".popup-detail-content .zoom").css({position:"absolute",right:"20px"})}})},isZoom:function(){var a=false;if((parseInt($(".popup-detail-content > img").attr("width"),10)<parseInt(this.width,10)&&parseInt($(".popup-detail-content > img").attr("width"),10)<parseInt($("#popup-detail-left").width(),10))||!this.flag){a=true}return a},album_load:function(l){var j=this;var h=0;var c=50;var m=[];var f=8;var b=0;var k=$.inArray(l,j.arr);var a=0;var d=k+1;j.photoWidth=$("#popup-detail-left").width();$('.popup-slide li img[src="'+l+'"]').parent().parent().addClass("active");if(j.arr.length>5){if($(".popup-slide ul").html()!=""){for(g=0;g<j.arr.length;g++){m=j.getImgSize(j.arr[g]).split("|");if(g>0){h=h+f}h+=parseInt(m[0]*c/m[1]);if(h>j.photoWidth){continue}a=g+1}if(j.photoWidth<h+(a*f)){$(".popup-slide li").css("float","left").parent().css("width","5000px");if(d<=5){$(".popup-slide ul").animate({left:"0"},500)}else{if(j.arr.length-k<=5&&j.arr.length>10){return}for(var g=0;g<d-5;g++){b+=$('.popup-slide li img[src="'+j.arr[g]+'"]').parent().parent().outerWidth()}var e=b+($(".popup-slide ul").position().left-10);$(".popup-slide ul").animate({left:"-="+e},500)}}}}},getImgSize:function(a){var c=new Image();c.src=a;var b=$(c).ready(function(){return{width:c.width,height:c.height}});return b[0]["width"]+"|"+b[0]["height"]},adBoxHeight:function(){var b=0;var a=160;if(parseInt($("#popup-detail-right").height())>768){b=$("#popup-detail-right").height()-$(".popup-detail-right-top").innerHeight()-a*2}else{b=$("#popup-detail-right").height()-$(".popup-detail-right-top").innerHeight()-a}return b},showRightPanelScroll:function(){try{if($(".popup-detail-right-box").children(":first").css("top").indexOf("-")!=-1){$(".popup-detail-right-box").children(":first").css({top:0})}$(".popup-detail-right-box").slimScrollCustom({railVisible:true,railOpacity:0.4,largeSize:"11px",height:1553})}catch(a){}},reset:function(){$("#popup-detail-left .move").hide();$(".popup-detail-content .popup-slide").hide();$(".popup-slide li").removeClass("active");$(".popup-detail-right-box").css({position:"relative",left:"0",top:"0"});$("#popup-detail-bg").off("scroll");$(".popup-detail-content .next").css({position:"absolute",right:"30px"});$(".popup-detail-content .prev").css({position:"absolute",left:"30px"});this.flag=true},destroy:function(b){var a=this;$(document).ready(function(){if(b){$(b).find('img[src*="'+a.imgSr+'"]').off("click").off("hover")}else{$(a.divElement).find('img[src*="'+a.imgSr+'"]').off("click").off("hover")}})}};$(document).ready(function(){photoDetail.init()});var detail={init:function(){var d=this;if($(".detail").length>0){d.genVideo();var a=$(".detail").find(".gamek_box_games_profile");$.each(a,function(){d.genBoxVote($(this).attr("id"))});if($("#hdGameId").val()>0){CheckLogin(null,"null");d.genBoxGame("#gate_game_detail","gate_game_detail");if($("#hdGameId").val()=="242"){var b="https://www.facebook.com/pages/H%E1%BB%99i-Anti-tr%E1%BA%BB-tr%C3%A2u-Li%C3%AAn-Minh-Huy%E1%BB%81n-Tho%E1%BA%A1i/231956986999865?ref=hl";var c='<a href="'+b+'" target="_blank" rel="nofollow"><img src="http://gamek4.vcmedia.vn/images/logo_lol.jpg" alt="lol" /></a><span>LIKE để nhận thông tin mới nhất về Liên Minh Huyền Thoại trên Facebook</span>';c+='<div class="fb-like" data-href="'+b+'" data-send="false" data-width="390" data-show-faces="true"></div>';$("#gate_game_vote").html('<div class="lol">'+c+"</div>");$("#gate_game_vote").children().unwrap()}else{d.genBoxGame("#gate_game_vote","gate_game_vote")}}if($("#gate_game_vote").length>0&&$('div[id^="liketype_"]').length>0){var f=$('div[id^="liketype_"]');var e=f.attr("id").split("_")[1];if(!isNaN(e)&&e!=""){d.genBoxTagLike(f,e)}else{f.remove()}}}},genBoxVote:function(c){var b=c.replace("gamek_box_games_profile_","");var a=String.format('<iframe src="/Ajax/BoxVoteInContent.aspx?GameID={0}" height="160" frameborder="0" scrolling="no"></iframe>',b);$("#"+c).html(a)},genVideo:function(){if(isiPad()){var a=$(".detail").find("object");var b="";if(a.length>0){$(a).each(function(d,c){if(d>0){b+=";"}b+=$(c).find("embed").attr("id")});$.ajax({url:"/Handlers/VideoHandler.ashx",data:{m:"html5",key:b,width:"511",height:"400",auto:"false"},dataType:"json",type:"GET",success:function(c){if(c.Success){for(var d=0;d<c.Data.length;d++){$(a)[d].outerHTML=c.Data[d].Embed}}}})}}},genBoxGame:function(a,b){$.ajax({url:apiUrl+"/Ajax/RenderControl.aspx",data:{control:b,path:"detail",gameId:$("#hdGameId").val(),news_id:$("#hfPostId").val()},type:"GET",success:function(c){$(a).html(c);if($(a).children().length>0){$(a).children().unwrap()}}})},genLikeFace:function(a,d,b,c){$.ajax({url:"https://www.facebook.com",dataType:"script",success:function(f,h,e){if(e.status==200){var g='<iframe style="float:left;width:'+d+";height:"+b+'" src="http://www.facebook.com/plugins/like.php?href='+c+'&amp;send=false&amp;layout=standard&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;locale=vi_VN" scrolling="no" frameborder="0" allowTransparency="true"></iframe>';$(a).after(g);$(a).remove()}},error:function(){}});return false},genBoxTagLike:function(b,a){$.ajax({url:apiUrl+"/Handlers/RequestHandler.ashx",data:{m:"boxliketag",tId:a},dataType:"json",type:"GET",success:function(j){if(j.Success){var d=j.Data.YesCount==0?0:j.Data.YesCount;var e=j.Data.NoCount==0?0:j.Data.NoCount;var i=j.Data.Total==0?0:Math.round((d*100)/j.Data.Total);var f=j.Data.Total==0?0:Math.round((e*100)/j.Data.Total);var g='<div class="tboxxemthem"><p class="tpboxemthem"><a href="'+j.Data.Url+'" target="_blank">Xem thêm thông tin về '+j.Data.Title+'<span style="margin:5px">tại đây</span></a></p></div>';var h='<div class="tboxnhung2"><div class="sprite tboxnhung-vote"><div class="thboxnhung-vote"><a href="'+j.Data.Url+'" target="_blank" style="float:left"><img src="'+j.Data.Img+'" alt="" width="88px" height="88px" /></a><div class="tconten-boxvote"><p class="tnamegamevote"><a href="'+j.Data.Url+'" target="_blank">'+j.Data.Title+'</a></p><p class="pdanhgiasp">Bạn có thích sản phẩm này không?</p><p class="pnhungthich"><a href="javascript:void(0)" onclick="CheckLogin(\''+a+',1,null\', \'detail.voteLikeTag\')">Thích</a></p></div><div class="tboxrate" style="width: 106px;text-align:center"><p class="trate">'+d+'</p><p class="tnumbervote">Lượt thích</p></div><div style="clear:both"></div></div></div>'+j.Message+g;b.html(h);try{$("#specLike").text(d)}catch(c){}$(".box_like_content .timcount").text(d);if(b.children().length>0){b.children().unwrap()}}else{alert(j.Message)}}})},voteLikeTag:function(c,d,b,e){var a=e.split("|")[0];$.ajax({type:"POST",url:"/Handlers/VoteHandler.ashx",data:{m:"like",tagid:c,type:d,vId:a},dataType:"json",success:function(f){if(f.Success){if(f.Data>0){$(b).text(f.Data)}alert("Bạn đã bình chọn thành công!")}else{alert(f.Message)}}})},showSidebar:function(){if($(".sidebar_wrap .leftdetail").height()>$(".rightdetail").height()){$(".tinhot").hide()}},UpdateVideoNewFrameOnTop:function(){var a=$(".videotop");if(typeof(a)!="undefined"&&a!=null&&a.length>0){var d=a.html().replace("&amp;","&").trim();var c=a.find("div").attr("src").replace("&amp;","&").trimEnd("&");d=d.replace("div","iframe").replace("/div","/iframe");var g="0;0;0;0";try{g=admParamTvc(0)}catch(f){console.log("Loi video moi:"+f)}c=c+"&_admParamTvc="+g;var b=$(d);b.attr("src",c);a.html(b)}},UpdateVideoNewFrameOnContent:function(){$(".rightdetail_content").find(".VCSortableInPreviewMode[type=VideoStream]").each(function(){var c=$(this).attr("data-width");var d=$(this).attr("data-height");var a=$(this).attr("data-src");var b=$(this).attr("videoid");a=a.replace("&amp;","&");var i="0;0;0;0";try{i=admParamTvc(0)}catch(h){console.log("Loi video moi:"+h)}a=a+"&_videoId="+b;a=a+"&_admParamTvc="+i;var f='<iframe width="'+c+'" height="'+d+'" src="'+a+'" frameborder="0" allowfullscreen webkitallowfullscreen mozallowfullscreen oallowfullscreen msallowfullscreen scrolling="no">';$(this).prepend(f);var g=1;$(".rightdetail_content #videoid_"+b).each(function(){if(g==2){$(this).remove()}g++});$(".rightdetail_content").find(".VCSortableInPreviewMode[type=VideoStream]").css("text-align","center")})}};var DetailStreamBottom={pageIndex:1,flag:true,init:function(){var a=this;$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>$(document).height()-1000){if(a.pageIndex>3){a.flag=false;$(".load_more").show();$(".per100 > img").remove();$(".footer").fadeIn()}else{a.bindData();$(".load_more").hide()}}});$(".load_more").click(function(){a.flag=true;a.bindData();$(".load_more").hide()})},bindData:function(){var a=this;if(a.flag==false){return}a.flag=false;$.ajax({url:apiUrl+"/Ajax/DetailStreamBottom.aspx",data:({Page:a.pageIndex,listNewsId:$("#hfPostId").val()}),dataType:"html",beforeSend:function(){$(".per100").addClass("relative").append('<img style="position:absolute;left:38%;" src="http://gamek4.vcmedia.vn/images/loading2.gif" alt="" />')},success:function(b){if(b.trim()!=""){$(b).appendTo(".newsupdate > ul");$(".newsupdate > ul li.fade-out").removeClass("fade-out");a.pageIndex++;a.flag=true;hideText.home();videoIframe.pushArrIframe(".newsupdate ul");$(".newsupdate >ul li.locks, .newsupdate >ul li.locked").each(function(){var c=$(this).find(">a").attr("href");$('.newsupdate >ul li:not(".locked, .locks") > a[href="'+c+'"]').parent().remove()})}else{$(".load_more").remove();$(".per100 > img").remove()}}})},getGroupItem:function(c,b,d,f){var h="top";var e=[];var g=$("#flagLi"+d).index()+f;var a=$("#flagLi"+d).index()+f;$("#"+c).each(function(){var i=$(this).children("li");i.each(function(o){if(o+1>=a){$(this).attr("id",c+""+o+""+b);var j=new Object();var k=$(this).find("h3");if(k.children().size()>0){var n=k.children().eq(0);if(n.is("a")){j.title=n.text()}j.href=n.attr("href")}var l=$(this).children().eq(2);j.sapo=l.text();var m=$(this).children().eq(0);if(m.children().size()>0){var n=m.children().eq(0);j.img=n.attr("src")}j.id=c+""+o+""+b;e.push(j)}})});DetailStreamBottom.setGroupItem(e,c,b,d,g)},setGroupItem:function(j,m,g,a,k){var l=k;l=l-2;if(j.length>=3){var n=j[0].title;var p=j[0].img.replace("220_160","310_200");var b=j[0].href;var r=j[0].id;var s=j[1].title;var f=j[1].img.replace("310_200","150_150").replace("220_160","150_150");var c=j[1].href;var d=j[1].id;var q=j[2].title;var o=j[2].img.replace("310_200","150_150").replace("220_160","150_150");var i=j[2].href;var e=j[2].id;var h='<li style="background:#fff;border:none"><div class="boxstream1"><a href="'+b+'" title="'+n+'"><img src="'+p+'" style="width:310px;height:200px" width="310px" height="200px" alt="'+n+'" /></a><h3 class="boxstream1h"><a href="'+b+'" title="'+n+'">'+n+'</a></h3></div><div class="boxstream1-left">    <div class="boxstream2">        <a href="'+c+'" title="'+s+'"><img src="'+f+'" style="width:150px;height:160px" width="150px" height="160px" alt="'+s+'" /></a>        <h3><a href="'+c+'" title="'+s+'">'+s+'</a></h3>    </div>    <div style="margin-top:15px" class="boxstream2">        <a href="'+i+'" title="'+q+'"><img src="'+o+'" style="width:150px;height:160px" width="150px" height="160px" alt="'+q+'" /></a>        <h3><a href="'+i+'" title="'+q+'">'+q+'</a></h3>    </div></div><div style="clear:both"></div></li>';$("#"+m+"> li:eq("+l+")").after(h);$("#"+r).remove();$("#"+d).remove();$("#"+e).remove()}}};var video={Host:"http://gamek.vn",PageIndex:1,ObjectId:"object_gamek",ObjectIdLightbox:"object_gamek_lb",flag:true,pushTitle:"",init:function(){var a=this;a.bindPage(1);a.nowPlaying(0);if(isiPad()){a.html5("#video-embeb",$(".video-highlight-cont li:first a").attr("key"),606,357)}$("#txt_embedcode").val($.trim($("#video-embeb").html()));a.pushTitle=$("head title").text();$("#read_more").hover(function(){$(this).find(">div").fadeIn()},function(){$(this).find(">div").fadeOut()})},click:function(){var a=this;$("#video-paging a").off("click").on("click",function(){if($(this).hasClass("active")){return}if(a.flag==false){return}var b=$(this).attr("rel");a.flag=false;$(document.body).scrollTop($(".video-list").offset().top);$.ajax({url:"/Ajax/VideoList.aspx",data:({page:b,zone:$(".video-menu li.active a").attr("rel"),tagId:$("#hdTagId").val()}),dataType:"html",beforeSend:function(){$("#video-list-content, #divPlaylistVideo").html('<img style="position:absolute;top:25%;left:50%" src="/Images/loading.gif"/>');$("#video-paging").empty()},success:function(c){if(c!=""){$("#video-list-content").html($(c).filter(".video-list-content").wrap());$("#divPlaylistVideo").html($(c).filter("#divPlaylistVideo").html());$("#slideshow").html($(c).filter("#slideshow").html());a.bindPage(b);try{FB.XFBML.parse()}catch(d){}}a.flag=true}})});$(".video-menu li a").off("click").on("click",function(){if($(this).parent().hasClass("active")){return}if(a.flag==false){return}$(".video-menu li").removeClass("active");$(this).parent().addClass("active");var b=1;a.flag=false;$.ajax({url:"/Ajax/VideoList.aspx",data:({page:b,zone:$(this).attr("rel")}),dataType:"html",beforeSend:function(){$("#video-list-content, #divPlaylistVideo").html('<img style="position:absolute;top:25%;left:50%" src="/Images/loading.gif"/>');$("#video-paging").empty()},success:function(c){if(c!=""){$("#video-list-content").html($(c).filter(".video-list-content").wrap());$("#divPlaylistVideo").html($(c).filter("#divPlaylistVideo").html());$("#slideshow").html($(c).filter("#slideshow").html());a.bindPage(b);try{FB.XFBML.parse()}catch(d){}}a.flag=true}})});$(".video-highlight-cont li a").off("click").on("click",function(c){c.preventDefault();if($(this).hasClass("active")){return}a.nowPlaying($(this).parents("li").index());$(".video-info h2 a").text($(this).attr("title"));$(".video-info #video-description").text($(this).parents("li").find('input[name="sapo"]').val());$(".video-info .tag-list").html($(this).parents("li").find(">div").html());var b=a.embedFormat(a.ObjectId,$(this).attr("key"));$("#txt_embedcode").val(b);$("#txt_videolink").val(a.Host+$(this).attr("href"));$(".video-info .share-link .facebook_share_button").attr("href","http://www.facebook.com/sharer.php?u="+a.Host+$(this).attr("href"));$(".fb_social").empty();$(".fb_social").html('<div class="fb-like fl mgr10" data-href="'+a.Host+$(this).attr("href")+'" data-show-faces="true" data-width="450" data-layout="button_count" data-send="false"></div>');try{FB.XFBML.parse($(".fb_social").get(0))}catch(c){}a.callNext("#video-embeb",$(this).attr("key"),a.ObjectId)});$(".video-list-content a").off("click").on("click",function(b){b.preventDefault();if($("#hdTagId").val()==null){a.bindData($(this).attr("rel"),$(this).attr("key"),$(this).attr("title"),$(this).parents(".video-item").find('input[name="sapo"]').val(),$(this).attr("href"),$(this).parents(".video-item").find(">div:hidden").html())}else{window.location.href=$(this).attr("href")}});$(".closevideolb").off("click").on("click",function(b){b.preventDefault();a.closeLightBox()});$(".video_share_button, .video_close_button").off("click").on("click",function(){$(".video_share_wrapper").slideToggle()});$("#txt_embedcode, #txt_videolink").off("click").on("click",function(){$(this).select()})},bindPage:function(d){var f=this;var c="";var e=parseInt(d)-5;var a=parseInt(d)+4;if(e<=0){e=1}if(a<9){a=9}for(var b=e;b<=a;b++){if(b!=d){c+='<a rel="'+b+'" href="javascript:void(0)">'+b+"</a>"}else{c+='<a rel="'+b+'" href="javascript:void(0)" class="active">'+b+"</a>"}}$("#video-paging").html(c);f.click()},callNext:function(b,d,c){if(isiPad()){video.html5(b,d,606,357)}else{var a=this.getFlashPlayer(c);if(c==this.ObjectIdLightbox){a=this.getFlashPlayer(this.ObjectId);if(a!=null){a.openlb()}}else{a.callnext(d)}}},getFlashPlayer:function(a){if(window.document[a]){return window.document[a]}if(navigator.appName.indexOf("Microsoft Internet")==-1){if(document.embeds&&document.embeds[a]){return document.embeds[a]}}else{return document.getElementById(a)}return window.document[a]},changeXml:function(c,b){var a=GetFlashPlayer(c);a.changexml(b)},nowPlaying:function(a){$(".video-highlight-cont li a").removeClass("active").find(".nowplay").remove();$(".video-highlight-cont li:eq("+a+") h2 a img:first").after('<span class="nowplay">(Now playing)</span><img class="nowplay" src="/Images/listvideo/play1.png" />').parent().addClass("active")},html5:function(d,e,c,a,b){$.ajax({url:"/Handlers/VideoHandler.ashx",data:{m:"html5",key:e,width:c,height:a},dataType:"json",type:"GET",success:function(f){if(f.Success){$(d).html(f.Data[0].Embed)}}})},embedFormat:function(a,c){var b='<object height="375" width="606" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="'+a+'">';b+='<param value="http://cache.hosting.vcmedia.vn/?key='+c+'&amp;pname=mediaplayer.swf" name="movie" />';b+='<param value="true" name="allowFullScreen" />';b+='<param value="videotag=true&autostart=true" name="flashvars" />';b+='<param value="always" name="allowscriptaccess" />';b+='<param name="wmode" value="transparent" />';b+='<embed height="375" width="606" src="http://cache.hosting.vcmedia.vn/?key='+c+'&amp;pname=mediaplayer.swf" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" flashvars="videotag=true&autostart=true" quality="high" name="'+a+'">';return b},openLightBox:function(){$("body").addClass("no-scroll");$.blockUI({message:$("#video_lb_wrap")});$(document).keyup(this.keyUp)},closeLightBox:function(){$("body").removeClass("no-scroll");$.unblockUI({message:null});$(document).off("keyup");var a=this.getFlashPlayer(this.ObjectIdLightbox);if(a.closelb!=null){this.getFlashPlayer(this.ObjectIdLightbox).closelb()}var b=this.getFlashPlayer(this.ObjectId);if(b){b.resumeVideo()}this.pushState(this.pushTitle,"/video.chn")},bindData:function(i,h,a,j,c,d){var g=this;a=htmlUnescape(a);g.openLightBox();$(".vd-dt-wp div:first").css("margin-top",Math.abs(($(window).height()-692)/2));var f=g.embedFormat(g.ObjectIdLightbox,h);$("#video_lb_wrap .vddtcontent #video-embeb-lb").html(f);g.callNext("#video-embeb-lb",h,g.ObjectIdLightbox);$("#video-lb-Title").text(a);$("#video-lb-sapo").text(j);$("#video-lb-likefb").html('<iframe src="//www.facebook.com/plugins/like.php?href='+g.Host+c+'&amp;send=false&amp;layout=standard&amp;width=297&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=30&amp;locale=vi_VN" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:297px; height:30px;" allowTransparency="true"></iframe>');$("#video_vc_share").html('<a class="facebook_share_button" target="_blank" href="http://www.facebook.com/sharer.php?u='+g.Host+c+'"></a>');var e=d.split(",");var b=[];$.each(e,function(l,k){b.push(k.replace($(k).text(),"Tags: "+$(k).text()))});$("#read_more div").html(b.join(""));g.pushState(a,c);g.slider(i);g.genBoxComment(a,c,i)},keyUp:function(a){a.preventDefault();if(a.keyCode==27){video.closeLightBox()}},genBoxComment:function(i,j,n){var l="100%";var k="bcde0a3ae781fab61c493b6f84a5fb05";var h=this.Host+"/video/"+n+".chn";var b=$.base64Encode(encodeURI(i));var c=this.Host+j;var d=5;var m=1;var f=0;var a=1;var g="mingid_comments_content_popup";var e="mingid_comments_content_popup_iframe";$("#mingid_comments_content_popup").empty();MINGID_IFRAME_FUNC.mingidGenIfram(l,238,k,h,b,d,m,f,a,c,g,e,0,0,2)},pushState:function(a,b){window.History.pushState(null,a,b)},slider:function(g){$("#slideshow li a").removeClass("active");$('#slideshow li a[rel="'+g+'"]').addClass("active");var a=0;var h=4;var e=$("#slideshow li").length;var b=$("#slideshow li:first").outerWidth(true);var d=h*b;$("#slideshow").css({position:"relative",width:e*b,left:"0"});if($("#slideshow li a.active").size()>0){var f=$("#slideshow li a.active").parent().index();a=Math.floor(f/h);var c="-"+(a*d)+"px";$("#slideshow").css("left",c);$("#plPageInfo").text(a+1)}else{$("#sliderWrapper").slideToggle("fast")}$("#btnSlideMoveRight, #plNextList").off("click").on("click",function(){a++;if(a>=h){a=0}$("#slideshow").stop(true,false).animate({left:"-="+((a*d)+$("#slideshow").position().left)},500);$("#plPageInfo").text(a+1)});$("#btnSlideMoveLeft, #plPreList").off("click").on("click",function(){a--;if(a<0){a=h-1}$("#slideshow").stop(true,false).animate({left:"-="+((a*d)+$("#slideshow").position().left)},500);$("#plPageInfo").text(a+1)});$("#btnShowVideoList").off("click").on("click",function(){$("#sliderWrapper").slideToggle()})}};var cosPlay={PageIndex:1,PageSize:24,page_count:0,like_count:24,flag:true,init:function(){var a=this;a.PageIndex=$("#hidPage").val();var c=$("#hidCurl").val();var d=$("#hidPurl").val();url="";var b=document.location.pathname.replace(/\/page-[0-9]+/,"");$(".menusub-cosplay li").removeClass("active");$('.menusub-cosplay li a[href="'+b+'"]').parent().addClass("active");if($(".pContent ul#tiles").length>0){$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>$(document).height()-1500){if(a.page_count<3){a.scroll(a.PageIndex)}else{$(window).off("scroll");$(".pContent").append('<div class="showmore">Xem tiếp</div>');$(".showmore").on("click",function(){if(c==d){url="/"+c+"/page-"+a.PageIndex+".chn"}else{url="/"+d+"/"+c+"/page-"+a.PageIndex+".chn"}window.location.href=url})}}});$("#tiles li").wookmark({autoResize:true,container:$("ul#tiles"),offset:20,itemWidth:312})}a.imageClick();a.embed();$('.cosplay-embed-header li:not(".last")').click(function(){if($(this).hasClass("active")){return}$(".cosplay-embed-header li").removeClass("active");$(this).addClass("active");a.embed()})},imageClick:function(){$(".photo-box .unlike > img, .cosplay-embed-content .unlike > img, .homecos_title .unlike > img").off("click").on("click",function(){var a=$(this);$.ajax({url:"/Handlers/LikeHandler.ashx",data:({command:"likephoto",id:a.attr("pid"),name:$("#hdLogin").val()}),success:function(b){if(b=="-2"){alert("Bạn đã thích bài này rồi!")}else{a.attr("src","/Images/like.png").off("click").parent().attr("class","like").find(">b").text(b).append("<i></i>");$(".home_cosplay_bottom li a.active").attr("c",b).attr("i","like")}}})})},scroll:function(a){var b=this;if(b.flag==false){return}b.flag=false;$.ajax({url:"/Ajax/Cosplay.aspx",data:({page:a,cat_id:$("#hdCatId").val(),type:$(".menusub-cosplay li.active a").attr("rel")}),dataType:"html",beforeSend:function(){$("#photo-loadding").show()},success:function(c){$("#photo-loadding").hide();if(c!=""){$("#tiles").append(c)}else{$(window).off("scroll");$(".showmore").remove()}b.page_count++;b.PageIndex++;b.flag=true;b.imageClick();b.applyLayout();for(var d=b.like_count;d<$(".photo-box").length;d++){FB.XFBML.parse($(".photo-box").get(d));b.like_count++}}})},applyLayout:function(){var a=$("#tiles li");a.wookmark({autoResize:true,container:$("ul#tiles"),offset:20,itemWidth:312})},embed:function(){var a=this;if($(".cosplay-embed").length>0){$.ajax({url:"/Handlers/LikeHandler.ashx",data:({command:"embed",type:$(".cosplay-embed-header li.active a").attr("rel")}),dataType:"json",beforeSend:function(){$(".cosplay-embed-content").html('<img src="/images/loader.gif" alt="" style="margin:75px 0 0 160px;" />')},success:function(b){var c="<ul>";var d=generateRandom(0,b.length-1);$.each(d,function(e,f){if($(".cosplay-embed-header li.active a").attr("rel")==1){f=e}c+="<li>";c+='<a href="'+b[f].url+'" title="'+b[f].title+'">';c+='<img width="96" height="144" src="'+b[f].src+'" alt="'+b[f].title+'" />';c+="</a>";if(b[f].action){c+='<span class="like">';c+='<img class="fl mgr10" pid="'+b[f].id+'" src="/images/like.png" alt="" />'}else{c+='<span class="unlike">';c+='<img class="fl mgr10" pid="'+b[f].id+'" src="/images/unlike.png" alt="" />'}c+="<b>"+b[f].likecount+"<i></i></b>";c+="</span>";c+="</li>"});c+="</ul>";c+='<img src="/images/btnPrev.png" alt="Prev" class="cosplay-prev" />';c+='<img src="/images/btnNext.png" alt="Prev" class="cosplay-next" />';c+='<a class="cosplay-readmore" href="/cosplay.chn">Xem tất cả...</a>';$(".cosplay-embed-content").html(c);$(".cosplay-embed-content ul").carouFredSel({prev:".cosplay-prev",next:".cosplay-next",auto:false,scroll:3});a.imageClick()}})}},home:function(){var a=this;if($(".home_cosplay_bottom ul").size()>0){$(".home_cosplay_bottom ul").carouFredSel({prev:".homecos_prev",next:".homecos_next",auto:false,scroll:4});$(".home_cosplay_bottom li:first a").addClass("active");$(".home_cosplay_bottom li a").on("click",function(d){d.preventDefault();if($(this).hasClass("active")){return}$(this).parent().parent().find("a").removeClass("active");$(this).addClass("active");var c=$(this).find(">img").attr("src").replace("zoom/72_72","thumb_w/330");$(".home_cosplay_center img.homecos_img").hide().load(function(){$(this).fadeIn()}).attr("src",c);$(".homecos_title > a").text($(this).attr("title")).attr("href",$(this).attr("href"));$(".homecos_title > span").attr("class",$(this).attr("i")).find(">img").attr("src","http://gamek4.vcmedia.vn/images/"+$(this).attr("i")+".png").attr("pid",$(this).attr("rel")).next("b").html($(this).attr("c")+"<i></i>");$(".homecos_title #social_fb").remove();var b=String.format('<div id="social_fb" class="fb-like" data-href="{0}" data-send="false" data-layout="button_count" data-width="50" data-show-faces="false" data-font="arial"></div>',$(this).attr("s"));$(".homecos_title").append(b);a.imageClick()})}}};var gameMarket={init:function(){$(".list_home .togglable").hide();$(".list_home li").hover(function(){$(this).find(".togglable").toggle()})},stick:function(a,b){var c=$(b).parents("li");$.ajax({url:"/Handlers/Stick.ashx",data:{c:"stick",id:a,mid:$("#uName").attr("mid"),cid:$("#hMarketCat").val()},dataType:"json",type:"POST",async:true,success:function(d){if(d.Success){c.fadeOut(function(){var e=$(this).addClass("rStick");$(".list_home ul").prepend(e);$(".list_home ul li:first").find(".togglable:first a").text("Unstick").attr("onclick",function(g,f){return f.replace("stick","unstick")}).end().fadeIn().find(".togglable").hide()})}else{alert(d.Message)}}})},unstick:function(a,b){var c=$(b).parents("li");$.ajax({url:"/Handlers/Stick.ashx",data:{c:"unstick",id:a,mid:$("#uName").attr("mid"),cid:$("#hMarketCat").val()},dataType:"json",type:"POST",async:true,success:function(d){if(d.Success){c.fadeOut(function(){var e=$(this).removeClass("rStick");$(".list_home ul").append(e);$(".list_home ul li:last").find(".togglable:first a").text("Stick").attr("onclick",function(g,f){return f.replace("unstick","stick")}).end().fadeIn().find(".togglable").hide()})}else{alert(d.Message)}}})},remove:function(a,b){var c=$(b).parents("li");$.ajax({url:"/Handlers/Stick.ashx",data:{c:"del",id:a,mid:$("#uName").attr("mid"),cid:$("#hMarketCat").val()},dataType:"json",type:"POST",async:true,success:function(d){if(d.Success){c.fadeOut(function(){$(this).remove()})}else{alert(d.Message)}}})},up:function(a,b){$.ajax({url:"/Handlers/Stick.ashx",data:{c:"up",id:a,cid:b},dataType:"json",type:"POST",async:true,success:function(c){if(c.Success){alert("Cập nhật thành công")}else{alert(c.Message)}}})},imgError:function(){return String.format("/images/noavatar_{0}.jpg",Math.floor(Math.random()*3)+1)}};function generateRandom(e,f){var b=[];while(b.length<=f){var d=Math.floor(Math.random()*(f-e+1))+e,c=false;for(var a=0;a<b.length;a++){if(b[a]==d){c=true;break}}if(!c){b[b.length]=d}}return b}function fixHeight(){if(document.location.pathname=="/"||document.location.pathname=="/home.chn"||document.location.pathname=="/default.aspx"){var c=$(".homebox");if(c){for(var a=0;a<c.length;a++){if(c[a]&&c[a+1]){var b=Math.max($(c[a]).height(),$(c[a+1]).height());$(c[a]).height(b);$(c[a+1]).height(b);a++}}}}}function LikeTag(d,a,c){var b=c.split("|")[0];if(d!=undefined&&d>0){$.ajax({type:"POST",url:"/Handlers/VoteHandler.ashx",data:{m:"like",tagid:d,vId:b},dataType:"json",success:function(e){if(e==null||!e.Success){switch(e.Type){case 1:alert("Bạn không thể bình chọn do tag này không tồn tại.");break;case 2:alert("Bạn đã bình chọn cho Tag này rồi, chờ 2 giờ sau để bình chọn tiếp.");break;case 3:alert("Bạn không thể bình chọn do bạn chưa đăng nhập.");break}return}$(a).html(e.Data);alert("Bạn đã bình chọn thành công!")}})}}function ChangeTabTagHot(a,c,b){$("ul#menuTag li").removeClass("hover");$(a).addClass("hover");$.ajax({url:"/Ajax/TagHotByCat.aspx",type:"GET",data:({cat_id:c,type:b}),success:function(d){if(d!=null){$("#divTagHot").html(d)}}})}function ChangeTabTagHotConsole(a,c,b){$("ul#menuTag li").removeClass("hover");$(a).addClass("hover");$.ajax({url:"/Ajax/TagHotByCatConsole.aspx",type:"GET",data:({cat_id:c,type:b}),success:function(d){if(d!=null){$("#divTagHot").html(d)}}})}function ChangeTabGame(a,b){if($(a).hasClass("active")){return}$(".sublabel a").removeClass("active");$(a).addClass("active");if(b==3){$("#danhsachgameviewall").css("display","none")}else{$("#danhsachgameviewall").css("display","block")}$.ajax({url:"/Ajax/Gate_Game_Home.aspx",type:"GET",data:({tab:$(a).attr("id"),type:b}),success:function(c){if(c!=""){$(a).parent().next("ul").html(c)}}})}function voteGame(c,a){var b=a.split("|")[0];ShowPopupVoteGame(c,b)}function GetLikeFaceByUrl(b){var a=String.format('https://graph.facebook.com/fql?q=SELECT url, share_count, like_count, total_count, commentsbox_count FROM link_stat WHERE url="{0}"',b);$.ajax({url:a,type:"GET",dataType:"json",timeout:4000,success:function(c){alert(c.data[0].total_count)},error:function(e,d,c){}})}function ShowPopupVoteGame(b,a){if($("#basic-modal-content").length>0){$("#basic-modal-content").remove()}var c=$("<div />").attr("id","basic-modal-content").appendTo($("body"));$("<iframe  style='background: none repeat scroll 0 0 transparent;border: 0 none;height: 148px;width: 382px; margin:0 auto'/>").attr("src","/Ajax/VoteGame.aspx?gameid="+b+"&vId="+a).appendTo(c);c.modal()}function ClosePopupVote(){$.modal.close()}function getCountMingId(c,a){var b="/Handlers/GetCountCommentByVietId.ashx?n="+a+"&c="+c;$.ajax({url:b,type:"GET",success:function(d){if(d!=null){$("#s"+a).text(d)}}})}function bindContentGiftCode(a,b){$("#basic-giftcode").html($("<iframe style='background: none repeat scroll 0 0 transparent;border: 0 none;height: 500px;width: 100%;'/>").attr("src","/ShowGiftCode.aspx?news_id="+a+"&gameKSecret="+b))}var isShowedGiftcode=0;function loginWithEmail(c,a){var b=a;$("#basic-giftcode").modal({onClose:function(){if(isShowedGiftcode==0){bindContentGiftCode(c,b);isShowedGiftcode=1;$(".simplemodal-close").bind("click",function(){document.location=document.location.href.replace("#","")})}else{$.modal.close()}}});FB.login(function(f){var g="";var e=f.authResponse.userID;var d="https://www.facebook.com/gamek.vn";FB.api({method:"pages.isFan",page_id:"152595292913"},function(h){if(h){bindContentGiftCode(c,b);$("#basic-giftcode").modal();$(".simplemodal-close").bind("click",function(){document.location=document.location.href.replace("#","")})}else{FB.Event.subscribe("edge.create",function(i){bindContentGiftCode(c,b);$("#basic-giftcode").modal();$(".simplemodal-close").bind("click",function(){document.location=document.location.href.replace("#","")});isShowedGiftcode=1})}})},{scope:"email,user_likes"})}function checkLikeFanpage(a,b){FB.login(function(d){var c="152595292913";FB.api("/me",function(f){var e="https://www.facebook.com/gamek.vn";FB.api({method:"pages.isFan",page_id:c},function(g){if(g){bindContentGiftCode(a,b)}else{FB.Event.subscribe("edge.create",function(h){if(h==e){bindContentGiftCode(a,b)}})}})})},{scope:"email,publish_stream"})}function checkLikeFanpageOld(a,b){FB.getLoginStatus(function(e){var d="152595292913";var c="https://www.facebook.com/gamek.vn";if(e.authResponse){FB.api({method:"pages.isFan",page_id:d,},function(f){if(f){bindContentGiftCode(a,b)}else{FB.Event.subscribe("edge.create",function(g){if(g==c){bindContentGiftCode(a,b)}})}})}else{FB.login(function(f){if(f.authResponse){FB.api({method:"pages.isFan",page_id:d,},function(g){if(g){bindContentGiftCode(a,b)}else{document.location=document.location.href.replace("#","")}})}},{scope:"publish_actions, user_likes",display:"popup"})}})}function ShowGiftCode(c,a){var b=a.split("|")[0];$("#basic-giftcode").modal();$(".simplemodal-close").bind("click",function(){document.location=document.location.href.replace("#","")});checkLikeFanpage(c,b)}function focusTab(){$(".label").find("h4 a").removeClass("active");if($("#hidCatID").val()=="0"){$("#tabNew").addClass("active")}else{if($("#hidCatID").val()=="210"){$("#tabHot").addClass("active")}}}function isiPad(){return(navigator.userAgent.match(/iPad/i)!=null)}var trainghiem={speed:500,init:function(){},slide:function(b){var a=this;$(b).each(function(){var g=$(this);var e=g.find(">.list li").width();var f=g.find(">.list li").length;g.find(".labeltop ul li.normal").remove();for(var d=0;d<f;d++){var c=d==0?'<li class="normal"><a class="active" href="#"></a></li>':'<li class="normal"><a href="#"></a></li>';g.find(".labeltop ul .next").before(c)}g.find(">.list ul").width(e*f).css({position:"relative",left:0});g.find(".labeltop li.normal a").on("click",function(i){i.preventDefault();if($(this).hasClass("active")){return}g.find(".labeltop li.normal a").removeClass("active");$(this).addClass("active");var h=($(this).parent().index()-1)*e;g.find(">.list ul").stop(true,true).animate({left:"-"+h+"px"},a.speed)});g.find(".labeltop li.prev a").on("click",function(h){h.preventDefault();g.find(".labeltop li.normal a.active").parent().prev("li.normal").find("a").trigger("click")});g.find(".labeltop li.next a").on("click",function(h){h.preventDefault();g.find(".labeltop li.normal a.active").parent().next("li.normal").find("a").trigger("click")})})},slideSmall:function(c,b){var a=this;$(c).each(function(){var h=$(this);var f=h.find(">.list li").outerWidth(true);var g=h.find(">.list li").length;h.find(".labeltop ul li.normal").remove();for(var e=0;e<g/b;e++){var d=e==0?'<li class="normal"><a class="active" href="#"></a></li>':'<li class="normal"><a href="#"></a></li>';h.find(".labeltop ul .next").before(d)}h.find(">.list ul").width(f*g).css({position:"relative",left:0});h.find(".labeltop li.normal a").on("click",function(j){j.preventDefault();if($(this).hasClass("active")){return}h.find(".labeltop li.normal a").removeClass("active");$(this).addClass("active");var i=($(this).parent().index()-1)*f*b;h.find(">.list ul").stop(true,true).animate({left:"-"+i+"px"},a.speed)});h.find(".labeltop li.prev a").on("click",function(i){i.preventDefault();h.find(".labeltop li.normal a.active").parent().prev("li.normal").find("a").trigger("click")});h.find(".labeltop li.next a").on("click",function(i){i.preventDefault();h.find(".labeltop li.normal a.active").parent().next("li.normal").find("a").trigger("click")})})}};var PagingLichCacTranDau={listTopId:"#lich-top",listBottomId:"#lich-bottom",Year:0,Month:0,Day:0,liTemplate:'<li><div class="left"><p class="breadcumb3"><a href="{0}" class="namegame" title="{1}">{1}</a> <a href="{2}" class="cupgame {3}">{4}</a></p><p class="gamethu"><span><img src="{5}" title="{6}" alt="{6}" /></span>{6}</p><span class="vs">vs.</span><p class="gamethu"><span><img src="{7}" title="{8}" alt="{8}" /></span>{8}</p></div><div class="right"><p class="stt {9}">{11}</p><p class="number1">{12}</p><p class="{10}"><a href="{13}">{14}</a>>></p></div></li>',init:function(){var me=this;$("#lich-next").bind("click",function(){$.ajax({url:"/Handlers/LiveGameHandler.ashx",data:{command:"paginglichcactrandau",year:me.Year,month:me.Month,day:me.Day,add:-3},type:"POST",success:function(data){data=eval("("+data+")");if(data.Success===true){me.bindList(data,me.listTopId)}else{}}});$.ajax({url:"/Handlers/LiveGameHandler.ashx",data:{command:"paginglichcactrandau",year:me.Year,month:me.Month,day:me.Day,add:-2},type:"POST",success:function(data){data=eval("("+data+")");if(data.Success===true){me.bindList(data,me.listBottomId)}else{}}});var date=new Date(me.Year,me.Month-1,me.Day);date.setDate(date.getDate()-2);var pagingDate=new Date(date);me.Year=pagingDate.getFullYear();me.Month=pagingDate.getMonth()+1;me.Day=pagingDate.getDate()});$("#lich-prev").bind("click",function(){$.ajax({url:"/Handlers/LiveGameHandler.ashx",data:{command:"paginglichcactrandau",year:me.Year,month:me.Month,day:me.Day,add:1},type:"POST",success:function(data){data=eval("("+data+")");if(data.Success===true){me.bindList(data,me.listTopId)}else{}}});$.ajax({url:"/Handlers/LiveGameHandler.ashx",data:{command:"paginglichcactrandau",year:me.Year,month:me.Month,day:me.Day,add:2},type:"POST",success:function(data){data=eval("("+data+")");if(data.Success===true){me.bindList(data,me.listBottomId)}else{}}});var date=new Date(me.Year,me.Month-1,me.Day);date.setDate(date.getDate()+2);var pagingDate=new Date(date);me.Year=pagingDate.getFullYear();me.Month=pagingDate.getMonth()+1;me.Day=pagingDate.getDate()})},bindList:function(b,a){var e=this;$(a).html(String.format('<li class="date"><p>NGÀY {0}</p></li>',b.Message));for(var f=0;f<b.Data.length;f++){var d=b.Data[f].LeagueName==""?"nodisplay":"";var g=b.Data[f].LiveStatus==EnumLiveStatus.Living?"stt1":"";var c=b.Data[f].LiveStatus==EnumLiveStatus.Finished?"linking":"link";var h=String.format(e.liTemplate,b.Data[f].GameName_TagUrl,b.Data[f].GameName,b.Data[f].LeagueName_TagUrl,d,b.Data[f].LeagueName,b.Data[f].Thumb_Flag_A,b.Data[f].TeamName_A,b.Data[f].Thumb_Flag_B,b.Data[f].TeamName_B,g,c,b.Data[f].LiveStatus_Text,b.Data[f].DescriptionDisplay,b.Data[f].NewsUrl,b.Data[f].DetailDisplay);$(a).append(h)}}};var PagingTongHopReplay={component:"#tong-hop-replay",excludeId:"<%= ExCludeId %>",PageSize:"<%= Top %>",PageIndex:1,liTemplate:'<li><a href="{0}" title="{1}" class="ionplay"></a><a href="{0}" title="{1}"><img src="{2}" alt="{1}" title="{1}" /></a><p><a href="{0}" title="{1}">{1}</a></p></li>',init:function(){var me=this;$("#replay-next").bind("click",function(){$.ajax({url:"/Handlers/LiveGameHandler.ashx",data:{command:"pagingtonghopreplay",ps:me.PageSize,pi:me.PageIndex+1,excludeId:me.excludeId},type:"POST",success:function(data){data=eval("("+data+")");if(data.Success===true){me.bindList(data,1)}else{}}})});$("#replay-prev").bind("click",function(){$.ajax({url:"/Handlers/LiveGameHandler.ashx",data:{command:"pagingtonghopreplay",ps:me.PageSize,pi:me.PageIndex-1,excludeId:me.excludeId},type:"POST",success:function(data){data=eval("("+data+")");if(data.Success===true){me.bindList(data,-1)}else{}}})})},bindList:function(b,d){var a=this;if(b.Data.length>0){a.PageIndex=a.PageIndex+d}for(var c=0;c<b.Data.length;c++){var e=String.format(a.liTemplate,b.Data[c].Url,b.Data[c].NewsTitle,b.Data[c].ThumbImage);$(a.component).html(e)}}};var starRating={ele:".user_rating input.user_star",init:function(){var a=this;$(a.ele).rating({required:true,readOnly:false,callback:function(c,b){$.ajax({type:"GET",url:apiUrl+"/Handlers/RequestHandler.ashx",data:{m:"rating",newsId:$("#hfPostId").val(),tagurl:$("#tagUrl").val(),mark:c},dataType:"json",xhrFields:{withCredentials:true},crossDomain:true,success:function(d){if(d.Success){$(".user_rating strong:eq(0)").text(d.Data.Average+"/5");$(".user_rating strong:eq(1)").text(d.Data.Count);a.disable()}else{alert(d.Message);a.disable()}}})}})},disable:function(){$(this.ele).rating("disable");$(".user_rating div").off("mouseover").off("mouseout")}};$(window).load(function(){cosPlay.home()});$(document).ready(function(){starRating.init();detail.init();fixHeight();gameMarket.init();trainghiem.slide(".boxtrainghiem");trainghiem.slideSmall(".trainghiemnoibat",5);if($(".rightdetail").size()>0){var c=$(".tinnoibatdetail").height();$("#tinhotdetail").height(c);if($("#loadTinMoiNhatDetailShow").length>0){jQuery("#loadTinMoiNhatDetailShow").containedStickyScroll()}var o=$(".rightdetail").height();var g=$(".box_sidebar_wrap").height();var e=$("#lefTinDangDoc").height();var d=$(".detail").height()-179;o=d;var n=0;var m=1;var b=$(".sidebar_wrap").height();if(o>g&&m==0){$(".box_sidebar_wrap").height(o+20);$("#box-sliderbar-stickx").height(o+40);n=1}if((e+b)>o&&n==0&&m==0){var a=e+b+20;$(".box_sidebar_wrap").height(a);$("#box-sliderbar-stickx").height(a+40)}if(m==0){jQuery(".sidebar_wrap").containedStickyScroll()}var f=1;var l=10;var q=3;var j=$("#totalPageMostView").val();var i=$("#totalPageNewNews").val();var k=3;var h=0;var p=0;$(function(){$(".footer").fadeOut();$(".boxnhunggamek").fadeOut()})}if($(".rightdetail").size()>0&&$(".sidebar_wrap").size()>0&&$(".rightdetail").height()>$(".sidebar_wrap").height()){if($(".sidebar_wrap .leftdetail").height()<$(".rightdetail").height()){$(window).scroll(function(){var s=$(window).scrollLeft();var u=$(this).scrollTop();var r=20;var t=$(".adscenter").position().top-$(".sidebar_wrap").height();if(u>$(".rightdetail").position().top+r){if(u>=t+r){$(".sidebar_wrap").css({position:"absolute",top:t,left:""})}else{$(".sidebar_wrap").css({position:"fixed",top:"0"-r,left:(s>0?"-"+s+"px":"")})}}else{$(".sidebar_wrap").css("position","static")}})}}$(".buttonsearchgate").click(function(){window.location.href="/tim-kiem/"+$(this).prev().val()+".chn"});$(".tab ul li").click(function(){$(".tab ul li").removeClass("active");$(".tab-body").hide();$(this).addClass("active");var r=$(this).find("a").attr("href");$(r).fadeIn();return false});$(".select span").click(function(){$(this).next().toggleClass("show")});$(".select li a").click(function(r){$(".nam li a").removeClass("active");$(this).addClass("active");$(this).parents("ul").prev().text($(this).text());$(this).parents("ul").toggleClass("show")});$(".theloaigame li a").click(function(r){$(".theloaigame li a").removeClass("active");$(this).addClass("active");$.ajax({url:"/Gete_TenLoai_Game.aspx?cID="+$(this).attr("cID"),success:function(s){$(".tentheloaigame span").text("Chon tên game");$(".tentheloaigame ul").html(s);$(".tentheloaigame li a").click(function(){$(this).addClass("active");$(this).parents("ul").prev().text($(this).text());$(this).parents("ul").toggleClass("show")})}})});$(".btnSearch1").click(function(){$.ajax({url:"/TimKiem_GateGameK.aspx",success:function(r){$(".boxnhunggateshowimg ul").html(r)}})});$(".btnSearch").click(function(){if(($("select[id$=ddlCat]").val()==null||$("select[id$=ddlCat]").val()==""||$("select[id$=ddlCat]").val()=="0")&&$(".tentheloaigame1 input").val()==""){alert("Bạn phải chọn thể loại hoặc tên game.");return}var r={};if($(".tentheloaigame1 input").val()!="Tên game"&&$(".tentheloaigame1 input").val()!=""){if($("select[id$=ddlGames]").val()==null){r.method="GetGameById";r.gameid=$("select[id$=ddlCat]").val()}else{r.method="SearchGameByName";r.keyword=$(".tentheloaigame1 input").val()}}else{r.method="GetByCat";r.catid=$("select[id$=ddlCat]").val()}$.ajax({url:"/TimKiem_Gate_Game_Home.aspx",data:r,success:function(){$(".boxnhunggateshowimg ul").html(r)}})})});$(window).resize(function(){if($(window).width()<1100){$("#scroll_top").hide();return}});function get_scrolltop(){try{if(window.pageYOffset!=undefined){return window.pageYOffset}return window.document.body.scrollTop}catch(a){try{return window.document.body.scrollTop}catch(b){return 0}}}$(document).scroll(function(){if($(window).width()<1100){$("#scroll_top").hide();return}if(get_scrolltop()<$(window).height()){$("#scroll_top").hide()}else{$("#scroll_top").show()}});function renderFbLike(e,c,a){var d=document.getElementsByClassName("img_face");for(var b=0;b<d.length;b++){d[b].remove()}e.style.width=c+"px";e.style.height=a+"px";e.style.display="block";return false}function shareOnFacebook(){var b=screen.width/2-700/2;var c=screen.height/2-450/2;var a=window.open("http://www.facebook.com/sharer.php?u="+document.location.href,"chia sẻ","toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width=700, height=485, top="+c+", left="+b);if(window.focus){a.focus()}return false}function CheckLogin(params,callback){$.getScript("http://vietid.net/login/Checksession");mingAuthCallBack=function(data){if(callback=="alert"&&data=="null"){alert("Bạn chưa đăng nhập");return false}var img=new Image();if(data!="null"){var rels=eval("("+data+")");var info=rels.id+"|"+rels.username+"|"+rels.email+"|"+rels.full_name;img.src="/MingSession.aspx?info="+info;$.cookie("mVid",rels.id,{expires:30,path:"/"});$.cookie("vId_uToken",rels.token,{expires:30,path:"/"});if(callback!=null&&callback!="alert"){if(eval("typeof("+callback+") === 'function'")){params=params.split(",").join("','").replace(" ","");eval(String.format("{0}('{1}', '{2}')",callback,params,info))}else{if(callback!="null"){console.log("Không có function: "+callback)}}}}else{img.src="/MingSession.aspx?type=1";$.cookie("mVid","undefined",{expires:30,path:"/"});if(callback!="null"){MingNotify.openPopup()}}return false}}function CheckLogin1(a){var b=readCookie("mVid");if(b!="undefined"){loginWithEmail(a,b)}else{MingNotify.openPopup()}}var newsLock={home:function(){$('.newsupdate>ul li.lock:not(".locked")').each(function(){if($(this).hasClass("locked")){return}var d=$(this).first();var b=d.next("li.lock");var f=b.next("li.lock");var c=f.next("li.lock").addClass("locks");if(b.length>0&&f.length>0&&c.length>0){d.addClass("locked");b.addClass("locked").css({"background-color":"#fff","border-color":"#fff"});f.addClass("locked");c.addClass("locked");var a=d.height()+b.outerHeight(true)+f.outerHeight(true);c.addClass("locks").css({position:"absolute",top:d.position().top,right:"0",height:a});var e=b.next().find("img").attr("src").replace(/\/zoom\/[0-9\_]+\//,"/zoom/220_305/");c.find("img").attr("src",e);c.find("p:first").show();c.find("p:first").trimLine(3)}else{d.css({background:"#d9f2e7",width:"100%"}).find("h3 a").css("color","#333").end().find("p").show();b.css({background:"#d9f2e7",width:"100%"}).find("h3 a").css("color","#333").end().find("p").show();f.css({background:"#d9f2e7",width:"100%"}).find("h3 a").css("color","#333").end().find("p").show()}})},relation:function(){$(".newsupdate>ul li.w455").each(function(){if($(this).hasClass("locked")){return}var f=$(this);var b=f.next(".w455");var j=b.next(".w455");if(f.length>0&&b.length>0&&j.length>0){f.addClass("locked");b.addClass("locked").css({"background-color":"#fff","border-color":"#fff"});j.addClass("locked");var d=f.prev("li");var a=f.height()+b.outerHeight(true)+j.outerHeight(true);d.addClass("locks").css({"float":"right",width:"220px",height:a});var i=d.find("img").attr("src").replace(/\/zoom\/[0-9\_]+\//,"/zoom/220_305/");d.find("img").attr("src",i);d.find("p:first").show();d.find("p:first").trimLine(3);d.find("p.time").remove();var e=f.find(">a").attr("href");$('.newsupdate >ul li:not(".locked, .locks") > a[href="'+e+'"]').parent().remove();var c=b.find(">a").attr("href");$('.newsupdate >ul li:not(".locked, .locks") > a[href="'+c+'"]').parent().remove();var g=j.find(">a").attr("href");$('.newsupdate >ul li:not(".locked, .locks") > a[href="'+g+'"]').parent().remove()}})}};var homeNews={pageIndex:1,flag:true,init:function(){hideText.home();var a=this;a.pageIndex=$("#PageIndex").val();if($(".newsupdate ul").length>0){$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>$(document).height()-1500){if(a.pageIndex%4==0){a.flag=false;$(".load_more").show();$(".per100 > img").remove()}else{a.bindData();$(".load_more").hide()}}})}$(".load_more").click(function(){a.flag=true;a.bindData();$(".load_more").hide()})},bindData:function(){var a=this;if(a.flag==false){return}a.flag=false;$.ajax({url:apiUrl+"/Ajax/DanhSachTin_Home.aspx",data:({Page:a.pageIndex,homeurl:$("#hdUrl").val(),listNewsId:$("#hfListNewsId").val()}),dataType:"html",beforeSend:function(){$(".per100").addClass("relative").append('<img style="position:absolute;left:38%;" src="http://gamek4.vcmedia.vn/images/loading2.gif" alt="" />')},success:function(b){if(b.trim()!=""){$(b).appendTo(".newsupdate > ul");$(".newsupdate > ul li.fade-out").removeClass("fade-out");a.pageIndex++;a.flag=true;hideText.home();videoIframe.pushArrIframe(".newsupdate ul");$(".newsupdate >ul li.locks, .newsupdate >ul li.locked").each(function(){var c=$(this).find(">a").attr("href");$('.newsupdate >ul li:not(".locked, .locks") > a[href="'+c+'"]').parent().remove()})}else{$(".load_more").remove();$(".per100 > img").remove()}}})}};var videoIframe={arrIframe:[],originDomain:"*",rangerPixel:40,fraction:0.6,init:function(b){var a=this;a.pushArrIframe(b);$(window).scroll(function(){var l=$(this).scrollTop();for(var n=0;n<a.arrIframe.length;n++){var o=$(a.arrIframe[n]);var d=o.offset().left,e=o.offset().top,p=o.width(),c=o.height(),k=d+p,j=e+c,g,f,m;g=Math.max(0,Math.min(p,window.pageXOffset+window.innerWidth-d,k-window.pageXOffset));f=Math.max(0,Math.min(c,l+window.innerHeight-e,j-l));m=f/c;if(m>a.fraction){if(!o.hasClass("play")){o.addClass("play");o.get(0).contentWindow.postMessage("showSpin()",a.originDomain)}}else{if(o.attr("data-layout")!="first-scroll"){o.removeClass("play");o.get(0).contentWindow.postMessage("showNote()",a.originDomain)}}}})},pushArrIframe:function(b){var a=this;a.arrIframe=[];$(b).find('iframe[src*="vcmedia.vn"][data-layout="scroll_controls"],[data-layout="scroll"],[data-layout="trailer"],[data-layout="first-scroll"]').each(function(){a.arrIframe.push($(this))})}};var hideText={home:function(){$(".newsupdate li").each(function(){if($(this).find('> p:not(".time")').length==0){return}if($(this).find(".pb_top").length>0){$(this).find('> p:not(".time")').trimLine(2)}else{$(this).find('> p:not(".time")').trimLine(3)}})}};var slideHtml="";var groupItem={breakpoint:0,eachOrderNews:function(c,b,d,f){var h="top";var g=15*(b+1);var e=[];var i=0;var j=$("#flagLi"+d).index()+f;var a=$("#flagLi"+d).index()+f;$("#"+c).each(function(){var k=$(this).children("li");k.each(function(q){if(q+1>=a){if($(this).hasClass(h)){$(this).attr("id",c+""+q+""+b);var l=new Object();var m=$(this).find("h3");if(m.children().size()>0){var p=m.children().eq(0);if(p.is("a")){l.title=p.text()}l.href=p.attr("href")}var n=$(this).children().eq(2);l.sapo=n.text();var o=$(this).children().eq(0);if(o.children().size()>0){var p=o.children().eq(0);l.img=p.attr("src")}l.id=c+""+q+""+b;e.push(l)}}})});groupItem.setOrderNews(e,c,b,d,j)},setOrderNews:function(j,m,g,a,k){var l=k;l=l-2;if(j.length>=3){var n=j[0].title;var p=j[0].img;var b=j[0].href;var r=j[0].id;var s=j[1].title;var f=j[1].img.replace("310_200","150_150");var c=j[1].href;var d=j[1].id;var q=j[2].title;var o=j[2].img.replace("310_200","150_150");var i=j[2].href;var e=j[2].id;var h='<li style="background:#fff;border:none"><div class="boxstream1"><a href="'+b+'" title="'+n+'"><img src="'+p+'" style="width:310px;height:200px" width="310px" height="200px" alt="'+n+'" /></a><h3 class="boxstream1h"><a href="'+b+'" title="'+n+'">'+n+'</a></h3></div><div class="boxstream1-left">    <div class="boxstream2">        <a href="'+c+'" title="'+s+'"><img src="'+f+'" style="width:150px;height:160px" width="150px" height="160px" alt="'+s+'" /></a>        <h3><a href="'+c+'" title="'+s+'">'+s+'</a></h3>    </div>    <div style="margin-top:15px" class="boxstream2">        <a href="'+i+'" title="'+q+'"><img src="'+o+'" style="width:150px;height:160px" width="150px" height="160px" alt="'+q+'" /></a>        <h3><a href="'+i+'" title="'+q+'">'+q+'</a></h3>    </div></div><div style="clear:both"></div></li>';$("#"+m+"> li:eq("+l+")").after(h);$("#"+r).remove();$("#"+d).remove();$("#"+e).remove()}}};var shuffleIsRandom=1;function shuffle(c){var b=$("#"+c+">ul>li").size(),d,a;while(0!==b){a=Math.floor(Math.random()*b);b-=1;d=$("#"+c+">ul>li:eq("+b+")").html();var e=$("#"+c+">ul>li:eq("+a+")").html();$("#"+c+">ul>li:eq("+b+")").html(e);$("#"+c+">ul>li:eq("+a+")").html(d)}}function reloadSliderHot(){if(shuffleIsRandom=1){shuffle("streamhot")}$("#streamhot").kpcSlider({btnNext:"#stream-hot-next",btnPrev:"#stream-hot-pre",visible:3,auto:8000,speed:500,width:142,margin:"15 0 0 20",auto:false})}function reloadSlderNew(){if(shuffleIsRandom=1){shuffle("streamnew")}$("#streamnew").kpcSlider({btnNext:"#stream-new-next",btnPrev:"#stream-new-pre",visible:3,auto:8000,speed:500,width:142,margin:"15 0 0 20",auto:false})}var isloadteamhot1=0;var isloadteamhot2=0;var isloadtemnew1=0;var isloadtemnew2=0;function loadItemSlider(a,c,d,b){if(a==1){$(".boxstreamrightactive-hot").removeClass("boxstreamrightactive-hot");$("#"+b).addClass("boxstreamrightactive-hot")}else{$(".boxstreamrightactive-new").removeClass("boxstreamrightactive-new");$("#"+b).addClass("boxstreamrightactive-new")}if(c==0){if(a==1){$("#"+d).html($("#temhot0").html());reloadSliderHot()}else{$("#"+d).html($("#temnew0").html());reloadSlderNew()}}else{if(a==1&&c==1&&isloadteamhot1==1){$("#"+d).html($("#temhot1").html());reloadSliderHot()}else{if(a==1&&c==2&&isloadteamhot2==1){$("#"+d).html($("#temhot2").html());reloadSliderHot()}else{if(a==0&&c==1&&isloadtemnew1==1){$("#"+d).html($("#temnew1").html());reloadSlderNew()}else{if(a==0&&c==2&&isloadtemnew2==1){$("#"+d).html($("#temnew2").html());reloadSlderNew()}else{$.ajax({type:"get",url:"/Ajax/LoadItemSliderStream.aspx",timeout:1000*60*2,data:{ishot:a,type:c},success:function(e){if(e!=""){$("#"+d).html(e);if(a==1&&c==1){isloadteamhot1=1;$("#temhot1").html(e);reloadSliderHot()}else{if(a==1&&c==2){isloadteamhot2=1;$("#temhot2").html(e);reloadSliderHot()}else{if(a==0&&c==1){isloadtemnew1=1;$("#temnew1").html(e);reloadSlderNew()}else{if(a==0&&c==2){isloadtemnew2=1;$("#temnew2").html(e);reloadSlderNew()}}}}}},error:function(g,f,e){}})}}}}}}var htmGameVote="";function loadGameVote(a){$(".normalx").removeClass("active");if(a==0){if(htmGameVote==""){htmGameVote=$("#horiz_container").html()}$("#horiz_container").html(htmGameVote)}else{if(htmGameVote==""){htmGameVote=$("#horiz_container").html()}$("#horiz_container").html($("#loadgame_"+a).html())}$("#liid"+a).addClass("active")}$(document).ready(function(){if($("#horiz_container_outer").length){if(htmGameVote==""){htmGameVote=$("#horiz_container").html()}$("#horiz_container_outer").horizontalScroll()}});function teamLi(a){var b=[];$("#"+a).each(function(){$(this).find("li").each(function(){var d=$(this).find("h3");if(d.children().size()>0){var c=new Object();var e=d.children().eq(0);if(e.is("a")){c.title=e.text();c.href=e.attr("href");c.type=$(this).attr("data");c.id=$(this).attr("class");if(checkDuplicateClasue(b,e.text(),c.type,a,this)){if(c.type=="5999"){}else{$(this).remove()}}else{b.push(c)}}}})})}function checkDuplicateClasue(f,b,e,d,g){if(f!=null&&f.length>0){for(var a=0;a<f.length;a++){if(f[a].title==b){if(e=="5999"){var c=f[a];if(c.type=="5999"){$(this).remove()}else{$("."+c.id).remove()}}return 1}}}return 0}function renderFbLikeNew(c,b,a){$(c).css({display:"block",width:b,height:a});$(".img_face").remove()}function datediff(o,e,s){var q=1000,i=q*60,g=i*60,j=g*24,l=j*7;var n=o.split(",");var h=n[0];var f=n[1];var b=n[2];var d=n[3];var p=e.split(",");var u=p[0];var k=p[1];var r=p[2];var m=p[3];var c=new Date(h,f,b,d);var t=new Date(u,k,r,m);var a=t-c;if(isNaN(a)){return NaN}switch(s){case"years":return t.getFullYear()-c.getFullYear();case"months":return((t.getFullYear()*12+t.getMonth())-(c.getFullYear()*12+c.getMonth()));case"weeks":return Math.floor(a/l);case"days":return Math.floor(a/j);case"hours":return Math.floor(a/g);case"minutes":return Math.floor(a/i);case"seconds":return Math.floor(a/q);default:return undefined}}function tTimeAgo(g,m){var p=1000,k=p*60,h=k*60,b=h*24,l=b*7;var n=g.split();var j=n[0];var o=n[1];var e=n[2];var d=n[3];var i=new Date();var t=i.getFullYear();var r=i.getMonth();var q=i.getDay();var c=i.getHours();var f=new Date(j,o,e,d);var s=new Date(t,r,q,c);var a=s-f;if(isNaN(a)){return NaN}switch(m){case"year":return s.getFullYear()-f.getFullYear();case"months":return((s.getFullYear()*12+s.getMonth())-(f.getFullYear()*12+f.getMonth()));case"weeks":return Math.floor(a/l);case"days":return Math.floor(a/b);case"hours":return Math.floor(a/h);default:return undefined}}function buidNotification(){$("#horiz_container").each(function(){$(this).find("li").each(function(){})})}var VideoHomeBox={Init:function(a){var d=false;$(".top1video").click(function(e){if(d==false){$(this).addClass("hidden");$(this).html(a);d=true}});var b;var c=2000;$(".top1video").hover(function(){b=setTimeout(function(){if(d==false){$(".top1video").addClass("hidden");$(".top1video").html(a);d=true}},c)},function(){clearTimeout(b)})}};var VideoPage={Init:function(){$(".playvideo[data-init*='none']").click(function(){var b=$(this).attr("data-newsid");$("#videoHighlightContainer").html('<img scr="http://gamek4.vcmedia.vn/images/loading2.gif" alt="loading..."/>');var a=apiUrl+"/ajax/LoadVideoHighLight.aspx?news_id="+b;$.ajax(a).done(function(c){$("#videoHighlightContainer").html(c);$("html, body").animate({scrollTop:0},100)}).fail(function(){alert("error")});$(".playvideo").removeClass("active");$(".playvideo").attr("data-init","inited");$(this).addClass("active")})},InitMore:function(){var f=2,c=2,e=2;var d=false,a=false,b=false;$(".viewmorevideolist").click(function(){var i=$(this).attr("data-type");var h=2;if(i==1){if(d){alert("Đang tải dữ liệu, bạn vui lòng đợi chút, cám ơn!");return}d=true;h=f}else{if(i==2){if(a){alert("Đang tải dữ liệu, bạn vui lòng đợi chút, cám ơn!");return}a=true;h=c}else{if(i==3){if(b){alert("Đang tải dữ liệu, bạn vui lòng đợi chút, cám ơn!");return}h=e;b=true}}}var g=apiUrl+"/ajax/LoadVideoMore.aspx?type="+i+"&page="+h;$.ajax(g).done(function(j){if(j.length>50){$("#videolist"+i).html(j)}if(i==1){f++;d=false}else{if(i==2){c++;a=false}else{if(i==3){b=false;e++}}}}).fail(function(){alert("Quá trình tải dữ liệu gặp lỗi, bạn vui lòng thử lại");if(i==1){d=false}else{if(i==2){a=false}else{if(i==3){b=false}}}})})},InitVideoNewsShareUrl:function(){window.addEventListener("message",a,false);function a(d){console.log(d.data);if(d.origin!=="http://vcplayer.vcmedia.vn"){return}var c=$("#hidShareVideoUrl").val();console.log("passed origin-"+c);if(typeof(d.data.action)=="undefined"||d.data.action!="getData"||typeof(c)=="undefined"){return}var b=d.source;var e={action:"transferData",data:{shareUrl:c}};b.postMessage(e,"*");console.log("message sent!")}}};var DetailBottomKDC={FixBottomLink:function(){try{$(".IMSNoChangeStyle").each(function(){var c=$(this).html();if(c.indexOf("&gt;")!=-1){$(this).html(c.replace("&gt;&gt;",""))}var b=$(this).find("a");b.css({"font-size":"22px","font-weight":"bold"})})}catch(a){}try{$(".link-content-footer").each(function(){var c=$(this).html();if(c.indexOf("&gt;")!=-1){$(this).html(c.replace("&gt;&gt;",""))}var b=$(this).find("a");b.css({"font-size":"22px","font-weight":"bold"})})}catch(a){}},CheckFullSize:function(){if($("#GetTypeNews").val()==1){$("#ShareDetail").css("width","690px");$(".social-share").css("width","670px");$(".rightdetail_content iframe").each(function(){var b=$(this).attr("id");var a=$(this).attr("src");console.log(b);if(typeof(b)!="undefined"&&b.indexOf("vcmedia_")!=-1){$(this).attr("width","690px");$(this).attr("height","400px");$(this).attr("src",a)}});$(".rightdetail_content img").each(function(){var a=$(this).attr("src");if(a.indexOf("thumb_w/640/")!=1){a=a.replace("/640/","/690/");$(this).attr("src",a)}});setTimeout(function(){$(".rightdetail").find(".boxtin-them").css("margin-left","155px")},2000)}else{$(".rightdetail_content iframe").each(function(){$(this).css("max-width","503px !important")})}},Init:function(){if($(".sidebar_wrap .leftdetail").height()-$("#adm13796").height()>$(".rightdetail").height()){$(".tinhot").hide()}}};function setCookie(a,c,f){var e=new Date();e.setTime(e.getTime()+(f*24*60*60*1000));var b="expires="+e.toUTCString();document.cookie=a+"="+c+"; "+b}function CheckMobileRedirect(){try{if(typeof(Storage)!=="undefined"){var a=sessionStorage.getItem("VisitSession");if(a==null){sessionStorage.setItem("VisitSession","1");var c=window.location.hash;if(c=="#first"){window.history.replaceState("","",window.location.href.split("#")[0])}else{setCookie("browser","",-1);window.location=window.location.href}}else{}}}catch(b){}}var getLikeShareCount=function(a,d,b,c){$.ajax({type:"GET",dataType:"json",url:"http://api.facebook.com/restserver.php?method=links.getStats&format=JSON&urls="+a,success:function(e){if($(d)!=null){$(d).html(e[0].share_count)}if($(b)!=null){$(b).html(e[0].like_count)}if($(c)!=null){$(c).html(e[0].total_count)}}})};var sohavideo=function(h){var a={highlightPlayerId:"object_Kenh14",highlightEmbedCodePlaceHolderElement:h("#video-embeb"),highlightTitleElement:"#video-title",highlightSapoElement:"#video-description",highlightTagsElement:"#video-tags",highlightLikePlaceHolderElement:"#video-like",highlightSharePlaceHolderElement:"#video-share",highlightListPlaceHolder:"#divPlaylistVideo",highlightEmbedCodeText:"#txtVideoEmbedCode",highlightEmbedLinkText:"#txtVideoEmbedLink",listPlaceHolder:"#video-list-content",listPagingPlaceHolder:"#video-paging",lbSlideContentPlaceHolder:"#lb-slide",lbPlayerId:"object_Kenh14_lb",lbEmbedCodePlaceHolderElement:"#lb-video-embed",lbTitleElement:"#lb-video-title",lbSapoElement:"#lb-video-description",lbTagsElement:"#lb-video-tags",lbLikePlaceHolderElement:"#lb-video-like",lbSharePlaceHolderElement:"#lb-video-share",lbListPlaceHolder:"#divPlaylistVideo",lbDivCommentId:"mingid_comments_content",domain:"http://genk.vn",videoImageDomain:"http://video-thumbs.vcmedia.vn",videoWidth:606,videoHeight:357,pageSize:16,classId:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",id:"Id",title:"Name",url:"Url",description:"Description",avatar:"Avatar",videoKey:"KeyVideo",zoneId:"ZoneId",name:"Name",playerName:"PName",tags:"Tags",publishDate:"PublishDate",distributionDate:"DistributionDate"};var s=new Array();var b=null;var M=false;var y=document.location.href;var f=document.title;var L=new Array();function N(O){if(O.indexOf("http")!=-1){return O}return String.format("{0}{1}",a.domain,O)}function z(O){return N(String.format("/video-{0}.htm",O[a.id]))}function p(U,Q,ab,X){var ad="100%";var aa="56eafad9ecf65bc827739910530c4ebb";var ac=5;var Z=1;var R=0;var T=0;var Y=0;var W=0;var O="mingid_comment_iframe";var V="http://comment.vietid.net/comments?app_key={0}&content_url={1}&news_title={2}&num_count={3}&debugcache={4}&min={5}&scroll={6}&http_referer={7}&verify={8}&verify_flag={9}&funny_flag=2&iframe_comment_id={10}&comment_flag=0&news_url_short=0";var S=String.format(V,aa,U,ab,ac,Z,R,T,Q,Y,W,O);var P=document.createElement("iframe");P.setAttribute("width",ad);P.setAttribute("height",238);P.setAttribute("border","medium none");P.setAttribute("overflow","hidden");P.setAttribute("scrolling","no");P.setAttribute("frameborder","0");P.setAttribute("id","mingid_comment_iframe");P.setAttribute("src",S);h("#"+X).empty().append(P)}function n(O,Q,P){if(O.indexOf("http:")!=-1||O.indexOf("https:")!=-1){if(O.indexOf(a.videoImageDomain)!=-1){O=O.replace(a.videoImageDomain,"")}else{return O}}return String.format("{0}/zoom/{1}_{2}/{3}",a.videoImageDomain.trimEnd("/"),Q,P,O.trimStart("/"))}function g(P,O){if(P.indexOf("http:")!=-1||P.indexOf("https:")!=-1){if(P.indexOf(a.videoImageDomain)!=-1){P=P.replace(a.videoImageDomain,"")}else{return P}}return String.format("{0}/thumb_w/{1}/{2}",a.videoImageDomain.trimEnd("/"),O,P.trimStart("/"))}function l(P,O){P=N(P);return String.format('<iframe src="http://www.facebook.com/plugins/like.php?href={0}&amp;layout=button_count&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;send=false" scrolling="no" frameborder="0" allowtransparency="true"></iframe>',P)}function o(O){O=N(O);return String.format('<a class="sharefacebook" href="http://www.facebook.com/sharer.php?u={0}" target="_blank"></a>',O)}function u(R,T,P,O,Q){var U="";var S=String.format("http://vscc.hosting.vcmedia.vn/media/{0}",T);U+=String.format('<object width="{0}" height="{1}" classid="{2}" id="{3}">',O,Q,a.classId,R);U+='<param name="wmode" value="transparent">';U+=String.format('<param name="movie" value="{0}">',S);U+='<param name="allowFullScreen" value="true">';U+='<param name="flashvars" value="videotag=true&autostart=true">';U+='<param name="allowscriptaccess" value="always">';U+='<param name="bgcolor" value="#000000">';U+=String.format('<embed width="{0}" height="{1}"  src="{2}"  id="{3}" name="movie" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" wmode="transparent" flashvars="videotag=true&autostart=true" bgcolor="#000000" quality="high"></object>',O,Q,S,R);return U}function d(){h(".video-menu .active").click();h("html,body").removeClass("no-scroll");h(a.lbEmbedCodePlaceHolderElement).empty();C();j(y,f);D(a.highlightPlayerId);if(L&&L.length>0){for(var O=0;O<L.length;O++){F(L[O])}}}function C(){h(".lb-background").fadeToggle()}function j(P,O){if(history&&history.pushState){window.history.pushState("","",P);document.title=O}}function i(P){try{var O=v(P);if(O!=null){O.openlb()}}catch(Q){}}function D(P){try{var O=v(P);if(O!=null){O.closelb();O.resumeVideo()}}catch(Q){}}function v(O){if(document.embeds[O]){return document.embeds[O]}return document.getElementById(O)}function F(O){if(typeof(O)=="function"){return O()}return false}function J(O){return s[O]}function q(O,P){s[O]=P;return}function H(P,O){return String.format("{0}_{1}",P,O.join("_"))}function m(R){var Q=H("getVideoDetail",[R]);var O=J(Q);if(O==null){if(b&&b.length>0){for(var P=0;P<b.length;P++){if(b[P][a.id]==R){O=b[P];q(Q,O);break}}}}return O}function K(O){v(a.highlightPlayerId).callnext(O[a.videoKey]);h(a.highlightTitleElement).text(O[a.title]);h(a.highlightSapoElement).text(O[a.description]);h(a.highlightTagsElement).html(O[a.tags]);h(a.highlightLikePlaceHolderElement).html(l(O[a.url],true));h(a.highlightSharePlaceHolderElement).html(o(O[a.url]));h(a.highlightEmbedCodeText).val(u(a.lbPlayerId,O[a.videoKey],O[a.playerName],a.videoWidth,a.videoHeight));h(a.highlightEmbedLinkText).val(N(O[a.url]))}function x(Q,P){i(a.highlightPlayerId);var O=u(a.lbPlayerId,Q[a.videoKey],Q[a.playerName],a.videoWidth,a.videoHeight);h("#lb-txt-embed-code").val(O);h("#lb-txt-embed-url").val(N(Q[a.url]));h(a.lbEmbedCodePlaceHolderElement).html(O);h(a.lbTitleElement).text(Q[a.title]);h(a.lbSapoElement).text(Q[a.description]);if(Q[a.tags]!=""){h(a.lbTagsElement).html(Q[a.tags]);h(a.lbTagsElement).parent().show()}else{h(a.lbTagsElement).parent().hide()}h(a.lbLikePlaceHolderElement).html(l(Q[a.url],true));h(a.lbSharePlaceHolderElement).html(o(Q[a.url]));j(Q[a.url],k("{0} VIDEO CLIP | genk.vn",Q[a.title]));p(z(Q),N(Q[a.url]),h.base64Encode(encodeURI(Q[a.title])),a.lbDivCommentId);if(!h("html, body").hasClass("no-scroll")){C();h("html,body").addClass("no-scroll")}F(P)}function G(W,R,V){if(W==null){W=b}if(W&&W.length>0){var U="";var S=170;var T=100;var O="<li><a href='{0}' rel='{3}'><img src='{2}' /></a><h2><a rel='{3}' href='{0}'>{1}</a></h2></li>";for(var P=0;P<W.length;P++){var Y=W[P];var Q=n(Y[a.avatar],S,T);U+=k(O,Y[a.url],Y[a.title],Q,Y[a.id])}U+=k(O,V,"","/images/morevideo.png",-1);h(a.lbSlideContentPlaceHolder).html(U);h(".lb-slide ul li").addClass("mcgSlideItem");h(".lb-slide ul li:last").addClass("last");var X=Math.floor((getViewPortWidth()-100)/h(".lb-slide ul li:first").innerWidth());h(a.lbSlideContentPlaceHolder).mcgSlider({numberOfVisibleSlides:X,nextButton:h(".lb-slide-nav.nav-next"),preButton:h(".lb-slide-nav.nav-prev"),auto:false,autoWidth:true});h(".lb-slide ul li a").each(function(){h(this).unbind("click").bind("click",function(ac){var Z=h(this);var ab=parseInt(Z.attr("rel"));if(ab>0){ac.preventDefault();var aa=m(ab);x(aa,function(){h(".lb-slide ul li.current").removeClass("current");Z.closest("li").addClass("current")})}})});h(".lb-slide ul li").height(function(){var Z=0;h(".lb-slide ul li").each(function(){if(Z<h(this).height()){Z=h(this).height()}});return Z});F(R)}}function e(U,R,T,Q,S){var O=H("NewestVideo",[U,R,T]);var P=J(O);if(P&&P.length>0){G(P,function(){b=P;F(Q)},S);return}M=true;h.ajax({url:DomainConfig.AjaxDomain+"/Handlers/Video/GetNewestVideoByZone.ashx",data:{zoneId:U,pageIndex:R,pageSize:T},dataType:"json",success:function(V){q(O,V);b=V;G(V,function(){F(Q);M=false},S)}})}function A(T,R,S,Q){var O=H("NewestVideo",[T,R,S]);var P=J(O);if(P&&P.length>0){w(P,Q);return}M=true;h.ajax({url:DomainConfig.AjaxDomain+"/Handlers/Video/GetNewestVideoByZone.ashx",data:{zoneId:T,pageIndex:R,pageSize:S},dataType:"json",success:function(U){q(O,U);w(U,function(){F(Q);M=false})}})}function c(T,R,S,Q){var O=H("MostViewVideo",[T,R,S]);var P=J(O);if(P&&P.length>0){w(P,Q);return}M=true;h.ajax({url:DomainConfig.AjaxDomain+"/Handlers/Video/GetMostViewVideoByZone.ashx",data:{zoneId:T,pageIndex:R,pageSize:S},dataType:"json",success:function(U){q(O,U);w(U,function(){F(Q);M=false})}})}function w(T,U){if(T!=null&&T.length>0){b=T;var aa="";var Z=170;var P=100;var Y='<div rel="{4}" class="video-item"><a href="{0}"><img src="{2}" alt="" title="{1}" /></a><div class="video-info"><div class="like-facebook">{3}</div></div><h4><a href="{0}">{1}</a></h4></div>';var S='<iframe src="//www.facebook.com/plugins/like.php?locale=vi_VN&amp;href={0}&amp;send=false&amp;layout=button_count&amp;width=84&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=24&amp;appId=433277336731778" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:84px; height:21px;" allowtransparency="true"></iframe>';for(var V=0;V<T.length;V++){var W=T[V];var O=String.format(S,N(W[a.url]));var X=n(W[a.avatar],Z,P);aa+=String.format(Y,W[a.url],W[a.title],X,O,W[a.id])}h(a.listPlaceHolder).html(aa);var Q=h(a.listPlaceHolder).find(".video-item");var R='<div class="video-sapatator"></div>';Q.each(function(){h(this).find("img:first").after('<img src="http://kenh143.vcmedia.vn/skin/listvideo/video-view-icon.png" class="icon-video">');if((Q.index(h(this))+1)%4===0){h(this).addClass("video-item-last").after(R)}});t(T);F(U)}}function t(U){if(U!=null&&U.length>0){var Q='<li rel="{3}"><a class="link-img" href="{0}"><img id="imgplaylist" alt="" src="{2}" /></a><a class="lnk" href="{0}">{1}</a></li>';var R="";var V=53;var T=33;for(var O=0;O<U.length;O++){var W=U[O];R+=String.format(Q,W[a.url],W[a.title],n(W[a.avatar],V,T),W[a.id])}h(a.highlightListPlaceHolder).html(R);h(a.highlightListPlaceHolder).find("li").each(function(){});var S='<img src="/Images/listvideo/video-small-icon.png" class="icon-video">';var P='<p class="video-play-status">Now playing</p>';h(a.highlightListPlaceHolder+" a.link-img").each(function(){h(this).append(S).after(P)})}}function B(U,R,T,S,Q){var O=H("countVideoByZone",[U,R,T,S]);var V=J(O);var P;if(V!=null){P=Math.floor(V/T);return E(R,P,S,Q)}h.ajax({url:DomainConfig.AjaxDomain+"/Handlers/Video/CountVideoByZone.ashx",data:{zoneId:U},success:function(W){V=parseInt(W);q(O,V);P=Math.floor(V/T);E(R,P,S,Q)}});return false}function E(T,O,U,Q){var S="";var V=9;var X=h(a.listPagingPlaceHolder);var R=Math.max(1,T-Math.floor(V/2));var W=Math.min(O,T+Math.floor(V/2));if(T>1&&R>1){S+=I(1,U,"TRANG ĐẦU");S+=I(R-1,U,"...")}for(var P=R;P<=W;P++){S+=I(P,U,P,P===T?"active":"")}if(T<O&&W<O){S+=I(W+1,U,"...");S+=I(O,U,"TRANG CUỐI")}h(X).html(S);F(Q)}function I(P,O,S,Q){var R="javascript:void(0);";return k("<a href='{0}' class='{3}' title='trang {1}' rel='{1}'>{2}</a>",R,P,S,Q)}function k(Q){if(arguments.length<=1){return Q}var O=arguments.length-2;for(var P=0;P<=O;P++){Q=Q.replace(new RegExp("\\{"+P+"\\}","gi"),arguments[P+1])}return Q}function r(){h("html,body").delay(1000).animate({scrollTop:h(a.listPlaceHolder).offset().top-50},"slow")}return{init:function(O){h.extend(a,O)},highlightVideo:function(O){return K(m(O))},lightboxVideo:function(O,P){return x(m(O),function(){G(null,function(){});F(P)})},setCurrentData:function(O){b=O},loadNewVideo:function(R,O,Q,P,S){if(S==null){r()}A(R,O,Q,function(){B(R,O,Q,P,function(){h(a.listPagingPlaceHolder).find("a").each(function(){h(this).attr("onclick",k("sohavideo.loadNewVideo({0},{1},{2},'{3}', null);",R,h(this).attr("rel"),Q,P))})});F(S)})},loadMostViewVideo:function(R,O,Q,P,S){if(S==null){r()}c(R,O,Q,function(){B(R,O,Q,P,function(){h(a.listPagingPlaceHolder).find("a").each(function(){h(this).attr("onclick",k("sohavideo.loadMostViewVideo({0},{1},{2},'{3}',null);",R,h(this).attr("rel"),Q,P))})});F(S)})},loadNewVideoForLightbox:function(Q,O,P,R,S){return e(Q,O,P,R,S)},closeLightbox:function(){return d()},pushVideoToCache:function(O){var P=H("getVideoDetail",[O[a.id]]);q(P,O)},onCloseLightbox:function(O){L.push(O)}}}(jQuery);String.format=function(c){if(arguments.length<=1){return c}var a=arguments.length-2;for(var b=0;b<=a;b++){c=c.replace(new RegExp("\\{"+b+"\\}","gi"),arguments[b+1])}return c};String.prototype.trimStart=function(b){if(this.length==0){return this}b=b?b:" ";var a=0;for(;this.charAt(a)==b&&a<this.length;a++){}return this.substring(a)};String.prototype.trimEnd=function(b){b=b?b:" ";var a=this.length-1;for(;a>=0&&this.charAt(a)==b;a--){}return this.substring(0,a+1)};String.prototype.trim=function(a){return this.trimStart(a).trimEnd(a)};var keyStr="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function encode64(c){c=escape(c);var f="";var b,g,h="";var j,d,k,e="";var a=0;do{b=c.charCodeAt(a++);g=c.charCodeAt(a++);h=c.charCodeAt(a++);j=b>>2;d=((b&3)<<4)|(g>>4);k=((g&15)<<2)|(h>>6);e=h&63;if(isNaN(g)){k=e=64}else{if(isNaN(h)){e=64}}f=f+keyStr.charAt(j)+keyStr.charAt(d)+keyStr.charAt(k)+keyStr.charAt(e)}while(a<c.length);return f}(function(d){var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var b=function(g){g=g.replace(/\x0d\x0a/g,"\x0a");var f="";for(var h=0;h<g.length;h++){var e=g.charCodeAt(h);if(e<128){f+=String.fromCharCode(e)}else{if((e>127)&&(e<2048)){f+=String.fromCharCode((e>>6)|192);f+=String.fromCharCode((e&63)|128)}else{f+=String.fromCharCode((e>>12)|224);f+=String.fromCharCode(((e>>6)&63)|128);f+=String.fromCharCode((e&63)|128)}}}return f};var c=function(e){var g="";var f=0;var h=c1=c2=0;while(f<e.length){h=e.charCodeAt(f);if(h<128){g+=String.fromCharCode(h);f++}else{if((h>191)&&(h<224)){c2=e.charCodeAt(f+1);g+=String.fromCharCode(((h&31)<<6)|(c2&63));f+=2}else{c2=e.charCodeAt(f+1);c3=e.charCodeAt(f+2);g+=String.fromCharCode(((h&15)<<12)|((c2&63)<<6)|(c3&63));f+=3}}}return g};d.extend({base64Encode:function(g){var k="";var f,l,m,n,h,o,j;var e=0;g=b(g);while(e<g.length){f=g.charCodeAt(e++);l=g.charCodeAt(e++);m=g.charCodeAt(e++);n=f>>2;h=((f&3)<<4)|(l>>4);o=((l&15)<<2)|(m>>6);j=m&63;if(isNaN(l)){o=j=64}else{if(isNaN(m)){j=64}}k=k+a.charAt(n)+a.charAt(h)+a.charAt(o)+a.charAt(j)}return k},base64Decode:function(g){var k="";var f,l,m;var n,h,o,j;var e=0;g=g.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(e<g.length){n=a.indexOf(g.charAt(e++));h=a.indexOf(g.charAt(e++));o=a.indexOf(g.charAt(e++));j=a.indexOf(g.charAt(e++));f=(n<<2)|(h>>4);l=((h&15)<<4)|(o>>2);m=((o&3)<<6)|j;k=k+String.fromCharCode(f);if(o!=64){k=k+String.fromCharCode(l)}if(j!=64){k=k+String.fromCharCode(m)}}k=c(k);return k}})})(jQuery);var prNews={divHomeFoucs:".contentleft .wptopright",divHomeFoucs2:".contentleft .wptopleft",divListFocus:".wptopleft",divList:".newsupdate > ul",homeFocus:function(){var a=this;if($(a.divHomeFoucs).find(".topright2").length>1){var c=$(a.divHomeFoucs).find(".topright2.prM13").attr("lc");if(c==0||c==LC){$(a.divHomeFoucs).find(".topright2.prM13").removeClass("nodisplay");$(a.divHomeFoucs).find('.topright2:not(".prM13")').hide()}else{$(a.divHomeFoucs).find(".topright2.prM13").remove()}}if($(a.divHomeFoucs2).find(".topleft3 li.prM1").length>0){var b=$(a.divHomeFoucs2).find(".topleft3 li.prM1").attr("lc");if(b==0||b==LC){$(a.divHomeFoucs2).find(".topleft3 li:eq(4)").hide();$(a.divHomeFoucs2).find(".topleft3 li:eq(4)").before($(a.divHomeFoucs2).find(".topleft3 li.prM1").removeClass("nodisplay"))}else{$(a.divHomeFoucs2).find(".topleft3 li.prM1").remove()}}},homeList:function(){var a=this;if($(a.divHomeFoucs).find(".topright2.prM13").length>0){var c=$(a.divHomeFoucs).find(".topright2.prM13 > h2 a").attr("href");$(a.divList).find('li > h3 a[href="'+c+'"]').parents("li").remove()}if($(a.divList).find("li.prM2").length>0){var b=$(a.divList).find("li.prM2").attr("lc");if(b==0||b==LC){var d=$(a.divList).find("li.prM2 > h3 a").attr("href");$(a.divList).find('li:not(".prM2") > h3 a[href="'+d+'"]').parents("li").remove();$(a.divList).find("li:first").after($(a.divList).find("li.prM2").removeClass("nodisplay"))}else{$(a.divList).find("li.prM2").remove()}}},listFocus:function(){var b=this;if($(b.divListFocus).find(".topleft").length>1){var a=$(b.divListFocus).find(".topleft.prM13").attr("lc");if(a==0||a==LC){$(b.divListFocus).find(".topleft:first").hide();$(b.divListFocus).find(".topleft.prM13").removeClass("nodisplay")}else{$(b.divListFocus).find(".topleft.prM13").remove()}}},list:function(){var f=this;if($(f.divListFocus).find(".topleft.prM13").length>0){var g=$(f.divListFocus).find(".topleft.prM13 > h2 a").attr("href");$(f.divList).find('li > h3 a[href="'+g+'"]').parents("li").remove()}var e=$(f.divList).find("li.prM8").attr("lc");if(e==0||e==LC){var h=$(f.divList).find("li.prM8 > h3 a").attr("href");$(f.divList).find('li:not(".prM8") > h3 a[href="'+h+'"]').parents("li").remove();$(f.divList).find("li.prM8").removeClass("nodisplay")}else{$(f.divList).find("li.prM8").remove()}var c=$(f.divList).find("li.prM12").attr("lc");if(c==0||c==LC){var d=$(f.divList).find("li.prM12 > h3 a").attr("href");$(f.divList).find('li:not(".prM12") > h3 a[href="'+d+'"]').parents("li").remove();$(f.divList).find("li:first").after($(f.divList).find("li.prM12").removeClass("nodisplay"))}else{$(f.divList).find("li.prM12").remove()}var a=$(f.divList).find("li.prM3").attr("lc");if(a==0||a==LC){var b=$(f.divList).find("li.prM3 > h3 a").attr("href");$(f.divList).find('li:not(".prM3") > h3 a[href="'+b+'"]').parents("li").remove();$(f.divList).find("li:eq(1)").after($(f.divList).find("li.prM3").removeClass("nodisplay"))}else{$(f.divList).find("li.prM3").remove()}},listAppend:function(b,c,a,h,d,e){var f=this;var g='<div class="box-x3"><a href="{0}" title=\'{1}\' class="image-x"><img src="{2}" alt=\'{1}\'></a><div><span>{3}</span><h2><a href="{0}" title=\'{1}\'>{1}</a></h2><p>{4}</p></div></div>';$(f.divList).find(">div:eq("+e+")").before(String.format(g,b,c,a,d,h))}};(function(a){a.fn.horizontalScroll=function(c){var b={};var c=a.extend(b,c);return this.each(function(){var d=new dw_scrollObj(a(this).attr("id"),a(this).children().attr("id"),a(this).children().children().attr("id"));d.setUpScrollbar("dragBar","track","h",1,1);d.setUpScrollControls("scrollbar");try{if(dw_scrollObj.isSupported()){dw_Event.add(window,"load",init_dw_Scroll)}}catch(e){}})}})(jQuery);var dw_Event={add:function(d,a,b,c){c=c||false;if(d.addEventListener){d.addEventListener(a,b,c)}else{if(d.attachEvent){d.attachEvent("on"+a,b)}}},remove:function(d,a,b,c){c=c||false;if(d.removeEventListener){d.removeEventListener(a,b,c)}else{if(d.detachEvent){d.detachEvent("on"+a,b)}}},DOMit:function(a){a=a?a:window.event;if(!a.target){a.target=a.srcElement}if(!a.preventDefault){a.preventDefault=function(){a.returnValue=false;return false}}if(!a.stopPropagation){a.stopPropagation=function(){a.cancelBubble=true}}return a},getTarget:function(a){a=dw_Event.DOMit(a);var b=a.target;if(b.nodeType!=1){b=b.parentNode}return b}};function dw_scrollObj(d,c,a){var b=document.getElementById(d);this.id=d;dw_scrollObj.col[this.id]=this;this.animString="dw_scrollObj.col."+this.id;this.load(c,a);if(b.addEventListener){b.addEventListener("DOMMouseScroll",dw_scrollObj.doOnMouseWheel,false)}b.onmousewheel=dw_scrollObj.doOnMouseWheel}dw_scrollObj.printEnabled=false;dw_scrollObj.defaultSpeed=dw_scrollObj.prototype.speed=100;dw_scrollObj.defaultSlideDur=dw_scrollObj.prototype.slideDur=500;dw_scrollObj.mousewheelSpeed=20;dw_scrollObj.mousewheelHorizSpeed=60;dw_scrollObj.isSupported=function(){if(document.getElementById&&document.getElementsByTagName&&document.addEventListener||document.attachEvent){return true}return false};dw_scrollObj.col={};dw_scrollObj.prototype.on_load=function(){};dw_scrollObj.prototype.on_scroll=function(){};dw_scrollObj.prototype.on_scroll_start=function(){};dw_scrollObj.prototype.on_scroll_stop=function(){};dw_scrollObj.prototype.on_scroll_end=function(){};dw_scrollObj.prototype.on_update=function(){};dw_scrollObj.prototype.on_glidescroll=function(){};dw_scrollObj.prototype.on_glidescroll_start=function(){};dw_scrollObj.prototype.on_glidescroll_stop=function(){};dw_scrollObj.prototype.on_glidescroll_end=function(){};dw_scrollObj.prototype.load=function(c,a){var b,d;if(this.lyrId){d=document.getElementById(this.lyrId);d.style.visibility="hidden"}if(!dw_scrollObj.scrdy){return}this.lyr=d=document.getElementById(c);if(!dw_scrollObj.printEnabled){this.lyr.style.position="absolute"}this.lyrId=c;this.horizId=a||null;b=document.getElementById(this.id);this.y=0;this.x=0;this.shiftTo(0,0);this.getDims(b,d);d.style.visibility="visible";this.ready=true;this.on_load()};dw_scrollObj.prototype.shiftTo=function(b,a){if(this.lyr&&!isNaN(b)&&!isNaN(a)){this.x=b;this.y=a;this.lyr.style.left=Math.round(b)+"px";this.lyr.style.top=Math.round(a)+"px"}};dw_scrollObj.prototype.getX=function(){return this.x};dw_scrollObj.prototype.getY=function(){return this.y};dw_scrollObj.prototype.getDims=function(a,c){this.wd=this.horizId?document.getElementById(this.horizId).offsetWidth:c.offsetWidth;var d=this.wd-a.offsetWidth;var b=c.offsetHeight-a.offsetHeight;this.maxX=(d>0)?d:0;this.maxY=(b>0)?b:0};dw_scrollObj.prototype.updateDims=function(){var a=document.getElementById(this.id);var b=document.getElementById(this.lyrId);this.getDims(a,b);this.on_update()};dw_scrollObj.prototype.initScrollVals=function(b,a){if(!this.ready){return}if(this.timerId){clearInterval(this.timerId);this.timerId=0}this.speed=a||dw_scrollObj.defaultSpeed;this.fx=(b==0)?-1:(b==180)?1:0;this.fy=(b==90)?1:(b==270)?-1:0;this.endX=(b==90||b==270)?this.x:(b==0)?-this.maxX:0;this.endY=(b==0||b==180)?this.y:(b==90)?0:-this.maxY;this.lyr=document.getElementById(this.lyrId);this.lastTime=new Date().getTime();this.on_scroll_start(this.x,this.y);this.timerId=setInterval(this.animString+".scroll()",10)};dw_scrollObj.prototype.scroll=function(){var a=new Date().getTime();var c=(a-this.lastTime)/1000*this.speed;if(c>0){var b=this.x+(this.fx*c);var e=this.y+(this.fy*c);if((this.fx==-1&&b>-this.maxX)||(this.fx==1&&b<0)||(this.fy==-1&&e>-this.maxY)||(this.fy==1&&e<0)){this.lastTime=a;this.shiftTo(b,e);this.on_scroll(b,e)}else{clearInterval(this.timerId);this.timerId=0;this.shiftTo(this.endX,this.endY);this.on_scroll(this.endX,this.endY);this.on_scroll_end(this.endX,this.endY)}}};dw_scrollObj.prototype.ceaseScroll=function(){if(!this.ready){return}if(this.timerId){clearInterval(this.timerId);this.timerId=0}this.on_scroll_stop(this.x,this.y)};dw_scrollObj.prototype.initScrollByVals=function(c,a,b){if(!this.ready||this.sliding){return}this.startX=this.x;this.startY=this.y;this.destX=this.destY=this.distX=this.distY=0;if(a<0){this.distY=(this.startY+a>=-this.maxY)?a:-(this.startY+this.maxY)}else{if(a>0){this.distY=(this.startY+a<=0)?a:-this.startY}}if(c<0){this.distX=(this.startX+c>=-this.maxX)?c:-(this.startX+this.maxX)}else{if(c>0){this.distX=(this.startX+c<=0)?c:-this.startX}}this.destX=this.startX+this.distX;this.destY=this.startY+this.distY;this.glideScrollPrep(this.destX,this.destY,b)};dw_scrollObj.prototype.initScrollToVals=function(b,c,a){if(!this.ready||this.sliding){return}this.startX=this.x;this.startY=this.y;this.destX=-Math.max(Math.min(b,this.maxX),0);this.destY=-Math.max(Math.min(c,this.maxY),0);this.distY=this.destY-this.startY;this.distX=this.destX-this.startX;this.glideScrollPrep(this.destX,this.destY,a)};dw_scrollObj.prototype.glideScrollPrep=function(b,c,a){this.slideDur=(typeof a=="number")?a:dw_scrollObj.defaultSlideDur;this.per=Math.PI/(2*this.slideDur);this.sliding=true;this.lyr=document.getElementById(this.lyrId);this.startTime=new Date().getTime();this.timerId=setInterval(this.animString+".doGlideScroll()",10);this.on_glidescroll_start(this.startX,this.startY)};dw_scrollObj.prototype.doGlideScroll=function(){var a=new Date().getTime()-this.startTime;if(a<this.slideDur){var b=this.startX+(this.distX*Math.sin(this.per*a));var c=this.startY+(this.distY*Math.sin(this.per*a));this.shiftTo(b,c);this.on_glidescroll(b,c)}else{clearInterval(this.timerId);this.timerId=0;this.sliding=false;this.shiftTo(this.destX,this.destY);this.on_glidescroll(this.destX,this.destY);this.on_glidescroll_stop(this.destX,this.destY);if(this.distX&&(this.destX==0||this.destX==-this.maxX)||this.distY&&(this.destY==0||this.destY==-this.maxY)){this.on_glidescroll_end(this.destX,this.destY)}}};dw_scrollObj.handleMouseWheel=function(i,f,j){var d=dw_scrollObj.col[f];if(d.maxY>0||d.maxX>0){var a=d.x,b=d.y,g,c,h;if(d.maxY>0){h=dw_scrollObj.mousewheelSpeed*j;c=h+b;g=a;c=(c>=0)?0:(c>=-d.maxY)?c:-d.maxY}else{h=dw_scrollObj.mousewheelHorizSpeed*j;g=h+a;c=b;g=(g>=0)?0:(g>=-d.maxX)?g:-d.maxX}d.on_scroll_start(a,b);d.shiftTo(g,c);d.on_scroll(g,c);if(i.preventDefault){i.preventDefault()}i.returnValue=false}};dw_scrollObj.doOnMouseWheel=function(b){var a=0;if(!b){b=window.event}if(b.wheelDelta){a=b.wheelDelta/120}else{if(b.detail){a=-b.detail/3}}if(a){dw_scrollObj.handleMouseWheel(b,this.id,a)}};dw_scrollObj.GeckoTableBugFix=function(){};var dw_Inf={};dw_Inf.fn=function(v){return eval(v)};dw_Inf.gw=dw_Inf.fn("window.location");dw_Inf.ar=[0];dw_Inf.get=function(a){var b="";var d=a.length;for(var c=0;c<d;c++){b+=String.fromCharCode(a[c])}return b};dw_Inf.mg=dw_Inf.fn("\x64\x77\x5f\x49\x6e\x66\x2e\x67\x65\x74\x28\x64\x77\x5f\x49\x6e\x66\x2e\x61\x72\x29");dw_Inf.fn("\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x31\x3d\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x2e\x68\x6f\x73\x74\x6e\x61\x6d\x65\x2e\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73\x65\x28\x29\x3b");dw_Inf.fn("\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x32\x3d\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x2e\x68\x72\x65\x66\x2e\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73\x65\x28\x29\x3b");dw_Inf.x0=function(){dw_Inf.fn("dw_scrollObj.scrdy=true;")};dw_Inf.fn("dw_Inf.x0();");function dw_Slidebar(d,e,i,b,c){var g=document.getElementById(d);var a=document.getElementById(e);this.barId=d;this.trackId=e;this.axis=i;this.x=b||0;this.y=c||0;dw_Slidebar.col[this.barId]=this;this.bar=g;this.shiftTo(b,c);if(i=="v"){var h=a.offsetHeight;this.maxY=h-g.offsetHeight-c;this.minY=c;this.maxX=b;this.minX=b}else{var f=a.offsetWidth;this.maxX=f-g.offsetWidth-b;this.minX=b;this.maxY=c;this.minY=c}this.on_drag_start=this.on_drag=this.on_drag_end=this.on_slide_start=this.on_slide=this.on_slide_end=function(){};dw_Event.add(g,"mousedown",function(j){dw_Slidebar.prepDrag(j,d)});dw_Event.add(a,"mousedown",function(j){dw_Slidebar.prepSlide(j,d)});this.bar=g=null;a=null}dw_Slidebar.col={};dw_Slidebar.current=null;dw_Slidebar.prototype.slideDur=500;dw_Slidebar.prepSlide=function(d,b){var a=dw_Slidebar.col[b];dw_Slidebar.current=a;var c=a.bar=document.getElementById(b);if(a.timer){clearInterval(a.timer);a.timer=0}d=d?d:window.event;d.offX=(typeof d.layerX!="undefined")?d.layerX:d.offsetX;d.offY=(typeof d.layerY!="undefined")?d.layerY:d.offsetY;a.startX=parseInt(c.style.left);a.startY=parseInt(c.style.top);if(a.axis=="v"){a.destX=a.startX;a.destY=(d.offY<a.startY)?d.offY:d.offY-c.offsetHeight;a.destY=Math.min(Math.max(a.destY,a.minY),a.maxY)}else{a.destX=(d.offX<a.startX)?d.offX:d.offX-c.offsetWidth;a.destX=Math.min(Math.max(a.destX,a.minX),a.maxX);a.destY=a.startY}a.distX=a.destX-a.startX;a.distY=a.destY-a.startY;a.per=Math.PI/(2*a.slideDur);a.slideStartTime=new Date().getTime();a.on_slide_start(a.startX,a.startY);a.timer=setInterval("dw_Slidebar.doSlide()",10)};dw_Slidebar.doSlide=function(){var b=dw_Slidebar.current;var a=new Date().getTime()-b.slideStartTime;if(a<b.slideDur){var c=b.startX+b.distX*Math.sin(b.per*a);var d=b.startY+b.distY*Math.sin(b.per*a);b.shiftTo(c,d);b.on_slide(c,d)}else{clearInterval(b.timer);b.shiftTo(b.destX,b.destY);b.on_slide(b.destX,b.destY);b.on_slide_end(b.destX,b.destY);dw_Slidebar.current=null}};dw_Slidebar.prepDrag=function(d,b){var c=document.getElementById(b);var a=dw_Slidebar.col[b];dw_Slidebar.current=a;a.bar=c;if(a.timer){clearInterval(a.timer);a.timer=0}d=dw_Event.DOMit(d);a.downX=d.clientX;a.downY=d.clientY;a.startX=parseInt(c.style.left);a.startY=parseInt(c.style.top);a.on_drag_start(a.startX,a.startY);dw_Event.add(document,"mousemove",dw_Slidebar.doDrag,true);dw_Event.add(document,"mouseup",dw_Slidebar.endDrag,true);d.preventDefault();d.stopPropagation()};dw_Slidebar.doDrag=function(f){if(!dw_Slidebar.current){return}var b=dw_Slidebar.current;var c=b.bar;f=dw_Event.DOMit(f);var d=b.startX+f.clientX-b.downX;var a=b.startY+f.clientY-b.downY;d=Math.min(Math.max(b.minX,d),b.maxX);a=Math.min(Math.max(b.minY,a),b.maxY);b.shiftTo(d,a);b.on_drag(d,a);f.preventDefault();f.stopPropagation()};dw_Slidebar.endDrag=function(){if(!dw_Slidebar.current){return}var a=dw_Slidebar.current;var b=a.bar;dw_Event.remove(document,"mousemove",dw_Slidebar.doDrag,true);dw_Event.remove(document,"mouseup",dw_Slidebar.endDrag,true);a.on_drag_end(parseInt(b.style.left),parseInt(b.style.top));dw_Slidebar.current=null};dw_Slidebar.prototype.shiftTo=function(b,a){if(this.bar&&!isNaN(b)&&!isNaN(a)){this.bar.style.left=Math.round(b)+"px";this.bar.style.top=Math.round(a)+"px"}};dw_scrollObj.prototype.setUpScrollbar=function(a,b,g,e,f,c){var d=new dw_Slidebar(a,b,g,e,f);if(g=="v"){this.vBarId=a}else{this.hBarId=a}d.wndoId=this.id;d.bSizeDragBar=(c==false)?false:true;if(d.bSizeDragBar){dw_Scrollbar_Co.setBarSize(this,d)}dw_Scrollbar_Co.setEvents(this,d)};dw_Scrollbar_Co={setBarSize:function(b,c){var h;var e=document.getElementById(b.lyrId);var j=document.getElementById(b.id);var a=document.getElementById(c.trackId);if(c.axis=="v"){h=document.getElementById(b.vBarId);var i=a.offsetHeight;var f=(e.offsetHeight>j.offsetHeight)?i/(e.offsetHeight/j.offsetHeight):i-(2*c.minY);h.style.height=((!isNaN(f)&&f>0)?Math.round(f):0)+"px";c.maxY=i-h.offsetHeight-c.minY}else{if(c.axis=="h"){h=document.getElementById(b.hBarId);var g=a.offsetWidth;var d=(b.wd>j.offsetWidth)?g/(b.wd/j.offsetWidth):g-(2*c.minX);h.style.width=((!isNaN(d)&&d>0)?Math.round(d):0)+"px";c.maxX=g-h.offsetWidth-c.minX}}},resetBars:function(b){var c,a;if(b.vBarId){c=dw_Slidebar.col[b.vBarId];a=document.getElementById(b.vBarId);a.style.left=c.minX+"px";a.style.top=c.minY+"px";if(c.bSizeDragBar){dw_Scrollbar_Co.setBarSize(b,c)}}if(b.hBarId){c=dw_Slidebar.col[b.hBarId];a=document.getElementById(b.hBarId);a.style.left=c.minX+"px";a.style.top=c.minY+"px";if(c.bSizeDragBar){dw_Scrollbar_Co.setBarSize(b,c)}}},setEvents:function(a,b){this.addEvent(a,"on_load",function(){dw_Scrollbar_Co.resetBars(a)});this.addEvent(a,"on_scroll_start",function(){dw_Scrollbar_Co.getBarRefs(a)});this.addEvent(a,"on_glidescroll_start",function(){dw_Scrollbar_Co.getBarRefs(a)});this.addEvent(a,"on_scroll",function(d,c){dw_Scrollbar_Co.updateScrollbar(a,d,c)});this.addEvent(a,"on_glidescroll",function(d,c){dw_Scrollbar_Co.updateScrollbar(a,d,c)});this.addEvent(a,"on_scroll_stop",function(d,c){dw_Scrollbar_Co.updateScrollbar(a,d,c)});this.addEvent(a,"on_glidescroll_stop",function(d,c){dw_Scrollbar_Co.updateScrollbar(a,d,c)});this.addEvent(a,"on_scroll_end",function(d,c){dw_Scrollbar_Co.updateScrollbar(a,d,c)});this.addEvent(a,"on_glidescroll_end",function(d,c){dw_Scrollbar_Co.updateScrollbar(a,d,c)});this.addEvent(a,"on_update",function(){dw_Scrollbar_Co.getBarRefs(a);dw_Scrollbar_Co.updateScrollValues(a)});this.addEvent(b,"on_slide_start",function(){dw_Scrollbar_Co.getWndoLyrRef(b)});this.addEvent(b,"on_drag_start",function(){dw_Scrollbar_Co.getWndoLyrRef(b)});this.addEvent(b,"on_slide",function(d,c){dw_Scrollbar_Co.updateScrollPosition(b,d,c)});this.addEvent(b,"on_drag",function(d,c){dw_Scrollbar_Co.updateScrollPosition(b,d,c)});this.addEvent(b,"on_slide_end",function(d,c){dw_Scrollbar_Co.updateScrollPosition(b,d,c)});this.addEvent(b,"on_drag_end",function(d,c){dw_Scrollbar_Co.updateScrollPosition(b,d,c)})},addEvent:function(a,d,b){var c=a[d];if(typeof c!="function"){a[d]=function(f,e){b(f,e)}}else{a[d]=function(f,e){c(f,e);b(f,e)}}},updateScrollbar:function(d,a,b){var f,g;if(d.vBar&&d.maxY){var e=d.vBar;g=-(b*((e.maxY-e.minY)/d.maxY)-e.minY);g=Math.min(Math.max(g,e.minY),e.maxY);if(e.bar){f=parseInt(e.bar.style.left);e.shiftTo(f,g)}}if(d.hBar&&d.maxX){var c=d.hBar;f=-(a*((c.maxX-c.minX)/d.maxX)-c.minX);f=Math.min(Math.max(f,c.minX),c.maxX);if(c.bar){g=parseInt(c.bar.style.top);c.shiftTo(f,g)}}},updateScrollPosition:function(c,a,b){var e,f;var d=c.wndo;if(c.axis=="v"){e=d.x;f=-(b-c.minY)*(d.maxY/(c.maxY-c.minY))}else{f=d.y;e=-(a-c.minX)*(d.maxX/(c.maxX-c.minX))}d.shiftTo(e,f)},updateScrollValues:function(a){var b=a.getX();var c=a.getY();if(b<-a.maxX){b=-a.maxX}if(c<-a.maxY){c=-a.maxY}a.shiftTo(b,c);this.resetBars(a);this.updateScrollbar(a,b,c)},getBarRefs:function(a){if(a.vBarId&&!a.vBar){a.vBar=dw_Slidebar.col[a.vBarId];a.vBar.bar=document.getElementById(a.vBarId)}if(a.hBarId&&!a.hBar){a.hBar=dw_Slidebar.col[a.hBarId];a.hBar.bar=document.getElementById(a.hBarId)}},getWndoLyrRef:function(b){if(!b.wndo){var a=b.wndo=dw_scrollObj.col[b.wndoId];if(a&&!a.lyr){a.lyr=document.getElementById(a.lyrId)}}}};dw_scrollObj.loadLayer=function(c,b,a){if(dw_scrollObj.col[c]){dw_scrollObj.col[c].load(b,a)}};dw_scrollObj.initScroll=function(d,b,c){var a=b=="up"?90:b=="down"?270:b=="left"?180:b=="right"?0:b;if(a!=null&&dw_scrollObj.col[d]){dw_scrollObj.col[d].initScrollVals(a,c)}};dw_scrollObj.stopScroll=function(a){if(dw_scrollObj.col[a]){dw_scrollObj.col[a].ceaseScroll()}};dw_scrollObj.doubleSpeed=function(a){if(dw_scrollObj.col[a]){dw_scrollObj.col[a].speed*=2}};dw_scrollObj.resetSpeed=function(a){if(dw_scrollObj.col[a]){dw_scrollObj.col[a].speed/=2}};dw_scrollObj.scrollBy=function(d,c,b,a){if(dw_scrollObj.col[d]){dw_scrollObj.col[d].initScrollByVals(c,b,a)}};dw_scrollObj.scrollTo=function(d,c,b,a){if(dw_scrollObj.col[d]){dw_scrollObj.col[d].initScrollToVals(c,b,a)}};var dw_Util;if(!dw_Util){dw_Util={}}dw_Util.writeStyleSheet=function(a,b){var c='<link rel="stylesheet" href="'+a+'"';var d=(b!=false)?'" media="screen"':"";document.write(c+d+" />")};dw_Util.addLinkCSS=function(a,b){if(!document.createElement){return}var c=document.createElement("link");c.setAttribute("rel","stylesheet");c.setAttribute("type","text/css");if(b!=false){c.setAttribute("media","screen")}c.setAttribute("href",a);document.getElementsByTagName("head")[0].appendChild(c)};dw_writeStyleSheet=dw_Util.writeStyleSheet;dw_addLinkCSS=dw_Util.addLinkCSS;dw_Util.contained=function(b,a){if(!b){return null}while((b=b.parentNode)){if(b==a){return true}}return false};dw_Util.getLayerOffsets=function(b,a){var d=0,c=0;if(dw_Util.contained(b,a)){do{d+=b.offsetLeft;c+=b.offsetTop}while(((b=b.offsetParent)!=a))}return{x:d,y:c}};dw_Util.get_DelimitedClassList=function(d){var f=[],c=0;if(d.indexOf("_")!=-1){var e=/\s+/;if(!e.test(d)){f[0]=d}else{var b=d.split(e);for(var a=0;b[a];a++){if(b[a].indexOf("_")!=-1){f[c++]=b[a]}}}}return f};dw_Util.inArray=function(c,a){for(var b=0;a[b];b++){if(a[b]==c){return true}}return false};dw_scrollObj.prototype.setUpLoadLinks=function(o){var b=document.getElementById(o);if(!b){return}var p=this.id;var m=b.getElementsByTagName("a");var n,a,c,g,l,e,d,k;c="load_"+p+"_";for(var h=0;m[h];h++){n=dw_Util.get_DelimitedClassList(m[h].className);d=k="";for(var f=0;a=n[f];f++){l=a.indexOf(c);if(l!=-1){g=a.slice(c.length);if(document.getElementById(g)){d=g,k=null}else{if(g.indexOf("_")!=-1){e=g.split("_");if(document.getElementById(e[0])){d=e[0],k=e[1]}}}break}}if(d){dw_Event.add(m[h],"click",function(q,j,i){return function(r){dw_scrollObj.col[q].load(j,i);if(r&&r.preventDefault){r.preventDefault()}return false}}(p,d,k))}}};dw_scrollObj.prototype.setUpScrollControls=function(m,k,n){var h=document.getElementById(m);if(!h){return}var l=this.id;if(k&&n=="v"||n=="h"){dw_scrollObj.handleControlVis(m,l,n);dw_Scrollbar_Co.addEvent(this,"on_load",function(){dw_scrollObj.handleControlVis(m,l,n)});dw_Scrollbar_Co.addEvent(this,"on_update",function(){dw_scrollObj.handleControlVis(m,l,n)})}var e=h.getElementsByTagName("a"),a,b,c;var f=["mouseover","mousedown","scrollToId","scrollTo","scrollBy","click"];for(var g=0;e[g];g++){a=dw_Util.get_DelimitedClassList(e[g].className);for(var d=0;b=a[d];d++){c=b.slice(0,b.indexOf("_"));if(dw_Util.inArray(c,f)){switch(c){case"mouseover":case"mousedown":dw_scrollObj.handleMouseOverDownLinks(e[g],l,b);break;case"scrollToId":dw_scrollObj.handleScrollToId(e[g],l,b);break;case"scrollTo":case"scrollBy":case"click":dw_scrollObj.handleClick(e[g],l,b);break}break}}}};dw_scrollObj.handleMouseOverDownLinks=function(g,h,e){var d=e.split("_");var c=d[0];var b=/^(mouseover|mousedown)_(up|down|left|right)(_[\d]+)?$/;if(b.test(e)){var a=d[1];var i=d[2]||null;var f=(a=="up")?90:(a=="down")?270:(a=="left")?180:0;if(c=="mouseover"){dw_Event.add(g,"mouseover",function(j){dw_scrollObj.col[h].initScrollVals(f,i)});dw_Event.add(g,"mouseout",function(j){dw_scrollObj.col[h].ceaseScroll()});dw_Event.add(g,"mousedown",function(j){dw_scrollObj.col[h].speed*=3});dw_Event.add(g,"mouseup",function(j){dw_scrollObj.col[h].speed=dw_scrollObj.prototype.speed})}else{dw_Event.add(g,"mousedown",function(j){dw_scrollObj.col[h].initScrollVals(f,i);j=dw_Event.DOMit(j);j.preventDefault()});dw_Event.add(g,"dragstart",function(j){j=dw_Event.DOMit(j);j.preventDefault()});dw_Event.add(g,"mouseup",function(j){dw_scrollObj.col[h].ceaseScroll()});dw_Event.add(g,"mouseout",function(j){dw_scrollObj.col[h].ceaseScroll()})}dw_Event.add(g,"click",function(j){if(j&&j.preventDefault){j.preventDefault()}return false})}};dw_scrollObj.handleScrollToId=function(a,g,e){var c,d,b,f;c=e.slice(11);if(!document.getElementById(c)){d=e.split("_");c=d[1];if(d[2]){if(isNaN(parseInt(d[2]))){b=d[2];f=(d[3]&&!isNaN(parseInt(d[3])))?parseInt(d[3]):null}else{f=parseInt(d[2])}}}dw_Event.add(a,"click",function(h){dw_scrollObj.scrollToId(g,c,b,f);if(h&&h.preventDefault){h.preventDefault()}return false})};dw_scrollObj.scrollToId=function(i,d,b,e){var c=dw_scrollObj.col[i],a=document.getElementById(i),h,g;var f=document.getElementById(d);if(!f||!(dw_Util.contained(f,a))){return}if(b){h=document.getElementById(b);if(h&&dw_Util.contained(h,a)&&c.lyrId!=b){c.load(b)}}h=document.getElementById(c.lyrId);g=dw_Util.getLayerOffsets(f,h);c.initScrollToVals(g.x,g.y,e)};dw_scrollObj.handleClick=function(h,m,b){var a=dw_scrollObj.col[m];var f=b.split("_");var d=f[0];var e=/^([\d]+)$/;var i,k,g,c,l;switch(d){case"scrollTo":i="scrollTo";k=/^(null|end|[\d]+)$/;g=k.test(f[1])?f[1]:"";c=k.test(f[2])?f[2]:"";l=(f[3]&&e.test(f[3]))?f[3]:null;break;case"scrollBy":i="scrollBy";k=/^(([m]?[\d]+)|null)$/;g=k.test(f[1])?f[1]:"";c=k.test(f[2])?f[2]:"";if(!isNaN(parseInt(g))){g=-parseInt(g)}else{if(typeof g=="string"){g=g.indexOf("m")!=-1?g.replace("m",""):g}}if(!isNaN(parseInt(c))){c=-parseInt(c)}else{if(typeof c=="string"){c=c.indexOf("m")!=-1?c.replace("m",""):c}}l=(f[3]&&e.test(f[3]))?f[3]:null;break;case"click":var j=dw_scrollObj.getClickParts(b);i=j.fn;g=j.x;c=j.y;l=j.dur;break}if(g!==""&&c!==""){l=!isNaN(parseInt(l))?parseInt(l):null;if(i=="scrollBy"){dw_Event.add(h,"click",function(n){dw_scrollObj.scrollBy(m,g,c,l);if(n&&n.preventDefault){n.preventDefault()}return false})}else{if(i=="scrollTo"){dw_Event.add(h,"click",function(n){dw_scrollObj.scrollTo(m,g,c,l);if(n&&n.preventDefault){n.preventDefault()}return false})}}}};dw_scrollObj.scrollBy=function(e,d,c,b){if(dw_scrollObj.col[e]){var a=dw_scrollObj.col[e];d=(d===null)?-a.x:parseInt(d);c=(c===null)?-a.y:parseInt(c);a.initScrollByVals(d,c,b)}};dw_scrollObj.scrollTo=function(e,d,c,b){if(dw_scrollObj.col[e]){var a=dw_scrollObj.col[e];d=(d==="end")?a.maxX:d;c=(c==="end")?a.maxY:c;d=(d===null)?-a.x:parseInt(d);c=(c===null)?-a.y:parseInt(c);a.initScrollToVals(d,c,b)}};dw_scrollObj.getClickParts=function(c){var g=c.split("_");var b=/^(up|down|left|right)$/;var h,i="",a,e,d,f="",j="";if(g.length>=4){e=g[1].match(b);h=e?e[1]:null;b=/^(to|by)$/;e=g[2].match(b);if(e){i=(e[0]=="to")?"scrollTo":"scrollBy"}d=g[3];b=/^([\d]+)$/;a=(g[4]&&b.test(g[4]))?g[4]:null;switch(i){case"scrollBy":if(!b.test(d)){f="";j="";break}switch(h){case"up":f=0;j=d;break;case"down":f=0;j=-d;break;case"left":f=d;j=0;break;case"right":f=-d;j=0}break;case"scrollTo":b=/^(end|[\d]+)$/;if(!b.test(d)){f="";j="";break}switch(h){case"up":f=null;j=d;break;case"down":f=null;j=(d=="end")?d:-d;break;case"left":f=d;j=null;break;case"right":f=(d=="end")?d:-d;j=null}break}}return{fn:i,x:f,y:j,dur:a}};dw_scrollObj.handleControlVis=function(c,e,b){var a=dw_scrollObj.col[e];var d=document.getElementById(c);if((b=="v"&&a.maxY>0)||(b=="h"&&a.maxX>0)){d.style.visibility="visible"}else{d.style.visibility="hidden"}};(function(a){a.fn.containedStickyScroll=function(c){var b={oSelector:this.selector,unstick:true,easing:"linear",duration:0,queue:false,closeChar:"",closeTop:0,closeRight:0};var c=a.extend(b,c);if(c.unstick==true){this.css("position","relative");this.append('<a class="scrollFixIt">'+c.closeChar+"</a>");jQuery(c.oSelector+" .scrollFixIt").css("position","absolute");jQuery(c.oSelector+" .scrollFixIt").css("top",c.closeTop+"px");jQuery(c.oSelector+" .scrollFixIt").css("right",c.closeTop+"px");jQuery(c.oSelector+" .scrollFixIt").css("cursor","pointer");jQuery(c.oSelector+" .scrollFixIt").click(function(){getObject=c.oSelector;jQuery(getObject).animate({top:"0px"},{queue:c.queue,easing:c.easing,duration:c.duration});jQuery(window).unbind();jQuery(".scrollFixIt").remove()})}jQuery(window).scroll(function(){getObject=c.oSelector;var f=jQuery(window).scrollTop(),e=jQuery(getObject).parent(),d=jQuery(getObject).height();if(f>e.offset().top&&(e.height()+e.offset().top-10)>(f+d)){if(getObject=="#loadTinMoiNhatDetailShow"){jQuery(getObject).animate({top:(f-e.offset().top+50)+"px"},{queue:c.queue,easing:c.easing,duration:c.duration})}else{if(getObject==".sidebar_wrap"){jQuery(getObject).animate({top:(f-e.offset().top-20)+"px"},{queue:c.queue,easing:c.easing,duration:c.duration})}else{jQuery(getObject).animate({top:(f-e.offset().top)+"px"},{queue:c.queue,easing:c.easing,duration:c.duration})}}}else{if(jQuery(window).scrollTop()<(jQuery(getObject).parent().offset().top)){jQuery(getObject).animate({top:"0px"},{queue:c.queue,easing:c.easing,duration:c.duration})}}})}})(jQuery);


A B C D E F G H I J K L M N O P Q R S T U V W X Y Z