(function(){function B(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function J(){return+new Date}function P(a,b){return a[0]&&parseInt(c.curCSS(a[0],b,true),10)||0}function V(){return false}function z(){return true}function D(a){var b=RegExp("(^|\\.)"+a.type+"(\\.|$)"),d=true,f=[];c.each(c.data(this,"events").live||[],function(h,k){if(b.test(k.type))(h=c(a.target).closest(k.data)[0])&&f.push({elem:h,
fn:k})});f.sort(function(h,k){return c.data(h.elem,"closest")-c.data(k.elem,"closest")});c.each(f,function(){if(this.fn.call(this.elem,a,this.fn.data)===false)return d=false});return d}function M(a,b){return["live",a,b.replace(/\./g,"`").replace(/ /g,"|")].join(".")}function l(){if(!ba){ba=true;if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);c.ready()},false);else if(document.attachEvent){document.attachEvent("onreadystatechange",
function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);c.ready()}});document.documentElement.doScroll&&o==o.top&&function(){if(!c.isReady){try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}c.ready()}}()}c.event.add(o,"load",c.ready)}}function r(a,b){var d={};c.each(ca.concat.apply([],ca.slice(0,b)),function(){d[this]=a});return d}var o=this,t,y=o.jQuery,E=o.$,c=o.jQuery=o.$=function(a,b){return new c.fn.init(a,
b)},T=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,K=/^.[^:#\[\.,]*$/;c.fn=c.prototype={init:function(a,b){a=a||document;if(a.nodeType){this[0]=a;this.length=1;this.context=a;return this}if(typeof a==="string"){var d=T.exec(a);if(d&&(d[1]||!b))if(d[1])a=c.clean([d[1]],b);else{if((b=document.getElementById(d[3]))&&b.id!=d[3])return c().find(a);d=c(b||[]);d.context=document;d.selector=a;return d}else return c(b).find(a)}else if(c.isFunction(a))return c(document).ready(a);if(a.selector&&a.context){this.selector=
a.selector;this.context=a.context}return this.setArray(c.isArray(a)?a:c.makeArray(a))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return a===t?Array.prototype.slice.call(this):this[a]},pushStack:function(a,b,d){a=c(a);a.prevObject=this;a.context=this.context;if(b==="find")a.selector=this.selector+(this.selector?" ":"")+d;else if(b)a.selector=this.selector+"."+b+"("+d+")";return a},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},
each:function(a,b){return c.each(this,a,b)},index:function(a){return c.inArray(a&&a.jquery?a[0]:a,this)},attr:function(a,b,d){var f=a;if(typeof a==="string")if(b===t)return this[0]&&c[d||"attr"](this[0],a);else{f={};f[a]=b}return this.each(function(h){for(a in f)c.attr(d?this.style:this,a,c.prop(this,f[a],d,h,a))})},css:function(a,b){if((a=="width"||a=="height")&&parseFloat(b)<0)b=t;return this.attr(a,b,"curCSS")},text:function(a){if(typeof a!=="object"&&a!=null)return this.empty().append((this[0]&&
this[0].ownerDocument||document).createTextNode(a));var b="";c.each(a||this,function(){c.each(this.childNodes,function(){if(this.nodeType!=8)b+=this.nodeType!=1?this.nodeValue:c.fn.text([this])})});return b},wrapAll:function(a){if(this[0]){a=c(a,this[0].ownerDocument).clone();this[0].parentNode&&a.insertBefore(this[0]);a.map(function(){for(var b=this;b.firstChild;)b=b.firstChild;return b}).append(this)}return this},wrapInner:function(a){return this.each(function(){c(this).contents().wrapAll(a)})},
wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},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(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,false,function(a){this.parentNode.insertBefore(a,
this.nextSibling)})},end:function(){return this.prevObject||c([])},push:[].push,sort:[].sort,splice:[].splice,find:function(a){if(this.length===1){var b=this.pushStack([],"find",a);b.length=0;c.find(a,this[0],b);return b}else return this.pushStack(c.unique(c.map(this,function(d){return c.find(a,d)})),"find",a)},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var h=this.outerHTML;if(!h){h=this.ownerDocument.createElement("div");h.appendChild(this.cloneNode(true));
h=h.innerHTML}return c.clean([h.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else return this.cloneNode(true)});if(a===true){var d=this.find("*").andSelf(),f=0;b.find("*").andSelf().each(function(){if(this.nodeName===d[f].nodeName){var h=c.data(d[f],"events");for(var k in h)for(var n in h[k])c.event.add(this,k,h[k][n],h[k][n].data);f++}})}return b},filter:function(a){return this.pushStack(c.isFunction(a)&&c.grep(this,function(b,d){return a.call(b,d)})||c.multiFilter(a,c.grep(this,
function(b){return b.nodeType===1})),"filter",a)},closest:function(a){var b=c.expr.match.POS.test(a)?c(a):null,d=0;return this.map(function(){for(var f=this;f&&f.ownerDocument;){if(b?b.index(f)>-1:c(f).is(a)){c.data(f,"closest",d);return f}f=f.parentNode;d++}})},not:function(a){if(typeof a==="string")if(K.test(a))return this.pushStack(c.multiFilter(a,this,true),"not",a);else a=c.multiFilter(a,this);var b=a.length&&a[a.length-1]!==t&&!a.nodeType;return this.filter(function(){return b?c.inArray(this,
a)<0:this!=a})},add:function(a){return this.pushStack(c.unique(c.merge(this.get(),typeof a==="string"?c(a):c.makeArray(a))))},is:function(a){return!!a&&c.multiFilter(a,this).length>0},hasClass:function(a){return!!a&&this.is("."+a)},val:function(a){if(a===t){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],h=b.options;b=b.type=="select-one";if(d<0)return null;var k=b?d:0;for(d=b?d+1:h.length;k<
d;k++){var n=h[k];if(n.selected){a=c(n).val();if(b)return a;f.push(a)}}return f}return(b.value||"").replace(/\r/g,"")}return t}if(typeof a==="number")a+="";return this.each(function(){if(this.nodeType==1)if(c.isArray(a)&&/radio|checkbox/.test(this.type))this.checked=c.inArray(this.value,a)>=0||c.inArray(this.name,a)>=0;else if(c.nodeName(this,"select")){var p=c.makeArray(a);c("option",this).each(function(){this.selected=c.inArray(this.value,p)>=0||c.inArray(this.text,p)>=0});if(!p.length)this.selectedIndex=
-1}else this.value=a})},html:function(a){return a===t?this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null:this.empty().append(a)},replaceWith:function(a){return this.after(a).remove()},eq:function(a){return this.slice(a,+a+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this,function(b,d){return a.call(b,d,b)}))},andSelf:function(){return this.add(this.prevObject)},
domManip:function(a,b,d){function f(w,A){return b&&c.nodeName(w,"table")&&c.nodeName(A,"tr")?w.getElementsByTagName("tbody")[0]||w.appendChild(w.ownerDocument.createElement("tbody")):w}if(this[0]){var h=(this[0].ownerDocument||this[0]).createDocumentFragment();a=c.clean(a,this[0].ownerDocument||this[0],h);var k=h.firstChild;if(k)for(var n=0,p=this.length;n<p;n++)d.call(f(this[n],k),this.length>1||n>0?h.cloneNode(true):h);a&&c.each(a,B)}return this}};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=
arguments[0]||{},b=1,d=arguments.length,f=false,h;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d==b){a=this;--b}for(;b<d;b++)if((h=arguments[b])!=null)for(var k in h){var n=a[k],p=h[k];if(a!==p)if(f&&p&&typeof p==="object"&&!p.nodeType)a[k]=c.extend(f,n||(p.length!=null?[]:{}),p);else if(p!==t)a[k]=p}return a};var U=/z-?index|font-?weight|opacity|zoom|line-?height/i,Q=document.defaultView||{},R=Object.prototype.toString;c.extend({noConflict:function(a){o.$=
E;if(a)o.jQuery=y;return c},isFunction:function(a){return R.call(a)==="[object Function]"},isArray:function(a){return R.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&c.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&&/\S/.test(a)){var b=document.getElementsByTagName("head")[0]||document.documentElement,d=document.createElement("script");d.type="text/javascript";if(c.support.scriptEval)d.appendChild(document.createTextNode(a));
else d.text=a;b.insertBefore(d,b.firstChild);b.removeChild(d)}},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()==b.toUpperCase()},each:function(a,b,d){var f,h=0,k=a.length;if(d)if(k===t)for(f in a){if(b.apply(a[f],d)===false)break}else for(;h<k;){if(b.apply(a[h++],d)===false)break}else if(k===t)for(f in a){if(b.call(a[f],f,a[f])===false)break}else for(d=a[0];h<k&&b.call(d,h,d)!==false;d=a[++h]);return a},prop:function(a,b,d,f,h){if(c.isFunction(b))b=b.call(a,f);return typeof b===
"number"&&d=="curCSS"&&!U.test(h)?b+"px":b},className:{add:function(a,b){c.each((b||"").split(/\s+/),function(d,f){if(a.nodeType==1&&!c.className.has(a.className,f))a.className+=(a.className?" ":"")+f})},remove:function(a,b){if(a.nodeType==1)a.className=b!==t?c.grep(a.className.split(/\s+/),function(d){return!c.className.has(b,d)}).join(" "):""},has:function(a,b){return a&&c.inArray(b,(a.className||a).toString().split(/\s+/))>-1}},swap:function(a,b,d){var f={};for(var h in b){f[h]=a.style[h];a.style[h]=
b[h]}d.call(a);for(h in b)a.style[h]=f[h]},css:function(a,b,d,f){if(b=="width"||b=="height"){var h;d={position:"absolute",visibility:"hidden",display:"block"};var k=b=="width"?["Left","Right"]:["Top","Bottom"];function n(){h=b=="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(k,function(){f||(h-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")h+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else h-=parseFloat(c.curCSS(a,"border"+this+"Width",true))||0})}a.offsetWidth!==0?
n():c.swap(a,d,n);return Math.max(0,Math.round(h))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,h=a.style;if(b=="opacity"&&!c.support.opacity){f=c.attr(h,"opacity");return f==""?"1":f}if(b.match(/float/i))b=X;if(!d&&h&&h[b])f=h[b];else if(Q.getComputedStyle){if(b.match(/float/i))b="float";b=b.replace(/([A-Z])/g,"-$1").toLowerCase();if(a=Q.getComputedStyle(a,null))f=a.getPropertyValue(b);if(b=="opacity"&&f=="")f="1"}else if(a.currentStyle){f=b.replace(/\-(\w)/g,function(k,n){return n.toUpperCase()});
f=a.currentStyle[b]||a.currentStyle[f];if(!/^\d+(px)?$/i.test(f)&&/^\d/.test(f)){b=h.left;d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=f||0;f=h.pixelLeft+"px";h.left=b;a.runtimeStyle.left=d}}return f},clean:function(a,b,d){b=b||document;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||document;if(!d&&a.length===1&&typeof a[0]==="string"){var f=/^<(\w+)\s*\/?>$/.exec(a[0]);if(f)return[b.createElement(f[1])]}var h=[];f=[];var k=b.createElement("div");
c.each(a,function(n,p){if(typeof p==="number")p+="";if(p){if(typeof p==="string"){p=p.replace(/(<(\w+)[^>]*?)\/>/g,function(C,G,I){return I.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?C:G+"></"+I+">"});n=p.replace(/^\s+/,"").substring(0,10).toLowerCase();var w=!n.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!n.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||n.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!n.indexOf("<tr")&&[2,"<table><tbody>",
"</tbody></table>"]||(!n.indexOf("<td")||!n.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!n.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!c.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];for(k.innerHTML=w[1]+p+w[2];w[0]--;)k=k.lastChild;if(!c.support.tbody){var A=/<tbody/i.test(p);n=!n.indexOf("<table")&&!A?k.firstChild&&k.firstChild.childNodes:w[1]=="<table>"&&!A?k.childNodes:[];for(w=n.length-1;w>=0;--w)c.nodeName(n[w],"tbody")&&
!n[w].childNodes.length&&n[w].parentNode.removeChild(n[w])}!c.support.leadingWhitespace&&/^\s/.test(p)&&k.insertBefore(b.createTextNode(p.match(/^\s*/)[0]),k.firstChild);p=c.makeArray(k.childNodes)}if(p.nodeType)h.push(p);else h=c.merge(h,p)}});if(d){for(a=0;h[a];a++)if(c.nodeName(h[a],"script")&&(!h[a].type||h[a].type.toLowerCase()==="text/javascript"))f.push(h[a].parentNode?h[a].parentNode.removeChild(h[a]):h[a]);else{h[a].nodeType===1&&h.splice.apply(h,[a+1,0].concat(c.makeArray(h[a].getElementsByTagName("script"))));
d.appendChild(h[a])}return f}return h},attr:function(a,b,d){if(!a||a.nodeType==3||a.nodeType==8)return t;var f=!c.isXMLDoc(a),h=d!==t;b=f&&c.props[b]||b;if(a.tagName){var k=/href|src|style/.test(b);if(b in a&&f&&!k){if(h){if(b=="type"&&c.nodeName(a,"input")&&a.parentNode)throw"type property can't be changed";a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b=="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:a.nodeName.match(/(button|input|object|select|textarea)/i)?
0:a.nodeName.match(/^(a|area)$/i)&&a.href?0:t;return a[b]}if(!c.support.style&&f&&b=="style")return c.attr(a.style,"cssText",d);h&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&k?a.getAttribute(b,2):a.getAttribute(b);return a===null?t:a}if(!c.support.opacity&&b=="opacity"){if(h){a.zoom=1;a.filter=(a.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(d)+""=="NaN"?"":"alpha(opacity="+d*100+")")}return a.filter&&a.filter.indexOf("opacity=")>=0?parseFloat(a.filter.match(/opacity=([^)]*)/)[1])/
100+"":""}b=b.replace(/-([a-z])/ig,function(n,p){return p.toUpperCase()});if(h)a[b]=d;return a[b]},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var b=[];if(a!=null){var d=a.length;if(d==null||typeof a==="string"||c.isFunction(a)||a.setInterval)b[0]=a;else for(;d;)b[--d]=a[d]}return b},inArray:function(a,b){for(var d=0,f=b.length;d<f;d++)if(b[d]===a)return d;return-1},merge:function(a,b){var d=0,f,h=a.length;if(c.support.getAll)for(;(f=b[d++])!=null;)a[h++]=f;else for(;(f=
b[d++])!=null;)if(f.nodeType!=8)a[h++]=f;return a},unique:function(a){var b=[],d={};try{for(var f=0,h=a.length;f<h;f++){var k=c.data(a[f]);if(!d[k]){d[k]=true;b.push(a[f])}}}catch(n){b=a}return b},grep:function(a,b,d){for(var f=[],h=0,k=a.length;h<k;h++)!d!=!b(a[h],h)&&f.push(a[h]);return f},map:function(a,b){for(var d=[],f=0,h=a.length;f<h;f++){var k=b(a[f],f);if(k!=null)d[d.length]=k}return d.concat.apply([],d)}});var S=navigator.userAgent.toLowerCase();c.browser={version:(S.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||
[0,"0"])[1],safari:/webkit/.test(S),opera:/opera/.test(S),msie:/msie/.test(S)&&!/opera/.test(S),mozilla:/mozilla/.test(S)&&!/(compatible|webkit)/.test(S)};c.each({parent:function(a){return a.parentNode},parents:function(a){return c.dir(a,"parentNode")},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},siblings:function(a){return c.sibling(a.parentNode.firstChild,
a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d){var f=c.map(this,b);if(d&&typeof d=="string")f=c.multiFilter(d,f);return this.pushStack(c.unique(f),a,d)}});c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){for(var f=[],h=c(d),k=0,n=h.length;k<
n;k++){var p=(k>0?this.clone(true):this).get();c.fn[b].apply(c(h[k]),p);f=f.concat(p)}return this.pushStack(f,a,d)}});c.each({removeAttr:function(a){c.attr(this,a,"");this.nodeType==1&&this.removeAttribute(a)},addClass:function(a){c.className.add(this,a)},removeClass:function(a){c.className.remove(this,a)},toggleClass:function(a,b){if(typeof b!=="boolean")b=!c.className.has(this,a);c.className[b?"add":"remove"](this,a)},remove:function(a){if(!a||c.filter(a,[this]).length){c("*",this).add([this]).each(function(){c.event.remove(this);
c.removeData(this)});this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(c(this).children().remove();this.firstChild;)this.removeChild(this.firstChild)}},function(a,b){c.fn[a]=function(){return this.each(b,arguments)}});var N="jQuery"+J(),ga=0,da={};c.extend({cache:{},data:function(a,b,d){a=a==o?da:a;var f=a[N];f||(f=a[N]=++ga);if(b&&!c.cache[f])c.cache[f]={};if(d!==t)c.cache[f][b]=d;return b?c.cache[f][b]:f},removeData:function(a,b){a=a==o?da:a;var d=a[N];if(b){if(c.cache[d]){delete c.cache[d][b];
b="";for(b in c.cache[d])break;b||c.removeData(a)}}else{try{delete a[N]}catch(f){a.removeAttribute&&a.removeAttribute(N)}delete c.cache[d]}},queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else d&&f.push(d)}return f},dequeue:function(a,b){var d=c.queue(a,b),f=d.shift();if(!b||b==="fx")f=d[0];f!==t&&f.call(a)}});c.fn.extend({data:function(a,b){var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===t){var f=this.triggerHandler("getData"+d[1]+
"!",[d[0]]);if(f===t&&this.length)f=c.data(this[0],a);return f===t&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this,a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})},queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b===t)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a=="fx"&&d.length==1&&d[0].call(this)})},dequeue:function(a){return this.each(function(){c.dequeue(this,
a)})}});(function(){function a(e,g,j,m,q,s){q=e=="previousSibling"&&!s;for(var u=0,F=m.length;u<F;u++){var v=m[u];if(v){if(q&&v.nodeType===1){v.sizcache=j;v.sizset=u}v=v[e];for(var H=false;v;){if(v.sizcache===j){H=m[v.sizset];break}if(v.nodeType===1&&!s){v.sizcache=j;v.sizset=u}if(v.nodeName===g){H=v;break}v=v[e]}m[u]=H}}}function b(e,g,j,m,q,s){q=e=="previousSibling"&&!s;for(var u=0,F=m.length;u<F;u++){var v=m[u];if(v){if(q&&v.nodeType===1){v.sizcache=j;v.sizset=u}v=v[e];for(var H=false;v;){if(v.sizcache===
j){H=m[v.sizset];break}if(v.nodeType===1){if(!s){v.sizcache=j;v.sizset=u}if(typeof g!=="string"){if(v===g){H=true;break}}else if(k.filter(g,[v]).length>0){H=v;break}}v=v[e]}m[u]=H}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,f=0,h=Object.prototype.toString,k=function(e,g,j,m){j=j||[];g=g||document;if(g.nodeType!==1&&g.nodeType!==9)return[];if(!e||typeof e!=="string")return j;var q=[],s,u,F,v=true;for(d.lastIndex=0;(s=
d.exec(e))!==null;){q.push(s[1]);if(s[2]){F=RegExp.rightContext;break}}if(q.length>1&&p.exec(e))if(q.length===2&&n.relative[q[0]])s=O(q[0]+q[1],g);else for(s=n.relative[q[0]]?[g]:k(q.shift(),g);q.length;){e=q.shift();if(n.relative[e])e+=q.shift();s=O(e,s)}else{s=m?{expr:q.pop(),set:A(m)}:k.find(q.pop(),q.length===1&&g.parentNode?g.parentNode:g,x(g));s=k.filter(s.expr,s.set);if(q.length>0)u=A(s);else v=false;for(;q.length;){var H=q.pop(),L=H;if(n.relative[H])L=q.pop();else H="";if(L==null)L=g;n.relative[H](u,
L,x(g))}}u||(u=s);if(!u)throw"Syntax error, unrecognized expression: "+(H||e);if(h.call(u)==="[object Array]")if(v)if(g.nodeType===1)for(e=0;u[e]!=null;e++){if(u[e]&&(u[e]===true||u[e].nodeType===1&&I(g,u[e])))j.push(s[e])}else for(e=0;u[e]!=null;e++)u[e]&&u[e].nodeType===1&&j.push(s[e]);else j.push.apply(j,u);else A(u,j);if(F){k(F,g,j,m);if(G){hasDuplicate=false;j.sort(G);if(hasDuplicate)for(e=1;e<j.length;e++)j[e]===j[e-1]&&j.splice(e--,1)}}return j};k.matches=function(e,g){return k(e,null,null,
g)};k.find=function(e,g,j){var m,q;if(!e)return[];for(var s=0,u=n.order.length;s<u;s++){var F=n.order[s];if(q=n.match[F].exec(e)){var v=RegExp.leftContext;if(v.substr(v.length-1)!=="\\"){q[1]=(q[1]||"").replace(/\\/g,"");m=n.find[F](q,g,j);if(m!=null){e=e.replace(n.match[F],"");break}}}}m||(m=g.getElementsByTagName("*"));return{set:m,expr:e}};k.filter=function(e,g,j,m){for(var q=e,s=[],u=g,F,v,H=g&&g[0]&&x(g[0]);e&&g.length;){for(var L in n.filter)if((F=n.match[L].exec(e))!=null){var ha=n.filter[L],
W,Y;v=false;if(u==s)s=[];if(n.preFilter[L])if(F=n.preFilter[L](F,u,j,s,m,H)){if(F===true)continue}else v=W=true;if(F)for(var Z=0;(Y=u[Z])!=null;Z++)if(Y){W=ha(Y,F,Z,u);var ea=m^!!W;if(j&&W!=null)if(ea)v=true;else u[Z]=false;else if(ea){s.push(Y);v=true}}if(W!==t){j||(u=s);e=e.replace(n.match[L],"");if(!v)return[];break}}if(e==q)if(v==null)throw"Syntax error, unrecognized expression: "+e;else break;q=e}return u};var n=k.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\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")}},
relative:{"+":function(e,g,j){var m=typeof g==="string",q=m&&!/\W/.test(g);m=m&&!q;if(q&&!j)g=g.toUpperCase();j=0;q=e.length;for(var s;j<q;j++)if(s=e[j]){for(;(s=s.previousSibling)&&s.nodeType!==1;);e[j]=m||s&&s.nodeName===g?s||false:s===g}m&&k.filter(g,e,true)},">":function(e,g,j){var m=typeof g==="string";if(m&&!/\W/.test(g)){g=j?g:g.toUpperCase();j=0;for(var q=e.length;j<q;j++){var s=e[j];if(s){m=s.parentNode;e[j]=m.nodeName===g?m:false}}}else{j=0;for(q=e.length;j<q;j++)if(s=e[j])e[j]=m?s.parentNode:
s.parentNode===g;m&&k.filter(g,e,true)}},"":function(e,g,j){var m=f++,q=b;if(!g.match(/\W/)){var s=g=j?g:g.toUpperCase();q=a}q("parentNode",g,m,e,s,j)},"~":function(e,g,j){var m=f++,q=b;if(typeof g==="string"&&!g.match(/\W/)){var s=g=j?g:g.toUpperCase();q=a}q("previousSibling",g,m,e,s,j)}},find:{ID:function(e,g,j){if(typeof g.getElementById!=="undefined"&&!j)return(e=g.getElementById(e[1]))?[e]:[]},NAME:function(e,g){if(typeof g.getElementsByName!=="undefined"){var j=[];g=g.getElementsByName(e[1]);
for(var m=0,q=g.length;m<q;m++)g[m].getAttribute("name")===e[1]&&j.push(g[m]);return j.length===0?null:j}},TAG:function(e,g){return g.getElementsByTagName(e[1])}},preFilter:{CLASS:function(e,g,j,m,q,s){e=" "+e[1].replace(/\\/g,"")+" ";if(s)return e;s=0;for(var u;(u=g[s])!=null;s++)if(u)if(q^(u.className&&(" "+u.className+" ").indexOf(e)>=0))j||m.push(u);else if(j)g[s]=false;return false},ID:function(e){return e[1].replace(/\\/g,"")},TAG:function(e,g){for(var j=0;g[j]===false;j++);return g[j]&&x(g[j])?
e[1]:e[1].toUpperCase()},CHILD:function(e){if(e[1]=="nth"){var g=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(e[2]=="even"&&"2n"||e[2]=="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=g[1]+(g[2]||1)-0;e[3]=g[3]-0}e[0]=f++;return e},ATTR:function(e,g,j,m,q,s){g=e[1].replace(/\\/g,"");if(!s&&n.attrMap[g])e[1]=n.attrMap[g];if(e[2]==="~=")e[4]=" "+e[4]+" ";return e},PSEUDO:function(e,g,j,m,q){if(e[1]==="not")if(e[3].match(d).length>1||/^\w/.test(e[3]))e[3]=k(e[3],null,null,g);else{e=k.filter(e[3],g,j,true^
q);j||m.push.apply(m,e);return false}else if(n.match.POS.test(e[0])||n.match.CHILD.test(e[0]))return true;return e},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){return e.selected===true},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,g,j){return!!k(j[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},
text:function(e){return"text"===e.type},radio:function(e){return"radio"===e.type},checkbox:function(e){return"checkbox"===e.type},file:function(e){return"file"===e.type},password:function(e){return"password"===e.type},submit:function(e){return"submit"===e.type},image:function(e){return"image"===e.type},reset:function(e){return"reset"===e.type},button:function(e){return"button"===e.type||e.nodeName.toUpperCase()==="BUTTON"},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)}},
setFilters:{first:function(e,g){return g===0},last:function(e,g,j,m){return g===m.length-1},even:function(e,g){return g%2===0},odd:function(e,g){return g%2===1},lt:function(e,g,j){return g<j[3]-0},gt:function(e,g,j){return g>j[3]-0},nth:function(e,g,j){return j[3]-0==g},eq:function(e,g,j){return j[3]-0==g}},filter:{PSEUDO:function(e,g,j,m){var q=g[1],s=n.filters[q];if(s)return s(e,j,g,m);else if(q==="contains")return(e.textContent||e.innerText||"").indexOf(g[3])>=0;else if(q==="not"){g=g[3];j=0;for(m=
g.length;j<m;j++)if(g[j]===e)return false;return true}},CHILD:function(e,g){var j=g[1],m=e;switch(j){case "only":case "first":for(;m=m.previousSibling;)if(m.nodeType===1)return false;if(j=="first")return true;m=e;case "last":for(;m=m.nextSibling;)if(m.nodeType===1)return false;return true;case "nth":j=g[2];var q=g[3];if(j==1&&q==0)return true;g=g[0];var s=e.parentNode;if(s&&(s.sizcache!==g||!e.nodeIndex)){var u=0;for(m=s.firstChild;m;m=m.nextSibling)if(m.nodeType===1)m.nodeIndex=++u;s.sizcache=g}e=
e.nodeIndex-q;return j==0?e==0:e%j==0&&e/j>=0}},ID:function(e,g){return e.nodeType===1&&e.getAttribute("id")===g},TAG:function(e,g){return g==="*"&&e.nodeType===1||e.nodeName===g},CLASS:function(e,g){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(g)>-1},ATTR:function(e,g){var j=g[1];e=n.attrHandle[j]?n.attrHandle[j](e):e[j]!=null?e[j]:e.getAttribute(j);j=e+"";var m=g[2];g=g[4];return e==null?m==="!=":m==="="?j===g:m==="*="?j.indexOf(g)>=0:m==="~="?(" "+j+" ").indexOf(g)>=0:!g?j&&e!==
false:m==="!="?j!=g:m==="^="?j.indexOf(g)===0:m==="$="?j.substr(j.length-g.length)===g:m==="|="?j===g||j.substr(0,g.length+1)===g+"-":false},POS:function(e,g,j,m){var q=g[2];if(q=n.setFilters[q])return q(e,j,g,m)}}},p=n.match.POS;for(var w in n.match)n.match[w]=RegExp(n.match[w].source+/(?![^\[]*\])(?![^\(]*\))/.source);var A=function(e,g){e=Array.prototype.slice.call(e);if(g){g.push.apply(g,e);return g}return e};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(C){A=function(e,
g){g=g||[];if(h.call(e)==="[object Array]")Array.prototype.push.apply(g,e);else if(typeof e.length==="number")for(var j=0,m=e.length;j<m;j++)g.push(e[j]);else for(j=0;e[j];j++)g.push(e[j]);return g}}var G;if(document.documentElement.compareDocumentPosition)G=function(e,g){e=e.compareDocumentPosition(g)&4?-1:e===g?0:1;if(e===0)hasDuplicate=true;return e};else if("sourceIndex"in document.documentElement)G=function(e,g){e=e.sourceIndex-g.sourceIndex;if(e===0)hasDuplicate=true;return e};else if(document.createRange)G=
function(e,g){var j=e.ownerDocument.createRange(),m=g.ownerDocument.createRange();j.selectNode(e);j.collapse(true);m.selectNode(g);m.collapse(true);e=j.compareBoundaryPoints(Range.START_TO_END,m);if(e===0)hasDuplicate=true;return e};(function(){var e=document.createElement("form"),g="script"+(new Date).getTime();e.innerHTML="<input name='"+g+"'/>";var j=document.documentElement;j.insertBefore(e,j.firstChild);if(document.getElementById(g)){n.find.ID=function(m,q,s){if(typeof q.getElementById!=="undefined"&&
!s)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&&q.getAttributeNode("id").nodeValue===m[1]?[q]:t:[]};n.filter.ID=function(m,q){var s=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&s&&s.nodeValue===q}}j.removeChild(e)})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0)n.find.TAG=function(g,j){j=j.getElementsByTagName(g[1]);if(g[1]==="*"){g=
[];for(var m=0;j[m];m++)j[m].nodeType===1&&g.push(j[m]);j=g}return j};e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(g){return g.getAttribute("href",2)}})();document.querySelectorAll&&function(){var e=k,g=document.createElement("div");g.innerHTML="<p class='TEST'></p>";if(!(g.querySelectorAll&&g.querySelectorAll(".TEST").length===0)){k=function(j,m,q,s){m=m||document;if(!s&&m.nodeType===
9&&!x(m))try{return A(m.querySelectorAll(j),q)}catch(u){}return e(j,m,q,s)};k.find=e.find;k.filter=e.filter;k.selectors=e.selectors;k.matches=e.matches}}();document.getElementsByClassName&&document.documentElement.getElementsByClassName&&function(){var e=document.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(e.getElementsByClassName("e").length!==0){e.lastChild.className="e";if(e.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=
function(g,j,m){if(typeof j.getElementsByClassName!=="undefined"&&!m)return j.getElementsByClassName(g[1])}}}}();var I=document.compareDocumentPosition?function(e,g){return e.compareDocumentPosition(g)&16}:function(e,g){return e!==g&&(e.contains?e.contains(g):true)},x=function(e){return e.nodeType===9&&e.documentElement.nodeName!=="HTML"||!!e.ownerDocument&&x(e.ownerDocument)},O=function(e,g){var j=[],m="",q;for(g=g.nodeType?[g]:g;q=n.match.PSEUDO.exec(e);){m+=q[0];e=e.replace(n.match.PSEUDO,"")}e=
n.relative[e]?e+"*":e;q=0;for(var s=g.length;q<s;q++)k(e,g[q],j);return k.filter(m,j)};c.find=k;c.filter=k.filter;c.expr=k.selectors;c.expr[":"]=c.expr.filters;k.selectors.filters.hidden=function(e){return e.offsetWidth===0||e.offsetHeight===0};k.selectors.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0};k.selectors.filters.animated=function(e){return c.grep(c.timers,function(g){return e===g.elem}).length};c.multiFilter=function(e,g,j){if(j)e=":not("+e+")";return k.matches(e,
g)};c.dir=function(e,g){var j=[];for(e=e[g];e&&e!=document;){e.nodeType==1&&j.push(e);e=e[g]}return j};c.nth=function(e,g,j){g=g||1;for(var m=0;e;e=e[j])if(e.nodeType==1&&++m==g)break;return e};c.sibling=function(e,g){for(var j=[];e;e=e.nextSibling)e.nodeType==1&&e!=g&&j.push(e);return j}})();c.event={add:function(a,b,d,f){if(!(a.nodeType==3||a.nodeType==8)){if(a.setInterval&&a!=o)a=o;if(!d.guid)d.guid=this.guid++;if(f!==t){var h=d;d=this.proxy(h);d.data=f}var k=c.data(a,"events")||c.data(a,"events",
{}),n=c.data(a,"handle")||c.data(a,"handle",function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(arguments.callee.elem,arguments):t});n.elem=a;c.each(b.split(/\s+/),function(p,w){p=w.split(".");w=p.shift();d.type=p.slice().sort().join(".");var A=k[w];c.event.specialAll[w]&&c.event.specialAll[w].setup.call(a,f,p);if(!A){A=k[w]={};if(!c.event.special[w]||c.event.special[w].setup.call(a,f,p)===false)if(a.addEventListener)a.addEventListener(w,n,false);else a.attachEvent&&
a.attachEvent("on"+w,n)}A[d.guid]=d;c.event.global[w]=true});a=null}},guid:1,global:{},remove:function(a,b,d){if(!(a.nodeType==3||a.nodeType==8)){var f=c.data(a,"events"),h;if(f){if(b===t||typeof b==="string"&&b.charAt(0)==".")for(var k in f)this.remove(a,k+(b||""));else{if(b.type){d=b.handler;b=b.type}c.each(b.split(/\s+/),function(n,p){n=p.split(".");p=n.shift();var w=RegExp("(^|\\.)"+n.slice().sort().join(".*\\.")+"(\\.|$)");if(f[p]){if(d)delete f[p][d.guid];else for(var A in f[p])w.test(f[p][A].type)&&
delete f[p][A];c.event.specialAll[p]&&c.event.specialAll[p].teardown.call(a,n);for(h in f[p])break;if(!h){if(!c.event.special[p]||c.event.special[p].teardown.call(a,n)===false)if(a.removeEventListener)a.removeEventListener(p,c.data(a,"handle"),false);else a.detachEvent&&a.detachEvent("on"+p,c.data(a,"handle"));h=null;delete f[p]}}})}for(h in f)break;if(!h){if(b=c.data(a,"handle"))b.elem=null;c.removeData(a,"events");c.removeData(a,"handle")}}}},trigger:function(a,b,d,f){var h=a.type||a;if(!f){a=typeof a===
"object"?a[N]?a:c.extend(c.Event(h),a):c.Event(h);if(h.indexOf("!")>=0){a.type=h=h.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();this.global[h]&&c.each(c.cache,function(){this.events&&this.events[h]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType==3||d.nodeType==8)return t;a.result=t;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;var k=c.data(d,"handle");k&&k.apply(d,b);if((!d[h]||c.nodeName(d,"a")&&h=="click")&&d["on"+h]&&d["on"+h].apply(d,b)===false)a.result=false;
if(!f&&d[h]&&!a.isDefaultPrevented()&&!(c.nodeName(d,"a")&&h=="click")){this.triggered=true;try{d[h]()}catch(n){}}this.triggered=false;if(!a.isPropagationStopped())(d=d.parentNode||d.ownerDocument)&&c.event.trigger(a,b,d,true)},handle:function(a){var b,d;a=arguments[0]=c.event.fix(a||o.event);a.currentTarget=this;d=a.type.split(".");a.type=d.shift();b=!d.length&&!a.exclusive;var f=RegExp("(^|\\.)"+d.slice().sort().join(".*\\.")+"(\\.|$)");d=(c.data(this,"events")||{})[a.type];for(var h in d){var k=
d[h];if(b||f.test(k.type)){a.handler=k;a.data=k.data;k=k.apply(this,arguments);if(k!==t){a.result=k;if(k===false){a.preventDefault();a.stopPropagation()}}if(a.isImmediatePropagationStopped())break}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),
fix:function(a){if(a[N])return a;var b=a;a=c.Event(b);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=b[f]}if(!a.target)a.target=a.srcElement||document;if(a.target.nodeType==3)a.target=a.target.parentNode;if(!a.relatedTarget&&a.fromElement)a.relatedTarget=a.fromElement==a.target?a.toElement:a.fromElement;if(a.pageX==null&&a.clientX!=null){b=document.documentElement;d=document.body;a.pageX=a.clientX+(b&&b.scrollLeft||d&&d.scrollLeft||0)-(b.clientLeft||0);a.pageY=a.clientY+(b&&b.scrollTop||
d&&d.scrollTop||0)-(b.clientTop||0)}if(!a.which&&(a.charCode||a.charCode===0?a.charCode:a.keyCode))a.which=a.charCode||a.keyCode;if(!a.metaKey&&a.ctrlKey)a.metaKey=a.ctrlKey;if(!a.which&&a.button)a.which=a.button&1?1:a.button&2?3:a.button&4?2:0;return a},proxy:function(a,b){b=b||function(){return a.apply(this,arguments)};b.guid=a.guid=a.guid||b.guid||this.guid++;return b},special:{ready:{setup:l,teardown:function(){}}},specialAll:{live:{setup:function(a,b){c.event.add(this,b[0],D)},teardown:function(a){if(a.length){var b=
0,d=RegExp("(^|\\.)"+a[0]+"(\\.|$)");c.each(c.data(this,"events").live||{},function(){d.test(this.type)&&b++});b<1&&c.event.remove(this,a[0],D)}}}}};c.Event=function(a){if(!this.preventDefault)return new c.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=J();this[N]=true};c.Event.prototype={preventDefault:function(){this.isDefaultPrevented=z;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=
z;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=z;this.stopPropagation()},isDefaultPrevented:V,isPropagationStopped:V,isImmediatePropagationStopped:V};var fa=function(a){for(var b=a.relatedTarget;b&&b!=this;)try{b=b.parentNode}catch(d){b=this}if(b!=this){a.type=a.data;c.event.handle.apply(this,arguments)}};c.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,b){c.event.special[b]=
{setup:function(){c.event.add(this,a,fa,b)},teardown:function(){c.event.remove(this,a,fa)}}});c.fn.extend({bind:function(a,b,d){return a=="unload"?this.one(a,b,d):this.each(function(){c.event.add(this,a,d||b,d&&b)})},one:function(a,b,d){var f=c.event.proxy(d||b,function(h){c(this).unbind(h,f);return(d||b).apply(this,arguments)});return this.each(function(){c.event.add(this,a,f,d&&b)})},unbind:function(a,b){return this.each(function(){c.event.remove(this,a,b)})},trigger:function(a,b){return this.each(function(){c.event.trigger(a,
b,this)})},triggerHandler:function(a,b){if(this[0]){a=c.Event(a);a.preventDefault();a.stopPropagation();c.event.trigger(a,b,this[0]);return a.result}},toggle:function(a){for(var b=arguments,d=1;d<b.length;)c.event.proxy(a,b[d++]);return this.click(c.event.proxy(a,function(f){this.lastToggle=(this.lastToggle||0)%d;f.preventDefault();return b[this.lastToggle++].apply(this,arguments)||false}))},hover:function(a,b){return this.mouseenter(a).mouseleave(b)},ready:function(a){l();c.isReady?a.call(document,
c):c.readyList.push(a);return this},live:function(a,b){b=c.event.proxy(b);b.guid+=this.selector+a;c(document).bind(M(a,this.selector),this.selector,b);return this},die:function(a,b){c(document).unbind(M(a,this.selector),b?{guid:b.guid+this.selector+a}:null);return this}});c.extend({isReady:false,readyList:[],ready:function(){if(!c.isReady){c.isReady=true;if(c.readyList){c.each(c.readyList,function(){this.call(document,c)});c.readyList=null}c(document).triggerHandler("ready")}}});var ba=false;c.each("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error".split(","),
function(a,b){c.fn[b]=function(d){return d?this.bind(b,d):this.trigger(b)}});c(o).bind("unload",function(){for(var a in c.cache)a!=1&&c.cache[a].handle&&c.event.remove(c.cache[a].handle.elem)});(function(){c.support={};var a=document.documentElement,b=document.createElement("script"),d=document.createElement("div"),f="script"+(new Date).getTime();d.style.display="none";d.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
var h=d.getElementsByTagName("*"),k=d.getElementsByTagName("a")[0];if(!(!h||!h.length||!k)){c.support={leadingWhitespace:d.firstChild.nodeType==3,tbody:!d.getElementsByTagName("tbody").length,objectAll:!!d.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(k.getAttribute("style")),hrefNormalized:k.getAttribute("href")==="/a",opacity:k.style.opacity==="0.5",cssFloat:!!k.style.cssFloat,scriptEval:false,noCloneEvent:true,
boxModel:null};b.type="text/javascript";try{b.appendChild(document.createTextNode("window."+f+"=1;"))}catch(n){}a.insertBefore(b,a.firstChild);if(o[f]){c.support.scriptEval=true;delete o[f]}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function(){c.support.noCloneEvent=false;d.detachEvent("onclick",arguments.callee)});d.cloneNode(true).fireEvent("onclick")}c(function(){var p=document.createElement("div");p.style.width=p.style.paddingLeft="1px";document.body.appendChild(p);
c.boxModel=c.support.boxModel=p.offsetWidth===2;document.body.removeChild(p).style.display="none"})}})();var X=c.support.cssFloat?"cssFloat":"styleFloat";c.props={"for":"htmlFor","class":"className","float":X,cssFloat:X,styleFloat:X,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};c.fn.extend({_load:c.fn.load,load:function(a,b,d){if(typeof a!=="string")return this._load(a);var f=a.indexOf(" ");if(f>=0){var h=a.slice(f,a.length);a=a.slice(0,
f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b);f="POST"}var k=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(n,p){if(p=="success"||p=="notmodified")k.html(h?c("<div/>").append(n.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(h):n.responseText);d&&k.each(d,[n.responseText,p,n])}});return this},serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?
c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});var ia=J();c.extend({get:function(a,
b,d,f){if(c.isFunction(b)){d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,
xhr:function(){return o.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(a){function b(){a.success&&a.success(n,k);a.global&&c.event.trigger("ajaxSuccess",[x,a])}function d(){a.complete&&a.complete(x,k);a.global&&c.event.trigger("ajaxComplete",[x,a]);a.global&&!--c.active&&
c.event.trigger("ajaxStop")}a=c.extend(true,a,c.extend(true,{},c.ajaxSettings,a));var f,h=/=\?(&|$)/g,k,n,p=a.type.toUpperCase();if(a.data&&a.processData&&typeof a.data!=="string")a.data=c.param(a.data);if(a.dataType=="jsonp"){if(p=="GET")a.url.match(h)||(a.url+=(a.url.match(/\?/)?"&":"?")+(a.jsonp||"callback")+"=?");else if(!a.data||!a.data.match(h))a.data=(a.data?a.data+"&":"")+(a.jsonp||"callback")+"=?";a.dataType="json"}if(a.dataType=="json"&&(a.data&&a.data.match(h)||a.url.match(h))){f="jsonp"+
ia++;if(a.data)a.data=(a.data+"").replace(h,"="+f+"$1");a.url=a.url.replace(h,"="+f+"$1");a.dataType="script";o[f]=function(m){n=m;b();d();o[f]=t;try{delete o[f]}catch(q){}A&&A.removeChild(C)}}if(a.dataType=="script"&&a.cache==null)a.cache=false;if(a.cache===false&&p=="GET"){h=J();var w=a.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+h+"$2");a.url=w+(w==a.url?(a.url.match(/\?/)?"&":"?")+"_="+h:"")}if(a.data&&p=="GET"){a.url+=(a.url.match(/\?/)?"&":"?")+a.data;a.data=null}a.global&&!c.active++&&c.event.trigger("ajaxStart");
h=/^(\w+:)?\/\/([^\/?#]+)/.exec(a.url);if(a.dataType=="script"&&p=="GET"&&h&&(h[1]&&h[1]!=location.protocol||h[2]!=location.host)){var A=document.getElementsByTagName("head")[0],C=document.createElement("script");C.src=a.url;if(a.scriptCharset)C.charset=a.scriptCharset;if(!f){var G=false;C.onload=C.onreadystatechange=function(){if(!G&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){G=true;b();d();C.onload=C.onreadystatechange=null;A.removeChild(C)}}}A.appendChild(C);return t}var I=
false,x=a.xhr();a.username?x.open(p,a.url,a.async,a.username,a.password):x.open(p,a.url,a.async);try{a.data&&x.setRequestHeader("Content-Type",a.contentType);if(a.ifModified)x.setRequestHeader("If-Modified-Since",c.lastModified[a.url]||"Thu, 01 Jan 1970 00:00:00 GMT");x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",a.dataType&&a.accepts[a.dataType]?a.accepts[a.dataType]+", */*":a.accepts._default)}catch(O){}if(a.beforeSend&&a.beforeSend(x,a)===false){a.global&&
!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}a.global&&c.event.trigger("ajaxSend",[x,a]);var e=function(m){if(x.readyState==0){if(g){clearInterval(g);g=null;a.global&&!--c.active&&c.event.trigger("ajaxStop")}}else if(!I&&x&&(x.readyState==4||m=="timeout")){I=true;if(g){clearInterval(g);g=null}k=m=="timeout"?"timeout":!c.httpSuccess(x)?"error":a.ifModified&&c.httpNotModified(x,a.url)?"notmodified":"success";if(k=="success")try{n=c.httpData(x,a.dataType,a)}catch(q){k="parsererror"}if(k==
"success"){var s;try{s=x.getResponseHeader("Last-Modified")}catch(u){}if(a.ifModified&&s)c.lastModified[a.url]=s;f||b()}else c.handleError(a,x,k);d();m&&x.abort();if(a.async)x=null}};if(a.async){var g=setInterval(e,13);a.timeout>0&&setTimeout(function(){x&&!I&&e("timeout")},a.timeout)}try{x.send(a.data)}catch(j){c.handleError(a,x,null,j)}a.async||e();return x},handleError:function(a,b,d,f){a.error&&a.error(b,d,f);a.global&&c.event.trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&
location.protocol=="file:"||a.status>=200&&a.status<300||a.status==304||a.status==1223}catch(b){}return false},httpNotModified:function(a,b){try{var d=a.getResponseHeader("Last-Modified");return a.status==304||d==c.lastModified[b]}catch(f){}return false},httpData:function(a,b,d){var f=a.getResponseHeader("content-type");a=(f=b=="xml"||!b&&f&&f.indexOf("xml")>=0)?a.responseXML:a.responseText;if(f&&a.documentElement.tagName=="parsererror")throw"parsererror";if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a===
"string"){b=="script"&&c.globalEval(a);if(b=="json")a=o.eval("("+a+")")}return a},param:function(a){function b(h,k){d[d.length]=encodeURIComponent(h)+"="+encodeURIComponent(k)}var d=[];if(c.isArray(a)||a.jquery)c.each(a,function(){b(this.name,this.value)});else for(var f in a)c.isArray(a[f])?c.each(a[f],function(){b(f,this)}):b(f,c.isFunction(a[f])?a[f]():a[f]);return d.join("&").replace(/%20/g,"+")}});var aa={},$,ca=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft",
"marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a)return this.animate(r("show",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");this[a].style.display=d||"";if(c.css(this[a],"display")==="none"){d=this[a].tagName;var f;if(aa[d])f=aa[d];else{var h=c("<"+d+" />").appendTo("body");f=h.css("display");if(f==="none")f="block";h.remove();aa[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a<b;a++)this[a].style.display=c.data(this[a],
"olddisplay")||"";return this}},hide:function(a,b){if(a)return this.animate(r("hide",3),a,b);else{a=0;for(b=this.length;a<b;a++){var d=c.data(this[a],"olddisplay");!d&&d!=="none"&&c.data(this[a],"olddisplay",c.css(this[a],"display"))}a=0;for(b=this.length;a<b;a++)this[a].style.display="none";return this}},_toggle:c.fn.toggle,toggle:function(a,b){var d=typeof a==="boolean";return c.isFunction(a)&&c.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var f=d?a:c(this).is(":hidden");
c(this)[f?"show":"hide"]()}):this.animate(r("toggle",3),a,b)},fadeTo:function(a,b,d){return this.animate({opacity:b},a,d)},animate:function(a,b,d,f){var h=c.speed(b,d,f);return this[h.queue===false?"each":"queue"](function(){var k=c.extend({},h),n,p=this.nodeType==1&&c(this).is(":hidden"),w=this;for(n in a){if(a[n]=="hide"&&p||a[n]=="show"&&!p)return k.complete.call(this);if((n=="height"||n=="width")&&this.style){k.display=c.css(this,"display");k.overflow=this.style.overflow}}if(k.overflow!=null)this.style.overflow=
"hidden";k.curAnim=c.extend({},a);c.each(a,function(A,C){var G=new c.fx(w,k,A);if(/toggle|show|hide/.test(C))G[C=="toggle"?p?"show":"hide":C](a);else{var I=C.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),x=G.cur(true)||0;if(I){C=parseFloat(I[2]);var O=I[3]||"px";if(O!="px"){w.style[A]=(C||1)+O;x=(C||1)/G.cur(true)*x;w.style[A]=x+O}if(I[1])C=(I[1]=="-="?-1:1)*C+x;G.custom(x,C,O)}else G.custom(x,C,"")}});return true})},stop:function(a,b){var d=c.timers;a&&this.queue([]);this.each(function(){for(var f=
d.length-1;f>=0;f--)if(d[f].elem==this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:r("show",1),slideUp:r("hide",1),slideToggle:r("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration==="number"?f.duration:
c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]||c.fx.step._default)(this);
if((this.prop=="height"||this.prop=="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(k){return h.step(k)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var h=
this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!$)$=setInterval(function(){for(var k=c.timers,n=0;n<k.length;n++)k[n]()||k.splice(n--,1);if(!k.length){clearInterval($);$=t}},13)},show:function(){this.options.orig[this.prop]=c.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=
J();if(a||b>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();a=this.options.curAnim[this.prop]=true;for(var d in this.options.curAnim)if(this.options.curAnim[d]!==true)a=false;if(a){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(c.css(this.elem,"display")=="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var f in this.options.curAnim)c.attr(this.elem.style,
f,this.options.orig[f]);this.options.complete.call(this.elem)}return false}else{d=b-this.startTime;this.state=d/this.options.duration;this.pos=c.easing[this.options.easing||(c.easing.swing?"swing":"linear")](this.state,d,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){c.attr(a.elem.style,"opacity",a.now)},_default:function(a){if(a.elem.style&&a.elem.style[a.prop]!=
null)a.elem.style[a.prop]=a.now+a.unit;else a.elem[a.prop]=a.now}}});c.fn.offset=document.documentElement.getBoundingClientRect?function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return c.offset.bodyOffset(this[0]);var a=this[0].getBoundingClientRect(),b=this[0].ownerDocument,d=b.body;b=b.documentElement;var f=b.clientTop||d.clientTop||0,h=b.clientLeft||d.clientLeft||0;f=a.top+(self.pageYOffset||c.boxModel&&b.scrollTop||d.scrollTop)-f;a=a.left+(self.pageXOffset||c.boxModel&&
b.scrollLeft||d.scrollLeft)-h;return{top:f,left:a}}:function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return c.offset.bodyOffset(this[0]);c.offset.initialized||c.offset.initialize();var a=this[0],b=a.offsetParent,d=a.ownerDocument,f,h=d.documentElement,k=d.body;d=d.defaultView;f=d.getComputedStyle(a,null);for(var n=a.offsetTop,p=a.offsetLeft;(a=a.parentNode)&&a!==k&&a!==h;){f=d.getComputedStyle(a,null);n-=a.scrollTop;p-=a.scrollLeft;if(a===b){n+=a.offsetTop;p+=a.offsetLeft;
if(c.offset.doesNotAddBorder&&!(c.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(a.tagName))){n+=parseInt(f.borderTopWidth,10)||0;p+=parseInt(f.borderLeftWidth,10)||0}b=a.offsetParent}if(c.offset.subtractsBorderForOverflowNotVisible&&f.overflow!=="visible"){n+=parseInt(f.borderTopWidth,10)||0;p+=parseInt(f.borderLeftWidth,10)||0}f=f}if(f.position==="relative"||f.position==="static"){n+=k.offsetTop;p+=k.offsetLeft}if(f.position==="fixed"){n+=Math.max(h.scrollTop,k.scrollTop);p+=Math.max(h.scrollLeft,
k.scrollLeft)}return{top:n,left:p}};c.offset={initialize:function(){if(!this.initialized){var a=document.body,b=document.createElement("div"),d,f,h,k=a.style.marginTop;h='<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={position:"absolute",top:0,left:0,margin:0,
border:0,width:"1px",height:"1px",visibility:"hidden"};for(f in d)b.style[f]=d[f];b.innerHTML=h;a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;h=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=h.offsetTop===5;d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;a.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=a.offsetTop===0;a.style.marginTop=k;a.removeChild(b);
this.initialized=true}},bodyOffset:function(a){c.offset.initialized||c.offset.initialize();var b=a.offsetTop,d=a.offsetLeft;if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseInt(c.curCSS(a,"marginTop",true),10)||0;d+=parseInt(c.curCSS(a,"marginLeft",true),10)||0}return{top:b,left:d}}};c.fn.extend({position:function(){var a;if(this[0]){a=this.offsetParent();var b=this.offset(),d=/^body|html$/i.test(a[0].tagName)?{top:0,left:0}:a.offset();b.top-=P(this,"marginTop");b.left-=P(this,"marginLeft");
d.top+=P(a,"borderTopWidth");d.left+=P(a,"borderLeftWidth");a={top:b.top-d.top,left:b.left-d.left}}return a},offsetParent:function(){for(var a=this[0].offsetParent||document.body;a&&!/^body|html$/i.test(a.tagName)&&c.css(a,"position")=="static";)a=a.offsetParent;return c(a)}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){if(!this[0])return null;return f!==t?this.each(function(){this==o||this==document?o.scrollTo(!a?f:c(o).scrollLeft(),a?f:c(o).scrollTop()):(this[d]=f)}):
this[0]==o||this[0]==document?self[a?"pageYOffset":"pageXOffset"]||c.boxModel&&document.documentElement[d]||document.body[d]:this[0][d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(h){return this[0]?c.css(this[0],d,false,h?"margin":"border"):null};var f=b.toLowerCase();c.fn[f]=function(h){return this[0]==o?document.compatMode=="CSS1Compat"&&document.documentElement["client"+
b]||document.body["client"+b]:this[0]==document?Math.max(document.documentElement["client"+b],document.body["scroll"+b],document.documentElement["scroll"+b],document.body["offset"+b],document.documentElement["offset"+b]):h===t?this.length?c.css(this[0],f):null:this.css(f,typeof h==="string"?h:h+"px")}})})();
(function(B){var J={},P=0;B.galleriffic={version:"2.0",normalizeHash:function(z){return z.replace(/\?.*$/,"").replace(/^#/,"")},getImage:function(z){if(z){z=B.galleriffic.normalizeHash(z);return J[z]}},gotoImage:function(z){z=B.galleriffic.getImage(z);if(!z)return false;var D=z.gallery;D.gotoImage(z);return true},removeImageByHash:function(z,D){z=B.galleriffic.getImage(z);if(!z)return false;var M=z.gallery;if(D&&D!=M)return false;return M.removeImageByIndex(z.index)}};var V={delay:3E3,numThumbs:20,
preloadAhead:40,enableTopPager:false,enableBottomPager:true,maxPagesToShow:7,imageContainerSel:"",captionContainerSel:"",controlsContainerSel:"",loadingContainerSel:"",renderSSControls:true,renderNavControls:true,playLinkText:"Play",pauseLinkText:"Pause",prevLinkText:"Previous",nextLinkText:"Next",nextPageLinkText:"Next &rsaquo;",prevPageLinkText:"&lsaquo; Prev",enableHistory:false,enableKeyboardNavigation:true,autoStart:false,syncTransitions:false,defaultTransitionDuration:1E3,onSlideChange:undefined,
onTransitionOut:undefined,onTransitionIn:undefined,onPageTransitionOut:undefined,onPageTransitionIn:undefined,onImageAdded:undefined,onImageRemoved:undefined};B.fn.galleriffic=function(z){B.extend(this,{version:B.galleriffic.version,isSlideshowRunning:false,slideshowTimeout:undefined,clickHandler:function(l,r){this.pause();if(!this.enableHistory){r=B.galleriffic.normalizeHash(B(r).attr("href"));B.galleriffic.gotoImage(r);l.preventDefault()}},appendImage:function(l){this.addImage(l,false,false);return this},
insertImage:function(l,r){this.addImage(l,false,true,r);return this},addImage:function(l,r,o,t){var y=typeof l==="string"?B(l):l;l=y.find("a.thumb");var E=l.attr("href"),c=l.attr("title"),T=y.find(".caption").remove(),K=l.attr("name");P++;if(!K||J[""+K])K=P;if(!o)t=this.data.length;var U={title:c,slideUrl:E,caption:T,hash:K,gallery:this,index:t};if(o){this.data.splice(t,0,U);this.updateIndices(t)}else this.data.push(U);var Q=this;r||this.updateThumbs(function(){var R=Q.find("ul.thumbs");o?R.children(":eq("+
t+")").before(y):R.append(y);Q.onImageAdded&&Q.onImageAdded(U,y)});J[""+K]=U;l.attr("rel","history").attr("href","#"+K).removeAttr("name").click(function(R){Q.clickHandler(R,this)});return this},removeImageByIndex:function(l){if(l<0||l>=this.data.length)return false;l=this.data[l];if(!l)return false;this.removeImage(l);return true},removeImageByHash:function(l){return B.galleriffic.removeImageByHash(l,this)},removeImage:function(l){var r=l.index;this.data.splice(r,1);delete J[""+l.hash];this.updateThumbs(function(){var o=
D.find("ul.thumbs").children(":eq("+r+")").remove();D.onImageRemoved&&D.onImageRemoved(l,o)});this.updateIndices(r);return this},updateIndices:function(l){for(i=l;i<this.data.length;i++)this.data[i].index=i;return this},initializeThumbs:function(){this.data=[];var l=this;this.find("ul.thumbs > li").each(function(){l.addImage(B(this),true,false)});return this},isPreloadComplete:false,preloadInit:function(){if(this.preloadAhead==0)return this;this.preloadStartIndex=this.currentImage.index;var l=this.getNextIndex(this.preloadStartIndex);
return this.preloadRecursive(this.preloadStartIndex,l)},preloadRelocate:function(l){this.preloadStartIndex=l;return this},preloadRecursive:function(l,r){if(l!=this.preloadStartIndex){var o=this.getNextIndex(this.preloadStartIndex);return this.preloadRecursive(this.preloadStartIndex,o)}var t=this;o=r-l;if(o<0)o=this.data.length-1-l+r;if(this.preloadAhead>=0&&o>this.preloadAhead){setTimeout(function(){t.preloadRecursive(l,r)},500);return this}var y=this.data[r];if(!y)return this;if(y.image)return this.preloadNext(l,
r);o=new Image;o.onload=function(){y.image=this;t.preloadNext(l,r)};o.alt=y.title;o.src=y.slideUrl;return this},preloadNext:function(l,r){var o=this.getNextIndex(r);if(o==l)this.isPreloadComplete=true;else{var t=this;setTimeout(function(){t.preloadRecursive(l,o)},100)}return this},getNextIndex:function(l){l=l+1;if(l>=this.data.length)l=0;return l},getPrevIndex:function(l){l=l-1;if(l<0)l=this.data.length-1;return l},pause:function(){this.isSlideshowRunning=false;if(this.slideshowTimeout){clearTimeout(this.slideshowTimeout);
this.slideshowTimeout=undefined}this.$controlsContainer&&this.$controlsContainer.find("div.ss-controls a").removeClass().addClass("play").attr("title",this.playLinkText).attr("href","#play").html(this.playLinkText);return this},play:function(){this.isSlideshowRunning=true;this.$controlsContainer&&this.$controlsContainer.find("div.ss-controls a").removeClass().addClass("pause").attr("title",this.pauseLinkText).attr("href","#pause").html(this.pauseLinkText);if(!this.slideshowTimeout){var l=this;this.slideshowTimeout=
setTimeout(function(){l.ssAdvance()},this.delay)}return this},toggleSlideshow:function(){this.isSlideshowRunning?this.pause():this.play();return this},ssAdvance:function(){this.isSlideshowRunning&&this.next(true);return this},next:function(l,r){this.gotoIndex(this.getNextIndex(this.currentImage.index),l,r);return this},previous:function(l,r){this.gotoIndex(this.getPrevIndex(this.currentImage.index),l,r);return this},nextPage:function(l,r){var o=this.getCurrentPage(),t=this.getNumPages()-1;if(o<t){o=
o*this.numThumbs;o=o+this.numThumbs;this.gotoIndex(o,l,r)}return this},previousPage:function(l,r){var o=this.getCurrentPage();if(o>0){o=o*this.numThumbs;o=o-this.numThumbs;this.gotoIndex(o,l,r)}return this},gotoIndex:function(l,r,o){r||this.pause();if(l<0)l=0;else if(l>=this.data.length)l=this.data.length-1;l=this.data[l];!o&&this.enableHistory?B.historyLoad(String(l.hash)):this.gotoImage(l);return this},gotoImage:function(l){var r=l.index;this.onSlideChange&&this.onSlideChange(this.currentImage.index,
r);this.currentImage=l;this.preloadRelocate(r);this.refresh();return this},getDefaultTransitionDuration:function(l){if(l)return this.defaultTransitionDuration;return this.defaultTransitionDuration/2},refresh:function(){var l=this.currentImage;if(!l)return this;var r=l.index;this.$controlsContainer&&this.$controlsContainer.find("div.nav-controls a.prev").attr("href","#"+this.data[this.getPrevIndex(r)].hash).end().find("div.nav-controls a.next").attr("href","#"+this.data[this.getNextIndex(r)].hash);
var o=this.$imageContainer.find("span.current").addClass("previous").removeClass("current"),t=0;if(this.$captionContainer)t=this.$captionContainer.find("span.current").addClass("previous").removeClass("current");var y=this.syncTransitions&&l.image,E=true,c=this;r=function(){E=false;o.remove();t&&t.remove();if(!y)if(l.image&&l.hash==c.data[c.currentImage.index].hash)c.buildImage(l,y);else c.$loadingContainer&&c.$loadingContainer.show()};if(o.length==0)r();else if(this.onTransitionOut)this.onTransitionOut(o,
t,y,r);else{o.fadeTo(this.getDefaultTransitionDuration(y),0,r);t&&t.fadeTo(this.getDefaultTransitionDuration(y),0)}y&&this.buildImage(l,y);if(!l.image){r=new Image;r.onload=function(){l.image=this;!E&&l.hash==c.data[c.currentImage.index].hash&&c.buildImage(l,y)};r.alt=l.title;r.src=l.slideUrl}this.relocatePreload=true;return this.syncThumbs()},buildImage:function(l,r){var o=this,t=this.getNextIndex(l.index);t=this.$imageContainer.append('<span class="image-wrapper current"><a class="advance-link" rel="history" href="#'+
this.data[t].hash+'" title="'+l.title+'">&nbsp;</a></span>').find("span.current").css("opacity","0");t.find("a").append(l.image).click(function(E){o.clickHandler(E,this)});var y=0;if(this.$captionContainer)y=this.$captionContainer.append('<span class="image-caption current"></span>').find("span.current").css("opacity","0").append(l.caption);this.$loadingContainer&&this.$loadingContainer.hide();if(this.onTransitionIn)this.onTransitionIn(t,y,r);else{t.fadeTo(this.getDefaultTransitionDuration(r),1);
y&&y.fadeTo(this.getDefaultTransitionDuration(r),1)}if(this.isSlideshowRunning){this.slideshowTimeout&&clearTimeout(this.slideshowTimeout);this.slideshowTimeout=setTimeout(function(){o.ssAdvance()},this.delay)}return this},getCurrentPage:function(){return Math.floor(this.currentImage.index/this.numThumbs)},syncThumbs:function(){var l=this.getCurrentPage();l!=this.displayedPage&&this.updateThumbs();l=this.find("ul.thumbs").children();l.filter(".selected").removeClass("selected");l.eq(this.currentImage.index).addClass("selected");
return this},updateThumbs:function(l){var r=this,o=function(){l&&l();r.rebuildThumbs();r.onPageTransitionIn?r.onPageTransitionIn():r.show()};if(this.onPageTransitionOut)this.onPageTransitionOut(o);else{this.hide();o()}return this},rebuildThumbs:function(){var l=this.data.length>this.numThumbs;if(this.enableTopPager){var r=this.find("div.top");if(r.length==0)r=this.prepend('<div class="top pagination"></div>').find("div.top");else r.empty();l&&this.buildPager(r)}if(this.enableBottomPager){r=this.find("div.bottom");
if(r.length==0)r=this.append('<div class="bottom pagination"></div>').find("div.bottom");else r.empty();l&&this.buildPager(r)}l=this.getCurrentPage();var o=l*this.numThumbs,t=o+this.numThumbs-1;if(t>=this.data.length)t=this.data.length-1;r=this.find("ul.thumbs");r.find("li").each(function(y){var E=B(this);y>=o&&y<=t?E.show():E.hide()});this.displayedPage=l;r.removeClass("noscript");return this},getNumPages:function(){return Math.ceil(this.data.length/this.numThumbs)},buildPager:function(l){var r=
this,o=this.getNumPages(),t=this.getCurrentPage(),y=t*this.numThumbs,E=this.maxPagesToShow-1,c=t-Math.floor((this.maxPagesToShow-1)/2)+1;if(c>0){var T=o-c;if(T<E)c-=E-T}if(c<0)c=0;if(t>0){t=y-this.numThumbs;l.append('<a rel="history" href="#'+this.data[t].hash+'" title="'+this.prevPageLinkText+'">'+this.prevPageLinkText+"</a>")}if(c>0){this.buildPageLink(l,0,o);c>1&&l.append('<span class="ellipsis">&hellip;</span>');E--}for(;E>0;){this.buildPageLink(l,c,o);E--;c++}if(c<o){E=o-1;c<E&&l.append('<span class="ellipsis">&hellip;</span>');
this.buildPageLink(l,E,o)}o=y+this.numThumbs;o<this.data.length&&l.append('<a rel="history" href="#'+this.data[o].hash+'" title="'+this.nextPageLinkText+'">'+this.nextPageLinkText+"</a>");l.find("a").click(function(K){r.clickHandler(K,this)});return this},buildPageLink:function(l,r,o){var t=r+1,y=this.getCurrentPage();if(r==y)l.append('<span class="current">'+t+"</span>");else if(r<o){r=r*this.numThumbs;l.append('<a rel="history" href="#'+this.data[r].hash+'" title="'+t+'">'+t+"</a>")}return this}});
B.extend(this,V,z);if(this.enableHistory&&!B.historyInit)this.enableHistory=false;if(this.imageContainerSel)this.$imageContainer=B(this.imageContainerSel);if(this.captionContainerSel)this.$captionContainer=B(this.captionContainerSel);if(this.loadingContainerSel)this.$loadingContainer=B(this.loadingContainerSel);this.initializeThumbs();if(this.maxPagesToShow<3)this.maxPagesToShow=3;this.displayedPage=-1;this.currentImage=this.data[0];var D=this;this.$loadingContainer&&this.$loadingContainer.hide();
if(this.controlsContainerSel){this.$controlsContainer=B(this.controlsContainerSel).empty();if(this.renderSSControls){this.autoStart?this.$controlsContainer.append('<div class="ss-controls"><a href="#pause" class="pause" title="'+this.pauseLinkText+'">'+this.pauseLinkText+"</a></div>"):this.$controlsContainer.append('<div class="ss-controls"><a href="#play" class="play" title="'+this.playLinkText+'">'+this.playLinkText+"</a></div>");this.$controlsContainer.find("div.ss-controls a").click(function(l){D.toggleSlideshow();
l.preventDefault();return false})}this.renderNavControls&&this.$controlsContainer.append('<div class="nav-controls"><a class="prev" rel="history" title="'+this.prevLinkText+'">'+this.prevLinkText+'</a><a class="next" rel="history" title="'+this.nextLinkText+'">'+this.nextLinkText+"</a></div>").find("div.nav-controls a").click(function(l){D.clickHandler(l,this)})}z=!this.enableHistory||!location.hash;if(this.enableHistory&&location.hash){var M=B.galleriffic.normalizeHash(location.hash);(M=J[M])||(z=
true)}z&&this.gotoIndex(0,false,true);this.enableKeyboardNavigation&&B(document).keydown(function(l){var r=l.charCode?l.charCode:l.keyCode?l.keyCode:0;switch(r){case 32:D.next();l.preventDefault();break;case 33:D.previousPage();l.preventDefault();break;case 34:D.nextPage();l.preventDefault();break;case 35:D.gotoIndex(D.data.length-1);l.preventDefault();break;case 36:D.gotoIndex(0);l.preventDefault();break;case 37:D.previous();l.preventDefault();break;case 39:D.next();l.preventDefault();break}});this.autoStart&&
this.play();setTimeout(function(){D.preloadInit()},1E3);return this}})(jQuery);
