(function(){(function(m,I){function da(){if(!c.isReady){try{g.documentElement.doScroll("left")}catch(a){setTimeout(da,1);return}c.ready()}}function aa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function N(a,b,d,e,f,k){var l=a.length;if(typeof b==="object"){for(var r in b)N(a,r,b[r],e,f,d);return a}if(d!==I){e=!k&&e&&c.isFunction(d);for(r=0;r<l;r++)f(a[r],b,e?d.call(a[r],r,f(a[r],b)):d,
k);return a}return l?f(a[0],b):I}function w(){return(new Date).getTime()}function ea(){return false}function v(){return true}function p(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function x(a){var b,d=[],e=[],f=arguments,k,l,r,o,u,C;l=c.data(this,"events");if(!(a.liveFired===this||!l||!l.live||a.button&&a.type==="click")){a.liveFired=this;var O=l.live.slice(0);for(o=0;o<O.length;o++){l=O[o];l.origType.replace(oa,"")===a.type?e.push(l.selector):O.splice(o--,1)}k=c(a.target).closest(e,a.currentTarget);
u=0;for(C=k.length;u<C;u++)for(o=0;o<O.length;o++){l=O[o];if(k[u].selector===l.selector){r=k[u].elem;e=null;if(l.preType==="mouseenter"||l.preType==="mouseleave")e=c(a.relatedTarget).closest(l.selector)[0];if(!e||e!==r)d.push({elem:r,handleObj:l})}}u=0;for(C=d.length;u<C;u++){k=d[u];a.currentTarget=k.elem;a.data=k.handleObj.data;a.handleObj=k.handleObj;if(k.handleObj.origHandler.apply(k.elem,f)===false){b=false;break}}return b}}function y(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
"&")}function F(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var e=c.data(a[d++]),f=c.data(this,e);if(e=e&&e.events){delete f.handle;f.events={};for(var k in e)for(var l in e[k])c.event.add(this,k,e[k][l],e[k][l].data)}}})}function B(a,b,d){var e,f,k;b=b&&b[0]?b[0].ownerDocument||b[0]:g;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===g&&!Ea.test(a[0])&&(c.support.checkClone||!Fa.test(a[0]))){f=true;if(k=c.fragments[a[0]])if(k!==1)e=k}if(!e){e=b.createDocumentFragment();
c.clean(a,b,e,d)}if(f)c.fragments[a[0]]=k?e:1;return{fragment:e,cacheable:f}}function P(a,b){var d={};c.each(Ga.concat.apply([],Ga.slice(0,b)),function(){d[this]=a});return d}function T(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var c=function(a,b){return new c.fn.init(a,b)},t=m.jQuery,i=m.$,g=m.document,s,D=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,M=/^.[^:#\[\.,]*$/,J=/\S/,S=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,X=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,K=navigator.userAgent,
E=false,Z=[],R,$=Object.prototype.toString,ca=Object.prototype.hasOwnProperty,ba=Array.prototype.push,ia=Array.prototype.slice,pa=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,e;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=g;this[0]=g.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=D.exec(a))&&(d[1]||!b))if(d[1]){e=b?b.ownerDocument||b:g;if(a=X.exec(a))if(c.isPlainObject(b)){a=
[g.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[e.createElement(a[1])];else{a=B([d[1]],[e]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=g.getElementById(d[2])){if(b.id!==d[2])return s.find(a);this.length=1;this[0]=b}this.context=g;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=g;a=g.getElementsByTagName(a);return c.merge(this,a)}else return!b||b.jquery?(b||s).find(a):c(b).find(a);else if(c.isFunction(a))return s.ready(a);
if(a.selector!==I){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return ia.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var e=c();c.isArray(a)?ba.apply(e,a):c.merge(e,a);e.prevObject=this;e.context=this.context;if(b==="find")e.selector=this.selector+(this.selector?" ":"")+d;else if(b)e.selector=this.selector+
"."+b+"("+d+")";return e},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(g,c);else Z&&Z.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ia.apply(this,arguments),"slice",ia.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||
c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,e=false,f,k,l,r;if(typeof a==="boolean"){e=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b<d;b++)if((f=arguments[b])!=null)for(k in f){l=a[k];r=f[k];if(a!==r)if(e&&r&&(c.isPlainObject(r)||c.isArray(r))){l=l&&(c.isPlainObject(l)||c.isArray(l))?l:c.isArray(r)?[]:{};a[k]=c.extend(e,l,r)}else if(r!==I)a[k]=
r}return a};c.extend({noConflict:function(a){m.$=i;if(a)m.jQuery=t;return c},isReady:false,ready:function(){if(!c.isReady){if(!g.body)return setTimeout(c.ready,13);c.isReady=true;if(Z){for(var a,b=0;a=Z[b++];)a.call(g,c);Z=null}c.fn.triggerHandler&&c(g).triggerHandler("ready")}},bindReady:function(){if(!E){E=true;if(g.readyState==="complete")return c.ready();if(g.addEventListener){g.addEventListener("DOMContentLoaded",R,false);m.addEventListener("load",c.ready,false)}else if(g.attachEvent){g.attachEvent("onreadystatechange",
R);m.attachEvent("onload",c.ready);var a=false;try{a=m.frameElement==null}catch(b){}g.documentElement.doScroll&&a&&da()}}},isFunction:function(a){return $.call(a)==="[object Function]"},isArray:function(a){return $.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||$.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!ca.call(a,"constructor")&&!ca.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===I||ca.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;
return true},error:function(a){throw a;},parseJSON:function(a){if(typeof a!=="string"||!a)return null;a=c.trim(a);if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return m.JSON&&m.JSON.parse?m.JSON.parse(a):(new Function("return "+a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&J.test(a)){var b=g.getElementsByTagName("head")[0]||
g.documentElement,d=g.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(g.createTextNode(a));else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,b,d){var e,f=0,k=a.length,l=k===I||c.isFunction(a);if(d)if(l)for(e in a){if(b.apply(a[e],d)===false)break}else for(;f<k;){if(b.apply(a[f++],d)===false)break}else if(l)for(e in a){if(b.call(a[e],e,a[e])===false)break}else for(d=
a[0];f<k&&b.call(d,f,d)!==false;d=a[++f]);return a},trim:function(a){return(a||"").replace(S,"")},makeArray:function(a,b){b=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?ba.call(b,a):c.merge(b,a);return b},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,e=b.length;d<e;d++)if(b[d]===a)return d;return-1},merge:function(a,b){var d=a.length,e=0;if(typeof b.length==="number")for(var f=b.length;e<f;e++)a[d++]=b[e];else for(;b[e]!==
I;)a[d++]=b[e++];a.length=d;return a},grep:function(a,b,d){for(var e=[],f=0,k=a.length;f<k;f++)!d!==!b(a[f],f)&&e.push(a[f]);return e},map:function(a,b,d){for(var e=[],f,k=0,l=a.length;k<l;k++){f=b(a[k],k,d);if(f!=null)e[e.length]=f}return e.concat.apply([],e)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=I}else if(b&&!c.isFunction(b)){d=b;b=I}if(!b&&a)b=function(){return a.apply(d||this,arguments)};if(a)b.guid=a.guid=a.guid||b.guid||c.guid++;return b},
uaMatch:function(a){a=a.toLowerCase();a=/(webkit)[ \/]([\w.]+)/.exec(a)||/(opera)(?:.*version)?[ \/]([\w.]+)/.exec(a)||/(msie) ([\w.]+)/.exec(a)||!/compatible/.test(a)&&/(mozilla)(?:.*? rv:([\w.]+))?/.exec(a)||[];return{browser:a[1]||"",version:a[2]||"0"}},browser:{}});K=c.uaMatch(K);if(K.browser){c.browser[K.browser]=true;c.browser.version=K.version}if(c.browser.webkit)c.browser.safari=true;if(pa)c.inArray=function(a,b){return pa.call(b,a)};s=c(g);if(g.addEventListener)R=function(){g.removeEventListener("DOMContentLoaded",
R,false);c.ready()};else if(g.attachEvent)R=function(){if(g.readyState==="complete"){g.detachEvent("onreadystatechange",R);c.ready()}};(function(){c.support={};var a=g.documentElement,b=g.createElement("script"),d=g.createElement("div"),e="script"+w();d.style.display="none";d.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var f=d.getElementsByTagName("*"),k=d.getElementsByTagName("a")[0];if(!(!f||!f.length||!k)){c.support=
{leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(k.getAttribute("style")),hrefNormalized:k.getAttribute("href")==="/a",opacity:/^0.55$/.test(k.style.opacity),cssFloat:!!k.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:g.createElement("select").appendChild(g.createElement("option")).selected,parentNode:d.removeChild(d.appendChild(g.createElement("div"))).parentNode===
null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(g.createTextNode("window."+e+"=1;"))}catch(l){}a.insertBefore(b,a.firstChild);if(m[e]){c.support.scriptEval=true;delete m[e]}try{delete b.test}catch(r){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function o(){c.support.noCloneEvent=false;d.detachEvent("onclick",o)});d.cloneNode(true).fireEvent("onclick")}d=g.createElement("div");
d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=g.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var o=g.createElement("div");o.style.width=o.style.paddingLeft="1px";g.body.appendChild(o);c.boxModel=c.support.boxModel=o.offsetWidth===2;g.body.removeChild(o).style.display="none"});a=function(o){var u=g.createElement("div");o="on"+o;var C=o in u;if(!C){u.setAttribute(o,"return;");C=typeof u[o]===
"function"}return C};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=f=k=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var ja="jQuery"+w(),Ya=0,Ha={};c.extend({cache:{},expando:ja,noData:{embed:true,object:true,applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=
a==m?Ha:a;var e=a[ja],f=c.cache;if(!e&&typeof b==="string"&&d===I)return null;e||(e=++Ya);if(typeof b==="object"){a[ja]=e;f[e]=c.extend(true,{},b)}else if(!f[e]){a[ja]=e;f[e]={}}a=f[e];if(d!==I)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==m?Ha:a;var d=a[ja],e=c.cache,f=e[d];if(b){if(f){delete f[b];c.isEmptyObject(f)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];else a.removeAttribute&&a.removeAttribute(c.expando);
delete e[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===I){var e=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(e===I&&this.length)e=c.data(this[0],a);return e===I&&d[1]?this.data(d[0]):e}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,
a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var e=c.data(a,b);if(!d)return e||[];if(!e||c.isArray(d))e=c.data(a,b,c.makeArray(d));else e.push(d);return e}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),e=d.shift();if(e==="inprogress")e=d.shift();if(e){b==="fx"&&d.unshift("inprogress");e.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===I)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,
a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Ia=/[\n\t]/g,ua=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i,cb=/^(a|area)$/i,Ja=/radio|checkbox/;c.fn.extend({attr:function(a,
b){return N(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(u){var C=c(this);C.addClass(a.call(this,u,C.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ua),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1)if(f.className){for(var k=" "+f.className+" ",l=f.className,r=0,o=b.length;r<o;r++)if(k.indexOf(" "+b[r]+" ")<
0)l+=" "+b[r];f.className=c.trim(l)}else f.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(o){var u=c(this);u.removeClass(a.call(this,o,u.attr("class")))});if(a&&typeof a==="string"||a===I)for(var b=(a||"").split(ua),d=0,e=this.length;d<e;d++){var f=this[d];if(f.nodeType===1&&f.className)if(a){for(var k=(" "+f.className+" ").replace(Ia," "),l=0,r=b.length;l<r;l++)k=k.replace(" "+b[l]+" "," ");f.className=c.trim(k)}else f.className=""}return this},toggleClass:function(a,
b){var d=typeof a,e=typeof b==="boolean";if(c.isFunction(a))return this.each(function(f){var k=c(this);k.toggleClass(a.call(this,f,k.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var f,k=0,l=c(this),r=b,o=a.split(ua);f=o[k++];){r=e?r:!l.hasClass(f);l[r?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&c.data(this,"__className__",this.className);this.className=this.className||a===false?"":c.data(this,"__className__")||""}})},hasClass:function(a){a=
" "+a+" ";for(var b=0,d=this.length;b<d;b++)if((" "+this[b].className+" ").replace(Ia," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===I){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,e=[],f=b.options;b=b.type==="select-one";if(d<0)return null;var k=b?d:0;for(d=b?d+1:f.length;k<d;k++){var l=f[k];if(l.selected){a=c(l).val();if(b)return a;e.push(a)}}return e}if(Ja.test(b.type)&&
!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace(Za,"")}return I}var r=c.isFunction(a);return this.each(function(o){var u=c(this),C=a;if(this.nodeType===1){if(r)C=a.call(this,o,u.val());if(typeof C==="number")C+="";if(c.isArray(C)&&Ja.test(this.type))this.checked=c.inArray(u.val(),C)>=0;else if(c.nodeName(this,"select")){var O=c.makeArray(C);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),O)>=0});if(!O.length)this.selectedIndex=
-1}else this.value=C}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,e){if(!a||a.nodeType===3||a.nodeType===8)return I;if(e&&b in c.attrFn)return c(a)[b](d);e=a.nodeType!==1||!c.isXMLDoc(a);var f=d!==I;b=e&&c.props[b]||b;if(a.nodeType===1){var k=$a.test(b);if(b in a&&e&&!k){if(f){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed");a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;
if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:I;return a[b]}if(!c.support.style&&e&&b==="style"){if(f)a.style.cssText=""+d;return a.style.cssText}f&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&e&&k?a.getAttribute(b,2):a.getAttribute(b);return a===null?I:a}return c.style(a,b,d)}});var oa=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};c.event={add:function(a,b,d,e){if(!(a.nodeType===
3||a.nodeType===8)){if(a.setInterval&&a!==m&&!a.frameElement)a=m;var f,k;if(d.handler){f=d;d=f.handler}if(!d.guid)d.guid=c.guid++;if(k=c.data(a)){var l=k.events=k.events||{},r=k.handle;if(!r)k.handle=r=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(r.elem,arguments):I};r.elem=a;b=b.split(" ");for(var o,u=0,C;o=b[u++];){k=f?c.extend({},f):{handler:d,data:e};if(o.indexOf(".")>-1){C=o.split(".");o=C.shift();k.namespace=C.slice(0).sort().join(".")}else{C=[];k.namespace=
""}k.type=o;k.guid=d.guid;var O=l[o],V=c.event.special[o]||{};if(!O){O=l[o]=[];if(!V.setup||V.setup.call(a,e,C,r)===false)if(a.addEventListener)a.addEventListener(o,r,false);else a.attachEvent&&a.attachEvent("on"+o,r)}if(V.add){V.add.call(a,k);if(!k.handler.guid)k.handler.guid=d.guid}O.push(k);c.event.global[o]=true}a=null}}},global:{},remove:function(a,b,d,e){if(!(a.nodeType===3||a.nodeType===8)){var f,k=0,l,r,o,u,C,O,V=c.data(a),Y=V&&V.events;if(V&&Y){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b===
"string"&&b.charAt(0)==="."){b=b||"";for(f in Y)c.event.remove(a,f+b)}else{for(b=b.split(" ");f=b[k++];){u=f;l=f.indexOf(".")<0;r=[];if(!l){r=f.split(".");f=r.shift();o=RegExp("(^|\\.)"+c.map(r.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(C=Y[f])if(d){u=c.event.special[f]||{};for(W=e||0;W<C.length;W++){O=C[W];if(d.guid===O.guid){if(l||o.test(O.namespace)){e==null&&C.splice(W--,1);u.remove&&u.remove.call(a,O)}if(e!=null)break}}if(C.length===0||e!=null&&C.length===1){if(!u.teardown||u.teardown.call(a,
r)===false)Ka(a,f,V.handle);delete Y[f]}}else for(var W=0;W<C.length;W++){O=C[W];if(l||o.test(O.namespace)){c.event.remove(a,u,O.handler,W);C.splice(W--,1)}}}if(c.isEmptyObject(Y)){if(b=V.handle)b.elem=null;delete V.events;delete V.handle;c.isEmptyObject(V)&&c.removeData(a)}}}}},trigger:function(a,b,d,e){var f=a.type||a;if(!e){a=typeof a==="object"?a[ja]?a:c.extend(c.Event(f),a):c.Event(f);if(f.indexOf("!")>=0){a.type=f=f.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[f]&&
c.each(c.cache,function(){this.events&&this.events[f]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return I;a.result=I;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(e=c.data(d,"handle"))&&e.apply(d,b);e=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+f]&&d["on"+f].apply(d,b)===false)a.result=false}catch(k){}if(!a.isPropagationStopped()&&e)c.event.trigger(a,b,e,true);else if(!a.isDefaultPrevented()){e=
a.target;var l,r=c.nodeName(e,"a")&&f==="click",o=c.event.special[f]||{};if((!o._default||o._default.call(d,a)===false)&&!r&&!(e&&e.nodeName&&c.noData[e.nodeName.toLowerCase()])){try{if(e[f]){if(l=e["on"+f])e["on"+f]=null;c.event.triggered=true;e[f]()}}catch(u){}if(l)e["on"+f]=l;c.event.triggered=false}}},handle:function(a){var b,d,e,f;a=arguments[0]=c.event.fix(a||m.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){d=a.type.split(".");a.type=d.shift();e=RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+
"(\\.|$)")}f=c.data(this,"events");d=f[a.type];if(f&&d){d=d.slice(0);f=0;for(var k=d.length;f<k;f++){var l=d[f];if(b||e.test(l.namespace)){a.handler=l.handler;a.data=l.data;a.handleObj=l;l=l.handler.apply(this,arguments);if(l!==I){a.result=l;if(l===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}}return a.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(a){if(a[ja])return a;var b=a;a=c.Event(b);for(var d=this.props.length,e;d;){e=this.props[--d];a[e]=b[e]}if(!a.target)a.target=a.srcElement||g;if(a.target.nodeType===3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=g.documentElement;d=g.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b&&b.clientLeft||d&&d.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
d&&d.scrollTop||0)-(b&&b.clientTop||d&&d.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button!==I)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},guid:1E8,proxy:c.proxy,special:{ready:{setup:c.bindReady,teardown:c.noop},live:{add:function(a){c.event.add(this,a.origType,c.extend({},a,{handler:x}))},remove:function(a){var b=true,d=a.origType.replace(oa,"");c.each(c.data(this,
"events").live||[],function(){if(d===this.origType.replace(oa,""))return b=false});b&&c.event.remove(this,a.origType,x)}},beforeunload:{setup:function(a,b,d){if(this.setInterval)this.onbeforeunload=d;return false},teardown:function(a,b){if(this.onbeforeunload===b)this.onbeforeunload=null}}}};var Ka=g.removeEventListener?function(a,b,d){a.removeEventListener(b,d,false)}:function(a,b,d){a.detachEvent("on"+b,d)};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=
a;this.type=a.type}else this.type=a;this.timeStamp=w();this[ja]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=v;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=v;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=v;this.stopPropagation()},isDefaultPrevented:ea,isPropagationStopped:ea,
isImmediatePropagationStopped:ea};var La=function(a){var b=a.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){a.type=a.data;c.event.handle.apply(this,arguments)}}catch(d){}},Ma=function(a){a.type=a.data;c.event.handle.apply(this,arguments)};c.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){c.event.special[a]={setup:function(d){c.event.add(this,b,d&&d.selector?Ma:La,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ma:La)}}});if(!c.support.submitBubbles)c.event.special.submit=
{setup:function(){if(this.nodeName.toLowerCase()!=="form"){c.event.add(this,"click.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="submit"||d==="image")&&c(b).closest("form").length)return p("submit",this,arguments)});c.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,d=b.type;if((d==="text"||d==="password")&&c(b).closest("form").length&&a.keyCode===13)return p("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var va=
/textarea|input|select/i,wa,Na=function(a){var b=a.type,d=a.value;if(b==="radio"||b==="checkbox")d=a.checked;else if(b==="select-multiple")d=a.selectedIndex>-1?c.map(a.options,function(e){return e.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},xa=function(a,b){var d=a.target,e,f;if(!(!va.test(d.nodeName)||d.readOnly)){e=c.data(d,"_change_data");f=Na(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",f);if(!(e===I||f===e))if(e!=null||
f){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:xa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return xa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return xa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",Na(a))}},setup:function(){if(this.type===
"file")return false;for(var a in wa)c.event.add(this,a+".specialChange",wa[a]);return va.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return va.test(this.nodeName)}};wa=c.event.special.change.filters}g.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(e){e=c.event.fix(e);e.type=b;return c.event.handle.call(this,e)}c.event.special[b]={setup:function(){this.addEventListener(a,d,true)},teardown:function(){this.removeEventListener(a,
d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,e,f){if(typeof d==="object"){for(var k in d)this[b](k,e,d[k],f);return this}if(c.isFunction(e)){f=e;e=I}var l=b==="one"?c.proxy(f,function(o){c(this).unbind(o,l);return f.apply(this,arguments)}):f;if(d==="unload"&&b!=="one")this.one(d,e,f);else{k=0;for(var r=this.length;k<r;k++)c.event.add(this[k],d,l,e)}return this}});c.fn.extend({unbind:function(a,b){if(typeof a==="object"&&!a.preventDefault)for(var d in a)this.unbind(d,a[d]);else{d=
0;for(var e=this.length;d<e;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,e){return this.live(b,d,e,a)},undelegate:function(a,b,d){return arguments.length===0?this.unbind("live"):this.die(b,null,d,a)},trigger:function(a,b){return this.each(function(){c.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.proxy(a,
b[d++]);return this.click(c.proxy(a,function(e){var f=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,f+1);e.preventDefault();return b[f].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var Oa={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,e,f,k){var l,r=0,o,u,C=k||this.selector,O=k?this:c(this.context);if(c.isFunction(e)){f=e;e=I}for(d=
(d||"").split(" ");(l=d[r++])!=null;){k=oa.exec(l);o="";if(k){o=k[0];l=l.replace(oa,"")}if(l==="hover")d.push("mouseenter"+o,"mouseleave"+o);else{u=l;if(l==="focus"||l==="blur"){d.push(Oa[l]+o);l+=o}else l=(Oa[l]||l)+o;b==="live"?O.each(function(){c.event.add(this,y(l,C),{data:e,selector:C,handler:f,origType:l,origHandler:f,preType:u})}):O.unbind(y(l,C),f)}}return this}});c.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(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)};if(c.attrFn)c.attrFn[b]=true});m.attachEvent&&!m.addEventListener&&m.attachEvent("onunload",function(){for(var a in c.cache)if(c.cache[a].handle)try{c.event.remove(c.cache[a].handle.elem)}catch(b){}});(function(){function a(h){for(var j="",n,q=0;h[q];q++){n=h[q];if(n.nodeType===3||n.nodeType===4)j+=n.nodeValue;else if(n.nodeType!==8)j+=a(n.childNodes)}return j}function b(h,j,n,q,A,z){A=0;for(var L=q.length;A<L;A++){var H=q[A];
if(H){H=H[h];for(var U=false;H;){if(H.sizcache===n){U=q[H.sizset];break}if(H.nodeType===1&&!z){H.sizcache=n;H.sizset=A}if(H.nodeName.toLowerCase()===j){U=H;break}H=H[h]}q[A]=U}}}function d(h,j,n,q,A,z){A=0;for(var L=q.length;A<L;A++){var H=q[A];if(H){H=H[h];for(var U=false;H;){if(H.sizcache===n){U=q[H.sizset];break}if(H.nodeType===1){if(!z){H.sizcache=n;H.sizset=A}if(typeof j!=="string"){if(H===j){U=true;break}}else if(o.filter(j,[H]).length>0){U=H;break}}H=H[h]}q[A]=U}}}var e=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
f=0,k=Object.prototype.toString,l=false,r=true;[0,0].sort(function(){r=false;return 0});var o=function(h,j,n,q){n=n||[];var A=j=j||g;if(j.nodeType!==1&&j.nodeType!==9)return[];if(!h||typeof h!=="string")return n;for(var z=[],L,H,U,qa,ka=true,ma=Q(j),la=h;(e.exec(""),L=e.exec(la))!==null;){la=L[3];z.push(L[1]);if(L[2]){qa=L[3];break}}if(z.length>1&&C.exec(h))if(z.length===2&&u.relative[z[0]])H=ya(z[0]+z[1],j);else for(H=u.relative[z[0]]?[j]:o(z.shift(),j);z.length;){h=z.shift();if(u.relative[h])h+=
z.shift();H=ya(h,H)}else{if(!q&&z.length>1&&j.nodeType===9&&!ma&&u.match.ID.test(z[0])&&!u.match.ID.test(z[z.length-1])){L=o.find(z.shift(),j,ma);j=L.expr?o.filter(L.expr,L.set)[0]:L.set[0]}if(j){L=q?{expr:z.pop(),set:V(q)}:o.find(z.pop(),z.length===1&&(z[0]==="~"||z[0]==="+")&&j.parentNode?j.parentNode:j,ma);H=L.expr?o.filter(L.expr,L.set):L.set;if(z.length>0)U=V(H);else ka=false;for(;z.length;){var fa=z.pop();L=fa;if(u.relative[fa])L=z.pop();else fa="";if(L==null)L=j;u.relative[fa](U,L,ma)}}else U=
[]}U||(U=H);U||o.error(fa||h);if(k.call(U)==="[object Array]")if(ka)if(j&&j.nodeType===1)for(h=0;U[h]!=null;h++){if(U[h]&&(U[h]===true||U[h].nodeType===1&&ga(j,U[h])))n.push(H[h])}else for(h=0;U[h]!=null;h++)U[h]&&U[h].nodeType===1&&n.push(H[h]);else n.push.apply(n,U);else V(U,n);if(qa){o(qa,A,n,q);o.uniqueSort(n)}return n};o.uniqueSort=function(h){if(W){l=r;h.sort(W);if(l)for(var j=1;j<h.length;j++)h[j]===h[j-1]&&h.splice(j--,1)}return h};o.matches=function(h,j){return o(h,null,null,j)};o.find=function(h,
j,n){var q,A;if(!h)return[];for(var z=0,L=u.order.length;z<L;z++){var H=u.order[z];if(A=u.leftMatch[H].exec(h)){var U=A[1];A.splice(1,1);if(U.substr(U.length-1)!=="\\"){A[1]=(A[1]||"").replace(/\\/g,"");q=u.find[H](A,j,n);if(q!=null){h=h.replace(u.match[H],"");break}}}}q||(q=j.getElementsByTagName("*"));return{set:q,expr:h}};o.filter=function(h,j,n,q){for(var A=h,z=[],L=j,H,U,qa=j&&j[0]&&Q(j[0]);h&&j.length;){for(var ka in u.filter)if((H=u.leftMatch[ka].exec(h))!=null&&H[2]){var ma=u.filter[ka],la,
fa;fa=H[1];U=false;H.splice(1,1);if(fa.substr(fa.length-1)!=="\\"){if(L===z)z=[];if(u.preFilter[ka])if(H=u.preFilter[ka](H,L,n,z,q,qa)){if(H===true)continue}else U=la=true;if(H)for(var ra=0;(fa=L[ra])!=null;ra++)if(fa){la=ma(fa,H,ra,L);var Pa=q^!!la;if(n&&la!=null)if(Pa)U=true;else L[ra]=false;else if(Pa){z.push(fa);U=true}}if(la!==I){n||(L=z);h=h.replace(u.match[ka],"");if(!U)return[];break}}}if(h===A)if(U==null)o.error(h);else break;A=h}return L};o.error=function(h){throw"Syntax error, unrecognized expression: "+
h;};var u=o.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(h){return h.getAttribute("href")}},relative:{"+":function(h,j){var n=typeof j==="string",q=n&&!/\W/.test(j);n=n&&!q;if(q)j=j.toLowerCase();q=0;for(var A=h.length,z;q<A;q++)if(z=h[q]){for(;(z=z.previousSibling)&&z.nodeType!==1;);h[q]=n||z&&z.nodeName.toLowerCase()===j?z||false:z===j}n&&o.filter(j,h,true)},">":function(h,j){var n=typeof j==="string";if(n&&!/\W/.test(j)){j=j.toLowerCase();for(var q=0,A=h.length;q<A;q++){var z=
h[q];if(z){n=z.parentNode;h[q]=n.nodeName.toLowerCase()===j?n:false}}}else{q=0;for(A=h.length;q<A;q++)if(z=h[q])h[q]=n?z.parentNode:z.parentNode===j;n&&o.filter(j,h,true)}},"":function(h,j,n){var q=f++,A=d;if(typeof j==="string"&&!/\W/.test(j)){var z=j=j.toLowerCase();A=b}A("parentNode",j,q,h,z,n)},"~":function(h,j,n){var q=f++,A=d;if(typeof j==="string"&&!/\W/.test(j)){var z=j=j.toLowerCase();A=b}A("previousSibling",j,q,h,z,n)}},find:{ID:function(h,j,n){if(typeof j.getElementById!=="undefined"&&
!n)return(h=j.getElementById(h[1]))?[h]:[]},NAME:function(h,j){if(typeof j.getElementsByName!=="undefined"){var n=[];j=j.getElementsByName(h[1]);for(var q=0,A=j.length;q<A;q++)j[q].getAttribute("name")===h[1]&&n.push(j[q]);return n.length===0?null:n}},TAG:function(h,j){return j.getElementsByTagName(h[1])}},preFilter:{CLASS:function(h,j,n,q,A,z){h=" "+h[1].replace(/\\/g,"")+" ";if(z)return h;z=0;for(var L;(L=j[z])!=null;z++)if(L)if(A^(L.className&&(" "+L.className+" ").replace(/[\t\n]/g," ").indexOf(h)>=
0))n||q.push(L);else if(n)j[z]=false;return false},ID:function(h){return h[1].replace(/\\/g,"")},TAG:function(h){return h[1].toLowerCase()},CHILD:function(h){if(h[1]==="nth"){var j=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(h[2]==="even"&&"2n"||h[2]==="odd"&&"2n+1"||!/\D/.test(h[2])&&"0n+"+h[2]||h[2]);h[2]=j[1]+(j[2]||1)-0;h[3]=j[3]-0}h[0]=f++;return h},ATTR:function(h,j,n,q,A,z){j=h[1].replace(/\\/g,"");if(!z&&u.attrMap[j])h[1]=u.attrMap[j];if(h[2]==="~=")h[4]=" "+h[4]+" ";return h},PSEUDO:function(h,j,n,q,
A){if(h[1]==="not")if((e.exec(h[3])||"").length>1||/^\w/.test(h[3]))h[3]=o(h[3],null,null,j);else{h=o.filter(h[3],j,n,true^A);n||q.push.apply(q,h);return false}else if(u.match.POS.test(h[0])||u.match.CHILD.test(h[0]))return true;return h},POS:function(h){h.unshift(true);return h}},filters:{enabled:function(h){return h.disabled===false&&h.type!=="hidden"},disabled:function(h){return h.disabled===true},checked:function(h){return h.checked===true},selected:function(h){return h.selected===true},parent:function(h){return!!h.firstChild},
empty:function(h){return!h.firstChild},has:function(h,j,n){return!!o(n[3],h).length},header:function(h){return/h\d/i.test(h.nodeName)},text:function(h){return"text"===h.type},radio:function(h){return"radio"===h.type},checkbox:function(h){return"checkbox"===h.type},file:function(h){return"file"===h.type},password:function(h){return"password"===h.type},submit:function(h){return"submit"===h.type},image:function(h){return"image"===h.type},reset:function(h){return"reset"===h.type},button:function(h){return"button"===
h.type||h.nodeName.toLowerCase()==="button"},input:function(h){return/input|select|textarea|button/i.test(h.nodeName)}},setFilters:{first:function(h,j){return j===0},last:function(h,j,n,q){return j===q.length-1},even:function(h,j){return j%2===0},odd:function(h,j){return j%2===1},lt:function(h,j,n){return j<n[3]-0},gt:function(h,j,n){return j>n[3]-0},nth:function(h,j,n){return n[3]-0===j},eq:function(h,j,n){return n[3]-0===j}},filter:{PSEUDO:function(h,j,n,q){var A=j[1],z=u.filters[A];if(z)return z(h,
n,j,q);else if(A==="contains")return(h.textContent||h.innerText||a([h])||"").indexOf(j[3])>=0;else if(A==="not"){j=j[3];n=0;for(q=j.length;n<q;n++)if(j[n]===h)return false;return true}else o.error("Syntax error, unrecognized expression: "+A)},CHILD:function(h,j){var n=j[1],q=h;switch(n){case "only":case "first":for(;q=q.previousSibling;)if(q.nodeType===1)return false;if(n==="first")return true;q=h;case "last":for(;q=q.nextSibling;)if(q.nodeType===1)return false;return true;case "nth":n=j[2];var A=
j[3];if(n===1&&A===0)return true;j=j[0];var z=h.parentNode;if(z&&(z.sizcache!==j||!h.nodeIndex)){var L=0;for(q=z.firstChild;q;q=q.nextSibling)if(q.nodeType===1)q.nodeIndex=++L;z.sizcache=j}h=h.nodeIndex-A;return n===0?h===0:h%n===0&&h/n>=0}},ID:function(h,j){return h.nodeType===1&&h.getAttribute("id")===j},TAG:function(h,j){return j==="*"&&h.nodeType===1||h.nodeName.toLowerCase()===j},CLASS:function(h,j){return(" "+(h.className||h.getAttribute("class"))+" ").indexOf(j)>-1},ATTR:function(h,j){var n=
j[1];h=u.attrHandle[n]?u.attrHandle[n](h):h[n]!=null?h[n]:h.getAttribute(n);n=h+"";var q=j[2];j=j[4];return h==null?q==="!=":q==="="?n===j:q==="*="?n.indexOf(j)>=0:q==="~="?(" "+n+" ").indexOf(j)>=0:!j?n&&h!==false:q==="!="?n!==j:q==="^="?n.indexOf(j)===0:q==="$="?n.substr(n.length-j.length)===j:q==="|="?n===j||n.substr(0,j.length+1)===j+"-":false},POS:function(h,j,n,q){var A=u.setFilters[j[2]];if(A)return A(h,n,j,q)}}},C=u.match.POS;for(var O in u.match){u.match[O]=RegExp(u.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source);
u.leftMatch[O]=RegExp(/(^(?:.|\r|\n)*?)/.source+u.match[O].source.replace(/\\(\d+)/g,function(h,j){return"\\"+(j-0+1)}))}var V=function(h,j){h=Array.prototype.slice.call(h,0);if(j){j.push.apply(j,h);return j}return h};try{Array.prototype.slice.call(g.documentElement.childNodes,0)}catch(Y){V=function(h,j){j=j||[];if(k.call(h)==="[object Array]")Array.prototype.push.apply(j,h);else if(typeof h.length==="number")for(var n=0,q=h.length;n<q;n++)j.push(h[n]);else for(n=0;h[n];n++)j.push(h[n]);return j}}var W;
if(g.documentElement.compareDocumentPosition)W=function(h,j){if(!h.compareDocumentPosition||!j.compareDocumentPosition){if(h==j)l=true;return h.compareDocumentPosition?-1:1}h=h.compareDocumentPosition(j)&4?-1:h===j?0:1;if(h===0)l=true;return h};else if("sourceIndex"in g.documentElement)W=function(h,j){if(!h.sourceIndex||!j.sourceIndex){if(h==j)l=true;return h.sourceIndex?-1:1}h=h.sourceIndex-j.sourceIndex;if(h===0)l=true;return h};else if(g.createRange)W=function(h,j){if(!h.ownerDocument||!j.ownerDocument){if(h==
j)l=true;return h.ownerDocument?-1:1}var n=h.ownerDocument.createRange(),q=j.ownerDocument.createRange();n.setStart(h,0);n.setEnd(h,0);q.setStart(j,0);q.setEnd(j,0);h=n.compareBoundaryPoints(Range.START_TO_END,q);if(h===0)l=true;return h};(function(){var h=g.createElement("div"),j="script"+(new Date).getTime();h.innerHTML="<a name='"+j+"'/>";var n=g.documentElement;n.insertBefore(h,n.firstChild);if(g.getElementById(j)){u.find.ID=function(q,A,z){if(typeof A.getElementById!=="undefined"&&!z)return(A=
A.getElementById(q[1]))?A.id===q[1]||typeof A.getAttributeNode!=="undefined"&&A.getAttributeNode("id").nodeValue===q[1]?[A]:I:[]};u.filter.ID=function(q,A){var z=typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id");return q.nodeType===1&&z&&z.nodeValue===A}}n.removeChild(h);n=h=null})();(function(){var h=g.createElement("div");h.appendChild(g.createComment(""));if(h.getElementsByTagName("*").length>0)u.find.TAG=function(j,n){n=n.getElementsByTagName(j[1]);if(j[1]==="*"){j=[];for(var q=
0;n[q];q++)n[q].nodeType===1&&j.push(n[q]);n=j}return n};h.innerHTML="<a href='#'></a>";if(h.firstChild&&typeof h.firstChild.getAttribute!=="undefined"&&h.firstChild.getAttribute("href")!=="#")u.attrHandle.href=function(j){return j.getAttribute("href",2)};h=null})();g.querySelectorAll&&function(){var h=o,j=g.createElement("div");j.innerHTML="<p class='TEST'></p>";if(!(j.querySelectorAll&&j.querySelectorAll(".TEST").length===0)){o=function(q,A,z,L){A=A||g;if(!L&&A.nodeType===9&&!Q(A))try{return V(A.querySelectorAll(q),
z)}catch(H){}return h(q,A,z,L)};for(var n in h)o[n]=h[n];j=null}}();(function(){var h=g.createElement("div");h.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!h.getElementsByClassName||h.getElementsByClassName("e").length===0)){h.lastChild.className="e";if(h.getElementsByClassName("e").length!==1){u.order.splice(1,0,"CLASS");u.find.CLASS=function(j,n,q){if(typeof n.getElementsByClassName!=="undefined"&&!q)return n.getElementsByClassName(j[1])};h=null}}})();var ga=g.compareDocumentPosition?
function(h,j){return!!(h.compareDocumentPosition(j)&16)}:function(h,j){return h!==j&&(h.contains?h.contains(j):true)},Q=function(h){return(h=(h?h.ownerDocument||h:0).documentElement)?h.nodeName!=="HTML":false},ya=function(h,j){var n=[],q="",A;for(j=j.nodeType?[j]:j;A=u.match.PSEUDO.exec(h);){q+=A[0];h=h.replace(u.match.PSEUDO,"")}h=u.relative[h]?h+"*":h;A=0;for(var z=j.length;A<z;A++)o(h,j[A],n);return o.filter(q,n)};c.find=o;c.expr=o.selectors;c.expr[":"]=c.expr.filters;c.unique=o.uniqueSort;c.text=
a;c.isXMLDoc=Q;c.contains=ga})();var eb=/Until$/,fb=/^(?:parents|prevUntil|prevAll)/,gb=/,/;ia=Array.prototype.slice;var Qa=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(f,k){return!!b.call(f,k,f)===d});else if(b.nodeType)return c.grep(a,function(f){return f===b===d});else if(typeof b==="string"){var e=c.grep(a,function(f){return f.nodeType===1});if(M.test(b))return c.filter(b,e,!d);else b=c.filter(b,e)}return c.grep(a,function(f){return c.inArray(f,b)>=0===d})};c.fn.extend({find:function(a){for(var b=
this.pushStack("","find",a),d=0,e=0,f=this.length;e<f;e++){d=b.length;c.find(a,this[e],b);if(e>0)for(var k=d;k<b.length;k++)for(var l=0;l<d;l++)if(b[l]===b[k]){b.splice(k--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,e=b.length;d<e;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Qa(this,a,false),"not",a)},filter:function(a){return this.pushStack(Qa(this,a,true),"filter",a)},is:function(a){return!!a&&c.filter(a,this).length>
0},closest:function(a,b){if(c.isArray(a)){var d=[],e=this[0],f,k={},l;if(e&&a.length){f=0;for(var r=a.length;f<r;f++){l=a[f];k[l]||(k[l]=c.expr.match.POS.test(l)?c(l,b||this.context):l)}for(;e&&e.ownerDocument&&e!==b;){for(l in k){f=k[l];if(f.jquery?f.index(e)>-1:c(e).is(f)){d.push({selector:l,elem:e});delete k[l]}}e=e.parentNode}}return d}var o=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(u,C){for(;C&&C.ownerDocument&&C!==b;){if(o?o.index(C)>-1:c(C).is(a))return C;
C=C.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(!a[0]||!a[0].parentNode||a[0].parentNode.nodeType===11||!b[0]||!b[0].parentNode||b[0].parentNode.nodeType===11?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=
a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode",d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,
a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,e){var f=c.map(this,b,d);eb.test(a)||(e=d);if(e&&typeof e==="string")f=c.filter(e,f);f=this.length>1?c.unique(f):f;if((this.length>1||gb.test(e))&&fb.test(a))f=f.reverse();return this.pushStack(f,a,ia.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,
b)},dir:function(a,b,d){var e=[];for(a=a[b];a&&a.nodeType!==9&&(d===I||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&e.push(a);a=a[b]}return e},nth:function(a,b,d){b=b||1;for(var e=0;a;a=a[d])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ra=/ jQuery\d+="(?:\d+|null)"/g,sa=/^\s+/,Sa=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Ta=/<([\w:]+)/,ib=/<tbody/i,jb=/<|&#?\w+;/,
Ea=/<script|<object|<embed|<option|<style/i,Fa=/checked\s*(?:[^=]|=\s*.checked.)/i,Ua=function(a,b,d){return hb.test(d)?a:b+"></"+d+">"},ha={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,"",""]};ha.optgroup=ha.option;ha.tbody=
ha.tfoot=ha.colgroup=ha.caption=ha.thead;ha.th=ha.td;if(!c.support.htmlSerialize)ha._default=[1,"div<div>","</div>"];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d=c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==I)return this.empty().append((this[0]&&this[0].ownerDocument||g).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);
this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this},wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,
"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());
return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,e;(e=this[d])!=null;d++)if(!a||c.filter(a,[e]).length){if(!b&&e.nodeType===1){c.cleanData(e.getElementsByTagName("*"));c.cleanData([e])}e.parentNode&&
e.parentNode.removeChild(e)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,e=this.ownerDocument;if(!d){d=e.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ra,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(sa,
"")],e)[0]}else return this.cloneNode(true)});if(a===true){F(this,b);F(this.find("*"),b.find("*"))}return b},html:function(a){if(a===I)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ra,""):null;else if(typeof a==="string"&&!Ea.test(a)&&(c.support.leadingWhitespace||!sa.test(a))&&!ha[(Ta.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Sa,Ua);try{for(var b=0,d=this.length;b<d;b++)if(this[b].nodeType===1){c.cleanData(this[b].getElementsByTagName("*"));this[b].innerHTML=a}}catch(e){this.empty().append(a)}}else c.isFunction(a)?
this.each(function(f){var k=c(this),l=k.html();k.empty().append(function(){return a.call(this,f,l)})}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(c.isFunction(a))return this.each(function(b){var d=c(this),e=d.html();d.replaceWith(a.call(this,b,e))});if(typeof a!=="string")a=c(a).detach();return this.each(function(){var b=this.nextSibling,d=this.parentNode;c(this).remove();b?c(b).before(a):c(d).append(a)})}else return this.pushStack(c(c.isFunction(a)?
a():a),"replaceWith",a)},detach:function(a){return this.remove(a,true)},domManip:function(a,b,d){var e,f,k=a[0],l=[],r;if(!c.support.checkClone&&arguments.length===3&&typeof k==="string"&&Fa.test(k))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(k))return this.each(function(u){var C=c(this);a[0]=k.call(this,u,b?C.html():I);C.domManip(a,b,d)});if(this[0]){e=k&&k.parentNode;e=c.support.parentNode&&e&&e.nodeType===11&&e.childNodes.length===this.length?{fragment:e}:B(a,this,
l);r=e.fragment;if(f=r.childNodes.length===1?r=r.firstChild:r.firstChild){b=b&&c.nodeName(f,"tr");f=0;for(var o=this.length;f<o;f++)d.call(b?c.nodeName(this[f],"table")?this[f].getElementsByTagName("tbody")[0]||this[f].appendChild(this[f].ownerDocument.createElement("tbody")):this[f]:this[f],f>0||e.cacheable||this.length>1?r.cloneNode(true):r)}l.length&&c.each(l,aa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},
function(a,b){c.fn[a]=function(d){var e=[];d=c(d);var f=this.length===1&&this[0].parentNode;if(f&&f.nodeType===11&&f.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{f=0;for(var k=d.length;f<k;f++){var l=(f>0?this.clone(true):this).get();c.fn[b].apply(c(d[f]),l);e=e.concat(l)}return this.pushStack(e,a,d.selector)}}});c.extend({clean:function(a,b,d,e){b=b||g;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||g;for(var f=[],k=0,l;(l=a[k])!=null;k++){if(typeof l===
"number")l+="";if(l){if(typeof l==="string"&&!jb.test(l))l=b.createTextNode(l);else if(typeof l==="string"){l=l.replace(Sa,Ua);var r=(Ta.exec(l)||["",""])[1].toLowerCase(),o=ha[r]||ha._default,u=o[0],C=b.createElement("div");for(C.innerHTML=o[1]+l+o[2];u--;)C=C.lastChild;if(!c.support.tbody){u=ib.test(l);r=r==="table"&&!u?C.firstChild&&C.firstChild.childNodes:o[1]==="<table>"&&!u?C.childNodes:[];for(o=r.length-1;o>=0;--o)c.nodeName(r[o],"tbody")&&!r[o].childNodes.length&&r[o].parentNode.removeChild(r[o])}!c.support.leadingWhitespace&&
sa.test(l)&&C.insertBefore(b.createTextNode(sa.exec(l)[0]),C.firstChild);l=C.childNodes}if(l.nodeType)f.push(l);else f=c.merge(f,l)}}if(d)for(k=0;f[k];k++)if(e&&c.nodeName(f[k],"script")&&(!f[k].type||f[k].type.toLowerCase()==="text/javascript"))e.push(f[k].parentNode?f[k].parentNode.removeChild(f[k]):f[k]);else{f[k].nodeType===1&&f.splice.apply(f,[k+1,0].concat(c.makeArray(f[k].getElementsByTagName("script"))));d.appendChild(f[k])}return f},cleanData:function(a){for(var b,d,e=c.cache,f=c.event.special,
k=c.support.deleteExpando,l=0,r;(r=a[l])!=null;l++)if(d=r[c.expando]){b=e[d];if(b.events)for(var o in b.events)f[o]?c.event.remove(r,o):Ka(r,o,b.handle);if(k)delete r[c.expando];else r.removeAttribute&&r.removeAttribute(c.expando);delete e[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Va=/alpha\([^)]*\)/,Wa=/opacity=([^)]*)/,za=/float/i,Aa=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],
qb=["Top","Bottom"],rb=g.defaultView&&g.defaultView.getComputedStyle,Xa=c.support.cssFloat?"cssFloat":"styleFloat",Ba=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return N(this,a,b,true,function(d,e,f){if(f===I)return c.curCSS(d,e);if(typeof f==="number"&&!kb.test(e))f+="px";c.style(d,e,f)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return I;if((b==="width"||b==="height")&&parseFloat(d)<0)d=I;var e=a.style||a,f=d!==I;if(!c.support.opacity&&b==="opacity"){if(f){e.zoom=
1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=e.filter||c.curCSS(a,"filter")||"";e.filter=Va.test(a)?a.replace(Va,b):b}return e.filter&&e.filter.indexOf("opacity=")>=0?parseFloat(Wa.exec(e.filter)[1])/100+"":""}if(za.test(b))b=Xa;b=b.replace(Aa,Ba);if(f)e[b]=d;return e[b]},css:function(a,b,d,e){if(b==="width"||b==="height"){var f,k=b==="width"?pb:qb;d=function(){f=b==="width"?a.offsetWidth:a.offsetHeight;e!=="border"&&c.each(k,function(){e||(f-=parseFloat(c.curCSS(a,"padding"+this,
true))||0);if(e==="margin")f+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else f-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0})};a.offsetWidth!==0?d():c.swap(a,ob,d);return Math.max(0,Math.round(f))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var e,f=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){e=Wa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return e===""?"1":e}if(za.test(b))b=Xa;if(!d&&f&&f[b])e=f[b];else if(rb){if(za.test(b))b="float";b=b.replace(lb,
"-$1").toLowerCase();f=a.ownerDocument.defaultView;if(!f)return null;if(a=f.getComputedStyle(a,null))e=a.getPropertyValue(b);if(b==="opacity"&&e==="")e="1"}else if(a.currentStyle){d=b.replace(Aa,Ba);e=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(e)&&nb.test(e)){b=f.left;var k=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;f.left=d==="fontSize"?"1em":e||0;e=f.pixelLeft+"px";f.left=b;a.runtimeStyle.left=k}}return e},swap:function(a,b,d){var e={};for(var f in b){e[f]=a.style[f];a.style[f]=
b[f]}d.call(a);for(f in b)a.style[f]=e[f]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetWidth,d=a.offsetHeight,e=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!e?true:b>0&&d>0&&!e?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=w(),tb=/<script(.|\s)*?\/script>/gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,na=/=\?(&|$)/,
Ca=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string")return zb.call(this,a);else if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var f=a.slice(e,a.length);a=a.slice(0,e)}e="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);e="POST"}var k=this;c.ajax({url:a,type:e,dataType:"html",data:b,complete:function(l,r){if(r==="success"||r==="notmodified")k.html(f?
c("<div />").append(l.responseText.replace(tb,"")).find(f):l.responseText);d&&k.each(d,[l.responseText,r,l])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,
value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:e})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,e){if(c.isFunction(b)){e=e||d;d=b;b={}}return c.ajax({type:"POST",
url:a,data:b,success:d,dataType:e})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:m.XMLHttpRequest&&(m.location.protocol!=="file:"||!m.ActiveXObject)?function(){return new m.XMLHttpRequest}:function(){try{return new m.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},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(a){function b(){f.success&&f.success.call(o,r,l,Q);f.global&&e("ajaxSuccess",[Q,f])}function d(){f.complete&&f.complete.call(o,Q,l);f.global&&e("ajaxComplete",[Q,f]);f.global&&!--c.active&&c.event.trigger("ajaxStop")}function e(A,z){(f.context?c(f.context):c.event).trigger(A,z)}var f=c.extend(true,{},c.ajaxSettings,a),k,l,r,o=a&&a.context||f,u=f.type.toUpperCase();if(f.data&&f.processData&&
typeof f.data!=="string")f.data=c.param(f.data,f.traditional);if(f.dataType==="jsonp"){if(u==="GET")na.test(f.url)||(f.url+=(Ca.test(f.url)?"&":"?")+(f.jsonp||"callback")+"=?");else if(!f.data||!na.test(f.data))f.data=(f.data?f.data+"&":"")+(f.jsonp||"callback")+"=?";f.dataType="json"}if(f.dataType==="json"&&(f.data&&na.test(f.data)||na.test(f.url))){k=f.jsonpCallback||"jsonp"+sb++;if(f.data)f.data=(f.data+"").replace(na,"="+k+"$1");f.url=f.url.replace(na,"="+k+"$1");f.dataType="script";m[k]=m[k]||
function(A){r=A;b();d();m[k]=I;try{delete m[k]}catch(z){}V&&V.removeChild(Y)}}if(f.dataType==="script"&&f.cache===null)f.cache=false;if(f.cache===false&&u==="GET"){var C=w(),O=f.url.replace(wb,"$1_="+C+"$2");f.url=O+(O===f.url?(Ca.test(f.url)?"&":"?")+"_="+C:"")}if(f.data&&u==="GET")f.url+=(Ca.test(f.url)?"&":"?")+f.data;f.global&&!c.active++&&c.event.trigger("ajaxStart");C=(C=xb.exec(f.url))&&(C[1]&&C[1]!==location.protocol||C[2]!==location.host);if(f.dataType==="script"&&u==="GET"&&C){var V=g.getElementsByTagName("head")[0]||
g.documentElement,Y=g.createElement("script");Y.src=f.url;if(f.scriptCharset)Y.charset=f.scriptCharset;if(!k){var W=false;Y.onload=Y.onreadystatechange=function(){if(!W&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){W=true;b();d();Y.onload=Y.onreadystatechange=null;V&&Y.parentNode&&V.removeChild(Y)}}}V.insertBefore(Y,V.firstChild);return I}var ga=false,Q=f.xhr();if(Q){f.username?Q.open(u,f.url,f.async,f.username,f.password):Q.open(u,f.url,f.async);try{if(f.data||a&&
a.contentType)Q.setRequestHeader("Content-Type",f.contentType);if(f.ifModified){c.lastModified[f.url]&&Q.setRequestHeader("If-Modified-Since",c.lastModified[f.url]);c.etag[f.url]&&Q.setRequestHeader("If-None-Match",c.etag[f.url])}C||Q.setRequestHeader("X-Requested-With","XMLHttpRequest");Q.setRequestHeader("Accept",f.dataType&&f.accepts[f.dataType]?f.accepts[f.dataType]+", */*":f.accepts._default)}catch(ya){}if(f.beforeSend&&f.beforeSend.call(o,Q,f)===false){f.global&&!--c.active&&c.event.trigger("ajaxStop");
Q.abort();return false}f.global&&e("ajaxSend",[Q,f]);var h=Q.onreadystatechange=function(A){if(!Q||Q.readyState===0||A==="abort"){ga||d();ga=true;if(Q)Q.onreadystatechange=c.noop}else if(!ga&&Q&&(Q.readyState===4||A==="timeout")){ga=true;Q.onreadystatechange=c.noop;l=A==="timeout"?"timeout":!c.httpSuccess(Q)?"error":f.ifModified&&c.httpNotModified(Q,f.url)?"notmodified":"success";var z;if(l==="success")try{r=c.httpData(Q,f.dataType,f)}catch(L){l="parsererror";z=L}if(l==="success"||l==="notmodified")k||
b();else c.handleError(f,Q,l,z);d();A==="timeout"&&Q.abort();if(f.async)Q=null}};try{var j=Q.abort;Q.abort=function(){Q&&j.call(Q);h("abort")}}catch(n){}f.async&&f.timeout>0&&setTimeout(function(){Q&&!ga&&h("timeout")},f.timeout);try{Q.send(u==="POST"||u==="PUT"||u==="DELETE"?f.data:null)}catch(q){c.handleError(f,Q,null,q);d()}f.async||h();return Q}},handleError:function(a,b,d,e){if(a.error)a.error.call(a.context||a,b,d,e);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,e])},
active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status===1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),e=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(e)c.etag[b]=e;return a.status===304||a.status===0},httpData:function(a,b,d){var e=a.getResponseHeader("content-type")||"",f=b==="xml"||!b&&e.indexOf("xml")>=0;a=f?a.responseXML:a.responseText;
f&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&e.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&e.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(l,r){if(c.isArray(r))c.each(r,function(o,u){b||/\[\]$/.test(l)?e(l,u):d(l+"["+(typeof u==="object"||c.isArray(u)?o:"")+"]",u)});else!b&&r!=null&&typeof r==="object"?c.each(r,function(o,u){d(l+"["+o+"]",
u)}):e(l,r)}function e(l,r){r=c.isFunction(r)?r():r;f[f.length]=encodeURIComponent(l)+"="+encodeURIComponent(r)}var f=[];if(b===I)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){e(this.name,this.value)});else for(var k in a)d(k,a[k]);return f.join("&").replace(yb,"+")}});var Da={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,ta,Ga=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],
["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(P("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].nodeName;var e;if(Da[d])e=Da[d];else{var f=c("<"+d+" />").appendTo("body");e=f.css("display");if(e==="none")e="block";f.remove();Da[d]=e}c.data(this[a],"olddisplay",e)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],"olddisplay")||"";return this}},
hide:function(a,b){if(a||a===0)return this.animate(P("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";if(c.isFunction(a)&&c.isFunction(b))this._toggle.apply(this,arguments);else a==null||d?this.each(function(){var e=d?a:c(this).is(":hidden");c(this)[e?"show":
"hide"]()}):this.animate(P("toggle",3),a,b);return this},fadeTo:function(a,b,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,d)},animate:function(a,b,d,e){var f=c.speed(b,d,e);if(c.isEmptyObject(a))return this.each(f.complete);return this[f.queue===false?"each":"queue"](function(){var k=c.extend({},f),l,r=this.nodeType===1&&c(this).is(":hidden"),o=this;for(l in a){var u=l.replace(Aa,Ba);if(l!==u){a[u]=a[l];delete a[l];l=u}if(a[l]==="hide"&&r||a[l]==="show"&&!r)return k.complete.call(this);
if((l==="height"||l==="width")&&this.style){k.display=c.css(this,"display");k.overflow=this.style.overflow}if(c.isArray(a[l])){(k.specialEasing=k.specialEasing||{})[l]=a[l][1];a[l]=a[l][0]}}if(k.overflow!=null)this.style.overflow="hidden";k.curAnim=c.extend({},a);c.each(a,function(C,O){var V=new c.fx(o,k,C);if(Ab.test(O))V[O==="toggle"?r?"show":"hide":O](a);else{var Y=Bb.exec(O),W=V.cur(true)||0;if(Y){O=parseFloat(Y[2]);var ga=Y[3]||"px";if(ga!=="px"){o.style[C]=(O||1)+ga;W=(O||1)/V.cur(true)*W;o.style[C]=
W+ga}if(Y[1])O=(Y[1]==="-="?-1:1)*O+W;V.custom(W,O,ga)}else V.custom(W,O,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var e=d.length-1;e>=0;e--)if(d[e].elem===this){b&&d[e](true);d.splice(e,1)}});b||this.dequeue();return this}});c.each({slideDown:P("show",1),slideUp:P("hide",1),slideToggle:P("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,e){return this.animate(b,d,e)}});c.extend({speed:function(a,
b,d){var e=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};e.duration=c.fx.off?0:typeof e.duration==="number"?e.duration:c.fx.speeds[e.duration]||c.fx.speeds._default;e.old=e.complete;e.complete=function(){e.queue!==false&&c(this).dequeue();c.isFunction(e.old)&&e.old.call(this)};return e},easing:{linear:function(a,b,d,e){return d+e*a},swing:function(a,b,d,e){return(-Math.cos(a*Math.PI)/2+0.5)*e+d}},timers:[],fx:function(a,b,d){this.options=
b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,
this.prop))||0},custom:function(a,b,d){function e(k){return f.step(k)}this.startTime=w();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var f=this;e.elem=this.elem;if(e()&&c.timers.push(e)&&!ta)ta=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=
c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=w(),d=true;if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var e in this.options.curAnim)if(this.options.curAnim[e]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,
"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var f in this.options.curAnim)c.style(this.elem,f,this.options.orig[f]);this.options.complete.call(this.elem)}return false}else{f=b-this.startTime;this.state=f/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,f,0,1,this.options.duration);
this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b<a.length;b++)a[b]()||a.splice(b--,1);a.length||c.fx.stop()},stop:function(){clearInterval(ta);ta=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.style(a.elem,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=null)a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit;else a.elem[a.prop]=
a.now}}});if(c.expr&&c.expr.filters)c.expr.filters.animated=function(a){return c.grep(c.timers,function(b){return a===b.elem}).length};c.fn.offset="getBoundingClientRect"in g.documentElement?function(a){var b=this[0];if(a)return this.each(function(f){c.offset.setOffset(this,a,f)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),e=b.ownerDocument;b=e.body;e=e.documentElement;return{top:d.top+(self.pageYOffset||c.support.boxModel&&
e.scrollTop||b.scrollTop)-(e.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&e.scrollLeft||b.scrollLeft)-(e.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(C){c.offset.setOffset(this,a,C)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,e=b,f=b.ownerDocument,k,l=f.documentElement,r=f.body;e=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;
for(var o=b.offsetTop,u=b.offsetLeft;(b=b.parentNode)&&b!==r&&b!==l;){if(c.offset.supportsFixedPosition&&e.position==="fixed")break;k=f?f.getComputedStyle(b,null):b.currentStyle;o-=b.scrollTop;u-=b.scrollLeft;if(b===d){o+=b.offsetTop;u+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){o+=parseFloat(k.borderTopWidth)||0;u+=parseFloat(k.borderLeftWidth)||0}e=d;d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&k.overflow!==
"visible"){o+=parseFloat(k.borderTopWidth)||0;u+=parseFloat(k.borderLeftWidth)||0}e=k}if(e.position==="relative"||e.position==="static"){o+=r.offsetTop;u+=r.offsetLeft}if(c.offset.supportsFixedPosition&&e.position==="fixed"){o+=Math.max(l.scrollTop,r.scrollTop);u+=Math.max(l.scrollLeft,r.scrollLeft)}return{top:o,left:u}};c.offset={initialize:function(){var a=g.body,b=g.createElement("div"),d,e,f,k=parseFloat(c.curCSS(a,"marginTop",true))||0;c.extend(b.style,{position:"absolute",top:0,left:0,margin:0,
border:0,width:"1px",height:"1px",visibility:"hidden"});b.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>";a.insertBefore(b,a.firstChild);d=b.firstChild;e=d.firstChild;f=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=e.offsetTop!==5;this.doesAddBorderForTableAndCells=
f.offsetTop===5;e.style.position="fixed";e.style.top="20px";this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15;e.style.position=e.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==k;a.removeChild(b);c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,
"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var e=c(a),f=e.offset(),k=parseInt(c.curCSS(a,"top",true),10)||0,l=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,d,f);d={top:b.top-f.top+k,left:b.left-f.left+l};"using"in b?b.using.call(a,d):e.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),
d=this.offset(),e=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;e.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;e.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-e.top,left:d.left-e.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||g.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=
a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(e){var f=this[0],k;if(!f)return null;return e!==I?this.each(function(){if(k=T(this))k.scrollTo(!a?e:c(k).scrollLeft(),a?e:c(k).scrollTop());else this[d]=e}):(k=T(f))?"pageXOffset"in k?k[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&k.document.documentElement[d]||k.document.body[d]:f[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],
d,false,"padding"):null};c.fn["outer"+b]=function(e){return this[0]?c.css(this[0],d,false,e?"margin":"border"):null};c.fn[d]=function(e){var f=this[0];if(!f)return e==null?null:this;if(c.isFunction(e))return this.each(function(k){var l=c(this);l[d](e.call(this,k,l[d]()))});return"scrollTo"in f&&f.document?f.document.compatMode==="CSS1Compat"&&f.document.documentElement["client"+b]||f.document.body["client"+b]:f.nodeType===9?Math.max(f.documentElement["client"+b],f.body["scroll"+b],f.documentElement["scroll"+
b],f.body["offset"+b],f.documentElement["offset"+b]):e===I?c.css(f,d):this.css(d,typeof e==="string"?e:e+"px")}});m.jQuery=m.$=c})(window);(function(m){function I(p){if(!p)return w;try{if("metadata"in p&&"object"!==typeof p.metadata)p.metadata={type:p.metadata};if("content"in p){if("object"!==typeof p.content||p.content.jquery)p.content={text:p.content};var x=p.content.text||w;if(x.length<1||!x&&!x.attr||x.jquery&&x.is(":empty"))p.content.text=w;if("title"in p.content&&"object"!==typeof p.content.title)p.content.title=
{text:p.content.title}}if("position"in p){if("object"!==typeof p.position)p.position={my:p.position,at:p.position};if("object"!==typeof p.position.adjust)p.position.adjust={};if(String(p.position.adjust.screen).replace("true","flip").search(/flip|fit/)<0)p.position.adjust.screen=w}if("show"in p){if("object"!==typeof p.show)p.show={event:p.show};if("object"!==typeof p.show)p.show=p.show.jquery?{target:p.show}:{event:p.show}}if("hide"in p)if("object"!==typeof p.hide)p.hide=p.hide.jquery?{target:p.hide}:
{event:p.hide};if("style"in p&&"object"!==typeof p.style)p.style={classes:p.style}}catch(y){}m.each(m.fn.qtip.plugins,function(){this.sanitize&&this.sanitize(p)})}function da(p,x,y){function F(g){var s,D;g=g.split(".");s=x[g[0]];for(D=1;D<g.length;D+=1)if(typeof s[g[D]]==="object"&&!s[g[D]].jquery)s=s[g[D]];else break;return[s,g[D]]}function B(g){var s=!i.elements.tooltip.is(":visible")?N:w,D=w;if(!i.rendered)return w;s&&i.elements.tooltip.addClass("ui-tooltip-accessible");switch(g){case "dimensions":D=
{height:i.elements.tooltip.outerHeight(),width:i.elements.tooltip.outerWidth()};break;case "position":D=i.elements.tooltip.offset();break}s&&i.elements.tooltip.removeClass("ui-tooltip-accessible");return D}function P(){var g=i.elements,s=x.content.title.button;g.title&&g.title.remove();g.tooltip.attr("aria-labelledby","ui-tooltip-title-"+y);g.titlebar=m("<div />").addClass("ui-tooltip-titlebar ui-widget-header").prependTo(g.wrapper);g.title=m("<div />").attr("id","ui-tooltip-"+y+"-title").addClass("ui-tooltip-title").html(x.content.title.text).appendTo(g.titlebar);
if(s){g.button=s.jquery?s:"string"===typeof s?m("<a />").html(s):m("<a />").addClass("ui-state-default").append(m("<span />").addClass("ui-icon ui-icon-close"));g.button.prependTo(g.titlebar).attr("role","button").addClass("ui-tooltip-"+(s===N?"close":"button")).hover(function(D){m(this).toggleClass("ui-state-hover",D.type==="mouseenter")}).click(function(){g.tooltip.hasClass("ui-state-disabled")||i.hide();return w}).bind("mousedown keydown mouseup keyup mouseout",function(D){m(this).toggleClass("ui-state-active ui-state-focus",
/down$/i.test(D.type))})}else g.button&&g.button.remove()}function T(g){if(!i.rendered||!g)return w;if(g.jquery&&g.length>0)x.content.clone?i.elements.content.html(g.clone(N).removeAttr("id").css({display:"block"})):i.elements.content.append(g.css({display:"block"}));else i.elements.content.html(g);g=void 0;if(i.rendered&&m.browser.msie){var s=i.elements.tooltip,D,M;s.css({width:"auto",maxWidth:"none"});g=B("dimensions").width;s.css({maxWidth:""});D=parseInt(s.css("max-width"),10)||0;M=parseInt(s.css("min-width"),
10)||0;g=Math.min(Math.max(g,M),D);if(g%2)g+=1;s.width(g)}i.reposition(i.cache.event);if(i.rendered<0){if(x.show.ready||i.rendered===-2)i.show(i.cache.event);i.rendered=N}return i}function c(g,s,D,M){function J(R){if(E.tooltip.hasClass("ui-state-disabled"))return w;E.show.trigger("qtip-"+y+"-inactive");clearTimeout(i.timers.show);clearTimeout(i.timers.hide);i.timers.show=setTimeout(function(){i.show(R)},x.show.delay)}function S(R){if(E.tooltip.hasClass("ui-state-disabled"))return w;clearTimeout(i.timers.show);
clearTimeout(i.timers.hide);if(x.hide.fixed&&/mouse(out|leave)/.test(R.type)&&m(R.relatedTarget).parents(".qtip.ui-tooltip").length||x.position.target==="mouse"&&x.position.adjust.mouse===N&&m(R.relatedTarget).parents(".qtip.ui-tooltip").length){R.stopPropagation();R.preventDefault();return w}E.tooltip.stop(N,N);i.timers.hide=setTimeout(function(){i.hide(R)},x.hide.delay)}function X(R){if(E.tooltip.hasClass("ui-state-disabled"))return w;clearTimeout(i.timers.inactive);i.timers.inactive=setTimeout(function(){i.hide(R)},
x.hide.inactive)}var K=".qtip-"+y,E={show:x.show.target,hide:x.hide.target,tooltip:i.elements.tooltip},Z={show:String(x.show.event).split(" "),hide:String(x.hide.event).split(" ")};if(D&&x.hide.fixed){E.hide=E.hide.add(E.tooltip);E.tooltip.bind("mouseover"+K,function(){E.tooltip.hasClass("ui-state-disabled")||clearTimeout(i.timers.hide)})}if(s){if("number"===typeof x.hide.inactive){E.show.bind("qtip-"+y+"-inactive",X);m.each(m.fn.qtip.inactiveEvents,function(R,$){E.hide.add(i.elements.tooltip).bind($+
K+"-inactive",X)})}m.each(Z.hide,function(R,$){var ca=m.inArray($,Z.show);if(ca>-1&&m(E.hide).add(E.show).length===m(E.hide).length||$==="unfocus"){E.show.bind($+K,function(ba){E.tooltip.is(":visible")?S(ba):J(ba)});delete Z.show[ca]}else E.hide.bind($+K,S)})}if(g){m.each(Z.show,function(R,$){E.show.bind($+K,J)});x.position.target==="mouse"&&E.show.bind("mousemove"+K,function(R){x.position.adjust.mouse&&!E.tooltip.hasClass("ui-state-disabled")&&E.tooltip.is(":visible")&&i.reposition(R)});E.tooltip.bind("mouseover"+
K,function(){i.focus()})}if(M){if(x.position.adjust.scroll&&(m(x.position.target)[0]===window||m(x.position.target)[0]===document))m(window).bind("scroll"+K,function(R){var $=i.get("dimensions");if(i.elements.tooltip.is(":visible")&&!($.height>m(window).height()||$.width>m(window).width()))i.reposition(R)});x.position.adjust.resize&&m(window).bind("resize"+K,function(R){i.elements.tooltip.is(":visible")&&i.reposition(R)});/unfocus/i.test(x.hide.event)&&m(document).bind("mousedown"+K,function(R){var $=
i.elements.tooltip;m(R.target).parents(".qtip.ui-tooltip").length===0&&m(R.target).add(p).length>1&&$.is(":visible")&&!$.hasClass("ui-state-disabled")&&i.hide()})}}function t(g,s,D,M){M=parseInt(M,10)!==0;var J=".qtip-"+y,S={show:g?x.show.target:m("<div/>"),hide:s?x.hide.target:m("<div/>"),tooltip:D?i.elements.tooltip:m("<div/>")};s={show:String(x.show.event).split(" "),hide:String(x.hide.event).split(" ")};if(i.rendered){m.each(s.show,function(X,K){S.show.unbind(K+J)});S.show.unbind("mousemove"+
J).unbind("mouseout"+J).unbind("qtip-"+y+"-inactive");m.each(s.hide,function(X,K){S.hide.add(S.tooltip).unbind(K+J)});m.each(m.fn.qtip.inactiveEvents,function(X,K){S.hide.add(D?i.elements.content:ea).unbind(K+J+"-inactive")});S.hide.unbind("mouseout"+J);S.tooltip.unbind("mouseover"+J);if(M){m(window).unbind("resize"+J+" scroll"+J);m(document).unbind("mousedown"+J)}}else g&&S.show.unbind(s.show+J+"-create")}var i=this;i.id=y;i.rendered=w;i.elements={target:p};i.cache={title:"",event:{},disabled:w};
i.timers={};i.options=x;i.plugins={};m.extend(i,{render:function(g){var s=i.elements;if(i.rendered)return w;i.rendered=g?-2:-1;s.tooltip=m("<div/>").attr({id:"ui-tooltip-"+y,role:"tooltip","aria-describedby":"ui-tooltip-"+y+"-content"}).addClass("qtip ui-tooltip ui-widget ui-helper-reset "+x.style.classes).addClass(i.cache.disabled?"ui-state-disabled":"").css("z-index",m.fn.qtip.zindex+m("div.qtip.ui-tooltip").length).data("qtip",i).appendTo(x.position.container);s.wrapper=m("<div />").addClass("ui-tooltip-wrapper").appendTo(s.tooltip);
s.content=m("<div />").addClass("ui-tooltip-content").attr("id","ui-tooltip-"+y+"-content").addClass("ui-tooltip-content ui-widget-content").appendTo(s.wrapper);x.content.title.text&&P();m.each(m.fn.qtip.plugins,function(){this.initialize==="render"&&this(i)});c(1,1,1,1);m.each(x.events,function(D,M){s.tooltip.bind("tooltip"+D,M)});T(x.content.text);s.tooltip.trigger("tooltiprender",[i.hash()]);return i},get:function(g){switch(g.toLowerCase()){case "offset":g=B("position");break;case "dimensions":g=
B("dimensions");break;default:g=F(g.toLowerCase());g=g[0].precedance?g[0].string():g[0].jquery?g[0]:g[0][g[1]];break}return g},set:function(g,s){var D=F(g.toLowerCase()),M={show:x.show.target,hide:x.hide.target},J,S,X={builtin:{"^content.text":function(){T(s)},"^content.title.text":function(){if(i.rendered)if(!i.elements.title&&s){P();i.reposition()}else if(s)i.elements.title.html(s);else{var K=i.elements;if(K.title){K.titlebar.remove();K.titlebar=K.title=K.button=ea;K.tooltip.removeAttr("aria-labelledby")}}},
"^position.container$":function(){i.rendered&&i.elements.tooltip.appendTo(s)},"^position.(corner|adjust|target)":function(){i.rendered&&i.reposition()},"^position.(my|at)$":function(){var K=g.search(/my$/i)>-1?"my":"at";if("string"===typeof s)x.position[K]=new m.fn.qtip.plugins.Corner(s)},"^(show|hide).(event|target|fixed)":function(){var K=g.search(/fixed/i)>-1?[0,[0,1,1,1]]:g.search(/hide/i)<0?["show",[1,0,0,0]]:["hide",[0,1,0,0]];if(K[0])x[K[0]].target=M[K[0]];t.apply(i,K[1]);if(K[0])x[K[0]].target=
s;c.apply(i,K[1])}}};m.each(i.plugins,function(K){if("object"===typeof this.checks)X[K]=this.checks});D[0][D[1]]=s;I(x);for(J in X)for(S in X[J])RegExp(S,"i").test(g)&&X[J][S].call(i,D[0],D[1],s);return i},toggle:function(g,s){function D(){m(this).css({opacity:"",height:""});g&&m.browser.msie&&m(this).get(0).style&&m(this).get(0).style.removeAttribute("filter")}if(!i.rendered)return w;var M=g?"show":"hide",J=i.elements.tooltip,S=x[M],X=J.is(":visible");if((typeof g).search("boolean|number"))g=!J.is(":visible");
if(X&&g||!X&&!g||J.is(":animated"))return i;if(s){if(i.cache.event&&/over|enter/.test(s.type)&&/out|leave/.test(i.cache.event.type)&&m(s.target).add(x.show.target).length<2&&m(s.relatedTarget).parents(".qtip.ui-tooltip").length>0)return i;i.cache.event=m.extend({},s)}X=m.Event("tooltip"+M);J.trigger(X,[i.hash(),90]);if(X.isDefaultPrevented())return i;if(g){i.cache.title=p.attr("title");p.removeAttr("title");if(i.rendered===N){i.focus();i.reposition(s)}S.solo&&m(":not(.qtip.ui-tooltip)").qtip("hide")}else{i.cache.title&&
p.attr("title",i.cache.title);clearTimeout(i.timers.show);J.css({opacity:""})}J.attr("aria-hidden",Boolean(!g));J.stop(N,w);if(m.isFunction(S.effect)){S.effect.call(J);J.queue(function(){D();m(this).dequeue()})}else if(S.effect===w){J[M]();D()}else J["fade"+(g?"In":"Out")](90,D);g&&S.target.trigger("qtip-"+y+"-inactive");return i},show:function(g){i.toggle(N,g)},hide:function(g){i.toggle(w,g)},focus:function(){if(!i.rendered)return w;var g=i.elements.tooltip,s=parseInt(g.css("z-index"),10),D=m.fn.qtip.zindex+
m(".qtip.ui-tooltip").length;if(!g.hasClass("ui-tooltip-focus")&&s!==D){m(":not(.qtip.ui-tooltip)").each(function(){var M=m(this).qtip(),J,S;if(!M||!M.rendered)return N;J=M.elements.tooltip;S=parseInt(J.css("z-index"),10);isNaN(S)||J.css({zIndex:S-1});J.removeClass("ui-tooltip-focus");J.trigger("tooltipblur",[M,D])});s=m.Event("tooltipfocus");g.trigger(s,[i.hash(),D]);s.isDefaultPrevented()||g.css({zIndex:D}).addClass("ui-tooltip-focus")}return i},reposition:function(g){if(i.rendered===false)return w;
var s=x.position.target==="event"&&g?m(g.target):x.position.target,D=i.elements.tooltip,M=x.position,J,S,X=i.elements.tooltip.width(),K=i.elements.tooltip.height(),E,Z,R,$={fit:{left:function(){var ca=parseInt(E.left,10),ba=E.left+X-m(window).width()-m(window).scrollLeft();E.left=ba>0?E.left-ba:Math.max(0,E.left);return Math.ceil(ca-E.left)},top:function(){var ca=parseInt(E.top,10),ba=E.top+K-m(window).height()-m(window).scrollTop();E.top=ba>0?E.top-ba:Math.max(0,E.top);return Math.ceil(ca-E.top)}},
flip:{left:function(){var ca=E.left+X-m(window).width()-m(window).scrollLeft(),ba=Z.x==="left"?-X:Z.x==="right"?X:0,ia=-2*M.adjust.x;E.left+=E.left<0?ba+J+ia:ca>0?ba-J+ia:0;return Math.round(ca)},top:function(){var ca=E.top+K-m(window).height()-m(window).scrollTop(),ba=Z.y==="top"?-K:Z.y==="bottom"?K:0,ia=R.y==="top"?S:R.y==="bottom"?-S:0,pa=-2*M.adjust.y;E.top+=E.top<0?ba+S+pa:ca>0?ba+ia+pa:0;return Math.round(ca)}}};if(M.at.left&&M.at.top){E=m.extend({},x.position.corner);Z=R={x:"left",y:"top"}}else{Z=
M.my;R=M.at;if(M.target==="mouse"){R={x:"left",y:"top"};J=S=0;if(!g)g=i.cache.event;E={top:g.pageY,left:g.pageX}}else{if(s[0]===document){J=s.width();S=s.height();E={top:0,left:0}}else if(s[0]===window){J=s.width();S=s.height();E={top:s.scrollTop(),left:s.scrollLeft()}}else if(s.is("area")&&m.fn.qtip.plugins.areaDetails){E=m.fn.qtip.plugins.areaDetails(s,x.at);J=E.width;S=E.height;E=E.offset}else{J=s.outerWidth();S=s.outerHeight();E=s.offset()}E.left+=R.x==="right"?J:R.x==="center"?J/2:0;E.top+=R.y===
"bottom"?S:R.y==="center"?S/2:0}E.left+=M.adjust.x+(Z.x==="right"?-X:Z.x==="center"?-X/2:0);E.top+=M.adjust.y+(Z.y==="bottom"?-K:Z.y==="center"?-K/2:0)}E.adjust=M.adjust.screen?{left:$[M.adjust.screen].left(),top:$[M.adjust.screen].top()}:{left:0,top:0};g=m.Event("tooltipmove");D.trigger(g,[i.hash(),E]);if(g.isDefaultPrevented())return i;delete E.adjust;if(D.is(":visible")&&m.isFunction(M.adjust.effect)){M.adjust.effect.call(D,E);D.queue(function(){m(this).css({opacity:"",height:""});m.browser.msie&&
m(this).get(0).style&&m(this).get(0).style.removeAttribute("filter");m(this).dequeue()})}else D.css(E);return i},disable:function(g){var s=i.elements.tooltip;if(i.rendered)s.toggleClass("ui-state-disabled",g);else i.cache.disabled=N;return i},destroy:function(){i.rendered&&m.each(i.plugins,function(){this.initialize==="render"&&this.destroy()});t(1,1,1,1);p.removeData("qtip");i.rendered&&i.elements.tooltip.remove();i.cache.title&&p.attr("title",i.cache.title);return p},hash:function(){var g=m.extend({},
i);delete g.cache;delete g.timers;delete g.options;delete g.plugins;delete g.render;delete g.hash;return g}})}function aa(p,x){var y;y=m(this).metadata?m(this).metadata(x.metadata):{};y=m.extend(N,{},x,y);var F=m(this)[0]===document?m(document.body):m(this);if("boolean"===typeof y.content.text)if(y.content.attr!==w&&m(this).attr(y.content.attr))y.content.text=m(this).attr(y.content.attr);else return w;if(y.position.container===w)y.position.container=m(document.body);if(y.position.target===w)y.position.target=
F;if(y.show.target===w)y.show.target=F;if(y.hide.target===w)y.hide.target=F;y.position.at=new m.fn.qtip.plugins.Corner(y.position.at);y.position.my=new m.fn.qtip.plugins.Corner(y.position.my);if(m(this).data("qtip"))if(y.overwrite)m(this).qtip("destroy");else if(y.overwrite===w)return w;y=new da(m(this),y,p);m(this).data("qtip",y);return y}var N=true,w=false,ea=null,v=function(){};m.fn.qtip=function(p,x,y){var F=String(p).toLowerCase(),B=w,P=F==="disable"?[N]:F==="enable"?[w]:m.makeArray(arguments).splice(1),
T;if(!p&&m(this).data("qtip")||F==="api")return(T=m(this).eq(0).data("qtip"))?T.hash():undefined;else if("string"===typeof p){m(this).each(function(){var c=m(this).data("qtip");if(!c)return N;if(/option|set/.test(F)&&x)if(y!==undefined)c.set(x,y);else B=c.get(x);else{if(F==="show"||F==="toggle"&&!c.rendered&&!c.elements.tooltip.is(":visible"))c.render();c[F]&&c[F].apply(c[F],P)}});return B!==w?B:m(this)}else if("object"===typeof p){I(p);T=m.extend(N,{},m.fn.qtip.defaults,p);return m.fn.qtip.bind.call(this,
T)}};m.fn.qtip.bind=function(p){return m(this).each(function(){function x(t){function i(){F.render(typeof t==="object"||B.show.ready);P.show.unbind(T.show);P.hide.unbind(T.hide)}F.cache.event=m.extend({},t);if(B.show.delay>0){F.timers.show=setTimeout(i,B.show.delay);T.show!==T.hide&&P.hide.bind(T.hide,function(){clearTimeout(F.timers.show)})}else i()}var y,F,B,P,T,c;y=p.id===w||p.id.length<1||m("#ui-tooltip-"+p.id).length?m.fn.qtip.nextid++:p.id;c=".qtip-"+y+"-create";F=aa.call(m(this),y,p);if(F===
w)return N;B=F.options;m.each(m.fn.qtip.plugins,function(){this.initialize==="initialize"&&this(F)});P={show:B.show.target,hide:B.hide.target};T={show:String(B.show.event).replace(" ",c+" ")+c,hide:(String(B.hide.event)+" mouseleave").replace(" ",c+" ")+c};B.show.ready||B.prerender||B.show.event===w?x():P.show.bind(T.show,x)})};m.fn.qtip.nextid=0;m.fn.qtip.inactiveEvents="click dblclick mousedown mouseup mousemove mouseleave mouseenter".split(" ");m.fn.qtip.zindex=15E3;m.fn.qtip.plugins={Corner:function(p){this.x=
String(p).replace(/middle/i,"center").match(/left|right|center/i)[0].toLowerCase();this.y=String(p).replace(/middle/i,"center").match(/top|bottom|center/i)[0].toLowerCase();this.offset={left:0,top:0};this.precedance=p.charAt(0).search(/^(t|b)/)>-1?"y":"x";this.string=function(){return this.precedance==="y"?this.y+this.x:this.x+this.y}}};m.fn.qtip.defaults={prerender:w,id:w,overwrite:N,metadata:{type:"class"},content:{text:N,attr:"title",clone:N,title:{text:w,button:w}},position:{my:"top left",at:"bottom right",
target:w,container:w,adjust:{x:0,y:0,mouse:N,screen:w,scroll:N,resize:N,effect:N}},show:{target:w,event:"mouseenter",effect:N,delay:140,solo:w,ready:w},hide:{target:w,event:"mouseleave",effect:N,delay:0,fixed:w,inactive:w},style:{classes:""},events:{render:v,move:v,show:v,hide:v,focus:v,blur:v}}})(jQuery);(function(m){function I(w){function ea(p,x,y){if(!v.corner.adjust)return aa;p=m.extend({},v.corner);var F=m.extend(da,{},y),B=p.precedance==="y"?["y","x","top","height"]:["x","y","left","width"],
P=F.adjust,T=x.get("position.adjust.screen");p.offset={left:0,top:0};F[B[2]]+=(p[B[0]]===B[2]?1:-1)*v.size[B[3]];m.extend(y,F);if(function(){var c=v.cache.overflow.left,t=v.cache.overflow.top,i=P.left>0,g=P.top>0;return T==="fit"?da:!(!c&&i||c&&!i||t&&!g||!t&&g)}()!==da){if(p.x!=="center"&&P.left>-1)p.x=p.x==="left"?"right":"left";if(p.y!=="center"&&P.top>-1)p.y=p.y==="top"?"bottom":"top";v.cache.overflow={left:v.corner.x!==p.x,top:v.corner.y!==p.y};v.corner.string()!==p.string()&&v.create();v.update(p)}}
var v=this;v.qTip=w;v.tip=N;v.corner=N;v.type=N;v.size={width:w.options.style.tip.width,height:w.options.style.tip.height};v.method="css";v.cache={overflow:{left:aa,top:aa}};v.checks={"^position.my$":function(){this.get("style.tip.corner")===da&&v.checks["^style.tip.(corner|type)"].call(this)},"^style.tip.(corner|type)":function(){v.determine();v.update();this.get("position.target")!=="mouse"&&this.reposition()},"^style.tip.(height|width)":function(){v.size={width:w.options.style.tip.width,height:w.options.style.tip.height};
v.create();v.update();w.reposition()}};m.extend(v,{init:function(){if(v.determine()===aa)return aa;w.elements.tooltip.bind("tooltipmove.tip",ea);v.create();v.update();return v},determine:function(){var p=w.options.style.tip.corner,x=w.options.style.tip.type||p,y=w.options.position.at,F=w.options.position.my;if(F.string)F=F.string();if(p===aa||F===aa&&y===aa)return aa;else{if(p===da){v.corner=new m.fn.qtip.plugins.Corner(F);v.corner.adjust=da}else if(!p.string)v.corner=new m.fn.qtip.plugins.Corner(p);
if(x===da){v.type=new m.fn.qtip.plugins.Corner(F);v.type.adjust=da}else if(!x.string)v.type=new m.fn.qtip.plugins.Corner(x)}return v.corner.string()!=="centercenter"},create:function(){v.tip&&v.tip.remove();v.tip=m('<div class="ui-tooltip-tip ui-widget-content"></div>').prependTo(w.elements.tooltip);v.method=w.options.style.tip.antialias!==aa?m("<canvas/>").get(0).getContext?"canvas":m.browser.msie?"vml":"css":"css";switch(v.method){case "canvas":v.tip.append('<canvas height="'+v.size.height+'" width="'+
v.size.width+'"></canvas>');break;case "vml":v.tip.html('<vml:shape coordorigin="0 0" coordsize="'+v.size.width+" "+v.size.height+'" stroked="FALSE"  style="behavior:url(#default#VML); display:inline-block; antialias:TRUE; width:'+v.size.width+"px; height:"+v.size.height+"px; vertical-align:"+v.corner.y+';"></vml:shape>');break;case "css":v.tip.addClass("ui-tooltip-tip-"+v.corner.string()).append('<div class="ui-tooltip-tip-inner"></div>');break}return v},update:function(p){var x,y,F,B;y=v.tip.children(":first");
F="px solid ";var P=p;if(!p){p=v.corner;P=v.type}if(v.method!=="css"){x=P.string();B=v.size.width;var T=v.size.height;B={bottomright:[[0,0],[B,T],[B,0]],bottomleft:[[0,0],[B,0],[0,T]],topright:[[0,T],[B,0],[B,T]],topleft:[[0,0],[0,T],[B,T]],topcenter:[[0,T],[B/2,0],[B,T]],bottomcenter:[[0,0],[B,0],[B/2,T]],rightcenter:[[0,0],[B,T/2],[0,T]],leftcenter:[[B,0],[B,T],[0,T/2]]};B.lefttop=B.bottomright;B.righttop=B.bottomleft;B.leftbottom=B.topright;B.rightbottom=B.topleft;B=B[x]}x=v.tip.css("background-color",
"").css("background-color");x=x==="transparent"||x==="rgba(0, 0, 0, 0)"?w.elements.wrapper.css("border-top-color"):x;v.tip.css("background-color","transparent");F+=x;switch(v.method){case "canvas":y=y.get(0).getContext("2d");y.fillStyle=x;y.miterLimit=0;y.clearRect(0,0,3E3,3E3);y.beginPath();y.moveTo(B[0][0],B[0][1]);y.lineTo(B[1][0],B[1][1]);y.lineTo(B[2][0],B[2][1]);y.closePath();y.fill();break;case "vml":F="m"+B[0][0]+","+B[0][1]+" l"+B[1][0]+","+B[1][1]+" "+B[2][0]+","+B[2][1]+" xe";y.attr({path:F,
fillcolor:x});break;case "css":y.removeAttr("style");x={x:P.precedance==="x"?P.x==="left"?"right":"left":P.x,y:P.precedance==="y"?P.y==="top"?"bottom":"top":P.y};if(P.x==="center")y.css({borderLeft:v.size.width/2+"px solid transparent",borderRight:v.size.width/2+"px solid transparent"}).css("border-"+x.y,v.size.height+F);else P.y==="center"?y.css({borderTop:v.size.height/2+"px solid transparent",borderBottom:v.size.height/2+"px solid transparent"}).css("border-"+x.x,v.size.width+F):y.css("border-width",
v.size.height/2+"px "+v.size.width/2+"px").css("border-"+x.x,v.size.width/2+F).css("border-"+x.y,v.size.height/2+F);break}p=p;y=["left","right"];F=w.options.style;P=0;x=p.y+p.x.substr(0,1).toUpperCase()+p.x.substr(1);B={left:0,right:0,top:0,bottom:0};p=p||v.corner;if(!(w.options.style.tip.corner===aa||!v.tip)){v.tip.css({top:"",bottom:"",left:"",right:"",margin:""});y[p.precedance==="y"?"push":"unshift"]("top","bottom");try{x=F.radius||F[x].radius}catch(c){x=0}if(m.browser.msie&&v.method!=="css")B=
{left:1,top:1,right:p.precedance==="y"?1:2,bottom:p.precedance==="x"?1:2};switch(p[p.precedance==="y"?"x":"y"]){case "center":v.tip.css(y[0],"50%").css("margin-"+y[0],-(v.size[p.precedance==="y"?"width":"height"]/2));break;case y[0]:v.tip.css(y[0],p.offset.left-B[y[0]]-P+x);break;case y[1]:v.tip.css(y[1],p.offset.left+B[y[1]]-P+x);break}P+=v.size[p.precedance==="x"?"width":"height"];p[p.precedance]===y[2]?v.tip.css(y[2],p.offset[y[2]]-B[y[2]]-P):v.tip.css(y[3],p.offset[y[2]]+B[y[3]]-P)}return v},
destroy:function(){v.tip&&v.tip.add(v.elements.qTip).removeData("qtip").remove();w.elements.tooltip.unbind("tooltipmove.tip")}})}var da=true,aa=false,N=null;if(!m.fn.qtip){window.console&&window.console.error("This plugin requires the qTip library.","");return aa}m.fn.qtip.plugins.tip=function(w){var ea=w.plugins.tip;if(w.options.style.tip)if(ea)return ea;else{w.plugins.tip=new I(w);if(w.plugins.tip.determine())w.plugins.tip.init();else delete w.plugins.tip;return w.plugins.tip}};m.fn.qtip.plugins.tip.initialize=
"render";m.fn.qtip.plugins.tip.sanitize=function(w){if(w.style!==undefined&&w.style.tip!==undefined){if(typeof w.style.tip!=="object")w.style.tip={corner:w.style.tip};if(typeof w.style.tip.width!=="number")w.style.tip.width=14;if(typeof w.style.tip.height!=="number")w.style.tip.height=14}}})(jQuery);var G=jQuery.noConflict(true);G.browser.msie&&G.browser.version<7||G.browser.safari&&G.browser.version<"525"||G(document).ready(function(){function m(t){return t.replace(/[A-Za-z]+:\/\/[A-Za-z0-9-_]+\.[A-Za-z0-9-_:%&\?\/.=]+/,
function(i){return i.link(i)})}function I(t,i){if(t.length<i)return t;return t.substring(0,i-3)+"..."}function da(t){if(t.length!=10)return t;return"("+t.substring(0,3)+") "+t.substring(3,6)+"-"+t.substring(6,10)}function aa(t){var i=t.split(" ");t=i[1]+" "+i[2]+", "+i[5]+" "+i[3];var g=Date.parse(t);i=arguments.length>1?arguments[1]:new Date;g=parseInt((i.getTime()-g)/1E3);g+=i.getTimezoneOffset()*60;i="";return i=g<60?"a minute ago":g<120?"couple of minutes ago":g<2700?parseInt(g/60).toString()+
" minutes ago":g<5400?"an hour ago":g<86400?""+parseInt(g/3600).toString()+" hours ago":g<172800?"1 day ago":parseInt(g/86400).toString()+" days ago"}function N(t){this.loaded=false;this.name=t.name;this.description=t.description||ea(t.name);this.displayWhenFinishedLoading=this.showErrors=true}function w(t){F!=null&&F.deactivate(F!=t&&t&&t.loaded);F=F==t?null:t;F!=null&&F.activate()}function ea(t){if(t===undefined||typeof t!="string")return"";return G.map(t.split("_"),function(i){return i.substring(0,
1).toUpperCase()+i.substring(1)}).join(" ")}function v(t){this.base=N;this.base(t);this.src=t.src;this.scrollable=t.scrollable||false}function p(t){this.base=N;this.base(t);this.url=t.url;this.display=t.display}function x(t,i,g){var s=new Date;s.setDate(s.getDate()+g);document.cookie=t+"="+escape(i)+(g==null?"":";expires="+s.toGMTString())}function y(){var t;a:{if(document.cookie.length>0){c_start=document.cookie.indexOf("turnsocial_visible=");if(c_start!=-1){c_start=c_start+18+1;c_end=document.cookie.indexOf(";",
c_start);if(c_end==-1)c_end=document.cookie.length;t=unescape(document.cookie.substring(c_start,c_end));break a}}t=""}if(t!=null&&t!=""){if(t=="false")return false;return true}x("turnsocial_visible",true);return true}if(!(G("#ts").length>0))if(G.support.boxModel){G("body").append('<div id="ts" class="ts">\n  <div class="ts_bar ts_initial_bar" id="ts_full_bar">\n    <div class="ts_bar_left">&nbsp;</div>\n    <div class="ts_bar_middle">\n      <div id="ts_app_links"></div>\n\n      <a href="#" class="ts_show_hide" onclick="return false;">\n        <img src="http://turnsocial.com/images/hide.png" alt="Hide the Toolbar" />\n      </a>\n\n      <a href="http://turnsocial.com" target="_blank">\n        <img src="http://turnsocial.com/images/icons/turnsocial.png" class="ts_bar_logo" alt="turnsocial Toolbar" />\n      </a>\n    </div>\n    <div class="ts_bar_right">&nbsp;</div>\n  </div>\n\n  <div class="ts_bar" id="ts_hidden_bar">\n    <div class="ts_bar_left">&nbsp;</div>\n    <div class="ts_bar_middle">\n      <a href="#" class="ts_show_hide" onclick="return false;">\n        <img src="http://turnsocial.com/images/unhide.png" alt="Show the Toolbar" />\n      </a>\n      \n      <a href="http://turnsocial.com" target="_blank">\n        <img src="http://turnsocial.com/images/icons/turnsocial.png" class="ts_bar_logo" alt="turnsocial Toolbar" />\n      </a>\n    </div>\n    <div class="ts_bar_right">&nbsp;</div>\n  </div>\n\n\n  <div class="ts_loading"><img src="http://turnsocial.com/images/dots.gif" /></div>\n  <div class="ts_error">\n    The application timed out. Please refresh the page and try again.\n  </div>\n\n  <div id="ts_shadow"></div>\n</div>\n');
G("head").append("<style type=\"text/css\">\n  /* Reset common CSS elements to stop the toolbar from inheriting any styles \n     Have to use the ts class because if I use the ts id, it overrides sub styles\n   */\n  .ts { font-size: 100% !important; color: black !important; }\n  .ts div,.ts ul,.ts ol,.ts li,.ts h1,.ts h2,.ts h3,.ts h4,.ts h5,.ts h6,.ts pre,.ts code,.ts form,.ts fieldset,.ts legend,.ts input,.ts button,.ts textarea,.ts p,.ts blockquote{margin:0;padding:0;}\n  .ts fieldset,.ts img{border:0;}\n  .ts img { display: inline; }\n  .ts address,.ts caption,.ts cite,.ts code,.ts dfn,.ts em,.ts strong,.ts th,.ts var{font-style:inherit;font-weight:inherit;}\n  .ts del,.ts ins{text-decoration:none;}\n  .ts li{list-style:none;}\n  .ts caption,.ts th{text-align:left;}\n  .ts h1,.ts h2,.ts h3,.ts h4,.ts h5,.ts h6{font-size:100%;font-weight:normal;letter-spacing:0 ! important;text-transform:none !important;}\n  .ts abbr,.ts acronym{border:0;font-variant:normal;}\n  .ts sup{vertical-align:baseline;}\n  .ts sub{vertical-align:baseline;}\n  .ts legend{color:#000;}\n  .ts input,.ts button,.ts textarea,.ts select,.ts optgroup,.ts option{font-family:inherit;font-size:inherit;font-style:inherit;font-weight:inherit;}\n  .ts input,.ts button,.ts textarea,.ts select{*font-size:100%;}\n  \n  #ts ul { font-size: 13px; list-style-position: inside; margin-left: 10px; }\n\n  #ts { text-align:left; font-family:sans-serif; }\n  #ts div, #ts span {color: black !important;}\n\n  #ts .ts_bar { \n    position: fixed; bottom: 0; left: 0;\n    height: 37px; padding: 0 40px 0 13px; z-index: 10000; display: none; \n  }\n  #ts .ts_bar img { border: none; width: 23px; height: 23px; margin: 11px 0 0 0; padding: 0; vertical-align: middle; }\n  #ts .ts_initial_bar { display: block; }\n \n  #ts .ts_bar_left {\n    background: url('http://turnsocial.com/images/background_toolbar_left.png') no-repeat top left; \n    width: 13px; height: 37px; margin: 0; padding: 0; float: left;\n  }\n  #ts .ts_bar_middle {\n    background: url('http://turnsocial.com/images/background_toolbar_middle.png') repeat-x top center; \n    height: 37px; margin: 0; padding: 0; float: left;\n  }\n  #ts .ts_bar_right {\n    background: url('http://turnsocial.com/images/background_toolbar_right.png') no-repeat top right; \n    width: 13px; height: 37px; margin: 0; padding: 0; float: left; \n  }\n\n  #ts .ts_bar a:hover { text-decoration: none; } /* IE loves to underline... */\n  #ts .ts_bar a { text-decoration: none; outline: none; } /* remove focus dotted lines */\n  #ts #ts_app_links { display: inline; margin-right: 5px; }\n  #ts #ts_app_links img { margin-right: 5px; }\n\n  #ts .ts_error {\n    position: fixed; bottom: 0; left: 100px; right: 100px; color: #88a3d7; \n    display: none; text-align: center; z-index: 10000;\n    background-color: #fdd; color: #b00; font-weight: bold; padding: 10px; \n  }\n  #ts .ts_loading {\n    position: fixed; bottom: 2px; width: 125px; height: 25px; margin: auto; left: 50%; margin-left: -90px; display: none;\n    padding: 0; text-align: center; text-transform: uppercase;\n    z-index: 10000;\n  }\n\n  #ts #ts_shadow { \n    background-color: black; \n    position: fixed; left:0%; top:0%; width:100%; height: 100%; z-index:1001; display: none;\n    /* let jquery do the opacity, because it's a cross-browser nightmare */\n  }\n  \n  #ts .ts_widget { \n    font-family: Arial, sans-serif; display: none; background-color: white; position: fixed; \n    border: 2px solid #88a3d7; z-index: 10000; bottom: 43px; left: 16px;\n    font-size: 13px;\n  }\n  #ts .ts_json_app { overflow: auto; padding: 10px; }\n  #ts .ts_iframe_app { overflow: hidden; padding: 0; }\n  #ts .ts_iframe_app iframe { width: 100%; height: 100%; overflow-x: hidden; overflow-y: auto; }\n  \n  #ts .ts_widget a { color: #7D99CC; text-decoration: none; }\n  #ts .ts_widget a:hover { text-decoration: underline; }\n  #ts .ts_widget h1 { font-size: 28px; font-weight: bold; }\n  #ts .ts_widget h2 { font-size: 18px; font-weight: bold; }\n\n  /* ie8 and max height are a nightmare. don't bother with max height, and do it with javascript */\n  #ts #ts_facebook_comments { width: 600px; height: 500px; }\n  #ts #ts_facebook_fan { width: 500px; height: 550px; }\n  #ts #ts_facebook_fan iframe { height: 550px; }\n  #ts #ts_walkscore { width: 600px; height: 280px; }\n  /* walkscore's iframe content is actually much bigger than the viewable stuff. disable all scrolling */\n  #ts #ts_walkscore iframe { overflow: hidden; }\n  #ts #ts_share { width: 205px; height: 185px; }\n  /* firefox has issues with scrolling for some reason */\n  #ts #ts_share iframe { overflow: hidden; } \n  #ts #ts_youtube { width: 460px; height: 500px; }\n\n  #ts_twitter_user, #ts_twitter_search { width: 450px; }\n  #ts_twitter_user .ts_header, #ts_twitter_search .ts_header { padding: 10px; overflow: auto; }\n  #ts_twitter_user .ts_logo, #ts_twitter_search .ts_logo  { float: left; }\n  #ts_twitter_user .ts_header .ts_user, #ts_twitter_search .ts_header .ts_user  { text-align: right; font-size: 16px; }\n  #ts_twitter_user .ts_header .ts_user img, #ts_twitter_search .ts_header .ts_user img  { float: right; border: 0; padding-left: 10px; vertical-align: middle; width: 48px; height: 48px; }\n  #ts_twitter_user .ts_header h2, #ts_twitter_search .ts_header h2  { float: right; color: #F7941D; font-size: 16px; }\n  #ts_twitter_user .ts_tweet, #ts_twitter_search .ts_tweet  { clear: both; margin: 5px 0; border: 1px #e6e6e6 solid; overflow: auto; padding: 7px; }\n  #ts_twitter_user .ts_tweet img, #ts_twitter_search .ts_tweet img  { float: left; border: none; width: 48px; height: 48px; padding-right: 10px; }\n  #ts_twitter_user .ts_tweet .ts_created_at, #ts_twitter_search .ts_tweet .ts_created_at  { color: #888; }\n\n  #ts_twitter_user .ts_user_deets { text-align: right; } \n\n  #ts_outside { width: 600px; }\n  #ts_outside .ts_header { border-bottom: 1px solid #888; overflow: auto; margin-bottom: 10px; padding-bottom: 10px; }\n  #ts_outside .ts_header h1 { color: #F7941D; float: left; padding: 0; margin: 0; }\n  #ts_outside .ts_header .ts_logo { float: right; width: 131px; height: 27px; border: none; padding-top: 3px; }\n  #ts_outside .ts_story { margin: 10px 0; border: 1px #e6e6e6 solid; padding: 7px; }\n  #ts_outside .ts_story .about { color: #dad9dc; font-weight: bold; font-size: 12px; }\n  #ts_outside .ts_story h2 { padding: 0; margin: 0; font-size: 15px; }\n  #ts_outside .ts_story h2 a { color: #047; }\n  \n  #ts_rentwiki { width: 600px; }\n  #ts_rentwiki .ts_header { border-bottom: 1px solid #888; overflow: auto; margin-bottom: 10px; padding-bottom: 10px; }\n  #ts_rentwiki .ts_header h1 { color: #F7941D; float: left; padding: 0; margin: 0; }\n  #ts_rentwiki .ts_header .ts_logo { color: #888; text-align: right; line-height: 28px; }\n  #ts_rentwiki .ts_header .ts_logo img { float: right; width: 113px; height: 32px; border: none; padding: 0 10px; }\n  #ts_rentwiki h2 { padding: 2px 0; margin: 0; font-size: 20px; color: #047; }\n  #ts_rentwiki .ts_section { margin: 10px 0; border: 1px #e6e6e6 solid; padding: 7px; }\n\n  #ts_yelp_search { width: 610px; padding: 10px; }\n  #ts_yelp_search .ts_header { overflow: auto; padding: 0 5px; }\n  #ts_yelp_search .ts_header h1 { color: #F7941D; float: left; font-size: 28px; padding-top: 5px; }\n  #ts_yelp_search .ts_header img { float: right; width: 78px; height: 35px; border: none; }\n  #ts_yelp_search .ts_business { clear: both; margin: 5px 0; border: 1px #e6e6e6 solid; overflow: auto; padding: 7px; }\n  #ts_yelp_search .ts_title { font-size: 15px; margin-bottom: 3px; }\n  #ts_yelp_search .ts_photo { float: left; width: 100px; height: 100px; margin-right: 10px; }\n  #ts_yelp_search .ts_rightbox { float: right; width: 160px; font-size: 12px; }\n  #ts_yelp_search .ts_rightbox .ts_review_count { font-size: 10px; font-style: italic; vertical-align: top; line-height: 16px; }\n  #ts_yelp_search .ts_detail { font-weight: bold; }\n  #ts_yelp_search .ts_review { clear: right; font-size: 10px; padding-top: 4px; }\n  #ts_yelp_search .ts_review img { float: left; width: 20px; height: 20px; padding: 1px; border: solid #999 1px; margin-right: 8px; }\n  #ts_yelp_search .ts_neighborhoods, #ts_yelp_search .ts_categories, #ts_yelp_search .ts_distance { font-size: 11px; }\n\n  #ts_yelp_venue { width: 500px; padding: 10px; }\n  #ts_yelp_venue .ts_header { overflow: auto; border-bottom: 1px solid #999; padding-bottom: 10px; margin-bottom: 10px; }\n  #ts_yelp_venue .ts_header h1 { color: #F7941D; float: left; font-size: 28px; padding-top: 5px; }\n  #ts_yelp_venue .ts_header img { float: right; width: 78px; height: 35px; border: none; }\n  #ts_yelp_venue .ts_title { font-size: 15px; margin-bottom: 3px; }\n  #ts_yelp_venue .ts_photo { float: right; width: 100px; height: 100px; margin-right: 10px; }\n  #ts_yelp_venue .ts_review_count { font-size: 10px; font-style: italic; vertical-align: top; line-height: 16px; }\n  #ts_yelp_venue .ts_detail { font-weight: bold; }\n  #ts_yelp_venue .ts_reviews { border-top: 1px #aaa solid; margin-top: 10px; }\n  #ts_yelp_venue .ts_review { clear: both; font-size: 11px; padding-top: 10px; }\n  #ts_yelp_venue .ts_review_photo { float: left; width: 70px; height: 70px; padding: 1px; border: solid #999 1px; margin-right: 8px; }\n  #ts_yelp_venue .ts_neighborhoods, #ts_yelp_venue .ts_categories, #ts_yelp_venue .ts_distance { font-size: 11px; }\n\n  #ts_foursquare { width: 510px; padding: 10px; }\n  #ts_foursquare .ts_header { overflow: auto;  padding-bottom: 10px; margin-bottom: 10px; }\n  #ts_foursquare .ts_header img { width: 200px; height: 57px; border: none; }\n  #ts_foursquare h2 { font-size: 15px; margin-bottom: 3px; }\n  #ts_foursquare .ts_top { overflow: auto; }\n  #ts_foursquare .ts_info { float: left; border: 1px solid #eee; padding: 10px; width: 350px; height: 100%;  }\n  #ts_foursquare .ts_mayor { float: right; border: 1px solid #eee; padding: 10px; width: 95px; text-align: center; height: 100%; }\n  #ts_foursquare .ts_mayor .ts_mayor_title { font-size: 12px; font-weight: bold; }\n  #ts_foursquare .ts_mayor img { width: 50px; height: 50px; padding: 1px; border: solid #999 1px; }\n  #ts_foursquare .ts_tips { clear: both; margin-top: 10px; padding: 10px; border: 1px solid #eee; overflow: auto; }\n  #ts_foursquare .ts_tip { clear: both; padding-top: 10px; }\n  #ts_foursquare .ts_tip img { float: left; width: 60px; height: 60px; padding: 1px; border: solid #999 1px; margin-right: 8px; }\n  \n  #ts_flickr { width: 683px; padding: 10px; }\n  #ts_flickr .ts_header { overflow: auto; padding: 0 5px; }\n  #ts_flickr .ts_header h1 { color: #F7941D; float: left; font-size: 28px; padding-top: 5px; }\n  #ts_flickr .ts_header img { float: right; width: 78px; height: 35px; border: none; }\n  #ts_flickr .ts_current_photo { \n    float: left; width: 400px; height: 400px; padding: 2px; margin: 2px; border: solid 1px #ddd; \n    background: url('http://turnsocial.com/images/spinner.gif') no-repeat center center;\n    text-align: center;\n  }\n  #ts_flickr #ts_thumbs { float: left; width: 260px; height: 400px; overflow: auto; }\n  #ts_flickr #ts_thumbs img { float: right; padding: 3px; width: 75px; height: 75px; cursor: pointer; }\n  #ts_filcker .ts_selected_thumb { border: 2px solid black; }\n\n\n  /* qtip styles */\n  #ts div.ui-tooltip, #ts div.qtip{ \n    position: absolute; display: none; max-width: 600px; min-width: 50px; \n  }\n\n  #ts div.ui-tooltip .ui-tooltip-wrapper{\n    position: relative; overflow: hidden; border-width: 3px; border-style: solid;\n    border-color: #303030; background-color: #505050; \n    -moz-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; \n  }\n\n  #ts div.ui-tooltip .ui-tooltip-content{\n    position: relative; padding: 5px 9px; overflow: hidden; text-align: center; \n    letter-spacing: 0.05em; white-space: nowrap; font-size: 12px;\n    font-family: sans-serif; color: #f3f3f3 !important;\n  }\n\n  #ts div.ui-tooltip-tip{\n    position: absolute; margin: 0 auto;\n    line-height: 0.1px; font-size: 1px;\n    background: transparent !important;\n    border: 0px !important;\n  }\n\n  #ts div.ui-tooltip-tip *{\n    line-height: 0.1px; font-size: 0.1px;\n  }\n\n  #ts div.ui-tooltip-tip div.ui-tooltip-tip-inner{\n    background: transparent !important;\n    border: 0px solid transparent;\n  }\n</style>\n");
N.prototype.display_div=function(){return G("#ts_"+this.name)};N.prototype.link=function(){return G("#ts_"+this.name+"_link")};var F=null;N.prototype.activate=function(){var t=this;P.track("app opened",{name:t.name,key:"267751dc37e72e2c95fcab220974abf1"});if(t.loaded)t.show_display_div();else{this.displayWhenFinishedLoading=this.showErrors=true;G(".ts_loading").fadeIn();timeout_callback=function(){t.displayWhenFinishedLoading=false;if(t.showErrors){w(null);G(".ts_error").fadeIn();setTimeout(function(){G(".ts_error").fadeOut()},
3E3)}};var i=setTimeout(timeout_callback,1E4);t.load_content(function(){t.loaded=true;clearTimeout(i);if(t.displayWhenFinishedLoading){G(".ts_loading").hide();t.show_display_div()}})}};N.prototype.deactivate=function(t){if(this.loaded){t||G("#ts_shadow").hide();this.display_div().fadeOut(200)}else{this.showErrors=this.displayWhenFinishedLoading=false;G(".ts_loading").fadeOut()}};N.prototype.show_display_div=function(){var t=this,i=G("#ts_shadow");if(!i.is(":visible")){i.css("opacity",0);i.show()}i.fadeTo(200,
0.3,function(){t.display_div().fadeIn(200);t.display_div().css("top",null);t.display_div().position().top<16&&t.display_div().css("top",16)})};v.prototype=new N({});v.prototype.load_content=function(t){var i='<iframe src="'+this.src+'" marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" frameborder="0" scrolling="no"></iframe>';this.display_div().html(i);this.display_div().find("iframe").load(t)};v.prototype.type="iframe_app";p.prototype=new N({});p.prototype.load_content=
function(t){var i=this;G.getJSON(this.url,function(g){g=i.display(g);i.display_div().html(g);t()})};p.prototype.type="json_app";var B=[];B.push(new v({name:"share",description:"Share This Page",src:"http://turnsocial.com/apps/share?url="+encodeURIComponent(window.location)+"&title="+encodeURIComponent(document.title)}));B.push(new v({name:"facebook_fan",description:"Facebook Fan Page",src:"http://www.facebook.com/plugins/likebox.php?id=108085965881802&amp;width=500&amp;height=550&amp;stream=true&header=false&amp;connections=22",
scrollable:true}));B.push(new p({name:"twitter_user",description:"Twitter user @Gables5thStreet",url:"http://twitter.com/status/user_timeline/Gables5thStreet.json?count=8&callback=?",display:function(t){var i=t[0].user;return function(){var g=[];g.push('<div class="ts_header">\n  <img class="ts_logo" src="http://assets0.twitter.com/images/twitter.png" />\n  <div class="ts_user">\n    <a href="http://twitter.com/');g.push(i.screen_name);g.push('">\n      <img src="');g.push(i.profile_image_url);g.push('" />\n    </a>\n  </div>\n  <div class="ts_user_deets">\n    <a href="http://twitter.com/');
g.push(i.screen_name);g.push('">\n      @');g.push(i.screen_name);g.push("\n    </a>\n    <div>\n      ");g.push(i.followers_count);g.push(" Followers\n    </div>\n  </div>\n</div>\n\n");G.each(t,function(s,D){g.push('\n  <div class="ts_tweet">\n    ');g.push(m(D.text));g.push('\n    <span class="ts_created_at">\n      ');g.push(aa(D.created_at));g.push("\n      via \n      ");g.push(D.source);g.push("\n    </span>\n  </div>\n")});g.push("\n");return g.join("")}()}}));B.push(new v({name:"walkscore",
src:"http://www.walkscore.com/serve-tile.php?height=275&list_limit=10&street=1611%20W%205th%20St%2C%20Austin%2C%20TX%2078703%2C%20USA&width=600&wsid=ed254c0d69186ca9a5394bc17690ff93"}));B.push(new p({name:"outside",url:"http://turnsocial.com/apps/outside/267751dc37e72e2c95fcab220974abf1?callback=?",description:"Outside.in",display:function(t){return function(){var i=[];i.push('<div class="ts_header">\n  <h1>Recent Local Stories & News</h1>\n  <a href="http://outside.in">\n    <img src="http://assets0.outside.in/images/oi_logo_interim.png" class="ts_logo" />\n  </a>\n</div>\n\n');
G.each(t,function(g,s){i.push('\n  <div class="ts_story">\n    <h2><a href="');i.push(s.url);i.push('">');i.push(s.title);i.push("</a></h2>\n    ");i.push('\n    <div class="ts_about">\n      <a href="');i.push(s.url);i.push('">');i.push(s.author);i.push("</a> - ");i.push(s.published_at);i.push("\n    </div>\n\n    ");if(s.body!=undefined){i.push("\n      ");i.push('\n      <div class="ts_body">');i.push(I(s.body.replace(/<\/?[^>]+>/gi,""),400));i.push("</div>\n    ")}i.push("\n\n    ");if(s.places!=
undefined){i.push('\n      <div class="ts_places">\n        Where:\n        ');G.each(s.places,function(D,M){i.push('\n          <a class="ts_place" href="');i.push(M.url);i.push('">');i.push(M.name);i.push("</a>\n          ");D+1<s.places.length-1&&i.push("\n            &ndash;\n          ");i.push("\n        ")});i.push(" \n      </div>\n    ")}i.push("\n  </div>\n\n  ");i.push("\n  ");return g<3});i.push("\n");return i.join("")}()}}));B.push(new p({name:"yelp_search",url:"http://api.yelp.com/business_review_search?term=restaurants%20and%20bars&num_biz_requested=6&lat=30.2738085&long=-97.7635085&ywsid=gNRknj9RkN7Xa0zfrl5EuQ&callback=?",
display:function(t){var i=t.businesses;return function(){var g=[];g.push('<div class="ts_header">\n  <h1>Nearby Attractions</h1>\n  <a href="http://yelp.com">\n    <img src="http://turnsocial.com/images/yelp.png" />\n  </a>\n</div>\n\n');G.each(i,function(s,D){g.push('\n  <div class="ts_business">\n    <a href="');g.push(D.url);g.push('">\n      <img class="ts_photo" src="');g.push(D.photo_url);g.push('" />\n    </a>\n\n    <div class="ts_rightbox">\n      <img src="');g.push(D.rating_img_url);g.push('" />\n      <a class="ts_review_count" href="');
g.push(D.url);g.push('">\n        ');g.push(D.review_count);g.push(" Reviews\n      </a><br />\n\n      <address>\n        ");g.push(D.address1);g.push("<br />\n        ");g.push(D.city);g.push(", ");g.push(D.state_code);g.push(" ");g.push(D.zip);g.push("\n      </address>\n\n      <div>\n        ");g.push(da(D.phone));g.push('\n      </div>\n    </div>\n\n    <div class="ts_title">\n      <a href="');g.push(D.url);g.push('">\n        ');g.push((s+1).toString());g.push(". ");g.push(D.name);g.push('\n      </a>\n    </div>\n\n    <div class="ts_distance">\n      <span class="ts_detail">Distance: </span>\n      ');
g.push(Math.round(D.distance*10)/10);g.push(" miles\n    </div>\n\n    ");if(D.categories.length>0){g.push('\n      <div class="ts_categories">\n        <span class="ts_detail">\n          ');g.push(D.categories.length>1?"Categories":"Category");g.push(":\n        </span>\n        ");G.each(D.categories,function(M,J){g.push("");g.push(M==0?"":",");g.push("\n          ");g.push(J.name);g.push("")});g.push("\n      </div>\n    ")}g.push("\n\n    ");if(D.neighborhoods.length>0){g.push('\n      <div class="ts_neighborhoods">\n        <span class="ts_detail">\n          ');
g.push(D.neighborhoods.length>1?"Neighborhoods":"Neighborhood");g.push(":\n        </span>\n        ");G.each(D.neighborhoods,function(M,J){g.push("");g.push(M==0?"":",");g.push("\n          ");g.push(J.name);g.push("")});g.push("\n      </div>\n    ")}g.push('\n\n    <div class="ts_review">\n      <a href="');g.push(D.reviews[0].user_url);g.push('">\n        <img src="');g.push(D.reviews[0].user_photo_url_small);g.push('" />\n      </a>\n      ');g.push(D.reviews[0].text_excerpt);g.push('\n      <a href="');
g.push(D.reviews[0].url);g.push('">more</a>\n    </div>\n  </div>\n')});g.push("\n");return g.join("")}()}}));B.push(new p({name:"foursquare",url:"http://turnsocial.com/apps/foursquare/267751dc37e72e2c95fcab220974abf1?callback=?",display:function(t){G(function(){var i=G("#ts_foursquare .ts_info"),g=G("#ts_foursquare .ts_mayor"),s=Math.max(i.height(),g.height());i.height(s);g.height(s)});return function(){var i=[];i.push('<div class="ts_header">\n  <a href="http://foursquare.com">\n    <img src="http://turnsocial.com/images/foursquare_logo.png" />\n  </a>\n</div>\n\n<div class="ts_top">\n  <div class="ts_info">\n    <h2>');
i.push(t.venue.name);i.push("</h2>\n\n    <address>\n      ");i.push(t.venue.address);i.push("<br />\n      ");i.push(t.venue.crossstreet);i.push("<br />\n      ");i.push(t.venue.city);i.push("\n    </address>\n\n    <div>");i.push(t.venue.phone);i.push('</div>\n\n    <div class="ts_checkins">\n      Total Checkins: ');i.push(t.venue.stats.checkins);i.push('\n    </div>\n  </div>\n\n  <div class="ts_mayor">\n    <div class="ts_mayor_title">Current Mayor:</div>\n    ');if(t.venue.stats.mayor){i.push('\n      <img src="');
i.push(t.venue.stats.mayor.user.photo);i.push('" class="ts_user_photo" />\n      <div>\n        ');i.push(t.venue.stats.mayor.user.firstname);i.push("\n        ");i.push(t.venue.stats.mayor.user.lastname);i.push("\n      </div>\n      <div>\n        ");i.push(t.venue.stats.mayor.count);i.push(" checkins\n      </div>\n    ")}else i.push('\n      <img src="http://foursquare.com/img/icon_mayor.png" class="ts_user_photo" />\n      <div>No mayor yet!</div>\n    ');i.push("\n  </div>\n</div>\n\n");if(t.venue.tips){i.push('\n  <div class="ts_tips">\n    <h2>Tips</h2>\n    ');
G.each(t.venue.tips,function(g,s){i.push('\n      <div class="ts_tip">\n        <img src="');i.push(s.user.photo);i.push('" class="ts_user_photo" />\n        <div>\n          ');i.push(s.user.firstname);i.push("\n          ");i.push(s.user.lastname);i.push("\n        </div>\n        <div>");i.push(s.created);i.push("</div>\n        <div>");i.push(s.text);i.push("</div>\n        ");if(s.url){i.push("\n          <div>");i.push(s.url);i.push("</div>\n        ")}i.push("\n      </div>\n    ")});i.push("\n  </div>\n")}i.push("\n");
return i.join("")}()}}));if(!y()){G("#ts_full_bar").removeClass("ts_initial_bar");G("#ts_hidden_bar").addClass("ts_initial_bar");G("#ts_toolbar_arrow").hide()}var P={track:function(t,i){var g=[];for(var s in i)g.push(encodeURIComponent(s)+"="+encodeURIComponent(i[s]));g.push("t="+(new Date).getTime().toString());g="http://turnsocial.com/track/"+encodeURIComponent(t)+"?"+g.join("&");G("#ts_analytics").remove();s=G('<iframe id="ts_analytics" style="display: none !important;" width="0" height="0"></iframe>');
s.attr("src",g);G("#ts").append(s)}};G.each(B,function(t,i){var g='<a href="#" id="ts_'+i.name+'_link" class="ts_app_link" onclick="return false;"><img class="ts_app_image" src="http://turnsocial.com/images/icons/'+i.name+'.png" alt="'+i.description+'" /></a>';G("#ts_app_links").append(G(g));G("#ts").append(G('<div id="ts_'+i.name+'" class="ts_widget ts_'+i.type+'"></div>'))});var T={tip:{corner:true,adjust:true},radius:8};G(".ts_bar img").each(function(){var t=G(this);t.qtip({content:t.attr("alt"),
position:{at:"top left",my:"bottom left",container:G("#ts")},style:T,show:{delay:50,effect:function(){this.fadeIn(200)}},hide:{delay:0,effect:function(){this.fadeOut(200)}}})});G("#ts_shadow").bind("click",function(){w(null);return false});G(".ts_widget a").live("click",function(t){t.stopPropagation();window.open(this.href);return false});G(".ts_show_hide").click(function(){w(null);G(".ts_bar").slideToggle();var t=!y();x("turnsocial_visible",t);G("#ts_toolbar_arrow").animate({opacity:"toggle"})});
G.each(B,function(){var t=this;t.link().click(function(){w(t)})});G("#ts_myspace_link").click(function(){window.open("http://myspace.com/");P.track("app opened",{name:"myspace",key:"267751dc37e72e2c95fcab220974abf1"})});G(".ts_initial_bar").hide();var c=setInterval(function(){var t=true;G(".ts_initial_bar img").each(function(){t=t&&this.complete});if(t){G(".ts_initial_bar").slideDown();clearInterval(c);P.track("toolbar",{site:location.href,key:"267751dc37e72e2c95fcab220974abf1"})}},200)}})})();
