(function(){function s(a,c){c.src?b.ajax({url:c.src,async:false,dataType:"script"}):b.globalEval(c.text||c.textContent||c.innerHTML||"");c.parentNode&&c.parentNode.removeChild(c)}function p(a,c){return a[0]&&parseInt(b.curCSS(a[0],c,true),10)||0}function q(){return false}function B(){return true}function E(a){var c=RegExp("(^|\\.)"+a.type+"(\\.|$)"),d=true,f=[];b.each(b.data(this,"events").live||[],function(h,i){if(c.test(i.type)){var n=b(a.target).closest(i.data)[0];n&&f.push({elem:n,fn:i})}});f.sort(function(h,
i){return b.data(h.elem,"closest")-b.data(i.elem,"closest")});b.each(f,function(){if(this.fn.call(this.elem,a,this.fn.data)===false)return d=false});return d}function U(a,c){return["live",a,c.replace(/\./g,"`").replace(/ /g,"|")].join(".")}function J(){if(!H){H=true;if(document.addEventListener)document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);b.ready()},false);else if(document.attachEvent){document.attachEvent("onreadystatechange",
function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);b.ready()}});document.documentElement.doScroll&&r==r.top&&function(){if(!b.isReady){try{document.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}b.ready()}}()}b.event.add(r,"load",b.ready)}}function I(a,c){var d={};b.each(ba.concat.apply([],ba.slice(0,c)),function(){d[this]=a});return d}var r=this,z=r.jQuery,u=r.$,b=r.jQuery=r.$=function(a,c){return new b.fn.init(a,
c)},K=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,L=/^.[^:#\[\.,]*$/;b.fn=b.prototype={init:function(a,c){a=a||document;if(a.nodeType){this[0]=a;this.length=1;this.context=a;return this}if(typeof a==="string"){var d=K.exec(a);if(d&&(d[1]||!c))if(d[1])a=b.clean([d[1]],c);else{var f=document.getElementById(d[3]);if(f&&f.id!=d[3])return b().find(a);d=b(f||[]);d.context=document;d.selector=a;return d}else return b(c).find(a)}else if(b.isFunction(a))return b(document).ready(a);if(a.selector&&a.context){this.selector=
a.selector;this.context=a.context}return this.setArray(b.isArray(a)?a:b.makeArray(a))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(a){return a===void 0?Array.prototype.slice.call(this):this[a]},pushStack:function(a,c,d){a=b(a);a.prevObject=this;a.context=this.context;if(c==="find")a.selector=this.selector+(this.selector?" ":"")+d;else if(c)a.selector=this.selector+"."+c+"("+d+")";return a},setArray:function(a){this.length=0;Array.prototype.push.apply(this,a);return this},
each:function(a,c){return b.each(this,a,c)},index:function(a){return b.inArray(a&&a.jquery?a[0]:a,this)},attr:function(a,c,d){var f=a;if(typeof a==="string")if(c===void 0)return this[0]&&b[d||"attr"](this[0],a);else{f={};f[a]=c}return this.each(function(h){for(a in f)b.attr(d?this.style:this,a,b.prop(this,f[a],d,h,a))})},css:function(a,c){if((a=="width"||a=="height")&&parseFloat(c)<0)c=void 0;return this.attr(a,c,"curCSS")},text:function(a){if(typeof a!=="object"&&a!=null)return this.empty().append((this[0]&&
this[0].ownerDocument||document).createTextNode(a));var c="";b.each(a||this,function(){b.each(this.childNodes,function(){if(this.nodeType!=8)c+=this.nodeType!=1?this.nodeValue:b.fn.text([this])})});return c},wrapAll:function(a){if(this[0]){a=b(a,this[0].ownerDocument).clone();this[0].parentNode&&a.insertBefore(this[0]);a.map(function(){for(var c=this;c.firstChild;)c=c.firstChild;return c}).append(this)}return this},wrapInner:function(a){return this.each(function(){b(this).contents().wrapAll(a)})},
wrap:function(a){return this.each(function(){b(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||b([])},push:[].push,sort:[].sort,splice:[].splice,find:function(a){if(this.length===1){var c=this.pushStack([],"find",a);c.length=0;b.find(a,this[0],c);return c}else return this.pushStack(b.unique(b.map(this,function(d){return b.find(a,d)})),"find",a)},clone:function(a){var c=this.map(function(){if(!b.support.noCloneEvent&&!b.isXMLDoc(this)){var h=this.outerHTML;if(!h){h=this.ownerDocument.createElement("div");h.appendChild(this.cloneNode(true));
h=h.innerHTML}return b.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;c.find("*").andSelf().each(function(){if(this.nodeName===d[f].nodeName){var h=b.data(d[f],"events");for(var i in h)for(var n in h[i])b.event.add(this,i,h[i][n],h[i][n].data);f++}})}return c},filter:function(a){return this.pushStack(b.isFunction(a)&&b.grep(this,function(c,d){return a.call(c,d)})||b.multiFilter(a,b.grep(this,
function(c){return c.nodeType===1})),"filter",a)},closest:function(a){var c=b.expr.match.POS.test(a)?b(a):null,d=0;return this.map(function(){for(var f=this;f&&f.ownerDocument;){if(c?c.index(f)>-1:b(f).is(a)){b.data(f,"closest",d);return f}f=f.parentNode;d++}})},not:function(a){if(typeof a==="string")if(L.test(a))return this.pushStack(b.multiFilter(a,this,true),"not",a);else a=b.multiFilter(a,this);var c=a.length&&a[a.length-1]!==void 0&&!a.nodeType;return this.filter(function(){return c?b.inArray(this,
a)<0:this!=a})},add:function(a){return this.pushStack(b.unique(b.merge(this.get(),typeof a==="string"?b(a):b.makeArray(a))))},is:function(a){return!!a&&b.multiFilter(a,this).length>0},hasClass:function(a){return!!a&&this.is("."+a)},val:function(a){if(a===void 0){var c=this[0];if(c){if(b.nodeName(c,"option"))return(c.attributes.value||{}).specified?c.value:c.text;if(b.nodeName(c,"select")){var d=c.selectedIndex,f=[],h=c.options;c=c.type=="select-one";if(d<0)return null;var i=c?d:0;for(d=c?d+1:h.length;i<
d;i++){var n=h[i];if(n.selected){a=b(n).val();if(c)return a;f.push(a)}}return f}return(c.value||"").replace(/\r/g,"")}}else{if(typeof a==="number")a+="";return this.each(function(){if(this.nodeType==1)if(b.isArray(a)&&/radio|checkbox/.test(this.type))this.checked=b.inArray(this.value,a)>=0||b.inArray(this.name,a)>=0;else if(b.nodeName(this,"select")){var o=b.makeArray(a);b("option",this).each(function(){this.selected=b.inArray(this.value,o)>=0||b.inArray(this.text,o)>=0});if(!o.length)this.selectedIndex=
-1}else this.value=a})}},html:function(a){return a===void 0?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(b.map(this,function(c,d){return a.call(c,d,c)}))},andSelf:function(){return this.add(this.prevObject)},
domManip:function(a,c,d){if(this[0]){var f=(this[0].ownerDocument||this[0]).createDocumentFragment();a=b.clean(a,this[0].ownerDocument||this[0],f);var h=f.firstChild;if(h)for(var i=0,n=this.length;i<n;i++)d.call(c&&b.nodeName(this[i],"table")&&b.nodeName(h,"tr")?this[i].getElementsByTagName("tbody")[0]||this[i].appendChild(this[i].ownerDocument.createElement("tbody")):this[i],this.length>1||i>0?f.cloneNode(true):f);a&&b.each(a,s)}return this}};b.fn.init.prototype=b.fn;b.extend=b.fn.extend=function(){var a=
arguments[0]||{},c=1,d=arguments.length,f=false,h;if(typeof a==="boolean"){f=a;a=arguments[1]||{};c=2}if(typeof a!=="object"&&!b.isFunction(a))a={};if(d==c){a=this;--c}for(;c<d;c++)if((h=arguments[c])!=null)for(var i in h){var n=a[i],o=h[i];if(a!==o)if(f&&o&&typeof o==="object"&&!o.nodeType)a[i]=b.extend(f,n||(o.length!=null?[]:{}),o);else if(o!==void 0)a[i]=o}return a};var O=/z-?index|font-?weight|opacity|zoom|line-?height/i,G=document.defaultView||{},y=Object.prototype.toString;b.extend({noConflict:function(a){r.$=
u;if(a)r.jQuery=z;return b},isFunction:function(a){return y.call(a)==="[object Function]"},isArray:function(a){return y.call(a)==="[object Array]"},isXMLDoc:function(a){return a.nodeType===9&&a.documentElement.nodeName!=="HTML"||!!a.ownerDocument&&b.isXMLDoc(a.ownerDocument)},globalEval:function(a){if(a&&/\S/.test(a)){var c=document.getElementsByTagName("head")[0]||document.documentElement,d=document.createElement("script");d.type="text/javascript";if(b.support.scriptEval)d.appendChild(document.createTextNode(a));
else d.text=a;c.insertBefore(d,c.firstChild);c.removeChild(d)}},nodeName:function(a,c){return a.nodeName&&a.nodeName.toUpperCase()==c.toUpperCase()},each:function(a,c,d){var f,h=0,i=a.length;if(d)if(i===void 0)for(f in a){if(c.apply(a[f],d)===false)break}else for(;h<i;){if(c.apply(a[h++],d)===false)break}else if(i===void 0)for(f in a){if(c.call(a[f],f,a[f])===false)break}else for(d=a[0];h<i&&c.call(d,h,d)!==false;d=a[++h]);return a},prop:function(a,c,d,f,h){if(b.isFunction(c))c=c.call(a,f);return typeof c===
"number"&&d=="curCSS"&&!O.test(h)?c+"px":c},className:{add:function(a,c){b.each((c||"").split(/\s+/),function(d,f){if(a.nodeType==1&&!b.className.has(a.className,f))a.className+=(a.className?" ":"")+f})},remove:function(a,c){if(a.nodeType==1)a.className=c!==void 0?b.grep(a.className.split(/\s+/),function(d){return!b.className.has(c,d)}).join(" "):""},has:function(a,c){return a&&b.inArray(c,(a.className||a).toString().split(/\s+/))>-1}},swap:function(a,c,d){var f={};for(var h in c){f[h]=a.style[h];
a.style[h]=c[h]}d.call(a);for(h in c)a.style[h]=f[h]},css:function(a,c,d,f){if(c=="width"||c=="height"){var h;d={position:"absolute",visibility:"hidden",display:"block"};var i=c=="width"?["Left","Right"]:["Top","Bottom"],n=function(){h=c=="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&b.each(i,function(){f||(h-=parseFloat(b.curCSS(a,"padding"+this,true))||0);if(f==="margin")h+=parseFloat(b.curCSS(a,"margin"+this,true))||0;else h-=parseFloat(b.curCSS(a,"border"+this+"Width",true))||0})};a.offsetWidth!==
0?n():b.swap(a,d,n);return Math.max(0,Math.round(h))}return b.curCSS(a,c,d)},curCSS:function(a,c,d){var f,h=a.style;if(c=="opacity"&&!b.support.opacity){f=b.attr(h,"opacity");return f==""?"1":f}if(c.match(/float/i))c=P;if(!d&&h&&h[c])f=h[c];else if(G.getComputedStyle){if(c.match(/float/i))c="float";c=c.replace(/([A-Z])/g,"-$1").toLowerCase();if(a=G.getComputedStyle(a,null))f=a.getPropertyValue(c);if(c=="opacity"&&f=="")f="1"}else if(a.currentStyle){f=c.replace(/\-(\w)/g,function(i,n){return n.toUpperCase()});
f=a.currentStyle[c]||a.currentStyle[f];if(!/^\d+(px)?$/i.test(f)&&/^\d/.test(f)){c=h.left;d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;h.left=f||0;f=h.pixelLeft+"px";h.left=c;a.runtimeStyle.left=d}}return f},clean:function(a,c,d){c=c||document;if(typeof c.createElement==="undefined")c=c.ownerDocument||c[0]&&c[0].ownerDocument||document;if(!d&&a.length===1&&typeof a[0]==="string"){var f=/^<(\w+)\s*\/?>$/.exec(a[0]);if(f)return[c.createElement(f[1])]}var h=[];f=[];var i=c.createElement("div");
b.each(a,function(n,o){if(typeof o==="number")o+="";if(o){if(typeof o==="string"){o=o.replace(/(<(\w+)[^>]*?)\/>/g,function(S,W,x){return x.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?S:W+"></"+x+">"});var A=o.replace(/^\s+/,"").substring(0,10).toLowerCase(),C=!A.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!A.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||A.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!A.indexOf("<tr")&&[2,"<table><tbody>",
"</tbody></table>"]||(!A.indexOf("<td")||!A.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!A.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!b.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];for(i.innerHTML=C[1]+o+C[2];C[0]--;)i=i.lastChild;if(!b.support.tbody){var M=/<tbody/i.test(o);A=!A.indexOf("<table")&&!M?i.firstChild&&i.firstChild.childNodes:C[1]=="<table>"&&!M?i.childNodes:[];for(C=A.length-1;C>=0;--C)b.nodeName(A[C],"tbody")&&
!A[C].childNodes.length&&A[C].parentNode.removeChild(A[C])}!b.support.leadingWhitespace&&/^\s/.test(o)&&i.insertBefore(c.createTextNode(o.match(/^\s*/)[0]),i.firstChild);o=b.makeArray(i.childNodes)}if(o.nodeType)h.push(o);else h=b.merge(h,o)}});if(d){for(a=0;h[a];a++)if(b.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(b.makeArray(h[a].getElementsByTagName("script"))));
d.appendChild(h[a])}return f}return h},attr:function(a,c,d){if(!(!a||a.nodeType==3||a.nodeType==8)){var f=!b.isXMLDoc(a),h=d!==void 0;c=f&&b.props[c]||c;if(a.tagName){var i=/href|src|style/.test(c);if(c in a&&f&&!i){if(h){if(c=="type"&&b.nodeName(a,"input")&&a.parentNode)throw"type property can't be changed";a[c]=d}if(b.nodeName(a,"form")&&a.getAttributeNode(c))return a.getAttributeNode(c).nodeValue;if(c=="tabIndex")return(c=a.getAttributeNode("tabIndex"))&&c.specified?c.value:a.nodeName.match(/(button|input|object|select|textarea)/i)?
0:a.nodeName.match(/^(a|area)$/i)&&a.href?0:void 0;return a[c]}if(!b.support.style&&f&&c=="style")return b.attr(a.style,"cssText",d);h&&a.setAttribute(c,""+d);a=!b.support.hrefNormalized&&f&&i?a.getAttribute(c,2):a.getAttribute(c);return a===null?void 0:a}if(!b.support.opacity&&c=="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+"":""}c=c.replace(/-([a-z])/ig,function(n,o){return o.toUpperCase()});if(h)a[c]=d;return a[c]}},trim:function(a){return(a||"").replace(/^\s+|\s+$/g,"")},makeArray:function(a){var c=[];if(a!=null){var d=a.length;if(d==null||typeof a==="string"||b.isFunction(a)||a.setInterval)c[0]=a;else for(;d;)c[--d]=a[d]}return c},inArray:function(a,c){for(var d=0,f=c.length;d<f;d++)if(c[d]===a)return d;return-1},merge:function(a,c){var d=0,f,h=a.length;if(b.support.getAll)for(;(f=c[d++])!=null;)a[h++]=f;else for(;(f=
c[d++])!=null;)if(f.nodeType!=8)a[h++]=f;return a},unique:function(a){var c=[],d={};try{for(var f=0,h=a.length;f<h;f++){var i=b.data(a[f]);if(!d[i]){d[i]=true;c.push(a[f])}}}catch(n){c=a}return c},grep:function(a,c,d){for(var f=[],h=0,i=a.length;h<i;h++)!d!=!c(a[h],h)&&f.push(a[h]);return f},map:function(a,c){for(var d=[],f=0,h=a.length;f<h;f++){var i=c(a[f],f);if(i!=null)d[d.length]=i}return d.concat.apply([],d)}});var N=navigator.userAgent.toLowerCase();b.browser={version:(N.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||
[0,"0"])[1],safari:/webkit/.test(N),opera:/opera/.test(N),msie:/msie/.test(N)&&!/opera/.test(N),mozilla:/mozilla/.test(N)&&!/(compatible|webkit)/.test(N)};b.each({parent:function(a){return a.parentNode},parents:function(a){return b.dir(a,"parentNode")},next:function(a){return b.nth(a,2,"nextSibling")},prev:function(a){return b.nth(a,2,"previousSibling")},nextAll:function(a){return b.dir(a,"nextSibling")},prevAll:function(a){return b.dir(a,"previousSibling")},siblings:function(a){return b.sibling(a.parentNode.firstChild,
a)},children:function(a){return b.sibling(a.firstChild)},contents:function(a){return b.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:b.makeArray(a.childNodes)}},function(a,c){b.fn[a]=function(d){var f=b.map(this,c);if(d&&typeof d=="string")f=b.multiFilter(d,f);return this.pushStack(b.unique(f),a,d)}});b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,c){b.fn[a]=function(d){for(var f=[],h=b(d),i=0,n=h.length;i<
n;i++){var o=(i>0?this.clone(true):this).get();b.fn[c].apply(b(h[i]),o);f=f.concat(o)}return this.pushStack(f,a,d)}});b.each({removeAttr:function(a){b.attr(this,a,"");this.nodeType==1&&this.removeAttribute(a)},addClass:function(a){b.className.add(this,a)},removeClass:function(a){b.className.remove(this,a)},toggleClass:function(a,c){if(typeof c!=="boolean")c=!b.className.has(this,a);b.className[c?"add":"remove"](this,a)},remove:function(a){if(!a||b.filter(a,[this]).length){b("*",this).add([this]).each(function(){b.event.remove(this);
b.removeData(this)});this.parentNode&&this.parentNode.removeChild(this)}},empty:function(){for(b(this).children().remove();this.firstChild;)this.removeChild(this.firstChild)}},function(a,c){b.fn[a]=function(){return this.each(c,arguments)}});var F="jQuery"+ +new Date,V=0,v={};b.extend({cache:{},data:function(a,c,d){a=a==r?v:a;var f=a[F];f||(f=a[F]=++V);if(c&&!b.cache[f])b.cache[f]={};if(d!==void 0)b.cache[f][c]=d;return c?b.cache[f][c]:f},removeData:function(a,c){a=a==r?v:a;var d=a[F];if(c){if(b.cache[d]){delete b.cache[d][c];
c="";for(c in b.cache[d])break;c||b.removeData(a)}}else{try{delete a[F]}catch(f){a.removeAttribute&&a.removeAttribute(F)}delete b.cache[d]}},queue:function(a,c,d){if(a){c=(c||"fx")+"queue";var f=b.data(a,c);if(!f||b.isArray(d))f=b.data(a,c,b.makeArray(d));else d&&f.push(d)}return f},dequeue:function(a,c){var d=b.queue(a,c),f=d.shift();if(!c||c==="fx")f=d[0];f!==void 0&&f.call(a)}});b.fn.extend({data:function(a,c){var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(c===void 0){var f=this.triggerHandler("getData"+
d[1]+"!",[d[0]]);if(f===void 0&&this.length)f=b.data(this[0],a);return f===void 0&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],c]).each(function(){b.data(this,a,c)})},removeData:function(a){return this.each(function(){b.removeData(this,a)})},queue:function(a,c){if(typeof a!=="string"){c=a;a="fx"}if(c===void 0)return b.queue(this[0],a);return this.each(function(){var d=b.queue(this,a,c);a=="fx"&&d.length==1&&d[0].call(this)})},dequeue:function(a){return this.each(function(){b.dequeue(this,
a)})}});(function(){function a(e,g,j,k,l,m){l=0;for(var w=k.length;l<w;l++){var t=k[l];if(t){if(e=="previousSibling"&&!m&&t.nodeType===1){t.sizcache=j;t.sizset=l}t=t[e];for(var Q=false;t;){if(t.sizcache===j){Q=k[t.sizset];break}if(t.nodeType===1&&!m){t.sizcache=j;t.sizset=l}if(t.nodeName===g){Q=t;break}t=t[e]}k[l]=Q}}}function c(e,g,j,k,l,m){l=0;for(var w=k.length;l<w;l++){var t=k[l];if(t){if(e=="previousSibling"&&!m&&t.nodeType===1){t.sizcache=j;t.sizset=l}t=t[e];for(var Q=false;t;){if(t.sizcache===
j){Q=k[t.sizset];break}if(t.nodeType===1){if(!m){t.sizcache=j;t.sizset=l}if(typeof g!=="string"){if(t===g){Q=true;break}}else if(i.filter(g,[t]).length>0){Q=t;break}}t=t[e]}k[l]=Q}}}var d=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,f=0,h=Object.prototype.toString,i=function(e,g,j,k){j=j||[];g=g||document;if(g.nodeType!==1&&g.nodeType!==9)return[];if(!e||typeof e!=="string")return j;var l=[],m,w,t,Q=true;for(d.lastIndex=0;(m=
d.exec(e))!==null;){l.push(m[1]);if(m[2]){t=RegExp.rightContext;break}}if(l.length>1&&o.exec(e))if(l.length===2&&n.relative[l[0]])m=Z(l[0]+l[1],g);else for(m=n.relative[l[0]]?[g]:i(l.shift(),g);l.length;){e=l.shift();if(n.relative[e])e+=l.shift();m=Z(e,m)}else{m=k?{expr:l.pop(),set:C(k)}:i.find(l.pop(),l.length===1&&g.parentNode?g.parentNode:g,x(g));m=i.filter(m.expr,m.set);if(l.length>0)w=C(m);else Q=false;for(;l.length;){var aa=l.pop(),X=aa;if(n.relative[aa])X=l.pop();else aa="";if(X==null)X=g;
n.relative[aa](w,X,x(g))}}w||(w=m);if(!w)throw"Syntax error, unrecognized expression: "+(aa||e);if(h.call(w)==="[object Array]")if(Q)if(g.nodeType===1)for(e=0;w[e]!=null;e++){if(w[e]&&(w[e]===true||w[e].nodeType===1&&W(g,w[e])))j.push(m[e])}else for(e=0;w[e]!=null;e++)w[e]&&w[e].nodeType===1&&j.push(m[e]);else j.push.apply(j,w);else C(w,j);if(t){i(t,g,j,k);if(S){hasDuplicate=false;j.sort(S);if(hasDuplicate)for(e=1;e<j.length;e++)j[e]===j[e-1]&&j.splice(e--,1)}}return j};i.matches=function(e,g){return i(e,
null,null,g)};i.find=function(e,g,j){var k,l;if(!e)return[];for(var m=0,w=n.order.length;m<w;m++){var t=n.order[m];if(l=n.match[t].exec(e)){var Q=RegExp.leftContext;if(Q.substr(Q.length-1)!=="\\"){l[1]=(l[1]||"").replace(/\\/g,"");k=n.find[t](l,g,j);if(k!=null){e=e.replace(n.match[t],"");break}}}}k||(k=g.getElementsByTagName("*"));return{set:k,expr:e}};i.filter=function(e,g,j,k){for(var l=e,m=[],w=g,t,Q,aa=g&&g[0]&&x(g[0]);e&&g.length;){for(var X in n.filter)if((t=n.match[X].exec(e))!=null){var ga=
n.filter[X],ca,da;Q=false;if(w==m)m=[];if(n.preFilter[X])if(t=n.preFilter[X](t,w,j,m,k,aa)){if(t===true)continue}else Q=ca=true;if(t)for(var ea=0;(da=w[ea])!=null;ea++)if(da){ca=ga(da,t,ea,w);var fa=k^!!ca;if(j&&ca!=null)if(fa)Q=true;else w[ea]=false;else if(fa){m.push(da);Q=true}}if(ca!==void 0){j||(w=m);e=e.replace(n.match[X],"");if(!Q)return[];break}}if(e==l)if(Q==null)throw"Syntax error, unrecognized expression: "+e;else break;l=e}return w};var n=i.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 k=typeof g==="string",l=k&&!/\W/.test(g);k=k&&!l;if(l&&!j)g=g.toUpperCase();j=0;l=e.length;for(var m;j<l;j++)if(m=e[j]){for(;(m=m.previousSibling)&&m.nodeType!==1;);e[j]=k||m&&m.nodeName===g?m||false:m===g}k&&i.filter(g,e,true)},">":function(e,g,j){var k=typeof g==="string";if(k&&!/\W/.test(g)){g=j?g:g.toUpperCase();j=0;for(var l=e.length;j<l;j++){var m=e[j];if(m){k=m.parentNode;e[j]=k.nodeName===g?k:false}}}else{j=0;for(l=e.length;j<l;j++)if(m=e[j])e[j]=k?m.parentNode:
m.parentNode===g;k&&i.filter(g,e,true)}},"":function(e,g,j){var k=f++,l=c;if(!g.match(/\W/)){var m=g=j?g:g.toUpperCase();l=a}l("parentNode",g,k,e,m,j)},"~":function(e,g,j){var k=f++,l=c;if(typeof g==="string"&&!g.match(/\W/)){var m=g=j?g:g.toUpperCase();l=a}l("previousSibling",g,k,e,m,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"){for(var j=[],k=g.getElementsByName(e[1]),
l=0,m=k.length;l<m;l++)k[l].getAttribute("name")===e[1]&&j.push(k[l]);return j.length===0?null:j}},TAG:function(e,g){return g.getElementsByTagName(e[1])}},preFilter:{CLASS:function(e,g,j,k,l,m){e=" "+e[1].replace(/\\/g,"")+" ";if(m)return e;m=0;for(var w;(w=g[m])!=null;m++)if(w)if(l^(w.className&&(" "+w.className+" ").indexOf(e)>=0))j||k.push(w);else if(j)g[m]=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,k,l,m){g=e[1].replace(/\\/g,"");if(!m&&n.attrMap[g])e[1]=n.attrMap[g];if(e[2]==="~=")e[4]=" "+e[4]+" ";return e},PSEUDO:function(e,g,j,k,l){if(e[1]==="not")if(e[3].match(d).length>1||/^\w/.test(e[3]))e[3]=i(e[3],null,null,g);else{e=i.filter(e[3],g,j,true^l);j||
k.push.apply(k,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!!i(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,k){return g===k.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,k){var l=g[1],m=n.filters[l];if(m)return m(e,j,g,k);else if(l==="contains")return(e.textContent||e.innerText||"").indexOf(g[3])>=0;else if(l==="not"){g=g[3];j=0;for(k=
g.length;j<k;j++)if(g[j]===e)return false;return true}},CHILD:function(e,g){var j=g[1],k=e;switch(j){case "only":case "first":for(;k=k.previousSibling;)if(k.nodeType===1)return false;if(j=="first")return true;k=e;case "last":for(;k=k.nextSibling;)if(k.nodeType===1)return false;return true;case "nth":j=g[2];var l=g[3];if(j==1&&l==0)return true;var m=g[0],w=e.parentNode;if(w&&(w.sizcache!==m||!e.nodeIndex)){var t=0;for(k=w.firstChild;k;k=k.nextSibling)if(k.nodeType===1)k.nodeIndex=++t;w.sizcache=m}k=
e.nodeIndex-l;return j==0?k==0:k%j==0&&k/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];j=n.attrHandle[j]?n.attrHandle[j](e):e[j]!=null?e[j]:e.getAttribute(j);var k=j+"",l=g[2],m=g[4];return j==null?l==="!=":l==="="?k===m:l==="*="?k.indexOf(m)>=0:l==="~="?(" "+k+" ").indexOf(m)>=0:!m?k&&j!==
false:l==="!="?k!=m:l==="^="?k.indexOf(m)===0:l==="$="?k.substr(k.length-m.length)===m:l==="|="?k===m||k.substr(0,m.length+1)===m+"-":false},POS:function(e,g,j,k){var l=n.setFilters[g[2]];if(l)return l(e,j,g,k)}}},o=n.match.POS;for(var A in n.match)n.match[A]=RegExp(n.match[A].source+/(?![^\[]*\])(?![^\(]*\))/.source);var C=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(M){C=function(e,
g){var j=g||[];if(h.call(e)==="[object Array]")Array.prototype.push.apply(j,e);else if(typeof e.length==="number")for(var k=0,l=e.length;k<l;k++)j.push(e[k]);else for(k=0;e[k];k++)j.push(e[k]);return j}}var S;if(document.documentElement.compareDocumentPosition)S=function(e,g){var j=e.compareDocumentPosition(g)&4?-1:e===g?0:1;if(j===0)hasDuplicate=true;return j};else if("sourceIndex"in document.documentElement)S=function(e,g){var j=e.sourceIndex-g.sourceIndex;if(j===0)hasDuplicate=true;return j};else if(document.createRange)S=
function(e,g){var j=e.ownerDocument.createRange(),k=g.ownerDocument.createRange();j.selectNode(e);j.collapse(true);k.selectNode(g);k.collapse(true);j=j.compareBoundaryPoints(Range.START_TO_END,k);if(j===0)hasDuplicate=true;return j};(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(k,l,m){if(typeof l.getElementById!=="undefined"&&
!m)return(l=l.getElementById(k[1]))?l.id===k[1]||typeof l.getAttributeNode!=="undefined"&&l.getAttributeNode("id").nodeValue===k[1]?[l]:void 0:[]};n.filter.ID=function(k,l){var m=typeof k.getAttributeNode!=="undefined"&&k.getAttributeNode("id");return k.nodeType===1&&m&&m.nodeValue===l}}j.removeChild(e)})();(function(){var e=document.createElement("div");e.appendChild(document.createComment(""));if(e.getElementsByTagName("*").length>0)n.find.TAG=function(g,j){var k=j.getElementsByTagName(g[1]);if(g[1]===
"*"){for(var l=[],m=0;k[m];m++)k[m].nodeType===1&&l.push(k[m]);k=l}return k};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=i,g=document.createElement("div");g.innerHTML="<p class='TEST'></p>";if(!(g.querySelectorAll&&g.querySelectorAll(".TEST").length===0)){i=function(j,k,l,m){k=k||document;if(!m&&k.nodeType===
9&&!x(k))try{return C(k.querySelectorAll(j),l)}catch(w){}return e(j,k,l,m)};i.find=e.find;i.filter=e.filter;i.selectors=e.selectors;i.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,k){if(typeof j.getElementsByClassName!=="undefined"&&!k)return j.getElementsByClassName(g[1])}}}}();var W=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)},Z=function(e,g){for(var j=[],k="",l,m=g.nodeType?[g]:g;l=n.match.PSEUDO.exec(e);){k+=l[0];e=e.replace(n.match.PSEUDO,"")}e=
n.relative[e]?e+"*":e;l=0;for(var w=m.length;l<w;l++)i(e,m[l],j);return i.filter(k,j)};b.find=i;b.filter=i.filter;b.expr=i.selectors;b.expr[":"]=b.expr.filters;i.selectors.filters.hidden=function(e){return e.offsetWidth===0||e.offsetHeight===0};i.selectors.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0};i.selectors.filters.animated=function(e){return b.grep(b.timers,function(g){return e===g.elem}).length};b.multiFilter=function(e,g,j){if(j)e=":not("+e+")";return i.matches(e,
g)};b.dir=function(e,g){for(var j=[],k=e[g];k&&k!=document;){k.nodeType==1&&j.push(k);k=k[g]}return j};b.nth=function(e,g,j){for(var k=0;e;e=e[j])if(e.nodeType==1&&++k==(g||1))break;return e};b.sibling=function(e,g){for(var j=[];e;e=e.nextSibling)e.nodeType==1&&e!=g&&j.push(e);return j}})();b.event={add:function(a,c,d,f){if(!(a.nodeType==3||a.nodeType==8)){if(a.setInterval&&a!=r)a=r;if(!d.guid)d.guid=this.guid++;if(f!==void 0){d=this.proxy(d);d.data=f}var h=b.data(a,"events")||b.data(a,"events",{}),
i=b.data(a,"handle")||b.data(a,"handle",function(){return typeof b!=="undefined"&&!b.event.triggered?b.event.handle.apply(arguments.callee.elem,arguments):void 0});i.elem=a;b.each(c.split(/\s+/),function(n,o){var A=o.split(".");o=A.shift();d.type=A.slice().sort().join(".");var C=h[o];b.event.specialAll[o]&&b.event.specialAll[o].setup.call(a,f,A);if(!C){C=h[o]={};if(!b.event.special[o]||b.event.special[o].setup.call(a,f,A)===false)if(a.addEventListener)a.addEventListener(o,i,false);else a.attachEvent&&
a.attachEvent("on"+o,i)}C[d.guid]=d;b.event.global[o]=true});a=null}},guid:1,global:{},remove:function(a,c,d){if(!(a.nodeType==3||a.nodeType==8)){var f=b.data(a,"events"),h;if(f){if(c===void 0||typeof c==="string"&&c.charAt(0)==".")for(var i in f)this.remove(a,i+(c||""));else{if(c.type){d=c.handler;c=c.type}b.each(c.split(/\s+/),function(n,o){var A=o.split(".");o=A.shift();var C=RegExp("(^|\\.)"+A.slice().sort().join(".*\\.")+"(\\.|$)");if(f[o]){if(d)delete f[o][d.guid];else for(var M in f[o])C.test(f[o][M].type)&&
delete f[o][M];b.event.specialAll[o]&&b.event.specialAll[o].teardown.call(a,A);for(h in f[o])break;if(!h){if(!b.event.special[o]||b.event.special[o].teardown.call(a,A)===false)if(a.removeEventListener)a.removeEventListener(o,b.data(a,"handle"),false);else a.detachEvent&&a.detachEvent("on"+o,b.data(a,"handle"));h=null;delete f[o]}}})}for(h in f)break;if(!h){if(c=b.data(a,"handle"))c.elem=null;b.removeData(a,"events");b.removeData(a,"handle")}}}},trigger:function(a,c,d,f){var h=a.type||a;if(!f){a=typeof a===
"object"?a[F]?a:b.extend(b.Event(h),a):b.Event(h);if(h.indexOf("!")>=0){a.type=h=h.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();this.global[h]&&b.each(b.cache,function(){this.events&&this.events[h]&&b.event.trigger(a,c,this.handle.elem)})}if(!d||d.nodeType==3||d.nodeType==8)return;a.result=void 0;a.target=d;c=b.makeArray(c);c.unshift(a)}a.currentTarget=d;var i=b.data(d,"handle");i&&i.apply(d,c);if((!d[h]||b.nodeName(d,"a")&&h=="click")&&d["on"+h]&&d["on"+h].apply(d,c)===false)a.result=
false;if(!f&&d[h]&&!a.isDefaultPrevented()&&!(b.nodeName(d,"a")&&h=="click")){this.triggered=true;try{d[h]()}catch(n){}}this.triggered=false;if(!a.isPropagationStopped())(d=d.parentNode||d.ownerDocument)&&b.event.trigger(a,c,d,true)},handle:function(a){var c,d;a=arguments[0]=b.event.fix(a||r.event);a.currentTarget=this;d=a.type.split(".");a.type=d.shift();c=!d.length&&!a.exclusive;var f=RegExp("(^|\\.)"+d.slice().sort().join(".*\\.")+"(\\.|$)");d=(b.data(this,"events")||{})[a.type];for(var h in d){var i=
d[h];if(c||f.test(i.type)){a.handler=i;a.data=i.data;i=i.apply(this,arguments);if(i!==void 0){a.result=i;if(i===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[F])return a;var c=a;a=b.Event(c);for(var d=this.props.length,f;d;){f=this.props[--d];a[f]=c[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){c=document.documentElement;d=document.body;a.pageX=a.clientX+(c&&c.scrollLeft||d&&d.scrollLeft||0)-(c.clientLeft||0);a.pageY=a.clientY+(c&&c.scrollTop||
d&&d.scrollTop||0)-(c.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,c){c=c||function(){return a.apply(this,arguments)};c.guid=a.guid=a.guid||c.guid||this.guid++;return c},special:{ready:{setup:J,teardown:function(){}}},specialAll:{live:{setup:function(a,c){b.event.add(this,c[0],E)},teardown:function(a){if(a.length){var c=
0,d=RegExp("(^|\\.)"+a[0]+"(\\.|$)");b.each(b.data(this,"events").live||{},function(){d.test(this.type)&&c++});c<1&&b.event.remove(this,a[0],E)}}}}};b.Event=function(a){if(!this.preventDefault)return new b.Event(a);if(a&&a.type){this.originalEvent=a;this.type=a.type}else this.type=a;this.timeStamp=+new Date;this[F]=true};b.Event.prototype={preventDefault:function(){this.isDefaultPrevented=B;var a=this.originalEvent;if(a){a.preventDefault&&a.preventDefault();a.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=
B;var a=this.originalEvent;if(a){a.stopPropagation&&a.stopPropagation();a.cancelBubble=true}},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=B;this.stopPropagation()},isDefaultPrevented:q,isPropagationStopped:q,isImmediatePropagationStopped:q};var D=function(a){for(var c=a.relatedTarget;c&&c!=this;)try{c=c.parentNode}catch(d){c=this}if(c!=this){a.type=a.data;b.event.handle.apply(this,arguments)}};b.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(a,c){b.event.special[c]=
{setup:function(){b.event.add(this,a,D,c)},teardown:function(){b.event.remove(this,a,D)}}});b.fn.extend({bind:function(a,c,d){return a=="unload"?this.one(a,c,d):this.each(function(){b.event.add(this,a,d||c,d&&c)})},one:function(a,c,d){var f=b.event.proxy(d||c,function(h){b(this).unbind(h,f);return(d||c).apply(this,arguments)});return this.each(function(){b.event.add(this,a,f,d&&c)})},unbind:function(a,c){return this.each(function(){b.event.remove(this,a,c)})},trigger:function(a,c){return this.each(function(){b.event.trigger(a,
c,this)})},triggerHandler:function(a,c){if(this[0]){var d=b.Event(a);d.preventDefault();d.stopPropagation();b.event.trigger(d,c,this[0]);return d.result}},toggle:function(a){for(var c=arguments,d=1;d<c.length;)b.event.proxy(a,c[d++]);return this.click(b.event.proxy(a,function(f){this.lastToggle=(this.lastToggle||0)%d;f.preventDefault();return c[this.lastToggle++].apply(this,arguments)||false}))},hover:function(a,c){return this.mouseenter(a).mouseleave(c)},ready:function(a){J();b.isReady?a.call(document,
b):b.readyList.push(a);return this},live:function(a,c){var d=b.event.proxy(c);d.guid+=this.selector+a;b(document).bind(U(a,this.selector),this.selector,d);return this},die:function(a,c){b(document).unbind(U(a,this.selector),c?{guid:c.guid+this.selector+a}:null);return this}});b.extend({isReady:false,readyList:[],ready:function(){if(!b.isReady){b.isReady=true;if(b.readyList){b.each(b.readyList,function(){this.call(document,b)});b.readyList=null}b(document).triggerHandler("ready")}}});var H=false;b.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,c){b.fn[c]=function(d){return d?this.bind(c,d):this.trigger(c)}});b(r).bind("unload",function(){for(var a in b.cache)a!=1&&b.cache[a].handle&&b.event.remove(b.cache[a].handle.elem)});(function(){b.support={};var a=document.documentElement,c=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("*"),i=d.getElementsByTagName("a")[0];if(!(!h||!h.length||!i)){b.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(i.getAttribute("style")),hrefNormalized:i.getAttribute("href")==="/a",opacity:i.style.opacity==="0.5",cssFloat:!!i.style.cssFloat,scriptEval:false,noCloneEvent:true,
boxModel:null};c.type="text/javascript";try{c.appendChild(document.createTextNode("window."+f+"=1;"))}catch(n){}a.insertBefore(c,a.firstChild);if(r[f]){b.support.scriptEval=true;delete r[f]}a.removeChild(c);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function(){b.support.noCloneEvent=false;d.detachEvent("onclick",arguments.callee)});d.cloneNode(true).fireEvent("onclick")}b(function(){var o=document.createElement("div");o.style.width=o.style.paddingLeft="1px";document.body.appendChild(o);
b.boxModel=b.support.boxModel=o.offsetWidth===2;document.body.removeChild(o).style.display="none"})}})();var P=b.support.cssFloat?"cssFloat":"styleFloat";b.props={"for":"htmlFor","class":"className","float":P,cssFloat:P,styleFloat:P,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};b.fn.extend({_load:b.fn.load,load:function(a,c,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(c)if(b.isFunction(c)){d=c;c=null}else if(typeof c==="object"){c=b.param(c);f="POST"}var i=this;b.ajax({url:a,type:f,dataType:"html",data:c,complete:function(n,o){if(o=="success"||o=="notmodified")i.html(h?b("<div/>").append(n.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(h):n.responseText);d&&i.each(d,[n.responseText,o,n])}});return this},serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?
b.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,c){var d=b(this).val();return d==null?null:b.isArray(d)?b.map(d,function(f){return{name:c.name,value:f}}):{name:c.name,value:d}}).get()}});b.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(a,c){b.fn[c]=function(d){return this.bind(c,d)}});var Y=+new Date;
b.extend({get:function(a,c,d,f){if(b.isFunction(c)){d=c;c=null}return b.ajax({type:"GET",url:a,data:c,success:d,dataType:f})},getScript:function(a,c){return b.get(a,null,c,"script")},getJSON:function(a,c,d){return b.get(a,c,d,"json")},post:function(a,c,d,f){if(b.isFunction(c)){d=c;c={}}return b.ajax({type:"POST",url:a,data:c,success:d,dataType:f})},ajaxSetup:function(a){b.extend(b.ajaxSettings,a)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",
processData:true,async:true,xhr:function(){return r.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 c(){a.success&&a.success(n,i);a.global&&b.event.trigger("ajaxSuccess",[x,a])}function d(){a.complete&&a.complete(x,i);a.global&&b.event.trigger("ajaxComplete",
[x,a]);a.global&&!--b.active&&b.event.trigger("ajaxStop")}a=b.extend(true,a,b.extend(true,{},b.ajaxSettings,a));var f,h=/=\?(&|$)/g,i,n,o=a.type.toUpperCase();if(a.data&&a.processData&&typeof a.data!=="string")a.data=b.param(a.data);if(a.dataType=="jsonp"){if(o=="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"+Y++;if(a.data)a.data=(a.data+"").replace(h,"="+f+"$1");a.url=a.url.replace(h,"="+f+"$1");a.dataType="script";r[f]=function(k){n=k;c();d();r[f]=void 0;try{delete r[f]}catch(l){}C&&C.removeChild(M)}}if(a.dataType=="script"&&a.cache==null)a.cache=false;if(a.cache===false&&o=="GET"){h=+new Date;var A=a.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+h+"$2");a.url=A+(A==a.url?(a.url.match(/\?/)?"&":"?")+"_="+h:"")}if(a.data&&o=="GET"){a.url+=(a.url.match(/\?/)?"&":"?")+a.data;a.data=null}a.global&&
!b.active++&&b.event.trigger("ajaxStart");h=/^(\w+:)?\/\/([^\/?#]+)/.exec(a.url);if(a.dataType=="script"&&o=="GET"&&h&&(h[1]&&h[1]!=location.protocol||h[2]!=location.host)){var C=document.getElementsByTagName("head")[0],M=document.createElement("script");M.src=a.url;if(a.scriptCharset)M.charset=a.scriptCharset;if(!f){var S=false;M.onload=M.onreadystatechange=function(){if(!S&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){S=true;c();d();M.onload=M.onreadystatechange=null;
C.removeChild(M)}}}C.appendChild(M)}else{var W=false,x=a.xhr();a.username?x.open(o,a.url,a.async,a.username,a.password):x.open(o,a.url,a.async);try{a.data&&x.setRequestHeader("Content-Type",a.contentType);if(a.ifModified)x.setRequestHeader("If-Modified-Since",b.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(Z){}if(a.beforeSend&&
a.beforeSend(x,a)===false){a.global&&!--b.active&&b.event.trigger("ajaxStop");x.abort();return false}a.global&&b.event.trigger("ajaxSend",[x,a]);var e=function(k){if(x.readyState==0){if(g){clearInterval(g);g=null;a.global&&!--b.active&&b.event.trigger("ajaxStop")}}else if(!W&&x&&(x.readyState==4||k=="timeout")){W=true;if(g){clearInterval(g);g=null}i=k=="timeout"?"timeout":!b.httpSuccess(x)?"error":a.ifModified&&b.httpNotModified(x,a.url)?"notmodified":"success";if(i=="success")try{n=b.httpData(x,
a.dataType,a)}catch(l){i="parsererror"}if(i=="success"){var m;try{m=x.getResponseHeader("Last-Modified")}catch(w){}if(a.ifModified&&m)b.lastModified[a.url]=m;f||c()}else b.handleError(a,x,i);d();k&&x.abort();if(a.async)x=null}};if(a.async){var g=setInterval(e,13);a.timeout>0&&setTimeout(function(){x&&!W&&e("timeout")},a.timeout)}try{x.send(a.data)}catch(j){b.handleError(a,x,null,j)}a.async||e();return x}},handleError:function(a,c,d,f){a.error&&a.error(c,d,f);a.global&&b.event.trigger("ajaxError",
[c,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(c){}return false},httpNotModified:function(a,c){try{var d=a.getResponseHeader("Last-Modified");return a.status==304||d==b.lastModified[c]}catch(f){}return false},httpData:function(a,c,d){var f=a.getResponseHeader("content-type");a=(f=c=="xml"||!c&&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,c);if(typeof a==="string"){c=="script"&&b.globalEval(a);if(c=="json")a=r.eval("("+a+")")}return a},param:function(a){function c(h,i){d[d.length]=encodeURIComponent(h)+"="+encodeURIComponent(i)}var d=[];if(b.isArray(a)||a.jquery)b.each(a,function(){c(this.name,this.value)});else for(var f in a)b.isArray(a[f])?b.each(a[f],function(){c(f,this)}):c(f,b.isFunction(a[f])?a[f]():a[f]);return d.join("&").replace(/%20/g,"+")}});var T={},R,ba=[["height","marginTop","marginBottom",
"paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];b.fn.extend({show:function(a,c){if(a)return this.animate(I("show",3),a,c);else{for(var d=0,f=this.length;d<f;d++){var h=b.data(this[d],"olddisplay");this[d].style.display=h||"";if(b.css(this[d],"display")==="none"){h=this[d].tagName;var i;if(T[h])i=T[h];else{var n=b("<"+h+" />").appendTo("body");i=n.css("display");if(i==="none")i="block";n.remove();T[h]=i}b.data(this[d],"olddisplay",i)}}d=
0;for(f=this.length;d<f;d++)this[d].style.display=b.data(this[d],"olddisplay")||"";return this}},hide:function(a,c){if(a)return this.animate(I("hide",3),a,c);else{for(var d=0,f=this.length;d<f;d++){var h=b.data(this[d],"olddisplay");!h&&h!=="none"&&b.data(this[d],"olddisplay",b.css(this[d],"display"))}d=0;for(f=this.length;d<f;d++)this[d].style.display="none";return this}},_toggle:b.fn.toggle,toggle:function(a,c){var d=typeof a==="boolean";return b.isFunction(a)&&b.isFunction(c)?this._toggle.apply(this,
arguments):a==null||d?this.each(function(){var f=d?a:b(this).is(":hidden");b(this)[f?"show":"hide"]()}):this.animate(I("toggle",3),a,c)},fadeTo:function(a,c,d){return this.animate({opacity:c},a,d)},animate:function(a,c,d,f){var h=b.speed(c,d,f);return this[h.queue===false?"each":"queue"](function(){var i=b.extend({},h),n,o=this.nodeType==1&&b(this).is(":hidden"),A=this;for(n in a){if(a[n]=="hide"&&o||a[n]=="show"&&!o)return i.complete.call(this);if((n=="height"||n=="width")&&this.style){i.display=
b.css(this,"display");i.overflow=this.style.overflow}}if(i.overflow!=null)this.style.overflow="hidden";i.curAnim=b.extend({},a);b.each(a,function(C,M){var S=new b.fx(A,i,C);if(/toggle|show|hide/.test(M))S[M=="toggle"?o?"show":"hide":M](a);else{var W=M.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),x=S.cur(true)||0;if(W){var Z=parseFloat(W[2]),e=W[3]||"px";if(e!="px"){A.style[C]=(Z||1)+e;x=(Z||1)/S.cur(true)*x;A.style[C]=x+e}if(W[1])Z=(W[1]=="-="?-1:1)*Z+x;S.custom(x,Z,e)}else S.custom(x,M,"")}});return true})},
stop:function(a,c){var d=b.timers;a&&this.queue([]);this.each(function(){for(var f=d.length-1;f>=0;f--)if(d[f].elem==this){c&&d[f](true);d.splice(f,1)}});c||this.dequeue();return this}});b.each({slideDown:I("show",1),slideUp:I("hide",1),slideToggle:I("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,c){b.fn[a]=function(d,f){return this.animate(c,d,f)}});b.extend({speed:function(a,c,d){var f=typeof a==="object"?a:{complete:d||!d&&c||b.isFunction(a)&&a,duration:a,easing:d&&c||
c&&!b.isFunction(c)&&c};f.duration=b.fx.off?0:typeof f.duration==="number"?f.duration:b.fx.speeds[f.duration]||b.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&b(this).dequeue();b.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,c,d,f){return d+f*a},swing:function(a,c,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,c,d){this.options=c;this.elem=a;this.prop=d;if(!c.orig)c.orig={}}});b.fx.prototype={update:function(){this.options.step&&
this.options.step.call(this.elem,this.now,this);(b.fx.step[this.prop]||b.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(b.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(b.curCSS(this.elem,this.prop))||0},custom:function(a,c,d){function f(i){return h.step(i)}this.startTime=+new Date;
this.start=a;this.end=c;this.unit=d||this.unit||"px";this.now=this.start;this.pos=this.state=0;var h=this;f.elem=this.elem;if(f()&&b.timers.push(f)&&!R)R=setInterval(function(){for(var i=b.timers,n=0;n<i.length;n++)i[n]()||i.splice(n--,1);if(!i.length){clearInterval(R);R=void 0}},13)},show:function(){this.options.orig[this.prop]=b.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());b(this.elem).show()},hide:function(){this.options.orig[this.prop]=
b.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var c=+new Date;if(a||c>=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(b.css(this.elem,"display")=="none")this.elem.style.display=
"block"}this.options.hide&&b(this.elem).hide();if(this.options.hide||this.options.show)for(var f in this.options.curAnim)b.attr(this.elem.style,f,this.options.orig[f]);this.options.complete.call(this.elem)}return false}else{d=c-this.startTime;this.state=d/this.options.duration;this.pos=b.easing[this.options.easing||(b.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}};b.extend(b.fx,{speeds:{slow:600,
fast:200,_default:400},step:{opacity:function(a){b.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}}});b.fn.offset=document.documentElement.getBoundingClientRect?function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return b.offset.bodyOffset(this[0]);var a=this[0].getBoundingClientRect(),c=this[0].ownerDocument,d=c.body;c=c.documentElement;return{top:a.top+
(self.pageYOffset||b.boxModel&&c.scrollTop||d.scrollTop)-(c.clientTop||d.clientTop||0),left:a.left+(self.pageXOffset||b.boxModel&&c.scrollLeft||d.scrollLeft)-(c.clientLeft||d.clientLeft||0)}}:function(){if(!this[0])return{top:0,left:0};if(this[0]===this[0].ownerDocument.body)return b.offset.bodyOffset(this[0]);b.offset.initialized||b.offset.initialize();var a=this[0],c=a.offsetParent,d=a.ownerDocument,f,h=d.documentElement,i=d.body;d=d.defaultView;f=d.getComputedStyle(a,null);for(var n=a.offsetTop,
o=a.offsetLeft;(a=a.parentNode)&&a!==i&&a!==h;){f=d.getComputedStyle(a,null);n-=a.scrollTop;o-=a.scrollLeft;if(a===c){n+=a.offsetTop;o+=a.offsetLeft;if(b.offset.doesNotAddBorder&&!(b.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(a.tagName))){n+=parseInt(f.borderTopWidth,10)||0;o+=parseInt(f.borderLeftWidth,10)||0}c=a.offsetParent}if(b.offset.subtractsBorderForOverflowNotVisible&&f.overflow!=="visible"){n+=parseInt(f.borderTopWidth,10)||0;o+=parseInt(f.borderLeftWidth,10)||0}f=f}if(f.position===
"relative"||f.position==="static"){n+=i.offsetTop;o+=i.offsetLeft}if(f.position==="fixed"){n+=Math.max(h.scrollTop,i.scrollTop);o+=Math.max(h.scrollLeft,i.scrollLeft)}return{top:n,left:o}};b.offset={initialize:function(){if(!this.initialized){var a=document.body,c=document.createElement("div"),d,f,h,i=a.style.marginTop;d={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(f in d)c.style[f]=d[f];c.innerHTML='<div style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;"><div></div></div><table style="position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;" cellpadding="0" cellspacing="0"><tr><td></td></tr></table>';
a.insertBefore(c,a.firstChild);d=c.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=i;a.removeChild(c);this.initialized=true}},bodyOffset:function(a){b.offset.initialized||b.offset.initialize();
var c=a.offsetTop,d=a.offsetLeft;if(b.offset.doesNotIncludeMarginInBodyOffset){c+=parseInt(b.curCSS(a,"marginTop",true),10)||0;d+=parseInt(b.curCSS(a,"marginLeft",true),10)||0}return{top:c,left:d}}};b.fn.extend({position:function(){var a;if(this[0]){a=this.offsetParent();var c=this.offset(),d=/^body|html$/i.test(a[0].tagName)?{top:0,left:0}:a.offset();c.top-=p(this,"marginTop");c.left-=p(this,"marginLeft");d.top+=p(a,"borderTopWidth");d.left+=p(a,"borderLeftWidth");a={top:c.top-d.top,left:c.left-
d.left}}return a},offsetParent:function(){for(var a=this[0].offsetParent||document.body;a&&!/^body|html$/i.test(a.tagName)&&b.css(a,"position")=="static";)a=a.offsetParent;return b(a)}});b.each(["Left","Top"],function(a,c){var d="scroll"+c;b.fn[d]=function(f){if(!this[0])return null;return f!==void 0?this.each(function(){this==r||this==document?r.scrollTo(!a?f:b(r).scrollLeft(),a?f:b(r).scrollTop()):(this[d]=f)}):this[0]==r||this[0]==document?self[a?"pageYOffset":"pageXOffset"]||b.boxModel&&document.documentElement[d]||
document.body[d]:this[0][d]}});b.each(["Height","Width"],function(a,c){var d=c.toLowerCase();b.fn["inner"+c]=function(){return this[0]?b.css(this[0],d,false,"padding"):null};b.fn["outer"+c]=function(h){return this[0]?b.css(this[0],d,false,h?"margin":"border"):null};var f=c.toLowerCase();b.fn[f]=function(h){return this[0]==r?document.compatMode=="CSS1Compat"&&document.documentElement["client"+c]||document.body["client"+c]:this[0]==document?Math.max(document.documentElement["client"+c],document.body["scroll"+
c],document.documentElement["scroll"+c],document.body["offset"+c],document.documentElement["offset"+c]):h===void 0?this.length?b.css(this[0],f):null:this.css(f,typeof h==="string"?h:h+"px")}})})();(function(){jQuery.fn.pngFix=function(s){s=jQuery.extend({blankgif:"blank.gif"},s);var p=navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 5.5")!=-1,q=navigator.appName=="Microsoft Internet Explorer"&&parseInt(navigator.appVersion)==4&&navigator.appVersion.indexOf("MSIE 6.0")!=-1;if(jQuery.browser.msie&&(p||q)){jQuery(this).find("img[src$=.png]").each(function(){jQuery(this).attr("width",jQuery(this).width());jQuery(this).attr("height",
jQuery(this).height());var B="",E="",U=jQuery(this).attr("id")?'id="'+jQuery(this).attr("id")+'" ':"",J=jQuery(this).attr("class")?'class="'+jQuery(this).attr("class")+'" ':"",I=jQuery(this).attr("title")?'title="'+jQuery(this).attr("title")+'" ':"",r=jQuery(this).attr("alt")?'alt="'+jQuery(this).attr("alt")+'" ':"",z=jQuery(this).attr("align")?"float:"+jQuery(this).attr("align")+";":"",u=jQuery(this).parent().attr("href")?"cursor:hand;":"";if(this.style.border){B+="border:"+this.style.border+";";
this.style.border=""}if(this.style.padding){B+="padding:"+this.style.padding+";";this.style.padding=""}if(this.style.margin){B+="margin:"+this.style.margin+";";this.style.margin=""}var b=this.style.cssText;E+="<span "+U+J+I+r;E+='style="position:relative;white-space:pre-line;display:inline-block;background:transparent;'+z+u;E+="width:"+jQuery(this).width()+"px;height:"+jQuery(this).height()+"px;";E+="filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+jQuery(this).attr("src")+"', sizingMethod='scale');";
E+=b+'"></span>';if(B!="")E='<span style="position:relative;display:inline-block;'+B+u+"width:"+jQuery(this).width()+"px;height:"+jQuery(this).height()+'px;">'+E+"</span>";jQuery(this).hide();jQuery(this).after(E)});jQuery(this).find("*").each(function(){var B=jQuery(this).css("background-image");if(B.indexOf(".png")!=-1){B=B.split('url("')[1].split('")')[0];jQuery(this).css("background-image","none");jQuery(this).get(0).runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+
B+"',sizingMethod='scale')"}});jQuery(this).find("input[src$=.png]").each(function(){var B=jQuery(this).attr("src");jQuery(this).get(0).runtimeStyle.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+B+"', sizingMethod='scale');";jQuery(this).attr("src",s.blankgif)})}return jQuery}})(jQuery);$(document).ready(function(){$.browser.msie&&$.browser.version.substr(0,1)<="6"&&document.execCommand("BackgroundImageCache",false,true);$("a[rel=external]").click(function(){window.open(this.href);return false});if($.browser.msie&&$.browser.version.substr(0,1)<="6"){$("#header-logo, .sidebar-ImageBlock").pngFix();$("#header-mainMenu ul:first li").hover(function(){$(this).addClass("hover")},function(){$(this).removeClass("hover")})}$.browser.msie&&$.browser.version.substr(0,1)<"8"&&$(".card .imageHolder img").click(function(){var s=
$(this).parents("a:eq(0)");document.location=s.attr("href")});$("#searchBlock-query").length>0&&$("#searchBlock-query").autocomplete("/gallery/search/autocomplete.php",{minChars:3,matchCase:false,delay:600,cacheLength:5,matchSubset:10,matchContains:false,mustMatch:false,selectFirst:false,max:10,highlight:false,width:139});$("#searchForm").submit(function(){var s="/zoeken/"+$("#searchBlock-query").val();document.location.href=s;return false});$("#searchCardForm").submit(function(){var s="/kaart-zoeken/"+
$("#searchBlock-query").val();document.location.href=s;return false})});function setMaxLength(s,p){textLenght=document.getElementById(s).value.length;if(textLenght>p)document.getElementById(s).value=document.getElementById(s).value.substring(0,p)};(function(s){s.fn.extend({autocomplete:function(p,q){var B=typeof p=="string";q=s.extend({},s.Autocompleter.defaults,{url:B?p:null,data:B?null:p,delay:B?s.Autocompleter.defaults.delay:10,max:q&&!q.scroll?10:150},q);q.highlight=q.highlight||function(E){return E};q.formatMatch=q.formatMatch||q.formatItem;return this.each(function(){new s.Autocompleter(this,q)})},result:function(p){return this.bind("result",p)},search:function(p){return this.trigger("search",[p])},flushCache:function(){return this.trigger("flushCache")},
setOptions:function(p){return this.trigger("setOptions",[p])},unautocomplete:function(){return this.trigger("unautocomplete")}});s.Autocompleter=function(p,q){function B(){var v=F.selected();if(!v)return false;var D=v.result;L=D;if(q.multiple){var H=U(b.val());if(H.length>1)D=H.slice(0,H.length-1).join(q.multipleSeparator)+q.multipleSeparator+D;D+=q.multipleSeparator}b.val(D);I();b.trigger("result",[v.data,v.value]);return true}function E(v,D){if(y==u.DEL)F.hide();else{var H=b.val();if(!(!D&&H==L)){L=
H;H=J(H);var P=/[0-9]{2,20}/;if(H.length>=q.minChars||P.test(H)){b.addClass(q.loadingClass);q.matchCase||(H=H.toLowerCase());z(H,r,I)}else{b.removeClass(q.loadingClass);F.hide()}}}}function U(v){if(!v)return[""];v=v.split(q.multipleSeparator);var D=[];s.each(v,function(H,P){if(s.trim(P))D[H]=s.trim(P)});return D}function J(v){if(!q.multiple)return v;v=U(v);return v[v.length-1]}function I(){var v=F.visible();F.hide();clearTimeout(K);b.removeClass(q.loadingClass);q.mustMatch&&b.search(function(D){if(!D)if(q.multiple){D=
U(b.val()).slice(0,-1);b.val(D.join(q.multipleSeparator)+(D.length?q.multipleSeparator:""))}else b.val("")});v&&s.Autocompleter.Selection(p,p.value.length,p.value.length)}function r(v,D){if(D&&D.length&&G){b.removeClass(q.loadingClass);F.display(D,v);var H=D[0].value;if(q.autoFill&&J(b.val()).toLowerCase()==v.toLowerCase()&&y!=u.BACKSPACE){b.val(b.val()+H.substring(J(L).length));s.Autocompleter.Selection(p,L.length,L.length+H.length)}F.show()}else I()}function z(v,D,H){q.matchCase||(v=v.toLowerCase());
var P=O.load(v);if(P&&P.length)D(v,P);else if(typeof q.url=="string"&&q.url.length>0){var Y={timestamp:+new Date};s.each(q.extraParams,function(T,R){Y[T]=typeof R=="function"?R():R});s.ajax({mode:"abort",port:"autocomplete"+p.name,dataType:q.dataType,url:q.url,data:s.extend({q:J(v),limit:q.max},Y),success:function(T){var R;if(!(R=q.parse&&q.parse(T))){R=[];T=T.split("\n");for(var ba=0;ba<T.length;ba++){var a=s.trim(T[ba]);if(a){a=a.split("|");R[R.length]={data:a,value:a[0],result:q.formatResult&&
q.formatResult(a,a[0])||a[0]}}}R=R}R=R;O.add(v,R);D(v,R)}})}else{F.emptyList();H(v)}}var u={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8},b=s(p).attr("autocomplete","off").addClass(q.inputClass),K,L="",O=s.Autocompleter.Cache(q),G=0,y,N={mouseDownOnSelect:false},F=s.Autocompleter.Select(q,p,B,N),V;s.browser.opera&&s(p.form).bind("submit.autocomplete",function(){if(V)return V=false});b.bind((s.browser.opera?"keypress":"keydown")+".autocomplete",function(v){y=
v.keyCode;switch(v.keyCode){case u.UP:v.preventDefault();F.visible()?F.prev():E(0,true);break;case u.DOWN:v.preventDefault();F.visible()?F.next():E(0,true);break;case u.PAGEUP:v.preventDefault();F.visible()?F.pageUp():E(0,true);break;case u.PAGEDOWN:v.preventDefault();F.visible()?F.pageDown():E(0,true);break;case q.multiple&&s.trim(q.multipleSeparator)==","&&u.COMMA:case u.TAB:case u.RETURN:if(B()){v.preventDefault();V=true;return false}break;case u.ESC:F.hide();break;default:clearTimeout(K);K=setTimeout(E,
q.delay);break}}).focus(function(){G++}).blur(function(){G=0;if(!N.mouseDownOnSelect){clearTimeout(K);K=setTimeout(I,200)}}).click(function(){G++>1&&!F.visible()&&E(0,true)}).bind("search",function(){function v(H,P){var Y;if(P&&P.length)for(var T=0;T<P.length;T++)if(P[T].result.toLowerCase()==H.toLowerCase()){Y=P[T];break}typeof D=="function"?D(Y):b.trigger("result",Y&&[Y.data,Y.value])}var D=arguments.length>1?arguments[1]:null;s.each(U(b.val()),function(H,P){z(P,v,v)})}).bind("flushCache",function(){O.flush()}).bind("setOptions",
function(v,D){s.extend(q,D);"data"in D&&O.populate()}).bind("unautocomplete",function(){F.unbind();b.unbind();s(p.form).unbind(".autocomplete")})};s.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(p){return p[0]},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",
highlight:function(p,q){return p.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+q.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:true,scrollHeight:180};s.Autocompleter.Cache=function(p){function q(r,z){p.matchCase||(r=r.toLowerCase());var u=r.indexOf(z);if(u==-1)return false;return u==0||p.matchContains}function B(r,z){I>p.cacheLength&&U();J[r]||I++;J[r]=z}function E(){if(!p.data)return false;var r={},z=0;if(!p.url)p.cacheLength=1;
r[""]=[];for(var u=0,b=p.data.length;u<b;u++){var K=p.data[u];K=typeof K=="string"?[K]:K;var L=p.formatMatch(K,u+1,p.data.length);if(L!==false){var O=L.charAt(0).toLowerCase();r[O]||(r[O]=[]);K={value:L,data:K,result:p.formatResult&&p.formatResult(K)||L};r[O].push(K);z++<p.max&&r[""].push(K)}}s.each(r,function(G,y){p.cacheLength++;B(G,y)})}function U(){J={};I=0}var J={},I=0;setTimeout(E,25);return{flush:U,add:B,populate:E,load:function(r){if(!p.cacheLength||!I)return null;if(!p.url&&p.matchContains){var z=
[];for(var u in J)if(u.length>0){var b=J[u];s.each(b,function(K,L){q(L.value,r)&&z.push(L)})}return z}else if(J[r])return J[r];else if(p.matchSubset)for(u=r.length-1;u>=p.minChars;u--)if(b=J[r.substr(0,u)]){z=[];s.each(b,function(K,L){if(q(L.value,r))z[z.length]=L});return z}return null}}};s.Autocompleter.Select=function(p,q,B,E){function U(){if(L){O=s("<div/>").hide().addClass(p.resultsClass).css("position","absolute").appendTo(document.body);G=s("<ul/>").appendTo(O).mouseover(function(y){if(J(y).nodeName&&
J(y).nodeName.toUpperCase()=="LI"){u=s("li",G).removeClass(r.ACTIVE).index(J(y));s(J(y)).addClass(r.ACTIVE)}}).click(function(y){s(J(y)).addClass(r.ACTIVE);B();q.focus();return false}).mousedown(function(){E.mouseDownOnSelect=true}).mouseup(function(){E.mouseDownOnSelect=false});p.width>0&&O.css("width",p.width);L=false}}function J(y){for(y=y.target;y&&y.tagName!="LI";)y=y.parentNode;if(!y)return[];return y}function I(y){z.slice(u,u+1).removeClass(r.ACTIVE);u+=y;if(u<0)u=z.size()-1;else if(u>=z.size())u=
0;y=z.slice(u,u+1).addClass(r.ACTIVE);if(p.scroll){var N=0;z.slice(0,u).each(function(){N+=this.offsetHeight});if(N+y[0].offsetHeight-G.scrollTop()>G[0].clientHeight)G.scrollTop(N+y[0].offsetHeight-G.innerHeight());else N<G.scrollTop()&&G.scrollTop(N)}}var r={ACTIVE:"ac_over"},z,u=-1,b,K="",L=true,O,G;return{display:function(y,N){U();b=y;K=N;G.empty();for(var F=p.max&&p.max<b.length?p.max:b.length,V=0;V<F;V++)if(b[V]){var v=p.formatItem(b[V].data,V+1,F,b[V].value,K);if(v!==false){v=s("<li/>").html(p.highlight(v,
K)).addClass(V%2==0?"ac_even":"ac_odd").appendTo(G)[0];s.data(v,"ac_data",b[V])}}z=G.find("li");if(p.selectFirst){z.slice(0,1).addClass(r.ACTIVE);u=0}s.fn.bgiframe&&G.bgiframe()},next:function(){I(1)},prev:function(){I(-1)},pageUp:function(){u!=0&&u-8<0?I(-u):I(-8)},pageDown:function(){u!=z.size()-1&&u+8>z.size()?I(z.size()-1-u):I(8)},hide:function(){O&&O.hide();z&&z.removeClass(r.ACTIVE);u=-1},visible:function(){return O&&O.is(":visible")},current:function(){return this.visible()&&(z.filter("."+
r.ACTIVE)[0]||p.selectFirst&&z[0])},show:function(){var y=s(q).offset();O.css({width:typeof p.width=="string"||p.width>0?p.width:s(q).width(),top:y.top+q.offsetHeight,left:y.left}).show();if(p.scroll){G.scrollTop(0);G.css({maxHeight:p.scrollHeight,overflow:"auto"});if(s.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var N=0;z.each(function(){N+=this.offsetHeight});y=N>p.scrollHeight;G.css("height",y?p.scrollHeight:N);y||z.width(G.width()-parseInt(z.css("padding-left"))-parseInt(z.css("padding-right")))}}},
selected:function(){var y=z&&z.filter("."+r.ACTIVE).removeClass(r.ACTIVE);return y&&y.length&&s.data(y[0],"ac_data")},emptyList:function(){G&&G.empty()},unbind:function(){O&&O.remove()}}};s.Autocompleter.Selection=function(p,q,B){if(p.createTextRange){var E=p.createTextRange();E.collapse(true);E.moveStart("character",q);E.moveEnd("character",B);E.select()}else if(p.setSelectionRange)p.setSelectionRange(q,B);else if(p.selectionStart){p.selectionStart=q;p.selectionEnd=B}p.focus()}})(jQuery);
