﻿/*
 * jQuery JavaScript Library v1.4.2
 * http://jquery.com/
 *
 * Copyright 2010, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2010, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Sat Feb 13 22:33:48 2010 -0500
 */
(function(d,c){function R(){if(!a.isReady){try{b.documentElement.doScroll("left")}catch(c){setTimeout(R,1);return}a.ready()}}function Cb(c,b){b.src?a.ajax({url:b.src,async:false,dataType:"script"}):a.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function D(d,e,f,h,g,j){var i=d.length;if(typeof e==="object"){for(var b in e)D(d,b,e[b],h,g,f);return d}if(f!==c){h=!j&&h&&a.isFunction(f);for(b=0;b<i;b++)g(d[b],e,h?f.call(d[b],b,g(d[b],e)):f,j);return d}return i?g(d[0],e):c}function g(){return(new Date).getTime()}function E(){return false}function F(){return true}function T(c,d,b){b[0].type=c;return a.event.handle.apply(d,b)}function V(c){var m,j=[],g=[],n=arguments,d,b,l,e,f,i;b=a.data(this,"events");if(!(c.liveFired===this||!b||!b.live||c.button&&c.type==="click")){c.liveFired=this;var h=b.live.slice(0);for(e=0;e<h.length;e++){b=h[e];b.origType.replace(k,"")===c.type?g.push(b.selector):h.splice(e--,1)}d=a(c.target).closest(g,c.currentTarget);f=0;for(i=d.length;f<i;f++)for(e=0;e<h.length;e++){b=h[e];if(d[f].selector===b.selector){l=d[f].elem;g=null;if(b.preType==="mouseenter"||b.preType==="mouseleave")g=a(c.relatedTarget).closest(b.selector)[0];(!g||g!==l)&&j.push({elem:l,handleObj:b})}}f=0;for(i=j.length;f<i;f++){d=j[f];c.currentTarget=d.elem;c.data=d.handleObj.data;c.handleObj=d.handleObj;if(d.handleObj.origHandler.apply(d.elem,n)===false){m=false;break}}return m}}function Y(a,b){return"live."+(a&&a!=="*"?a+".":"")+b.replace(/\./g,"`").replace(/ /g,"&")}function Z(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function ab(b,d){var c=0;d.each(function(){if(this.nodeName===(b[c]&&b[c].nodeName)){var d=a.data(b[c++]),f=a.data(this,d);if(d=d&&d.events){delete f.handle;f.events={};for(var e in d)for(var g in d[e])a.event.add(this,e,d[e][g],d[e][g].data)}}})}function bb(c,d,h){var e,g,f;d=d&&d[0]?d[0].ownerDocument||d[0]:b;if(c.length===1&&typeof c[0]==="string"&&c[0].length<512&&d===b&&!cb.test(c[0])&&(a.support.checkClone||!db.test(c[0]))){g=true;if(f=a.fragments[c[0]])if(f!==1)e=f}if(!e){e=d.createDocumentFragment();a.clean(c,d,e,h)}if(g)a.fragments[c[0]]=f?e:1;return{fragment:e,cacheable:g}}function h(c,d){var b={};a.each(eb.concat.apply([],eb.slice(0,d)),function(){b[this]=c});return b}function fb(a){return"scrollTo"in a&&a.document?a:a.nodeType===9?a.defaultView||a.parentWindow:false}var a=function(b,c){return new a.fn.init(b,c)},Eb=d.jQuery,Gb=d.$,b=d.document,o,Ib=/^[^<]*(<[\w\W]+>)[^>]*$|^#([\w-]+)$/,Kb=/^.[^:#\[\.,]*$/,Mb=/\S/,Ob=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Qb=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,l=navigator.userAgent,gb=false,m=[],i,C=Object.prototype.toString,r=Object.prototype.hasOwnProperty,s=Array.prototype.push,n=Array.prototype.slice,hb=Array.prototype.indexOf;a.fn=a.prototype={init:function(d,e){var f,g;if(!d)return this;if(d.nodeType){this.context=this[0]=d;this.length=1;return this}if(d==="body"&&!e){this.context=b;this[0]=b.body;this.selector="body";this.length=1;return this}if(typeof d==="string")if((f=Ib.exec(d))&&(f[1]||!e))if(f[1]){g=e?e.ownerDocument||e:b;if(d=Qb.exec(d))if(a.isPlainObject(e)){d=[b.createElement(d[1])];a.fn.attr.call(d,e,true)}else d=[g.createElement(d[1])];else{d=bb([f[1]],[g]);d=(d.cacheable?d.fragment.cloneNode(true):d.fragment).childNodes}return a.merge(this,d)}else{if(e=b.getElementById(f[2])){if(e.id!==f[2])return o.find(d);this.length=1;this[0]=e}this.context=b;this.selector=d;return this}else if(!e&&/^\w+$/.test(d)){this.selector=d;this.context=b;d=b.getElementsByTagName(d);return a.merge(this,d)}else return!e||e.jquery?(e||o).find(d):a(e).find(d);else if(a.isFunction(d))return o.ready(d);if(d.selector!==c){this.selector=d.selector;this.context=d.context}return a.makeArray(d,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return n.call(this,0)},"get":function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(c,d,e){var b=a();a.isArray(c)?s.apply(b,c):a.merge(b,c);b.prevObject=this;b.context=this.context;if(d==="find")b.selector=this.selector+(this.selector?" ":"")+e;else if(d)b.selector=this.selector+"."+d+"("+e+")";return b},each:function(b,c){return a.each(this,b,c)},ready:function(c){a.bindReady();if(a.isReady)c.call(b,a);else m&&m.push(c);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(n.apply(this,arguments),"slice",n.call(arguments).join(","))},map:function(b){return this.pushStack(a.map(this,function(a,c){return b.call(a,c,a)}))},end:function(){return this.prevObject||a(null)},push:s,sort:[].sort,splice:[].splice};a.fn.init.prototype=a.fn;a.extend=a.fn.extend=function(){var b=arguments[0]||{},f=1,j=arguments.length,i=false,h,g,e,d;if(typeof b==="boolean"){i=b;b=arguments[1]||{};f=2}if(typeof b!=="object"&&!a.isFunction(b))b={};if(j===f){b=this;--f}for(;f<j;f++)if((h=arguments[f])!=null)for(g in h){e=b[g];d=h[g];if(b!==d)if(i&&d&&(a.isPlainObject(d)||a.isArray(d))){e=e&&(a.isPlainObject(e)||a.isArray(e))?e:a.isArray(d)?[]:{};b[g]=a.extend(i,e,d)}else if(d!==c)b[g]=d}return b};a.extend({noConflict:function(b){d.$=Gb;if(b)d.jQuery=Eb;return a},isReady:false,ready:function(){if(!a.isReady){if(!b.body)return setTimeout(a.ready,13);a.isReady=true;if(m){for(var c,d=0;c=m[d++];)c.call(b,a);m=null}a.fn.triggerHandler&&a(b).triggerHandler("ready")}},bindReady:function(){if(!gb){gb=true;if(b.readyState==="complete")return a.ready();if(b.addEventListener){b.addEventListener("DOMContentLoaded",i,false);d.addEventListener("load",a.ready,false)}else if(b.attachEvent){b.attachEvent("onreadystatechange",i);d.attachEvent("onload",a.ready);var c=false;try{c=d.frameElement==null}catch(e){}b.documentElement.doScroll&&c&&R()}}},isFunction:function(a){return C.call(a)==="[object Function]"},isArray:function(a){return C.call(a)==="[object Array]"},isPlainObject:function(a){if(!a||C.call(a)!=="[object Object]"||a.nodeType||a.setInterval)return false;if(a.constructor&&!r.call(a,"constructor")&&!r.call(a.constructor.prototype,"isPrototypeOf"))return false;var b;for(b in a);return b===c||r.call(a,b)},isEmptyObject:function(a){for(var b in a)return false;return true},error:function(a){throw a;},parseJSON:function(b){if(typeof b!=="string"||!b)return null;b=a.trim(b);if(/^[\],:{}\s]*$/.test(b.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return d.JSON&&d.JSON.parse?d.JSON.parse(b):new Function("return "+b)();else a.error("Invalid JSON: "+b)},noop:function(){},globalEval:function(d){if(d&&Mb.test(d)){var e=b.getElementsByTagName("head")[0]||b.documentElement,c=b.createElement("script");c.type="text/javascript";if(a.support.scriptEval)c.appendChild(b.createTextNode(d));else c.text=d;e.insertBefore(c,e.firstChild);e.removeChild(c)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(b,g,d){var e,f=0,h=b.length,i=h===c||a.isFunction(b);if(d){if(i){for(e in b)if(g.apply(b[e],d)===false)break}else for(;f<h;)if(g.apply(b[f++],d)===false)break}else if(i){for(e in b)if(g.call(b[e],e,b[e])===false)break}else for(d=b[0];f<h&&g.call(d,f,d)!==false;d=b[++f]);return b},trim:function(a){return(a||"").replace(Ob,"")},makeArray:function(b,c){c=c||[];if(b!=null)b.length==null||typeof b==="string"||a.isFunction(b)||typeof b!=="function"&&b.setInterval?s.call(c,b):a.merge(c,b);return c},inArray:function(c,a){if(a.indexOf)return a.indexOf(c);for(var b=0,d=a.length;b<d;b++)if(a[b]===c)return b;return-1},merge:function(a,b){var e=a.length,d=0;if(typeof b.length==="number")for(var f=b.length;d<f;d++)a[e++]=b[d];else for(;b[d]!==c;)a[e++]=b[d++];a.length=e;return a},grep:function(b,d,e){for(var c=[],a=0,f=b.length;a<f;a++)!e!==!d(b[a],a)&&c.push(b[a]);return c},map:function(d,e,f){for(var a=[],c,b=0,g=d.length;b<g;b++){c=e(d[b],b,f);if(c!=null)a[a.length]=c}return a.concat.apply([],a)},guid:1,proxy:function(d,b,e){if(arguments.length===2)if(typeof b==="string"){e=d;d=e[b];b=c}else if(b&&!a.isFunction(b)){e=b;b=c}if(!b&&d)b=function(){return d.apply(e||this,arguments)};if(d)b.guid=d.guid=d.guid||b.guid||a.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:{}});l=a.uaMatch(l);if(l.browser){a.browser[l.browser]=true;a.browser.version=l.version}if(a.browser.webkit)a.browser.safari=true;if(hb)a.inArray=function(a,b){return hb.call(b,a)};o=a(b);if(b.addEventListener)i=function(){b.removeEventListener("DOMContentLoaded",i,false);a.ready()};else if(b.attachEvent)i=function(){if(b.readyState==="complete"){b.detachEvent("onreadystatechange",i);a.ready()}};(function(){a.support={};var e=b.documentElement,f=b.createElement("script"),c=b.createElement("div"),j="script"+g();c.style.display="none";c.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var i=c.getElementsByTagName("*"),h=c.getElementsByTagName("a")[0];if(!(!i||!i.length||!h)){a.support={leadingWhitespace:c.firstChild.nodeType===3,tbody:!c.getElementsByTagName("tbody").length,htmlSerialize:!!c.getElementsByTagName("link").length,style:/red/.test(h.getAttribute("style")),hrefNormalized:h.getAttribute("href")==="/a",opacity:/^0.55$/.test(h.style.opacity),cssFloat:!!h.style.cssFloat,checkOn:c.getElementsByTagName("input")[0].value==="on",optSelected:b.createElement("select").appendChild(b.createElement("option")).selected,parentNode:c.removeChild(c.appendChild(b.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};f.type="text/javascript";try{f.appendChild(b.createTextNode("window."+j+"=1;"))}catch(l){}e.insertBefore(f,e.firstChild);if(d[j]){a.support.scriptEval=true;delete d[j]}try{delete f.test}catch(m){a.support.deleteExpando=false}e.removeChild(f);if(c.attachEvent&&c.fireEvent){c.attachEvent("onclick",function k(){a.support.noCloneEvent=false;c.detachEvent("onclick",k)});c.cloneNode(true).fireEvent("onclick")}c=b.createElement("div");c.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";e=b.createDocumentFragment();e.appendChild(c.firstChild);a.support.checkClone=e.cloneNode(true).cloneNode(true).lastChild.checked;a(function(){var c=b.createElement("div");c.style.width=c.style.paddingLeft="1px";b.body.appendChild(c);a.boxModel=a.support.boxModel=c.offsetWidth===2;b.body.removeChild(c).style.display="none"});e=function(a){var c=b.createElement("div");a="on"+a;var d=a in c;if(!d){c.setAttribute(a,"return;");d=typeof c[a]==="function"}return d};a.support.submitBubbles=e("submit");a.support.changeBubbles=e("change");e=f=c=i=h=null}})();a.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var f="jQuery"+g(),Sb=0,ib={};a.extend({cache:{},expando:f,noData:{embed:true,object:true,applet:true},data:function(b,g,i){if(!(b.nodeName&&a.noData[b.nodeName.toLowerCase()])){b=b==d?ib:b;var e=b[f],h=a.cache;if(!e&&typeof g==="string"&&i===c)return null;e||(e=++Sb);if(typeof g==="object"){b[f]=e;h[e]=a.extend(true,{},g)}else if(!h[e]){b[f]=e;h[e]={}}b=h[e];if(i!==c)b[g]=i;return typeof g==="string"?b[g]:b}},removeData:function(b,e){if(!(b.nodeName&&a.noData[b.nodeName.toLowerCase()])){b=b==d?ib:b;var g=b[f],h=a.cache,c=h[g];if(e){if(c){delete c[e];a.isEmptyObject(c)&&a.removeData(b)}}else{if(a.support.deleteExpando)delete b[a.expando];else b.removeAttribute&&b.removeAttribute(a.expando);delete h[g]}}}});a.fn.extend({data:function(d,f){if(typeof d==="undefined"&&this.length)return a.data(this[0]);else if(typeof d==="object")return this.each(function(){a.data(this,d)});var b=d.split(".");b[1]=b[1]?"."+b[1]:"";if(f===c){var e=this.triggerHandler("getData"+b[1]+"!",[b[0]]);if(e===c&&this.length)e=a.data(this[0],d);return e===c&&b[1]?this.data(b[0]):e}else return this.trigger("setData"+b[1]+"!",[b[0],f]).each(function(){a.data(this,d,f)})},removeData:function(b){return this.each(function(){a.removeData(this,b)})}});a.extend({queue:function(e,c,d){if(e){c=(c||"fx")+"queue";var b=a.data(e,c);if(!d)return b||[];if(!b||a.isArray(d))b=a.data(e,c,a.makeArray(d));else b.push(d);return b}},dequeue:function(d,b){b=b||"fx";var e=a.queue(d,b),c=e.shift();if(c==="inprogress")c=e.shift();if(c){b==="fx"&&e.unshift("inprogress");c.call(d,function(){a.dequeue(d,b)})}}});a.fn.extend({queue:function(b,d){if(typeof b!=="string"){d=b;b="fx"}return d===c?a.queue(this[0],b):this.each(function(){var c=a.queue(this,b,d);b==="fx"&&c[0]!=="inprogress"&&a.dequeue(this,b)})},dequeue:function(b){return this.each(function(){a.dequeue(this,b)})},delay:function(b,c){b=a.fx?a.fx.speeds[b]||b:b;c=c||"fx";return this.queue(c,function(){var d=this;setTimeout(function(){a.dequeue(d,c)},b)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var G=/[\n\t]/g,t=/\s+/,Ub=/\r/g,jb=/href|src|style/,lb=/(button|input)/i,nb=/(button|input|object|select|textarea)/i,ob=/^(a|area)$/i,H=/radio|checkbox/;a.fn.extend({attr:function(b,c){return D(this,b,c,true,a.attr)},removeAttr:function(b){return this.each(function(){a.attr(this,b,"");this.nodeType===1&&this.removeAttribute(b)})},addClass:function(b){if(a.isFunction(b))return this.each(function(d){var c=a(this);c.addClass(b.call(this,d,c.attr("class")))});if(b&&typeof b==="string")for(var e=(b||"").split(t),f=0,h=this.length;f<h;f++){var c=this[f];if(c.nodeType===1)if(c.className){for(var i=" "+c.className+" ",g=c.className,d=0,j=e.length;d<j;d++)if(i.indexOf(" "+e[d]+" ")<0)g+=" "+e[d];c.className=a.trim(g)}else c.className=b}return this},removeClass:function(b){if(a.isFunction(b))return this.each(function(d){var c=a(this);c.removeClass(b.call(this,d,c.attr("class")))});if(b&&typeof b==="string"||b===c)for(var h=(b||"").split(t),e=0,i=this.length;e<i;e++){var d=this[e];if(d.nodeType===1&&d.className)if(b){for(var g=(" "+d.className+" ").replace(G," "),f=0,j=h.length;f<j;f++)g=g.replace(" "+h[f]+" "," ");d.className=a.trim(g)}else d.className=""}return this},toggleClass:function(b,c){var d=typeof b,e=typeof c==="boolean";return a.isFunction(b)?this.each(function(e){var d=a(this);d.toggleClass(b.call(this,e,d.attr("class"),c),c)}):this.each(function(){if(d==="string")for(var f,i=0,h=a(this),g=c,j=b.split(t);f=j[i++];){g=e?g:!h.hasClass(f);h[g?"addClass":"removeClass"](f)}else if(d==="undefined"||d==="boolean"){this.className&&a.data(this,"__className__",this.className);this.className=this.className||b===false?"":a.data(this,"__className__")||""}})},hasClass:function(a){a=" "+a+" ";for(var b=0,c=this.length;b<c;b++)if((" "+this[b].className+" ").replace(G," ").indexOf(a)>-1)return true;return false},val:function(d){if(d===c){var b=this[0];if(b){if(a.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(a.nodeName(b,"select")){var e=b.selectedIndex,h=[],g=b.options;b=b.type==="select-one";if(e<0)return null;var f=b?e:0;for(e=b?e+1:g.length;f<e;f++){var i=g[f];if(i.selected){d=a(i).val();if(b)return d;h.push(d)}}return h}return H.test(b.type)&&!a.support.checkOn?b.getAttribute("value")===null?"on":b.value:(b.value||"").replace(Ub,"")}return c}var j=a.isFunction(d);return this.each(function(f){var c=a(this),b=d;if(this.nodeType===1){if(j)b=d.call(this,f,c.val());if(typeof b==="number")b+="";if(a.isArray(b)&&H.test(this.type))this.checked=a.inArray(c.val(),b)>=0;else if(a.nodeName(this,"select")){var e=a.makeArray(b);a("option",this).each(function(){this.selected=a.inArray(a(this).val(),e)>=0});if(!e.length)this.selectedIndex=-1}else this.value=b}})}});a.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(b,d,e,f){if(!b||b.nodeType===3||b.nodeType===8)return c;if(f&&d in a.attrFn)return a(b)[d](e);f=b.nodeType!==1||!a.isXMLDoc(b);var g=e!==c;d=f&&a.props[d]||d;if(b.nodeType===1){var h=jb.test(d);if(d in b&&f&&!h){if(g){d==="type"&&lb.test(b.nodeName)&&b.parentNode&&a.error("type property can't be changed");b[d]=e}return a.nodeName(b,"form")&&b.getAttributeNode(d)?b.getAttributeNode(d).nodeValue:d==="tabIndex"?(d=b.getAttributeNode("tabIndex"))&&d.specified?d.value:nb.test(b.nodeName)||ob.test(b.nodeName)&&b.href?0:c:b[d]}if(!a.support.style&&f&&d==="style"){if(g)b.style.cssText=""+e;return b.style.cssText}g&&b.setAttribute(d,""+e);b=!a.support.hrefNormalized&&f&&h?b.getAttribute(d,2):b.getAttribute(d);return b===null?c:b}return a.style(b,d,e)}});var k=/\.(.*)$/,pb=function(a){return a.replace(/[^\w\s\.\|`]/g,function(a){return"\\"+a})};a.event={add:function(b,l,g,n){if(!(b.nodeType===3||b.nodeType===8)){if(b.setInterval&&b!==d&&!b.frameElement)b=d;var j,e;if(g.handler){j=g;g=j.handler}if(!g.guid)g.guid=a.guid++;if(e=a.data(b)){var o=e.events=e.events||{},h=e.handle;if(!h)e.handle=h=function(){return typeof a!=="undefined"&&!a.event.triggered?a.event.handle.apply(h.elem,arguments):c};h.elem=b;l=l.split(" ");for(var f,p=0,i;f=l[p++];){e=j?a.extend({},j):{handler:g,data:n};if(f.indexOf(".")>-1){i=f.split(".");f=i.shift();e.namespace=i.slice(0).sort().join(".")}else{i=[];e.namespace=""}e.type=f;e.guid=g.guid;var m=o[f],k=a.event.special[f]||{};if(!m){m=o[f]=[];if(!k.setup||k.setup.call(b,n,i,h)===false)if(b.addEventListener)b.addEventListener(f,h,false);else b.attachEvent&&b.attachEvent("on"+f,h)}if(k.add){k.add.call(b,e);if(!e.handler.guid)e.handler.guid=g.guid}m.push(e);a.event.global[f]=true}b=null}}},global:{},remove:function(e,b,n,l){if(!(e.nodeType===3||e.nodeType===8)){var c,p=0,m,k,o,h,f,i,g=a.data(e),j=g&&g.events;if(g&&j){if(b&&b.type){n=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(c in j)a.event.remove(e,c+b)}else{for(b=b.split(" ");c=b[p++];){h=c;m=c.indexOf(".")<0;k=[];if(!m){k=c.split(".");c=k.shift();o=new RegExp("(^|\\.)"+a.map(k.slice(0).sort(),pb).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(f=j[c])if(n){h=a.event.special[c]||{};for(d=l||0;d<f.length;d++){i=f[d];if(n.guid===i.guid){if(m||o.test(i.namespace)){l==null&&f.splice(d--,1);h.remove&&h.remove.call(e,i)}if(l!=null)break}}if(f.length===0||l!=null&&f.length===1){(!h.teardown||h.teardown.call(e,k)===false)&&I(e,c,g.handle);delete j[c]}}else for(var d=0;d<f.length;d++){i=f[d];if(m||o.test(i.namespace)){a.event.remove(e,h,i.handler,d);f.splice(d--,1)}}}if(a.isEmptyObject(j)){if(b=g.handle)b.elem=null;delete g.events;delete g.handle;a.isEmptyObject(g)&&a.removeData(e)}}}}},trigger:function(b,h,d,g){var e=b.type||b;if(!g){b=typeof b==="object"?b[f]?b:a.extend(a.Event(e),b):a.Event(e);if(e.indexOf("!")>=0){b.type=e=e.slice(0,-1);b.exclusive=true}if(!d){b.stopPropagation();a.event.global[e]&&a.each(a.cache,function(){this.events&&this.events[e]&&a.event.trigger(b,h,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return c;b.result=c;b.target=d;h=a.makeArray(h);h.unshift(b)}b.currentTarget=d;(g=a.data(d,"handle"))&&g.apply(d,h);g=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&a.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,h)===false)b.result=false}catch(l){}if(!b.isPropagationStopped()&&g)a.event.trigger(b,h,g,true);else if(!b.isDefaultPrevented()){g=b.target;var i,k=a.nodeName(g,"a")&&e==="click",j=a.event.special[e]||{};if((!j._default||j._default.call(d,b)===false)&&!k&&!(g&&g.nodeName&&a.noData[g.nodeName.toLowerCase()])){try{if(g[e]){if(i=g["on"+e])g["on"+e]=null;a.event.triggered=true;g[e]()}}catch(m){}if(i)g["on"+e]=i;a.event.triggered=false}}},handle:function(b){var h,e,i,g;b=arguments[0]=a.event.fix(b||d.event);b.currentTarget=this;h=b.type.indexOf(".")<0&&!b.exclusive;if(!h){e=b.type.split(".");b.type=e.shift();i=new RegExp("(^|\\.)"+e.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}g=a.data(this,"events");e=g[b.type];if(g&&e){e=e.slice(0);g=0;for(var j=e.length;g<j;g++){var f=e[g];if(h||i.test(f.namespace)){b.handler=f.handler;b.data=f.data;b.handleObj=f;f=f.handler.apply(this,arguments);if(f!==c){b.result=f;if(f===false){b.preventDefault();b.stopPropagation()}}if(b.isImmediatePropagationStopped())break}}}return b.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(d){if(d[f])return d;var e=d;d=a.Event(e);for(var g=this.props.length,h;g;){h=this.props[--g];d[h]=e[h]}if(!d.target)d.target=d.srcElement||b;if(d.target.nodeType===3)d.target=d.target.parentNode;if(!d.relatedTarget&&d.fromElement)d.relatedTarget=d.fromElement===d.target?d.toElement:d.fromElement;if(d.pageX==null&&d.clientX!=null){e=b.documentElement;g=b.body;d.pageX=d.clientX+(e&&e.scrollLeft||g&&g.scrollLeft||0)-(e&&e.clientLeft||g&&g.clientLeft||0);d.pageY=d.clientY+(e&&e.scrollTop||g&&g.scrollTop||0)-(e&&e.clientTop||g&&g.clientTop||0)}if(!d.which&&(d.charCode||d.charCode===0?d.charCode:d.keyCode))d.which=d.charCode||d.keyCode;if(!d.metaKey&&d.ctrlKey)d.metaKey=d.ctrlKey;if(!d.which&&d.button!==c)d.which=d.button&1?1:d.button&2?3:d.button&4?2:0;return d},guid:1e8,proxy:a.proxy,special:{ready:{setup:a.bindReady,teardown:a.noop},live:{add:function(b){a.event.add(this,b.origType,a.extend({},b,{handler:V}))},remove:function(b){var c=true,d=b.origType.replace(k,"");a.each(a.data(this,"events").live||[],function(){if(d===this.origType.replace(k,""))return c=false});c&&a.event.remove(this,b.origType,V)}},beforeunload:{setup:function(b,c,a){if(this.setInterval)this.onbeforeunload=a;return false},teardown:function(b,a){if(this.onbeforeunload===a)this.onbeforeunload=null}}}};var I=b.removeEventListener?function(a,b,c){a.removeEventListener(b,c,false)}:function(a,b,c){a.detachEvent("on"+b,c)};a.Event=function(b){if(!this.preventDefault)return new a.Event(b);if(b&&b.type){this.originalEvent=b;this.type=b.type}else this.type=b;this.timeStamp=g();this[f]=true};a.Event.prototype={preventDefault:function(){this.isDefaultPrevented=F;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=F;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=F;this.stopPropagation()},isDefaultPrevented:E,isPropagationStopped:E,isImmediatePropagationStopped:E};var J=function(c){var b=c.relatedTarget;try{for(;b&&b!==this;)b=b.parentNode;if(b!==this){c.type=c.data;a.event.handle.apply(this,arguments)}}catch(d){}},K=function(b){b.type=b.data;a.event.handle.apply(this,arguments)};a.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(b,c){a.event.special[b]={setup:function(d){a.event.add(this,c,d&&d.selector?K:J,b)},teardown:function(b){a.event.remove(this,c,b&&b.selector?K:J)}}});if(!a.support.submitBubbles)a.event.special.submit={setup:function(){if(this.nodeName.toLowerCase()!=="form"){a.event.add(this,"click.specialSubmit",function(d){var b=d.target,c=b.type;if((c==="submit"||c==="image")&&a(b).closest("form").length)return T("submit",this,arguments)});a.event.add(this,"keypress.specialSubmit",function(b){var c=b.target,d=c.type;if((d==="text"||d==="password")&&a(c).closest("form").length&&b.keyCode===13)return T("submit",this,arguments)})}else return false},teardown:function(){a.event.remove(this,".specialSubmit")}};if(!a.support.changeBubbles){var u=/textarea|input|select/i,v,L=function(b){var d=b.type,c=b.value;if(d==="radio"||d==="checkbox")c=b.checked;else if(d==="select-multiple")c=b.selectedIndex>-1?a.map(b.options,function(a){return a.selected}).join("-"):"";else if(b.nodeName.toLowerCase()==="select")c=b.selectedIndex;return c},w=function(d,g){var b=d.target,f,e;if(!(!u.test(b.nodeName)||b.readOnly)){f=a.data(b,"_change_data");e=L(b);(d.type!=="focusout"||b.type!=="radio")&&a.data(b,"_change_data",e);if(!(f===c||e===f))if(f!=null||e){d.type="change";return a.event.trigger(d,g,b)}}};a.event.special.change={filters:{focusout:w,click:function(a){var b=a.target,c=b.type;if(c==="radio"||c==="checkbox"||b.nodeName.toLowerCase()==="select")return w.call(this,a)},keydown:function(a){var c=a.target,b=c.type;if(a.keyCode===13&&c.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(b==="checkbox"||b==="radio")||b==="select-multiple")return w.call(this,a)},beforeactivate:function(b){b=b.target;a.data(b,"_change_data",L(b))}},setup:function(){if(this.type==="file")return false;for(var b in v)a.event.add(this,b+".specialChange",v[b]);return u.test(this.nodeName)},teardown:function(){a.event.remove(this,".specialChange");return u.test(this.nodeName)}};v=a.event.special.change.filters}b.addEventListener&&a.each({focus:"focusin",blur:"focusout"},function(b,c){function d(b){b=a.event.fix(b);b.type=c;return a.event.handle.call(this,b)}a.event.special[c]={setup:function(){this.addEventListener(b,d,true)},teardown:function(){this.removeEventListener(b,d,true)}}});a.each(["bind","one"],function(d,b){a.fn[b]=function(d,f,e){if(typeof d==="object"){for(var g in d)this[b](g,f,d[g],e);return this}if(a.isFunction(f)){e=f;f=c}var h=b==="one"?a.proxy(e,function(b){a(this).unbind(b,h);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{g=0;for(var i=this.length;g<i;g++)a.event.add(this[g],d,h,f)}return this}});a.fn.extend({unbind:function(c,d){if(typeof c==="object"&&!c.preventDefault)for(var b in c)this.unbind(b,c[b]);else{b=0;for(var e=this.length;b<e;b++)a.event.remove(this[b],c,d)}return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(b,c){return this.each(function(){a.event.trigger(b,c,this)})},triggerHandler:function(b,c){if(this[0]){b=a.Event(b);b.preventDefault();b.stopPropagation();a.event.trigger(b,c,this[0]);return b.result}},toggle:function(b){for(var c=arguments,d=1;d<c.length;)a.proxy(b,c[d++]);return this.click(a.proxy(b,function(f){var e=(a.data(this,"lastToggle"+b.guid)||0)%d;a.data(this,"lastToggle"+b.guid,e+1);f.preventDefault();return c[e].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var M={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};a.each(["live","die"],function(d,b){a.fn[b]=function(f,i,h,g){var d,n=0,e,l,j=g||this.selector,m=g?this:a(this.context);if(a.isFunction(i)){h=i;i=c}for(f=(f||"").split(" ");(d=f[n++])!=null;){g=k.exec(d);e="";if(g){e=g[0];d=d.replace(k,"")}if(d==="hover")f.push("mouseenter"+e,"mouseleave"+e);else{l=d;if(d==="focus"||d==="blur"){f.push(M[d]+e);d+=e}else d=(M[d]||d)+e;b==="live"?m.each(function(){a.event.add(this,Y(d,j),{data:i,selector:j,handler:h,origType:d,origHandler:h,preType:l})}):m.unbind(Y(d,j),h)}}return this}});a.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(c,b){a.fn[b]=function(a){return a?this.bind(b,a):this.trigger(b)};if(a.attrFn)a.attrFn[b]=true});d.attachEvent&&!d.addEventListener&&d.attachEvent("onunload",function(){for(var b in a.cache)if(a.cache[b].handle)try{a.event.remove(a.cache[b].handle.elem)}catch(c){}});(function(){function k(d){for(var b="",a,c=0;d[c];c++){a=d[c];if(a.nodeType===3||a.nodeType===4)b+=a.nodeValue;else if(a.nodeType!==8)b+=k(a.childNodes)}return b}function o(e,g,f,c,b,h){b=0;for(var i=c.length;b<i;b++){var a=c[b];if(a){a=a[e];for(var d=false;a;){if(a.sizcache===f){d=c[a.sizset];break}if(a.nodeType===1&&!h){a.sizcache=f;a.sizset=b}if(a.nodeName.toLowerCase()===g){d=a;break}a=a[e]}c[b]=d}}}function p(g,f,h,c,b,i){b=0;for(var j=c.length;b<j;b++){var a=c[b];if(a){a=a[g];for(var d=false;a;){if(a.sizcache===h){d=c[a.sizset];break}if(a.nodeType===1){if(!i){a.sizcache=h;a.sizset=b}if(typeof f!=="string"){if(a===f){d=true;break}}else if(e.filter(f,[a]).length>0){d=a;break}}a=a[g]}c[b]=d}}}var m=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,l=0,r=Object.prototype.toString,f=false,s=true;[0,0].sort(function(){s=false;return 0});var e=function(c,g,k,s){k=k||[];var x=g=g||b;if(g.nodeType!==1&&g.nodeType!==9)return[];if(!c||typeof c!=="string")return k;for(var a=[],f,l,i,u,v=true,p=j(g),w=c;(m.exec(""),f=m.exec(w))!==null;){w=f[3];a.push(f[1]);if(f[2]){u=f[3];break}}if(a.length>1&&t.exec(c))if(a.length===2&&d.relative[a[0]])l=n(a[0]+a[1],g);else for(l=d.relative[a[0]]?[g]:e(a.shift(),g);a.length;){c=a.shift();if(d.relative[c])c+=a.shift();l=n(c,l)}else{if(!s&&a.length>1&&g.nodeType===9&&!p&&d.match.ID.test(a[0])&&!d.match.ID.test(a[a.length-1])){f=e.find(a.shift(),g,p);g=f.expr?e.filter(f.expr,f.set)[0]:f.set[0]}if(g){f=s?{expr:a.pop(),"set":h(s)}:e.find(a.pop(),a.length===1&&(a[0]==="~"||a[0]==="+")&&g.parentNode?g.parentNode:g,p);l=f.expr?e.filter(f.expr,f.set):f.set;if(a.length>0)i=h(l);else v=false;for(;a.length;){var o=a.pop();f=o;if(d.relative[o])f=a.pop();else o="";if(f==null)f=g;d.relative[o](i,f,p)}}else i=[]}i||(i=l);i||e.error(o||c);if(r.call(i)==="[object Array]")if(v)if(g&&g.nodeType===1)for(c=0;i[c]!=null;c++)i[c]&&(i[c]===true||i[c].nodeType===1&&q(g,i[c]))&&k.push(l[c]);else for(c=0;i[c]!=null;c++)i[c]&&i[c].nodeType===1&&k.push(l[c]);else k.push.apply(k,i);else h(i,k);if(u){e(u,x,k,s);e.uniqueSort(k)}return k};e.uniqueSort=function(a){if(g){f=s;a.sort(g);if(f)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a};e.matches=function(a,b){return e(a,null,null,b)};e.find=function(b,g,i){var c,a;if(!b)return[];for(var e=0,j=d.order.length;e<j;e++){var f=d.order[e];if(a=d.leftMatch[f].exec(b)){var h=a[1];a.splice(1,1);if(h.substr(h.length-1)!=="\\"){a[1]=(a[1]||"").replace(/\\/g,"");c=d.find[f](a,g,i);if(c!=null){b=b.replace(d.match[f],"");break}}}}c||(c=g.getElementsByTagName("*"));return{"set":c,expr:b}};e.filter=function(b,i,o,q){for(var r=b,m=[],g=i,a,h,t=i&&i[0]&&j(i[0]);b&&i.length;){for(var k in d.filter)if((a=d.leftMatch[k].exec(b))!=null&&a[2]){var s=d.filter[k],l,f;f=a[1];h=false;a.splice(1,1);if(f.substr(f.length-1)!=="\\"){if(g===m)m=[];if(d.preFilter[k])if(a=d.preFilter[k](a,g,o,m,q,t)){if(a===true)continue}else h=l=true;if(a)for(var n=0;(f=g[n])!=null;n++)if(f){l=s(f,a,n,g);var p=q^!!l;if(o&&l!=null)if(p)h=true;else g[n]=false;else if(p){m.push(f);h=true}}if(l!==c){o||(g=m);b=b.replace(d.match[k],"");if(!h)return[];break}}}if(b===r)if(h==null)e.error(b);else break;r=b}return g};e.error=function(a){throw"Syntax error, unrecognized expression: "+a;};var d=e.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(a){return a.getAttribute("href")}},relative:{"+":function(f,b){var d=typeof b==="string",c=d&&!/\W/.test(b);d=d&&!c;if(c)b=b.toLowerCase();c=0;for(var g=f.length,a;c<g;c++)if(a=f[c]){for(;(a=a.previousSibling)&&a.nodeType!==1;);f[c]=d||a&&a.nodeName.toLowerCase()===b?a||false:a===b}d&&e.filter(b,f,true)},">":function(b,c){var d=typeof c==="string";if(d&&!/\W/.test(c)){c=c.toLowerCase();for(var a=0,g=b.length;a<g;a++){var f=b[a];if(f){d=f.parentNode;b[a]=d.nodeName.toLowerCase()===c?d:false}}}else{a=0;for(g=b.length;a<g;a++)if(f=b[a])b[a]=d?f.parentNode:f.parentNode===c;d&&e.filter(c,b,true)}},"":function(c,a,d){var e=l++,b=p;if(typeof a==="string"&&!/\W/.test(a)){var f=a=a.toLowerCase();b=o}b("parentNode",a,e,c,f,d)},"~":function(c,a,d){var e=l++,b=p;if(typeof a==="string"&&!/\W/.test(a)){var f=a=a.toLowerCase();b=o}b("previousSibling",a,e,c,f,d)}},find:{ID:function(a,b,c){if(typeof b.getElementById!=="undefined"&&!c)return(a=b.getElementById(a[1]))?[a]:[]},NAME:function(d,a){if(typeof a.getElementsByName!=="undefined"){var c=[];a=a.getElementsByName(d[1]);for(var b=0,e=a.length;b<e;b++)a[b].getAttribute("name")===d[1]&&c.push(a[b]);return c.length===0?null:c}},TAG:function(a,b){return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(c,d,e,f,g,a){c=" "+c[1].replace(/\\/g,"")+" ";if(a)return c;a=0;for(var b;(b=d[a])!=null;a++)if(b)if(g^(b.className&&(" "+b.className+" ").replace(/[\t\n]/g," ").indexOf(c)>=0))e||f.push(b);else if(e)d[a]=false;return false},ID:function(a){return a[1].replace(/\\/g,"")},TAG:function(a){return a[1].toLowerCase()},CHILD:function(a){if(a[1]==="nth"){var b=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0;a[3]=b[3]-0}a[0]=l++;return a},ATTR:function(a,b,e,f,g,c){b=a[1].replace(/\\/g,"");if(!c&&d.attrMap[b])a[1]=d.attrMap[b];if(a[2]==="~=")a[4]=" "+a[4]+" ";return a},PSEUDO:function(a,b,c,f,g){if(a[1]==="not")if((m.exec(a[3])||"").length>1||/^\w/.test(a[3]))a[3]=e(a[3],null,null,b);else{a=e.filter(a[3],b,c,true^g);c||f.push.apply(f,a);return false}else if(d.match.POS.test(a[0])||d.match.CHILD.test(a[0]))return true;return a},POS:function(a){a.unshift(true);return a}},filters:{enabled:function(a){return a.disabled===false&&a.type!=="hidden"},disabled:function(a){return a.disabled===true},checked:function(a){return a.checked===true},selected:function(a){return a.selected===true},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,c,b){return!!e(b[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){return"text"===a.type},radio:function(a){return"radio"===a.type},checkbox:function(a){return"checkbox"===a.type},file:function(a){return"file"===a.type},password:function(a){return"password"===a.type},submit:function(a){return"submit"===a.type},image:function(a){return"image"===a.type},reset:function(a){return"reset"===a.type},button:function(a){return"button"===a.type||a.nodeName.toLowerCase()==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)}},setFilters:{first:function(b,a){return a===0},last:function(c,a,d,b){return a===b.length-1},even:function(b,a){return a%2===0},odd:function(b,a){return a%2===1},lt:function(c,a,b){return a<b[3]-0},gt:function(c,a,b){return a>b[3]-0},nth:function(c,a,b){return b[3]-0===a},eq:function(c,a,b){return b[3]-0===a}},filter:{PSEUDO:function(b,a,c,g){var f=a[1],h=d.filters[f];if(h)return h(b,c,a,g);else if(f==="contains")return(b.textContent||b.innerText||k([b])||"").indexOf(a[3])>=0;else if(f==="not"){a=a[3];c=0;for(g=a.length;c<g;c++)if(a[c]===b)return false;return true}else e.error("Syntax error, unrecognized expression: "+f)},CHILD:function(b,c){var d=c[1],a=b;switch(d){case"only":case"first":for(;a=a.previousSibling;)if(a.nodeType===1)return false;if(d==="first")return true;a=b;case"last":for(;a=a.nextSibling;)if(a.nodeType===1)return false;return true;case"nth":d=c[2];var f=c[3];if(d===1&&f===0)return true;c=c[0];var e=b.parentNode;if(e&&(e.sizcache!==c||!b.nodeIndex)){var g=0;for(a=e.firstChild;a;a=a.nextSibling)if(a.nodeType===1)a.nodeIndex=++g;e.sizcache=c}b=b.nodeIndex-f;return d===0?b===0:b%d===0&&b/d>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(c,b){var a=b[1];c=d.attrHandle[a]?d.attrHandle[a](c):c[a]!=null?c[a]:c.getAttribute(a);a=c+"";var e=b[2];b=b[4];return c==null?e==="!=":e==="="?a===b:e==="*="?a.indexOf(b)>=0:e==="~="?(" "+a+" ").indexOf(b)>=0:!b?a&&c!==false:e==="!="?a!==b:e==="^="?a.indexOf(b)===0:e==="$="?a.substr(a.length-b.length)===b:e==="|="?a===b||a.substr(0,b.length+1)===b+"-":false},POS:function(c,a,e,f){var b=d.setFilters[a[2]];if(b)return b(c,e,a,f)}}},t=d.match.POS;for(var i in d.match){d.match[i]=new RegExp(d.match[i].source+/(?![^\[]*\])(?![^\(]*\))/.source);d.leftMatch[i]=new RegExp(/(^(?:.|\r|\n)*?)/.source+d.match[i].source.replace(/\\(\d+)/g,function(b,a){return"\\"+(a-0+1)}))}var h=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(b.documentElement.childNodes,0)}catch(u){h=function(a,c){c=c||[];if(r.call(a)==="[object Array]")Array.prototype.push.apply(c,a);else if(typeof a.length==="number")for(var b=0,d=a.length;b<d;b++)c.push(a[b]);else for(b=0;a[b];b++)c.push(a[b]);return c}}var g;if(b.documentElement.compareDocumentPosition)g=function(a,b){if(!a.compareDocumentPosition||!b.compareDocumentPosition){if(a==b)f=true;return a.compareDocumentPosition?-1:1}a=a.compareDocumentPosition(b)&4?-1:a===b?0:1;if(a===0)f=true;return a};else if("sourceIndex"in b.documentElement)g=function(a,b){if(!a.sourceIndex||!b.sourceIndex){if(a==b)f=true;return a.sourceIndex?-1:1}a=a.sourceIndex-b.sourceIndex;if(a===0)f=true;return a};else if(b.createRange)g=function(a,b){if(!a.ownerDocument||!b.ownerDocument){if(a==b)f=true;return a.ownerDocument?-1:1}var c=a.ownerDocument.createRange(),d=b.ownerDocument.createRange();c.setStart(a,0);c.setEnd(a,0);d.setStart(b,0);d.setEnd(b,0);a=c.compareBoundaryPoints(Range.START_TO_END,d);if(a===0)f=true;return a};(function(){var a=b.createElement("div"),f="script"+(new Date).getTime();a.innerHTML="<a name='"+f+"'/>";var e=b.documentElement;e.insertBefore(a,e.firstChild);if(b.getElementById(f)){d.find.ID=function(b,a,d){if(typeof a.getElementById!=="undefined"&&!d)return(a=a.getElementById(b[1]))?a.id===b[1]||typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id").nodeValue===b[1]?[a]:c:[]};d.filter.ID=function(a,c){var b=typeof a.getAttributeNode!=="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&b&&b.nodeValue===c}}e.removeChild(a);e=a=null})();(function(){var a=b.createElement("div");a.appendChild(b.createComment(""));if(a.getElementsByTagName("*").length>0)d.find.TAG=function(b,a){a=a.getElementsByTagName(b[1]);if(b[1]==="*"){b=[];for(var c=0;a[c];c++)a[c].nodeType===1&&b.push(a[c]);a=b}return a};a.innerHTML="<a href='#'></a>";if(a.firstChild&&typeof a.firstChild.getAttribute!=="undefined"&&a.firstChild.getAttribute("href")!=="#")d.attrHandle.href=function(a){return a.getAttribute("href",2)};a=null})();b.querySelectorAll&&function(){var c=e,a=b.createElement("div");a.innerHTML="<p class='TEST'></p>";if(!(a.querySelectorAll&&a.querySelectorAll(".TEST").length===0)){e=function(d,a,e,f){a=a||b;if(!f&&a.nodeType===9&&!j(a))try{return h(a.querySelectorAll(d),e)}catch(g){}return c(d,a,e,f)};for(var d in c)e[d]=c[d];a=null}}();(function(){var a=b.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!(!a.getElementsByClassName||a.getElementsByClassName("e").length===0)){a.lastChild.className="e";if(a.getElementsByClassName("e").length!==1){d.order.splice(1,0,"CLASS");d.find.CLASS=function(b,a,c){if(typeof a.getElementsByClassName!=="undefined"&&!c)return a.getElementsByClassName(b[1])};a=null}}})();var q=b.compareDocumentPosition?function(a,b){return!!(a.compareDocumentPosition(b)&16)}:function(a,b){return a!==b&&(a.contains?a.contains(b):true)},j=function(a){return(a=(a?a.ownerDocument||a:0).documentElement)?a.nodeName!=="HTML":false},n=function(a,b){var f=[],g="",c;for(b=b.nodeType?[b]:b;c=d.match.PSEUDO.exec(a);){g+=c[0];a=a.replace(d.match.PSEUDO,"")}a=d.relative[a]?a+"*":a;c=0;for(var h=b.length;c<h;c++)e(a,b[c],f);return e.filter(g,f)};a.find=e;a.expr=e.selectors;a.expr[":"]=a.expr.filters;a.unique=e.uniqueSort;a.text=k;a.isXMLDoc=j;a.contains=q})();var qb=/Until$/,rb=/^(?:parents|prevUntil|prevAll)/,sb=/,/;n=Array.prototype.slice;var N=function(c,b,d){if(a.isFunction(b))return a.grep(c,function(a,c){return!!b.call(a,c,a)===d});else if(b.nodeType)return a.grep(c,function(a){return a===b===d});else if(typeof b==="string"){var e=a.grep(c,function(a){return a.nodeType===1});if(Kb.test(b))return a.filter(b,e,!d);else b=a.filter(b,e)}return a.grep(c,function(c){return a.inArray(c,b)>=0===d})};a.fn.extend({find:function(g){for(var b=this.pushStack("","find",g),e=0,c=0,h=this.length;c<h;c++){e=b.length;a.find(g,this[c],b);if(c>0)for(var d=e;d<b.length;d++)for(var f=0;f<e;f++)if(b[f]===b[d]){b.splice(d--,1);break}}return b},has:function(c){var b=a(c);return this.filter(function(){for(var c=0,d=b.length;c<d;c++)if(a.contains(this,b[c]))return true})},not:function(a){return this.pushStack(N(this,a,false),"not",a)},filter:function(a){return this.pushStack(N(this,a,true),"filter",a)},is:function(b){return!!b&&a.filter(b,this).length>0},closest:function(e,g){if(a.isArray(e)){var h=[],c=this[0],d,f={},b;if(c&&e.length){d=0;for(var j=e.length;d<j;d++){b=e[d];f[b]||(f[b]=a.expr.match.POS.test(b)?a(b,g||this.context):b)}for(;c&&c.ownerDocument&&c!==g;){for(b in f){d=f[b];if(d.jquery?d.index(c)>-1:a(c).is(d)){h.push({selector:b,elem:c});delete f[b]}}c=c.parentNode}}return h}var i=a.expr.match.POS.test(e)?a(e,g||this.context):null;return this.map(function(c,b){for(;b&&b.ownerDocument&&b!==g;){if(i?i.index(b)>-1:a(b).is(e))return b;b=b.parentNode}return null})},index:function(b){return!b||typeof b==="string"?a.inArray(this[0],b?a(b):this.parent().children()):a.inArray(b.jquery?b[0]:b,this)},add:function(b,c){b=typeof b==="string"?a(b,c||this.context):a.makeArray(b);c=a.merge(this.get(),b);return this.pushStack(Z(b[0])||Z(c[0])?c:a.unique(c))},andSelf:function(){return this.add(this.prevObject)}});a.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(b){return a.dir(b,"parentNode")},parentsUntil:function(b,d,c){return a.dir(b,"parentNode",c)},next:function(b){return a.nth(b,2,"nextSibling")},prev:function(b){return a.nth(b,2,"previousSibling")},nextAll:function(b){return a.dir(b,"nextSibling")},prevAll:function(b){return a.dir(b,"previousSibling")},nextUntil:function(b,d,c){return a.dir(b,"nextSibling",c)},prevUntil:function(b,d,c){return a.dir(b,"previousSibling",c)},siblings:function(b){return a.sibling(b.parentNode.firstChild,b)},children:function(b){return a.sibling(b.firstChild)},contents:function(b){return a.nodeName(b,"iframe")?b.contentDocument||b.contentWindow.document:a.makeArray(b.childNodes)}},function(b,c){a.fn[b]=function(f,e){var d=a.map(this,c,f);qb.test(b)||(e=f);if(e&&typeof e==="string")d=a.filter(e,d);d=this.length>1?a.unique(d):d;if((this.length>1||sb.test(e))&&rb.test(b))d=d.reverse();return this.pushStack(d,b,n.call(arguments).join(","))}});a.extend({filter:function(b,c,d){if(d)b=":not("+b+")";return a.find.matches(b,c)},dir:function(b,d,e){var f=[];for(b=b[d];b&&b.nodeType!==9&&(e===c||b.nodeType!==1||!a(b).is(e));){b.nodeType===1&&f.push(b);b=b[d]}return f},nth:function(a,b,c){b=b||1;for(var d=0;a;a=a[c])if(a.nodeType===1&&++d===b)break;return a},sibling:function(a,c){for(var b=[];a;a=a.nextSibling)a.nodeType===1&&a!==c&&b.push(a);return b}});var O=/ jQuery\d+="(?:\d+|null)"/g,p=/^\s+/,P=/(<([\w:]+)[^>]*?)\/>/g,tb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,Q=/<([\w:]+)/,ub=/<tbody/i,vb=/<|&#?\w+;/,cb=/<script|<object|<embed|<option|<style/i,db=/checked\s*(?:[^=]|=\s*.checked.)/i,S=function(b,c,a){return tb.test(a)?b:c+"></"+a+">"},e={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,"",""]};e.optgroup=e.option;e.tbody=e.tfoot=e.colgroup=e.caption=e.thead;e.th=e.td;if(!a.support.htmlSerialize)e._default=[1,"div<div>","</div>"];a.fn.extend({text:function(d){return a.isFunction(d)?this.each(function(c){var b=a(this);b.text(d.call(this,c,b.text()))}):typeof d!=="object"&&d!==c?this.empty().append((this[0]&&this[0].ownerDocument||b).createTextNode(d)):a.text(this)},wrapAll:function(b){if(a.isFunction(b))return this.each(function(c){a(this).wrapAll(b.call(this,c))});if(this[0]){var c=a(b,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&c.insertBefore(this[0]);c.map(function(){for(var a=this;a.firstChild&&a.firstChild.nodeType===1;)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(b){return a.isFunction(b)?this.each(function(c){a(this).wrapInner(b.call(this,c))}):this.each(function(){var c=a(this),d=c.contents();d.length?d.wrapAll(b):c.append(b)})},wrap:function(b){return this.each(function(){a(this).wrapAll(b)})},unwrap:function(){return this.parent().each(function(){a.nodeName(this,"body")||a(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(a){this.parentNode.insertBefore(a,this)});else if(arguments.length){var b=a(arguments[0]);b.push.apply(b,this.toArray());return this.pushStack(b,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this.nextSibling)});else if(arguments.length){var b=this.pushStack(this,"after",arguments);b.push.apply(b,a(arguments[0]).toArray());return b}},remove:function(c,e){for(var d=0,b;(b=this[d])!=null;d++)if(!c||a.filter(c,[b]).length){if(!e&&b.nodeType===1){a.cleanData(b.getElementsByTagName("*"));a.cleanData([b])}b.parentNode&&b.parentNode.removeChild(b)}return this},empty:function(){for(var c=0,b;(b=this[c])!=null;c++)for(b.nodeType===1&&a.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild);return this},clone:function(c){var b=this.map(function(){if(!a.support.noCloneEvent&&!a.isXMLDoc(this)){var b=this.outerHTML,c=this.ownerDocument;if(!b){b=c.createElement("div");b.appendChild(this.cloneNode(true));b=b.innerHTML}return a.clean([b.replace(O,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(p,"")],c)[0]}else return this.cloneNode(true)});if(c===true){ab(this,b);ab(this.find("*"),b.find("*"))}return b},html:function(b){if(b===c)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(O,""):null;else if(typeof b==="string"&&!cb.test(b)&&(a.support.leadingWhitespace||!p.test(b))&&!e[(Q.exec(b)||["",""])[1].toLowerCase()]){b=b.replace(P,S);try{for(var d=0,f=this.length;d<f;d++)if(this[d].nodeType===1){a.cleanData(this[d].getElementsByTagName("*"));this[d].innerHTML=b}}catch(g){this.empty().append(b)}}else a.isFunction(b)?this.each(function(d){var c=a(this),e=c.html();c.empty().append(function(){return b.call(this,d,e)})}):this.empty().append(b);return this},replaceWith:function(b){if(this[0]&&this[0].parentNode){if(a.isFunction(b))return this.each(function(d){var c=a(this),e=c.html();c.replaceWith(b.call(this,d,e))});if(typeof b!=="string")b=a(b).detach();return this.each(function(){var c=this.nextSibling,d=this.parentNode;a(this).remove();c?a(c).before(b):a(d).append(b)})}else return this.pushStack(a(a.isFunction(b)?b():b),"replaceWith",b)},detach:function(a){return this.remove(a,true)},domManip:function(g,e,i){function l(b){return a.nodeName(b,"table")?b.getElementsByTagName("tbody")[0]||b.appendChild(b.ownerDocument.createElement("tbody")):b}var b,j,f=g[0],k=[],d;if(!a.support.checkClone&&arguments.length===3&&typeof f==="string"&&db.test(f))return this.each(function(){a(this).domManip(g,e,i,true)});if(a.isFunction(f))return this.each(function(d){var b=a(this);g[0]=f.call(this,d,e?b.html():c);b.domManip(g,e,i)});if(this[0]){b=f&&f.parentNode;b=a.support.parentNode&&b&&b.nodeType===11&&b.childNodes.length===this.length?{fragment:b}:bb(g,this,k);d=b.fragment;if(j=d.childNodes.length===1?d=d.firstChild:d.firstChild){e=e&&a.nodeName(j,"tr");for(var h=0,m=this.length;h<m;h++)i.call(e?l(this[h],j):this[h],h>0||b.cacheable||this.length>1?d.cloneNode(true):d)}k.length&&a.each(k,Cb)}return this}});a.fragments={};a.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(b,c){a.fn[b]=function(e){var f=[];e=a(e);var d=this.length===1&&this[0].parentNode;if(d&&d.nodeType===11&&d.childNodes.length===1&&e.length===1){e[c](this[0]);return this}else{d=0;for(var h=e.length;d<h;d++){var g=(d>0?this.clone(true):this).get();a.fn[c].apply(a(e[d]),g);f=f.concat(g)}return this.pushStack(f,b,e.selector)}}});a.extend({clean:function(n,h,l,m){h=h||b;if(typeof h.createElement==="undefined")h=h.ownerDocument||h[0]&&h[0].ownerDocument||b;for(var d=[],f=0,c;(c=n[f])!=null;f++){if(typeof c==="number")c+="";if(c){if(typeof c==="string"&&!vb.test(c))c=h.createTextNode(c);else if(typeof c==="string"){c=c.replace(P,S);var j=(Q.exec(c)||["",""])[1].toLowerCase(),g=e[j]||e._default,k=g[0],i=h.createElement("div");for(i.innerHTML=g[1]+c+g[2];k--;)i=i.lastChild;if(!a.support.tbody){k=ub.test(c);j=j==="table"&&!k?i.firstChild&&i.firstChild.childNodes:g[1]==="<table>"&&!k?i.childNodes:[];for(g=j.length-1;g>=0;--g)a.nodeName(j[g],"tbody")&&!j[g].childNodes.length&&j[g].parentNode.removeChild(j[g])}!a.support.leadingWhitespace&&p.test(c)&&i.insertBefore(h.createTextNode(p.exec(c)[0]),i.firstChild);c=i.childNodes}if(c.nodeType)d.push(c);else d=a.merge(d,c)}}if(l)for(f=0;d[f];f++)if(m&&a.nodeName(d[f],"script")&&(!d[f].type||d[f].type.toLowerCase()==="text/javascript"))m.push(d[f].parentNode?d[f].parentNode.removeChild(d[f]):d[f]);else{d[f].nodeType===1&&d.splice.apply(d,[f+1,0].concat(a.makeArray(d[f].getElementsByTagName("script"))));l.appendChild(d[f])}return d},cleanData:function(h){for(var c,d,f=a.cache,i=a.event.special,j=a.support.deleteExpando,g=0,b;(b=h[g])!=null;g++)if(d=b[a.expando]){c=f[d];if(c.events)for(var e in c.events)i[e]?a.event.remove(b,e):I(b,e,c.handle);if(j)delete b[a.expando];else b.removeAttribute&&b.removeAttribute(a.expando);delete f[d]}}});var wb=/z-?index|font-?weight|opacity|zoom|line-?height/i,U=/alpha\([^)]*\)/,W=/opacity=([^)]*)/,x=/float/i,y=/-([a-z])/ig,xb=/([A-Z])/g,yb=/^-?\d+(?:px)?$/i,zb=/^-?\d/,Ab={position:"absolute",visibility:"hidden",display:"block"},Bb=["Left","Right"],Db=["Top","Bottom"],Fb=b.defaultView&&b.defaultView.getComputedStyle,X=a.support.cssFloat?"cssFloat":"styleFloat",z=function(b,a){return a.toUpperCase()};a.fn.css=function(b,d){return D(this,b,d,true,function(e,d,b){if(b===c)return a.curCSS(e,d);if(typeof b==="number"&&!wb.test(d))b+="px";a.style(e,d,b)})};a.extend({style:function(d,b,f){if(!d||d.nodeType===3||d.nodeType===8)return c;if((b==="width"||b==="height")&&parseFloat(f)<0)f=c;var e=d.style||d,g=f!==c;if(!a.support.opacity&&b==="opacity"){if(g){e.zoom=1;b=parseInt(f,10)+""==="NaN"?"":"alpha(opacity="+f*100+")";d=e.filter||a.curCSS(d,"filter")||"";e.filter=U.test(d)?d.replace(U,b):b}return e.filter&&e.filter.indexOf("opacity=")>=0?parseFloat(W.exec(e.filter)[1])/100+"":""}if(x.test(b))b=X;b=b.replace(y,z);if(g)e[b]=f;return e[b]},css:function(b,c,g,e){if(c==="width"||c==="height"){var d,h=c==="width"?Bb:Db;function f(){d=c==="width"?b.offsetWidth:b.offsetHeight;e!=="border"&&a.each(h,function(){e||(d-=parseFloat(a.curCSS(b,"padding"+this,true))||0);if(e==="margin")d+=parseFloat(a.curCSS(b,"margin"+this,true))||0;else d-=parseFloat(a.curCSS(b,"border"+this+"Width",true))||0})}b.offsetWidth!==0?f():a.swap(b,Ab,f);return Math.max(0,Math.round(d))}return a.curCSS(b,c,g)},curCSS:function(c,b,f){var d,e=c.style;if(!a.support.opacity&&b==="opacity"&&c.currentStyle){d=W.test(c.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return d===""?"1":d}if(x.test(b))b=X;if(!f&&e&&e[b])d=e[b];else if(Fb){if(x.test(b))b="float";b=b.replace(xb,"-$1").toLowerCase();e=c.ownerDocument.defaultView;if(!e)return null;if(c=e.getComputedStyle(c,null))d=c.getPropertyValue(b);if(b==="opacity"&&d==="")d="1"}else if(c.currentStyle){f=b.replace(y,z);d=c.currentStyle[b]||c.currentStyle[f];if(!yb.test(d)&&zb.test(d)){b=e.left;var g=c.runtimeStyle.left;c.runtimeStyle.left=c.currentStyle.left;e.left=f==="fontSize"?"1em":d||0;d=e.pixelLeft+"px";e.left=b;c.runtimeStyle.left=g}}return d},swap:function(b,c,e){var d={};for(var a in c){d[a]=b.style[a];b.style[a]=c[a]}e.call(b);for(a in c)b.style[a]=d[a]}});if(a.expr&&a.expr.filters){a.expr.filters.hidden=function(b){var c=b.offsetWidth,d=b.offsetHeight,e=b.nodeName.toLowerCase()==="tr";return c===0&&d===0&&!e?true:c>0&&d>0&&!e?false:a.curCSS(b,"display")==="none"};a.expr.filters.visible=function(b){return!a.expr.filters.hidden(b)}}var Hb=g(),Jb=/<script(.|\s)*?\/script>/gi,Lb=/select|textarea/i,Nb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,j=/=\?(&|$)/,A=/\?/,Pb=/(\?|&)_=.*?(&|$)/,Rb=/^(\w+:)?\/\/([^\/?#]+)/,Tb=/%20/g,Vb=a.fn.load;a.fn.extend({load:function(b,c,e){if(typeof b!=="string")return Vb.call(this,b);else if(!this.length)return this;var d=b.indexOf(" ");if(d>=0){var f=b.slice(d,b.length);b=b.slice(0,d)}d="GET";if(c)if(a.isFunction(c)){e=c;c=null}else if(typeof c==="object"){c=a.param(c,a.ajaxSettings.traditional);d="POST"}var g=this;a.ajax({url:b,type:d,dataType:"html",data:c,complete:function(b,c){(c==="success"||c==="notmodified")&&g.html(f?a("<div />").append(b.responseText.replace(Jb,"")).find(f):b.responseText);e&&g.each(e,[b.responseText,c,b])}});return this},serialize:function(){return a.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?a.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Lb.test(this.nodeName)||Nb.test(this.type))}).map(function(b,c){b=a(this).val();return b==null?null:a.isArray(b)?a.map(b,function(a){return{name:c.name,value:a}}):{name:c.name,value:b}}).get()}});a.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(c,b){a.fn[b]=function(a){return this.bind(b,a)}});a.extend({"get":function(e,b,c,d){if(a.isFunction(b)){d=d||c;c=b;b=null}return a.ajax({type:"GET",url:e,data:b,success:c,dataType:d})},getScript:function(b,c){return a.get(b,null,c,"script")},getJSON:function(b,c,d){return a.get(b,c,d,"json")},post:function(e,b,c,d){if(a.isFunction(b)){d=d||c;c=b;b={}}return a.ajax({type:"POST",url:e,data:b,success:c,dataType:d})},ajaxSetup:function(b){a.extend(a.ajaxSettings,b)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:d.XMLHttpRequest&&(d.location.protocol!=="file:"||!d.ActiveXObject)?function(){return new d.XMLHttpRequest}:function(){try{return new d.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(o){function r(){e.success&&e.success.call(u,v,m,f);e.global&&s("ajaxSuccess",[f,e])}function p(){e.complete&&e.complete.call(u,f,m);e.global&&s("ajaxComplete",[f,e]);e.global&&!--a.active&&a.event.trigger("ajaxStop")}function s(c,b){(e.context?a(e.context):a.event).trigger(c,b)}var e=a.extend(true,{},a.ajaxSettings,o),i,m,v,u=o&&o.context||e,k=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=a.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(k==="GET")j.test(e.url)||(e.url+=(A.test(e.url)?"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!j.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&j.test(e.data)||j.test(e.url))){i=e.jsonpCallback||"jsonp"+Hb++;if(e.data)e.data=(e.data+"").replace(j,"="+i+"$1");e.url=e.url.replace(j,"="+i+"$1");e.dataType="script";d[i]=d[i]||function(a){v=a;r();p();d[i]=c;try{delete d[i]}catch(b){}n&&n.removeChild(h)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache===false&&k==="GET"){var l=g(),x=e.url.replace(Pb,"$1_="+l+"$2");e.url=x+(x===e.url?(A.test(e.url)?"&":"?")+"_="+l:"")}if(e.data&&k==="GET")e.url+=(A.test(e.url)?"&":"?")+e.data;e.global&&!a.active++&&a.event.trigger("ajaxStart");l=(l=Rb.exec(e.url))&&(l[1]&&l[1]!==location.protocol||l[2]!==location.host);if(e.dataType==="script"&&k==="GET"&&l){var n=b.getElementsByTagName("head")[0]||b.documentElement,h=b.createElement("script");h.src=e.url;if(e.scriptCharset)h.charset=e.scriptCharset;if(!i){var w=false;h.onload=h.onreadystatechange=function(){if(!w&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){w=true;r();p();h.onload=h.onreadystatechange=null;n&&h.parentNode&&n.removeChild(h)}}}n.insertBefore(h,n.firstChild);return c}var q=false,f=e.xhr();if(f){e.username?f.open(k,e.url,e.async,e.username,e.password):f.open(k,e.url,e.async);try{(e.data||o&&o.contentType)&&f.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){a.lastModified[e.url]&&f.setRequestHeader("If-Modified-Since",a.lastModified[e.url]);a.etag[e.url]&&f.setRequestHeader("If-None-Match",a.etag[e.url])}l||f.setRequestHeader("X-Requested-With","XMLHttpRequest");f.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(z){}if(e.beforeSend&&e.beforeSend.call(u,f,e)===false){e.global&&!--a.active&&a.event.trigger("ajaxStop");f.abort();return false}e.global&&s("ajaxSend",[f,e]);var t=f.onreadystatechange=function(b){if(!f||f.readyState===0||b==="abort"){q||p();q=true;if(f)f.onreadystatechange=a.noop}else if(!q&&f&&(f.readyState===4||b==="timeout")){q=true;f.onreadystatechange=a.noop;m=b==="timeout"?"timeout":!a.httpSuccess(f)?"error":e.ifModified&&a.httpNotModified(f,e.url)?"notmodified":"success";var c;if(m==="success")try{v=a.httpData(f,e.dataType,e)}catch(d){m="parsererror";c=d}if(m==="success"||m==="notmodified")i||r();else a.handleError(e,f,m,c);p();b==="timeout"&&f.abort();if(e.async)f=null}};try{var y=f.abort;f.abort=function(){f&&y.call(f);t("abort")}}catch(B){}e.async&&e.timeout>0&&setTimeout(function(){f&&!q&&t("timeout")},e.timeout);try{f.send(k==="POST"||k==="PUT"||k==="DELETE"?e.data:null)}catch(C){a.handleError(e,f,null,C);p()}e.async||t();return f}},handleError:function(b,c,e,d){b.error&&b.error.call(b.context||b,c,e,d);b.global&&(b.context?a(b.context):a.event).trigger("ajaxError",[c,b,d])},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(b,c){var d=b.getResponseHeader("Last-Modified"),e=b.getResponseHeader("Etag");if(d)a.lastModified[c]=d;if(e)a.etag[c]=e;return b.status===304||b.status===0},httpData:function(b,c,d){var e=b.getResponseHeader("content-type")||"",f=c==="xml"||!c&&e.indexOf("xml")>=0;b=f?b.responseXML:b.responseText;f&&b.documentElement.nodeName==="parsererror"&&a.error("parsererror");if(d&&d.dataFilter)b=d.dataFilter(b,c);if(typeof b==="string")if(c==="json"||!c&&e.indexOf("json")>=0)b=a.parseJSON(b);else(c==="script"||!c&&e.indexOf("javascript")>=0)&&a.globalEval(b);return b},param:function(b,d){function e(c,b){if(a.isArray(b))a.each(b,function(f,b){d||/\[\]$/.test(c)?g(c,b):e(c+"["+(typeof b==="object"||a.isArray(b)?f:"")+"]",b)});else!d&&b!=null&&typeof b==="object"?a.each(b,function(a,b){e(c+"["+a+"]",b)}):g(c,b)}function g(c,b){b=a.isFunction(b)?b():b;f[f.length]=encodeURIComponent(c)+"="+encodeURIComponent(b)}var f=[];if(d===c)d=a.ajaxSettings.traditional;if(a.isArray(b)||b.jquery)a.each(b,function(){g(this.name,this.value)});else for(var h in b)e(h,b[h]);return f.join("&").replace(Tb,"+")}});var B={},kb=/toggle|show|hide/,mb=/^([+-]=)?([\d+-.]+)(.*)$/,q,eb=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];a.fn.extend({show:function(b,e){if(b||b===0)return this.animate(h("show",3),b,e);else{b=0;for(e=this.length;b<e;b++){var c=a.data(this[b],"olddisplay");this[b].style.display=c||"";if(a.css(this[b],"display")==="none"){c=this[b].nodeName;var d;if(B[c])d=B[c];else{var f=a("<"+c+" />").appendTo("body");d=f.css("display");if(d==="none")d="block";f.remove();B[c]=d}a.data(this[b],"olddisplay",d)}}b=0;for(e=this.length;b<e;b++)this[b].style.display=a.data(this[b],"olddisplay")||"";return this}},hide:function(b,c){if(b||b===0)return this.animate(h("hide",3),b,c);else{b=0;for(c=this.length;b<c;b++){var d=a.data(this[b],"olddisplay");!d&&d!=="none"&&a.data(this[b],"olddisplay",a.css(this[b],"display"))}b=0;for(c=this.length;b<c;b++)this[b].style.display="none";return this}},_toggle:a.fn.toggle,toggle:function(b,c){var d=typeof b==="boolean";if(a.isFunction(b)&&a.isFunction(c))this._toggle.apply(this,arguments);else b==null||d?this.each(function(){var c=d?b:a(this).is(":hidden");a(this)[c?"show":"hide"]()}):this.animate(h("toggle",3),b,c);return this},fadeTo:function(a,b,c){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c)},animate:function(b,d,e,f){var c=a.speed(d,e,f);return a.isEmptyObject(b)?this.each(c.complete):this[c.queue===false?"each":"queue"](function(){var e=a.extend({},c),d,h=this.nodeType===1&&a(this).is(":hidden"),f=this;for(d in b){var g=d.replace(y,z);if(d!==g){b[g]=b[d];delete b[d];d=g}if(b[d]==="hide"&&h||b[d]==="show"&&!h)return e.complete.call(this);if((d==="height"||d==="width")&&this.style){e.display=a.css(this,"display");e.overflow=this.style.overflow}if(a.isArray(b[d])){(e.specialEasing=e.specialEasing||{})[d]=b[d][1];b[d]=b[d][0]}}if(e.overflow!=null)this.style.overflow="hidden";e.curAnim=a.extend({},b);a.each(b,function(k,c){var i=new a.fx(f,e,k);if(kb.test(c))i[c==="toggle"?h?"show":"hide":c](b);else{var g=mb.exec(c),d=i.cur(true)||0;if(g){c=parseFloat(g[2]);var j=g[3]||"px";if(j!=="px"){f.style[k]=(c||1)+j;d=(c||1)/i.cur(true)*d;f.style[k]=d+j}if(g[1])c=(g[1]==="-="?-1:1)*c+d;i.custom(d,c,j)}else i.custom(d,c,"")}});return true})},stop:function(d,c){var b=a.timers;d&&this.queue([]);this.each(function(){for(var a=b.length-1;a>=0;a--)if(b[a].elem===this){c&&b[a](true);b.splice(a,1)}});c||this.dequeue();return this}});a.each({slideDown:h("show",1),slideUp:h("hide",1),slideToggle:h("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(b,c){a.fn[b]=function(a,b){return this.animate(c,a,b)}});a.extend({speed:function(c,d,e){var b=c&&typeof c==="object"?c:{complete:e||!e&&d||a.isFunction(c)&&c,duration:c,easing:e&&d||d&&!a.isFunction(d)&&d};b.duration=a.fx.off?0:typeof b.duration==="number"?b.duration:a.fx.speeds[b.duration]||a.fx.speeds._default;b.old=b.complete;b.complete=function(){b.queue!==false&&a(this).dequeue();a.isFunction(b.old)&&b.old.call(this)};return b},easing:{linear:function(a,d,b,c){return b+c*a},swing:function(a,d,b,c){return(-Math.cos(a*Math.PI)/2+.5)*c+b}},timers:[],fx:function(b,a,c){this.options=a;this.elem=b;this.prop=c;if(!a.orig)a.orig={}}});a.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(a.fx.step[this.prop]||a.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(b){return this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)?this.elem[this.prop]:(b=parseFloat(a.css(this.elem,this.prop,b)))&&b>-1e4?b:parseFloat(a.curCSS(this.elem,this.prop))||0},custom:function(c,d,e){function b(a){return f.step(a)}this.startTime=g();this.start=c;this.end=d;this.unit=e||this.unit||"px";this.now=this.start;this.pos=this.state=0;var f=this;b.elem=this.elem;if(b()&&a.timers.push(b)&&!q)q=setInterval(a.fx.tick,13)},show:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());a(this.elem).show()},hide:function(){this.options.orig[this.prop]=a.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(b){var d=g(),e=true;if(b||d>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)e=false;if(e){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;b=a.data(this.elem,"olddisplay");this.elem.style.display=b?b:this.options.display;if(a.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&a(this.elem).hide();if(this.options.hide||this.options.show)for(var c in this.options.curAnim)a.style(this.elem,c,this.options.orig[c]);this.options.complete.call(this.elem)}return false}else{c=d-this.startTime;this.state=c/this.options.duration;b=this.options.easing||(a.easing.swing?"swing":"linear");this.pos=a.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||b](this.state,c,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};a.extend(a.fx,{tick:function(){for(var b=a.timers,c=0;c<b.length;c++)b[c]()||b.splice(c--,1);b.length||a.fx.stop()},stop:function(){clearInterval(q);q=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(b){a.style(b.elem,"opacity",b.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(a.expr&&a.expr.filters)a.expr.filters.animated=function(b){return a.grep(a.timers,function(a){return b===a.elem}).length};a.fn.offset="getBoundingClientRect"in b.documentElement?function(d){var b=this[0];if(d)return this.each(function(b){a.offset.setOffset(this,d,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return a.offset.bodyOffset(b);var e=b.getBoundingClientRect(),c=b.ownerDocument;b=c.body;c=c.documentElement;return{top:e.top+(self.pageYOffset||a.support.boxModel&&c.scrollTop||b.scrollTop)-(c.clientTop||b.clientTop||0),left:e.left+(self.pageXOffset||a.support.boxModel&&c.scrollLeft||b.scrollLeft)-(c.clientLeft||b.clientLeft||0)}}:function(k){var b=this[0];if(k)return this.each(function(b){a.offset.setOffset(this,k,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return a.offset.bodyOffset(b);a.offset.initialize();var i=b.offsetParent,d=b,c=b.ownerDocument,e,j=c.documentElement,h=c.body;d=(c=c.defaultView)?c.getComputedStyle(b,null):b.currentStyle;for(var f=b.offsetTop,g=b.offsetLeft;(b=b.parentNode)&&b!==h&&b!==j;){if(a.offset.supportsFixedPosition&&d.position==="fixed")break;e=c?c.getComputedStyle(b,null):b.currentStyle;f-=b.scrollTop;g-=b.scrollLeft;if(b===i){f+=b.offsetTop;g+=b.offsetLeft;if(a.offset.doesNotAddBorder&&!(a.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(b.nodeName))){f+=parseFloat(e.borderTopWidth)||0;g+=parseFloat(e.borderLeftWidth)||0}d=i;i=b.offsetParent}if(a.offset.subtractsBorderForOverflowNotVisible&&e.overflow!=="visible"){f+=parseFloat(e.borderTopWidth)||0;g+=parseFloat(e.borderLeftWidth)||0}d=e}if(d.position==="relative"||d.position==="static"){f+=h.offsetTop;g+=h.offsetLeft}if(a.offset.supportsFixedPosition&&d.position==="fixed"){f+=Math.max(j.scrollTop,h.scrollTop);g+=Math.max(j.scrollLeft,h.scrollLeft)}return{top:f,left:g}};a.offset={initialize:function(){var d=b.body,e=b.createElement("div"),f,c,g,h=parseFloat(a.curCSS(d,"marginTop",true))||0;a.extend(e.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});e.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>";d.insertBefore(e,d.firstChild);f=e.firstChild;c=f.firstChild;g=f.nextSibling.firstChild.firstChild;this.doesNotAddBorder=c.offsetTop!==5;this.doesAddBorderForTableAndCells=g.offsetTop===5;c.style.position="fixed";c.style.top="20px";this.supportsFixedPosition=c.offsetTop===20||c.offsetTop===15;c.style.position=c.style.top="";f.style.overflow="hidden";f.style.position="relative";this.subtractsBorderForOverflowNotVisible=c.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=d.offsetTop!==h;d.removeChild(e);a.offset.initialize=a.noop},bodyOffset:function(b){var c=b.offsetTop,d=b.offsetLeft;a.offset.initialize();if(a.offset.doesNotIncludeMarginInBodyOffset){c+=parseFloat(a.curCSS(b,"marginTop",true))||0;d+=parseFloat(a.curCSS(b,"marginLeft",true))||0}return{top:c,left:d}},setOffset:function(b,c,d){if(/static/.test(a.curCSS(b,"position")))b.style.position="relative";var f=a(b),e=f.offset(),h=parseInt(a.curCSS(b,"top",true),10)||0,g=parseInt(a.curCSS(b,"left",true),10)||0;if(a.isFunction(c))c=c.call(b,d,e);d={top:c.top-e.top+h,left:c.left-e.left+g};"using"in c?c.using.call(b,d):f.css(d)}};a.fn.extend({position:function(){if(!this[0])return null;var e=this[0],b=this.offsetParent(),c=this.offset(),d=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(a.curCSS(e,"marginTop",true))||0;c.left-=parseFloat(a.curCSS(e,"marginLeft",true))||0;d.top+=parseFloat(a.curCSS(b[0],"borderTopWidth",true))||0;d.left+=parseFloat(a.curCSS(b[0],"borderLeftWidth",true))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){for(var c=this.offsetParent||b.body;c&&!/^body|html$/i.test(c.nodeName)&&a.css(c,"position")==="static";)c=c.offsetParent;return c})}});a.each(["Left","Top"],function(d,e){var b="scroll"+e;a.fn[b]=function(f){var g=this[0],e;return!g?null:f!==c?this.each(function(){if(e=fb(this))e.scrollTo(!d?f:a(e).scrollLeft(),d?f:a(e).scrollTop());else this[b]=f}):(e=fb(g))?"pageXOffset"in e?e[d?"pageYOffset":"pageXOffset"]:a.support.boxModel&&e.document.documentElement[b]||e.document.body[b]:g[b]}});a.each(["Height","Width"],function(e,b){var d=b.toLowerCase();a.fn["inner"+b]=function(){return this[0]?a.css(this[0],d,false,"padding"):null};a.fn["outer"+b]=function(b){return this[0]?a.css(this[0],d,false,b?"margin":"border"):null};a.fn[d]=function(f){var e=this[0];return!e?f==null?null:this:a.isFunction(f)?this.each(function(c){var b=a(this);b[d](f.call(this,c,b[d]()))}):"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===c?a.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});d.jQuery=d.$=a})(window);(function(a){var o="2.72";if(a.support==undefined)a.support={opacity:!a.browser.msie};function e(c){a.fn.cycle.debug&&b(c)}function b(){window.console&&window.console.log&&window.console.log("[cycle] "+Array.prototype.join.call(arguments," "))}a.fn.cycle=function(f,g){var d={s:this.selector,c:this.context};if(this.length===0&&f!="stop"){if(!a.isReady&&d.s){b("DOM not ready, queuing slideshow");a(function(){a(d.s,d.c).cycle(f,g)});return this}b("terminating; zero elements found by selector"+(a.isReady?"":" (DOM not ready)"));return this}return this.each(function(){var l=k(this,f,g);if(l===false)return;this.cycleTimeout&&clearTimeout(this.cycleTimeout);this.cycleTimeout=this.cyclePause=0;var p=a(this),o=l.slideExpr?a(l.slideExpr,this):p.children(),n=o.get();if(n.length<2){b("terminating; too few slides: "+n.length);return}var i=m(p,o,n,l,d);if(i===false)return;var j=i.continuous?10:h(i.currSlide,i.nextSlide,i,!i.rev);if(j){j+=i.delay||0;if(j<10)j=10;e("first timeout: "+j);this.cycleTimeout=setTimeout(function(){c(n,i,0,!i.rev)},j)}})};function k(e,d,g){if(e.cycleStop==undefined)e.cycleStop=0;if(d===undefined||d===null)d={};if(d.constructor==String){switch(d){case"stop":e.cycleStop++;e.cycleTimeout&&clearTimeout(e.cycleTimeout);e.cycleTimeout=0;a(e).removeData("cycle.opts");return false;case"pause":e.cyclePause=1;return false;case"resume":e.cyclePause=0;if(g===true){d=a(e).data("cycle.opts");if(!d){b("options not found, can not resume");return false}if(e.cycleTimeout){clearTimeout(e.cycleTimeout);e.cycleTimeout=0}c(d.elements,d,1,1)}return false;case"prev":case"next":var h=a(e).data("cycle.opts");if(!h){b('options not found, "prev/next" ignored');return false}a.fn.cycle[d](h);return false;default:d={fx:d}}return d}else if(d.constructor==Number){var f=d;d=a(e).data("cycle.opts");if(!d){b("options not found, can not advance slide");return false}if(f<0||f>=d.elements.length){b("invalid slide index: "+f);return false}d.nextSlide=f;if(e.cycleTimeout){clearTimeout(e.cycleTimeout);e.cycleTimeout=0}if(typeof g=="string")d.oneTimeFx=g;c(d.elements,d,1,f>=d.currSlide);return false}return d}function g(b,c){if(!a.support.opacity&&c.cleartype&&b.style.filter)try{b.style.removeAttribute("filter")}catch(d){}}function m(k,o,h,p,y){var e=a.extend({},a.fn.cycle.defaults,p||{},a.metadata?k.metadata():a.meta?k.data():{});if(e.autostop)e.countdown=e.autostopCount||h.length;var D=k[0];k.data("cycle.opts",e);e.$cont=k;e.stopCount=D.cycleStop;e.elements=h;e.before=e.before?[e.before]:[];e.after=e.after?[e.after]:[];e.after.unshift(function(){e.busy=0});!a.support.opacity&&e.cleartype&&e.after.push(function(){g(this,e)});e.continuous&&e.after.push(function(){c(h,e,0,!e.rev)});j(e);!a.support.opacity&&e.cleartype&&!e.cleartypeNoBg&&f(o);k.css("position")=="static"&&k.css("position","relative");e.width&&k.width(e.width);e.height&&e.height!="auto"&&k.height(e.height);if(e.startingSlide)e.startingSlide=parseInt(e.startingSlide);if(e.random){e.randomMap=[];for(var w=0;w<h.length;w++)e.randomMap.push(w);e.randomMap.sort(function(){return Math.random()-.5});e.randomIndex=0;e.startingSlide=e.randomMap[0]}else if(e.startingSlide>=h.length)e.startingSlide=0;e.currSlide=e.startingSlide=e.startingSlide||0;var m=e.startingSlide;o.css({position:"absolute",top:0,left:0}).hide().each(function(b){var c=m?b>=m?h.length-(b-m):m-b:h.length-b;a(this).css("z-index",c)});a(h[m]).css("opacity",1).show();g(h[m],e);e.fit&&e.width&&o.width(e.width);e.fit&&e.height&&e.height!="auto"&&o.height(e.height);var C=e.containerResize&&!k.innerHeight();if(C){for(var s=0,r=0,x=0;x<h.length;x++){var v=a(h[x]),B=v[0],u=v.outerWidth(),t=v.outerHeight();if(!u)u=B.offsetWidth;if(!t)t=B.offsetHeight;s=u>s?u:s;r=t>r?t:r}s>0&&r>0&&k.css({width:s+"px",height:r+"px"})}e.pause&&k.hover(function(){this.cyclePause++},function(){this.cyclePause--});if(i(e)===false)return false;var z=false;p.requeueAttempts=p.requeueAttempts||0;o.each(function(){var c=a(this);this.cycleH=e.fit&&e.height?e.height:c.height();this.cycleW=e.fit&&e.width?e.width:c.width();if(c.is("img")){var g=a.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete,f=a.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete,h=a.browser.opera&&(this.cycleW==42&&this.cycleH==19||this.cycleW==37&&this.cycleH==17)&&!this.complete,d=this.cycleH==0&&this.cycleW==0&&!this.complete;if(g||f||h||d)if(y.s&&e.requeueOnImageNotLoaded&&++p.requeueAttempts<100){b(p.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){a(y.s,y.c).cycle(p)},e.requeueTimeout);z=true;return false}else b("could not determine size of image: "+this.src,this.cycleW,this.cycleH)}return true});if(z)return false;e.cssBefore=e.cssBefore||{};e.animIn=e.animIn||{};e.animOut=e.animOut||{};o.not(":eq("+m+")").css(e.cssBefore);e.cssFirst&&a(o[m]).css(e.cssFirst);if(e.timeout){e.timeout=parseInt(e.timeout);if(e.speed.constructor==String)e.speed=a.fx.speeds[e.speed]||parseInt(e.speed);if(!e.sync)e.speed=e.speed/2;while(e.timeout-e.speed<250)e.timeout+=e.speed}if(e.easing)e.easeIn=e.easeOut=e.easing;if(!e.speedIn)e.speedIn=e.speed;if(!e.speedOut)e.speedOut=e.speed;e.slideCount=h.length;e.currSlide=e.lastSlide=m;if(e.random){e.nextSlide=e.currSlide;if(++e.randomIndex==h.length)e.randomIndex=0;e.nextSlide=e.randomMap[e.randomIndex]}else e.nextSlide=e.startingSlide>=h.length-1?0:e.startingSlide+1;if(!e.multiFx){var A=a.fn.cycle.transitions[e.fx];if(a.isFunction(A))A(k,o,e);else if(e.fx!="custom"&&!e.multiFx){b("unknown transition: "+e.fx,"; slideshow terminating");return false}}var q=o[m];e.before.length&&e.before[0].apply(q,[q,q,e,true]);e.after.length>1&&e.after[1].apply(q,[q,q,e,true]);e.next&&a(e.next).bind(e.prevNextEvent,function(){return d(e,e.rev?-1:1)});e.prev&&a(e.prev).bind(e.prevNextEvent,function(){return d(e,e.rev?1:-1)});e.pager&&n(h,e);l(e,h);return e}function j(b){b.original={before:[],after:[]};b.original.cssBefore=a.extend({},b.cssBefore);b.original.cssAfter=a.extend({},b.cssAfter);b.original.animIn=a.extend({},b.animIn);b.original.animOut=a.extend({},b.animOut);a.each(b.before,function(){b.original.before.push(this)});a.each(b.after,function(){b.original.after.push(this)})}function i(c){var d,g,f=a.fn.cycle.transitions;if(c.fx.indexOf(",")>0){c.multiFx=true;c.fxs=c.fx.replace(/\s*/g,"").split(",");for(d=0;d<c.fxs.length;d++){var h=c.fxs[d];g=f[h];if(!g||!f.hasOwnProperty(h)||!a.isFunction(g)){b("discarding unknown transition: ",h);c.fxs.splice(d,1);d--}}if(!c.fxs.length){b("No valid transitions named; slideshow terminating.");return false}}else if(c.fx=="all"){c.multiFx=true;c.fxs=[];for(p in f){g=f[p];f.hasOwnProperty(p)&&a.isFunction(g)&&c.fxs.push(p)}}if(c.multiFx&&c.randomizeEffects){var i=Math.floor(Math.random()*20)+30;for(d=0;d<i;d++){var j=Math.floor(Math.random()*c.fxs.length);c.fxs.push(c.fxs.splice(j,1)[0])}e("randomized fx sequence: ",c.fxs)}return true}function l(b,c){b.addSlide=function(h,g){var d=a(h),e=d[0];if(!b.autostopCount)b.countdown++;c[g?"unshift":"push"](e);b.els&&b.els[g?"unshift":"push"](e);b.slideCount=c.length;d.css("position","absolute");d[g?"prependTo":"appendTo"](b.$cont);if(g){b.currSlide++;b.nextSlide++}!a.support.opacity&&b.cleartype&&!b.cleartypeNoBg&&f(d);b.fit&&b.width&&d.width(b.width);b.fit&&b.height&&b.height!="auto"&&$slides.height(b.height);e.cycleH=b.fit&&b.height?b.height:d.height();e.cycleW=b.fit&&b.width?b.width:d.width();d.css(b.cssBefore);b.pager&&a.fn.cycle.createPagerAnchor(c.length-1,e,a(b.pager),c,b);if(a.isFunction(b.onAddSlide))b.onAddSlide(d);else d.hide()}}a.fn.cycle.resetState=function(b,c){c=c||b.fx;b.before=[];b.after=[];b.cssBefore=a.extend({},b.original.cssBefore);b.cssAfter=a.extend({},b.original.cssAfter);b.animIn=a.extend({},b.original.animIn);b.animOut=a.extend({},b.original.animOut);b.fxFn=null;a.each(b.original.before,function(){b.before.push(this)});a.each(b.original.after,function(){b.after.push(this)});var d=a.fn.cycle.transitions[c];a.isFunction(d)&&d(b.$cont,a(b.elements),b)};function c(g,b,i,j){if(i&&b.busy&&b.manualTrump){a(g).stop(true,true);b.busy=false}if(b.busy)return;var f=b.$cont[0],e=g[b.currSlide],d=g[b.nextSlide];if(f.cycleStop!=b.stopCount||f.cycleTimeout===0&&!i)return;if(!i&&!f.cyclePause&&(b.autostop&&--b.countdown<=0||b.nowrap&&!b.random&&b.nextSlide<b.currSlide)){b.end&&b.end(b);return}if(i||!f.cyclePause){var k=b.fx;e.cycleH=e.cycleH||a(e).height();e.cycleW=e.cycleW||a(e).width();d.cycleH=d.cycleH||a(d).height();d.cycleW=d.cycleW||a(d).width();if(b.multiFx){if(b.lastFx==undefined||++b.lastFx>=b.fxs.length)b.lastFx=0;k=b.fxs[b.lastFx];b.currFx=k}if(b.oneTimeFx){k=b.oneTimeFx;b.oneTimeFx=null}a.fn.cycle.resetState(b,k);b.before.length&&a.each(b.before,function(c,a){if(f.cycleStop!=b.stopCount)return;a.apply(d,[e,d,b,j])});var m=function(){a.each(b.after,function(c,a){if(f.cycleStop!=b.stopCount)return;a.apply(d,[e,d,b,j])})};if(b.nextSlide!=b.currSlide){b.busy=1;if(b.fxFn)b.fxFn(e,d,b,m,j);else if(a.isFunction(a.fn.cycle[b.fx]))a.fn.cycle[b.fx](e,d,b,m);else a.fn.cycle.custom(e,d,b,m,i&&b.fastOnEvent)}b.lastSlide=b.currSlide;if(b.random){b.currSlide=b.nextSlide;if(++b.randomIndex==g.length)b.randomIndex=0;b.nextSlide=b.randomMap[b.randomIndex]}else{var n=b.nextSlide+1==g.length;b.nextSlide=n?0:b.nextSlide+1;b.currSlide=n?g.length-1:b.nextSlide-1}b.pager&&a.fn.cycle.updateActivePagerLink(b.pager,b.currSlide)}var l=0;if(b.timeout&&!b.continuous)l=h(e,d,b,j);else if(b.continuous&&f.cyclePause)l=10;if(l>0)f.cycleTimeout=setTimeout(function(){c(g,b,0,!b.rev)},l)}a.fn.cycle.updateActivePagerLink=function(c,b){a(c).find("a").removeClass("activeSlide").filter("a:eq("+b+")").addClass("activeSlide")};function h(c,d,a,f){if(a.timeoutFn){var b=a.timeoutFn(c,d,a,f);while(b-a.speed<250)b+=a.speed;e("calculated timeout: "+b+"; speed: "+a.speed);if(b!==false)return b}return a.timeout}a.fn.cycle.next=function(a){d(a,a.rev?-1:1)};a.fn.cycle.prev=function(a){d(a,a.rev?1:-1)};function d(b,e){var d=b.elements,g=b.$cont[0],f=g.cycleTimeout;if(f){clearTimeout(f);g.cycleTimeout=0}if(b.random&&e<0){b.randomIndex--;if(--b.randomIndex==-2)b.randomIndex=d.length-2;else if(b.randomIndex==-1)b.randomIndex=d.length-1;b.nextSlide=b.randomMap[b.randomIndex]}else if(b.random){if(++b.randomIndex==d.length)b.randomIndex=0;b.nextSlide=b.randomMap[b.randomIndex]}else{b.nextSlide=b.currSlide+e;if(b.nextSlide<0){if(b.nowrap)return false;b.nextSlide=d.length-1}else if(b.nextSlide>=d.length){if(b.nowrap)return false;b.nextSlide=0}}a.isFunction(b.prevNextClick)&&b.prevNextClick(e>0,b.nextSlide,d[b.nextSlide]);c(d,b,1,e>=0);return false}function n(c,b){var d=a(b.pager);a.each(c,function(e,f){a.fn.cycle.createPagerAnchor(e,f,d,c,b)});a.fn.cycle.updateActivePagerLink(b.pager,b.startingSlide)}a.fn.cycle.createPagerAnchor=function(f,j,g,i,b){var e;if(a.isFunction(b.pagerAnchorBuilder))e=b.pagerAnchorBuilder(f,j);else e='<a href="#">'+(f+1)+"</a>";if(!e)return;var d=a(e);if(d.parents("body").length===0){var h=[];if(g.length>1){g.each(function(){var b=d.clone(true);a(this).append(b);h.push(b)});d=a(h)}else d.appendTo(g)}d.bind(b.pagerEvent,function(g){g.preventDefault();b.nextSlide=f;var e=b.$cont[0],d=e.cycleTimeout;if(d){clearTimeout(d);e.cycleTimeout=0}a.isFunction(b.pagerClick)&&b.pagerClick(b.nextSlide,i[b.nextSlide]);c(i,b,1,b.currSlide<f);return false});b.pagerEvent!="click"&&d.click(function(){return false});b.pauseOnPagerHover&&d.hover(function(){b.$cont[0].cyclePause++},function(){b.$cont[0].cyclePause--})};a.fn.cycle.hopsFromLast=function(c,e){var d,a=c.lastSlide,b=c.currSlide;if(e)d=b>a?b-a:c.slideCount-a;else d=b<a?a-b:a+c.slideCount-b;return d};function f(c){function b(a){a=parseInt(a).toString(16);return a.length<2?"0"+a:a}function d(c){for(;c&&c.nodeName.toLowerCase()!="html";c=c.parentNode){var d=a.css(c,"background-color");if(d.indexOf("rgb")>=0){var e=d.match(/\d+/g);return"#"+b(e[0])+b(e[1])+b(e[2])}if(d&&d!="transparent")return d}return"#ffffff"}c.each(function(){a(this).css("background-color",d(this))})}a.fn.cycle.commonReset=function(d,c,b,g,f,e){a(b.elements).not(d).hide();b.cssBefore.opacity=1;b.cssBefore.display="block";if(g!==false&&c.cycleW>0)b.cssBefore.width=c.cycleW;if(f!==false&&c.cycleH>0)b.cssBefore.height=c.cycleH;b.cssAfter=b.cssAfter||{};b.cssAfter.display="none";a(d).css("zIndex",b.slideCount+(e===true?1:0));a(c).css("zIndex",b.slideCount+(e===true?0:1))};a.fn.cycle.custom=function(k,l,b,m,c){var h=a(k),i=a(l),e=b.speedIn,d=b.speedOut,g=b.easeIn,f=b.easeOut;i.css(b.cssBefore);if(c){if(typeof c=="number")e=d=c;else e=d=1;g=f=null}var j=function(){i.animate(b.animIn,e,g,m)};h.animate(b.animOut,d,f,function(){b.cssAfter&&h.css(b.cssAfter);!b.sync&&j()});b.sync&&j()};a.fn.cycle.transitions={fade:function(d,c,b){c.not(":eq("+b.currSlide+")").css("opacity",0);b.before.push(function(c,d,b){a.fn.cycle.commonReset(c,d,b);b.cssBefore.opacity=0});b.animIn={opacity:1};b.animOut={opacity:0};b.cssBefore={top:0,left:0}}};a.fn.cycle.ver=function(){return o};a.fn.cycle.defaults={fx:"fade",timeout:4e3,timeoutFn:null,continuous:0,speed:1e3,speedIn:null,speedOut:null,next:null,prev:null,prevNextClick:null,prevNextEvent:"click",pager:null,pagerClick:null,pagerEvent:"click",pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!a.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250}})(jQuery);(function(a){a.fn.bgIframe=a.fn.bgiframe=function(b){if(a.browser.msie&&/6.0/.test(navigator.userAgent)){b=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},b||{});var c=function(a){return a&&a.constructor==Number?a+"px":a},d='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+b.src+'"style="display:block;position:absolute;z-index:-1;'+(b.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(b.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":c(b.top))+";left:"+(b.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":c(b.left))+";width:"+(b.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":c(b.width))+";height:"+(b.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":c(b.height))+';"/>';return this.each(function(){a("> iframe.bgiframe",this).length==0&&this.insertBefore(document.createElement(d),this.firstChild)})}return this}})(jQuery);(function(a){a.fn.mcDropdown=function(d,c){var b;this.each(function(){b=a.data(this,"mcDropdown");if(b)return false;new a.mcDropDownMenu(this,d,c)});return b||this};a.mcDropdown={version:"1.2.10",setDefaults:function(b){a.extend(c,b)}};var c={minRows:8,maxRows:25,targetColumnSize:2,openFx:"slideDown",openSpeed:250,closeFx:"slideUp",closeSpeed:250,hoverOverDelay:200,hoverOutDelay:0,showFx:"show",showSpeed:0,hideFx:"hide",hideSpeed:0,dropShadow:true,autoHeight:true,lineHeight:19,screenPadding:10,allowParentSelect:false,delim:":",showACOnEmptyFocus:false,valueAttr:"rel",click:null,select:null,init:null},b=a.browser.version&&a.browser.version<=6;a.mcDropDownMenu=function(p,y,cb){var g,j=this,f,i,d,k="",h,Q,e,m,x,v=false;g=a(p);x=g.is(":input");d=a.extend({},c,cb);if(d.click==null)d.click=function(c,a,b){a.setValue(this.attr(b.valueAttr))};a(document).bind("click",function(c){var b=a(c.target),h=b.parents().filter(function(){return this===f[0]||!!e&&e[0]===this});if(h.length){var g=b.is(".mc_parent");if(g&&e&&h[0]===e[0]){clearTimeout(G);n(b.find("> ul > li:first"),false);c.stopPropagation();return false}else if(!d.allowParentSelect&&g)return false;b.not(".mc_root")&&o.apply(b.parent().parent()[0],[c]);if(d.click!=null&&d.click.apply(b,[c,j,d])==false)return false}j.closeMenu()});f=typeof y=="object"&&!!y.jquery?y:a(y);f.appendTo("body").css({position:"absolute",top:-1e4,left:-1e4}).find("ul").andSelf().css("display","block").each(function(){var b=a(this);b.data("width",b[0].clientWidth)}).css({top:0,left:0,display:"none"});f.find("> li").addClass("mc_root");a("li > ul",f).parent().addClass("mc_parent");i=a('<div class="mcdropdown"><a href="#" tabindex="-1"></a><input type="hidden" name="'+(p.name||p.id)+'" id="'+(p.id||p.name)+'" /></div>').appendTo(a('<div style="position: relative;"></div>')).parent();var D=g.replaceWith(i).attr({id:"",name:""}),l=i.find(":input");i=i.find(".mcdropdown").prepend(D);var r=i.clone().css({position:"absolute",top:-9999999,left:-999999,visibility:"visible"}).show().appendTo("body"),R={width:r.width()-a("a",r).width(),height:r.outerHeight()};r.remove();a.data(l[0],"mcDropdown",j);i.parent().height(R.height);a.browser.safari&&setTimeout(function(){g.width(i.width()-a("a",i).width())},100);g.width(R.width).filter(":input").attr("autocomplete","off").bind("keypress",F).bind("mousedown",function(b){a(this).triggerHandler("focus");b.stopPropagation();return false}).bind("contextmenu",function(){return false}).bind("focus",bb).bind("blur",db);(a.browser.msie||a.browser.safari)&&g.bind("keydown",function(a){if(",8,9,37,38,39,40,".indexOf(","+a.keyCode+",")>-1)return F(a)});a("a",i).bind("click",function(a){if(v)return false;j.openMenu(a);return false});this.setValue=function(a,c){l.val(a);var b=U(a);d.select!=null&&c!=true&&d.select.apply(j,[a,b]);return g[x?"val":"text"](b)};x&&this.setValue(g.attr("defaultValue"),true);this.getValue=function(){return[l.val(),g[x?"val":"text"]()]};this.openMenu=function(e){if(f.is(":visible"))return!!e?j.closeMenu():false;function c(){A(f).hide();I(f);C(i.parent(),f,true);f.find(".mc_hover").removeClass("mc_hover");f[d.openFx](d.openSpeed,function(){H(f)});b&&!!a.fn.bgIframe&&f.bgIframe()}if(e)c();else setTimeout(c,1)};this.closeMenu=function(){f.find("ul:visible").parent().each(function(){o.apply(this)});E(f);f[d.closeFx](d.closeSpeed)};this.focus=function(){g.focus()};this.disable=function(a){v=!!a;i[v?"addClass":"removeClass"]("mcdropdownDisabled");D.attr("disabled",v?"disabled":"")};function s(b){return b.contents()[0]?a.trim(b.contents()[0].nodeValue):""}function L(b){if(b.length==0)return[];var c=[s(b)];b.parents().each(function(){var b=a(this);if(this===f[0])return false;else b.is("li")&&c.push(s(b))});return c.reverse()}function V(a){return L(K(a))}function U(a){return V(a).join(d.delim)}function I(b){E(b);a("> li",b).bind("mouseover",N).bind("mouseout",P)}function E(b){a("> li",b).unbind("mouseover",N).unbind("mouseout",P)}function H(e){var c=w(e,true),b=z();c.bottom>b.y&&a("html,body").animate({scrollTop:"+="+(c.bottom-b.y+d.screenPadding)+"px"})}function N(){var b=this,c=a.data(b,"timer");!isNaN(c)&&clearTimeout(c);a(this).addClass("mc_hover");a.data(b,"timer",setTimeout(function(){X.apply(b)},d.hoverOverDelay))}function P(f){var c=this,e=a.data(c,"timer");!isNaN(e)&&clearTimeout(e);a(this).removeClass("mc_hover");a.data(c,"timer",setTimeout(function(){var b=a(c);setTimeout(function(){b.parent().find("> li.mc_hover").length==0&&b.parents("li").each(function(){var b=this;clearTimeout(a.data(b,"timer"));o.apply(b);if(a(this).siblings().filter(".mc_hover").length>0)return false})},d.hoverOverDelay);o.apply(c)},d.hoverOutDelay));b&&f.stopPropagation()}function Z(c){var b=g.data("shadows");if(!b)b={};if(!b[c]){b[c]=a('<div class="mcdropdown_shadow"></div>').appendTo("body");!!a.fn.bgIframe&&b[c].bgIframe();g.data("shadows",b)}return b[c]}function X(){var i=this,b=a("> ul",this);if(b.is(":visible")||b.length==0)return false;a(this).parent().find("> li ul:visible").not(b).parent().each(function(){o.apply(this)});A(b);I(b);var h=b.parents("ul").length,g=z(),c=w(a(this));b.css({top:c.bottom,left:c.marginLeft}).show();var e=b.outerHeight()+b.offset().top;e>g.y&&b.css("top",c.bottom-(e-g.y)-d.screenPadding);var f=function(){if(d.dropShadow){var e=Z(h),c=w(b);e.css({top:c.top+c.marginTop,left:c.left+c.marginLeft,width:c.width,height:c.height}).insertAfter(b).show();a.data(i,"shadow",e)}};if(d.showSpeed<=0)f();else b.hide()[d.showFx](d.showSpeed,f)}function o(){var c=a("> ul",this);if(c.is(":hidden")||c.length==0)return false;d.dropShadow&&a.data(this,"shadow")&&a.data(this,"shadow").hide();b&&c.css("visibility","hidden").parent().removeClass("mc_hover");c.stop()[d.hideFx](d.hideSpeed)}function w(c,e){var d=false;if(c.is(":hidden"))d=!!c.css("visibility","hidden").show();var b=a.extend(c[e===true?"offset":"position"](),{width:c.outerWidth(),height:c.outerHeight(),marginLeft:parseInt(a.curCSS(c[0],"marginLeft",true),10)||0,marginRight:parseInt(a.curCSS(c[0],"marginRight",true),10)||0,marginTop:parseInt(a.curCSS(c[0],"marginTop",true),10)||0,marginBottom:parseInt(a.curCSS(c[0],"marginBottom",true),10)||0});if(b.marginTop<0)b.top+=b.marginTop;if(b.marginLeft<0)b.left+=b.marginLeft;b.bottom=b.top+b.height;b.right=b.left+b.width;d&&c.hide().css("visibility","visible");return b}function C(c,d,b){var a=w(c,b);d.css({position:"absolute",top:a.bottom,left:a.left});return a.bottom}function z(){var b={scrollLeft:a(window).scrollLeft(),scrollTop:a(window).scrollTop(),width:a(window).width(),height:a(window).height()};b.x=b.scrollLeft+b.width;b.y=b.scrollTop+b.height;return b}function M(b,e){var d=e=="height"?"Top":"Left",c=e=="height"?"Bottom":"Right";return parseInt("0"+a.curCSS(b,"border"+d+"Width",true),10)+parseInt("0"+a.curCSS(b,"border"+c+"Width",true),10)+parseInt("0"+a.curCSS(b,"padding"+d,true),10)+parseInt("0"+a.curCSS(b,"padding"+c,true),10)+parseInt("0"+a.curCSS(b,"margin"+d,true),10)+parseInt("0"+a.curCSS(b,"margin"+c,true),10)}function S(a,d){if(!a.data("dimensions")){var b=i.outerWidth(),c=a===f&&a.data("width")*d<b?Math.floor(b/d):a.data("width");a.data("dimensions",{column:c,item:c-M(a.children().eq(0)[0],"width"),height:a.height()})}return a.data("dimensions")}function Y(a){if(d.autoHeight===false)return d.lineHeight;!a.data("height")&&a.data("height",a.outerHeight());return a.data("height")}function A(b){var k=b.find("> li"),c=k.length,i=Math.ceil(c/d.maxRows),g=!!arguments[1]?arguments[1]:c<=d.minRows?1:i>d.targetColumnSize?i:d.targetColumnSize,l=S(b,g),j=0,e=0,h=0,n=Math.ceil(c/g),m=b.parent("li").width();b.css({visibility:"hidden",display:"block"});k.each(function(m){var i=m+1,n=Math.floor(i/c*g),f=Math.floor(m/c*g),k=a(this),b;if(j!=f){b=(e+1)*-1;e=0}else b=0;e+=Y(k)||d.lineHeight;k.css({marginLeft:l.column*f,marginTop:b,width:l.item})[n>f||i==c?"addClass":"removeClass"]("mc_endcol")[b!=0?"addClass":"removeClass"]("mc_firstrow");if(e>h)h=e;j=f});if(b!==f&&h+d.screenPadding*2>=z().height)return A(b,g+1);b.css("visibility","visible").height(h);return b}function K(a){return f.find("li["+d.valueAttr+"='"+a+"']")}function q(){return K(l.val())}function bb(){var c=q(),j=g.val().toLowerCase(),h=j.toLowerCase().split(d.delim),l=h.pop(),i=j.lastIndexOf(d.delim)+1;k=h.join(d.delim)+(h.length>0?d.delim:"");setTimeout(function(){B(g[0],i,i+l.length)},0);if(!e){e=a('<ul class="mcdropdown_autocomplete"></ul>').appendTo("body");if(b&&!!a.fn.bgIframe)m=a("<div></div>").bgIframe().appendTo("body")}var n=!(d.showACOnEmptyFocus&&k.length==0),o=c.length==0||c.hasClass("mc_root")?f.find("> li"):c.parent().find("> li");u(o,n)}var G;function db(){G=setTimeout(function(){var a=q();if(!d.allowParentSelect&&a.is(".mc_parent")){var b=a.find("li:not('.mc_parent'):first").attr(d.valueAttr);j.setValue(b,true)}d.select!=null&&d.select.apply(j,j.getValue());t()},200)}function u(k,c){var n=k===Q,j=n?e.find("> li").removeClass("mc_hover mc_hover_parent mc_firstrow"):k.clone().removeAttr("style").removeClass("mc_hover mc_hover_parent mc_firstrow mc_endcol").filter(":last").addClass("mc_endcol").end();if(!n||e.is(":hidden")){e.empty().append(j).width(i.outerWidth()-M(e[0],"width")).css("height","auto");C(i.parent(),e,true);j.hover(function(){e.find("> li").removeClass("mc_hover_parent mc_hover");a(this).addClass("mc_hover")},function(){a(this).removeClass("mc_hover")});j.find("> ul").css("display","none");e.show().css("visibility",c===true?"hidden":"visible");if(b){var g=parseInt(e.css("max-height"),10)||0;g>0&&g<e.outerHeight()&&e.height(g);!!a.fn.bgIframe&&C(i.parent(),m.css({height:e.outerHeight(),width:e.width()},true).show())}c!==true&&H(e)}if(c===true){e.css({top:"-10000px",left:"-10000px"});b&&!!a.fn.bgIframe&&m.css("display","none")}var f=e.find("li["+d.valueAttr+"='"+l.val()+"']");f.addClass("mc_hover"+(f.is(".mc_parent")?"_parent":""));f.length>0&&c!=true&&T(f);Q=h=k}function t(){b&&!!a.fn.bgIframe&&m&&m.hide();e&&e.hide()}function F(b){var o=String.fromCharCode(b.keyCode||b.charCode).toLowerCase(),i=q(),s=i.length==0||i.hasClass("mc_root")?f.find("> li"):i.parent().find("> li"),l=k.split(d.delim),e=l.pop(),c=e+o,m=W(g[0]).toLowerCase(),r=g.val().toLowerCase();if(b.keyCode==38){O(-1);return false}else if(b.keyCode==40){O(1);return false}else if(b.keyCode==27){k="";j.setValue("");u(f.find("> li"));return false}else if(b.keyCode==8||b.keyCode==37){c=b.keyCode==37?"":e.substring(0,e.length-1);if(m==e)e="";if(l.length>0&&e.length==0){n(i.parent().parent());return false}else if(m==r){k="";j.setValue("");return false}}else if(b.keyCode==9||b.keyCode==13||b.keyCode==39||o==d.delim){var p=i.find("> ul > li:first");if(p.length>0)n(p);else{a.browser.msie&&B(g[0],0,0);if(b.keyCode==9){g.triggerHandler("blur");t();return true}else{g.trigger("blur");t()}}return false}else if(m==r){k="";c=o}h=J(s,c);if(h.length>0){k=l.join(d.delim)+(l.length>0?d.delim:"")+c;n(h.eq(0),true)}else{c=c.length?c.substring(0,c.length-1):"";h=J(s,c);if(h.length>0)u(h);else t()}b.preventDefault();return false}function O(d){var b=q(),c,a=0;if(b.length==0)b=h.filter(".mc_hover, .mc_hover_parent");if(b.length==0||e.is(":hidden")){b=h.eq(0);d=0}h.each(function(c){if(this===b[0]){a=c;return false}});if(!h||h.length==0||b.length==0)return false;a=a+d;if(a<0)a=h.length-1;else if(a>=h.length)a=0;c=h.eq(a);n(c,true)}function J(d,c){var b=a([]);d.each(function(){var d=a(this),e=s(d);if(e.substring(0,c.length).toLowerCase()==c)b=b.add(d)});return b}function n(a,c){var e=c?h:a.length==0||a.hasClass("mc_root")?f.find("> li"):a.parent().find("> li"),b=L(a),i=b.pop().toLowerCase();if(!c)k=b.join(d.delim).toLowerCase()+(b.length>0?d.delim:"");j.setValue(a.attr(d.valueAttr),true);B(g[0],k.length,i.length+k.length);e.filter(".mc_hover,.mc_hover_parent").removeClass("mc_hover mc_hover_parent");a.addClass("mc_hover"+(a.is(".mc_parent")?"_parent":""));u(e)}function W(a){var b="";if(a.setSelectionRange)b=a.value.substring(a.selectionStart,a.selectionEnd);else if(document.selection){var c=document.selection.createRange();if(c.parentElement()==a)b=c.text}return b}function B(a,c,d){if(a.createTextRange){var b=a.createTextRange();b.collapse(true);b.moveStart("character",c);b.moveEnd("character",d);b.select()}else if(a.setSelectionRange)a.setSelectionRange(c,d);else if(a.selectionStart){a.selectionStart=c;a.selectionEnd=d}a.focus()}function T(c,f){var d=c[0],a=e[0],b={pTop:parseInt(e.css("paddingTop"),10)||0,pBottom:parseInt(e.css("paddingBottom"),10)||0,bTop:parseInt(e.css("borderTopWidth"),10)||0,bBottom:parseInt(e.css("borderBottomWidth"),10)||0};if(d.offsetTop+d.offsetHeight>a.scrollTop+a.clientHeight)a.scrollTop=c.offset().top+(a.scrollTop-e.offset().top)-(a.clientHeight/(f==true?2:1)-(c.outerHeight()+b.pBottom));else if(d.offsetTop-b.bTop-b.bBottom<=a.scrollTop+b.pTop+b.pBottom)a.scrollTop=c.offset().top+(a.scrollTop-e.offset().top)-b.pTop}d.init!=null&&d.init.apply(j,[D,l,f])}})(jQuery);jQuery.fn.jloupe=function(c){var e="1.3.1",a={width:200,height:200,margin:6,cursorOffsetX:10,cursorOffsetY:10,radiusLT:0,radiusLB:100,radiusRT:100,radiusRB:100,borderColor:"#999",backgroundColor:"#ddd",image:false,repeat:false,fade:true};if(c){jQuery.extend(a,c);if(c.hasOwnProperty("color"))a.borderColor=a.backgroundColor=c.color}var b=jQuery("<div />").addClass("thejloupe").css("position","absolute").css("width",a.width+"px").css("height",a.height+"px").css("backgroundColor",a.borderColor).hide().appendTo("body");!a.borderColor&&b.css("backgroundColor","none");if(a.repeat)b.css("backgroundRepeat","repeat");else b.css("backgroundRepeat","no-repeat");var d=jQuery("<div />").addClass("thejloupeview").css("width",a.width-a.margin*2+"px").css("height",a.height-a.margin*2+"px").css("backgroundRepeat","no-repeat").css("marginLeft",a.margin+"px").css("marginTop",a.margin+"px").appendTo(b);a.backgroundColor&&d.css("backgroundColor",a.backgroundColor);if(jQuery.support.cssProperty("borderRadius")){a.image&&b.css("backgroundImage","url("+a.image+")");jQuery(d).css("border-top-left-radius",a.radiusLT).css("border-bottom-left-radius",a.radiusLB).css("border-bottom-right-radius",a.radiusRB).css("border-top-right-radius",a.radiusRT).css("-moz-border-radius-topleft",a.radiusLT).css("-moz-border-radius-bottomright",a.radiusRB).css("-moz-border-radius-bottomleft",a.radiusLB).css("-moz-border-radius-topright",a.radiusRT);(!a.image||a.repeat)&&jQuery(b).css("border-top-left-radius",a.radiusLT).css("border-bottom-left-radius",a.radiusLB).css("border-bottom-right-radius",a.radiusRB).css("border-top-right-radius",a.radiusRT).css("-moz-border-radius-topleft",a.radiusLT).css("-moz-border-radius-bottomright",a.radiusRB).css("-moz-border-radius-bottomleft",a.radiusLB).css("-moz-border-radius-topright",a.radiusRT)}jQuery(this).each(function(){var b=jQuery(this).parent("a").attr("href"),a=jQuery(this).attr("src");a=b?b:a;var c=jQuery("<img />").attr("src",a);jQuery(this).data("zoom",c)}).bind("mousemove",function(c){var h=jQuery(this).offset(),g=jQuery(this).data("zoom"),e=0,f=0;if(c.pageX||c.pageY){e=c.pageX;f=c.pageY}else if(c.clientX||c.clientY){e=c.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;f=c.clientY+document.body.scrollTop+document.documentElement.scrollTop}jQuery(b).offset({top:f+a.cursorOffsetY,left:e+a.cursorOffsetX});zlo=(e-h.left)/this.width*jQuery(g).attr("width")*-1+a.width/2.5;zto=(f-h.top)/this.height*jQuery(g).attr("height")*-1+a.height/2.5;jQuery(d).css("backgroundImage","url("+jQuery(g).attr("src")+")").css("backgroundPosition",zlo+"px "+zto+"px")}).bind("mouseleave",function(){jQuery(b).stop(true,true);if(a.fade)jQuery(b).fadeOut(100);else jQuery(b).hide()}).bind("mouseenter",function(){jQuery(b).stop(true,true);if(a.fade)jQuery(b).fadeIn();else jQuery(b).show()});return this};jQuery.support.cssProperty=function(){function a(a,e){var f=document.body||document.documentElement,c=f.style;if(typeof c=="undefined")return false;if(typeof c[a]=="string")return e?a:true;var d=["Moz","Webkit","Khtml","O","Ms"];a=a.charAt(0).toUpperCase()+a.substr(1);for(var b=0;b<d.length;b++)if(typeof c[d[b]+a]=="string")return e?d[b]+a:true}return a}();(function(a){a.fn.jclock=function(c){var d="1.2.0",b=a.extend({},a.fn.jclock.defaults,c);return this.each(function(){$this=a(this);$this.timerID=null;$this.running=false;var c=a.meta?a.extend({},b,$this.data()):b;$this.timeNotation=c.timeNotation;$this.am_pm=c.am_pm;$this.utc=c.utc;$this.utc_offset=c.utc_offset;$this.css({fontFamily:c.fontFamily,fontSize:c.fontSize,backgroundColor:c.background,color:c.foreground});a.fn.jclock.startClock($this)})};a.fn.jclock.startClock=function(b){a.fn.jclock.stopClock(b);a.fn.jclock.displayTime(b)};a.fn.jclock.stopClock=function(a){a.running&&clearTimeout(a.timerID);a.running=false};a.fn.jclock.displayTime=function(b){var c=a.fn.jclock.getTime(b);b.html(c);b.timerID=setTimeout(function(){a.fn.jclock.displayTime(b)},1e3)};a.fn.jclock.getTime=function(b){var c=new Date,a,d,e;if(b.utc==true){var i=c.getTime(),h=c.getTimezoneOffset()*6e4,k=i+h,j=k+3.6e6*b.utc_offset;c=new Date(j)}a=c.getHours();d=c.getMinutes();e=c.getSeconds();var f="";a>=12?f=" P.M.":f=" A.M.";if(b.timeNotation=="12h")a=a>12?a-12:a;else if(b.timeNotation=="12hh"){a=a>12?a-12:a;a=(a<10?"0":"")+a}else a=(a<10?"0":"")+a;d=(d<10?"0":"")+d;e=(e<10?"0":"")+e;var g=a+":"+d+":"+e;if((b.timeNotation=="12h"||b.timeNotation=="12hh")&&b.am_pm==true)g+=f;return g};a.fn.jclock.defaults={timeNotation:"24h",am_pm:false,utc:false,fontFamily:"",fontSize:"",foreground:"",background:"",utc_offset:0}})(jQuery);(function(a){a.timeago=function(c){return c instanceof Date?b(c):typeof c==="string"?b(a.timeago.parse(c)):b(a.timeago.datetime(c))};var c=a.timeago;a.extend(a.timeago,{settings:{refreshMillis:6e4,allowFuture:false,strings:{prefixAgo:null,prefixFromNow:null,suffixAgo:"ago",suffixFromNow:"from now",seconds:"less than a minute",minute:"about a minute",minutes:"%d minutes",hour:"about an hour",hours:"about %d hours",day:"a day",days:"%d days",month:"about a month",months:"%d months",year:"about a year",years:"%d years",numbers:[]}},inWords:function(e){var b=this.settings.strings,i=b.prefixAgo,j=b.suffixAgo;if(this.settings.allowFuture){if(e<0){i=b.prefixFromNow;j=b.suffixFromNow}e=Math.abs(e)}var g=e/1e3,f=g/60,h=f/60,d=h/24,k=d/365;function c(c,d){var f=a.isFunction(c)?c(d,e):c,g=b.numbers&&b.numbers[d]||d;return f.replace(/%d/i,g)}var l=g<45&&c(b.seconds,Math.round(g))||g<90&&c(b.minute,1)||f<45&&c(b.minutes,Math.round(f))||f<90&&c(b.hour,1)||h<24&&c(b.hours,Math.round(h))||h<48&&c(b.day,1)||d<30&&c(b.days,Math.floor(d))||d<60&&c(b.month,1)||d<365&&c(b.months,Math.floor(d/30))||k<2&&c(b.year,1)||c(b.years,Math.floor(k));return a.trim([i,l,j].join(" "))},parse:function(c){var b=a.trim(c);b=b.replace(/\.\d\d\d+/,"");b=b.replace(/-/,"/").replace(/-/,"/");b=b.replace(/T/," ").replace(/Z/," UTC");b=b.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2");return new Date(b)},datetime:function(b){var e=a(b).get(0).tagName.toLowerCase()==="time",d=e?a(b).attr("datetime"):a(b).attr("title");return c.parse(d)}});a.fn.timeago=function(){var a=this;a.each(d);var b=c.settings;b.refreshMillis>0&&setInterval(function(){a.each(d)},b.refreshMillis);return a};function d(){var c=e(this);!isNaN(c.datetime)&&a(this).text(b(c.datetime));return this}function e(b){b=a(b);if(!b.data("timeago")){b.data("timeago",{datetime:c.datetime(b)});var d=a.trim(b.text());d.length>0&&b.attr("title",d)}return b.data("timeago")}function b(a){return c.inWords(f(a))}function f(a){return(new Date).getTime()-a.getTime()}document.createElement("abbr");document.createElement("time")})(jQuery);$j=jQuery.noConflict();$j(document).ready(function(){$j("#current_rev").html("v"+$j.mcDropdown.version);var a=$j("#categoryChruch").mcDropdown("#categoryChruchMenu",{openSpeed:100,closeSpeed:100,hoverOutDelay:500});$j(a).val("Velg kirke");var b=$j("#categoryGeo").mcDropdown("#categoryGeoMenu",{openSpeed:100,closeSpeed:100,hoverOutDelay:500,minRows:40,maxRows:40});$j(b).val("Velg sted");$j("#gallery-container ul").cycle({fx:"fade",speed:2500,timeout:5e3});$j("#gallery-articles a").animate({opacity:.9},1);$j("#gallery-articles a").hover(function(){$j(this).animate({opacity:1},100)},function(){$j(this).animate({opacity:.9},100)});$j("#map ul a").animate({opacity:.7},1);$j("#map ul a").hover(function(){$j(this).animate({opacity:1},100)},function(){$j(this).animate({opacity:.7},100)});$j(".contentimage").wrap("<span class='wrap1'><span class='wrap2'><span class='wrap3'></span></span></span>");$j(".txtTo").keyup(function(){BindPostcard()});$j(".txtFrom").keyup(function(){BindPostcard()});$j(".txtComment").keyup(function(){BindPostcard()});$j(".coverslide-caption").fadeTo(500,.6);$j("#content-slider").mouseenter(function(){$j("#panels a .item").show()});$j("#content-slider").mouseleave(function(){$j("#panels a .item").hide()});$j("#panels").cycle({fx:"fade",pagerEvent:"mouseover",fastOnEvent:true,pager:".slideselector",pagerAnchorBuilder:function(a){return".slideselector li:eq("+a+") a"}});$j(".slideselector a").click(function(){window.location=$j(this).attr("href")});$j(".facebook").click(function(){popUp($j(this).attr("href"));return false});$j(".UseOriginalImage #stack li img").vAlign();$j(".UseOriginalImage #stack li img").hAlign();$j(".jLoupe, .jloupe").jloupe({width:300,height:250});jQuery.timeago.settings.strings={prefixAgo:"",prefixFromNow:"om",suffixAgo:"siden",suffixFromNow:"",seconds:"mindre enn et minutt",minute:"ca. et minutt",minutes:"%d minutter",hour:"ca. en time",hours:"ca. %d timer",day:"en dag",days:"%d dager",month:"ca. en måned",months:"%d måneder",year:"ca. et år",years:"%d år"};jQuery("abbr.timeago").timeago()});function ClearPopup(){$j(".FadeBackground").hide();$j(".HoldPopup").hide()}function FadeBackground(){$j(".FadeBackground").fadeTo(500,.6);$j(".FadeBackground").show()}function BuildIframe(a){FadeBackground();$j(".HoldPopup").html("<iframe scrolling='no' frameborder='0' marginheight='0' marginwidth='0' src='"+a+"' /><div onclick='javascript:ClearPopup();' class='close'>Close</div>")}function popUp(){day=new Date;id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=400,top=300');")}function BindPostcard(){$j("#preview_to").html("Til: "+$j(".txtTo").val());$j("#preview_from").html("Fra: "+$j(".txtFrom").val());var a=$j(".txtComment").val(),b=a.length;while(a.match("\n"))a=a.replace("\n","<br />");$j("#preview_comment").html(a)}(function(a){a.fn.vAlign=function(){return this.each(function(){var b=a(this).height(),d=a(this).outerHeight(),c=(b+(d-b))/2;a(this).css("margin-top","-"+c+"px");a(this).css("top","50%");a(this).css("position","absolute")})}})(jQuery);(function(a){a.fn.hAlign=function(){return this.each(function(){var b=a(this).width(),d=a(this).outerWidth(),c=(b+(d-b))/2;a(this).css("margin-left","-"+c+"px");a(this).css("left","50%");a(this).css("position","absolute")})}})(jQuery);if(document.getElementsByTagName)for(var hrefs=document.getElementsByTagName("a"),l=0;l<hrefs.length;l++)try{if(hrefs[l].protocol=="mailto:")startListening(hrefs[l],"click",trackMailto);else if(hrefs[l].hostname==location.host){var path=hrefs[l].pathname+hrefs[l].search,isDoc=path.match(/\.(?:doc|eps|jpg|png|svg|xls|ppt|pdf|xls|zip|txt|vsd|vxd|js|css|rar|exe|wma|mov|avi|wmv|mp3)($|\&|\?)/);isDoc&&startListening(hrefs[l],"click",trackExternalLinks)}else!hrefs[l].href.match(/^javascript:/)&&startListening(hrefs[l],"click",trackExternalLinks)}catch(e){continue}function startListening(a,b,c){if(a.addEventListener)a.addEventListener(b,c,false);else a.attachEvent&&a.attachEvent("on"+b,c)}function trackMailto(a){var c=a.srcElement?a.srcElement.href:this.href,b="/mailto/"+c.substring(7);typeof pageTracker=="object"&&pageTracker._trackPageview(b)}function trackExternalLinks(c){var a=c.srcElement?c.srcElement:this;while(a.tagName!="A")a=a.parentNode;var b=a.pathname.charAt(0)=="/"?a.pathname:"/"+a.pathname;if(a.search&&a.pathname.indexOf(a.search)==-1)b+=a.search;if(a.hostname!=location.host)b="/external/"+a.hostname+b;typeof pageTracker=="object"&&pageTracker._trackPageview(b)}
