(function(h,k){function o(){if(!d.isReady){try{D.documentElement.doScroll("left")}catch(b){setTimeout(o,1);return}d.ready()}}function r(b,c){c.src?d.ajax({url:c.src,async:false,dataType:"script"}):d.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function y(b,c,e,f,g,n){var p=b.length;if(typeof c==="object"){for(var w in c)y(b,w,c[w],f,g,e);return b}if(e!==k){f=!n&&f&&d.isFunction(e);for(w=0;w<p;w++)g(b[w],c,f?e.call(b[w],w,g(b[w],c)):e,n);return b}return p?
g(b[0],c):k}function E(){return(new Date).getTime()}function F(){return false}function J(){return true}function q(b,c,e){e[0].type=b;return d.event.handle.apply(c,e)}function z(b){var c,e=[],f=[],g=arguments,n,p,w,u,x,C;p=d.data(this,"events");if(!(b.liveFired===this||!p||!p.live||b.button&&b.type==="click")){b.liveFired=this;var K=p.live.slice(0);for(u=0;u<K.length;u++){p=K[u];p.origType.replace(da,"")===b.type?f.push(p.selector):K.splice(u--,1)}n=d(b.target).closest(f,b.currentTarget);x=0;for(C=
n.length;x<C;x++)for(u=0;u<K.length;u++){p=K[u];if(n[x].selector===p.selector){w=n[x].elem;f=null;if(p.preType==="mouseenter"||p.preType==="mouseleave")f=d(b.relatedTarget).closest(p.selector)[0];if(!f||f!==w)e.push({elem:w,handleObj:p})}}x=0;for(C=e.length;x<C;x++){n=e[x];b.currentTarget=n.elem;b.data=n.handleObj.data;b.handleObj=n.handleObj;if(n.handleObj.origHandler.apply(n.elem,g)===false){c=false;break}}return c}}function G(b,c){return"live."+(b&&b!=="*"?b+".":"")+c.replace(/\./g,"`").replace(/ /g,
"&")}function L(b,c){var e=0;c.each(function(){if(this.nodeName===(b[e]&&b[e].nodeName)){var f=d.data(b[e++]),g=d.data(this,f);if(f=f&&f.events){delete g.handle;g.events={};for(var n in f)for(var p in f[n])d.event.add(this,n,f[n][p],f[n][p].data)}}})}function Q(b,c,e){var f,g,n;c=c&&c[0]?c[0].ownerDocument||c[0]:D;if(b.length===1&&typeof b[0]==="string"&&b[0].length<512&&c===D&&!Aa.test(b[0])&&(d.support.checkClone||!Ba.test(b[0]))){g=true;if(n=d.fragments[b[0]])if(n!==1)f=n}if(!f){f=c.createDocumentFragment();
d.clean(b,c,f,e)}if(g)d.fragments[b[0]]=n?f:1;return{fragment:f,cacheable:g}}function S(b,c){var e={};d.each(Ca.concat.apply([],Ca.slice(0,c)),function(){e[this]=b});return e}function T(b){return"scrollTo"in b&&b.document?b:b.nodeType===9?b.defaultView||b.parentWindow:false}var d=function(b,c){return new d.fn.init(b,c)},ma=h.jQuery,Wa=h.$,D=h.document,ia,Xa=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Ya=/^.[^:#\[\.,]*$/,Za=/\S/,$a=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,ab=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,ea=navigator.userAgent,
Da=false,fa=[],aa,na=Object.prototype.toString,oa=Object.prototype.hasOwnProperty,pa=Array.prototype.push,ga=Array.prototype.slice,Ea=Array.prototype.indexOf;d.fn=d.prototype={init:function(b,c){var e,f;if(!b)return this;if(b.nodeType){this.context=this[0]=b;this.length=1;return this}if(b==="body"&&!c){this.context=D;this[0]=D.body;this.selector="body";this.length=1;return this}if(typeof b==="string")if((e=Xa.exec(b))&&(e[1]||!c))if(e[1]){f=c?c.ownerDocument||c:D;if(b=ab.exec(b))if(d.isPlainObject(c)){b=
[D.createElement(b[1])];d.fn.attr.call(b,c,true)}else b=[f.createElement(b[1])];else{b=Q([e[1]],[f]);b=(b.cacheable?b.fragment.cloneNode(true):b.fragment).childNodes}return d.merge(this,b)}else{if(c=D.getElementById(e[2])){if(c.id!==e[2])return ia.find(b);this.length=1;this[0]=c}this.context=D;this.selector=b;return this}else if(!c&&/^\w+$/.test(b)){this.selector=b;this.context=D;b=D.getElementsByTagName(b);return d.merge(this,b)}else return!c||c.jquery?(c||ia).find(b):d(c).find(b);else if(d.isFunction(b))return ia.ready(b);
if(b.selector!==k){this.selector=b.selector;this.context=b.context}return d.makeArray(b,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return ga.call(this,0)},get:function(b){return b==null?this.toArray():b<0?this.slice(b)[0]:this[b]},pushStack:function(b,c,e){var f=d();d.isArray(b)?pa.apply(f,b):d.merge(f,b);f.prevObject=this;f.context=this.context;if(c==="find")f.selector=this.selector+(this.selector?" ":"")+e;else if(c)f.selector=this.selector+
"."+c+"("+e+")";return f},each:function(b,c){return d.each(this,b,c)},ready:function(b){d.bindReady();if(d.isReady)b.call(D,d);else fa&&fa.push(b);return this},eq:function(b){return b===-1?this.slice(b):this.slice(b,+b+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ga.apply(this,arguments),"slice",ga.call(arguments).join(","))},map:function(b){return this.pushStack(d.map(this,function(c,e){return b.call(c,e,c)}))},end:function(){return this.prevObject||
d(null)},push:pa,sort:[].sort,splice:[].splice};d.fn.init.prototype=d.fn;d.extend=d.fn.extend=function(){var b=arguments[0]||{},c=1,e=arguments.length,f=false,g,n,p,w;if(typeof b==="boolean"){f=b;b=arguments[1]||{};c=2}if(typeof b!=="object"&&!d.isFunction(b))b={};if(e===c){b=this;--c}for(;c<e;c++)if((g=arguments[c])!=null)for(n in g){p=b[n];w=g[n];if(b!==w)if(f&&w&&(d.isPlainObject(w)||d.isArray(w))){p=p&&(d.isPlainObject(p)||d.isArray(p))?p:d.isArray(w)?[]:{};b[n]=d.extend(f,p,w)}else if(w!==k)b[n]=
w}return b};d.extend({noConflict:function(b){h.$=Wa;if(b)h.jQuery=ma;return d},isReady:false,ready:function(){if(!d.isReady){if(!D.body)return setTimeout(d.ready,13);d.isReady=true;if(fa){for(var b,c=0;b=fa[c++];)b.call(D,d);fa=null}d.fn.triggerHandler&&d(D).triggerHandler("ready")}},bindReady:function(){if(!Da){Da=true;if(D.readyState==="complete")return d.ready();if(D.addEventListener){D.addEventListener("DOMContentLoaded",aa,false);h.addEventListener("load",d.ready,false)}else if(D.attachEvent){D.attachEvent("onreadystatechange",
aa);h.attachEvent("onload",d.ready);var b=false;try{b=h.frameElement==null}catch(c){}D.documentElement.doScroll&&b&&o()}}},isFunction:function(b){return na.call(b)==="[object Function]"},isArray:function(b){return na.call(b)==="[object Array]"},isPlainObject:function(b){if(!b||na.call(b)!=="[object Object]"||b.nodeType||b.setInterval)return false;if(b.constructor&&!oa.call(b,"constructor")&&!oa.call(b.constructor.prototype,"isPrototypeOf"))return false;var c;for(c in b);return c===k||oa.call(b,c)},
isEmptyObject:function(b){for(var c in b)return false;return true},error:function(b){throw b;},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=d.trim(b);if(/^[\],:{}\s]*$/.test(b.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return h.JSON&&h.JSON.parse?h.JSON.parse(b):(new Function("return "+b))();else d.error("Invalid JSON: "+b)},noop:function(){},globalEval:function(b){if(b&&
Za.test(b)){var c=D.getElementsByTagName("head")[0]||D.documentElement,e=D.createElement("script");e.type="text/javascript";if(d.support.scriptEval)e.appendChild(D.createTextNode(b));else e.text=b;c.insertBefore(e,c.firstChild);c.removeChild(e)}},nodeName:function(b,c){return b.nodeName&&b.nodeName.toUpperCase()===c.toUpperCase()},each:function(b,c,e){var f,g=0,n=b.length,p=n===k||d.isFunction(b);if(e)if(p)for(f in b){if(c.apply(b[f],e)===false)break}else for(;g<n;){if(c.apply(b[g++],e)===false)break}else if(p)for(f in b){if(c.call(b[f],
f,b[f])===false)break}else for(e=b[0];g<n&&c.call(e,g,e)!==false;e=b[++g]);return b},trim:function(b){return(b||"").replace($a,"")},makeArray:function(b,c){c=c||[];if(b!=null)b.length==null||typeof b==="string"||d.isFunction(b)||typeof b!=="function"&&b.setInterval?pa.call(c,b):d.merge(c,b);return c},inArray:function(b,c){if(c.indexOf)return c.indexOf(b);for(var e=0,f=c.length;e<f;e++)if(c[e]===b)return e;return-1},merge:function(b,c){var e=b.length,f=0;if(typeof c.length==="number")for(var g=c.length;f<
g;f++)b[e++]=c[f];else for(;c[f]!==k;)b[e++]=c[f++];b.length=e;return b},grep:function(b,c,e){for(var f=[],g=0,n=b.length;g<n;g++)!e!==!c(b[g],g)&&f.push(b[g]);return f},map:function(b,c,e){for(var f=[],g,n=0,p=b.length;n<p;n++){g=c(b[n],n,e);if(g!=null)f[f.length]=g}return f.concat.apply([],f)},guid:1,proxy:function(b,c,e){if(arguments.length===2)if(typeof c==="string"){e=b;b=e[c];c=k}else if(c&&!d.isFunction(c)){e=c;c=k}if(!c&&b)c=function(){return b.apply(e||this,arguments)};if(b)c.guid=b.guid=
b.guid||c.guid||d.guid++;return c},uaMatch:function(b){b=b.toLowerCase();b=/(webkit)[ \/]([\w.]+)/.exec(b)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(b)||/(msie) ([\w.]+)/.exec(b)||!/compatible/.test(b)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(b)||[];return{browser:b[1]||"",version:b[2]||"0"}},browser:{}});ea=d.uaMatch(ea);if(ea.browser){d.browser[ea.browser]=true;d.browser.version=ea.version}if(d.browser.webkit)d.browser.safari=true;if(Ea)d.inArray=function(b,c){return Ea.call(c,b)};ia=d(D);if(D.addEventListener)aa=
function(){D.removeEventListener("DOMContentLoaded",aa,false);d.ready()};else if(D.attachEvent)aa=function(){if(D.readyState==="complete"){D.detachEvent("onreadystatechange",aa);d.ready()}};(function(){d.support={};var b=D.documentElement,c=D.createElement("script"),e=D.createElement("div"),f="script"+E();e.style.display="none";e.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var g=e.getElementsByTagName("*"),n=e.getElementsByTagName("a")[0];
if(!(!g||!g.length||!n)){d.support={leadingWhitespace:e.firstChild.nodeType===3,tbody:!e.getElementsByTagName("tbody").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/red/.test(n.getAttribute("style")),hrefNormalized:n.getAttribute("href")==="/a",opacity:/^0.55$/.test(n.style.opacity),cssFloat:!!n.style.cssFloat,checkOn:e.getElementsByTagName("input")[0].value==="on",optSelected:D.createElement("select").appendChild(D.createElement("option")).selected,parentNode:e.removeChild(e.appendChild(D.createElement("div"))).parentNode===
null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};c.type="text/javascript";try{c.appendChild(D.createTextNode("window."+f+"=1;"))}catch(p){}b.insertBefore(c,b.firstChild);if(h[f]){d.support.scriptEval=true;delete h[f]}try{delete c.test}catch(w){d.support.deleteExpando=false}b.removeChild(c);if(e.attachEvent&&e.fireEvent){e.attachEvent("onclick",function u(){d.support.noCloneEvent=false;e.detachEvent("onclick",u)});e.cloneNode(true).fireEvent("onclick")}e=D.createElement("div");
e.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";b=D.createDocumentFragment();b.appendChild(e.firstChild);d.support.checkClone=b.cloneNode(true).cloneNode(true).lastChild.checked;d(function(){var u=D.createElement("div");u.style.width=u.style.paddingLeft="1px";D.body.appendChild(u);d.boxModel=d.support.boxModel=u.offsetWidth===2;D.body.removeChild(u).style.display="none"});b=function(u){var x=D.createElement("div");u="on"+u;var C=u in x;if(!C){x.setAttribute(u,"return;");C=typeof x[u]===
"function"}return C};d.support.submitBubbles=b("submit");d.support.changeBubbles=b("change");b=c=e=g=n=null}})();d.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var X="jQuery"+E(),bb=0,Fa={};d.extend({cache:{},expando:X,noData:{embed:true,object:true,applet:true},data:function(b,c,e){if(!(b.nodeName&&d.noData[b.nodeName.toLowerCase()])){b=
b==h?Fa:b;var f=b[X],g=d.cache;if(!f&&typeof c==="string"&&e===k)return null;f||(f=++bb);if(typeof c==="object"){b[X]=f;g[f]=d.extend(true,{},c)}else if(!g[f]){b[X]=f;g[f]={}}b=g[f];if(e!==k)b[c]=e;return typeof c==="string"?b[c]:b}},removeData:function(b,c){if(!(b.nodeName&&d.noData[b.nodeName.toLowerCase()])){b=b==h?Fa:b;var e=b[X],f=d.cache,g=f[e];if(c){if(g){delete g[c];d.isEmptyObject(g)&&d.removeData(b)}}else{if(d.support.deleteExpando)delete b[d.expando];else b.removeAttribute&&b.removeAttribute(d.expando);
delete f[e]}}}});d.fn.extend({data:function(b,c){if(typeof b==="undefined"&&this.length)return d.data(this[0]);else if(typeof b==="object")return this.each(function(){d.data(this,b)});var e=b.split(".");e[1]=e[1]?"."+e[1]:"";if(c===k){var f=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(f===k&&this.length)f=d.data(this[0],b);return f===k&&e[1]?this.data(e[0]):f}else return this.trigger("setData"+e[1]+"!",[e[0],c]).each(function(){d.data(this,b,c)})},removeData:function(b){return this.each(function(){d.removeData(this,
b)})}});d.extend({queue:function(b,c,e){if(b){c=(c||"fx")+"queue";var f=d.data(b,c);if(!e)return f||[];if(!f||d.isArray(e))f=d.data(b,c,d.makeArray(e));else f.push(e);return f}},dequeue:function(b,c){c=c||"fx";var e=d.queue(b,c),f=e.shift();if(f==="inprogress")f=e.shift();if(f){c==="fx"&&e.unshift("inprogress");f.call(b,function(){d.dequeue(b,c)})}}});d.fn.extend({queue:function(b,c){if(typeof b!=="string"){c=b;b="fx"}if(c===k)return d.queue(this[0],b);return this.each(function(){var e=d.queue(this,
b,c);b==="fx"&&e[0]!=="inprogress"&&d.dequeue(this,b)})},dequeue:function(b){return this.each(function(){d.dequeue(this,b)})},delay:function(b,c){b=d.fx?d.fx.speeds[b]||b:b;c=c||"fx";return this.queue(c,function(){var e=this;setTimeout(function(){d.dequeue(e,c)},b)})},clearQueue:function(b){return this.queue(b||"fx",[])}});var Ga=/[\n\t]/g,qa=/\s+/,cb=/\r/g,db=/href|src|style/,eb=/(button|input)/i,fb=/(button|input|object|select|textarea)/i,gb=/^(a|area)$/i,Ha=/radio|checkbox/;d.fn.extend({attr:function(b,
c){return y(this,b,c,true,d.attr)},removeAttr:function(b){return this.each(function(){d.attr(this,b,"");this.nodeType===1&&this.removeAttribute(b)})},addClass:function(b){if(d.isFunction(b))return this.each(function(x){var C=d(this);C.addClass(b.call(this,x,C.attr("class")))});if(b&&typeof b==="string")for(var c=(b||"").split(qa),e=0,f=this.length;e<f;e++){var g=this[e];if(g.nodeType===1)if(g.className){for(var n=" "+g.className+" ",p=g.className,w=0,u=c.length;w<u;w++)if(n.indexOf(" "+c[w]+" ")<
0)p+=" "+c[w];g.className=d.trim(p)}else g.className=b}return this},removeClass:function(b){if(d.isFunction(b))return this.each(function(u){var x=d(this);x.removeClass(b.call(this,u,x.attr("class")))});if(b&&typeof b==="string"||b===k)for(var c=(b||"").split(qa),e=0,f=this.length;e<f;e++){var g=this[e];if(g.nodeType===1&&g.className)if(b){for(var n=(" "+g.className+" ").replace(Ga," "),p=0,w=c.length;p<w;p++)n=n.replace(" "+c[p]+" "," ");g.className=d.trim(n)}else g.className=""}return this},toggleClass:function(b,
c){var e=typeof b,f=typeof c==="boolean";if(d.isFunction(b))return this.each(function(g){var n=d(this);n.toggleClass(b.call(this,g,n.attr("class"),c),c)});return this.each(function(){if(e==="string")for(var g,n=0,p=d(this),w=c,u=b.split(qa);g=u[n++];){w=f?w:!p.hasClass(g);p[w?"addClass":"removeClass"](g)}else if(e==="undefined"||e==="boolean"){this.className&&d.data(this,"__className__",this.className);this.className=this.className||b===false?"":d.data(this,"__className__")||""}})},hasClass:function(b){b=
" "+b+" ";for(var c=0,e=this.length;c<e;c++)if((" "+this[c].className+" ").replace(Ga," ").indexOf(b)>-1)return true;return false},val:function(b){if(b===k){var c=this[0];if(c){if(d.nodeName(c,"option"))return(c.attributes.value||{}).specified?c.value:c.text;if(d.nodeName(c,"select")){var e=c.selectedIndex,f=[],g=c.options;c=c.type==="select-one";if(e<0)return null;var n=c?e:0;for(e=c?e+1:g.length;n<e;n++){var p=g[n];if(p.selected){b=d(p).val();if(c)return b;f.push(b)}}return f}if(Ha.test(c.type)&&
!d.support.checkOn)return c.getAttribute("value")===null?"on":c.value;return(c.value||"").replace(cb,"")}return k}var w=d.isFunction(b);return this.each(function(u){var x=d(this),C=b;if(this.nodeType===1){if(w)C=b.call(this,u,x.val());if(typeof C==="number")C+="";if(d.isArray(C)&&Ha.test(this.type))this.checked=d.inArray(x.val(),C)>=0;else if(d.nodeName(this,"select")){var K=d.makeArray(C);d("option",this).each(function(){this.selected=d.inArray(d(this).val(),K)>=0});if(!K.length)this.selectedIndex=
-1}else this.value=C}})}});d.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(b,c,e,f){if(!b||b.nodeType===3||b.nodeType===8)return k;if(f&&c in d.attrFn)return d(b)[c](e);f=b.nodeType!==1||!d.isXMLDoc(b);var g=e!==k;c=f&&d.props[c]||c;if(b.nodeType===1){var n=db.test(c);if(c in b&&f&&!n){if(g){c==="type"&&eb.test(b.nodeName)&&b.parentNode&&d.error("type property can't be changed");b[c]=e}if(d.nodeName(b,"form")&&b.getAttributeNode(c))return b.getAttributeNode(c).nodeValue;
if(c==="tabIndex")return(c=b.getAttributeNode("tabIndex"))&&c.specified?c.value:fb.test(b.nodeName)||gb.test(b.nodeName)&&b.href?0:k;return b[c]}if(!d.support.style&&f&&c==="style"){if(g)b.style.cssText=""+e;return b.style.cssText}g&&b.setAttribute(c,""+e);b=!d.support.hrefNormalized&&f&&n?b.getAttribute(c,2):b.getAttribute(c);return b===null?k:b}return d.style(b,c,e)}});var da=/\.(.*)$/,hb=function(b){return b.replace(/[^\w\s\.\|`]/g,function(c){return"\\"+c})};d.event={add:function(b,c,e,f){if(!(b.nodeType===
3||b.nodeType===8)){if(b.setInterval&&b!==h&&!b.frameElement)b=h;var g,n;if(e.handler){g=e;e=g.handler}if(!e.guid)e.guid=d.guid++;if(n=d.data(b)){var p=n.events=n.events||{},w=n.handle;if(!w)n.handle=w=function(){return typeof d!=="undefined"&&!d.event.triggered?d.event.handle.apply(w.elem,arguments):k};w.elem=b;c=c.split(" ");for(var u,x=0,C;u=c[x++];){n=g?d.extend({},g):{handler:e,data:f};if(u.indexOf(".")>-1){C=u.split(".");u=C.shift();n.namespace=C.slice(0).sort().join(".")}else{C=[];n.namespace=
""}n.type=u;n.guid=e.guid;var K=p[u],O=d.event.special[u]||{};if(!K){K=p[u]=[];if(!O.setup||O.setup.call(b,f,C,w)===false)if(b.addEventListener)b.addEventListener(u,w,false);else b.attachEvent&&b.attachEvent("on"+u,w)}if(O.add){O.add.call(b,n);if(!n.handler.guid)n.handler.guid=e.guid}K.push(n);d.event.global[u]=true}b=null}}},global:{},remove:function(b,c,e,f){if(!(b.nodeType===3||b.nodeType===8)){var g,n=0,p,w,u,x,C,K,O=d.data(b),R=O&&O.events;if(O&&R){if(c&&c.type){e=c.handler;c=c.type}if(!c||typeof c===
"string"&&c.charAt(0)==="."){c=c||"";for(g in R)d.event.remove(b,g+c)}else{for(c=c.split(" ");g=c[n++];){x=g;p=g.indexOf(".")<0;w=[];if(!p){w=g.split(".");g=w.shift();u=RegExp("(^|\\.)"+d.map(w.slice(0).sort(),hb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(C=R[g])if(e){x=d.event.special[g]||{};for(P=f||0;P<C.length;P++){K=C[P];if(e.guid===K.guid){if(p||u.test(K.namespace)){f==null&&C.splice(P--,1);x.remove&&x.remove.call(b,K)}if(f!=null)break}}if(C.length===0||f!=null&&C.length===1){if(!x.teardown||x.teardown.call(b,
w)===false)Ia(b,g,O.handle);delete R[g]}}else for(var P=0;P<C.length;P++){K=C[P];if(p||u.test(K.namespace)){d.event.remove(b,x,K.handler,P);C.splice(P--,1)}}}if(d.isEmptyObject(R)){if(c=O.handle)c.elem=null;delete O.events;delete O.handle;d.isEmptyObject(O)&&d.removeData(b)}}}}},trigger:function(b,c,e,f){var g=b.type||b;if(!f){b=typeof b==="object"?b[X]?b:d.extend(d.Event(g),b):d.Event(g);if(g.indexOf("!")>=0){b.type=g=g.slice(0,-1);b.exclusive=true}if(!e){b.stopPropagation();d.event.global[g]&&d.each(d.cache,
function(){this.events&&this.events[g]&&d.event.trigger(b,c,this.handle.elem)})}if(!e||e.nodeType===3||e.nodeType===8)return k;b.result=k;b.target=e;c=d.makeArray(c);c.unshift(b)}b.currentTarget=e;(f=d.data(e,"handle"))&&f.apply(e,c);f=e.parentNode||e.ownerDocument;try{if(!(e&&e.nodeName&&d.noData[e.nodeName.toLowerCase()]))if(e["on"+g]&&e["on"+g].apply(e,c)===false)b.result=false}catch(n){}if(!b.isPropagationStopped()&&f)d.event.trigger(b,c,f,true);else if(!b.isDefaultPrevented()){f=b.target;var p,
w=d.nodeName(f,"a")&&g==="click",u=d.event.special[g]||{};if((!u._default||u._default.call(e,b)===false)&&!w&&!(f&&f.nodeName&&d.noData[f.nodeName.toLowerCase()])){try{if(f[g]){if(p=f["on"+g])f["on"+g]=null;d.event.triggered=true;f[g]()}}catch(x){}if(p)f["on"+g]=p;d.event.triggered=false}}},handle:function(b){var c,e,f,g;b=arguments[0]=d.event.fix(b||h.event);b.currentTarget=this;c=b.type.indexOf(".")<0&&!b.exclusive;if(!c){e=b.type.split(".");b.type=e.shift();f=RegExp("(^|\\.)"+e.slice(0).sort().join("\\.(?:.*\\.)?")+
"(\\.|$)")}g=d.data(this,"events");e=g[b.type];if(g&&e){e=e.slice(0);g=0;for(var n=e.length;g<n;g++){var p=e[g];if(c||f.test(p.namespace)){b.handler=p.handler;b.data=p.data;b.handleObj=p;p=p.handler.apply(this,arguments);if(p!==k){b.result=p;if(p===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped())break}}}return b.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(b){if(b[X])return b;var c=b;b=d.Event(c);for(var e=this.props.length,f;e;){f=this.props[--e];b[f]=c[f]}if(!b.target)b.target=b.srcElement||D;if(b.target.nodeType===3)b.target=b.target.parentNode;if(!b.relatedTarget&&b.fromElement)b.relatedTarget=b.fromElement===b.target?b.toElement:b.fromElement;if(b.pageX==null&&b.clientX!=null){c=D.documentElement;e=D.body;b.pageX=b.clientX+(c&&c.scrollLeft||e&&e.scrollLeft||0)-(c&&c.clientLeft||e&&e.clientLeft||0);b.pageY=b.clientY+(c&&c.scrollTop||
e&&e.scrollTop||0)-(c&&c.clientTop||e&&e.clientTop||0)}if(!b.which&&(b.charCode||b.charCode===0?b.charCode:b.keyCode))b.which=b.charCode||b.keyCode;if(!b.metaKey&&b.ctrlKey)b.metaKey=b.ctrlKey;if(!b.which&&b.button!==k)b.which=b.button&1?1:b.button&2?3:b.button&4?2:0;return b},guid:1E8,proxy:d.proxy,special:{ready:{setup:d.bindReady,teardown:d.noop},live:{add:function(b){d.event.add(this,b.origType,d.extend({},b,{handler:z}))},remove:function(b){var c=true,e=b.origType.replace(da,"");d.each(d.data(this,
"events").live||[],function(){if(e===this.origType.replace(da,""))return c=false});c&&d.event.remove(this,b.origType,z)}},beforeunload:{setup:function(b,c,e){if(this.setInterval)this.onbeforeunload=e;return false},teardown:function(b,c){if(this.onbeforeunload===c)this.onbeforeunload=null}}}};var Ia=D.removeEventListener?function(b,c,e){b.removeEventListener(c,e,false)}:function(b,c,e){b.detachEvent("on"+c,e)};d.Event=function(b){if(!this.preventDefault)return new d.Event(b);if(b&&b.type){this.originalEvent=
b;this.type=b.type}else this.type=b;this.timeStamp=E();this[X]=true};d.Event.prototype={preventDefault:function(){this.isDefaultPrevented=J;var b=this.originalEvent;if(b){b.preventDefault&&b.preventDefault();b.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=J;var b=this.originalEvent;if(b){b.stopPropagation&&b.stopPropagation();b.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=J;this.stopPropagation()},isDefaultPrevented:F,isPropagationStopped:F,
isImmediatePropagationStopped:F};var Ja=function(b){var c=b.relatedTarget;try{for(;c&&c!==this;)c=c.parentNode;if(c!==this){b.type=b.data;d.event.handle.apply(this,arguments)}}catch(e){}},Ka=function(b){b.type=b.data;d.event.handle.apply(this,arguments)};d.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b,c){d.event.special[b]={setup:function(e){d.event.add(this,c,e&&e.selector?Ka:Ja,b)},teardown:function(e){d.event.remove(this,c,e&&e.selector?Ka:Ja)}}});if(!d.support.submitBubbles)d.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){d.event.add(this,"click.specialSubmit",function(b){var c=b.target,e=c.type;if((e==="submit"||e==="image")&&d(c).closest("form").length)return q("submit",this,arguments)});d.event.add(this,"keypress.specialSubmit",function(b){var c=b.target,e=c.type;if((e==="text"||e==="password")&&d(c).closest("form").length&&b.keyCode===13)return q("submit",this,arguments)})}else return false},teardown:function(){d.event.remove(this,".specialSubmit")}};if(!d.support.changeBubbles){var ra=
/textarea|input|select/i,sa,La=function(b){var c=b.type,e=b.value;if(c==="radio"||c==="checkbox")e=b.checked;else if(c==="select-multiple")e=b.selectedIndex>-1?d.map(b.options,function(f){return f.selected}).join("-"):"";else if(b.nodeName.toLowerCase()==="select")e=b.selectedIndex;return e},ta=function(b,c){var e=b.target,f,g;if(!(!ra.test(e.nodeName)||e.readOnly)){f=d.data(e,"_change_data");g=La(e);if(b.type!=="focusout"||e.type!=="radio")d.data(e,"_change_data",g);if(!(f===k||g===f))if(f!=null||
g){b.type="change";return d.event.trigger(b,c,e)}}};d.event.special.change={filters:{focusout:ta,click:function(b){var c=b.target,e=c.type;if(e==="radio"||e==="checkbox"||c.nodeName.toLowerCase()==="select")return ta.call(this,b)},keydown:function(b){var c=b.target,e=c.type;if(b.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||b.keyCode===32&&(e==="checkbox"||e==="radio")||e==="select-multiple")return ta.call(this,b)},beforeactivate:function(b){b=b.target;d.data(b,"_change_data",La(b))}},setup:function(){if(this.type===
"file")return false;for(var b in sa)d.event.add(this,b+".specialChange",sa[b]);return ra.test(this.nodeName)},teardown:function(){d.event.remove(this,".specialChange");return ra.test(this.nodeName)}};sa=d.event.special.change.filters}D.addEventListener&&d.each({focus:"focusin",blur:"focusout"},function(b,c){function e(f){f=d.event.fix(f);f.type=c;return d.event.handle.call(this,f)}d.event.special[c]={setup:function(){this.addEventListener(b,e,true)},teardown:function(){this.removeEventListener(b,
e,true)}}});d.each(["bind","one"],function(b,c){d.fn[c]=function(e,f,g){if(typeof e==="object"){for(var n in e)this[c](n,f,e[n],g);return this}if(d.isFunction(f)){g=f;f=k}var p=c==="one"?d.proxy(g,function(u){d(this).unbind(u,p);return g.apply(this,arguments)}):g;if(e==="unload"&&c!=="one")this.one(e,f,g);else{n=0;for(var w=this.length;n<w;n++)d.event.add(this[n],e,p,f)}return this}});d.fn.extend({unbind:function(b,c){if(typeof b==="object"&&!b.preventDefault)for(var e in b)this.unbind(e,b[e]);else{e=
0;for(var f=this.length;e<f;e++)d.event.remove(this[e],b,c)}return this},delegate:function(b,c,e,f){return this.live(c,e,f,b)},undelegate:function(b,c,e){return arguments.length===0?this.unbind("live"):this.die(c,null,e,b)},trigger:function(b,c){return this.each(function(){d.event.trigger(b,c,this)})},triggerHandler:function(b,c){if(this[0]){b=d.Event(b);b.preventDefault();b.stopPropagation();d.event.trigger(b,c,this[0]);return b.result}},toggle:function(b){for(var c=arguments,e=1;e<c.length;)d.proxy(b,
c[e++]);return this.click(d.proxy(b,function(f){var g=(d.data(this,"lastToggle"+b.guid)||0)%e;d.data(this,"lastToggle"+b.guid,g+1);f.preventDefault();return c[g].apply(this,arguments)||false}))},hover:function(b,c){return this.mouseenter(b).mouseleave(c||b)}});var Ma={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};d.each(["live","die"],function(b,c){d.fn[c]=function(e,f,g,n){var p,w=0,u,x,C=n||this.selector,K=n?this:d(this.context);if(d.isFunction(f)){g=f;f=k}for(e=
(e||"").split(" ");(p=e[w++])!=null;){n=da.exec(p);u="";if(n){u=n[0];p=p.replace(da,"")}if(p==="hover")e.push("mouseenter"+u,"mouseleave"+u);else{x=p;if(p==="focus"||p==="blur"){e.push(Ma[p]+u);p+=u}else p=(Ma[p]||p)+u;c==="live"?K.each(function(){d.event.add(this,G(p,C),{data:f,selector:C,handler:g,origType:p,origHandler:g,preType:x})}):K.unbind(G(p,C),g)}}return this}});d.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".split(" "),
function(b,c){d.fn[c]=function(e){return e?this.bind(c,e):this.trigger(c)};if(d.attrFn)d.attrFn[c]=true});h.attachEvent&&!h.addEventListener&&h.attachEvent("onunload",function(){for(var b in d.cache)if(d.cache[b].handle)try{d.event.remove(d.cache[b].handle.elem)}catch(c){}});(function(){function b(j){for(var m="",s,v=0;j[v];v++){s=j[v];if(s.nodeType===3||s.nodeType===4)m+=s.nodeValue;else if(s.nodeType!==8)m+=b(s.childNodes)}return m}function c(j,m,s,v,B,A){B=0;for(var I=v.length;B<I;B++){var H=v[B];
if(H){H=H[j];for(var N=false;H;){if(H.sizcache===s){N=v[H.sizset];break}if(H.nodeType===1&&!A){H.sizcache=s;H.sizset=B}if(H.nodeName.toLowerCase()===m){N=H;break}H=H[j]}v[B]=N}}}function e(j,m,s,v,B,A){B=0;for(var I=v.length;B<I;B++){var H=v[B];if(H){H=H[j];for(var N=false;H;){if(H.sizcache===s){N=v[H.sizset];break}if(H.nodeType===1){if(!A){H.sizcache=s;H.sizset=B}if(typeof m!=="string"){if(H===m){N=true;break}}else if(u.filter(m,[H]).length>0){N=H;break}}H=H[j]}v[B]=N}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
g=0,n=Object.prototype.toString,p=false,w=true;[0,0].sort(function(){w=false;return 0});var u=function(j,m,s,v){s=s||[];var B=m=m||D;if(m.nodeType!==1&&m.nodeType!==9)return[];if(!j||typeof j!=="string")return s;for(var A=[],I,H,N,ha,Y=true,ba=M(m),Z=j;(f.exec(""),I=f.exec(Z))!==null;){Z=I[3];A.push(I[1]);if(I[2]){ha=I[3];break}}if(A.length>1&&C.exec(j))if(A.length===2&&x.relative[A[0]])H=ua(A[0]+A[1],m);else for(H=x.relative[A[0]]?[m]:u(A.shift(),m);A.length;){j=A.shift();if(x.relative[j])j+=A.shift();
H=ua(j,H)}else{if(!v&&A.length>1&&m.nodeType===9&&!ba&&x.match.ID.test(A[0])&&!x.match.ID.test(A[A.length-1])){I=u.find(A.shift(),m,ba);m=I.expr?u.filter(I.expr,I.set)[0]:I.set[0]}if(m){I=v?{expr:A.pop(),set:O(v)}:u.find(A.pop(),A.length===1&&(A[0]==="~"||A[0]==="+")&&m.parentNode?m.parentNode:m,ba);H=I.expr?u.filter(I.expr,I.set):I.set;if(A.length>0)N=O(H);else Y=false;for(;A.length;){var U=A.pop();I=U;if(x.relative[U])I=A.pop();else U="";if(I==null)I=m;x.relative[U](N,I,ba)}}else N=[]}N||(N=H);
N||u.error(U||j);if(n.call(N)==="[object Array]")if(Y)if(m&&m.nodeType===1)for(j=0;N[j]!=null;j++){if(N[j]&&(N[j]===true||N[j].nodeType===1&&V(m,N[j])))s.push(H[j])}else for(j=0;N[j]!=null;j++)N[j]&&N[j].nodeType===1&&s.push(H[j]);else s.push.apply(s,N);else O(N,s);if(ha){u(ha,B,s,v);u.uniqueSort(s)}return s};u.uniqueSort=function(j){if(P){p=w;j.sort(P);if(p)for(var m=1;m<j.length;m++)j[m]===j[m-1]&&j.splice(m--,1)}return j};u.matches=function(j,m){return u(j,null,null,m)};u.find=function(j,m,s){var v,
B;if(!j)return[];for(var A=0,I=x.order.length;A<I;A++){var H=x.order[A];if(B=x.leftMatch[H].exec(j)){var N=B[1];B.splice(1,1);if(N.substr(N.length-1)!=="\\"){B[1]=(B[1]||"").replace(/\\/g,"");v=x.find[H](B,m,s);if(v!=null){j=j.replace(x.match[H],"");break}}}}v||(v=m.getElementsByTagName("*"));return{set:v,expr:j}};u.filter=function(j,m,s,v){for(var B=j,A=[],I=m,H,N,ha=m&&m[0]&&M(m[0]);j&&m.length;){for(var Y in x.filter)if((H=x.leftMatch[Y].exec(j))!=null&&H[2]){var ba=x.filter[Y],Z,U;U=H[1];N=false;
H.splice(1,1);if(U.substr(U.length-1)!=="\\"){if(I===A)A=[];if(x.preFilter[Y])if(H=x.preFilter[Y](H,I,s,A,v,ha)){if(H===true)continue}else N=Z=true;if(H)for(var ja=0;(U=I[ja])!=null;ja++)if(U){Z=ba(U,H,ja,I);var Na=v^!!Z;if(s&&Z!=null)if(Na)N=true;else I[ja]=false;else if(Na){A.push(U);N=true}}if(Z!==k){s||(I=A);j=j.replace(x.match[Y],"");if(!N)return[];break}}}if(j===B)if(N==null)u.error(j);else break;B=j}return I};u.error=function(j){throw"Syntax error, unrecognized expression: "+j;};var x=u.selectors=
{order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF-]|\\.)+)\s*(?:(\S?=)\s*(['"]*)(.*?)\3|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},
attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(j){return j.getAttribute("href")}},relative:{"+":function(j,m){var s=typeof m==="string",v=s&&!/\W/.test(m);s=s&&!v;if(v)m=m.toLowerCase();v=0;for(var B=j.length,A;v<B;v++)if(A=j[v]){for(;(A=A.previousSibling)&&A.nodeType!==1;);j[v]=s||A&&A.nodeName.toLowerCase()===m?A||false:A===m}s&&u.filter(m,j,true)},">":function(j,m){var s=typeof m==="string";if(s&&!/\W/.test(m)){m=m.toLowerCase();for(var v=0,B=j.length;v<B;v++){var A=j[v];
if(A){s=A.parentNode;j[v]=s.nodeName.toLowerCase()===m?s:false}}}else{v=0;for(B=j.length;v<B;v++)if(A=j[v])j[v]=s?A.parentNode:A.parentNode===m;s&&u.filter(m,j,true)}},"":function(j,m,s){var v=g++,B=e;if(typeof m==="string"&&!/\W/.test(m)){var A=m=m.toLowerCase();B=c}B("parentNode",m,v,j,A,s)},"~":function(j,m,s){var v=g++,B=e;if(typeof m==="string"&&!/\W/.test(m)){var A=m=m.toLowerCase();B=c}B("previousSibling",m,v,j,A,s)}},find:{ID:function(j,m,s){if(typeof m.getElementById!=="undefined"&&!s)return(j=
m.getElementById(j[1]))?[j]:[]},NAME:function(j,m){if(typeof m.getElementsByName!=="undefined"){var s=[];m=m.getElementsByName(j[1]);for(var v=0,B=m.length;v<B;v++)m[v].getAttribute("name")===j[1]&&s.push(m[v]);return s.length===0?null:s}},TAG:function(j,m){return m.getElementsByTagName(j[1])}},preFilter:{CLASS:function(j,m,s,v,B,A){j=" "+j[1].replace(/\\/g,"")+" ";if(A)return j;A=0;for(var I;(I=m[A])!=null;A++)if(I)if(B^(I.className&&(" "+I.className+" ").replace(/[\t\n]/g," ").indexOf(j)>=0))s||
v.push(I);else if(s)m[A]=false;return false},ID:function(j){return j[1].replace(/\\/g,"")},TAG:function(j){return j[1].toLowerCase()},CHILD:function(j){if(j[1]==="nth"){var m=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(j[2]==="even"&&"2n"||j[2]==="odd"&&"2n+1"||!/\D/.test(j[2])&&"0n+"+j[2]||j[2]);j[2]=m[1]+(m[2]||1)-0;j[3]=m[3]-0}j[0]=g++;return j},ATTR:function(j,m,s,v,B,A){m=j[1].replace(/\\/g,"");if(!A&&x.attrMap[m])j[1]=x.attrMap[m];if(j[2]==="~=")j[4]=" "+j[4]+" ";return j},PSEUDO:function(j,m,s,v,B){if(j[1]===
"not")if((f.exec(j[3])||"").length>1||/^\w/.test(j[3]))j[3]=u(j[3],null,null,m);else{j=u.filter(j[3],m,s,true^B);s||v.push.apply(v,j);return false}else if(x.match.POS.test(j[0])||x.match.CHILD.test(j[0]))return true;return j},POS:function(j){j.unshift(true);return j}},filters:{enabled:function(j){return j.disabled===false&&j.type!=="hidden"},disabled:function(j){return j.disabled===true},checked:function(j){return j.checked===true},selected:function(j){return j.selected===true},parent:function(j){return!!j.firstChild},
empty:function(j){return!j.firstChild},has:function(j,m,s){return!!u(s[3],j).length},header:function(j){return/h\d/i.test(j.nodeName)},text:function(j){return"text"===j.type},radio:function(j){return"radio"===j.type},checkbox:function(j){return"checkbox"===j.type},file:function(j){return"file"===j.type},password:function(j){return"password"===j.type},submit:function(j){return"submit"===j.type},image:function(j){return"image"===j.type},reset:function(j){return"reset"===j.type},button:function(j){return"button"===
j.type||j.nodeName.toLowerCase()==="button"},input:function(j){return/input|select|textarea|button/i.test(j.nodeName)}},setFilters:{first:function(j,m){return m===0},last:function(j,m,s,v){return m===v.length-1},even:function(j,m){return m%2===0},odd:function(j,m){return m%2===1},lt:function(j,m,s){return m<s[3]-0},gt:function(j,m,s){return m>s[3]-0},nth:function(j,m,s){return s[3]-0===m},eq:function(j,m,s){return s[3]-0===m}},filter:{PSEUDO:function(j,m,s,v){var B=m[1],A=x.filters[B];if(A)return A(j,
s,m,v);else if(B==="contains")return(j.textContent||j.innerText||b([j])||"").indexOf(m[3])>=0;else if(B==="not"){m=m[3];s=0;for(v=m.length;s<v;s++)if(m[s]===j)return false;return true}else u.error("Syntax error, unrecognized expression: "+B)},CHILD:function(j,m){var s=m[1],v=j;switch(s){case "only":case "first":for(;v=v.previousSibling;)if(v.nodeType===1)return false;if(s==="first")return true;v=j;case "last":for(;v=v.nextSibling;)if(v.nodeType===1)return false;return true;case "nth":s=m[2];var B=
m[3];if(s===1&&B===0)return true;m=m[0];var A=j.parentNode;if(A&&(A.sizcache!==m||!j.nodeIndex)){var I=0;for(v=A.firstChild;v;v=v.nextSibling)if(v.nodeType===1)v.nodeIndex=++I;A.sizcache=m}j=j.nodeIndex-B;return s===0?j===0:j%s===0&&j/s>=0}},ID:function(j,m){return j.nodeType===1&&j.getAttribute("id")===m},TAG:function(j,m){return m==="*"&&j.nodeType===1||j.nodeName.toLowerCase()===m},CLASS:function(j,m){return(" "+(j.className||j.getAttribute("class"))+" ").indexOf(m)>-1},ATTR:function(j,m){var s=
m[1];j=x.attrHandle[s]?x.attrHandle[s](j):j[s]!=null?j[s]:j.getAttribute(s);s=j+"";var v=m[2];m=m[4];return j==null?v==="!=":v==="="?s===m:v==="*="?s.indexOf(m)>=0:v==="~="?(" "+s+" ").indexOf(m)>=0:!m?s&&j!==false:v==="!="?s!==m:v==="^="?s.indexOf(m)===0:v==="$="?s.substr(s.length-m.length)===m:v==="|="?s===m||s.substr(0,m.length+1)===m+"-":false},POS:function(j,m,s,v){var B=x.setFilters[m[2]];if(B)return B(j,s,m,v)}}},C=x.match.POS;for(var K in x.match){x.match[K]=RegExp(x.match[K].source+/(?![^\[]*\])(?![^\(]*\))/.source);
x.leftMatch[K]=RegExp(/(^(?:.|\r|\n)*?)/.source+x.match[K].source.replace(/\\(\d+)/g,function(j,m){return"\\"+(m-0+1)}))}var O=function(j,m){j=Array.prototype.slice.call(j,0);if(m){m.push.apply(m,j);return m}return j};try{Array.prototype.slice.call(D.documentElement.childNodes,0)}catch(R){O=function(j,m){m=m||[];if(n.call(j)==="[object Array]")Array.prototype.push.apply(m,j);else if(typeof j.length==="number")for(var s=0,v=j.length;s<v;s++)m.push(j[s]);else for(s=0;j[s];s++)m.push(j[s]);return m}}var P;
if(D.documentElement.compareDocumentPosition)P=function(j,m){if(!j.compareDocumentPosition||!m.compareDocumentPosition){if(j==m)p=true;return j.compareDocumentPosition?-1:1}j=j.compareDocumentPosition(m)&4?-1:j===m?0:1;if(j===0)p=true;return j};else if("sourceIndex"in D.documentElement)P=function(j,m){if(!j.sourceIndex||!m.sourceIndex){if(j==m)p=true;return j.sourceIndex?-1:1}j=j.sourceIndex-m.sourceIndex;if(j===0)p=true;return j};else if(D.createRange)P=function(j,m){if(!j.ownerDocument||!m.ownerDocument){if(j==
m)p=true;return j.ownerDocument?-1:1}var s=j.ownerDocument.createRange(),v=m.ownerDocument.createRange();s.setStart(j,0);s.setEnd(j,0);v.setStart(m,0);v.setEnd(m,0);j=s.compareBoundaryPoints(Range.START_TO_END,v);if(j===0)p=true;return j};(function(){var j=D.createElement("div"),m="script"+(new Date).getTime();j.innerHTML="<a name='"+m+"'/>";var s=D.documentElement;s.insertBefore(j,s.firstChild);if(D.getElementById(m)){x.find.ID=function(v,B,A){if(typeof B.getElementById!=="undefined"&&!A)return(B=
B.getElementById(v[1]))?B.id===v[1]||typeof B.getAttributeNode!=="undefined"&&B.getAttributeNode("id").nodeValue===v[1]?[B]:k:[]};x.filter.ID=function(v,B){var A=typeof v.getAttributeNode!=="undefined"&&v.getAttributeNode("id");return v.nodeType===1&&A&&A.nodeValue===B}}s.removeChild(j);s=j=null})();(function(){var j=D.createElement("div");j.appendChild(D.createComment(""));if(j.getElementsByTagName("*").length>0)x.find.TAG=function(m,s){s=s.getElementsByTagName(m[1]);if(m[1]==="*"){m=[];for(var v=
0;s[v];v++)s[v].nodeType===1&&m.push(s[v]);s=m}return s};j.innerHTML="<a href='#'></a>";if(j.firstChild&&typeof j.firstChild.getAttribute!=="undefined"&&j.firstChild.getAttribute("href")!=="#")x.attrHandle.href=function(m){return m.getAttribute("href",2)};j=null})();D.querySelectorAll&&function(){var j=u,m=D.createElement("div");m.innerHTML="<p class='TEST'></p>";if(!(m.querySelectorAll&&m.querySelectorAll(".TEST").length===0)){u=function(v,B,A,I){B=B||D;if(!I&&B.nodeType===9&&!M(B))try{return O(B.querySelectorAll(v),
A)}catch(H){}return j(v,B,A,I)};for(var s in j)u[s]=j[s];m=null}}();(function(){var j=D.createElement("div");j.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!j.getElementsByClassName||j.getElementsByClassName("e").length===0)){j.lastChild.className="e";if(j.getElementsByClassName("e").length!==1){x.order.splice(1,0,"CLASS");x.find.CLASS=function(m,s,v){if(typeof s.getElementsByClassName!=="undefined"&&!v)return s.getElementsByClassName(m[1])};j=null}}})();var V=D.compareDocumentPosition?
function(j,m){return!!(j.compareDocumentPosition(m)&16)}:function(j,m){return j!==m&&(j.contains?j.contains(m):true)},M=function(j){return(j=(j?j.ownerDocument||j:0).documentElement)?j.nodeName!=="HTML":false},ua=function(j,m){var s=[],v="",B;for(m=m.nodeType?[m]:m;B=x.match.PSEUDO.exec(j);){v+=B[0];j=j.replace(x.match.PSEUDO,"")}j=x.relative[j]?j+"*":j;B=0;for(var A=m.length;B<A;B++)u(j,m[B],s);return u.filter(v,s)};d.find=u;d.expr=u.selectors;d.expr[":"]=d.expr.filters;d.unique=u.uniqueSort;d.text=
b;d.isXMLDoc=M;d.contains=V})();var ib=/Until$/,jb=/^(?:parents|prevUntil|prevAll)/,kb=/,/;ga=Array.prototype.slice;var Oa=function(b,c,e){if(d.isFunction(c))return d.grep(b,function(g,n){return!!c.call(g,n,g)===e});else if(c.nodeType)return d.grep(b,function(g){return g===c===e});else if(typeof c==="string"){var f=d.grep(b,function(g){return g.nodeType===1});if(Ya.test(c))return d.filter(c,f,!e);else c=d.filter(c,f)}return d.grep(b,function(g){return d.inArray(g,c)>=0===e})};d.fn.extend({find:function(b){for(var c=
this.pushStack("","find",b),e=0,f=0,g=this.length;f<g;f++){e=c.length;d.find(b,this[f],c);if(f>0)for(var n=e;n<c.length;n++)for(var p=0;p<e;p++)if(c[p]===c[n]){c.splice(n--,1);break}}return c},has:function(b){var c=d(b);return this.filter(function(){for(var e=0,f=c.length;e<f;e++)if(d.contains(this,c[e]))return true})},not:function(b){return this.pushStack(Oa(this,b,false),"not",b)},filter:function(b){return this.pushStack(Oa(this,b,true),"filter",b)},is:function(b){return!!b&&d.filter(b,this).length>
0},closest:function(b,c){if(d.isArray(b)){var e=[],f=this[0],g,n={},p;if(f&&b.length){g=0;for(var w=b.length;g<w;g++){p=b[g];n[p]||(n[p]=d.expr.match.POS.test(p)?d(p,c||this.context):p)}for(;f&&f.ownerDocument&&f!==c;){for(p in n){g=n[p];if(g.jquery?g.index(f)>-1:d(f).is(g)){e.push({selector:p,elem:f});delete n[p]}}f=f.parentNode}}return e}var u=d.expr.match.POS.test(b)?d(b,c||this.context):null;return this.map(function(x,C){for(;C&&C.ownerDocument&&C!==c;){if(u?u.index(C)>-1:d(C).is(b))return C;
C=C.parentNode}return null})},index:function(b){if(!b||typeof b==="string")return d.inArray(this[0],b?d(b):this.parent().children());return d.inArray(b.jquery?b[0]:b,this)},add:function(b,c){b=typeof b==="string"?d(b,c||this.context):d.makeArray(b);c=d.merge(this.get(),b);return this.pushStack(!b[0]||!b[0].parentNode||b[0].parentNode.nodeType===11||!c[0]||!c[0].parentNode||c[0].parentNode.nodeType===11?c:d.unique(c))},andSelf:function(){return this.add(this.prevObject)}});d.each({parent:function(b){return(b=
b.parentNode)&&b.nodeType!==11?b:null},parents:function(b){return d.dir(b,"parentNode")},parentsUntil:function(b,c,e){return d.dir(b,"parentNode",e)},next:function(b){return d.nth(b,2,"nextSibling")},prev:function(b){return d.nth(b,2,"previousSibling")},nextAll:function(b){return d.dir(b,"nextSibling")},prevAll:function(b){return d.dir(b,"previousSibling")},nextUntil:function(b,c,e){return d.dir(b,"nextSibling",e)},prevUntil:function(b,c,e){return d.dir(b,"previousSibling",e)},siblings:function(b){return d.sibling(b.parentNode.firstChild,
b)},children:function(b){return d.sibling(b.firstChild)},contents:function(b){return d.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:d.makeArray(b.childNodes)}},function(b,c){d.fn[b]=function(e,f){var g=d.map(this,c,e);ib.test(b)||(f=e);if(f&&typeof f==="string")g=d.filter(f,g);g=this.length>1?d.unique(g):g;if((this.length>1||kb.test(f))&&jb.test(b))g=g.reverse();return this.pushStack(g,b,ga.call(arguments).join(","))}});d.extend({filter:function(b,c,e){if(e)b=":not("+b+")";return d.find.matches(b,
c)},dir:function(b,c,e){var f=[];for(b=b[c];b&&b.nodeType!==9&&(e===k||b.nodeType!==1||!d(b).is(e));){b.nodeType===1&&f.push(b);b=b[c]}return f},nth:function(b,c,e){c=c||1;for(var f=0;b;b=b[e])if(b.nodeType===1&&++f===c)break;return b},sibling:function(b,c){for(var e=[];b;b=b.nextSibling)b.nodeType===1&&b!==c&&e.push(b);return e}});var Pa=/ jQuery\d+="(?:\d+|null)"/g,ka=/^\s+/,Qa=/(<([\w:]+)[^>]*?)\/>/g,lb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Ra=/<([\w:]+)/,mb=/<tbody/i,nb=/<|&#?\w+;/,
Aa=/<script|<object|<embed|<option|<style/i,Ba=/checked\s*(?:[^=]|=\s*.checked.)/i,Sa=function(b,c,e){return lb.test(e)?b:c+"></"+e+">"},W={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,"",""]};W.optgroup=W.option;W.tbody=W.tfoot=
W.colgroup=W.caption=W.thead;W.th=W.td;if(!d.support.htmlSerialize)W._default=[1,"div<div>","</div>"];d.fn.extend({text:function(b){if(d.isFunction(b))return this.each(function(c){var e=d(this);e.text(b.call(this,c,e.text()))});if(typeof b!=="object"&&b!==k)return this.empty().append((this[0]&&this[0].ownerDocument||D).createTextNode(b));return d.text(this)},wrapAll:function(b){if(d.isFunction(b))return this.each(function(e){d(this).wrapAll(b.call(this,e))});if(this[0]){var c=d(b,this[0].ownerDocument).eq(0).clone(true);
this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var e=this;e.firstChild&&e.firstChild.nodeType===1;)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(b){if(d.isFunction(b))return this.each(function(c){d(this).wrapInner(b.call(this,c))});return this.each(function(){var c=d(this),e=c.contents();e.length?e.wrapAll(b):c.append(b)})},wrap:function(b){return this.each(function(){d(this).wrapAll(b)})},unwrap:function(){return this.parent().each(function(){d.nodeName(this,
"body")||d(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(b){this.nodeType===1&&this.appendChild(b)})},prepend:function(){return this.domManip(arguments,true,function(b){this.nodeType===1&&this.insertBefore(b,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(c){this.parentNode.insertBefore(c,this)});else if(arguments.length){var b=d(arguments[0]);b.push.apply(b,this.toArray());
return this.pushStack(b,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(c){this.parentNode.insertBefore(c,this.nextSibling)});else if(arguments.length){var b=this.pushStack(this,"after",arguments);b.push.apply(b,d(arguments[0]).toArray());return b}},remove:function(b,c){for(var e=0,f;(f=this[e])!=null;e++)if(!b||d.filter(b,[f]).length){if(!c&&f.nodeType===1){d.cleanData(f.getElementsByTagName("*"));d.cleanData([f])}f.parentNode&&
f.parentNode.removeChild(f)}return this},empty:function(){for(var b=0,c;(c=this[b])!=null;b++)for(c.nodeType===1&&d.cleanData(c.getElementsByTagName("*"));c.firstChild;)c.removeChild(c.firstChild);return this},clone:function(b){var c=this.map(function(){if(!d.support.noCloneEvent&&!d.isXMLDoc(this)){var e=this.outerHTML,f=this.ownerDocument;if(!e){e=f.createElement("div");e.appendChild(this.cloneNode(true));e=e.innerHTML}return d.clean([e.replace(Pa,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(ka,
"")],f)[0]}else return this.cloneNode(true)});if(b===true){L(this,c);L(this.find("*"),c.find("*"))}return c},html:function(b){if(b===k)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Pa,""):null;else if(typeof b==="string"&&!Aa.test(b)&&(d.support.leadingWhitespace||!ka.test(b))&&!W[(Ra.exec(b)||["",""])[1].toLowerCase()]){b=b.replace(Qa,Sa);try{for(var c=0,e=this.length;c<e;c++)if(this[c].nodeType===1){d.cleanData(this[c].getElementsByTagName("*"));this[c].innerHTML=b}}catch(f){this.empty().append(b)}}else d.isFunction(b)?
this.each(function(g){var n=d(this),p=n.html();n.empty().append(function(){return b.call(this,g,p)})}):this.empty().append(b);return this},replaceWith:function(b){if(this[0]&&this[0].parentNode){if(d.isFunction(b))return this.each(function(c){var e=d(this),f=e.html();e.replaceWith(b.call(this,c,f))});if(typeof b!=="string")b=d(b).detach();return this.each(function(){var c=this.nextSibling,e=this.parentNode;d(this).remove();c?d(c).before(b):d(e).append(b)})}else return this.pushStack(d(d.isFunction(b)?
b():b),"replaceWith",b)},detach:function(b){return this.remove(b,true)},domManip:function(b,c,e){var f,g,n=b[0],p=[],w;if(!d.support.checkClone&&arguments.length===3&&typeof n==="string"&&Ba.test(n))return this.each(function(){d(this).domManip(b,c,e,true)});if(d.isFunction(n))return this.each(function(x){var C=d(this);b[0]=n.call(this,x,c?C.html():k);C.domManip(b,c,e)});if(this[0]){f=n&&n.parentNode;f=d.support.parentNode&&f&&f.nodeType===11&&f.childNodes.length===this.length?{fragment:f}:Q(b,this,
p);w=f.fragment;if(g=w.childNodes.length===1?w=w.firstChild:w.firstChild){c=c&&d.nodeName(g,"tr");g=0;for(var u=this.length;g<u;g++)e.call(c?d.nodeName(this[g],"table")?this[g].getElementsByTagName("tbody")[0]||this[g].appendChild(this[g].ownerDocument.createElement("tbody")):this[g]:this[g],g>0||f.cacheable||this.length>1?w.cloneNode(true):w)}p.length&&d.each(p,r)}return this}});d.fragments={};d.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},
function(b,c){d.fn[b]=function(e){var f=[];e=d(e);var g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[c](this[0]);return this}else{g=0;for(var n=e.length;g<n;g++){var p=(g>0?this.clone(true):this).get();d.fn[c].apply(d(e[g]),p);f=f.concat(p)}return this.pushStack(f,b,e.selector)}}});d.extend({clean:function(b,c,e,f){c=c||D;if(typeof c.createElement==="undefined")c=c.ownerDocument||c[0]&&c[0].ownerDocument||D;for(var g=[],n=0,p;(p=b[n])!=null;n++){if(typeof p===
"number")p+="";if(p){if(typeof p==="string"&&!nb.test(p))p=c.createTextNode(p);else if(typeof p==="string"){p=p.replace(Qa,Sa);var w=(Ra.exec(p)||["",""])[1].toLowerCase(),u=W[w]||W._default,x=u[0],C=c.createElement("div");for(C.innerHTML=u[1]+p+u[2];x--;)C=C.lastChild;if(!d.support.tbody){x=mb.test(p);w=w==="table"&&!x?C.firstChild&&C.firstChild.childNodes:u[1]==="<table>"&&!x?C.childNodes:[];for(u=w.length-1;u>=0;--u)d.nodeName(w[u],"tbody")&&!w[u].childNodes.length&&w[u].parentNode.removeChild(w[u])}!d.support.leadingWhitespace&&
ka.test(p)&&C.insertBefore(c.createTextNode(ka.exec(p)[0]),C.firstChild);p=C.childNodes}if(p.nodeType)g.push(p);else g=d.merge(g,p)}}if(e)for(n=0;g[n];n++)if(f&&d.nodeName(g[n],"script")&&(!g[n].type||g[n].type.toLowerCase()==="text/javascript"))f.push(g[n].parentNode?g[n].parentNode.removeChild(g[n]):g[n]);else{g[n].nodeType===1&&g.splice.apply(g,[n+1,0].concat(d.makeArray(g[n].getElementsByTagName("script"))));e.appendChild(g[n])}return g},cleanData:function(b){for(var c,e,f=d.cache,g=d.event.special,
n=d.support.deleteExpando,p=0,w;(w=b[p])!=null;p++)if(e=w[d.expando]){c=f[e];if(c.events)for(var u in c.events)g[u]?d.event.remove(w,u):Ia(w,u,c.handle);if(n)delete w[d.expando];else w.removeAttribute&&w.removeAttribute(d.expando);delete f[e]}}});var ob=/z-?index|font-?weight|opacity|zoom|line-?height/i,Ta=/alpha\([^)]*\)/,Ua=/opacity=([^)]*)/,va=/float/i,wa=/-([a-z])/ig,pb=/([A-Z])/g,qb=/^-?\d+(?:px)?$/i,rb=/^-?\d/,sb={position:"absolute",visibility:"hidden",display:"block"},tb=["Left","Right"],
ub=["Top","Bottom"],vb=D.defaultView&&D.defaultView.getComputedStyle,Va=d.support.cssFloat?"cssFloat":"styleFloat",xa=function(b,c){return c.toUpperCase()};d.fn.css=function(b,c){return y(this,b,c,true,function(e,f,g){if(g===k)return d.curCSS(e,f);if(typeof g==="number"&&!ob.test(f))g+="px";d.style(e,f,g)})};d.extend({style:function(b,c,e){if(!b||b.nodeType===3||b.nodeType===8)return k;if((c==="width"||c==="height")&&parseFloat(e)<0)e=k;var f=b.style||b,g=e!==k;if(!d.support.opacity&&c==="opacity"){if(g){f.zoom=
1;c=parseInt(e,10)+""==="NaN"?"":"alpha(opacity="+e*100+")";b=f.filter||d.curCSS(b,"filter")||"";f.filter=Ta.test(b)?b.replace(Ta,c):c}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Ua.exec(f.filter)[1])/100+"":""}if(va.test(c))c=Va;c=c.replace(wa,xa);if(g)f[c]=e;return f[c]},css:function(b,c,e,f){if(c==="width"||c==="height"){var g,n=c==="width"?tb:ub;e=function(){g=c==="width"?b.offsetWidth:b.offsetHeight;f!=="border"&&d.each(n,function(){f||(g-=parseFloat(d.curCSS(b,"padding"+this,
true))||0);if(f==="margin")g+=parseFloat(d.curCSS(b,"margin"+this,true))||0;else g-=parseFloat(d.curCSS(b,"border"+this+"Width",true))||0})};b.offsetWidth!==0?e():d.swap(b,sb,e);return Math.max(0,Math.round(g))}return d.curCSS(b,c,e)},curCSS:function(b,c,e){var f,g=b.style;if(!d.support.opacity&&c==="opacity"&&b.currentStyle){f=Ua.test(b.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(va.test(c))c=Va;if(!e&&g&&g[c])f=g[c];else if(vb){if(va.test(c))c="float";c=c.replace(pb,
"-$1").toLowerCase();g=b.ownerDocument.defaultView;if(!g)return null;if(b=g.getComputedStyle(b,null))f=b.getPropertyValue(c);if(c==="opacity"&&f==="")f="1"}else if(b.currentStyle){e=c.replace(wa,xa);f=b.currentStyle[c]||b.currentStyle[e];if(!qb.test(f)&&rb.test(f)){c=g.left;var n=b.runtimeStyle.left;b.runtimeStyle.left=b.currentStyle.left;g.left=e==="fontSize"?"1em":f||0;f=g.pixelLeft+"px";g.left=c;b.runtimeStyle.left=n}}return f},swap:function(b,c,e){var f={};for(var g in c){f[g]=b.style[g];b.style[g]=
c[g]}e.call(b);for(g in c)b.style[g]=f[g]}});if(d.expr&&d.expr.filters){d.expr.filters.hidden=function(b){var c=b.offsetWidth,e=b.offsetHeight,f=b.nodeName.toLowerCase()==="tr";return c===0&&e===0&&!f?true:c>0&&e>0&&!f?false:d.curCSS(b,"display")==="none"};d.expr.filters.visible=function(b){return!d.expr.filters.hidden(b)}}var wb=E(),xb=/<script(.|\s)*?\/script>/gi,yb=/select|textarea/i,zb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,ca=/=\?(&|$)/,
ya=/\?/,Ab=/(\?|&)_=.*?(&|$)/,Bb=/^(\w+:)?\/\/([^\/?#]+)/,Cb=/%20/g,Db=d.fn.load;d.fn.extend({load:function(b,c,e){if(typeof b!=="string")return Db.call(this,b);else if(!this.length)return this;var f=b.indexOf(" ");if(f>=0){var g=b.slice(f,b.length);b=b.slice(0,f)}f="GET";if(c)if(d.isFunction(c)){e=c;c=null}else if(typeof c==="object"){c=d.param(c,d.ajaxSettings.traditional);f="POST"}var n=this;d.ajax({url:b,type:f,dataType:"html",data:c,complete:function(p,w){if(w==="success"||w==="notmodified")n.html(g?
d("<div />").append(p.responseText.replace(xb,"")).find(g):p.responseText);e&&n.each(e,[p.responseText,w,p])}});return this},serialize:function(){return d.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?d.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||yb.test(this.nodeName)||zb.test(this.type))}).map(function(b,c){b=d(this).val();return b==null?null:d.isArray(b)?d.map(b,function(e){return{name:c.name,
value:e}}):{name:c.name,value:b}}).get()}});d.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(b,c){d.fn[c]=function(e){return this.bind(c,e)}});d.extend({get:function(b,c,e,f){if(d.isFunction(c)){f=f||e;e=c;c=null}return d.ajax({type:"GET",url:b,data:c,success:e,dataType:f})},getScript:function(b,c){return d.get(b,null,c,"script")},getJSON:function(b,c,e){return d.get(b,c,e,"json")},post:function(b,c,e,f){if(d.isFunction(c)){f=f||e;e=c;c={}}return d.ajax({type:"POST",
url:b,data:c,success:e,dataType:f})},ajaxSetup:function(b){d.extend(d.ajaxSettings,b)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:h.XMLHttpRequest&&(h.location.protocol!=="file:"||!h.ActiveXObject)?function(){return new h.XMLHttpRequest}:function(){try{return new h.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",
json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(b){function c(){g.success&&g.success.call(u,w,p,M);g.global&&f("ajaxSuccess",[M,g])}function e(){g.complete&&g.complete.call(u,M,p);g.global&&f("ajaxComplete",[M,g]);g.global&&!--d.active&&d.event.trigger("ajaxStop")}function f(B,A){(g.context?d(g.context):d.event).trigger(B,A)}var g=d.extend(true,{},d.ajaxSettings,b),n,p,w,u=b&&b.context||g,x=g.type.toUpperCase();if(g.data&&g.processData&&
typeof g.data!=="string")g.data=d.param(g.data,g.traditional);if(g.dataType==="jsonp"){if(x==="GET")ca.test(g.url)||(g.url+=(ya.test(g.url)?"&":"?")+(g.jsonp||"callback")+"=?");else if(!g.data||!ca.test(g.data))g.data=(g.data?g.data+"&":"")+(g.jsonp||"callback")+"=?";g.dataType="json"}if(g.dataType==="json"&&(g.data&&ca.test(g.data)||ca.test(g.url))){n=g.jsonpCallback||"jsonp"+wb++;if(g.data)g.data=(g.data+"").replace(ca,"="+n+"$1");g.url=g.url.replace(ca,"="+n+"$1");g.dataType="script";h[n]=h[n]||
function(B){w=B;c();e();h[n]=k;try{delete h[n]}catch(A){}O&&O.removeChild(R)}}if(g.dataType==="script"&&g.cache===null)g.cache=false;if(g.cache===false&&x==="GET"){var C=E(),K=g.url.replace(Ab,"$1_="+C+"$2");g.url=K+(K===g.url?(ya.test(g.url)?"&":"?")+"_="+C:"")}if(g.data&&x==="GET")g.url+=(ya.test(g.url)?"&":"?")+g.data;g.global&&!d.active++&&d.event.trigger("ajaxStart");C=(C=Bb.exec(g.url))&&(C[1]&&C[1]!==location.protocol||C[2]!==location.host);if(g.dataType==="script"&&x==="GET"&&C){var O=D.getElementsByTagName("head")[0]||
D.documentElement,R=D.createElement("script");R.src=g.url;if(g.scriptCharset)R.charset=g.scriptCharset;if(!n){var P=false;R.onload=R.onreadystatechange=function(){if(!P&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){P=true;c();e();R.onload=R.onreadystatechange=null;O&&R.parentNode&&O.removeChild(R)}}}O.insertBefore(R,O.firstChild);return k}var V=false,M=g.xhr();if(M){g.username?M.open(x,g.url,g.async,g.username,g.password):M.open(x,g.url,g.async);try{if(g.data||b&&
b.contentType)M.setRequestHeader("Content-Type",g.contentType);if(g.ifModified){d.lastModified[g.url]&&M.setRequestHeader("If-Modified-Since",d.lastModified[g.url]);d.etag[g.url]&&M.setRequestHeader("If-None-Match",d.etag[g.url])}C||M.setRequestHeader("X-Requested-With","XMLHttpRequest");M.setRequestHeader("Accept",g.dataType&&g.accepts[g.dataType]?g.accepts[g.dataType]+", */*":g.accepts._default)}catch(ua){}if(g.beforeSend&&g.beforeSend.call(u,M,g)===false){g.global&&!--d.active&&d.event.trigger("ajaxStop");
M.abort();return false}g.global&&f("ajaxSend",[M,g]);var j=M.onreadystatechange=function(B){if(!M||M.readyState===0||B==="abort"){V||e();V=true;if(M)M.onreadystatechange=d.noop}else if(!V&&M&&(M.readyState===4||B==="timeout")){V=true;M.onreadystatechange=d.noop;p=B==="timeout"?"timeout":!d.httpSuccess(M)?"error":g.ifModified&&d.httpNotModified(M,g.url)?"notmodified":"success";var A;if(p==="success")try{w=d.httpData(M,g.dataType,g)}catch(I){p="parsererror";A=I}if(p==="success"||p==="notmodified")n||
c();else d.handleError(g,M,p,A);e();B==="timeout"&&M.abort();if(g.async)M=null}};try{var m=M.abort;M.abort=function(){M&&m.call(M);j("abort")}}catch(s){}g.async&&g.timeout>0&&setTimeout(function(){M&&!V&&j("timeout")},g.timeout);try{M.send(x==="POST"||x==="PUT"||x==="DELETE"?g.data:null)}catch(v){d.handleError(g,M,null,v);e()}g.async||j();return M}},handleError:function(b,c,e,f){if(b.error)b.error.call(b.context||b,c,e,f);if(b.global)(b.context?d(b.context):d.event).trigger("ajaxError",[c,b,f])},
active:0,httpSuccess:function(b){try{return!b.status&&location.protocol==="file:"||b.status>=200&&b.status<300||b.status===304||b.status===1223||b.status===0}catch(c){}return false},httpNotModified:function(b,c){var e=b.getResponseHeader("Last-Modified"),f=b.getResponseHeader("Etag");if(e)d.lastModified[c]=e;if(f)d.etag[c]=f;return b.status===304||b.status===0},httpData:function(b,c,e){var f=b.getResponseHeader("content-type")||"",g=c==="xml"||!c&&f.indexOf("xml")>=0;b=g?b.responseXML:b.responseText;
g&&b.documentElement.nodeName==="parsererror"&&d.error("parsererror");if(e&&e.dataFilter)b=e.dataFilter(b,c);if(typeof b==="string")if(c==="json"||!c&&f.indexOf("json")>=0)b=d.parseJSON(b);else if(c==="script"||!c&&f.indexOf("javascript")>=0)d.globalEval(b);return b},param:function(b,c){function e(p,w){if(d.isArray(w))d.each(w,function(u,x){c||/\[\]$/.test(p)?f(p,x):e(p+"["+(typeof x==="object"||d.isArray(x)?u:"")+"]",x)});else!c&&w!=null&&typeof w==="object"?d.each(w,function(u,x){e(p+"["+u+"]",
x)}):f(p,w)}function f(p,w){w=d.isFunction(w)?w():w;g[g.length]=encodeURIComponent(p)+"="+encodeURIComponent(w)}var g=[];if(c===k)c=d.ajaxSettings.traditional;if(d.isArray(b)||b.jquery)d.each(b,function(){f(this.name,this.value)});else for(var n in b)e(n,b[n]);return g.join("&").replace(Cb,"+")}});var za={},Eb=/toggle|show|hide/,Fb=/^([+-]=)?([\d+-.]+)(.*)$/,la,Ca=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],
["opacity"]];d.fn.extend({show:function(b,c){if(b||b===0)return this.animate(S("show",3),b,c);else{b=0;for(c=this.length;b<c;b++){var e=d.data(this[b],"olddisplay");this[b].style.display=e||"";if(d.css(this[b],"display")==="none"){e=this[b].nodeName;var f;if(za[e])f=za[e];else{var g=d("<"+e+" />").appendTo("body");f=g.css("display");if(f==="none")f="block";g.remove();za[e]=f}d.data(this[b],"olddisplay",f)}}b=0;for(c=this.length;b<c;b++)this[b].style.display=d.data(this[b],"olddisplay")||"";return this}},
hide:function(b,c){if(b||b===0)return this.animate(S("hide",3),b,c);else{b=0;for(c=this.length;b<c;b++){var e=d.data(this[b],"olddisplay");!e&&e!=="none"&&d.data(this[b],"olddisplay",d.css(this[b],"display"))}b=0;for(c=this.length;b<c;b++)this[b].style.display="none";return this}},_toggle:d.fn.toggle,toggle:function(b,c){var e=typeof b==="boolean";if(d.isFunction(b)&&d.isFunction(c))this._toggle.apply(this,arguments);else b==null||e?this.each(function(){var f=e?b:d(this).is(":hidden");d(this)[f?"show":
"hide"]()}):this.animate(S("toggle",3),b,c);return this},fadeTo:function(b,c,e){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:c},b,e)},animate:function(b,c,e,f){var g=d.speed(c,e,f);if(d.isEmptyObject(b))return this.each(g.complete);return this[g.queue===false?"each":"queue"](function(){var n=d.extend({},g),p,w=this.nodeType===1&&d(this).is(":hidden"),u=this;for(p in b){var x=p.replace(wa,xa);if(p!==x){b[x]=b[p];delete b[p];p=x}if(b[p]==="hide"&&w||b[p]==="show"&&!w)return n.complete.call(this);
if((p==="height"||p==="width")&&this.style){n.display=d.css(this,"display");n.overflow=this.style.overflow}if(d.isArray(b[p])){(n.specialEasing=n.specialEasing||{})[p]=b[p][1];b[p]=b[p][0]}}if(n.overflow!=null)this.style.overflow="hidden";n.curAnim=d.extend({},b);d.each(b,function(C,K){var O=new d.fx(u,n,C);if(Eb.test(K))O[K==="toggle"?w?"show":"hide":K](b);else{var R=Fb.exec(K),P=O.cur(true)||0;if(R){K=parseFloat(R[2]);var V=R[3]||"px";if(V!=="px"){u.style[C]=(K||1)+V;P=(K||1)/O.cur(true)*P;u.style[C]=
P+V}if(R[1])K=(R[1]==="-="?-1:1)*K+P;O.custom(P,K,V)}else O.custom(P,K,"")}});return true})},stop:function(b,c){var e=d.timers;b&&this.queue([]);this.each(function(){for(var f=e.length-1;f>=0;f--)if(e[f].elem===this){c&&e[f](true);e.splice(f,1)}});c||this.dequeue();return this}});d.each({slideDown:S("show",1),slideUp:S("hide",1),slideToggle:S("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,c){d.fn[b]=function(e,f){return this.animate(c,e,f)}});d.extend({speed:function(b,c,
e){var f=b&&typeof b==="object"?b:{complete:e||!e&&c||d.isFunction(b)&&b,duration:b,easing:e&&c||c&&!d.isFunction(c)&&c};f.duration=d.fx.off?0:typeof f.duration==="number"?f.duration:d.fx.speeds[f.duration]||d.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&d(this).dequeue();d.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(b,c,e,f){return e+f*b},swing:function(b,c,e,f){return(-Math.cos(b*Math.PI)/2+0.5)*f+e}},timers:[],fx:function(b,c,e){this.options=
c;this.elem=b;this.prop=e;if(!c.orig)c.orig={}}});d.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(d.fx.step[this.prop]||d.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(b){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(b=parseFloat(d.css(this.elem,this.prop,b)))&&b>-10000?b:parseFloat(d.curCSS(this.elem,
this.prop))||0},custom:function(b,c,e){function f(n){return g.step(n)}this.startTime=E();this.start=b;this.end=c;this.unit=e||this.unit||"px";this.now=this.start;this.pos=this.state=0;var g=this;f.elem=this.elem;if(f()&&d.timers.push(f)&&!la)la=setInterval(d.fx.tick,13)},show:function(){this.options.orig[this.prop]=d.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());d(this.elem).show()},hide:function(){this.options.orig[this.prop]=
d.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(b){var c=E(),e=true;if(b||c>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)e=false;if(e){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;b=d.data(this.elem,"olddisplay");this.elem.style.display=b?b:this.options.display;if(d.css(this.elem,
"display")==="none")this.elem.style.display="block"}this.options.hide&&d(this.elem).hide();if(this.options.hide||this.options.show)for(var g in this.options.curAnim)d.style(this.elem,g,this.options.orig[g]);this.options.complete.call(this.elem)}return false}else{g=c-this.startTime;this.state=g/this.options.duration;b=this.options.easing||(d.easing.swing?"swing":"linear");this.pos=d.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,g,0,1,this.options.duration);
this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};d.extend(d.fx,{tick:function(){for(var b=d.timers,c=0;c<b.length;c++)b[c]()||b.splice(c--,1);b.length||d.fx.stop()},stop:function(){clearInterval(la);la=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){d.style(b.elem,"opacity",b.now)},_default:function(b){if(b.elem.style&&b.elem.style[b.prop]!=null)b.elem.style[b.prop]=(b.prop==="width"||b.prop==="height"?Math.max(0,b.now):b.now)+b.unit;else b.elem[b.prop]=
b.now}}});if(d.expr&&d.expr.filters)d.expr.filters.animated=function(b){return d.grep(d.timers,function(c){return b===c.elem}).length};d.fn.offset="getBoundingClientRect"in D.documentElement?function(b){var c=this[0];if(b)return this.each(function(g){d.offset.setOffset(this,b,g)});if(!c||!c.ownerDocument)return null;if(c===c.ownerDocument.body)return d.offset.bodyOffset(c);var e=c.getBoundingClientRect(),f=c.ownerDocument;c=f.body;f=f.documentElement;return{top:e.top+(self.pageYOffset||d.support.boxModel&&
f.scrollTop||c.scrollTop)-(f.clientTop||c.clientTop||0),left:e.left+(self.pageXOffset||d.support.boxModel&&f.scrollLeft||c.scrollLeft)-(f.clientLeft||c.clientLeft||0)}}:function(b){var c=this[0];if(b)return this.each(function(C){d.offset.setOffset(this,b,C)});if(!c||!c.ownerDocument)return null;if(c===c.ownerDocument.body)return d.offset.bodyOffset(c);d.offset.initialize();var e=c.offsetParent,f=c,g=c.ownerDocument,n,p=g.documentElement,w=g.body;f=(g=g.defaultView)?g.getComputedStyle(c,null):c.currentStyle;
for(var u=c.offsetTop,x=c.offsetLeft;(c=c.parentNode)&&c!==w&&c!==p;){if(d.offset.supportsFixedPosition&&f.position==="fixed")break;n=g?g.getComputedStyle(c,null):c.currentStyle;u-=c.scrollTop;x-=c.scrollLeft;if(c===e){u+=c.offsetTop;x+=c.offsetLeft;if(d.offset.doesNotAddBorder&&!(d.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(c.nodeName))){u+=parseFloat(n.borderTopWidth)||0;x+=parseFloat(n.borderLeftWidth)||0}f=e;e=c.offsetParent}if(d.offset.subtractsBorderForOverflowNotVisible&&n.overflow!==
"visible"){u+=parseFloat(n.borderTopWidth)||0;x+=parseFloat(n.borderLeftWidth)||0}f=n}if(f.position==="relative"||f.position==="static"){u+=w.offsetTop;x+=w.offsetLeft}if(d.offset.supportsFixedPosition&&f.position==="fixed"){u+=Math.max(p.scrollTop,w.scrollTop);x+=Math.max(p.scrollLeft,w.scrollLeft)}return{top:u,left:x}};d.offset={initialize:function(){var b=D.body,c=D.createElement("div"),e,f,g,n=parseFloat(d.curCSS(b,"marginTop",true))||0;d.extend(c.style,{position:"absolute",top:0,left:0,margin:0,
border:0,width:"1px",height:"1px",visibility:"hidden"});c.innerHTML="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";b.insertBefore(c,b.firstChild);e=c.firstChild;f=e.firstChild;g=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=
g.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=b.offsetTop!==n;b.removeChild(c);d.offset.initialize=d.noop},bodyOffset:function(b){var c=b.offsetTop,e=b.offsetLeft;d.offset.initialize();if(d.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(d.curCSS(b,
"marginTop",true))||0;e+=parseFloat(d.curCSS(b,"marginLeft",true))||0}return{top:c,left:e}},setOffset:function(b,c,e){if(/static/.test(d.curCSS(b,"position")))b.style.position="relative";var f=d(b),g=f.offset(),n=parseInt(d.curCSS(b,"top",true),10)||0,p=parseInt(d.curCSS(b,"left",true),10)||0;if(d.isFunction(c))c=c.call(b,e,g);e={top:c.top-g.top+n,left:c.left-g.left+p};"using"in c?c.using.call(b,e):f.css(e)}};d.fn.extend({position:function(){if(!this[0])return null;var b=this[0],c=this.offsetParent(),
e=this.offset(),f=/^body|html$/i.test(c[0].nodeName)?{top:0,left:0}:c.offset();e.top-=parseFloat(d.curCSS(b,"marginTop",true))||0;e.left-=parseFloat(d.curCSS(b,"marginLeft",true))||0;f.top+=parseFloat(d.curCSS(c[0],"borderTopWidth",true))||0;f.left+=parseFloat(d.curCSS(c[0],"borderLeftWidth",true))||0;return{top:e.top-f.top,left:e.left-f.left}},offsetParent:function(){return this.map(function(){for(var b=this.offsetParent||D.body;b&&!/^body|html$/i.test(b.nodeName)&&d.css(b,"position")==="static";)b=
b.offsetParent;return b})}});d.each(["Left","Top"],function(b,c){var e="scroll"+c;d.fn[e]=function(f){var g=this[0],n;if(!g)return null;return f!==k?this.each(function(){if(n=T(this))n.scrollTo(!b?f:d(n).scrollLeft(),b?f:d(n).scrollTop());else this[e]=f}):(n=T(g))?"pageXOffset"in n?n[b?"pageYOffset":"pageXOffset"]:d.support.boxModel&&n.document.documentElement[e]||n.document.body[e]:g[e]}});d.each(["Height","Width"],function(b,c){var e=c.toLowerCase();d.fn["inner"+c]=function(){return this[0]?d.css(this[0],
e,false,"padding"):null};d.fn["outer"+c]=function(f){return this[0]?d.css(this[0],e,false,f?"margin":"border"):null};d.fn[e]=function(f){var g=this[0];if(!g)return f==null?null:this;if(d.isFunction(f))return this.each(function(n){var p=d(this);p[e](f.call(this,n,p[e]()))});return"scrollTo"in g&&g.document?g.document.compatMode==="CSS1Compat"&&g.document.documentElement["client"+c]||g.document.body["client"+c]:g.nodeType===9?Math.max(g.documentElement["client"+c],g.body["scroll"+c],g.documentElement["scroll"+
c],g.body["offset"+c],g.documentElement["offset"+c]):f===k?d.css(g,e):this.css(e,typeof f==="string"?f:f+"px")}});h.jQuery=h.$=d})(window);jQuery.ui||function(h){function k(q,z,G,L){function Q(T){T=h[q][z][T]||[];return typeof T=="string"?T.split(/,?\s+/):T}var S=Q("getter");if(L.length==1&&typeof L[0]=="string")S=S.concat(Q("getterSetter"));return h.inArray(G,S)!=-1}var o=h.fn.remove,r=h.browser.mozilla&&parseFloat(h.browser.version)<1.9;h.ui={version:"1.7.2",plugin:{add:function(q,z,G){q=h.ui[q].prototype;for(var L in G){q.plugins[L]=q.plugins[L]||[];q.plugins[L].push([z,G[L]])}},call:function(q,z,G){if((z=q.plugins[z])&&q.element[0].parentNode)for(var L=
0;L<z.length;L++)q.options[z[L][0]]&&z[L][1].apply(q.element,G)}},contains:function(q,z){return document.compareDocumentPosition?q.compareDocumentPosition(z)&16:q!==z&&q.contains(z)},hasScroll:function(q,z){if(h(q).css("overflow")=="hidden")return false;var G=z&&z=="left"?"scrollLeft":"scrollTop",L=false;if(q[G]>0)return true;q[G]=1;L=q[G]>0;q[G]=0;return L},isOverAxis:function(q,z,G){return q>z&&q<z+G},isOver:function(q,z,G,L,Q,S){return h.ui.isOverAxis(q,G,Q)&&h.ui.isOverAxis(z,L,S)},keyCode:{BACKSPACE:8,
CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(r){var y=h.attr,E=h.fn.removeAttr,F=/^aria-/,J=/^wairole:/;h.attr=function(q,z,G){var L=G!==undefined;return z=="role"?L?y.call(this,q,z,"wairole:"+G):(y.apply(this,arguments)||"").replace(J,""):F.test(z)?L?q.setAttributeNS("http://www.w3.org/2005/07/aaa",
z.replace(F,"aaa:"),G):y.call(this,q,z.replace(F,"aaa:")):y.apply(this,arguments)};h.fn.removeAttr=function(q){return F.test(q)?this.each(function(){this.removeAttributeNS("http://www.w3.org/2005/07/aaa",q.replace(F,""))}):E.call(this,q)}}h.fn.extend({remove:function(){h("*",this).add(this).each(function(){h(this).triggerHandler("remove")});return o.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable",
"on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var q;q=h.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(h.curCSS(this,"position",1))&&/(auto|scroll)/.test(h.curCSS(this,"overflow",1)+h.curCSS(this,"overflow-y",1)+h.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(h.curCSS(this,
"overflow",1)+h.curCSS(this,"overflow-y",1)+h.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!q.length?h(document):q}});h.extend(h.expr[":"],{data:function(q,z,G){return!!h.data(q,G[3])},focusable:function(q){var z=q.nodeName.toLowerCase(),G=h.attr(q,"tabindex");return(/input|select|textarea|button|object/.test(z)?!q.disabled:"a"==z||"area"==z?q.href||!isNaN(G):!isNaN(G))&&!h(q)["area"==z?"parents":"closest"](":hidden").length},tabbable:function(q){var z=h.attr(q,"tabindex");
return(isNaN(z)||z>=0)&&h(q).is(":focusable")}});h.widget=function(q,z){var G=q.split(".")[0];q=q.split(".")[1];h.fn[q]=function(L){var Q=typeof L=="string",S=Array.prototype.slice.call(arguments,1);if(Q&&L.substring(0,1)=="_")return this;if(Q&&k(G,q,L,S)){var T=h.data(this[0],q);return T?T[L].apply(T,S):undefined}return this.each(function(){var d=h.data(this,q);!d&&!Q&&h.data(this,q,new h[G][q](this,L))._init();d&&Q&&h.isFunction(d[L])&&d[L].apply(d,S)})};h[G]=h[G]||{};h[G][q]=function(L,Q){var S=
this;this.namespace=G;this.widgetName=q;this.widgetEventPrefix=h[G][q].eventPrefix||q;this.widgetBaseClass=G+"-"+q;this.options=h.extend({},h.widget.defaults,h[G][q].defaults,h.metadata&&h.metadata.get(L)[q],Q);this.element=h(L).bind("setData."+q,function(T,d,ma){if(T.target==L)return S._setData(d,ma)}).bind("getData."+q,function(T,d){if(T.target==L)return S._getData(d)}).bind("remove",function(){return S.destroy()})};h[G][q].prototype=h.extend({},h.widget.prototype,z);h[G][q].getterSetter="option"};
h.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(q,z){var G=q,L=this;if(typeof q=="string"){if(z===undefined)return this._getData(q);G={};G[q]=z}h.each(G,function(Q,S){L._setData(Q,S)})},_getData:function(q){return this.options[q]},_setData:function(q,z){this.options[q]=z;if(q=="disabled")this.element[z?"addClass":"removeClass"](this.widgetBaseClass+
"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",z)},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(q,z,G){var L=this.options[q];q=q==this.widgetEventPrefix?q:this.widgetEventPrefix+q;z=h.Event(z);z.type=q;if(z.originalEvent){q=h.event.props.length;for(var Q;q;){Q=h.event.props[--q];z[Q]=z.originalEvent[Q]}}this.element.trigger(z,G);return!(h.isFunction(L)&&L.call(this.element[0],z,G)===false||z.isDefaultPrevented())}};
h.widget.defaults={disabled:false};h.ui.mouse={_mouseInit:function(){var q=this;this.element.bind("mousedown."+this.widgetName,function(z){return q._mouseDown(z)}).bind("click."+this.widgetName,function(z){if(q._preventClickEvent){q._preventClickEvent=false;z.stopImmediatePropagation();return false}});if(h.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);
h.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable)},_mouseDown:function(q){q.originalEvent=q.originalEvent||{};if(!q.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(q);this._mouseDownEvent=q;var z=this,G=q.which==1,L=typeof this.options.cancel=="string"?h(q.target).parents().add(q.target).filter(this.options.cancel).length:false;if(!G||L||!this._mouseCapture(q))return true;this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet)this._mouseDelayTimer=setTimeout(function(){z.mouseDelayMet=
true},this.options.delay);if(this._mouseDistanceMet(q)&&this._mouseDelayMet(q)){this._mouseStarted=this._mouseStart(q)!==false;if(!this._mouseStarted){q.preventDefault();return true}}this._mouseMoveDelegate=function(Q){return z._mouseMove(Q)};this._mouseUpDelegate=function(Q){return z._mouseUp(Q)};h(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);h.browser.safari||q.preventDefault();return q.originalEvent.mouseHandled=true}},
_mouseMove:function(q){if(h.browser.msie&&!q.button)return this._mouseUp(q);if(this._mouseStarted){this._mouseDrag(q);return q.preventDefault()}if(this._mouseDistanceMet(q)&&this._mouseDelayMet(q))(this._mouseStarted=this._mouseStart(this._mouseDownEvent,q)!==false)?this._mouseDrag(q):this._mouseUp(q);return!this._mouseStarted},_mouseUp:function(q){h(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=
false;this._preventClickEvent=q.target==this._mouseDownEvent.target;this._mouseStop(q)}return false},_mouseDistanceMet:function(q){return Math.max(Math.abs(this._mouseDownEvent.pageX-q.pageX),Math.abs(this._mouseDownEvent.pageY-q.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}};h.ui.mouse.defaults={cancel:null,distance:1,delay:0}}(jQuery);
(function(h){h.widget("ui.slider",h.extend({},h.ui.mouse,{_init:function(){var k=this,o=this.options;this._keySliding=false;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");this.range=h([]);if(o.range){if(o.range===true){this.range=h("<div></div>");if(!o.values)o.values=[this._valueMin(),this._valueMin()];if(o.values.length&&o.values.length!=2)o.values=[o.values[0],o.values[0]]}else this.range=
h("<div></div>");this.range.appendTo(this.element).addClass("ui-slider-range");if(o.range=="min"||o.range=="max")this.range.addClass("ui-slider-range-"+o.range);this.range.addClass("ui-widget-header")}h(".ui-slider-handle",this.element).length==0&&h('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");if(o.values&&o.values.length)for(;h(".ui-slider-handle",this.element).length<o.values.length;)h('<a href="#"></a>').appendTo(this.element).addClass("ui-slider-handle");this.handles=
h(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(r){r.preventDefault()}).hover(function(){o.disabled||h(this).addClass("ui-state-hover")},function(){h(this).removeClass("ui-state-hover")}).focus(function(){if(o.disabled)h(this).blur();else{h(".ui-slider .ui-state-focus").removeClass("ui-state-focus");h(this).addClass("ui-state-focus")}}).blur(function(){h(this).removeClass("ui-state-focus")});
this.handles.each(function(r){h(this).data("index.ui-slider-handle",r)});this.handles.keydown(function(r){var y=true,E=h(this).data("index.ui-slider-handle");if(!k.options.disabled){switch(r.keyCode){case h.ui.keyCode.HOME:case h.ui.keyCode.END:case h.ui.keyCode.UP:case h.ui.keyCode.RIGHT:case h.ui.keyCode.DOWN:case h.ui.keyCode.LEFT:y=false;if(!k._keySliding){k._keySliding=true;h(this).addClass("ui-state-active");k._start(r,E)}break}var F,J,q=k._step();F=k.options.values&&k.options.values.length?
J=k.values(E):J=k.value();switch(r.keyCode){case h.ui.keyCode.HOME:J=k._valueMin();break;case h.ui.keyCode.END:J=k._valueMax();break;case h.ui.keyCode.UP:case h.ui.keyCode.RIGHT:if(F==k._valueMax())return;J=F+q;break;case h.ui.keyCode.DOWN:case h.ui.keyCode.LEFT:if(F==k._valueMin())return;J=F-q;break}k._slide(r,E,J);return y}}).keyup(function(r){var y=h(this).data("index.ui-slider-handle");if(k._keySliding){k._stop(r,y);k._change(r,y);k._keySliding=false;h(this).removeClass("ui-state-active")}});
this._refreshValue()},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy()},_mouseCapture:function(k){var o=this.options;if(o.disabled)return false;this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var r={x:k.pageX,y:k.pageY},
y=this._normValueFromMouse(r),E=this._valueMax()-this._valueMin()+1,F,J=this,q;this.handles.each(function(z){var G=Math.abs(y-J.values(z));if(E>G){E=G;F=h(this);q=z}});if(o.range==true&&this.values(1)==o.min)F=h(this.handles[++q]);this._start(k,q);J._handleIndex=q;F.addClass("ui-state-active").focus();o=F.offset();this._clickOffset=!h(k.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:k.pageX-o.left-F.width()/2,top:k.pageY-o.top-F.height()/2-(parseInt(F.css("borderTopWidth"),
10)||0)-(parseInt(F.css("borderBottomWidth"),10)||0)+(parseInt(F.css("marginTop"),10)||0)};y=this._normValueFromMouse(r);this._slide(k,q,y);return true},_mouseStart:function(){return true},_mouseDrag:function(k){var o=this._normValueFromMouse({x:k.pageX,y:k.pageY});this._slide(k,this._handleIndex,o);return false},_mouseStop:function(k){this.handles.removeClass("ui-state-active");this._stop(k,this._handleIndex);this._change(k,this._handleIndex);this._clickOffset=this._handleIndex=null;return false},
_detectOrientation:function(){this.orientation=this.options.orientation=="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(k){var o;if("horizontal"==this.orientation){o=this.elementSize.width;k=k.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{o=this.elementSize.height;k=k.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}o=k/o;if(o>1)o=1;if(o<0)o=0;if("vertical"==this.orientation)o=1-o;k=this._valueMax()-this._valueMin();k=o*k;o=k%this.options.step;
k=this._valueMin()+k-o;if(o>this.options.step/2)k+=this.options.step;return parseFloat(k.toFixed(5))},_start:function(k,o){var r={handle:this.handles[o],value:this.value()};if(this.options.values&&this.options.values.length){r.value=this.values(o);r.values=this.values()}this._trigger("start",k,r)},_slide:function(k,o,r){if(this.options.values&&this.options.values.length){var y=this.values(o?0:1);if(this.options.values.length==2&&this.options.range===true&&(o==0&&r>y||o==1&&r<y))r=y;if(r!=this.values(o)){y=
this.values();y[o]=r;y=this._trigger("slide",k,{handle:this.handles[o],value:r,values:y});this.values(o?0:1);y!==false&&this.values(o,r,k.type=="mousedown"&&this.options.animate,true)}}else if(r!=this.value()){if(k.type=="mousemove")y=this._trigger("slide",k,{handle:this.handles[o],value:r});y!==false&&this._setData("value",r,k.type=="mousedown"&&this.options.animate)}},_stop:function(k,o){var r={handle:this.handles[o],value:this.value()};if(this.options.values&&this.options.values.length){r.value=
this.values(o);r.values=this.values()}this._trigger("stop",k,r)},_change:function(k,o){var r={handle:this.handles[o],value:this.value()};if(this.options.values&&this.options.values.length){r.value=this.values(o);r.values=this.values()}this._trigger("change",k,r)},value:function(k){if(arguments.length){this._setData("value",k);this._change(null,0)}return this._value()},values:function(k,o,r,y){if(arguments.length>1){this.options.values[k]=o;this._refreshValue(r);y||this._change(null,k)}return arguments.length?
this.options.values&&this.options.values.length?this._values(k):this.value():this._values()},_setData:function(k,o,r){h.widget.prototype._setData.apply(this,arguments);switch(k){case "disabled":if(o){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled")}else this.handles.removeAttr("disabled");case "orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+
this.orientation);this._refreshValue(r);break;case "value":this._refreshValue(r);break}},_step:function(){return this.options.step},_value:function(){var k=this.options.value;if(k<this._valueMin())k=this._valueMin();if(k>this._valueMax())k=this._valueMax();return k},_values:function(k){if(arguments.length){var o=this.options.values[k];if(o<this._valueMin())o=this._valueMin();if(o>this._valueMax())o=this._valueMax();return o}else return this.options.values},_valueMin:function(){return this.options.min},
_valueMax:function(){return this.options.max},_refreshValue:function(k){var o=this.options.range,r=this.options,y=this;if(this.options.values&&this.options.values.length)this.handles.each(function(q){var z=(y.values(q)-y._valueMin())/(y._valueMax()-y._valueMin())*100,G={};G[y.orientation=="horizontal"?"left":"bottom"]=z+"%";h(this).stop(1,1)[k?"animate":"css"](G,r.animate);if(y.options.range===true)if(y.orientation=="horizontal"){q==0&&y.range.stop(1,1)[k?"animate":"css"]({left:z+"%"},r.animate);
q==1&&y.range[k?"animate":"css"]({width:z-lastValPercent+"%"},{queue:false,duration:r.animate})}else{q==0&&y.range.stop(1,1)[k?"animate":"css"]({bottom:z+"%"},r.animate);q==1&&y.range[k?"animate":"css"]({height:z-lastValPercent+"%"},{queue:false,duration:r.animate})}lastValPercent=z});else{var E=this.value(),F=this._valueMin(),J=this._valueMax();E=J!=F?(E-F)/(J-F)*100:0;F={};F[y.orientation=="horizontal"?"left":"bottom"]=E+"%";this.handle.stop(1,1)[k?"animate":"css"](F,r.animate);o=="min"&&this.orientation==
"horizontal"&&this.range.stop(1,1)[k?"animate":"css"]({width:E+"%"},r.animate);o=="max"&&this.orientation=="horizontal"&&this.range[k?"animate":"css"]({width:100-E+"%"},{queue:false,duration:r.animate});o=="min"&&this.orientation=="vertical"&&this.range.stop(1,1)[k?"animate":"css"]({height:E+"%"},r.animate);o=="max"&&this.orientation=="vertical"&&this.range[k?"animate":"css"]({height:100-E+"%"},{queue:false,duration:r.animate})}}}));h.extend(h.ui.slider,{getter:"value values",version:"1.7.2",eventPrefix:"slide",
defaults:{animate:false,delay:0,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null}})})(jQuery);function search(h,k){this.wrapper=document.getElementById(h);this.cap=10;this.spinner=this.ajax=this.timeout=null;this.search="";this.field=document.getElementById(k);if(!this.field.id)this.field=document.getElementById("mainmenu_search").getElementsByTagName("INPUT")[0];this.suggestion=this.wrapper.getElementsByTagName("UL")[0];search.prototype.keyUp=function(o){if(o.keyCode==13){dropdownItemLoad();return 0}this.ajax&&this.ajax.abort();this.timeout&&clearTimeout(this.timeout);if(this.field.value!=
this.search&&this.field.value!=""){var r=this;this.timeout=window.setTimeout(function(){r.httpget()},600);return 1}if(this.field.value==""){this.search="";this.close()}};search.prototype.httpget=function(){clearTimeout(this.spinner);this.field.style.backgroundImage="url(/style/images/gui-20101116/spinners.gif)";this.timeout=null;var o=this;this.ajax=$.ajax({url:"/cgi-bin/ajax/crossdomain?http://www.gamesquat.com/API/components/?sort=2;string="+this.field.value,cache:false,async:true,dataType:"xml",success:function(r){this.ajax=
null;o.display(null,r)},error:function(){o.display()}});this.search=this.field.value;return 1};search.prototype.display=function(o,r){var y=this.field;this.spinner=window.setTimeout(function(){y.style.backgroundImage="none"},500);if(r){var E,F,J="",q="";E=this.search.split(" ");var z=r.getElementsByTagName("components")[0].getElementsByTagName("component");for(F=0;F<E.length;++F)if(E[F]!="")q+=q==""?"^"+E[F]+"|\\b"+E[F]+"\\b":"|\\b"+E[F]+"\\b";E=z.length<this.cap?z.length:this.cap;$(".dropdown_CTA").attr("href",
"http://www.gamesquat.com/en/games/free-online-games/?keywords="+this.field.value);for(F=0;F<E;++F)J+=dropdownItem(z[F].getElementsByTagName("title")[0].firstChild.nodeValue.replace(RegExp(q,"ig"),function(G){return"<span>"+G+"</span>"}),"http://www.gamesquat.com/en/games/free-online-games/"+z[F].getElementsByTagName("alias")[0].firstChild.nodeValue+"/","http://static4.gamesquat.com/style/images/games/screenshots/"+z[F].getElementsByTagName("id")[0].firstChild.nodeValue+"/45x35/rounded/1.png",z[F].getElementsByTagName("new")[0].firstChild.nodeValue);
if(this.suggestion.innerHTML=J){this.open();return 1}}this.close();return 0};search.prototype.open=function(){dropdownsToggle("dropdown8",null,"1");return 1};search.prototype.close=function(){dropdownsToggle("dropdown8",null,"-1");return 0}};var _CJEdropdowns=0,_CJEdropdown,_CJEpopup,_CJEfeed;$("#noscript1").detach();function pageFeed(){$.ajax({url:"/cgi-bin/ajax/crossdomain?http://www.gamesquat.com/en/include/_http/summaries02.xml",cache:false,async:true,dataType:"xml",success:function(h){_CJEfeed=h}})}
function pageInit(){$(window).unload(function(){});$("#keywords").attr("autocomplete","off");if(navigator.userAgent.indexOf("Mac")==-1)$(".chooser_new").css("padding-top","4px");else $.browser.mozilla&&$(".chooser_new").css("padding-top","4px");envSave("203","disable_popup","");if(!$.browser.msie||$.browser.version>=7){var h=new search("dropdown8","keywords");$(h.field).keyup(function(k){h.keyUp(k)});suggestionPosition();$(window).resize(function(){suggestionPosition()})}$(document).mousemove(function(k){$("#dropdown7").css("left",
k.pageX-25).css("top",k.pageY+30)});$(document).mouseup(function(){_CJEdropdowns||dropdownsToggle()});$(document).keydown(function(k){switch(k.keyCode){case 27:if((a=document.getElementById("dropdown7"))&&a.style.display=="block"){a.style.display="none";envSave("203","disable_popup",1);return}dropdownsToggle();return;case 37:dropdownItemToggle()&&k.preventDefault();return;case 38:dropdownItemToggle(-1)&&k.preventDefault();return;case 39:dropdownItemToggle()&&k.preventDefault();return;case 40:dropdownItemToggle(1)&&
k.preventDefault();return}});pagePopulate();preLoad("/style/images/gui-20101116/dropdown.png?YYYYMMDD","/style/images/gui-20101116/shadow.png?YYYYMMDD")}
function pagePopulate(h){if(h){_CJEfeed=h;var k,o,r=$("#carousel2"),y=$("#carousel2_wrapper"),E=$("#carousel2_slider");o=$(E).slider({change:function(F,J){scrollbarSlide(y,r,J)},slide:function(F,J){scrollbarSlide(y,r,J)}});k=o.find(".ui-slider-handle").mousedown(function(){o.width(k.width())}).html("<div class='ui-slider-handle_L'></div><div class='ui-slider-handle_M'></div><div class='ui-slider-handle_R'></div>").wrap('<div class="ui-handle-helper-parent"></div>').parent();$(window).mouseup(function(){o.width("100%")});
setTimeout(function(){scrollbarReize(r,y,E)},10);$(window).resize(function(){scrollbarReize(r,y,E);scrollbarReset($(r),$(y),$(E));scrollbarAlignContent($(r),$(y))});homepageUpdate();window.setInterval(function(){homepageUpdate(1)},18E4);window.setInterval(function(){pageFeed()},15E4)}else $.ajax({url:"/cgi-bin/ajax/crossdomain?http://www.gamesquat.com/en/include/_http/summaries02.xml",cache:false,async:true,dataType:"xml",success:function(F){pagePopulate(F)},error:function(){pagePopulate()}})}
function homepageUpdate(h){carouselUpdate("carousel2","chooser2",null,h);$("#carousel2").css("visibility","visible")}function homepageSelect(h,k){toggleStyles(h);k?$(h).find(".item_genre").css("visibility","visible"):$(h).find(".item_genre").css("visibility","hidden")}function scrollbarSlide(h,k,o){k.width()>h.width()?k.css("margin-left",Math.round(o.value/100*(h.width()-k.width()))+"px"):k.css("margin","0 auto 0 auto")}
function scrollbarReize(h,k,o){var r;r=o.parent().width();h=k.width()/h.width();h=r*h;if(h>r)h=r;o.find(".ui-slider-handle").css({width:h,"margin-left":-h/2});r=r-h;o.find(".ui-handle-helper-parent").width("").width(r>1?r:1)}function scrollbarReset(h,k,o){k=k.width()-h.width();h=h.css("margin-left")=="auto"?0:parseInt(h.css("margin-left"));o.slider("value",Math.round(h/k*100))}
function scrollbarAlignContent(h,k){if(k.width()<h.width()){var o=h.width()+parseInt(h.css("margin-left"));o=k.width()-o;o>0&&h.css("margin-left",parseInt(h.css("margin-left"))+o)}else h.css("margin","0 auto 0 auto")}
function carouselUpdate(h,k,o,r,y){var E,F,J,q=document.getElementById(h);E=envGet("203",h+"_type");J=envGet("203",h+"_genre");var z=_CJEfeed.getElementsByTagName("summary");if(o!=E){if(o)toggleStyle(q.id+"_"+E);else E?o=E:o="latest";toggleStyle(q.id+"_"+o,"_2");envSave("203",h+"_type",o);if(y==null)J?y=J:y=0;envSave("203",h+"_genre",y);for(E=0;E<z.length;E++){J=z[E].getAttribute("genre");if(J==y){F=document.getElementById(h+"_title");if(o=="chart"){F.innerHTML="Popular "+z[E].getAttribute("description");
scrollerPopulate(z[E].getElementsByTagName(o)[0],q,r,y==0?1:0,1)}else{F.innerHTML="Latest "+z[E].getAttribute("description");scrollerPopulate(z[E].getElementsByTagName(o)[0],q,r,y==0?1:0,0)}F=F.parentNode.parentNode;F.parentNode.onclick=new Function('defLink("/en/games/free-online-games/?genre='+y+';")');F=F.getElementsByTagName("DIV")[0];F.className=F.className.replace(/[0-6]/,y)}(F=document.getElementById(k+"_option"+J))&&chooserTabToggle(F,"_1");(F=document.getElementById(k+"_new"+J))&&chooserNewTotal(F,
z[E].getAttribute("new"));if(F=document.getElementById(k+"_genre"+J))F.innerHTML=(J==0?"All ":"")+z[E].getAttribute("description")+" ("+z[E].getAttribute("total")+")"}chooserTabToggle(document.getElementById(k+"_option"+y))}}function chooserTabToggle(h,k){toggleStyle(h,k);toggleStyle(h.parentNode,k)}function chooserNewTotal(h,k){if(k>0){h.innerHTML=k;h.style.visibility="visible"}else h.style.visibility="hidden"}
function scrollerPopulate(h,k,o,r,y){var E,F,J,q,z,G;r=0;o||scrollerClear(k,o);for(o=0;o<k.childNodes.length;o++){G=k.childNodes[o];if(G.nodeName!="#text")if(E=h.getElementsByTagName("component")[r]){F=E.getElementsByTagName("id")[0].firstChild.nodeValue;G.onmouseover=function(){homepageSelect(this,1)};G.onmouseout=function(){homepageSelect(this)};G.getElementsByTagName("DIV")[3].style.visibility="visible";$(G).unbind();q=G.childNodes[1]?G.childNodes[1]:G.childNodes[0];if(E.getElementsByTagName("new")[0].firstChild.nodeValue==
"true")q.getElementsByTagName("DIV")[1].style.visibility="visible";G.onclick=new Function('location.href="http://www.gamesquat.com/en/games/free-online-games/'+E.getElementsByTagName("alias")[0].firstChild.nodeValue+'/"');l=E.getElementsByTagName("title")[0].firstChild.nodeValue;if(l.length>30){for(J=l.length;l.charAt(J)!=" ";)J--;l=l.substring(0,J)+"..."}G.getElementsByTagName("H1")[0].innerHTML=l;z=G.getElementsByTagName("IMG")[0];z.src="http://static4.gamesquat.com/style/images/gui-20101116/mask.gif";z.id=
F;z.style.visibility="visible";z.style.zIndex=2;$(z).unbind().ready(function(){if($(z).css("width")=="100px"||z.width==100){$(G).mouseleave(function(){dropdownPopupCarousel(this,1)}).mouseenter(function(){dropdownPopupCarousel(this,1,1)});z.src="http://static5.gamesquat.com/style/images/games/screenshots/"+F+"/120x95/rounded/1.png"}else{$(G).mouseleave(function(){dropdownPopupCarousel(this)}).mouseenter(function(){dropdownPopupCarousel(this,null,1)});z.src="http://static5.gamesquat.com/style/images/games/screenshots/"+
F+"/100x75/rounded/1.png"}});J=q.getElementsByTagName("DIV")[0];J.className=J.className.replace(/[0-6]/,E.getElementsByTagName("genre_id")[0].firstChild.nodeValue);J.innerHTML=y?"&nbsp;<span>#</span>"+(r+1):" ";r++}else scrollerCellClear(G)}$("#"+k.id+"_slider .ui-slider-handle").css("visibility","visible");k.style.display="block"}
function scrollerClear(h,k){if(!k){h.style.display="none";$("#"+h.id+"_wrapper").attr({scrollLeft:0});$("#"+h.id+"_slider").slider("value",0)}for(var o=0;o<h.childNodes.length;o++){var r=h.childNodes[o];r.nodeName!="#text"&&scrollerCellClear(r)}}
function scrollerCellClear(h){$(h).unbind();h.onmouseover=null;h.onmouseout=null;h.getElementsByTagName("DIV")[3].style.visibility="hidden";h.getElementsByTagName("DIV")[1].style.visibility="hidden";h.getElementsByTagName("DIV")[2].style.visibility="hidden";h.getElementsByTagName("IMG")[0].style.visibility="hidden";h.getElementsByTagName("H1")[0].innerHTML="&nbsp;";h.onclick=null}
function envGet(h,k){var o,r;o=cookieGet(h);if(!o)return 0;o=o.split("~");for(r=0;r<o.length;r++)if(o[r].indexOf(k+"=")!=-1){if(o=o[r].split("=")[1])return o;return 0}return 0}function envSave(h,k,o){var r,y,E=new Date;o=k+"="+o+"~";r=cookieGet(h);E.setFullYear(E.getFullYear()+1);if(!r){cookieSet(h,o,E,"/",null,false);return 1}r=r.split("~");for(y=0;y<r.length;y++)r[y].indexOf(k+"=")!=-1&&r.splice(y,1);cookieSet(h,r.length>0?o+r.join("~"):o,E,"/",null,false);return 2}
function envCheck(h,k){var o,r=envGet(h,"list");if(r)for(o=0;o<k.length;o++){if(k[o].value==r){k[o].checked=true;break}}else k[0].checked=true}function suggestionBlur(h,k){if(h.value==""){h.value=k;changeStyle(h,"status_1")}else changeStyle(h,"status_3")}function suggestionPosition(){var h=$("#keywords").offset();h.top+=30;$("#dropdown8").css(h)}
function fieldInit(h){if(typeof h=="string")h=document.getElementById(h);if(h.className=="status_1"){h.value="";h.className="status_2"}else h.className=h.className=="status_3"?"status_2":"status_3"}
function dropdownsToggle(h,k,o){var r,y;for(r=7;r<=8;r++){y="dropdown"+r;if(y!=h){try{toggleStyle(y+"_trigger","_1")}catch(E){}if(y=document.getElementById(y)){y.style.display="none";if(y=document.getElementById("breadtrail_tab"+r)){if(y.childNodes[0].nodeName!="#text")y.childNodes[0].className=y.childNodes[0].className.replace(/_2/,"_1");else y.childNodes[1].className=y.childNodes[1].className.replace(/_2/,"_1");y.className=y.className.replace(/_2/,"_1")}}}}dropdownItemToggle();_CJEdropdown=null;
h&&dropdownToggle(h,k,o)}
function dropdownToggle(h,k,o){t=document.getElementById(h.replace(/dropdown/,"breadtrail_tab"));if(typeof h=="string")h=document.getElementById(h);if(toggleDiv(h,o,1)==1){_CJEdropdown=h;dropdownThumbs(h.getElementsByTagName("IMG"));try{toggleStyle(h.id+"_trigger","_3")}catch(r){}if(t){if(t.childNodes[0].nodeName!="#text")t.childNodes[0].className=t.childNodes[0].className.replace(/_1/,"_2");else t.childNodes[1].className=t.childNodes[1].className.replace(/_1/,"_2");t.className=t.className.replace(/_1/,
"_2")}}else{try{k?toggleStyle(h.id+"_trigger","_2"):toggleStyle(h.id+"_trigger","_1")}catch(y){}if(t){if(t.childNodes[0].nodeName!="#text")t.childNodes[0].className=t.childNodes[0].className.replace(/_2/,"_1");else t.childNodes[1].className=t.childNodes[1].className.replace(/_2/,"_1");t.className=t.className.replace(/_2/,"_1")}}}function dropdownThumbs(h){for(var k=0;k<h.length;k++)if(h[k].alt)h[k].src=h[k].alt}
function dropdownPopulateItems(h,k){var o,r;h.innerHTML="";for(r=0;r<5;r++){o=k.getElementsByTagName("component")[r];h.innerHTML+=dropdownItem(o.getElementsByTagName("title")[0].firstChild.nodeValue,"/en/games/free-online-games/"+o.getElementsByTagName("alias")[0].firstChild.nodeValue+"/","http://static3.gamesquat.com/style/images/games/screenshots/"+o.getElementsByTagName("id")[0].firstChild.nodeValue+"/45x35/rounded/1.png",o.getElementsByTagName("new")[0].firstChild.nodeValue)}}
function dropdownItem(h,k,o,r){var y,E=30;if(h.search("<span>")!=-1)E+=13;if(h.length>E){for(y=h.length;y>0;){if(y<=E&&h.charAt(y)==" ")break;y--}h=h.substring(0,y)+"..."}k=k?"<li onmouseover='dropdownItemToggle(null,this);' onmouseout='dropdownItemToggle();' class='dropdown_item dropdown_item_1' onclick='location.href=\""+k+"\"'>":"<li>";if(o)k+="<img class='dropdown_thumb' src='/style/images/gui-20101116/mask.gif' alt='"+o+"' border='0'/>";if(r=="true")k+="<div class='dropdown_new'></div>";return k+("<p>"+
h+"</p></li>")}function dropdownItemToggle(h,k){if(_CJEdropdown){for(var o,r=_CJEdropdown.getElementsByTagName("LI"),y=0;y<r.length;++y)if($(r[y]).hasClass("dropdown_item_2")){o=y;toggleStyle(r[y],"_1")}if(k)toggleStyle(k,"_2");else{if(h!=null){if(o!=null)if(h>0){if(h+o<r.length){toggleStyle(r[h+o],"_2");return 1}}else{o+h>=0?toggleStyle(r[o+h],"_2"):toggleStyle(r[r.length-1],"_2");return 1}toggleStyle(r[0],"_2")}return 1}}}
function dropdownItemLoad(){if(_CJEdropdown){l=_CJEdropdown.getElementsByTagName("LI");for(var h=0;h<l.length;++h)$(l[h]).hasClass("dropdown_item_2")&&l[h].onclick()}}
function dropdownPopup(h,k){if(_CJEpopup&&!envGet("203","disable_popup")&&h.getElementsByTagName("component")[0].getElementsByTagName("status")[0].firstChild.nodeValue=="successful"){var o,r=h.getElementsByTagName("description");for(i=0;i<r.length;i++)if(r[i].parentNode.nodeName=="details")o="<h1>"+r[i].firstChild.nodeValue+'</h1><h2 class="item_rating_'+Math.ceil(h.getElementsByTagName("total")[0].firstChild.nodeValue/h.getElementsByTagName("votes")[0].firstChild.nodeValue)+"\">Rating:</h2><p>(Hit 'ESC' to temporally disable this popup)</p>";
if(k)o="<h1>"+h.getElementsByTagName("title")[0].firstChild.nodeValue+"</h1>"+o;document.getElementById("dropdown7_description").innerHTML=o;$("#dropdown7").fadeIn(250)}}function dropdownPopupReset(){clearTimeout(_CJEpopup);_CJEpopup=null;try{$.abort()}catch(h){}}
function dropdownPopupRequest(h,k){_CJEpopup=window.setInterval(function(){$.ajax({url:"/cgi-bin/ajax/crossdomain?http://www.gamesquat.com/API/component/?component="+h+";",async:true,dataType:"xml",success:function(o){dropdownPopup(o,k)},error:function(){document.getElementById("dropdown7").style.display="none"}})},2E3)}
function dropdownPopupCarousel(h,k,o){if(!$.browser.msie||$.browser.version>=7){var r=h.getElementsByTagName("IMG")[0];h=h.getElementsByTagName("DIV")[2];dropdownPopupReset();if(o){k?$(r).animate({width:"120px",height:"95px",marginLeft:"-10px",top:"-8px"},100):$(r).animate({width:"100px",height:"75px",marginLeft:"-10px",top:"-8px"},100);h.style.visibility=="visible"&&$(h).animate({marginLeft:"-54px",top:"-1px"},100);dropdownPopupRequest(r.id)}else{k?$(r).animate({width:"100px",height:"75px",marginLeft:"0",
top:"0"},100):$(r).animate({width:"80px",height:"60px",marginLeft:"0",top:"0"},100);h.style.visibility=="visible"&&$(h).animate({marginLeft:"-45px",top:"6px"},100);document.getElementById("dropdown7").style.display="none"}}}function cookieSet(h,k,o,r,y,E){document.cookie=h+"="+escape(k)+(o?"; expires="+o.toGMTString():"")+(r?"; path="+r:"")+(y?"; domain="+y:"")+(E?"; secure":"");return document.cookie}
function cookieGet(h){h=h+"=";for(var k=h.length,o=document.cookie.length,r=0;r<o;){var y=r+k;if(document.cookie.substring(r,y)==h)return cookieData(y);r=document.cookie.indexOf(" ",r)+1;if(r==0)break}return null}function cookieExpire(h){var k=new Date((new Date).getTime()-36E5);cookieSet(h,"undef",k,"/",null,false)}function cookieData(h){var k=document.cookie.indexOf(";",h);if(k==-1)k=document.cookie.length;return unescape(document.cookie.substring(h,k))}
function cookieTest(){var h=cookieSet("enabled","true",null,"/",null,false),k=new Date((new Date).getTime()-36E5);cookieSet("enabled","true",k,"/",null,false);return h}function toggleDiv(h,k,o){if(typeof h=="string")h=document.getElementById(h);if(k==-1){o?$(h).fadeOut(250):$(h).slideUp("fast");return 2}else if(k||h.style.display=="none"){o?$(h).fadeIn(250):$(h).slideDown("fast");return 1}else{o?$(h).fadeOut(250):$(h).slideUp("fast");return 2}}
function toggleStyle(h,k){if(typeof h=="string")h=document.getElementById(h);h.className=k?h.className.replace(/_1|_2|_3/,k):h.className.search(/_1/)!=-1?h.className.replace(/_1/,"_2"):h.className.replace(/_2/,"_1")}function toggleStyles(h,k){if(typeof h=="string")h=document.getElementById(h);toggleStyle(h,k);for(var o=h.firstChild;o;){o.nodeName=="DIV"&&toggleStyle(o,k);o=o.nextSibling}}function changeStyle(h,k){if(typeof h=="string")h=document.getElementById(h);h.className=k}
function preLoad(){for(var h,k=typeof arguments[0]=="object"?arguments[0]:arguments,o=k.length-1;o>=0;o--){h=new Image;h.src=k[o]}};

