(function(g,h){function k(){if(!c.isReady){try{A.documentElement.doScroll("left")}catch(a){setTimeout(k,1);return}c.ready()}}function q(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 j(a,b,d,f,e,m){var n=a.length;if(typeof b==="object"){for(var v in b)j(a,v,b[v],f,e,d);return a}if(d!==h){f=!m&&f&&c.isFunction(d);for(v=0;v<n;v++)e(a[v],b,f?d.call(a[v],v,e(a[v],b)):d,m);return a}return n?
e(a[0],b):h}function p(){return(new Date).getTime()}function r(){return false}function C(){return true}function w(a,b,d){d[0].type=a;return c.event.handle.apply(b,d)}function D(a){var b,d=[],f=[],e=arguments,m,n,v,s,x,B;n=c.data(this,"events");if(!(a.liveFired===this||!n||!n.live||a.button&&a.type==="click")){a.liveFired=this;var H=n.live.slice(0);for(s=0;s<H.length;s++){n=H[s];n.origType.replace(da,"")===a.type?f.push(n.selector):H.splice(s--,1)}m=c(a.target).closest(f,a.currentTarget);x=0;for(B=
m.length;x<B;x++)for(s=0;s<H.length;s++){n=H[s];if(m[x].selector===n.selector){v=m[x].elem;f=null;if(n.preType==="mouseenter"||n.preType==="mouseleave")f=c(a.relatedTarget).closest(n.selector)[0];if(!f||f!==v)d.push({elem:v,handleObj:n})}}x=0;for(B=d.length;x<B;x++){m=d[x];a.currentTarget=m.elem;a.data=m.handleObj.data;a.handleObj=m.handleObj;if(m.handleObj.origHandler.apply(m.elem,e)===false){b=false;break}}return b}}function K(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,
"&")}function N(a,b){var d=0;b.each(function(){if(this.nodeName===(a[d]&&a[d].nodeName)){var f=c.data(a[d++]),e=c.data(this,f);if(f=f&&f.events){delete e.handle;e.events={};for(var m in f)for(var n in f[m])c.event.add(this,m,f[m][n],f[m][n].data)}}})}function M(a,b,d){var f,e,m;b=b&&b[0]?b[0].ownerDocument||b[0]:A;if(a.length===1&&typeof a[0]==="string"&&a[0].length<512&&b===A&&!za.test(a[0])&&(c.support.checkClone||!Aa.test(a[0]))){e=true;if(m=c.fragments[a[0]])if(m!==1)f=m}if(!f){f=b.createDocumentFragment();
c.clean(a,b,f,d)}if(e)c.fragments[a[0]]=m?f:1;return{fragment:f,cacheable:e}}function Q(a,b){var d={};c.each(Ba.concat.apply([],Ba.slice(0,b)),function(){d[this]=a});return d}function V(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)},Z=g.jQuery,U=g.$,A=g.document,P,ea=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Va=/^.[^:#\[\.,]*$/,Wa=/\S/,Xa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Ya=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,fa=navigator.userAgent,
Ca=false,ga=[],aa,ma=Object.prototype.toString,na=Object.prototype.hasOwnProperty,oa=Array.prototype.push,ha=Array.prototype.slice,Da=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f,e;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=A;this[0]=A.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=ea.exec(a))&&(d[1]||!b))if(d[1]){e=b?b.ownerDocument||b:A;if(f=Ya.exec(a))if(c.isPlainObject(b)){a=
[A.createElement(f[1])];c.fn.attr.call(a,b,true)}else a=[e.createElement(f[1])];else{f=M([d[1]],[e]);a=(f.cacheable?f.fragment.cloneNode(true):f.fragment).childNodes}return c.merge(this,a)}else{if(f=A.getElementById(d[2])){if(f.id!==d[2])return P.find(a);this.length=1;this[0]=f}this.context=A;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=A;a=A.getElementsByTagName(a);return c.merge(this,a)}else return!b||b.jquery?(b||P).find(a):c(b).find(a);else if(c.isFunction(a))return P.ready(a);
if(a.selector!==h){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 ha.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 f=c();c.isArray(a)?oa.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b==="find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+
"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(A,c);else ga&&ga.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(ha.apply(this,arguments),"slice",ha.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:oa,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,f=false,e,m,n,v;if(typeof a==="boolean"){f=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((e=arguments[b])!=null)for(m in e){n=a[m];v=e[m];if(a!==v)if(f&&v&&(c.isPlainObject(v)||c.isArray(v))){n=n&&(c.isPlainObject(n)||c.isArray(n))?n:c.isArray(v)?[]:{};a[m]=c.extend(f,n,v)}else if(v!==h)a[m]=
v}return a};c.extend({noConflict:function(a){g.$=U;if(a)g.jQuery=Z;return c},isReady:false,ready:function(){if(!c.isReady){if(!A.body)return setTimeout(c.ready,13);c.isReady=true;if(ga){for(var a,b=0;a=ga[b++];)a.call(A,c);ga=null}c.fn.triggerHandler&&c(A).triggerHandler("ready")}},bindReady:function(){if(!Ca){Ca=true;if(A.readyState==="complete")return c.ready();if(A.addEventListener){A.addEventListener("DOMContentLoaded",aa,false);g.addEventListener("load",c.ready,false)}else if(A.attachEvent){A.attachEvent("onreadystatechange",
aa);g.attachEvent("onload",c.ready);var a=false;try{a=g.frameElement==null}catch(b){}A.documentElement.doScroll&&a&&k()}}},isFunction:function(a){return ma.call(a)==="[object Function]"},isArray:function(a){return ma.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||ma.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!na.call(a,"constructor")&&!na.call(a.constructor.prototype,"isPrototypeOf"))return false;for(var b in a);return b===h||na.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 g.JSON&&g.JSON.parse?g.JSON.parse(a):(new Function("return "+a))();else c.error("Invalid JSON: "+a)},noop:function(){},globalEval:function(a){if(a&&
Wa.test(a)){var b=A.getElementsByTagName("head")[0]||A.documentElement,d=A.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(A.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 f,e=0,m=a.length,n=m===h||c.isFunction(a);if(d)if(n)for(f in a){if(b.apply(a[f],d)===false)break}else for(;e<m;){if(b.apply(a[e++],d)===false)break}else if(n)for(f in a){if(b.call(a[f],
f,a[f])===false)break}else for(d=a[0];e<m&&b.call(d,e,d)!==false;d=a[++e]);return a},trim:function(a){return(a||"").replace(Xa,"")},makeArray:function(a,b){var d=b||[];if(a!=null)a.length==null||typeof a==="string"||c.isFunction(a)||typeof a!=="function"&&a.setInterval?oa.call(d,a):c.merge(d,a);return d},inArray:function(a,b){if(b.indexOf)return b.indexOf(a);for(var d=0,f=b.length;d<f;d++)if(b[d]===a)return d;return-1},merge:function(a,b){var d=a.length,f=0;if(typeof b.length==="number")for(var e=
b.length;f<e;f++)a[d++]=b[f];else for(;b[f]!==h;)a[d++]=b[f++];a.length=d;return a},grep:function(a,b,d){for(var f=[],e=0,m=a.length;e<m;e++)!d!==!b(a[e],e)&&f.push(a[e]);return f},map:function(a,b,d){for(var f=[],e,m=0,n=a.length;m<n;m++){e=b(a[m],m,d);if(e!=null)f[f.length]=e}return f.concat.apply([],f)},guid:1,proxy:function(a,b,d){if(arguments.length===2)if(typeof b==="string"){d=a;a=d[b];b=h}else if(b&&!c.isFunction(b)){d=b;b=h}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:{}});fa=c.uaMatch(fa);if(fa.browser){c.browser[fa.browser]=true;c.browser.version=fa.version}if(c.browser.webkit)c.browser.safari=true;if(Da)c.inArray=function(a,b){return Da.call(b,a)};P=c(A);if(A.addEventListener)aa=
function(){A.removeEventListener("DOMContentLoaded",aa,false);c.ready()};else if(A.attachEvent)aa=function(){if(A.readyState==="complete"){A.detachEvent("onreadystatechange",aa);c.ready()}};(function(){c.support={};var a=A.documentElement,b=A.createElement("script"),d=A.createElement("div"),f="script"+p();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 e=d.getElementsByTagName("*"),m=d.getElementsByTagName("a")[0];
if(!(!e||!e.length||!m)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(m.getAttribute("style")),hrefNormalized:m.getAttribute("href")==="/a",opacity:/^0.55$/.test(m.style.opacity),cssFloat:!!m.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:A.createElement("select").appendChild(A.createElement("option")).selected,parentNode:d.removeChild(d.appendChild(A.createElement("div"))).parentNode===
null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(A.createTextNode("window."+f+"=1;"))}catch(n){}a.insertBefore(b,a.firstChild);if(g[f]){c.support.scriptEval=true;delete g[f]}try{delete b.test}catch(v){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function s(){c.support.noCloneEvent=false;d.detachEvent("onclick",s)});d.cloneNode(true).fireEvent("onclick")}d=A.createElement("div");
d.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";a=A.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var s=A.createElement("div");s.style.width=s.style.paddingLeft="1px";A.body.appendChild(s);c.boxModel=c.support.boxModel=s.offsetWidth===2;A.body.removeChild(s).style.display="none"});a=function(s){var x=A.createElement("div");s="on"+s;var B=s in x;if(!B){x.setAttribute(s,"return;");B=typeof x[s]===
"function"}return B};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=m=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var W="jQuery"+p(),Za=0,Ea={};c.extend({cache:{},expando:W,noData:{embed:true,object:true,applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=
a==g?Ea:a;var f=a[W],e=c.cache;if(!f&&typeof b==="string"&&d===h)return null;f||(f=++Za);if(typeof b==="object"){a[W]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[W]=f;e[f]={}}a=e[f];if(d!==h)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==g?Ea:a;var d=a[W],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando];else a.removeAttribute&&a.removeAttribute(c.expando);
delete f[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===h){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===h&&this.length)f=c.data(this[0],a);return f===h&&d[1]?this.data(d[0]):f}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 f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===h)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 Fa=/[\n\t]/g,pa=/\s+/,$a=/\r/g,ab=/href|src|style/,bb=/(button|input)/i,cb=/(button|input|object|select|textarea)/i,db=/^(a|area)$/i,Ga=/radio|checkbox/;c.fn.extend({attr:function(a,
b){return j(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(x){var B=c(this);B.addClass(a.call(this,x,B.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(pa),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1)if(e.className){for(var m=" "+e.className+" ",n=e.className,v=0,s=b.length;v<s;v++)if(m.indexOf(" "+b[v]+" ")<
0)n+=" "+b[v];e.className=c.trim(n)}else e.className=a}return this},removeClass:function(a){if(c.isFunction(a))return this.each(function(s){var x=c(this);x.removeClass(a.call(this,s,x.attr("class")))});if(a&&typeof a==="string"||a===h)for(var b=(a||"").split(pa),d=0,f=this.length;d<f;d++){var e=this[d];if(e.nodeType===1&&e.className)if(a){for(var m=(" "+e.className+" ").replace(Fa," "),n=0,v=b.length;n<v;n++)m=m.replace(" "+b[n]+" "," ");e.className=c.trim(m)}else e.className=""}return this},toggleClass:function(a,
b){var d=typeof a,f=typeof b==="boolean";if(c.isFunction(a))return this.each(function(e){var m=c(this);m.toggleClass(a.call(this,e,m.attr("class"),b),b)});return this.each(function(){if(d==="string")for(var e,m=0,n=c(this),v=b,s=a.split(pa);e=s[m++];){v=f?v:!n.hasClass(e);n[v?"addClass":"removeClass"](e)}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(Fa," ").indexOf(a)>-1)return true;return false},val:function(a){if(a===h){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,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var m=b?d:0;for(d=b?d+1:e.length;m<d;m++){var n=e[m];if(n.selected){a=c(n).val();if(b)return a;f.push(a)}}return f}if(Ga.test(b.type)&&
!c.support.checkOn)return b.getAttribute("value")===null?"on":b.value;return(b.value||"").replace($a,"")}return h}var v=c.isFunction(a);return this.each(function(s){var x=c(this),B=a;if(this.nodeType===1){if(v)B=a.call(this,s,x.val());if(typeof B==="number")B+="";if(c.isArray(B)&&Ga.test(this.type))this.checked=c.inArray(x.val(),B)>=0;else if(c.nodeName(this,"select")){var H=c.makeArray(B);c("option",this).each(function(){this.selected=c.inArray(c(this).val(),H)>=0});if(!H.length)this.selectedIndex=
-1}else this.value=B}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return h;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==h;b=f&&c.props[b]||b;if(a.nodeType===1){var m=ab.test(b);if(b in a&&f&&!m){if(e){b==="type"&&bb.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:cb.test(a.nodeName)||db.test(a.nodeName)&&a.href?0:h;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&m?a.getAttribute(b,2):a.getAttribute(b);return a===null?h:a}return c.style(a,b,d)}});var da=/\.(.*)$/,eb=function(a){return a.replace(/[^\w\s\.\|`]/g,function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===
3||a.nodeType===8)){if(a.setInterval&&a!==g&&!a.frameElement)a=g;var e,m;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(m=c.data(a)){var n=m.events=m.events||{},v=m.handle;if(!v)m.handle=v=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(v.elem,arguments):h};v.elem=a;b=b.split(" ");for(var s,x=0,B;s=b[x++];){m=e?c.extend({},e):{handler:d,data:f};if(s.indexOf(".")>-1){B=s.split(".");s=B.shift();m.namespace=B.slice(0).sort().join(".")}else{B=[];m.namespace=
""}m.type=s;m.guid=d.guid;var H=n[s],J=c.event.special[s]||{};if(!H){H=n[s]=[];if(!J.setup||J.setup.call(a,f,B,v)===false)if(a.addEventListener)a.addEventListener(s,v,false);else a.attachEvent&&a.attachEvent("on"+s,v)}if(J.add){J.add.call(a,m);if(!m.handler.guid)m.handler.guid=d.guid}H.push(m);c.event.global[s]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,m=0,n,v,s,x,B,H,J=c.data(a),O=J&&J.events;if(J&&O){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b===
"string"&&b.charAt(0)==="."){b=b||"";for(e in O)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[m++];){x=e;n=e.indexOf(".")<0;v=[];if(!n){v=e.split(".");e=v.shift();s=RegExp("(^|\\.)"+c.map(v.slice(0).sort(),eb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(B=O[e])if(d){x=c.event.special[e]||{};for(L=f||0;L<B.length;L++){H=B[L];if(d.guid===H.guid){if(n||s.test(H.namespace)){f==null&&B.splice(L--,1);x.remove&&x.remove.call(a,H)}if(f!=null)break}}if(B.length===0||f!=null&&B.length===1){if(!x.teardown||x.teardown.call(a,
v)===false)Ha(a,e,J.handle);delete O[e]}}else for(var L=0;L<B.length;L++){H=B[L];if(n||s.test(H.namespace)){c.event.remove(a,x,H.handler,L);B.splice(L--,1)}}}if(c.isEmptyObject(O)){if(b=J.handle)b.elem=null;delete J.events;delete J.handle;c.isEmptyObject(J)&&c.removeData(a)}}}}},trigger:function(a,b,d,f){var e=a.type||a;if(!f){a=typeof a==="object"?a[W]?a:c.extend(c.Event(e),a):c.Event(e);if(e.indexOf("!")>=0){a.type=e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,
function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return h;a.result=h;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(m){}if(!a.isPropagationStopped()&&f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var n,
v=c.nodeName(f,"a")&&e==="click",s=c.event.special[e]||{};if((!s._default||s._default.call(d,a)===false)&&!v&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(n=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(x){}if(n)f["on"+e]=n;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||g.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive;if(!b){d=a.type.split(".");a.type=d.shift();f=RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+
"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var m=d.length;e<m;e++){var n=d[e];if(b||f.test(n.namespace)){a.handler=n.handler;a.data=n.data;a.handleObj=n;n=n.handler.apply(this,arguments);if(n!==h){a.result=n;if(n===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[W])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||A;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=A.documentElement;d=A.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!==h)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:D}))},remove:function(a){var b=true,d=a.origType.replace(da,"");c.each(c.data(this,
"events").live||[],function(){if(d===this.origType.replace(da,""))return b=false});b&&c.event.remove(this,a.origType,D)}},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 Ha=A.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=p();this[W]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=C;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=C;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=C;this.stopPropagation()},isDefaultPrevented:r,isPropagationStopped:r,
isImmediatePropagationStopped:r};var Ia=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){}},Ja=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?Ja:Ia,a)},teardown:function(d){c.event.remove(this,b,d&&d.selector?Ja:Ia)}}});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 w("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 w("submit",this,arguments)})}else return false},teardown:function(){c.event.remove(this,".specialSubmit")}};if(!c.support.changeBubbles){var qa=
/textarea|input|select/i,ra,Ka=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(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},sa=function(a,b){var d=a.target,f,e;if(!(!qa.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Ka(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data",e);if(!(f===h||e===f))if(f!=null||
e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:sa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return sa.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 sa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a,"_change_data",Ka(a))}},setup:function(){if(this.type===
"file")return false;for(var a in ra)c.event.add(this,a+".specialChange",ra[a]);return qa.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return qa.test(this.nodeName)}};ra=c.event.special.change.filters}A.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}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,f,e){if(typeof d==="object"){for(var m in d)this[b](m,f,d[m],e);return this}if(c.isFunction(f)){e=f;f=h}var n=b==="one"?c.proxy(e,function(s){c(this).unbind(s,n);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{m=0;for(var v=this.length;m<v;m++)c.event.add(this[m],d,n,f)}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 f=this.length;d<f;d++)c.event.remove(this[d],a,b)}return this},delegate:function(a,b,d,f){return this.live(b,d,f,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]){var d=c.Event(a);d.preventDefault();d.stopPropagation();c.event.trigger(d,b,this[0]);return d.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(f){var e=(c.data(this,"lastToggle"+a.guid)||0)%d;c.data(this,"lastToggle"+a.guid,e+1);f.preventDefault();return b[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var La={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};c.each(["live","die"],function(a,b){c.fn[b]=function(d,f,e,m){var n,v=0,s,x,B=m||this.selector,H=m?this:c(this.context);if(c.isFunction(f)){e=f;f=h}for(d=
(d||"").split(" ");(n=d[v++])!=null;){m=da.exec(n);s="";if(m){s=m[0];n=n.replace(da,"")}if(n==="hover")d.push("mouseenter"+s,"mouseleave"+s);else{x=n;if(n==="focus"||n==="blur"){d.push(La[n]+s);n+=s}else n=(La[n]||n)+s;b==="live"?H.each(function(){c.event.add(this,K(n,B),{data:f,selector:B,handler:e,origType:n,origHandler:e,preType:x})}):H.unbind(K(n,B),e)}}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});g.attachEvent&&!g.addEventListener&&g.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(l){for(var o="",t,u=0;l[u];u++){t=l[u];if(t.nodeType===3||t.nodeType===4)o+=t.nodeValue;else if(t.nodeType!==8)o+=a(t.childNodes)}return o}function b(l,o,t,u,z,y){z=0;for(var F=u.length;z<F;z++){var E=u[z];
if(E){E=E[l];for(var I=false;E;){if(E.sizcache===t){I=u[E.sizset];break}if(E.nodeType===1&&!y){E.sizcache=t;E.sizset=z}if(E.nodeName.toLowerCase()===o){I=E;break}E=E[l]}u[z]=I}}}function d(l,o,t,u,z,y){z=0;for(var F=u.length;z<F;z++){var E=u[z];if(E){E=E[l];for(var I=false;E;){if(E.sizcache===t){I=u[E.sizset];break}if(E.nodeType===1){if(!y){E.sizcache=t;E.sizset=z}if(typeof o!=="string"){if(E===o){I=true;break}}else if(s.filter(o,[E]).length>0){I=E;break}}E=E[l]}u[z]=I}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,
e=0,m=Object.prototype.toString,n=false,v=true;[0,0].sort(function(){v=false;return 0});var s=function(l,o,t,u){t=t||[];var z=o=o||A;if(o.nodeType!==1&&o.nodeType!==9)return[];if(!l||typeof l!=="string")return t;for(var y=[],F,E,I,ia,X=true,ba=G(o),Y=l;(f.exec(""),F=f.exec(Y))!==null;){Y=F[3];y.push(F[1]);if(F[2]){ia=F[3];break}}if(y.length>1&&B.exec(l))if(y.length===2&&x.relative[y[0]])E=ta(y[0]+y[1],o);else for(E=x.relative[y[0]]?[o]:s(y.shift(),o);y.length;){l=y.shift();if(x.relative[l])l+=y.shift();
E=ta(l,E)}else{if(!u&&y.length>1&&o.nodeType===9&&!ba&&x.match.ID.test(y[0])&&!x.match.ID.test(y[y.length-1])){F=s.find(y.shift(),o,ba);o=F.expr?s.filter(F.expr,F.set)[0]:F.set[0]}if(o){F=u?{expr:y.pop(),set:J(u)}:s.find(y.pop(),y.length===1&&(y[0]==="~"||y[0]==="+")&&o.parentNode?o.parentNode:o,ba);E=F.expr?s.filter(F.expr,F.set):F.set;if(y.length>0)I=J(E);else X=false;for(;y.length;){var S=y.pop();F=S;if(x.relative[S])F=y.pop();else S="";if(F==null)F=o;x.relative[S](I,F,ba)}}else I=[]}I||(I=E);
I||s.error(S||l);if(m.call(I)==="[object Array]")if(X)if(o&&o.nodeType===1)for(l=0;I[l]!=null;l++){if(I[l]&&(I[l]===true||I[l].nodeType===1&&R(o,I[l])))t.push(E[l])}else for(l=0;I[l]!=null;l++)I[l]&&I[l].nodeType===1&&t.push(E[l]);else t.push.apply(t,I);else J(I,t);if(ia){s(ia,z,t,u);s.uniqueSort(t)}return t};s.uniqueSort=function(l){if(L){n=v;l.sort(L);if(n)for(var o=1;o<l.length;o++)l[o]===l[o-1]&&l.splice(o--,1)}return l};s.matches=function(l,o){return s(l,null,null,o)};s.find=function(l,o,t){var u,
z;if(!l)return[];for(var y=0,F=x.order.length;y<F;y++){var E=x.order[y];if(z=x.leftMatch[E].exec(l)){var I=z[1];z.splice(1,1);if(I.substr(I.length-1)!=="\\"){z[1]=(z[1]||"").replace(/\\/g,"");u=x.find[E](z,o,t);if(u!=null){l=l.replace(x.match[E],"");break}}}}u||(u=o.getElementsByTagName("*"));return{set:u,expr:l}};s.filter=function(l,o,t,u){for(var z=l,y=[],F=o,E,I,ia=o&&o[0]&&G(o[0]);l&&o.length;){for(var X in x.filter)if((E=x.leftMatch[X].exec(l))!=null&&E[2]){var ba=x.filter[X],Y,S;S=E[1];I=false;
E.splice(1,1);if(S.substr(S.length-1)!=="\\"){if(F===y)y=[];if(x.preFilter[X])if(E=x.preFilter[X](E,F,t,y,u,ia)){if(E===true)continue}else I=Y=true;if(E)for(var ja=0;(S=F[ja])!=null;ja++)if(S){Y=ba(S,E,ja,F);var Ma=u^!!Y;if(t&&Y!=null)if(Ma)I=true;else F[ja]=false;else if(Ma){y.push(S);I=true}}if(Y!==h){t||(F=y);l=l.replace(x.match[X],"");if(!I)return[];break}}}if(l===z)if(I==null)s.error(l);else break;z=l}return F};s.error=function(l){throw"Syntax error, unrecognized expression: "+l;};var x=s.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(l){return l.getAttribute("href")}},relative:{"+":function(l,o){var t=typeof o==="string",u=t&&!/\W/.test(o);t=t&&!u;if(u)o=o.toLowerCase();u=0;for(var z=l.length,y;u<z;u++)if(y=l[u]){for(;(y=y.previousSibling)&&y.nodeType!==1;);l[u]=t||y&&y.nodeName.toLowerCase()===o?y||false:y===o}t&&s.filter(o,l,true)},">":function(l,o){var t=typeof o==="string";if(t&&!/\W/.test(o)){o=o.toLowerCase();for(var u=0,z=l.length;u<z;u++){var y=l[u];
if(y){t=y.parentNode;l[u]=t.nodeName.toLowerCase()===o?t:false}}}else{u=0;for(z=l.length;u<z;u++)if(y=l[u])l[u]=t?y.parentNode:y.parentNode===o;t&&s.filter(o,l,true)}},"":function(l,o,t){var u=e++,z=d;if(typeof o==="string"&&!/\W/.test(o)){var y=o=o.toLowerCase();z=b}z("parentNode",o,u,l,y,t)},"~":function(l,o,t){var u=e++,z=d;if(typeof o==="string"&&!/\W/.test(o)){var y=o=o.toLowerCase();z=b}z("previousSibling",o,u,l,y,t)}},find:{ID:function(l,o,t){if(typeof o.getElementById!=="undefined"&&!t)return(l=
o.getElementById(l[1]))?[l]:[]},NAME:function(l,o){if(typeof o.getElementsByName!=="undefined"){for(var t=[],u=o.getElementsByName(l[1]),z=0,y=u.length;z<y;z++)u[z].getAttribute("name")===l[1]&&t.push(u[z]);return t.length===0?null:t}},TAG:function(l,o){return o.getElementsByTagName(l[1])}},preFilter:{CLASS:function(l,o,t,u,z,y){l=" "+l[1].replace(/\\/g,"")+" ";if(y)return l;y=0;for(var F;(F=o[y])!=null;y++)if(F)if(z^(F.className&&(" "+F.className+" ").replace(/[\t\n]/g," ").indexOf(l)>=0))t||u.push(F);
else if(t)o[y]=false;return false},ID:function(l){return l[1].replace(/\\/g,"")},TAG:function(l){return l[1].toLowerCase()},CHILD:function(l){if(l[1]==="nth"){var o=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(l[2]==="even"&&"2n"||l[2]==="odd"&&"2n+1"||!/\D/.test(l[2])&&"0n+"+l[2]||l[2]);l[2]=o[1]+(o[2]||1)-0;l[3]=o[3]-0}l[0]=e++;return l},ATTR:function(l,o,t,u,z,y){o=l[1].replace(/\\/g,"");if(!y&&x.attrMap[o])l[1]=x.attrMap[o];if(l[2]==="~=")l[4]=" "+l[4]+" ";return l},PSEUDO:function(l,o,t,u,z){if(l[1]==="not")if((f.exec(l[3])||
"").length>1||/^\w/.test(l[3]))l[3]=s(l[3],null,null,o);else{l=s.filter(l[3],o,t,true^z);t||u.push.apply(u,l);return false}else if(x.match.POS.test(l[0])||x.match.CHILD.test(l[0]))return true;return l},POS:function(l){l.unshift(true);return l}},filters:{enabled:function(l){return l.disabled===false&&l.type!=="hidden"},disabled:function(l){return l.disabled===true},checked:function(l){return l.checked===true},selected:function(l){return l.selected===true},parent:function(l){return!!l.firstChild},empty:function(l){return!l.firstChild},
has:function(l,o,t){return!!s(t[3],l).length},header:function(l){return/h\d/i.test(l.nodeName)},text:function(l){return"text"===l.type},radio:function(l){return"radio"===l.type},checkbox:function(l){return"checkbox"===l.type},file:function(l){return"file"===l.type},password:function(l){return"password"===l.type},submit:function(l){return"submit"===l.type},image:function(l){return"image"===l.type},reset:function(l){return"reset"===l.type},button:function(l){return"button"===l.type||l.nodeName.toLowerCase()===
"button"},input:function(l){return/input|select|textarea|button/i.test(l.nodeName)}},setFilters:{first:function(l,o){return o===0},last:function(l,o,t,u){return o===u.length-1},even:function(l,o){return o%2===0},odd:function(l,o){return o%2===1},lt:function(l,o,t){return o<t[3]-0},gt:function(l,o,t){return o>t[3]-0},nth:function(l,o,t){return t[3]-0===o},eq:function(l,o,t){return t[3]-0===o}},filter:{PSEUDO:function(l,o,t,u){var z=o[1],y=x.filters[z];if(y)return y(l,t,o,u);else if(z==="contains")return(l.textContent||
l.innerText||a([l])||"").indexOf(o[3])>=0;else if(z==="not"){o=o[3];t=0;for(u=o.length;t<u;t++)if(o[t]===l)return false;return true}else s.error("Syntax error, unrecognized expression: "+z)},CHILD:function(l,o){var t=o[1],u=l;switch(t){case "only":case "first":for(;u=u.previousSibling;)if(u.nodeType===1)return false;if(t==="first")return true;u=l;case "last":for(;u=u.nextSibling;)if(u.nodeType===1)return false;return true;case "nth":t=o[2];var z=o[3];if(t===1&&z===0)return true;var y=o[0],F=l.parentNode;
if(F&&(F.sizcache!==y||!l.nodeIndex)){var E=0;for(u=F.firstChild;u;u=u.nextSibling)if(u.nodeType===1)u.nodeIndex=++E;F.sizcache=y}u=l.nodeIndex-z;return t===0?u===0:u%t===0&&u/t>=0}},ID:function(l,o){return l.nodeType===1&&l.getAttribute("id")===o},TAG:function(l,o){return o==="*"&&l.nodeType===1||l.nodeName.toLowerCase()===o},CLASS:function(l,o){return(" "+(l.className||l.getAttribute("class"))+" ").indexOf(o)>-1},ATTR:function(l,o){var t=o[1];t=x.attrHandle[t]?x.attrHandle[t](l):l[t]!=null?l[t]:
l.getAttribute(t);var u=t+"",z=o[2],y=o[4];return t==null?z==="!=":z==="="?u===y:z==="*="?u.indexOf(y)>=0:z==="~="?(" "+u+" ").indexOf(y)>=0:!y?u&&t!==false:z==="!="?u!==y:z==="^="?u.indexOf(y)===0:z==="$="?u.substr(u.length-y.length)===y:z==="|="?u===y||u.substr(0,y.length+1)===y+"-":false},POS:function(l,o,t,u){var z=x.setFilters[o[2]];if(z)return z(l,t,o,u)}}},B=x.match.POS,H;for(H in x.match){x.match[H]=RegExp(x.match[H].source+/(?![^\[]*\])(?![^\(]*\))/.source);x.leftMatch[H]=RegExp(/(^(?:.|\r|\n)*?)/.source+
x.match[H].source.replace(/\\(\d+)/g,function(l,o){return"\\"+(o-0+1)}))}var J=function(l,o){l=Array.prototype.slice.call(l,0);if(o){o.push.apply(o,l);return o}return l};try{Array.prototype.slice.call(A.documentElement.childNodes,0)}catch(O){J=function(l,o){var t=o||[];if(m.call(l)==="[object Array]")Array.prototype.push.apply(t,l);else if(typeof l.length==="number")for(var u=0,z=l.length;u<z;u++)t.push(l[u]);else for(u=0;l[u];u++)t.push(l[u]);return t}}var L;if(A.documentElement.compareDocumentPosition)L=
function(l,o){if(!l.compareDocumentPosition||!o.compareDocumentPosition){if(l==o)n=true;return l.compareDocumentPosition?-1:1}var t=l.compareDocumentPosition(o)&4?-1:l===o?0:1;if(t===0)n=true;return t};else if("sourceIndex"in A.documentElement)L=function(l,o){if(!l.sourceIndex||!o.sourceIndex){if(l==o)n=true;return l.sourceIndex?-1:1}var t=l.sourceIndex-o.sourceIndex;if(t===0)n=true;return t};else if(A.createRange)L=function(l,o){if(!l.ownerDocument||!o.ownerDocument){if(l==o)n=true;return l.ownerDocument?
-1:1}var t=l.ownerDocument.createRange(),u=o.ownerDocument.createRange();t.setStart(l,0);t.setEnd(l,0);u.setStart(o,0);u.setEnd(o,0);t=t.compareBoundaryPoints(Range.START_TO_END,u);if(t===0)n=true;return t};(function(){var l=A.createElement("div"),o="script"+(new Date).getTime();l.innerHTML="<a name='"+o+"'/>";var t=A.documentElement;t.insertBefore(l,t.firstChild);if(A.getElementById(o)){x.find.ID=function(u,z,y){if(typeof z.getElementById!=="undefined"&&!y)return(z=z.getElementById(u[1]))?z.id===
u[1]||typeof z.getAttributeNode!=="undefined"&&z.getAttributeNode("id").nodeValue===u[1]?[z]:h:[]};x.filter.ID=function(u,z){var y=typeof u.getAttributeNode!=="undefined"&&u.getAttributeNode("id");return u.nodeType===1&&y&&y.nodeValue===z}}t.removeChild(l);t=l=null})();(function(){var l=A.createElement("div");l.appendChild(A.createComment(""));if(l.getElementsByTagName("*").length>0)x.find.TAG=function(o,t){var u=t.getElementsByTagName(o[1]);if(o[1]==="*"){for(var z=[],y=0;u[y];y++)u[y].nodeType===
1&&z.push(u[y]);u=z}return u};l.innerHTML="<a href='#'></a>";if(l.firstChild&&typeof l.firstChild.getAttribute!=="undefined"&&l.firstChild.getAttribute("href")!=="#")x.attrHandle.href=function(o){return o.getAttribute("href",2)};l=null})();A.querySelectorAll&&function(){var l=s,o=A.createElement("div");o.innerHTML="<p class='TEST'></p>";if(!(o.querySelectorAll&&o.querySelectorAll(".TEST").length===0)){s=function(u,z,y,F){z=z||A;if(!F&&z.nodeType===9&&!G(z))try{return J(z.querySelectorAll(u),y)}catch(E){}return l(u,
z,y,F)};for(var t in l)s[t]=l[t];o=null}}();(function(){var l=A.createElement("div");l.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!l.getElementsByClassName||l.getElementsByClassName("e").length===0)){l.lastChild.className="e";if(l.getElementsByClassName("e").length!==1){x.order.splice(1,0,"CLASS");x.find.CLASS=function(o,t,u){if(typeof t.getElementsByClassName!=="undefined"&&!u)return t.getElementsByClassName(o[1])};l=null}}})();var R=A.compareDocumentPosition?function(l,
o){return!!(l.compareDocumentPosition(o)&16)}:function(l,o){return l!==o&&(l.contains?l.contains(o):true)},G=function(l){return(l=(l?l.ownerDocument||l:0).documentElement)?l.nodeName!=="HTML":false},ta=function(l,o){for(var t=[],u="",z,y=o.nodeType?[o]:o;z=x.match.PSEUDO.exec(l);){u+=z[0];l=l.replace(x.match.PSEUDO,"")}l=x.relative[l]?l+"*":l;z=0;for(var F=y.length;z<F;z++)s(l,y[z],t);return s.filter(u,t)};c.find=s;c.expr=s.selectors;c.expr[":"]=c.expr.filters;c.unique=s.uniqueSort;c.text=a;c.isXMLDoc=
G;c.contains=R})();var fb=/Until$/,gb=/^(?:parents|prevUntil|prevAll)/,hb=/,/;ha=Array.prototype.slice;var Na=function(a,b,d){if(c.isFunction(b))return c.grep(a,function(e,m){return!!b.call(e,m,e)===d});else if(b.nodeType)return c.grep(a,function(e){return e===b===d});else if(typeof b==="string"){var f=c.grep(a,function(e){return e.nodeType===1});if(Va.test(b))return c.filter(b,f,!d);else b=c.filter(b,f)}return c.grep(a,function(e){return c.inArray(e,b)>=0===d})};c.fn.extend({find:function(a){for(var b=
this.pushStack("","find",a),d=0,f=0,e=this.length;f<e;f++){d=b.length;c.find(a,this[f],b);if(f>0)for(var m=d;m<b.length;m++)for(var n=0;n<d;n++)if(b[n]===b[m]){b.splice(m--,1);break}}return b},has:function(a){var b=c(a);return this.filter(function(){for(var d=0,f=b.length;d<f;d++)if(c.contains(this,b[d]))return true})},not:function(a){return this.pushStack(Na(this,a,false),"not",a)},filter:function(a){return this.pushStack(Na(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=[],f=this[0],e,m={},n;if(f&&a.length){e=0;for(var v=a.length;e<v;e++){n=a[e];m[n]||(m[n]=c.expr.match.POS.test(n)?c(n,b||this.context):n)}for(;f&&f.ownerDocument&&f!==b;){for(n in m){e=m[n];if(e.jquery?e.index(f)>-1:c(f).is(e)){d.push({selector:n,elem:f});delete m[n]}}f=f.parentNode}}return d}var s=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(x,B){for(;B&&B.ownerDocument&&B!==b;){if(s?s.index(B)>-1:c(B).is(a))return B;
B=B.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){var d=typeof a==="string"?c(a,b||this.context):c.makeArray(a),f=c.merge(this.get(),d);return this.pushStack(!d[0]||!d[0].parentNode||d[0].parentNode.nodeType===11||!f[0]||!f[0].parentNode||f[0].parentNode.nodeType===11?f:c.unique(f))},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,f){var e=c.map(this,b,d);fb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||hb.test(f))&&gb.test(a))e=e.reverse();return this.pushStack(e,a,ha.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 f=[];for(a=a[b];a&&a.nodeType!==9&&(d===h||a.nodeType!==1||!c(a).is(d));){a.nodeType===1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===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 Oa=/ jQuery\d+="(?:\d+|null)"/g,ka=/^\s+/,Pa=/(<([\w:]+)[^>]*?)\/>/g,ib=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Qa=/<([\w:]+)/,jb=/<tbody/i,kb=/<|&#?\w+;/,
za=/<script|<object|<embed|<option|<style/i,Aa=/checked\s*(?:[^=]|=\s*.checked.)/i,Ra=function(a,b,d){return ib.test(d)?a:b+"></"+d+">"},T={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,"",""]};T.optgroup=T.option;T.tbody=T.tfoot=
T.colgroup=T.caption=T.thead;T.th=T.td;if(!c.support.htmlSerialize)T._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!==h)return this.empty().append((this[0]&&this[0].ownerDocument||A).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,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&
f.parentNode.removeChild(f)}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,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Oa,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(ka,
"")],f)[0]}else return this.cloneNode(true)});if(a===true){N(this,b);N(this.find("*"),b.find("*"))}return b},html:function(a){if(a===h)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Oa,""):null;else if(typeof a==="string"&&!za.test(a)&&(c.support.leadingWhitespace||!ka.test(a))&&!T[(Qa.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Pa,Ra);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(f){this.empty().append(a)}}else c.isFunction(a)?
this.each(function(e){var m=c(this),n=m.html();m.empty().append(function(){return a.call(this,e,n)})}):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),f=d.html();d.replaceWith(a.call(this,b,f))});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 f,e,m=a[0],n=[],v;if(!c.support.checkClone&&arguments.length===3&&typeof m==="string"&&Aa.test(m))return this.each(function(){c(this).domManip(a,b,d,true)});if(c.isFunction(m))return this.each(function(x){var B=c(this);a[0]=m.call(this,x,b?B.html():h);B.domManip(a,b,d)});if(this[0]){f=m&&m.parentNode;f=c.support.parentNode&&f&&f.nodeType===11&&f.childNodes.length===this.length?{fragment:f}:M(a,this,
n);v=f.fragment;if(e=v.childNodes.length===1?v=v.firstChild:v.firstChild){b=b&&c.nodeName(e,"tr");e=0;for(var s=this.length;e<s;e++)d.call(b?c.nodeName(this[e],"table")?this[e].getElementsByTagName("tbody")[0]||this[e].appendChild(this[e].ownerDocument.createElement("tbody")):this[e]:this[e],e>0||f.cacheable||this.length>1?v.cloneNode(true):v)}n.length&&c.each(n,q)}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 f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]);return this}else{e=0;for(var m=d.length;e<m;e++){var n=(e>0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),n);f=f.concat(n)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||A;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||A;for(var e=[],m=0,n;(n=a[m])!=null;m++){if(typeof n===
"number")n+="";if(n){if(typeof n==="string"&&!kb.test(n))n=b.createTextNode(n);else if(typeof n==="string"){n=n.replace(Pa,Ra);var v=(Qa.exec(n)||["",""])[1].toLowerCase(),s=T[v]||T._default,x=s[0],B=b.createElement("div");for(B.innerHTML=s[1]+n+s[2];x--;)B=B.lastChild;if(!c.support.tbody){x=jb.test(n);v=v==="table"&&!x?B.firstChild&&B.firstChild.childNodes:s[1]==="<table>"&&!x?B.childNodes:[];for(s=v.length-1;s>=0;--s)c.nodeName(v[s],"tbody")&&!v[s].childNodes.length&&v[s].parentNode.removeChild(v[s])}!c.support.leadingWhitespace&&
ka.test(n)&&B.insertBefore(b.createTextNode(ka.exec(n)[0]),B.firstChild);n=B.childNodes}if(n.nodeType)e.push(n);else e=c.merge(e,n)}}if(d)for(m=0;e[m];m++)if(f&&c.nodeName(e[m],"script")&&(!e[m].type||e[m].type.toLowerCase()==="text/javascript"))f.push(e[m].parentNode?e[m].parentNode.removeChild(e[m]):e[m]);else{e[m].nodeType===1&&e.splice.apply(e,[m+1,0].concat(c.makeArray(e[m].getElementsByTagName("script"))));d.appendChild(e[m])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,
m=c.support.deleteExpando,n=0,v;(v=a[n])!=null;n++)if(d=v[c.expando]){b=f[d];if(b.events)for(var s in b.events)e[s]?c.event.remove(v,s):Ha(v,s,b.handle);if(m)delete v[c.expando];else v.removeAttribute&&v.removeAttribute(c.expando);delete f[d]}}});var lb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Sa=/alpha\([^)]*\)/,Ta=/opacity=([^)]*)/,ua=/float/i,va=/-([a-z])/ig,mb=/([A-Z])/g,nb=/^-?\d+(?:px)?$/i,ob=/^-?\d/,pb={position:"absolute",visibility:"hidden",display:"block"},qb=["Left","Right"],
rb=["Top","Bottom"],sb=A.defaultView&&A.defaultView.getComputedStyle,Ua=c.support.cssFloat?"cssFloat":"styleFloat",wa=function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return j(this,a,b,true,function(d,f,e){if(e===h)return c.curCSS(d,f);if(typeof e==="number"&&!lb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return h;if((b==="width"||b==="height")&&parseFloat(d)<0)d=h;var f=a.style||a,e=d!==h;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=
1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter=Sa.test(a)?a.replace(Sa,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Ta.exec(f.filter)[1])/100+"":""}if(ua.test(b))b=Ua;b=b.replace(va,wa);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,m=b==="width"?qb:rb;d=function(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(m,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,
true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0})};a.offsetWidth!==0?d():c.swap(a,pb,d);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Ta.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ua.test(b))b=Ua;if(!d&&e&&e[b])f=e[b];else if(sb){if(ua.test(b))b="float";b=b.replace(mb,
"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f=a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(va,wa);f=a.currentStyle[b]||a.currentStyle[d];if(!nb.test(f)&&ob.test(f)){b=e.left;var m=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=m}}return f},swap:function(a,b,d){var f={},e;for(e in b){f[e]=a.style[e];a.style[e]=
b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b=a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var tb=p(),ub=/<script(.|\s)*?\/script>/gi,vb=/select|textarea/i,wb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,ca=/=\?(&|$)/,
xa=/\?/,xb=/(\?|&)_=.*?(&|$)/,yb=/^(\w+:)?\/\/([^\/?#]+)/,zb=/%20/g,Ab=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!=="string")return Ab.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var m=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(n,v){if(v==="success"||v==="notmodified")m.html(e?
c("<div />").append(n.responseText.replace(ub,"")).find(e):n.responseText);d&&m.each(d,[n.responseText,v,n])}});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||vb.test(this.nodeName)||wb.test(this.type))}).map(function(a,b){var d=c(this).val();return d==null?null:c.isArray(d)?c.map(d,function(f){return{name:b.name,
value:f}}):{name:b.name,value:d}}).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,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},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,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",
url:a,data:b,success:d,dataType:f})},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:g.XMLHttpRequest&&(g.location.protocol!=="file:"||!g.ActiveXObject)?function(){return new g.XMLHttpRequest}:function(){try{return new g.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(){e.success&&e.success.call(s,v,n,G);e.global&&f("ajaxSuccess",[G,e])}function d(){e.complete&&e.complete.call(s,G,n);e.global&&f("ajaxComplete",[G,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(z,y){(e.context?c(e.context):c.event).trigger(z,y)}var e=c.extend(true,{},c.ajaxSettings,a),m,n,v,s=a&&a.context||e,x=e.type.toUpperCase();if(e.data&&e.processData&&
typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(x==="GET")ca.test(e.url)||(e.url+=(xa.test(e.url)?"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!ca.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&ca.test(e.data)||ca.test(e.url))){m=e.jsonpCallback||"jsonp"+tb++;if(e.data)e.data=(e.data+"").replace(ca,"="+m+"$1");e.url=e.url.replace(ca,"="+m+"$1");e.dataType="script";g[m]=g[m]||
function(z){v=z;b();d();g[m]=h;try{delete g[m]}catch(y){}J&&J.removeChild(O)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache===false&&x==="GET"){var B=p(),H=e.url.replace(xb,"$1_="+B+"$2");e.url=H+(H===e.url?(xa.test(e.url)?"&":"?")+"_="+B:"")}if(e.data&&x==="GET")e.url+=(xa.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");B=(B=yb.exec(e.url))&&(B[1]&&B[1]!==location.protocol||B[2]!==location.host);if(e.dataType==="script"&&x==="GET"&&B){var J=A.getElementsByTagName("head")[0]||
A.documentElement,O=A.createElement("script");O.src=e.url;if(e.scriptCharset)O.charset=e.scriptCharset;if(!m){var L=false;O.onload=O.onreadystatechange=function(){if(!L&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){L=true;b();d();O.onload=O.onreadystatechange=null;J&&O.parentNode&&J.removeChild(O)}}}J.insertBefore(O,J.firstChild);return h}var R=false,G=e.xhr();if(G){e.username?G.open(x,e.url,e.async,e.username,e.password):G.open(x,e.url,e.async);try{if(e.data||a&&
a.contentType)G.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&G.setRequestHeader("If-Modified-Since",c.lastModified[e.url]);c.etag[e.url]&&G.setRequestHeader("If-None-Match",c.etag[e.url])}B||G.setRequestHeader("X-Requested-With","XMLHttpRequest");G.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ta){}if(e.beforeSend&&e.beforeSend.call(s,G,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");
G.abort();return false}e.global&&f("ajaxSend",[G,e]);var l=G.onreadystatechange=function(z){if(!G||G.readyState===0||z==="abort"){R||d();R=true;if(G)G.onreadystatechange=c.noop}else if(!R&&G&&(G.readyState===4||z==="timeout")){R=true;G.onreadystatechange=c.noop;n=z==="timeout"?"timeout":!c.httpSuccess(G)?"error":e.ifModified&&c.httpNotModified(G,e.url)?"notmodified":"success";var y;if(n==="success")try{v=c.httpData(G,e.dataType,e)}catch(F){n="parsererror";y=F}if(n==="success"||n==="notmodified")m||
b();else c.handleError(e,G,n,y);d();z==="timeout"&&G.abort();if(e.async)G=null}};try{var o=G.abort;G.abort=function(){G&&o.call(G);l("abort")}}catch(t){}e.async&&e.timeout>0&&setTimeout(function(){G&&!R&&l("timeout")},e.timeout);try{G.send(x==="POST"||x==="PUT"||x==="DELETE"?e.data:null)}catch(u){c.handleError(e,G,null,u);d()}e.async||l();return G}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},
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"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;
e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b==="json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(n,v){if(c.isArray(v))c.each(v,function(s,x){b||/\[\]$/.test(n)?f(n,x):d(n+"["+(typeof x==="object"||c.isArray(x)?s:"")+"]",x)});else!b&&v!=null&&typeof v==="object"?c.each(v,function(s,x){d(n+"["+s+"]",
x)}):f(n,v)}function f(n,v){v=c.isFunction(v)?v():v;e[e.length]=encodeURIComponent(n)+"="+encodeURIComponent(v)}var e=[];if(b===h)b=c.ajaxSettings.traditional;if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var m in a)d(m,a[m]);return e.join("&").replace(zb,"+")}});var ya={},Bb=/toggle|show|hide/,Cb=/^([+-]=)?([\d+-.]+)(.*)$/,la,Ba=[["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(Q("show",3),a,b);else{for(var d=0,f=this.length;d<f;d++){var e=c.data(this[d],"olddisplay");this[d].style.display=e||"";if(c.css(this[d],"display")==="none"){e=this[d].nodeName;var m;if(ya[e])m=ya[e];else{var n=c("<"+e+" />").appendTo("body");m=n.css("display");if(m==="none")m="block";n.remove();ya[e]=m}c.data(this[d],"olddisplay",m)}}d=0;for(f=this.length;d<f;d++)this[d].style.display=c.data(this[d],"olddisplay")||"";return this}},
hide:function(a,b){if(a||a===0)return this.animate(Q("hide",3),a,b);else{for(var d=0,f=this.length;d<f;d++){var e=c.data(this[d],"olddisplay");!e&&e!=="none"&&c.data(this[d],"olddisplay",c.css(this[d],"display"))}d=0;for(f=this.length;d<f;d++)this[d].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 f=d?a:c(this).is(":hidden");c(this)[f?
"show":"hide"]()}):this.animate(Q("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,f){var e=c.speed(b,d,f);if(c.isEmptyObject(a))return this.each(e.complete);return this[e.queue===false?"each":"queue"](function(){var m=c.extend({},e),n,v=this.nodeType===1&&c(this).is(":hidden"),s=this;for(n in a){var x=n.replace(va,wa);if(n!==x){a[x]=a[n];delete a[n];n=x}if(a[n]==="hide"&&v||a[n]==="show"&&
!v)return m.complete.call(this);if((n==="height"||n==="width")&&this.style){m.display=c.css(this,"display");m.overflow=this.style.overflow}if(c.isArray(a[n])){(m.specialEasing=m.specialEasing||{})[n]=a[n][1];a[n]=a[n][0]}}if(m.overflow!=null)this.style.overflow="hidden";m.curAnim=c.extend({},a);c.each(a,function(B,H){var J=new c.fx(s,m,B);if(Bb.test(H))J[H==="toggle"?v?"show":"hide":H](a);else{var O=Cb.exec(H),L=J.cur(true)||0;if(O){var R=parseFloat(O[2]),G=O[3]||"px";if(G!=="px"){s.style[B]=(R||
1)+G;L=(R||1)/J.cur(true)*L;s.style[B]=L+G}if(O[1])R=(O[1]==="-="?-1:1)*R+L;J.custom(L,R,G)}else J.custom(L,H,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var f=d.length-1;f>=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:Q("show",1),slideUp:Q("hide",1),slideToggle:Q("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,
d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration==="number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+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>-1E4?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(m){return e.step(m)}this.startTime=p();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!la)la=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=p(),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 f in this.options.curAnim)if(this.options.curAnim[f]!==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 e in this.options.curAnim)c.style(this.elem,e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/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,e,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(la);la=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 A.documentElement?function(a){var b=this[0];if(a)return this.each(function(e){c.offset.setOffset(this,a,e)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);var d=b.getBoundingClientRect(),f=b.ownerDocument;b=f.body;f=f.documentElement;
return{top:d.top+(self.pageYOffset||c.support.boxModel&&f.scrollTop||b.scrollTop)-(f.clientTop||b.clientTop||0),left:d.left+(self.pageXOffset||c.support.boxModel&&f.scrollLeft||b.scrollLeft)-(f.clientLeft||b.clientLeft||0)}}:function(a){var b=this[0];if(a)return this.each(function(x){c.offset.setOffset(this,a,x)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return c.offset.bodyOffset(b);c.offset.initialize();var d=b.offsetParent,f=b.ownerDocument,e,m=f.documentElement,n=f.body;
e=(f=f.defaultView)?f.getComputedStyle(b,null):b.currentStyle;for(var v=b.offsetTop,s=b.offsetLeft;(b=b.parentNode)&&b!==n&&b!==m;){if(c.offset.supportsFixedPosition&&e.position==="fixed")break;e=f?f.getComputedStyle(b,null):b.currentStyle;v-=b.scrollTop;s-=b.scrollLeft;if(b===d){v+=b.offsetTop;s+=b.offsetLeft;if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){v+=parseFloat(e.borderTopWidth)||0;s+=parseFloat(e.borderLeftWidth)||0}d=b.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&
e.overflow!=="visible"){v+=parseFloat(e.borderTopWidth)||0;s+=parseFloat(e.borderLeftWidth)||0}e=e}if(e.position==="relative"||e.position==="static"){v+=n.offsetTop;s+=n.offsetLeft}if(c.offset.supportsFixedPosition&&e.position==="fixed"){v+=Math.max(m.scrollTop,n.scrollTop);s+=Math.max(m.scrollLeft,n.scrollLeft)}return{top:v,left:s}};c.offset={initialize:function(){var a=A.body,b=A.createElement("div"),d,f,e,m=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;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==
5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==m;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 f=c(a),e=f.offset(),m=parseInt(c.curCSS(a,"top",true),10)||0,n=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a,d,e);d={top:b.top-e.top+m,left:b.left-e.left+n};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],
b=this.offsetParent(),d=this.offset(),f=/^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;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top-f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||A.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(f){var e=this[0],m;if(!e)return null;if(f!==h)return this.each(function(){if(m=V(this))m.scrollTo(!a?f:c(m).scrollLeft(),a?f:c(m).scrollTop());else this[d]=f});else return(m=V(e))?"pageXOffset"in m?m[a?"pageYOffset":"pageXOffset"]:c.support.boxModel&&m.document.documentElement[d]||m.document.body[d]:e[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(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(m){var n=c(this);n[d](f.call(this,m,n[d]()))});return"scrollTo"in e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+
b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===h?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});g.jQuery=g.$=c})(window);var shoreline={books:{initialize_autocomplete:function(){$(function(){$(".search_books").autocomplete({source:"/search.php?search_books=1",select:function(g,h){location.href=h.item.link}})})}},calendar:{initialize_nav_links:function(g,h){$("#calendar_prev_link").click(function(){$("#home_calendar_wrapper").css("opacity",0.5);$("#home_calendar_wrapper").before('<img src="/images/loading.gif" class="calendar_loading_image" style="position: absolute; margin-left: 150px; margin-top: 75px;">');$("#home_calendar_wrapper").load("/search.php?calendar_month="+
g,function(){$(".calendar_loading_image").remove();$("#home_calendar_wrapper").css("opacity",1)});return false});$("#calendar_next_link").click(function(){$("#home_calendar_wrapper").css("opacity",0.5);$("#home_calendar_wrapper").before('<img src="/images/loading.gif" class="calendar_loading_image" style="position: absolute; margin-left: 150px; margin-top: 75px;">');$("#home_calendar_wrapper").load("/search.php?calendar_month="+h,function(){$(".calendar_loading_image").remove();$("#home_calendar_wrapper").css("opacity",
1)});return false})},show_events_on_day:function(){return false}},contact:{initialize_form:function(){$("#contactform").submit(shoreline.contact.validate_contact_form)},validate_contact_form:function(){var g=document.contactform;if(g.name.value.length<=0){g.name.focus();g.name.style.background="#eeeeee";alert("Please enter Your Name");return false}else g.name.style.background="";if(g.email.value.search(/^[_a-z0-9-]+(\.[_a-z0-9]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/)==-1){g.email.focus();g.email.style.background=
"#eeeeee";alert("Please enter a valid Email Address");return false}else g.email.style.background=""}},leadersform:{initialize_form:function(){$("#leadersform").submit(shoreline.leadersform.validate_form);$('#leadersform input[name="date"]').datepicker()},validate_form:function(){var g=document.leadersform;if(g.name.value.length<=0){g.name.focus();g.name.style.background="#eeeeee";alert("Please enter a Group/Event Name");return false}else g.name.style.background="";if(g.date.value.length<=0){g.date.focus();
g.date.style.background="#eeeeee";alert("Please select a Date");return false}else g.date.style.background="";if(g.leaders.value.length<=0){g.leaders.focus();g.leaders.style.background="#eeeeee";alert("Please enter a Leader");return false}else g.leaders.style.background=""}},library:{initialize_add_form:function(){$("#libraryform").submit(shoreline.library.validate_library_form)},validate_library_form:function(){var g=document.libraryform;if(g.Title.value.length<=0){g.Title.focus();g.Title.style.background=
"#eeeeee";alert("Please enter a Title");return false}else g.Title.style.background="";if(g.Category.value.length<=0){g.Category.focus();g.Category.style.background="#eeeeee";alert("Please enter a Category");return false}else g.Category.style.background=""}},lists:{initialize_form:function(){$("#listform").submit(shoreline.lists.validate_lists_form)},validate_lists_form:function(){var g=document.listform;if(g.email.value.search(/^[_a-z0-9-]+(\.[_a-z0-9]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/)==
-1){g.email.focus();g.email.style.background="#eeeeee";alert("Please enter a valid Email Address");return false}else g.email.style.background=""}},prayer:{initialize_form:function(){$("#prayerform").submit(shoreline.prayer.validate_prayer_form)},validate_prayer_form:function(){var g=document.prayerform;if(g.name.value.length<=0){g.name.focus();g.name.style.background="#eeeeee";alert("Please enter Your Name");return false}else g.name.style.background="";if(g.email.value.search(/^[_a-z0-9-]+(\.[_a-z0-9]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/)==
-1){g.email.focus();g.email.style.background="#eeeeee";alert("Please enter a valid Email Address");return false}else g.email.style.background="";if(g.subject.value.length<=0){g.subject.focus();g.subject.style.background="#eeeeee";alert("Please enter a Subject of your prayer request");return false}else g.subject.style.background="";if(g.location.value.length<=0){g.location.focus();g.location.style.background="#eeeeee";alert("Please enter Your Location");return false}else g.location.style.background=
""}},songs:{initialize_autocomplete:function(){$(function(){$(".search_songs").autocomplete({source:"/search.php?search_songs=1",select:function(g,h){location.href=h.item.link}})})},initialize:function(){$(".song").hover(function(){$(this).addClass("song_hover")},function(){$(this).removeClass("song_hover")});$(".search_songs").keyup(function(){$(".search_songs").data("changed",this)});setInterval(function(){if($(".search_songs").data("changed")){$.getJSON("/search.php?search_songs=1&song_search="+
$(".search_songs").data("changed").value,shoreline.songs.update_song_list);$(".search_songs").data("changed",false)}},500)},update_song_list:function(g){$(".song").each(function(h,k){g[k.id.replace("song_","")]?$("#"+k.id).show():$("#"+k.id).hide()})},initialize_player:function(g,h,k){k||(k=500);$(function(){$("#"+g).jwPlayer({id:g+"_jsobject",swf:"/js/jwplayer/player.swf",file:h,height:24,width:k})})}},search:{initialize_autocomplete:function(g){$(function(){$("#"+g).autocomplete({source:"/search.php?search_string=1",
minLength:3,select:function(h,k){location.href=k.item.link}})})}},sermons:{initialize_autocomplete:function(g){$(function(){$("#"+g).autocomplete({source:"/search.php?search_sermons=1",select:function(h,k){location.href=k.item.link}})})}}};$(document).ready(function(){$("a[href$='.pdf'],a[href$='.mp3']").attr("target","_blank");$("a[href$='.pdf'],a[href$='.mp3']").click(function(){_gat._getTracker("UA-1102178-7")._trackPageview("http://ccshoreline.org/"+$(this).attr("href"))})});(function(g){g.ui=g.ui||{};if(!g.ui.version){g.extend(g.ui,{version:"1.8.2",plugin:{add:function(h,k,q){h=g.ui[h].prototype;for(var j in q){h.plugins[j]=h.plugins[j]||[];h.plugins[j].push([k,q[j]])}},call:function(h,k,q){if((k=h.plugins[k])&&h.element[0].parentNode)for(var j=0;j<k.length;j++)h.options[k[j][0]]&&k[j][1].apply(h.element,q)}},contains:function(h,k){return document.compareDocumentPosition?h.compareDocumentPosition(k)&16:h!==k&&h.contains(k)},hasScroll:function(h,k){if(g(h).css("overflow")==
"hidden")return false;k=k&&k=="left"?"scrollLeft":"scrollTop";var q=false;if(h[k]>0)return true;h[k]=1;q=h[k]>0;h[k]=0;return q},isOverAxis:function(h,k,q){return h>k&&h<k+q},isOver:function(h,k,q,j,p,r){return g.ui.isOverAxis(h,q,p)&&g.ui.isOverAxis(k,j,r)},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,
NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});g.fn.extend({_focus:g.fn.focus,focus:function(h,k){return typeof h==="number"?this.each(function(){var q=this;setTimeout(function(){g(q).focus();k&&k.call(q)},h)}):this._focus.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect",
"none")},scrollParent:function(){var h;h=g.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(g.curCSS(this,"position",1))&&/(auto|scroll)/.test(g.curCSS(this,"overflow",1)+g.curCSS(this,"overflow-y",1)+g.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(g.curCSS(this,"overflow",1)+g.curCSS(this,"overflow-y",1)+g.curCSS(this,"overflow-x",
1))}).eq(0);return/fixed/.test(this.css("position"))||!h.length?g(document):h},zIndex:function(h){if(h!==undefined)return this.css("zIndex",h);if(this.length){h=g(this[0]);for(var k;h.length&&h[0]!==document;){k=h.css("position");if(k=="absolute"||k=="relative"||k=="fixed"){k=parseInt(h.css("zIndex"));if(!isNaN(k)&&k!=0)return k}h=h.parent()}}return 0}});g.extend(g.expr[":"],{data:function(h,k,q){return!!g.data(h,q[3])},focusable:function(h){var k=h.nodeName.toLowerCase(),q=g.attr(h,"tabindex");return(/input|select|textarea|button|object/.test(k)?
!h.disabled:"a"==k||"area"==k?h.href||!isNaN(q):!isNaN(q))&&!g(h)["area"==k?"parents":"closest"](":hidden").length},tabbable:function(h){var k=g.attr(h,"tabindex");return(isNaN(k)||k>=0)&&g(h).is(":focusable")}})}})(jQuery);
(function(g){var h=g.fn.remove;g.fn.remove=function(k,q){return this.each(function(){if(!q)if(!k||g.filter(k,[this]).length)g("*",this).add(this).each(function(){g(this).triggerHandler("remove")});return h.call(g(this),k,q)})};g.widget=function(k,q,j){var p=k.split(".")[0],r;k=k.split(".")[1];r=p+"-"+k;if(!j){j=q;q=g.Widget}g.expr[":"][r]=function(C){return!!g.data(C,k)};g[p]=g[p]||{};g[p][k]=function(C,w){arguments.length&&this._createWidget(C,w)};q=new q;q.options=g.extend({},q.options);g[p][k].prototype=
g.extend(true,q,{namespace:p,widgetName:k,widgetEventPrefix:g[p][k].prototype.widgetEventPrefix||k,widgetBaseClass:r},j);g.widget.bridge(k,g[p][k])};g.widget.bridge=function(k,q){g.fn[k]=function(j){var p=typeof j==="string",r=Array.prototype.slice.call(arguments,1),C=this;j=!p&&r.length?g.extend.apply(null,[true,j].concat(r)):j;if(p&&j.substring(0,1)==="_")return C;p?this.each(function(){var w=g.data(this,k),D=w&&g.isFunction(w[j])?w[j].apply(w,r):w;if(D!==w&&D!==undefined){C=D;return false}}):this.each(function(){var w=
g.data(this,k);if(w){j&&w.option(j);w._init()}else g.data(this,k,new q(j,this))});return C}};g.Widget=function(k,q){arguments.length&&this._createWidget(k,q)};g.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(k,q){this.element=g(q).data(this.widgetName,this);this.options=g.extend(true,{},this.options,g.metadata&&g.metadata.get(q)[this.widgetName],k);var j=this;this.element.bind("remove."+this.widgetName,function(){j.destroy()});this._create();
this._init()},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(k,q){var j=k,p=this;if(arguments.length===0)return g.extend({},p.options);if(typeof k==="string"){if(q===undefined)return this.options[k];j={};j[k]=q}g.each(j,function(r,
C){p._setOption(r,C)});return p},_setOption:function(k,q){this.options[k]=q;if(k==="disabled")this.widget()[q?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",q);return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(k,q,j){var p=this.options[k];q=g.Event(q);q.type=(k===this.widgetEventPrefix?k:this.widgetEventPrefix+k).toLowerCase();j=j||{};if(q.originalEvent){k=
g.event.props.length;for(var r;k;){r=g.event.props[--k];q[r]=q.originalEvent[r]}}this.element.trigger(q,j);return!(g.isFunction(p)&&p.call(this.element[0],q,j)===false||q.isDefaultPrevented())}}})(jQuery);
(function(g){g.ui=g.ui||{};var h=/left|center|right/,k=/top|center|bottom/,q=g.fn.position,j=g.fn.offset;g.fn.position=function(p){if(!p||!p.of)return q.apply(this,arguments);p=g.extend({},p);var r=g(p.of),C=(p.collision||"flip").split(" "),w=p.offset?p.offset.split(" "):[0,0],D,K,N;if(p.of.nodeType===9){D=r.width();K=r.height();N={top:0,left:0}}else if(p.of.scrollTo&&p.of.document){D=r.width();K=r.height();N={top:r.scrollTop(),left:r.scrollLeft()}}else if(p.of.preventDefault){p.at="left top";D=K=
0;N={top:p.of.pageY,left:p.of.pageX}}else{D=r.outerWidth();K=r.outerHeight();N=r.offset()}g.each(["my","at"],function(){var M=(p[this]||"").split(" ");if(M.length===1)M=h.test(M[0])?M.concat(["center"]):k.test(M[0])?["center"].concat(M):["center","center"];M[0]=h.test(M[0])?M[0]:"center";M[1]=k.test(M[1])?M[1]:"center";p[this]=M});if(C.length===1)C[1]=C[0];w[0]=parseInt(w[0],10)||0;if(w.length===1)w[1]=w[0];w[1]=parseInt(w[1],10)||0;if(p.at[0]==="right")N.left+=D;else if(p.at[0]==="center")N.left+=
D/2;if(p.at[1]==="bottom")N.top+=K;else if(p.at[1]==="center")N.top+=K/2;N.left+=w[0];N.top+=w[1];return this.each(function(){var M=g(this),Q=M.outerWidth(),V=M.outerHeight(),c=g.extend({},N);if(p.my[0]==="right")c.left-=Q;else if(p.my[0]==="center")c.left-=Q/2;if(p.my[1]==="bottom")c.top-=V;else if(p.my[1]==="center")c.top-=V/2;c.left=parseInt(c.left);c.top=parseInt(c.top);g.each(["left","top"],function(Z,U){g.ui.position[C[Z]]&&g.ui.position[C[Z]][U](c,{targetWidth:D,targetHeight:K,elemWidth:Q,
elemHeight:V,offset:w,my:p.my,at:p.at})});g.fn.bgiframe&&M.bgiframe();M.offset(g.extend(c,{using:p.using}))})};g.ui.position={fit:{left:function(p,r){var C=g(window);r=p.left+r.elemWidth-C.width()-C.scrollLeft();p.left=r>0?p.left-r:Math.max(0,p.left)},top:function(p,r){var C=g(window);r=p.top+r.elemHeight-C.height()-C.scrollTop();p.top=r>0?p.top-r:Math.max(0,p.top)}},flip:{left:function(p,r){if(r.at[0]!=="center"){var C=g(window);C=p.left+r.elemWidth-C.width()-C.scrollLeft();var w=r.my[0]==="left"?
-r.elemWidth:r.my[0]==="right"?r.elemWidth:0,D=-2*r.offset[0];p.left+=p.left<0?w+r.targetWidth+D:C>0?w-r.targetWidth+D:0}},top:function(p,r){if(r.at[1]!=="center"){var C=g(window);C=p.top+r.elemHeight-C.height()-C.scrollTop();var w=r.my[1]==="top"?-r.elemHeight:r.my[1]==="bottom"?r.elemHeight:0,D=r.at[1]==="top"?r.targetHeight:-r.targetHeight,K=-2*r.offset[1];p.top+=p.top<0?w+r.targetHeight+K:C>0?w+D+K:0}}}};if(!g.offset.setOffset){g.offset.setOffset=function(p,r){if(/static/.test(g.curCSS(p,"position")))p.style.position=
"relative";var C=g(p),w=C.offset(),D=parseInt(g.curCSS(p,"top",true),10)||0,K=parseInt(g.curCSS(p,"left",true),10)||0;w={top:r.top-w.top+D,left:r.left-w.left+K};"using"in r?r.using.call(p,w):C.css(w)};g.fn.offset=function(p){var r=this[0];if(!r||!r.ownerDocument)return null;if(p)return this.each(function(){g.offset.setOffset(this,p)});return j.call(this)}}})(jQuery);
(function(g){g.widget("ui.autocomplete",{options:{minLength:1,delay:300},_create:function(){var h=this,k=this.element[0].ownerDocument;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(q){var j=g.ui.keyCode;switch(q.keyCode){case j.PAGE_UP:h._move("previousPage",q);break;case j.PAGE_DOWN:h._move("nextPage",q);break;case j.UP:h._move("previous",q);q.preventDefault();
break;case j.DOWN:h._move("next",q);q.preventDefault();break;case j.ENTER:case j.NUMPAD_ENTER:h.menu.active&&q.preventDefault();case j.TAB:if(!h.menu.active)break;h.menu.select(q);break;case j.ESCAPE:h.element.val(h.term);h.close(q);break;case j.LEFT:case j.RIGHT:case j.SHIFT:case j.CONTROL:case j.ALT:case j.COMMAND:case j.COMMAND_RIGHT:case j.INSERT:case j.CAPS_LOCK:case j.END:case j.HOME:break;default:clearTimeout(h.searching);h.searching=setTimeout(function(){h.search(null,q)},h.options.delay)}}).bind("focus.autocomplete",
function(){h.selectedItem=null;h.previous=h.element.val()}).bind("blur.autocomplete",function(q){clearTimeout(h.searching);h.closing=setTimeout(function(){h.close(q);h._change(q)},150)});this._initSource();this.response=function(){return h._response.apply(h,arguments)};this.menu=g("<ul></ul>").addClass("ui-autocomplete").appendTo("body",k).mousedown(function(){setTimeout(function(){clearTimeout(h.closing)},13)}).menu({focus:function(q,j){j=j.item.data("item.autocomplete");false!==h._trigger("focus",
null,{item:j})&&/^key/.test(q.originalEvent.type)&&h.element.val(j.value)},selected:function(q,j){j=j.item.data("item.autocomplete");false!==h._trigger("select",q,{item:j})&&h.element.val(j.value);h.close(q);q=h.previous;if(h.element[0]!==k.activeElement){h.element.focus();h.previous=q}h.selectedItem=j},blur:function(){h.menu.element.is(":visible")&&h.element.val(h.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");g.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");
this.menu.element.remove();g.Widget.prototype.destroy.call(this)},_setOption:function(h){g.Widget.prototype._setOption.apply(this,arguments);h==="source"&&this._initSource()},_initSource:function(){var h,k;if(g.isArray(this.options.source)){h=this.options.source;this.source=function(q,j){j(g.ui.autocomplete.filter(h,q.term))}}else if(typeof this.options.source==="string"){k=this.options.source;this.source=function(q,j){g.getJSON(k,q,j)}}else this.source=this.options.source},search:function(h,k){h=
h!=null?h:this.element.val();if(h.length<this.options.minLength)return this.close(k);clearTimeout(this.closing);if(this._trigger("search")!==false)return this._search(h)},_search:function(h){this.term=this.element.addClass("ui-autocomplete-loading").val();this.source({term:h},this.response)},_response:function(h){if(h.length){h=this._normalize(h);this._suggest(h);this._trigger("open")}else this.close();this.element.removeClass("ui-autocomplete-loading")},close:function(h){clearTimeout(this.closing);
if(this.menu.element.is(":visible")){this._trigger("close",h);this.menu.element.hide();this.menu.deactivate()}},_change:function(h){this.previous!==this.element.val()&&this._trigger("change",h,{item:this.selectedItem})},_normalize:function(h){if(h.length&&h[0].label&&h[0].value)return h;return g.map(h,function(k){if(typeof k==="string")return{label:k,value:k};return g.extend({label:k.label||k.value,value:k.value||k.label},k)})},_suggest:function(h){var k=this.menu.element.empty().zIndex(this.element.zIndex()+
1),q;this._renderMenu(k,h);this.menu.deactivate();this.menu.refresh();this.menu.element.show().position({my:"left top",at:"left bottom",of:this.element,collision:"none"});h=k.width("").width();q=this.element.width();k.width(Math.max(h,q))},_renderMenu:function(h,k){var q=this;g.each(k,function(j,p){q._renderItem(h,p)})},_renderItem:function(h,k){return g("<li></li>").data("item.autocomplete",k).append("<a>"+k.label+"</a>").appendTo(h)},_move:function(h,k){if(this.menu.element.is(":visible"))if(this.menu.first()&&
/^previous/.test(h)||this.menu.last()&&/^next/.test(h)){this.element.val(this.term);this.menu.deactivate()}else this.menu[h](k);else this.search(null,k)},widget:function(){return this.menu.element}});g.extend(g.ui.autocomplete,{escapeRegex:function(h){return h.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")},filter:function(h,k){var q=RegExp(g.ui.autocomplete.escapeRegex(k),"i");return g.grep(h,function(j){return q.test(j.label||j.value||j)})}})})(jQuery);
(function(g){g.widget("ui.menu",{_create:function(){var h=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(k){if(g(k.target).closest(".ui-menu-item a").length){k.preventDefault();h.select(k)}});this.refresh()},refresh:function(){var h=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",
-1).mouseenter(function(k){h.activate(k,g(this).parent())}).mouseleave(function(){h.deactivate()})},activate:function(h,k){this.deactivate();if(this.hasScroll()){var q=k.offset().top-this.element.offset().top,j=this.element.attr("scrollTop"),p=this.element.height();if(q<0)this.element.attr("scrollTop",j+q);else q>p&&this.element.attr("scrollTop",j+q-p+k.height())}this.active=k.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",h,{item:k})},deactivate:function(){if(this.active){this.active.children("a").removeClass("ui-state-hover").removeAttr("id");
this._trigger("blur");this.active=null}},next:function(h){this.move("next",".ui-menu-item:first",h)},previous:function(h){this.move("prev",".ui-menu-item:last",h)},first:function(){return this.active&&!this.active.prev().length},last:function(){return this.active&&!this.active.next().length},move:function(h,k,q){if(this.active){h=this.active[h+"All"](".ui-menu-item").eq(0);h.length?this.activate(q,h):this.activate(q,this.element.children(k))}else this.activate(q,this.element.children(k))},nextPage:function(h){if(this.hasScroll())if(!this.active||
this.last())this.activate(h,this.element.children(":first"));else{var k=this.active.offset().top,q=this.element.height(),j=this.element.children("li").filter(function(){var p=g(this).offset().top-k-q+g(this).height();return p<10&&p>-10});j.length||(j=this.element.children(":last"));this.activate(h,j)}else this.activate(h,this.element.children(!this.active||this.last()?":first":":last"))},previousPage:function(h){if(this.hasScroll())if(!this.active||this.first())this.activate(h,this.element.children(":last"));
else{var k=this.active.offset().top,q=this.element.height();result=this.element.children("li").filter(function(){var j=g(this).offset().top-k+q-g(this).height();return j<10&&j>-10});result.length||(result=this.element.children(":first"));this.activate(h,result)}else this.activate(h,this.element.children(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(h){this._trigger("selected",h,{item:this.active})}})})(jQuery);
(function(g){g.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1E3},_create:function(){this.originalTitle=this.element.attr("title");var h=this,k=h.options,q=k.title||h.originalTitle||"&#160;",j=g.ui.dialog.getTitleId(h.element),p=(h.uiDialog=g("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+
k.dialogClass).css({zIndex:k.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(w){if(k.closeOnEscape&&w.keyCode&&w.keyCode===g.ui.keyCode.ESCAPE){h.close(w);w.preventDefault()}}).attr({role:"dialog","aria-labelledby":j}).mousedown(function(w){h.moveToTop(false,w)});h.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(p);var r=(h.uiDialogTitlebar=g("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(p),
C=g('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){C.addClass("ui-state-hover")},function(){C.removeClass("ui-state-hover")}).focus(function(){C.addClass("ui-state-focus")}).blur(function(){C.removeClass("ui-state-focus")}).click(function(w){h.close(w);return false}).appendTo(r);(h.uiDialogTitlebarCloseText=g("<span></span>")).addClass("ui-icon ui-icon-closethick").text(k.closeText).appendTo(C);g("<span></span>").addClass("ui-dialog-title").attr("id",
j).html(q).prependTo(r);if(g.isFunction(k.beforeclose)&&!g.isFunction(k.beforeClose))k.beforeClose=k.beforeclose;r.find("*").add(r).disableSelection();k.draggable&&g.fn.draggable&&h._makeDraggable();k.resizable&&g.fn.resizable&&h._makeResizable();h._createButtons(k.buttons);h._isOpen=false;g.fn.bgiframe&&p.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){this.overlay&&this.overlay.destroy();this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");
this.uiDialog.remove();this.originalTitle&&this.element.attr("title",this.originalTitle);return this},widget:function(){return this.uiDialog},close:function(h){var k=this,q;if(false!==k._trigger("beforeClose",h)){k.overlay&&k.overlay.destroy();k.uiDialog.unbind("keypress.ui-dialog");k._isOpen=false;if(k.options.hide)k.uiDialog.hide(k.options.hide,function(){k._trigger("close",h)});else{k.uiDialog.hide();k._trigger("close",h)}g.ui.dialog.overlay.resize();if(k.options.modal){q=0;g(".ui-dialog").each(function(){if(this!==
k.uiDialog[0])q=Math.max(q,g(this).css("z-index"))});g.ui.dialog.maxZ=q}return k}},isOpen:function(){return this._isOpen},moveToTop:function(h,k){var q=this.options;if(q.modal&&!h||!q.stack&&!q.modal)return this._trigger("focus",k);if(q.zIndex>g.ui.dialog.maxZ)g.ui.dialog.maxZ=q.zIndex;if(this.overlay){g.ui.dialog.maxZ+=1;this.overlay.$el.css("z-index",g.ui.dialog.overlay.maxZ=g.ui.dialog.maxZ)}h={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};g.ui.dialog.maxZ+=
1;this.uiDialog.css("z-index",g.ui.dialog.maxZ);this.element.attr(h);this._trigger("focus",k);return this},open:function(){if(!this._isOpen){var h=this.options,k=this.uiDialog;this.overlay=h.modal?new g.ui.dialog.overlay(this):null;k.next().length&&k.appendTo("body");this._size();this._position(h.position);k.show(h.show);this.moveToTop(true);h.modal&&k.bind("keypress.ui-dialog",function(q){if(q.keyCode===g.ui.keyCode.TAB){var j=g(":tabbable",this),p=j.filter(":first");j=j.filter(":last");if(q.target===
j[0]&&!q.shiftKey){p.focus(1);return false}else if(q.target===p[0]&&q.shiftKey){j.focus(1);return false}}});g([]).add(k.find(".ui-dialog-content :tabbable:first")).add(k.find(".ui-dialog-buttonpane :tabbable:first")).add(k).filter(":first").focus();this._trigger("open");this._isOpen=true;return this}},_createButtons:function(h){var k=this,q=false,j=g("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");k.uiDialog.find(".ui-dialog-buttonpane").remove();typeof h==="object"&&
h!==null&&g.each(h,function(){return!(q=true)});if(q){g.each(h,function(p,r){p=g('<button type="button"></button>').text(p).click(function(){r.apply(k.element[0],arguments)}).appendTo(j);g.fn.button&&p.button()});j.appendTo(k.uiDialog)}},_makeDraggable:function(){function h(r){return{position:r.position,offset:r.offset}}var k=this,q=k.options,j=g(document),p;k.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(r,
C){p=q.height==="auto"?"auto":g(this).height();g(this).height(g(this).height()).addClass("ui-dialog-dragging");k._trigger("dragStart",r,h(C))},drag:function(r,C){k._trigger("drag",r,h(C))},stop:function(r,C){q.position=[C.position.left-j.scrollLeft(),C.position.top-j.scrollTop()];g(this).removeClass("ui-dialog-dragging").height(p);k._trigger("dragStop",r,h(C));g.ui.dialog.overlay.resize()}})},_makeResizable:function(h){function k(r){return{originalPosition:r.originalPosition,originalSize:r.originalSize,
position:r.position,size:r.size}}h=h===undefined?this.options.resizable:h;var q=this,j=q.options,p=q.uiDialog.css("position");h=typeof h==="string"?h:"n,e,s,w,se,sw,ne,nw";q.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:q.element,maxWidth:j.maxWidth,maxHeight:j.maxHeight,minWidth:j.minWidth,minHeight:q._minHeight(),handles:h,start:function(r,C){g(this).addClass("ui-dialog-resizing");q._trigger("resizeStart",r,k(C))},resize:function(r,C){q._trigger("resize",r,k(C))},
stop:function(r,C){g(this).removeClass("ui-dialog-resizing");j.height=g(this).height();j.width=g(this).width();q._trigger("resizeStop",r,k(C));g.ui.dialog.overlay.resize()}}).css("position",p).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var h=this.options;return h.height==="auto"?h.minHeight:Math.min(h.minHeight,h.height)},_position:function(h){var k=[],q=[0,0];h=h||g.ui.dialog.prototype.options.position;if(typeof h==="string"||typeof h==="object"&&
"0"in h){k=h.split?h.split(" "):[h[0],h[1]];if(k.length===1)k[1]=k[0];g.each(["left","top"],function(j,p){if(+k[j]===k[j]){q[j]=k[j];k[j]=p}})}else if(typeof h==="object"){if("left"in h){k[0]="left";q[0]=h.left}else if("right"in h){k[0]="right";q[0]=-h.right}if("top"in h){k[1]="top";q[1]=h.top}else if("bottom"in h){k[1]="bottom";q[1]=-h.bottom}}(h=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position({my:k.join(" "),at:k.join(" "),offset:q.join(" "),of:window,
collision:"fit",using:function(j){var p=g(this).css(j).offset().top;p<0&&g(this).css("top",j.top-p)}});h||this.uiDialog.hide()},_setOption:function(h,k){var q=this.uiDialog,j=q.is(":data(resizable)"),p=false;switch(h){case "beforeclose":h="beforeClose";break;case "buttons":this._createButtons(k);break;case "closeText":this.uiDialogTitlebarCloseText.text(""+k);break;case "dialogClass":q.removeClass(this.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+k);break;case "disabled":k?
q.addClass("ui-dialog-disabled"):q.removeClass("ui-dialog-disabled");break;case "draggable":k?this._makeDraggable():q.draggable("destroy");break;case "height":p=true;break;case "maxHeight":j&&q.resizable("option","maxHeight",k);p=true;break;case "maxWidth":j&&q.resizable("option","maxWidth",k);p=true;break;case "minHeight":j&&q.resizable("option","minHeight",k);p=true;break;case "minWidth":j&&q.resizable("option","minWidth",k);p=true;break;case "position":this._position(k);break;case "resizable":j&&
!k&&q.resizable("destroy");j&&typeof k==="string"&&q.resizable("option","handles",k);!j&&k!==false&&this._makeResizable(k);break;case "title":g(".ui-dialog-title",this.uiDialogTitlebar).html(""+(k||"&#160;"));break;case "width":p=true}g.Widget.prototype._setOption.apply(this,arguments);p&&this._size()},_size:function(){var h=this.options,k;this.element.css({width:"auto",minHeight:0,height:0});k=this.uiDialog.css({height:"auto",width:h.width}).height();this.element.css(h.height==="auto"?{minHeight:Math.max(h.minHeight-
k,0),height:"auto"}:{minHeight:0,height:Math.max(h.height-k,0)}).show();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});g.extend(g.ui.dialog,{version:"1.8.2",uuid:0,maxZ:0,getTitleId:function(h){h=h.attr("id");if(!h){this.uuid+=1;h=this.uuid}return"ui-dialog-title-"+h},overlay:function(h){this.$el=g.ui.dialog.overlay.create(h)}});g.extend(g.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:g.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),
function(h){return h+".dialog-overlay"}).join(" "),create:function(h){if(this.instances.length===0){setTimeout(function(){g.ui.dialog.overlay.instances.length&&g(document).bind(g.ui.dialog.overlay.events,function(q){return g(q.target).zIndex()>=g.ui.dialog.overlay.maxZ})},1);g(document).bind("keydown.dialog-overlay",function(q){if(h.options.closeOnEscape&&q.keyCode&&q.keyCode===g.ui.keyCode.ESCAPE){h.close(q);q.preventDefault()}});g(window).bind("resize.dialog-overlay",g.ui.dialog.overlay.resize)}var k=
(this.oldInstances.pop()||g("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});g.fn.bgiframe&&k.bgiframe();this.instances.push(k);return k},destroy:function(h){this.oldInstances.push(this.instances.splice(g.inArray(h,this.instances),1)[0]);this.instances.length===0&&g([document,window]).unbind(".dialog-overlay");h.remove();var k=0;g.each(this.instances,function(){k=Math.max(k,this.css("z-index"))});this.maxZ=k},height:function(){var h,
k;if(g.browser.msie&&g.browser.version<7){h=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);k=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return h<k?g(window).height()+"px":h+"px"}else return g(document).height()+"px"},width:function(){var h,k;if(g.browser.msie&&g.browser.version<7){h=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);k=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return h<
k?g(window).width()+"px":h+"px"}else return g(document).width()+"px"},resize:function(){var h=g([]);g.each(g.ui.dialog.overlay.instances,function(){h=h.add(this)});h.css({width:0,height:0}).css({width:g.ui.dialog.overlay.width(),height:g.ui.dialog.overlay.height()})}});g.extend(g.ui.dialog.overlay.prototype,{destroy:function(){g.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(g){var h=function(k,q){k=g(k);this.calWidth=function(w){var D="0";isNaN(w.find("ul.layers").children().css("width").replace(/px/,""))||(D=w.find("ul.layers").children().css("width").replace(/px/,""));isNaN(w.find("ul.layers").children().css("marginRight").replace(/px/,""))||(D=Number(D)+Number(w.find("ul.layers").children().css("marginRight").replace(/px/,"")));isNaN(w.find("ul.layers").children().css("marginLeft").replace(/px/,""))||(D=Number(D)+Number(w.find("ul.layers").children().css("marginLeft").replace(/px/,
"")));isNaN(w.find("ul.layers").children().css("paddingLeft").replace(/px/,""))||(D=Number(D)+Number(w.find("ul.layers").children().css("paddingLeft").replace(/px/,"")));isNaN(w.find("ul.layers").children().css("paddingRight").replace(/px/,""))||(D=Number(D)+Number(w.find("ul.layers").children().css("paddingRight").replace(/px/,"")));return D};this.calHeight=function(w){var D="0";isNaN(w.find("ul.layers").children().css("height").replace(/px/,""))||(D=w.find("ul.layers").children().css("height").replace(/px/,
""));isNaN(w.find("ul.layers").children().css("marginTop").replace(/px/,""))||(D=Number(D)+Number(w.find("ul.layers").children().css("marginTop").replace(/px/,"")));isNaN(w.find("ul.layers").children().css("marginBottom").replace(/px/,""))||(D=Number(D)+Number(w.find("ul.layers").children().css("marginBottom").replace(/px/,"")));isNaN(w.find("ul.layers").children().css("paddingTop").replace(/px/,""))||(D=Number(D)+Number(w.find("ul.layers").children().css("paddingTop").replace(/px/,"")));isNaN(w.find("ul.layers").children().css("paddingBottom").replace(/px/,
""))||(D=Number(D)+Number(w.find("ul.layers").children().css("paddingBottom").replace(/px/,"")));return D};var j=this;this.settings=g.extend({},g.fn.slide.defaults,q);this.settings.layersSize=k.find("ul.layers").children().size();this.settings.layerWidth=this.calWidth(k);this.settings.layerHeight=this.calHeight(k);this.debug=function(w){if(j.settings.debug=="1")window.console&&window.console.log?window.console.log("[jSlide:"+this.settings.slideNr+"] "+w):alert("[jSlide:"+this.settings.slideNr+"] "+
w)};this.toggleLoop=function(w){if(j.settings.loopNr==null){if(!isNaN(w))j.settings.loopNr=window.setInterval(function(){j.slideTo(Number(j.settings.slidePos+1))},w)}else{clearInterval(j.settings.loopNr);j.settings.loopNr=null}};this.switchActive=function(){g("ul.indexwork li a",k).each(function(){g(this).removeClass("active")});g("ul.indexwork li:nth-child("+Number(j.settings.slidePos+1)+") a",k).addClass("active")};this.switchCaption=function(){var w=g("ul.layers li:nth-child("+Number(j.settings.slidePos+
1)+")",k).data("jslide-caption");g("."+j.settings.caption+":not(ul.layers ."+j.settings.caption+")",k).html(w)};this.slideTo=function(w){typeof w!="number"&&g("ul.layers li",k).each(function(N){if(g(this).attr("title")==w)w=N});if(w<j.settings.layersSize&&w>=0&&j.settings.layersSize>"1"){var D=w*j.settings.layerHeight,K=w*j.settings.layerWidth;if(j.settings.direction=="bottom")g("ul.layers li",k).animate({marginTop:"-"+D+"px"},j.settings.speed[0],j.settings.easing);else if(j.settings.direction=="top")g("ul.layers li",
k).animate({marginTop:D+"px"},j.settings.speed[0],j.settings.easing);else if(j.settings.direction=="left")g("ul.layers li",k).animate({marginLeft:"-"+K+"px"},j.settings.speed[0],j.settings.easing);else j.settings.direction=="right"&&g("ul.layers li",k).animate({marginRight:"-"+K+"px"},j.settings.speed[0],j.settings.easing);j.settings.slidePos=w}else if(w>=j.settings.layersSize&&j.settings.layersSize>"1"&&j.settings.repeatNex=="1"){g("ul.layers li",k).animate({marginLeft:"0px",marginRight:"0px",marginTop:"0px"},
j.settings.speed[0],j.settings.easing);j.settings.slidePos="0"}else if(w<"0"&&j.settings.layersSize>"1"&&j.settings.repeatPrev=="1"){D=(j.settings.layersSize-1)*j.settings.layerHeight;K=(j.settings.layersSize-1)*j.settings.layerWidth;if(j.settings.direction=="bottom")g("ul.layers li",k).animate({marginTop:"-"+D+"px"},j.settings.speed[0],j.settings.easing);else if(j.settings.direction=="top")g("ul.layers li",k).animate({marginTop:D+"px"},j.settings.speed[0],j.settings.easing);else if(j.settings.direction==
"left")g("ul.layers li",k).animate({marginLeft:"-"+K+"px"},j.settings.speed[0],j.settings.easing);else j.settings.direction=="right"&&g("ul.layers li",k).animate({marginRight:"-"+K+"px"},j.settings.speed[0],j.settings.easing);j.settings.slidePos=j.settings.layersSize-1}else return false;if(j.settings.title_id=="1"&&j.settings.loopNr==null){D=g("ul.layers li:nth-child("+Number(j.settings.slidePos+1)+")",k).attr("title");window.location=j.settings.slideNr>1?"#"+D+"--"+j.settings.slideNr:"#"+D}else if(j.settings.title_id==
"0"&&j.settings.loopNr==null)window.location=j.settings.slideNr>1?"#"+Number(j.settings.slidePos+1)+"--"+j.settings.slideNr:"#"+Number(j.settings.slidePos+1);if(j.settings.preloadImg==false){if(j.settings.preloadDelay<0)j.settings.preloadDelay=j.settings.speed[0];setTimeout(function(){g("ul.layers li:nth-child("+Number(j.settings.slidePos+1)+") img",k).each(function(){if(this.loaded==false){var N=this;g(this).hide().attr("src",g(this).data("jslide-img")).bind("load",function(){g(N)[j.settings.preloadEffect[0]](j.settings.preloadEffect[1]);
g("ul.layers li:nth-child("+Number(j.settings.slidePos+1)+")",k).removeClass(j.settings.preloaderClass)});this.loaded=true}})},j.settings.preloadDelay)}j.switchCaption();j.switchActive();j.debug("#"+k.attr("id")+" slided to pos:"+Number(j.settings.slidePos+1));return false};this.debug("jSlide initiated for #"+k.attr("id"));if(this.settings.loop[0]=="1")this.settings.loopNr=window.setInterval(function(){j.slideTo(Number(j.settings.slidePos+1))},j.settings.speed[1]);g("ul.layers li",k).each(function(w){j.settings.direction==
"left"&&g(this).css("left",w*j.settings.layerWidth+"px");j.settings.direction=="bottom"&&g(this).css("top",w*j.settings.layerHeight+"px");j.settings.direction=="right"&&g(this).css("right",w*j.settings.layerWidth+"px");j.settings.direction=="top"&&g(this).css("top","-"+w*j.settings.layerHeight+"px")});g(".nextwork",k).click(function(){j.slideTo(Number(j.settings.slidePos)+Number(1));if(j.settings.loop[1]=="0"&&j.settings.loop[0]=="1")clearInterval(j.settings.loopNr);else if(j.settings.loop[1]>"0"&&
j.settings.loop[0]=="1"){clearInterval(j.settings.loopNr);j.settings.loopNr=window.setInterval(function(){j.slideTo(Number(j.settings.slidePos+1))},j.settings.loop[1])}return false});g(".prevwork",k).click(function(){j.slideTo(j.settings.slidePos-1);if(j.settings.loop[1]=="0"&&j.settings.loop[0]=="1")clearInterval(j.settings.loopNr);else if(j.settings.loop[1]>"0"&&j.settings.loop[0]=="1"){clearInterval(j.settings.loopNr);j.settings.loopNr=window.setInterval(function(){j.slideTo(Number(j.settings.slidePos+
1))},j.settings.loop[1])}return false});g("ul.indexwork",k).children().size()>0&&g("ul.indexwork",k).html("");for(var p=0;p<this.settings.layersSize;p++){var r=p==0?' class="active"':"";if(j.settings.title_id==0)g("ul.indexwork",k).append('<li><a href="#"'+r+">"+Number(p+1)+"</a></li>");else if(j.settings.title_id==1){var C=g("ul.layers li:nth-child("+Number(p+1)+")",k).attr("title");g("ul.indexwork",k).append('<li><a href="#"'+r+">"+C+"</a></li>")}}g("ul.indexwork li a",k).each(function(w){g(this).click(function(){j.slideTo(w);
if(j.settings.loop[1]=="0"&&j.settings.loop[0]=="1")clearInterval(j.settings.loopNr);else if(j.settings.loop[1]>"0"&&j.settings.loop[0]=="1"){clearInterval(j.settings.loopNr);j.settings.loopNr=window.setInterval(function(){j.slideTo(Number(j.settings.slidePos+1))},j.settings.loop[1])}return false})})};g.fn.slide=function(k){var q=null;document.location.toString();var j=document.location.toString().split("#");this.each(function(){var p=g(this);if(p.data("jslide"))q=p;else{var r=new h(this,k);g.fn.slide.defaults.slideNr++;
r.settings.preloadImg==false&&p.find("ul.layers li img").each(function(){g(this).data("jslide-img",g(this).attr("src"));g(this).removeAttr("src");g(this).parent().addClass(r.settings.preloaderClass);this.loaded=false});if(r.settings.caption!=false){g("ul.layers li",p).data("jslide-caption",g("."+r.settings.caption+":not(ul.layers ."+r.settings.caption+")",p).html());p.find("ul.layers li ."+r.settings.caption,p).each(function(){g(this).parent().data("jslide-caption",g(this).html());g(this).remove()});
g("."+r.settings.caption+":not(ul.layers ."+r.settings.caption+")",p).html(p.find("ul.layers li:nth-child(1)").data("jslide-caption"))}if(j.length>1)for(i=1;i<j.length;i++){var C=r.settings.slideNr>1?j[i].split("--"):[j[1],1];r.settings.autoload[0]=="1"&&r.settings.slideNr==C[1]&&setTimeout(function(){isNaN(C[0]*1)?r.slideTo(C[0]):r.slideTo(C[0]-1)},r.settings.autoload[1])}p.data("jslide",r)}});if(q!=null)return q.data("jslide")};g.fn.slide.defaults={slideNr:"1",loopNr:null,slidePos:"0",easing:"",
debug:0,title_id:0,speed:[500,2E3],autoload:[1,300],loop:[0,0],repeatNex:1,repeatPrev:0,direction:"left",alignment:"horizontal",preloadImg:true,preloaderClass:"loading",preloadEffect:["fadeIn","slow"],preloadDelay:-1,caption:false}})(jQuery);(function(g){function h(j,p,r){var C=r.relative?j.position().top:j.offset().top,w=r.relative?j.position().left:j.offset().left,D=r.position[0];C-=p.outerHeight()-r.offset[0];w+=j.outerWidth()+r.offset[1];var K=p.outerHeight()+j.outerHeight();if(D=="center")C+=K/2;if(D=="bottom")C+=K;D=r.position[1];j=p.outerWidth()+j.outerWidth();if(D=="center")w-=j/2;if(D=="left")w-=j;return{top:C,left:w}}function k(j,p){var r=this,C=j.add(r),w,D=0,K=0,N=j.attr("title"),M=q[p.effect],Q,V=j.is(":input"),c=V&&j.is(":checkbox, :radio, select, :button, :submit"),
Z=j.attr("type"),U=p.events[Z]||p.events[V?c?"widget":"input":"def"];if(!M)throw'Nonexistent effect "'+p.effect+'"';U=U.split(/,\s*/);if(U.length!=2)throw"Tooltip: bad events configuration for "+Z;j.bind(U[0],function(A){clearTimeout(D);if(p.predelay)K=setTimeout(function(){r.show(A)},p.predelay);else r.show(A)}).bind(U[1],function(A){clearTimeout(K);if(p.delay)D=setTimeout(function(){r.hide(A)},p.delay);else r.hide(A)});if(N&&p.cancelDefault){j.removeAttr("title");j.data("title",N)}g.extend(r,{show:function(A){if(!w){if(N)w=
g(p.layout).addClass(p.tipClass).appendTo(document.body).hide().append(N);else if(p.tip)w=g(p.tip).eq(0);else{w=j.next();w.length||(w=j.parent().next())}if(!w.length)throw"Cannot find tooltip for "+j;}if(r.isShown())return r;w.stop(true,true);var P=h(j,w,p);A=A||g.Event();A.type="onBeforeShow";C.trigger(A,[P]);if(A.isDefaultPrevented())return r;P=h(j,w,p);w.css({position:"absolute",top:P.top,left:P.left});Q=true;M[0].call(r,function(){A.type="onShow";Q="full";C.trigger(A)});P=p.events.tooltip.split(/,\s*/);
w.bind(P[0],function(){clearTimeout(D);clearTimeout(K)});P[1]&&!j.is("input:not(:checkbox, :radio), textarea")&&w.bind(P[1],function(ea){ea.relatedTarget!=j[0]&&j.trigger(U[1].split(" ")[0])});return r},hide:function(A){if(!w||!r.isShown())return r;A=A||g.Event();A.type="onBeforeHide";C.trigger(A);if(!A.isDefaultPrevented()){Q=false;q[p.effect][1].call(r,function(){A.type="onHide";Q=false;C.trigger(A)});return r}},isShown:function(A){return A?Q=="full":Q},getConf:function(){return p},getTip:function(){return w},
getTrigger:function(){return j}});g.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(A,P){g.isFunction(p[P])&&g(r).bind(P,p[P]);r[P]=function(ea){g(r).bind(P,ea);return r}})}g.tools=g.tools||{version:"1.2.3"};g.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top","center"],offset:[0,0],relative:false,cancelDefault:true,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},
layout:"<div/>",tipClass:"tooltip"},addEffect:function(j,p,r){q[j]=[p,r]}};var q={toggle:[function(j){var p=this.getConf(),r=this.getTip();p=p.opacity;p<1&&r.css({opacity:p});r.show();j.call()},function(j){this.getTip().hide();j.call()}],fade:[function(j){var p=this.getConf();this.getTip().fadeTo(p.fadeInSpeed,p.opacity,j)},function(j){this.getTip().fadeOut(this.getConf().fadeOutSpeed,j)}]};g.fn.tooltip=function(j){var p=this.data("tooltip");if(p)return p;j=g.extend(true,{},g.tools.tooltip.conf,j);
if(typeof j.position=="string")j.position=j.position.split(/,?\s/);this.each(function(){p=new k(g(this),j);g(this).data("tooltip",p)});return j.api?p:this}})(jQuery);
