/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var m=this,g,z=m.jQuery,q=m.$,p=m.jQuery=m.$=function(F,G){return new p.fn.init(F,G)},E=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;p.fn=p.prototype={init:function(F,I){F=F||document;if(F.nodeType){this[0]=F;this.length=1;this.context=F;return this}if(typeof F==="string"){var H=E.exec(F);if(H&&(H[1]||!I)){if(H[1]){F=p.clean([H[1]],I)}else{var J=document.getElementById(H[3]);if(J&&J.id!=H[3]){return p().find(F)}var G=p(J||[]);G.context=document;G.selector=F;return G}}else{return p(I).find(F)}}else{if(p.isFunction(F)){return p(document).ready(F)}}if(F.selector&&F.context){this.selector=F.selector;this.context=F.context}return this.setArray(p.isArray(F)?F:p.makeArray(F))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(F){return F===g?Array.prototype.slice.call(this):this[F]},pushStack:function(G,I,F){var H=p(G);H.prevObject=this;H.context=this.context;if(I==="find"){H.selector=this.selector+(this.selector?" ":"")+F}else{if(I){H.selector=this.selector+"."+I+"("+F+")"}}return H},setArray:function(F){this.length=0;Array.prototype.push.apply(this,F);return this},each:function(G,F){return p.each(this,G,F)},index:function(F){return p.inArray(F&&F.jquery?F[0]:F,this)},attr:function(G,I,H){var F=G;if(typeof G==="string"){if(I===g){return this[0]&&p[H||"attr"](this[0],G)}else{F={};F[G]=I}}return this.each(function(J){for(G in F){p.attr(H?this.style:this,G,p.prop(this,F[G],H,J,G))}})},css:function(F,G){if((F=="width"||F=="height")&&parseFloat(G)<0){G=g}return this.attr(F,G,"curCSS")},text:function(G){if(typeof G!=="object"&&G!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(G))}var F="";p.each(G||this,function(){p.each(this.childNodes,function(){if(this.nodeType!=8){F+=this.nodeType!=1?this.nodeValue:p.fn.text([this])}})});return F},wrapAll:function(F){if(this[0]){var G=p(F,this[0].ownerDocument).clone();if(this[0].parentNode){G.insertBefore(this[0])}G.map(function(){var H=this;while(H.firstChild){H=H.firstChild}return H}).append(this)}return this},wrapInner:function(F){return this.each(function(){p(this).contents().wrapAll(F)})},wrap:function(F){return this.each(function(){p(this).wrapAll(F)})},append:function(){return this.domManip(arguments,true,function(F){if(this.nodeType==1){this.appendChild(F)}})},prepend:function(){return this.domManip(arguments,true,function(F){if(this.nodeType==1){this.insertBefore(F,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(F){this.parentNode.insertBefore(F,this)})},after:function(){return this.domManip(arguments,false,function(F){this.parentNode.insertBefore(F,this.nextSibling)})},end:function(){return this.prevObject||p([])},push:[].push,sort:[].sort,splice:[].splice,find:function(F){if(this.length===1){var G=this.pushStack([],"find",F);G.length=0;p.find(F,this[0],G);return G}else{return this.pushStack(p.unique(p.map(this,function(H){return p.find(F,H)})),"find",F)}},clone:function(H){var F=this.map(function(){if(!p.support.noCloneEvent&&!p.isXMLDoc(this)){var J=this.outerHTML;if(!J){var K=this.ownerDocument.createElement("div");K.appendChild(this.cloneNode(true));J=K.innerHTML}return p.clean([J.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(H===true){var I=this.find("*").andSelf(),G=0;F.find("*").andSelf().each(function(){if(this.nodeName!==I[G].nodeName){return}var J=p.data(I[G],"events");for(var L in J){for(var K in J[L]){p.event.add(this,L,J[L][K],J[L][K].data)}}G++})}return F},filter:function(F){return this.pushStack(p.isFunction(F)&&p.grep(this,function(H,G){return F.call(H,G)})||p.multiFilter(F,p.grep(this,function(G){return G.nodeType===1})),"filter",F)},closest:function(F){var H=p.expr.match.POS.test(F)?p(F):null,G=0;return this.map(function(){var I=this;while(I&&I.ownerDocument){if(H?H.index(I)>-1:p(I).is(F)){p.data(I,"closest",G);return I}I=I.parentNode;G++}})},not:function(F){if(typeof F==="string"){if(f.test(F)){return this.pushStack(p.multiFilter(F,this,true),"not",F)}else{F=p.multiFilter(F,this)}}var G=F.length&&F[F.length-1]!==g&&!F.nodeType;return this.filter(function(){return G?p.inArray(this,F)<0:this!=F})},add:function(F){return this.pushStack(p.unique(p.merge(this.get(),typeof F==="string"?p(F):p.makeArray(F))))},is:function(F){return !!F&&p.multiFilter(F,this).length>0},hasClass:function(F){return !!F&&this.is("."+F)},val:function(L){if(L===g){var F=this[0];if(F){if(p.nodeName(F,"option")){return(F.attributes.value||{}).specified?F.value:F.text}if(p.nodeName(F,"select")){var J=F.selectedIndex,M=[],N=F.options,I=F.type=="select-one";if(J<0){return null}for(var G=I?J:0,K=I?J+1:N.length;G<K;G++){var H=N[G];if(H.selected){L=p(H).val();if(I){return L}M.push(L)}}return M}return(F.value||"").replace(/\r/g,"")}return g}if(typeof L==="number"){L+=""}return this.each(function(){if(this.nodeType!=1){return}if(p.isArray(L)&&/radio|checkbox/.test(this.type)){this.checked=(p.inArray(this.value,L)>=0||p.inArray(this.name,L)>=0)}else{if(p.nodeName(this,"select")){var O=p.makeArray(L);p("option",this).each(function(){this.selected=(p.inArray(this.value,O)>=0||p.inArray(this.text,O)>=0)});if(!O.length){this.selectedIndex=-1}}else{this.value=L}}})},html:function(F){return F===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(F)},replaceWith:function(F){return this.after(F).remove()},eq:function(F){return this.slice(F,+F+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(F){return this.pushStack(p.map(this,function(H,G){return F.call(H,G,H)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(K,N,M){if(this[0]){var J=(this[0].ownerDocument||this[0]).createDocumentFragment(),G=p.clean(K,(this[0].ownerDocument||this[0]),J),I=J.firstChild;if(I){for(var H=0,F=this.length;H<F;H++){M.call(L(this[H],I),this.length>1||H>0?J.cloneNode(true):J)}}if(G){p.each(G,A)}}return this;function L(O,P){return N&&p.nodeName(O,"table")&&p.nodeName(P,"tr")?(O.getElementsByTagName("tbody")[0]||O.appendChild(O.ownerDocument.createElement("tbody"))):O}}};p.fn.init.prototype=p.fn;function A(F,G){if(G.src){p.ajax({url:G.src,async:false,dataType:"script"})}else{p.globalEval(G.text||G.textContent||G.innerHTML||"")}if(G.parentNode){G.parentNode.removeChild(G)}}function e(){return +new Date}p.extend=p.fn.extend=function(){var K=arguments[0]||{},I=1,J=arguments.length,F=false,H;if(typeof K==="boolean"){F=K;K=arguments[1]||{};I=2}if(typeof K!=="object"&&!p.isFunction(K)){K={}}if(J==I){K=this;--I}for(;I<J;I++){if((H=arguments[I])!=null){for(var G in H){var L=K[G],M=H[G];if(K===M){continue}if(F&&M&&typeof M==="object"&&!M.nodeType){K[G]=p.extend(F,L||(M.length!=null?[]:{}),M)}else{if(M!==g){K[G]=M}}}}}return K};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,r=document.defaultView||{},t=Object.prototype.toString;p.extend({noConflict:function(F){m.$=q;if(F){m.jQuery=z}return p},isFunction:function(F){return t.call(F)==="[object Function]"},isArray:function(F){return t.call(F)==="[object Array]"},isXMLDoc:function(F){return F.nodeType===9&&F.documentElement.nodeName!=="HTML"||!!F.ownerDocument&&p.isXMLDoc(F.ownerDocument)},globalEval:function(H){if(H&&/\S/.test(H)){var G=document.getElementsByTagName("head")[0]||document.documentElement,F=document.createElement("script");F.type="text/javascript";if(p.support.scriptEval){F.appendChild(document.createTextNode(H))}else{F.text=H}G.insertBefore(F,G.firstChild);G.removeChild(F)}},nodeName:function(G,F){return G.nodeName&&G.nodeName.toUpperCase()==F.toUpperCase()},each:function(H,L,G){var F,I=0,J=H.length;if(G){if(J===g){for(F in H){if(L.apply(H[F],G)===false){break}}}else{for(;I<J;){if(L.apply(H[I++],G)===false){break}}}}else{if(J===g){for(F in H){if(L.call(H[F],F,H[F])===false){break}}}else{for(var K=H[0];I<J&&L.call(K,I,K)!==false;K=H[++I]){}}}return H},prop:function(I,J,H,G,F){if(p.isFunction(J)){J=J.call(I,G)}return typeof J==="number"&&H=="curCSS"&&!b.test(F)?J+"px":J},className:{add:function(F,G){p.each((G||"").split(/\s+/),function(H,I){if(F.nodeType==1&&!p.className.has(F.className,I)){F.className+=(F.className?" ":"")+I}})},remove:function(F,G){if(F.nodeType==1){F.className=G!==g?p.grep(F.className.split(/\s+/),function(H){return !p.className.has(G,H)}).join(" "):""}},has:function(G,F){return G&&p.inArray(F,(G.className||G).toString().split(/\s+/))>-1}},swap:function(I,H,J){var F={};for(var G in H){F[G]=I.style[G];I.style[G]=H[G]}J.call(I);for(var G in H){I.style[G]=F[G]}},css:function(I,G,K,F){if(G=="width"||G=="height"){var M,H={position:"absolute",visibility:"hidden",display:"block"},L=G=="width"?["Left","Right"]:["Top","Bottom"];function J(){M=G=="width"?I.offsetWidth:I.offsetHeight;if(F==="border"){return}p.each(L,function(){if(!F){M-=parseFloat(p.curCSS(I,"padding"+this,true))||0}if(F==="margin"){M+=parseFloat(p.curCSS(I,"margin"+this,true))||0}else{M-=parseFloat(p.curCSS(I,"border"+this+"Width",true))||0}})}if(I.offsetWidth!==0){J()}else{p.swap(I,H,J)}return Math.max(0,Math.round(M))}return p.curCSS(I,G,K)},curCSS:function(J,G,H){var M,F=J.style;if(G=="opacity"&&!p.support.opacity){M=p.attr(F,"opacity");return M==""?"1":M}if(G.match(/float/i)){G=x}if(!H&&F&&F[G]){M=F[G]}else{if(r.getComputedStyle){if(G.match(/float/i)){G="float"}G=G.replace(/([A-Z])/g,"-$1").toLowerCase();var N=r.getComputedStyle(J,null);if(N){M=N.getPropertyValue(G)}if(G=="opacity"&&M==""){M="1"}}else{if(J.currentStyle){var K=G.replace(/\-(\w)/g,function(O,P){return P.toUpperCase()});M=J.currentStyle[G]||J.currentStyle[K];if(!/^\d+(px)?$/i.test(M)&&/^\d/.test(M)){var I=F.left,L=J.runtimeStyle.left;J.runtimeStyle.left=J.currentStyle.left;F.left=M||0;M=F.pixelLeft+"px";F.left=I;J.runtimeStyle.left=L}}}}return M},clean:function(G,L,J){L=L||document;if(typeof L.createElement==="undefined"){L=L.ownerDocument||L[0]&&L[0].ownerDocument||document}if(!J&&G.length===1&&typeof G[0]==="string"){var I=/^<(\w+)\s*\/?>$/.exec(G[0]);if(I){return[L.createElement(I[1])]}}var H=[],F=[],M=L.createElement("div");p.each(G,function(Q,T){if(typeof T==="number"){T+=""}if(!T){return}if(typeof T==="string"){T=T.replace(/(<(\w+)[^>]*?)\/>/g,function(V,W,U){return U.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?V:W+"></"+U+">"});var P=T.replace(/^\s+/,"").substring(0,10).toLowerCase();var R=!P.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!P.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||P.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!P.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!P.indexOf("<td")||!P.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!P.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!p.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];M.innerHTML=R[1]+T+R[2];while(R[0]--){M=M.lastChild}if(!p.support.tbody){var S=/<tbody/i.test(T),O=!P.indexOf("<table")&&!S?M.firstChild&&M.firstChild.childNodes:R[1]=="<table>"&&!S?M.childNodes:[];for(var N=O.length-1;N>=0;--N){if(p.nodeName(O[N],"tbody")&&!O[N].childNodes.length){O[N].parentNode.removeChild(O[N])}}}if(!p.support.leadingWhitespace&&/^\s/.test(T)){M.insertBefore(L.createTextNode(T.match(/^\s*/)[0]),M.firstChild)}T=p.makeArray(M.childNodes)}if(T.nodeType){H.push(T)}else{H=p.merge(H,T)}});if(J){for(var K=0;H[K];K++){if(p.nodeName(H[K],"script")&&(!H[K].type||H[K].type.toLowerCase()==="text/javascript")){F.push(H[K].parentNode?H[K].parentNode.removeChild(H[K]):H[K])}else{if(H[K].nodeType===1){H.splice.apply(H,[K+1,0].concat(p.makeArray(H[K].getElementsByTagName("script"))))}J.appendChild(H[K])}}return F}return H},attr:function(K,H,L){if(!K||K.nodeType==3||K.nodeType==8){return g}var I=!p.isXMLDoc(K),M=L!==g;H=I&&p.props[H]||H;if(K.tagName){var G=/href|src|style/.test(H);if(H=="selected"&&K.parentNode){K.parentNode.selectedIndex}if(H in K&&I&&!G){if(M){if(H=="type"&&p.nodeName(K,"input")&&K.parentNode){throw"type property can't be changed"}K[H]=L}if(p.nodeName(K,"form")&&K.getAttributeNode(H)){return K.getAttributeNode(H).nodeValue}if(H=="tabIndex"){var J=K.getAttributeNode("tabIndex");return J&&J.specified?J.value:K.nodeName.match(/(button|input|object|select|textarea)/i)?0:K.nodeName.match(/^(a|area)$/i)&&K.href?0:g}return K[H]}if(!p.support.style&&I&&H=="style"){return p.attr(K.style,"cssText",L)}if(M){K.setAttribute(H,""+L)}var F=!p.support.hrefNormalized&&I&&G?K.getAttribute(H,2):K.getAttribute(H);return F===null?g:F}if(!p.support.opacity&&H=="opacity"){if(M){K.zoom=1;K.filter=(K.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(L)+""=="NaN"?"":"alpha(opacity="+L*100+")")}return K.filter&&K.filter.indexOf("opacity=")>=0?(parseFloat(K.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}H=H.replace(/-([a-z])/ig,function(N,O){return O.toUpperCase()});if(M){K[H]=L}return K[H]},trim:function(F){return(F||"").replace(/^\s+|\s+$/g,"")},makeArray:function(H){var F=[];if(H!=null){var G=H.length;if(G==null||typeof H==="string"||p.isFunction(H)||H.setInterval){F[0]=H}else{while(G){F[--G]=H[G]}}}return F},inArray:function(H,I){for(var F=0,G=I.length;F<G;F++){if(I[F]===H){return F}}return -1},merge:function(I,F){var G=0,H,J=I.length;if(!p.support.getAll){while((H=F[G++])!=null){if(H.nodeType!=8){I[J++]=H}}}else{while((H=F[G++])!=null){I[J++]=H}}return I},unique:function(L){var G=[],F={};try{for(var H=0,I=L.length;H<I;H++){var K=p.data(L[H]);if(!F[K]){F[K]=true;G.push(L[H])}}}catch(J){G=L}return G},grep:function(G,K,F){var H=[];for(var I=0,J=G.length;I<J;I++){if(!F!=!K(G[I],I)){H.push(G[I])}}return H},map:function(F,K){var G=[];for(var H=0,I=F.length;H<I;H++){var J=K(F[H],H);if(J!=null){G[G.length]=J}}return G.concat.apply([],G)}});var D=navigator.userAgent.toLowerCase();p.browser={version:(D.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(D),opera:/opera/.test(D),msie:/msie/.test(D)&&!/opera/.test(D),mozilla:/mozilla/.test(D)&&!/(compatible|webkit)/.test(D)};p.each({parent:function(F){return F.parentNode},parents:function(F){return p.dir(F,"parentNode")},next:function(F){return p.nth(F,2,"nextSibling")},prev:function(F){return p.nth(F,2,"previousSibling")},nextAll:function(F){return p.dir(F,"nextSibling")},prevAll:function(F){return p.dir(F,"previousSibling")},siblings:function(F){return p.sibling(F.parentNode.firstChild,F)},children:function(F){return p.sibling(F.firstChild)},contents:function(F){return p.nodeName(F,"iframe")?F.contentDocument||F.contentWindow.document:p.makeArray(F.childNodes)}},function(F,G){p.fn[F]=function(H){var I=p.map(this,G);if(H&&typeof H=="string"){I=p.multiFilter(H,I)}return this.pushStack(p.unique(I),F,H)}});p.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(F,G){p.fn[F]=function(H){var K=[],M=p(H);for(var L=0,I=M.length;L<I;L++){var J=(L>0?this.clone(true):this).get();p.fn[G].apply(p(M[L]),J);K=K.concat(J)}return this.pushStack(K,F,H)}});p.each({removeAttr:function(F){p.attr(this,F,"");if(this.nodeType==1){this.removeAttribute(F)}},addClass:function(F){p.className.add(this,F)},removeClass:function(F){p.className.remove(this,F)},toggleClass:function(G,F){if(typeof F!=="boolean"){F=!p.className.has(this,G)}p.className[F?"add":"remove"](this,G)},remove:function(F){if(!F||p.filter(F,[this]).length){p("*",this).add([this]).each(function(){p.event.remove(this);p.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){p(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(F,G){p.fn[F]=function(){return this.each(G,arguments)}});function k(F,G){return F[0]&&parseInt(p.curCSS(F[0],G,true),10)||0}var h="jQuery"+e(),w=0,B={};p.extend({cache:{},data:function(G,F,H){G=G==m?B:G;var I=G[h];if(!I){I=G[h]=++w}if(F&&!p.cache[I]){p.cache[I]={}}if(H!==g){p.cache[I][F]=H}return F?p.cache[I][F]:I},removeData:function(G,F){G=G==m?B:G;var I=G[h];if(F){if(p.cache[I]){delete p.cache[I][F];F="";for(F in p.cache[I]){break}if(!F){p.removeData(G)}}}else{try{delete G[h]}catch(H){if(G.removeAttribute){G.removeAttribute(h)}}delete p.cache[I]}},queue:function(G,F,I){if(G){F=(F||"fx")+"queue";var H=p.data(G,F);if(!H||p.isArray(I)){H=p.data(G,F,p.makeArray(I))}else{if(I){H.push(I)}}}return H},dequeue:function(I,H){var F=p.queue(I,H),G=F.shift();if(!H||H==="fx"){G=F[0]}if(G!==g){G.call(I)}}});p.fn.extend({data:function(F,H){var I=F.split(".");I[1]=I[1]?"."+I[1]:"";if(H===g){var G=this.triggerHandler("getData"+I[1]+"!",[I[0]]);if(G===g&&this.length){G=p.data(this[0],F)}return G===g&&I[1]?this.data(I[0]):G}else{return this.trigger("setData"+I[1]+"!",[I[0],H]).each(function(){p.data(this,F,H)})}},removeData:function(F){return this.each(function(){p.removeData(this,F)})},queue:function(F,G){if(typeof F!=="string"){G=F;F="fx"}if(G===g){return p.queue(this[0],F)}return this.each(function(){var H=p.queue(this,F,G);if(F=="fx"&&H.length==1){H[0].call(this)}})},dequeue:function(F){return this.each(function(){p.dequeue(this,F)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var S=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,M=0,I=Object.prototype.toString;var G=function(Z,V,ac,ad){ac=ac||[];V=V||document;if(V.nodeType!==1&&V.nodeType!==9){return[]}if(!Z||typeof Z!=="string"){return ac}var aa=[],X,ag,aj,U,ae,W,Y=true;S.lastIndex=0;while((X=S.exec(Z))!==null){aa.push(X[1]);if(X[2]){W=RegExp.rightContext;break}}if(aa.length>1&&N.exec(Z)){if(aa.length===2&&J.relative[aa[0]]){ag=K(aa[0]+aa[1],V)}else{ag=J.relative[aa[0]]?[V]:G(aa.shift(),V);while(aa.length){Z=aa.shift();if(J.relative[Z]){Z+=aa.shift()}ag=K(Z,ag)}}}else{var af=ad?{expr:aa.pop(),set:F(ad)}:G.find(aa.pop(),aa.length===1&&V.parentNode?V.parentNode:V,R(V));ag=G.filter(af.expr,af.set);if(aa.length>0){aj=F(ag)}else{Y=false}while(aa.length){var ai=aa.pop(),ah=ai;if(!J.relative[ai]){ai=""}else{ah=aa.pop()}if(ah==null){ah=V}J.relative[ai](aj,ah,R(V))}}if(!aj){aj=ag}if(!aj){throw"Syntax error, unrecognized expression: "+(ai||Z)}if(I.call(aj)==="[object Array]"){if(!Y){ac.push.apply(ac,aj)}else{if(V.nodeType===1){for(var ab=0;aj[ab]!=null;ab++){if(aj[ab]&&(aj[ab]===true||aj[ab].nodeType===1&&L(V,aj[ab]))){ac.push(ag[ab])}}}else{for(var ab=0;aj[ab]!=null;ab++){if(aj[ab]&&aj[ab].nodeType===1){ac.push(ag[ab])}}}}}else{F(aj,ac)}if(W){G(W,V,ac,ad);if(H){hasDuplicate=false;ac.sort(H);if(hasDuplicate){for(var ab=1;ab<ac.length;ab++){if(ac[ab]===ac[ab-1]){ac.splice(ab--,1)}}}}}return ac};G.matches=function(U,V){return G(U,null,null,V)};G.find=function(ab,U,ac){var aa,Y;if(!ab){return[]}for(var X=0,W=J.order.length;X<W;X++){var Z=J.order[X],Y;if((Y=J.match[Z].exec(ab))){var V=RegExp.leftContext;if(V.substr(V.length-1)!=="\\"){Y[1]=(Y[1]||"").replace(/\\/g,"");aa=J.find[Z](Y,U,ac);if(aa!=null){ab=ab.replace(J.match[Z],"");break}}}}if(!aa){aa=U.getElementsByTagName("*")}return{set:aa,expr:ab}};G.filter=function(ae,ad,ah,X){var W=ae,aj=[],ab=ad,Z,U,aa=ad&&ad[0]&&R(ad[0]);while(ae&&ad.length){for(var ac in J.filter){if((Z=J.match[ac].exec(ae))!=null){var V=J.filter[ac],ai,ag;U=false;if(ab==aj){aj=[]}if(J.preFilter[ac]){Z=J.preFilter[ac](Z,ab,ah,aj,X,aa);if(!Z){U=ai=true}else{if(Z===true){continue}}}if(Z){for(var Y=0;(ag=ab[Y])!=null;Y++){if(ag){ai=V(ag,Z,Y,ab);var af=X^!!ai;if(ah&&ai!=null){if(af){U=true}else{ab[Y]=false}}else{if(af){aj.push(ag);U=true}}}}}if(ai!==g){if(!ah){ab=aj}ae=ae.replace(J.match[ac],"");if(!U){return[]}break}}}if(ae==W){if(U==null){throw"Syntax error, unrecognized expression: "+ae}else{break}}W=ae}return ab};var J=G.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(U){return U.getAttribute("href")}},relative:{"+":function(ab,U,aa){var Y=typeof U==="string",ac=Y&&!/\W/.test(U),Z=Y&&!ac;if(ac&&!aa){U=U.toUpperCase()}for(var X=0,W=ab.length,V;X<W;X++){if((V=ab[X])){while((V=V.previousSibling)&&V.nodeType!==1){}ab[X]=Z||V&&V.nodeName===U?V||false:V===U}}if(Z){G.filter(U,ab,true)}},">":function(aa,V,ab){var Y=typeof V==="string";if(Y&&!/\W/.test(V)){V=ab?V:V.toUpperCase();for(var W=0,U=aa.length;W<U;W++){var Z=aa[W];if(Z){var X=Z.parentNode;aa[W]=X.nodeName===V?X:false}}}else{for(var W=0,U=aa.length;W<U;W++){var Z=aa[W];if(Z){aa[W]=Y?Z.parentNode:Z.parentNode===V}}if(Y){G.filter(V,aa,true)}}},"":function(X,V,Z){var W=M++,U=T;if(!V.match(/\W/)){var Y=V=Z?V:V.toUpperCase();U=Q}U("parentNode",V,W,X,Y,Z)},"~":function(X,V,Z){var W=M++,U=T;if(typeof V==="string"&&!V.match(/\W/)){var Y=V=Z?V:V.toUpperCase();U=Q}U("previousSibling",V,W,X,Y,Z)}},find:{ID:function(V,W,X){if(typeof W.getElementById!=="undefined"&&!X){var U=W.getElementById(V[1]);return U?[U]:[]}},NAME:function(W,Z,aa){if(typeof Z.getElementsByName!=="undefined"){var V=[],Y=Z.getElementsByName(W[1]);for(var X=0,U=Y.length;X<U;X++){if(Y[X].getAttribute("name")===W[1]){V.push(Y[X])}}return V.length===0?null:V}},TAG:function(U,V){return V.getElementsByTagName(U[1])}},preFilter:{CLASS:function(X,V,W,U,aa,ab){X=" "+X[1].replace(/\\/g,"")+" ";if(ab){return X}for(var Y=0,Z;(Z=V[Y])!=null;Y++){if(Z){if(aa^(Z.className&&(" "+Z.className+" ").indexOf(X)>=0)){if(!W){U.push(Z)}}else{if(W){V[Y]=false}}}}return false},ID:function(U){return U[1].replace(/\\/g,"")},TAG:function(V,U){for(var W=0;U[W]===false;W++){}return U[W]&&R(U[W])?V[1]:V[1].toUpperCase()},CHILD:function(U){if(U[1]=="nth"){var V=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(U[2]=="even"&&"2n"||U[2]=="odd"&&"2n+1"||!/\D/.test(U[2])&&"0n+"+U[2]||U[2]);U[2]=(V[1]+(V[2]||1))-0;U[3]=V[3]-0}U[0]=M++;return U},ATTR:function(Y,V,W,U,Z,aa){var X=Y[1].replace(/\\/g,"");if(!aa&&J.attrMap[X]){Y[1]=J.attrMap[X]}if(Y[2]==="~="){Y[4]=" "+Y[4]+" "}return Y},PSEUDO:function(Y,V,W,U,Z){if(Y[1]==="not"){if(Y[3].match(S).length>1||/^\w/.test(Y[3])){Y[3]=G(Y[3],null,null,V)}else{var X=G.filter(Y[3],V,W,true^Z);if(!W){U.push.apply(U,X)}return false}}else{if(J.match.POS.test(Y[0])||J.match.CHILD.test(Y[0])){return true}}return Y},POS:function(U){U.unshift(true);return U}},filters:{enabled:function(U){return U.disabled===false&&U.type!=="hidden"},disabled:function(U){return U.disabled===true},checked:function(U){return U.checked===true},selected:function(U){U.parentNode.selectedIndex;return U.selected===true},parent:function(U){return !!U.firstChild},empty:function(U){return !U.firstChild},has:function(W,V,U){return !!G(U[3],W).length},header:function(U){return/h\d/i.test(U.nodeName)},text:function(U){return"text"===U.type},radio:function(U){return"radio"===U.type},checkbox:function(U){return"checkbox"===U.type},file:function(U){return"file"===U.type},password:function(U){return"password"===U.type},submit:function(U){return"submit"===U.type},image:function(U){return"image"===U.type},reset:function(U){return"reset"===U.type},button:function(U){return"button"===U.type||U.nodeName.toUpperCase()==="BUTTON"},input:function(U){return/input|select|textarea|button/i.test(U.nodeName)}},setFilters:{first:function(V,U){return U===0},last:function(W,V,U,X){return V===X.length-1},even:function(V,U){return U%2===0},odd:function(V,U){return U%2===1},lt:function(W,V,U){return V<U[3]-0},gt:function(W,V,U){return V>U[3]-0},nth:function(W,V,U){return U[3]-0==V},eq:function(W,V,U){return U[3]-0==V}},filter:{PSEUDO:function(aa,W,X,ab){var V=W[1],Y=J.filters[V];if(Y){return Y(aa,X,W,ab)}else{if(V==="contains"){return(aa.textContent||aa.innerText||"").indexOf(W[3])>=0}else{if(V==="not"){var Z=W[3];for(var X=0,U=Z.length;X<U;X++){if(Z[X]===aa){return false}}return true}}}},CHILD:function(U,X){var aa=X[1],V=U;switch(aa){case"only":case"first":while(V=V.previousSibling){if(V.nodeType===1){return false}}if(aa=="first"){return true}V=U;case"last":while(V=V.nextSibling){if(V.nodeType===1){return false}}return true;case"nth":var W=X[2],ad=X[3];if(W==1&&ad==0){return true}var Z=X[0],ac=U.parentNode;if(ac&&(ac.sizcache!==Z||!U.nodeIndex)){var Y=0;for(V=ac.firstChild;V;V=V.nextSibling){if(V.nodeType===1){V.nodeIndex=++Y}}ac.sizcache=Z}var ab=U.nodeIndex-ad;if(W==0){return ab==0}else{return(ab%W==0&&ab/W>=0)}}},ID:function(V,U){return V.nodeType===1&&V.getAttribute("id")===U},TAG:function(V,U){return(U==="*"&&V.nodeType===1)||V.nodeName===U},CLASS:function(V,U){return(" "+(V.className||V.getAttribute("class"))+" ").indexOf(U)>-1},ATTR:function(Z,X){var W=X[1],U=J.attrHandle[W]?J.attrHandle[W](Z):Z[W]!=null?Z[W]:Z.getAttribute(W),aa=U+"",Y=X[2],V=X[4];return U==null?Y==="!=":Y==="="?aa===V:Y==="*="?aa.indexOf(V)>=0:Y==="~="?(" "+aa+" ").indexOf(V)>=0:!V?aa&&U!==false:Y==="!="?aa!=V:Y==="^="?aa.indexOf(V)===0:Y==="$="?aa.substr(aa.length-V.length)===V:Y==="|="?aa===V||aa.substr(0,V.length+1)===V+"-":false},POS:function(Y,V,W,Z){var U=V[2],X=J.setFilters[U];if(X){return X(Y,W,V,Z)}}}};var N=J.match.POS;for(var P in J.match){J.match[P]=RegExp(J.match[P].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var F=function(V,U){V=Array.prototype.slice.call(V);if(U){U.push.apply(U,V);return U}return V};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(O){F=function(Y,X){var V=X||[];if(I.call(Y)==="[object Array]"){Array.prototype.push.apply(V,Y)}else{if(typeof Y.length==="number"){for(var W=0,U=Y.length;W<U;W++){V.push(Y[W])}}else{for(var W=0;Y[W];W++){V.push(Y[W])}}}return V}}var H;if(document.documentElement.compareDocumentPosition){H=function(V,U){var W=V.compareDocumentPosition(U)&4?-1:V===U?0:1;if(W===0){hasDuplicate=true}return W}}else{if("sourceIndex" in document.documentElement){H=function(V,U){var W=V.sourceIndex-U.sourceIndex;if(W===0){hasDuplicate=true}return W}}else{if(document.createRange){H=function(X,V){var W=X.ownerDocument.createRange(),U=V.ownerDocument.createRange();W.selectNode(X);W.collapse(true);U.selectNode(V);U.collapse(true);var Y=W.compareBoundaryPoints(Range.START_TO_END,U);if(Y===0){hasDuplicate=true}return Y}}}}(function(){var V=document.createElement("form"),W="script"+(new Date).getTime();V.innerHTML="<input name='"+W+"'/>";var U=document.documentElement;U.insertBefore(V,U.firstChild);if(!!document.getElementById(W)){J.find.ID=function(Y,Z,aa){if(typeof Z.getElementById!=="undefined"&&!aa){var X=Z.getElementById(Y[1]);return X?X.id===Y[1]||typeof X.getAttributeNode!=="undefined"&&X.getAttributeNode("id").nodeValue===Y[1]?[X]:g:[]}};J.filter.ID=function(Z,X){var Y=typeof Z.getAttributeNode!=="undefined"&&Z.getAttributeNode("id");return Z.nodeType===1&&Y&&Y.nodeValue===X}}U.removeChild(V)})();(function(){var U=document.createElement("div");U.appendChild(document.createComment(""));if(U.getElementsByTagName("*").length>0){J.find.TAG=function(V,Z){var Y=Z.getElementsByTagName(V[1]);if(V[1]==="*"){var X=[];for(var W=0;Y[W];W++){if(Y[W].nodeType===1){X.push(Y[W])}}Y=X}return Y}}U.innerHTML="<a href='#'></a>";if(U.firstChild&&typeof U.firstChild.getAttribute!=="undefined"&&U.firstChild.getAttribute("href")!=="#"){J.attrHandle.href=function(V){return V.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var U=G,V=document.createElement("div");V.innerHTML="<p class='TEST'></p>";if(V.querySelectorAll&&V.querySelectorAll(".TEST").length===0){return}G=function(Z,Y,W,X){Y=Y||document;if(!X&&Y.nodeType===9&&!R(Y)){try{return F(Y.querySelectorAll(Z),W)}catch(aa){}}return U(Z,Y,W,X)};G.find=U.find;G.filter=U.filter;G.selectors=U.selectors;G.matches=U.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var U=document.createElement("div");U.innerHTML="<div class='test e'></div><div class='test'></div>";if(U.getElementsByClassName("e").length===0){return}U.lastChild.className="e";if(U.getElementsByClassName("e").length===1){return}J.order.splice(1,0,"CLASS");J.find.CLASS=function(V,W,X){if(typeof W.getElementsByClassName!=="undefined"&&!X){return W.getElementsByClassName(V[1])}}})()}function Q(V,aa,Z,ae,ab,ad){var ac=V=="previousSibling"&&!ad;for(var X=0,W=ae.length;X<W;X++){var U=ae[X];if(U){if(ac&&U.nodeType===1){U.sizcache=Z;U.sizset=X}U=U[V];var Y=false;while(U){if(U.sizcache===Z){Y=ae[U.sizset];break}if(U.nodeType===1&&!ad){U.sizcache=Z;U.sizset=X}if(U.nodeName===aa){Y=U;break}U=U[V]}ae[X]=Y}}}function T(V,aa,Z,ae,ab,ad){var ac=V=="previousSibling"&&!ad;for(var X=0,W=ae.length;X<W;X++){var U=ae[X];if(U){if(ac&&U.nodeType===1){U.sizcache=Z;U.sizset=X}U=U[V];var Y=false;while(U){if(U.sizcache===Z){Y=ae[U.sizset];break}if(U.nodeType===1){if(!ad){U.sizcache=Z;U.sizset=X}if(typeof aa!=="string"){if(U===aa){Y=true;break}}else{if(G.filter(aa,[U]).length>0){Y=U;break}}}U=U[V]}ae[X]=Y}}}var L=document.compareDocumentPosition?function(V,U){return V.compareDocumentPosition(U)&16}:function(V,U){return V!==U&&(V.contains?V.contains(U):true)};var R=function(U){return U.nodeType===9&&U.documentElement.nodeName!=="HTML"||!!U.ownerDocument&&R(U.ownerDocument)};var K=function(U,ab){var X=[],Y="",Z,W=ab.nodeType?[ab]:ab;while((Z=J.match.PSEUDO.exec(U))){Y+=Z[0];U=U.replace(J.match.PSEUDO,"")}U=J.relative[U]?U+"*":U;for(var aa=0,V=W.length;aa<V;aa++){G(U,W[aa],X)}return G.filter(Y,X)};p.find=G;p.filter=G.filter;p.expr=G.selectors;p.expr[":"]=p.expr.filters;G.selectors.filters.hidden=function(U){return U.offsetWidth===0||U.offsetHeight===0};G.selectors.filters.visible=function(U){return U.offsetWidth>0||U.offsetHeight>0};G.selectors.filters.animated=function(U){return p.grep(p.timers,function(V){return U===V.elem}).length};p.multiFilter=function(W,U,V){if(V){W=":not("+W+")"}return G.matches(W,U)};p.dir=function(W,V){var U=[],X=W[V];while(X&&X!=document){if(X.nodeType==1){U.push(X)}X=X[V]}return U};p.nth=function(Y,U,W,X){U=U||1;var V=0;for(;Y;Y=Y[W]){if(Y.nodeType==1&&++V==U){break}}return Y};p.sibling=function(W,V){var U=[];for(;W;W=W.nextSibling){if(W.nodeType==1&&W!=V){U.push(W)}}return U};return;m.Sizzle=G})();p.event={add:function(J,G,I,L){if(J.nodeType==3||J.nodeType==8){return}if(J.setInterval&&J!=m){J=m}if(!I.guid){I.guid=this.guid++}if(L!==g){var H=I;I=this.proxy(H);I.data=L}var F=p.data(J,"events")||p.data(J,"events",{}),K=p.data(J,"handle")||p.data(J,"handle",function(){return typeof p!=="undefined"&&!p.event.triggered?p.event.handle.apply(arguments.callee.elem,arguments):g});K.elem=J;p.each(G.split(/\s+/),function(N,O){var P=O.split(".");O=P.shift();I.type=P.slice().sort().join(".");var M=F[O];if(p.event.specialAll[O]){p.event.specialAll[O].setup.call(J,L,P)}if(!M){M=F[O]={};if(!p.event.special[O]||p.event.special[O].setup.call(J,L,P)===false){if(J.addEventListener){J.addEventListener(O,K,false)}else{if(J.attachEvent){J.attachEvent("on"+O,K)}}}}M[I.guid]=I;p.event.global[O]=true});J=null},guid:1,global:{},remove:function(L,I,K){if(L.nodeType==3||L.nodeType==8){return}var H=p.data(L,"events"),G,F;if(H){if(I===g||(typeof I==="string"&&I.charAt(0)==".")){for(var J in H){this.remove(L,J+(I||""))}}else{if(I.type){K=I.handler;I=I.type}p.each(I.split(/\s+/),function(N,P){var R=P.split(".");P=R.shift();var O=RegExp("(^|\\.)"+R.slice().sort().join(".*\\.")+"(\\.|$)");if(H[P]){if(K){delete H[P][K.guid]}else{for(var Q in H[P]){if(O.test(H[P][Q].type)){delete H[P][Q]}}}if(p.event.specialAll[P]){p.event.specialAll[P].teardown.call(L,R)}for(G in H[P]){break}if(!G){if(!p.event.special[P]||p.event.special[P].teardown.call(L,R)===false){if(L.removeEventListener){L.removeEventListener(P,p.data(L,"handle"),false)}else{if(L.detachEvent){L.detachEvent("on"+P,p.data(L,"handle"))}}}G=null;delete H[P]}}})}for(G in H){break}if(!G){var M=p.data(L,"handle");if(M){M.elem=null}p.removeData(L,"events");p.removeData(L,"handle")}}},trigger:function(J,L,I,F){var H=J.type||J;if(!F){J=typeof J==="object"?J[h]?J:p.extend(p.Event(H),J):p.Event(H);if(H.indexOf("!")>=0){J.type=H=H.slice(0,-1);J.exclusive=true}if(!I){J.stopPropagation();if(this.global[H]){p.each(p.cache,function(){if(this.events&&this.events[H]){p.event.trigger(J,L,this.handle.elem)}})}}if(!I||I.nodeType==3||I.nodeType==8){return g}J.result=g;J.target=I;L=p.makeArray(L);L.unshift(J)}J.currentTarget=I;var K=p.data(I,"handle");if(K){K.apply(I,L)}if((!I[H]||(p.nodeName(I,"a")&&H=="click"))&&I["on"+H]&&I["on"+H].apply(I,L)===false){J.result=false}if(!F&&I[H]&&!J.isDefaultPrevented()&&!(p.nodeName(I,"a")&&H=="click")){this.triggered=true;try{I[H]()}catch(M){}}this.triggered=false;if(!J.isPropagationStopped()){var G=I.parentNode||I.ownerDocument;if(G){p.event.trigger(J,L,G,true)}}},handle:function(L){var K,F;L=arguments[0]=p.event.fix(L||m.event);L.currentTarget=this;var M=L.type.split(".");L.type=M.shift();K=!M.length&&!L.exclusive;var J=RegExp("(^|\\.)"+M.slice().sort().join(".*\\.")+"(\\.|$)");F=(p.data(this,"events")||{})[L.type];for(var H in F){var I=F[H];if(K||J.test(I.type)){L.handler=I;L.data=I.data;var G=I.apply(this,arguments);if(G!==g){L.result=G;if(G===false){L.preventDefault();L.stopPropagation()}}if(L.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(I){if(I[h]){return I}var G=I;I=p.Event(G);for(var H=this.props.length,K;H;){K=this.props[--H];I[K]=G[K]}if(!I.target){I.target=I.srcElement||document}if(I.target.nodeType==3){I.target=I.target.parentNode}if(!I.relatedTarget&&I.fromElement){I.relatedTarget=I.fromElement==I.target?I.toElement:I.fromElement}if(I.pageX==null&&I.clientX!=null){var J=document.documentElement,F=document.body;I.pageX=I.clientX+(J&&J.scrollLeft||F&&F.scrollLeft||0)-(J.clientLeft||0);I.pageY=I.clientY+(J&&J.scrollTop||F&&F.scrollTop||0)-(J.clientTop||0)}if(!I.which&&((I.charCode||I.charCode===0)?I.charCode:I.keyCode)){I.which=I.charCode||I.keyCode}if(!I.metaKey&&I.ctrlKey){I.metaKey=I.ctrlKey}if(!I.which&&I.button){I.which=(I.button&1?1:(I.button&2?3:(I.button&4?2:0)))}return I},proxy:function(G,F){F=F||function(){return G.apply(this,arguments)};F.guid=G.guid=G.guid||F.guid||this.guid++;return F},special:{ready:{setup:C,teardown:function(){}}},specialAll:{live:{setup:function(F,G){p.event.add(this,G[0],c)},teardown:function(H){if(H.length){var F=0,G=RegExp("(^|\\.)"+H[0]+"(\\.|$)");p.each((p.data(this,"events").live||{}),function(){if(G.test(this.type)){F++}});if(F<1){p.event.remove(this,H[0],c)}}}}}};p.Event=function(F){if(!this.preventDefault){return new p.Event(F)}if(F&&F.type){this.originalEvent=F;this.type=F.type}else{this.type=F}this.timeStamp=e();this[h]=true};function l(){return false}function v(){return true}p.Event.prototype={preventDefault:function(){this.isDefaultPrevented=v;var F=this.originalEvent;if(!F){return}if(F.preventDefault){F.preventDefault()}F.returnValue=false},stopPropagation:function(){this.isPropagationStopped=v;var F=this.originalEvent;if(!F){return}if(F.stopPropagation){F.stopPropagation()}F.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=v;this.stopPropagation()},isDefaultPrevented:l,isPropagationStopped:l,isImmediatePropagationStopped:l};var a=function(G){var F=G.relatedTarget;while(F&&F!=this){try{F=F.parentNode}catch(H){F=this}}if(F!=this){G.type=G.data;p.event.handle.apply(this,arguments)}};p.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(G,F){p.event.special[F]={setup:function(){p.event.add(this,G,a,F)},teardown:function(){p.event.remove(this,G,a)}}});p.fn.extend({bind:function(G,H,F){return G=="unload"?this.one(G,H,F):this.each(function(){p.event.add(this,G,F||H,F&&H)})},one:function(H,I,G){var F=p.event.proxy(G||I,function(J){p(this).unbind(J,F);return(G||I).apply(this,arguments)});return this.each(function(){p.event.add(this,H,F,G&&I)})},unbind:function(G,F){return this.each(function(){p.event.remove(this,G,F)})},trigger:function(F,G){return this.each(function(){p.event.trigger(F,G,this)})},triggerHandler:function(F,H){if(this[0]){var G=p.Event(F);G.preventDefault();G.stopPropagation();p.event.trigger(G,H,this[0]);return G.result}},toggle:function(H){var F=arguments,G=1;while(G<F.length){p.event.proxy(H,F[G++])}return this.click(p.event.proxy(H,function(I){this.lastToggle=(this.lastToggle||0)%G;I.preventDefault();return F[this.lastToggle++].apply(this,arguments)||false}))},hover:function(F,G){return this.mouseenter(F).mouseleave(G)},ready:function(F){C();if(p.isReady){F.call(document,p)}else{p.readyList.push(F)}return this},live:function(H,G){var F=p.event.proxy(G);F.guid+=this.selector+H;p(document).bind(j(H,this.selector),this.selector,F);return this},die:function(G,F){p(document).unbind(j(G,this.selector),F?{guid:F.guid+this.selector+G}:null);return this}});function c(I){var F=RegExp("(^|\\.)"+I.type+"(\\.|$)"),H=true,G=[];p.each(p.data(this,"events").live||[],function(J,K){if(F.test(K.type)){var L=p(I.target).closest(K.data)[0];if(L){G.push({elem:L,fn:K})}}});G.sort(function(K,J){return p.data(K.elem,"closest")-p.data(J.elem,"closest")});p.each(G,function(){if(this.fn.call(this.elem,I,this.fn.data)===false){return(H=false)}});return H}function j(G,F){return["live",G,F.replace(/\./g,"`").replace(/ /g,"|")].join(".")}p.extend({isReady:false,readyList:[],ready:function(){if(!p.isReady){p.isReady=true;if(p.readyList){p.each(p.readyList,function(){this.call(document,p)});p.readyList=null}p(document).triggerHandler("ready")}}});var y=false;function C(){if(y){return}y=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);p.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);p.ready()}});if(document.documentElement.doScroll&&m==m.top){(function(){if(p.isReady){return}try{document.documentElement.doScroll("left")}catch(F){setTimeout(arguments.callee,0);return}p.ready()})()}}}p.event.add(m,"load",p.ready)}p.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(G,F){p.fn[F]=function(H){return H?this.bind(F,H):this.trigger(F)}});p(m).bind("unload",function(){for(var F in p.cache){if(F!=1&&p.cache[F].handle){p.event.remove(p.cache[F].handle.elem)}}});(function(){p.support={};var G=document.documentElement,H=document.createElement("script"),L=document.createElement("div"),K="script"+(new Date).getTime();L.style.display="none";L.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 I=L.getElementsByTagName("*"),F=L.getElementsByTagName("a")[0];if(!I||!I.length||!F){return}p.support={leadingWhitespace:L.firstChild.nodeType==3,tbody:!L.getElementsByTagName("tbody").length,objectAll:!!L.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!L.getElementsByTagName("link").length,style:/red/.test(F.getAttribute("style")),hrefNormalized:F.getAttribute("href")==="/a",opacity:F.style.opacity==="0.5",cssFloat:!!F.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};H.type="text/javascript";try{H.appendChild(document.createTextNode("window."+K+"=1;"))}catch(J){}G.insertBefore(H,G.firstChild);if(m[K]){p.support.scriptEval=true;delete m[K]}G.removeChild(H);if(L.attachEvent&&L.fireEvent){L.attachEvent("onclick",function(){p.support.noCloneEvent=false;L.detachEvent("onclick",arguments.callee)});L.cloneNode(true).fireEvent("onclick")}p(function(){var M=document.createElement("div");M.style.width=M.style.paddingLeft="1px";document.body.appendChild(M);p.boxModel=p.support.boxModel=M.offsetWidth===2;document.body.removeChild(M).style.display="none"})})();var x=p.support.cssFloat?"cssFloat":"styleFloat";p.props={"for":"htmlFor","class":"className","float":x,cssFloat:x,styleFloat:x,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};p.fn.extend({_load:p.fn.load,load:function(H,K,L){if(typeof H!=="string"){return this._load(H)}var J=H.indexOf(" ");if(J>=0){var F=H.slice(J,H.length);H=H.slice(0,J)}var I="GET";if(K){if(p.isFunction(K)){L=K;K=null}else{if(typeof K==="object"){K=p.param(K);I="POST"}}}var G=this;p.ajax({url:H,type:I,dataType:"html",data:K,complete:function(N,M){if(M=="success"||M=="notmodified"){G.html(F?p("<div/>").append(N.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(F):N.responseText)}if(L){G.each(L,[N.responseText,M,N])}}});return this},serialize:function(){return p.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?p.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(F,G){var H=p(this).val();return H==null?null:p.isArray(H)?p.map(H,function(J,I){return{name:G.name,value:J}}):{name:G.name,value:H}}).get()}});p.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(F,G){p.fn[G]=function(H){return this.bind(G,H)}});var s=e();p.extend({get:function(F,H,I,G){if(p.isFunction(H)){I=H;H=null}return p.ajax({type:"GET",url:F,data:H,success:I,dataType:G})},getScript:function(F,G){return p.get(F,null,G,"script")},getJSON:function(F,G,H){return p.get(F,G,H,"json")},post:function(F,H,I,G){if(p.isFunction(H)){I=H;H={}}return p.ajax({type:"POST",url:F,data:H,success:I,dataType:G})},ajaxSetup:function(F){p.extend(p.ajaxSettings,F)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return m.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(N){N=p.extend(true,N,p.extend(true,{},p.ajaxSettings,N));var X,G=/=\?(&|$)/g,S,W,H=N.type.toUpperCase();if(N.data&&N.processData&&typeof N.data!=="string"){N.data=p.param(N.data)}if(N.dataType=="jsonp"){if(H=="GET"){if(!N.url.match(G)){N.url+=(N.url.match(/\?/)?"&":"?")+(N.jsonp||"callback")+"=?"}}else{if(!N.data||!N.data.match(G)){N.data=(N.data?N.data+"&":"")+(N.jsonp||"callback")+"=?"}}N.dataType="json"}if(N.dataType=="json"&&(N.data&&N.data.match(G)||N.url.match(G))){X="jsonp"+s++;if(N.data){N.data=(N.data+"").replace(G,"="+X+"$1")}N.url=N.url.replace(G,"="+X+"$1");N.dataType="script";m[X]=function(Y){W=Y;J();M();m[X]=g;try{delete m[X]}catch(Z){}if(I){I.removeChild(U)}}}if(N.dataType=="script"&&N.cache==null){N.cache=false}if(N.cache===false&&H=="GET"){var F=e();var V=N.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+F+"$2");N.url=V+((V==N.url)?(N.url.match(/\?/)?"&":"?")+"_="+F:"")}if(N.data&&H=="GET"){N.url+=(N.url.match(/\?/)?"&":"?")+N.data;N.data=null}if(N.global&&!p.active++){p.event.trigger("ajaxStart")}var R=/^(\w+:)?\/\/([^\/?#]+)/.exec(N.url);if(N.dataType=="script"&&H=="GET"&&R&&(R[1]&&R[1]!=location.protocol||R[2]!=location.host)){var I=document.getElementsByTagName("head")[0];var U=document.createElement("script");U.src=N.url;if(N.scriptCharset){U.charset=N.scriptCharset}if(!X){var P=false;U.onload=U.onreadystatechange=function(){if(!P&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){P=true;J();M();U.onload=U.onreadystatechange=null;I.removeChild(U)}}}I.appendChild(U);return g}var L=false;var K=N.xhr();if(N.username){K.open(H,N.url,N.async,N.username,N.password)}else{K.open(H,N.url,N.async)}try{if(N.data){K.setRequestHeader("Content-Type",N.contentType)}if(N.ifModified){K.setRequestHeader("If-Modified-Since",p.lastModified[N.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}K.setRequestHeader("X-Requested-With","XMLHttpRequest");K.setRequestHeader("Accept",N.dataType&&N.accepts[N.dataType]?N.accepts[N.dataType]+", */*":N.accepts._default)}catch(T){}if(N.beforeSend&&N.beforeSend(K,N)===false){if(N.global&&!--p.active){p.event.trigger("ajaxStop")}K.abort();return false}if(N.global){p.event.trigger("ajaxSend",[K,N])}var O=function(Y){if(K.readyState==0){if(Q){clearInterval(Q);Q=null;if(N.global&&!--p.active){p.event.trigger("ajaxStop")}}}else{if(!L&&K&&(K.readyState==4||Y=="timeout")){L=true;if(Q){clearInterval(Q);Q=null}S=Y=="timeout"?"timeout":!p.httpSuccess(K)?"error":N.ifModified&&p.httpNotModified(K,N.url)?"notmodified":"success";if(S=="success"){try{W=p.httpData(K,N.dataType,N)}catch(aa){S="parsererror"}}if(S=="success"){var Z;try{Z=K.getResponseHeader("Last-Modified")}catch(aa){}if(N.ifModified&&Z){p.lastModified[N.url]=Z}if(!X){J()}}else{p.handleError(N,K,S)}M();if(Y){K.abort()}if(N.async){K=null}}}};if(N.async){var Q=setInterval(O,13);if(N.timeout>0){setTimeout(function(){if(K&&!L){O("timeout")}},N.timeout)}}try{K.send(N.data)}catch(T){p.handleError(N,K,null,T)}if(!N.async){O()}function J(){if(N.success){N.success(W,S)}if(N.global){p.event.trigger("ajaxSuccess",[K,N])}}function M(){if(N.complete){N.complete(K,S)}if(N.global){p.event.trigger("ajaxComplete",[K,N])}if(N.global&&!--p.active){p.event.trigger("ajaxStop")}}return K},handleError:function(G,I,F,H){if(G.error){G.error(I,F,H)}if(G.global){p.event.trigger("ajaxError",[I,G,H])}},active:0,httpSuccess:function(G){try{return !G.status&&location.protocol=="file:"||(G.status>=200&&G.status<300)||G.status==304||G.status==1223}catch(F){}return false},httpNotModified:function(H,F){try{var I=H.getResponseHeader("Last-Modified");return H.status==304||I==p.lastModified[F]}catch(G){}return false},httpData:function(K,I,H){var G=K.getResponseHeader("content-type"),F=I=="xml"||!I&&G&&G.indexOf("xml")>=0,J=F?K.responseXML:K.responseText;if(F&&J.documentElement.tagName=="parsererror"){throw"parsererror"}if(H&&H.dataFilter){J=H.dataFilter(J,I)}if(typeof J==="string"){if(I=="script"){p.globalEval(J)}if(I=="json"){J=m["eval"]("("+J+")")}}return J},param:function(F){var H=[];function I(J,K){H[H.length]=encodeURIComponent(J)+"="+encodeURIComponent(K)}if(p.isArray(F)||F.jquery){p.each(F,function(){I(this.name,this.value)})}else{for(var G in F){if(p.isArray(F[G])){p.each(F[G],function(){I(G,this)})}else{I(G,p.isFunction(F[G])?F[G]():F[G])}}}return H.join("&").replace(/%20/g,"+")}});var n={},o,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function u(G,F){var H={};p.each(d.concat.apply([],d.slice(0,F)),function(){H[this]=G});return H}p.fn.extend({show:function(K,M){if(K){return this.animate(u("show",3),K,M)}else{for(var I=0,G=this.length;I<G;I++){var F=p.data(this[I],"olddisplay");this[I].style.display=F||"";if(p.css(this[I],"display")==="none"){var H=this[I].tagName,L;if(n[H]){L=n[H]}else{var J=p("<"+H+" />").appendTo("body");L=J.css("display");if(L==="none"){L="block"}J.remove();n[H]=L}p.data(this[I],"olddisplay",L)}}for(var I=0,G=this.length;I<G;I++){this[I].style.display=p.data(this[I],"olddisplay")||""}return this}},hide:function(I,J){if(I){return this.animate(u("hide",3),I,J)}else{for(var H=0,G=this.length;H<G;H++){var F=p.data(this[H],"olddisplay");if(!F&&F!=="none"){p.data(this[H],"olddisplay",p.css(this[H],"display"))}}for(var H=0,G=this.length;H<G;H++){this[H].style.display="none"}return this}},_toggle:p.fn.toggle,toggle:function(H,G){var F=typeof H==="boolean";return p.isFunction(H)&&p.isFunction(G)?this._toggle.apply(this,arguments):H==null||F?this.each(function(){var I=F?H:p(this).is(":hidden");p(this)[I?"show":"hide"]()}):this.animate(u("toggle",3),H,G)},fadeTo:function(F,H,G){return this.animate({opacity:H},F,G)},animate:function(J,G,I,H){var F=p.speed(G,I,H);return this[F.queue===false?"each":"queue"](function(){var L=p.extend({},F),N,M=this.nodeType==1&&p(this).is(":hidden"),K=this;for(N in J){if(J[N]=="hide"&&M||J[N]=="show"&&!M){return L.complete.call(this)}if((N=="height"||N=="width")&&this.style){L.display=p.css(this,"display");L.overflow=this.style.overflow}}if(L.overflow!=null){this.style.overflow="hidden"}L.curAnim=p.extend({},J);p.each(J,function(P,T){var S=new p.fx(K,L,P);if(/toggle|show|hide/.test(T)){S[T=="toggle"?M?"show":"hide":T](J)}else{var R=T.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),U=S.cur(true)||0;if(R){var O=parseFloat(R[2]),Q=R[3]||"px";if(Q!="px"){K.style[P]=(O||1)+Q;U=((O||1)/S.cur(true))*U;K.style[P]=U+Q}if(R[1]){O=((R[1]=="-="?-1:1)*O)+U}S.custom(U,O,Q)}else{S.custom(U,T,"")}}});return true})},stop:function(G,F){var H=p.timers;if(G){this.queue([])}this.each(function(){for(var I=H.length-1;I>=0;I--){if(H[I].elem==this){if(F){H[I](true)}H.splice(I,1)}}});if(!F){this.dequeue()}return this}});p.each({slideDown:u("show",1),slideUp:u("hide",1),slideToggle:u("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(F,G){p.fn[F]=function(H,I){return this.animate(G,H,I)}});p.extend({speed:function(H,I,G){var F=typeof H==="object"?H:{complete:G||!G&&I||p.isFunction(H)&&H,duration:H,easing:G&&I||I&&!p.isFunction(I)&&I};F.duration=p.fx.off?0:typeof F.duration==="number"?F.duration:p.fx.speeds[F.duration]||p.fx.speeds._default;F.old=F.complete;F.complete=function(){if(F.queue!==false){p(this).dequeue()}if(p.isFunction(F.old)){F.old.call(this)}};return F},easing:{linear:function(H,I,F,G){return F+G*H},swing:function(H,I,F,G){return((-Math.cos(H*Math.PI)/2)+0.5)*G+F}},timers:[],fx:function(G,F,H){this.options=F;this.elem=G;this.prop=H;if(!F.orig){F.orig={}}}});p.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(p.fx.step[this.prop]||p.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(G){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var F=parseFloat(p.css(this.elem,this.prop,G));return F&&F>-10000?F:parseFloat(p.curCSS(this.elem,this.prop))||0},custom:function(J,I,H){this.startTime=e();this.start=J;this.end=I;this.unit=H||this.unit||"px";this.now=this.start;this.pos=this.state=0;var F=this;function G(K){return F.step(K)}G.elem=this.elem;if(G()&&p.timers.push(G)&&!o){o=setInterval(function(){var L=p.timers;for(var K=0;K<L.length;K++){if(!L[K]()){L.splice(K--,1)}}if(!L.length){clearInterval(o);o=g}},13)}},show:function(){this.options.orig[this.prop]=p.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());p(this.elem).show()},hide:function(){this.options.orig[this.prop]=p.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(I){var H=e();if(I||H>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var F=true;for(var G in this.options.curAnim){if(this.options.curAnim[G]!==true){F=false}}if(F){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(p.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){p(this.elem).hide()}if(this.options.hide||this.options.show){for(var J in this.options.curAnim){p.attr(this.elem.style,J,this.options.orig[J])}}this.options.complete.call(this.elem)}return false}else{var K=H-this.startTime;this.state=K/this.options.duration;this.pos=p.easing[this.options.easing||(p.easing.swing?"swing":"linear")](this.state,K,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};p.extend(p.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(F){p.attr(F.elem.style,"opacity",F.now)},_default:function(F){if(F.elem.style&&F.elem.style[F.prop]!=null){F.elem.style[F.prop]=F.now+F.unit}else{F.elem[F.prop]=F.now}}}});if(document.documentElement.getBoundingClientRect){p.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return p.offset.bodyOffset(this[0])}var H=this[0].getBoundingClientRect(),K=this[0].ownerDocument,G=K.body,F=K.documentElement,M=F.clientTop||G.clientTop||0,L=F.clientLeft||G.clientLeft||0,J=H.top+(self.pageYOffset||p.boxModel&&F.scrollTop||G.scrollTop)-M,I=H.left+(self.pageXOffset||p.boxModel&&F.scrollLeft||G.scrollLeft)-L;return{top:J,left:I}}}else{p.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return p.offset.bodyOffset(this[0])}p.offset.initialized||p.offset.initialize();var K=this[0],H=K.offsetParent,G=K,P=K.ownerDocument,N,I=P.documentElement,L=P.body,M=P.defaultView,F=M.getComputedStyle(K,null),O=K.offsetTop,J=K.offsetLeft;while((K=K.parentNode)&&K!==L&&K!==I){N=M.getComputedStyle(K,null);O-=K.scrollTop,J-=K.scrollLeft;if(K===H){O+=K.offsetTop,J+=K.offsetLeft;if(p.offset.doesNotAddBorder&&!(p.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(K.tagName))){O+=parseInt(N.borderTopWidth,10)||0,J+=parseInt(N.borderLeftWidth,10)||0}G=H,H=K.offsetParent}if(p.offset.subtractsBorderForOverflowNotVisible&&N.overflow!=="visible"){O+=parseInt(N.borderTopWidth,10)||0,J+=parseInt(N.borderLeftWidth,10)||0}F=N}if(F.position==="relative"||F.position==="static"){O+=L.offsetTop,J+=L.offsetLeft}if(F.position==="fixed"){O+=Math.max(I.scrollTop,L.scrollTop),J+=Math.max(I.scrollLeft,L.scrollLeft)}return{top:O,left:J}}}p.offset={initialize:function(){if(this.initialized){return}var M=document.body,G=document.createElement("div"),I,H,O,J,N,F,K=M.style.marginTop,L='<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>';N={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(F in N){G.style[F]=N[F]}G.innerHTML=L;M.insertBefore(G,M.firstChild);I=G.firstChild,H=I.firstChild,J=I.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(H.offsetTop!==5);this.doesAddBorderForTableAndCells=(J.offsetTop===5);I.style.overflow="hidden",I.style.position="relative";this.subtractsBorderForOverflowNotVisible=(H.offsetTop===-5);M.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(M.offsetTop===0);M.style.marginTop=K;M.removeChild(G);this.initialized=true},bodyOffset:function(F){p.offset.initialized||p.offset.initialize();var H=F.offsetTop,G=F.offsetLeft;if(p.offset.doesNotIncludeMarginInBodyOffset){H+=parseInt(p.curCSS(F,"marginTop",true),10)||0,G+=parseInt(p.curCSS(F,"marginLeft",true),10)||0}return{top:H,left:G}}};p.fn.extend({position:function(){var J=0,I=0,G;if(this[0]){var H=this.offsetParent(),K=this.offset(),F=/^body|html$/i.test(H[0].tagName)?{top:0,left:0}:H.offset();K.top-=k(this,"marginTop");K.left-=k(this,"marginLeft");F.top+=k(H,"borderTopWidth");F.left+=k(H,"borderLeftWidth");G={top:K.top-F.top,left:K.left-F.left}}return G},offsetParent:function(){var F=this[0].offsetParent||document.body;while(F&&(!/^body|html$/i.test(F.tagName)&&p.css(F,"position")=="static")){F=F.offsetParent}return p(F)}});p.each(["Left","Top"],function(G,F){var H="scroll"+F;p.fn[H]=function(I){if(!this[0]){return null}return I!==g?this.each(function(){this==m||this==document?m.scrollTo(!G?I:p(m).scrollLeft(),G?I:p(m).scrollTop()):this[H]=I}):this[0]==m||this[0]==document?self[G?"pageYOffset":"pageXOffset"]||p.boxModel&&document.documentElement[H]||document.body[H]:this[0][H]}});p.each(["Height","Width"],function(J,H){var F=J?"Left":"Top",I=J?"Right":"Bottom",G=H.toLowerCase();p.fn["inner"+H]=function(){return this[0]?p.css(this[0],G,false,"padding"):null};p.fn["outer"+H]=function(L){return this[0]?p.css(this[0],G,false,L?"margin":"border"):null};var K=H.toLowerCase();p.fn[K]=function(L){return this[0]==m?document.compatMode=="CSS1Compat"&&document.documentElement["client"+H]||document.body["client"+H]:this[0]==document?Math.max(document.documentElement["client"+H],document.body["scroll"+H],document.documentElement["scroll"+H],document.body["offset"+H],document.documentElement["offset"+H]):L===g?(this.length?p.css(this[0],K):null):this.css(K,typeof L==="string"?L:L+"px")}})})();(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;this.defaults.name=name},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single="metadata"}var data=$.data(elem,settings.single);if(data){return data}data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m){data=m[1]}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return}var e=elem.getElementsByTagName(settings.name);if(e.length){data=$.trim(e[0].innerHTML)}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr){data=attr}}}}if(data.indexOf("{")<0){data="{"+data+"}"}data=eval("("+data+")");$.data(elem,settings.single,data);return data}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts)}})(jQuery);(function(a){a.trim=function(b){return typeof b!="string"?b:(b||"").replace(/^\s+|\s+$/g,"")};a.param=function(b,d){var e=[];function f(g,h,j){if(!d||a.trim(h)){e[e.length]=encodeURIComponent(g)+(j?"[]=":"=")+encodeURIComponent(h)}}if(jQuery.isArray(b)||b.jquery){jQuery.each(b,function(){f(this.name,this.value)})}else{for(var c in b){if(jQuery.isArray(b[c])){jQuery.each(b[c],function(){f(c,this,true)})}else{f(c,jQuery.isFunction(b[c])?b[c]():b[c])}}}return e.join("&").replace(/%20/g,"+")}})(jQuery);(function(a){a.event.special.mousewheel={setup:function(){var b=a.event.special.mousewheel.handler;if(a.browser.mozilla){a(this).bind("mousemove.mousewheel",function(c){a.data(this,"mwcursorposdata",{pageX:c.pageX,pageY:c.pageY,clientX:c.clientX,clientY:c.clientY})})}if(this.addEventListener){this.addEventListener((a.browser.mozilla?"DOMMouseScroll":"mousewheel"),b,false)}else{this.onmousewheel=b}},teardown:function(){var b=a.event.special.mousewheel.handler;a(this).unbind("mousemove.mousewheel");if(this.removeEventListener){this.removeEventListener((a.browser.mozilla?"DOMMouseScroll":"mousewheel"),b,false)}else{this.onmousewheel=function(){}}a.removeData(this,"mwcursorposdata")},handler:function(d){var b=Array.prototype.slice.call(arguments,1);d=a.event.fix(d||window.event);a.extend(d,a.data(this,"mwcursorposdata")||{});var e=0,c=true;if(d.wheelDelta){e=d.wheelDelta/120}if(d.detail){e=-d.detail/3}if(a.browser.opera){e=-d.wheelDelta}d.data=d.data||{};d.type="mousewheel";b.unshift(e);b.unshift(d);return a.event.handle.apply(this,b)}};a.fn.extend({mousewheel:function(b){return b?this.bind("mousewheel",b):this.trigger("mousewheel")},unmousewheel:function(b){return this.unbind("mousewheel",b)}})})(jQuery);(function(a){a.fn.hoverIntent=function(l,k){var m={sensitivity:7,interval:100,timeout:0};m=a.extend(m,k?{over:l,out:k}:l);var o,n,h,d;var e=function(f){o=f.pageX;n=f.pageY};var c=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);if((Math.abs(h-o)+Math.abs(d-n))<m.sensitivity){a(f).unbind("mousemove",e);f.hoverIntent_s=1;return m.over.apply(f,[g])}else{h=o;d=n;f.hoverIntent_t=setTimeout(function(){c(g,f)},m.interval)}};var j=function(g,f){f.hoverIntent_t=clearTimeout(f.hoverIntent_t);f.hoverIntent_s=0;return m.out.apply(f,[g])};var b=function(r){var q=(r.type=="mouseover"?r.fromElement:r.toElement)||r.relatedTarget;while(q&&q!=this){try{q=q.parentNode}catch(r){q=this}}if(q==this){return false}var g=jQuery.extend({},r);var f=this;if(f.hoverIntent_t){f.hoverIntent_t=clearTimeout(f.hoverIntent_t)}if(r.type=="mouseover"){h=g.pageX;d=g.pageY;a(f).bind("mousemove",e);if(f.hoverIntent_s!=1){f.hoverIntent_t=setTimeout(function(){c(g,f)},m.interval)}}else{a(f).unbind("mousemove",e);if(f.hoverIntent_s==1){f.hoverIntent_t=setTimeout(function(){j(g,f)},m.timeout)}}};return this.mouseover(b).mouseout(b)}})(jQuery);(function(a){a.ajaxNav={version:0.93,lastHash:false,defaults:{ajaxFile:window.location.protocol+"//"+window.location.host+window.location.pathname,ajaxParams:{},hash:true,preload:true,target:false,dimensional:true,workspace:false,createWorkspace:false,createViewport:false,fixViewport:false,onShow:function(){},onNavigate:function(){},callback:false,subMenu:false,classActive:"activeItem",processBackLinks:true,trackGA:false,useOverlay:false,keyNav:false,windowResize:false,fade:true,find:false,fx:{showViewport:"fadeIn",hideViewport:"fadeOut"},offset:[50,50],buttons:false,dragDrop:false,easing:"easeInOutCubic"},parseGetParameters:function(e){var h={},d,c,b,g,f;if((e||(!noEnv&&(e=window.location.search)))&&(d=e.indexOf("?"))!==-1){c=e.substring(d+1).split(/&amp;|&/);for(g=0;g<c.length;g++){b=c[g].split("=");f=b.shift();b=b.join("=");h[f]=(typeof(b)!="undefined")?decodeURIComponent(b):""}}return h},cache:[],init:function(b){var d=b.options;if(b.mainNav.is(".ajaxNav")){return}if((d.workspace||d.workspace.length)&&(!d.target||!d.target.length)){b.mainNav.filter("."+d.classActive).each(function(){var e=this.href,g=a.extend(a.ajaxNav.parseGetParameters(e),b.options.ajaxParams);var f=e.split("?").shift();a.getJSON(encodeURI(f),g,function(h){content=a(h.content);if(b.options.find){content=content.find(b.options.find)}d.target=content.hide().appendTo(a(d.workspace));if(d.callback){callback.apply(d.target)}d.target.fadeIn(function(){if(d.onShow){d.onShow.apply(d.target)}a.ajaxNav.init(b)})})});return}this.cache.push(b);b.root=d.root||window.location.protocol+"//"+window.location.hostname+window.location.pathname;b.backLinkLog={};b.backHashLog={};if(b.options.keyNav){b.backLinkLog[b.root]=[0,0]}if((!d.workspace||!d.workspace.length)&&(!d.target||!d.target.length)){return}b.mainNav.each(function(e){if(a(this).is("."+d.classActive)){b.activeItem=[e,0]}});if(d.subMenu){a(d.subMenu,c).each(function(e){if(a(this).is("."+d.classActive)){b.activeItem[1]=e}})}this.createNav(b,b,b.mainNav);if(b.activeItem[0]==-1){b.nav[-1]={nav:[]};b.nav[-1].nav[b.activeItem[1]]={}}if(d.subMenu){this.createSubMenu(b,b.activeItem,true)}b.currentTarget=b.activeItem;var c=this.getNav(b,b.activeItem)["target"]=d.target?a(d.target):a(":first-child",d.workspace);if(!c.length){return}b.workspace=d.workspace?a(d.workspace):d.createWorkspace?c.wrap("<div/>").parent():a(c).parent();b.viewport=d.createViewport?b.workspace.wrap("<div/>").parent():b.workspace.parent();b.workspace.addClass("ajaxNav_workspace");b.viewport.addClass("ajaxNav_viewport");if(a.browser.msie){b.viewport.add(b.workspace).css("zoom",1)}b.mainNav.bind("showViewport",function(f,e,g){b.hidden=false;b.viewport[d.fx.showViewport]()}).bind("hideViewport",function(f,e,g){b.hidden=true;b.viewport[d.fx.hideViewport]()});b.contentWidth=c.width();if(d.buttons){this.initButtons(b)}if(d.dimensional){b.contentHeight=c.height()||c.append('<div style="clear: both" />').height();b.contentOuterWidth=c.outerWidth();b.contentOuterHeight=c.outerHeight();b.windowWidth=a(window).width();b.left=b.viewport.width()/2-5000;b.top=0;if(d.fixViewport){b.viewport.css({overflow:"hidden",width:b.viewport.width(),height:b.viewport.height(),position:b.viewport.css("position")=="absolute"?"absolute":"relative"})}b.workspace.css({width:10000,height:10000,position:"absolute",left:b.left,top:b.top,textAlign:"center"});c.css({cursor:"auto",textAlign:"left",position:"absolute",top:c.position().top,left:5000-b.contentOuterWidth/2,width:b.contentWidth,height:b.contentHeight})}else{b.workspace.css({position:b.workspace.css("position")=="absolute"?"absolute":"relative"});c.css({width:b.contentWidth})}if(d.dragDrop){b.workspace.css({cursor:"move"}).bind("mousedown.ajaxNav",function(f){a.ajaxNav.drag.start(f,b)})}if(d.windowResize){a(window).bind("resize.ajaxNav",a.ajaxNav.setPosition)}if(d.useOverlay&&!this.compare(b.activeItem,[-1,-1])){this.addOverlay(b,b.activeItem)}if(d.keyNav){this.initKeyNav(b)}if(b.options.preload){setTimeout(function(){a.ajaxNav.preloadNeighbors(b)},500)}if(d.hash){this.setHash(b,b.activeItem,true);if(!this.hashEnabled){this.hashEnabled=true;if(a.fn.hashchange){a(window).hashchange(a.ajaxNav.hashchange)}else{setInterval(a.ajaxNav.hashchange,100)}}}if(d.buttons){this.setButtons(b)}this.processBackLinks(b);return b},initButtons:function(c){c.buttons={};var d;for(d in c.options.buttons){if(this.nav[d]){var b=c.options.buttons[d];c.buttons[d]=(b.constructor==String)?a("<img/>").css("cursor","pointer").attr({src:c.options.buttons[d],alt:d}).addClass(d).appendTo(c.viewport.parent()):b;c.buttons[d].addClass("ajaxNav").bind("click.ajaxNav",function(f){f.preventDefault();this.blur();a.ajaxNav.nav[a(this).data("action")](c)});c.buttons[d].data("action",d)}}},initKeyNav:function(b){a(document).bind("keydown.ajaxNav",function(f){if(a(f.target).is(":input")){return true}var d=false,c=false;if(37==f.keyCode){d="left"}else{if(39==f.keyCode){d="right"}else{if(38==f.keyCode){d="up"}else{if(40==f.keyCode){d="down"}}}}if(d){c=a.ajaxNav.nav[d](b)}if(c){f.preventDefault();f.stopPropagation()}return !c})},setButtons:function(d){var c=d.buttons;if(!c){return}if(c.left){c.left[this.getNav(d,d.activeItem[0]-1)?"show":"hide"]()}if(c.right){c.right[this.getNav(d,d.activeItem[0]+1)?"show":"hide"]()}if(c.up){c.up[this.getNav(d,[d.activeItem[0],d.activeItem[1]-1])?"show":"hide"]()}if(c.down){c.down[this.getNav(d,[d.activeItem[0],d.activeItem[1]+1])?"show":"hide"]()}},nav:{left:function(b){return a.ajaxNav.navigate(b,[b.activeItem[0]-1,b.activeItem[1]])},right:function(b){return a.ajaxNav.navigate(b,[b.activeItem[0]+1,b.activeItem[1]])},up:function(b){return a.ajaxNav.navigate(b,[b.activeItem[0],b.activeItem[1]-1])},down:function(b){return a.ajaxNav.navigate(b,[b.activeItem[0],b.activeItem[1]+1])}},drag:{start:function(c,b){if(c.target!=b.workspace[0]){return true}b.drag={x:-c.clientX+b.left,y:-c.clientY+b.top+b.topOffset,startX:c.clientX,startY:c.clientY};a(window).bind("mousemove.ajaxNav",function(d){a.ajaxNav.drag.drag(d,b)});a(window).one("mouseup.ajaxNav",function(d){a.ajaxNav.drag.stop(d,b)})},drag:function(c,b){b.workspace[0].style.left=(b.drag.x+c.clientX)+"px";b.workspace[0].style.top=(b.drag.y+c.clientY)+"px";return false},stop:function(c,b){a(window).unbind("mousemove.ajaxNav");a.ajaxNav.setPosition(b)}},createSubMenu:function(c,e){var d=this.getNav(c,e[0]);var b=a(c.options.subMenu,this.getNav(c,e,"target"));this.createNav(c,d,b,e[0]);this.processBackLinks(c)},createNav:function(d,b,e,c){if(!b.nav){b.nav=[]}e.each(function(g){var f=a(this);if(a(this).is(".ajaxNav")){return}var h=typeof c!=="undefined"?[c,g]:[g,0];if(!b.nav[g]){b.nav[g]={url:this.href,el:this,backLinks:[this],target:false,ajaxParams:a.metadata?(f.metadata().ajaxParams||{}):{},hash:"#"+this.pathname+"&"+decodeURIComponent(this.search.substr(1))};d.backHashLog[b.nav[g].hash]=h;d.backLinkLog[b.nav[g].url]=h}a.ajaxNav.processLink(d,this,h)})},processLink:function(c,b,d){a(b).not(".ajaxNav").addClass("ajaxNav").bind("click.ajaxNav",function(f){f.preventDefault();a.ajaxNav.navigate(c,d)})},processBackLinks:function(c,b){if(!c.options.processBackLinks){return}var d;setTimeout(function(){a("a",b||document).each(function(){if(!/ajaxNav/.test(this.className)){if(d=c.backLinkLog[this.href]){a.ajaxNav.getNav(c,d).backLinks.push(this);a.ajaxNav.processLink(c,this,d)}}})},0)},setHash:function(c,e,b){if(c.options.hash){var d=this.getNav(c,e,"hash")||"#";if(window.location.hash&&b){return}if(a.locationHash){a.locationHash(d)}else{window.location.hash=d}}},hashchange:function(b){var c,d=window.location.hash?decodeURIComponent(window.location.hash):false;if(d&&d!=a.ajaxNav.lastHash){for(c=0;c<a.ajaxNav.cache.length;c++){var e=a.ajaxNav.cache[c].backHashLog[d]||false;if(e&&!a.ajaxNav.compare(a.ajaxNav.cache[c].currentTarget,e)){a.ajaxNav.navigate(a.ajaxNav.cache[c],e)}}}this.lastHash=d},compare:function(c,b){return(c[0]==b[0])&&((c[1]||0)==(b[1]||0))},getNav:function(c,e,d){var b=false;if(e.constructor==Number){b=c.nav[e]}else{if(e.constructor==Array){if(e[1]!=0){b=c.nav[e[0]]&&c.nav[e[0]].nav?c.nav[e[0]].nav[e[1]]:(c.options.subMenu?false:undefined)}else{b=c.nav[e[0]]}}}if(b&&d){return b[d]}else{return b}},setPosition:function(d,f){var b=a(window).width();function c(){this.topOffset=(this.options.useOverlay&&this.activeItem[1]!=0)?(this.viewport.height()-this.contentHeight)/2:0;if(this.options.windowResize){this.left=this.left-(this.windowWidth-b)/2}this.windowWidth=b;this.workspace.stop().animate({left:this.left,top:this.top+this.topOffset},f||200,this.options.easing,function(){a(document).trigger("onNavigate")})}if(d&&d.mainNav){c.apply(d)}else{a.each(a.ajaxNav.cache,function(){if(!d||this.options.windowResize){c.apply(this)}})}},preloadNeighbors:function(c){var b=c.activeItem;if(b.constructor==Array){this.load(c,[b[0]-1,b[1]]);this.load(c,[b[0]+1,b[1]]);this.load(c,[b[0],b[1]-1]);this.load(c,[b[0],b[1]+1])}else{this.load(c,[b-1,0]);this.load(c,[b+1,0])}},load:function(c,g){var b,f;if((f=this.getNav(c,g))&&(b=f.url)){if(!f.target&&!f.loading){f.loading=true;var e=a.extend(this.parseGetParameters(b),c.options.ajaxParams,f.ajaxParams);var d=b.split("?").shift();a.getJSON(d,e,function(h){f.ready=true;f.title=h.title||h.name||"";a.ajaxNav.addContent(c,g,h);setTimeout(function(){a(f).trigger("ajaxload")},0)})}else{if(f.ready){setTimeout(function(){a(f).trigger("ajaxload")},0)}}}},addContent:function(e,f,l){var b,d,c,k,j,g,h;j=this.getNav(e,f[0]);h=a(l.content);if(e.options.find){h=h.find(e.options.find)}if(e.options.dimensional){d=this.getNav(e,e.activeItem,"target");g={height:e.contentHeight,display:e.options.fade?"none":"block",left:parseInt(d.css("left"))+(f[0]-e.activeItem[0])*(e.contentOuterWidth+e.options.offset[0]),top:parseInt(d.css("top"))+((f[1]||0)-(e.activeItem[1]||0))*(e.contentHeight+e.options.offset[1])}}else{g={visibility:"hidden",top:0,left:0,opacity:0}}b=(h).css(a.extend(g,{width:e.contentWidth,position:"absolute",textAlign:"left",cursor:"auto"})).appendTo(e.workspace);if(f[1]>0){j.nav[f[1]]["target"]=b}else{j.target=b}if(e.options.useOverlay&&e.options.dimensional){a.ajaxNav.addOverlay(e,f);b.fadeIn(500)}if(e.options.subMenu){this.createSubMenu(e,f)}if(e.options.callback){e.options.callback.apply(b.parent())}},addOverlay:function(d,f){var e=this.getNav(d,f);var b=a('<a href="'+e.url+'" class="contentOverlay" style="background-color: black; cursor: pointer; position: absolute; z-index: 10;"/>');b.css("opacity",0.4);var c=e.target;b.prependTo(c).css({width:c.width(),height:c.height()}).hover(function(){a(this).stop().fadeTo(200,0)},function(){a(this).stop().fadeTo(200,0.4)});this.processLink(d,c,f);if(this.compare(f,d.activeItem)){b.hide()}},navigate:function(d,f,b){if(!b&&this.compare(d.currentTarget,f)){return false}d.currentTarget=f;var j=this.getNav(d,d.activeItem,"target");var k=this.getNav(d,f);if(typeof k=="undefined"){return false}else{this.setHash(d,f)}if(!k){if(f[1]>0){a(this.getNav(d,f[0])).unbind("ajaxload").one("ajaxload",function(){a.ajaxNav.navigate(d,f,true)});this.load(d,[f[0],0])}return true}var m=k.target||false;if(!m){a(k).unbind("ajaxload").one("ajaxload",function(){a.ajaxNav.navigate(d,f,true)});this.load(d,f);return true}if(d.options.dimensional){var l=parseInt(j.css("left"))-parseInt(m.css("left"));d.left+=l;var g=parseInt(j.css("top"))-parseInt(m.css("top"));d.top+=g;var c=g&&l?600:450;if(d.options.useOverlay){j.children(".contentOverlay").show();m.children(".contentOverlay").hide();if(d.options.dimensional&&(g||l)){a.ajaxNav.setPosition(d,c)}if(a.isFunction(d.options.onShow)){d.options.onShow.apply(m)}}else{if(d.options.fade){j.stop(false,true).fadeOut(c);if(d.options.dimensional&&(g||l)){a.ajaxNav.setPosition(d,c)}m.stop(false,true).fadeIn(c,d.options.onShow||false)}else{if(g||l){a.ajaxNav.setPosition(d,c)}if(a.isFunction(d.options.onShow)){d.options.onShow.apply(m)}}}}else{function p(){if(!a.ajaxNav.compare(f,d.currentTarget)){return}d.workspace.stop().animate({height:m.outerHeight()},"normal","easeOutCubic",function(){d.workspace.css("height","auto")});j.css({position:"absolute",visibility:"hidden",left:-1000000,opacity:0});m.css({position:"relative",visibility:"visible",left:0});m.animate({opacity:1},function(){if(a.isFunction(d.options.onShow)){d.options.onShow.apply(m)}if(a.browser.msie){a(this).css("filter","")}})}if(a.fn.imageReady){a("img",m).imageReady(p)}else{p()}}a(this.getNav(d,d.activeItem[0]).backLinks).removeClass(d.options.classActive);a(this.getNav(d,f[0]).backLinks).addClass(d.options.classActive);var o=this.getNav(d,d.activeItem),n=this.getNav(d,f);a(document).one("onNavigate",function(){if(a.isFunction(d.options.onNavigate)){d.options.onNavigate.call(m,{from:o,to:n})}});d.activeItem=f;this.setButtons(d);this.processBackLinks(d,m);if(d.options.trackGA&&window.pageTracker&&k.title){try{pageTracker._trackPageview(k.title)}catch(h){if(window.console){console.log("Tracking error in ajaxNav: "+h)}}}if(d.options.preload){setTimeout(function(){a.ajaxNav.preloadNeighbors(d)},500)}return true}};a.fn.ajaxNav=function(b){if(!this.length){if(window.console&&a.isFunction(window.console.log)){console.log('No items found in ajaxNav call with jQuery selector: "'+this.selector+'"')}return this}var c={mainNav:this,activeItem:[-1,-1],options:a.extend({},a.ajaxNav.defaults,b)};a.ajaxNav.init(c);return this}})(jQuery);(function(b){b.fn.ajaxSubmit=function(t){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof t=="function"){t={success:t}}var e=b.trim(this.attr("action"));if(e){e=(e.match(/^([^#]+)/)||[])[1]}e=e||window.location.href||"";t=b.extend({url:e,type:this.attr("method")||"GET"},t||{});var v={};this.trigger("form-pre-serialize",[this,t,v]);if(v.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(t.beforeSerialize&&t.beforeSerialize(this,t)===false){a("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var o=this.formToArray(t.semantic);if(t.data){t.extraData=t.data;for(var f in t.data){if(t.data[f] instanceof Array){for(var g in t.data[f]){o.push({name:f,value:t.data[f][g]})}}else{o.push({name:f,value:t.data[f]})}}}if(t.beforeSubmit&&t.beforeSubmit(o,this,t)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[o,this,t,v]);if(v.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var d=b.param(o);if(t.type.toUpperCase()=="GET"){t.url+=(t.url.indexOf("?")>=0?"&":"?")+d;t.data=null}else{t.data=d}t.url=encodeURI(t.url);var u=this,m=[];if(t.resetForm){m.push(function(){u.resetForm()})}if(t.clearForm){m.push(function(){u.clearForm()})}if(!t.dataType&&t.target){var r=t.success||function(){};m.push(function(j){b(t.target).html(j).each(r,arguments)})}else{if(t.success){m.push(t.success)}}t.success=function(q,k){for(var n=0,j=m.length;n<j;n++){m[n].apply(t,[q,k,u])}};var c=b("input:file",this).fieldValue();var s=false;for(var l=0;l<c.length;l++){if(c[l]){s=true}}var h=false;if(t.iframe||s||h){if(t.closeKeepAlive){b.get(t.closeKeepAlive,p)}else{p()}}else{b.ajax(t)}this.trigger("form-submit-notify",[this,t]);return this;function p(){var x=u[0];if(b(":input[name=submit]",x).length){alert('Error: Form elements must not be named "submit".');return}var q=b.extend({},b.ajaxSettings,t);var H=b.extend(true,{},b.extend(true,{},b.ajaxSettings),q);var w="jqFormIO"+(new Date().getTime());var D=b('<iframe id="'+w+'" name="'+w+'" src="about:blank" />');var F=D[0];D.css({position:"absolute",top:"-1000px",left:"-1000px"});var G={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;D.attr("src","about:blank")}};var E=q.global;if(E&&!b.active++){b.event.trigger("ajaxStart")}if(E){b.event.trigger("ajaxSend",[G,q])}if(H.beforeSend&&H.beforeSend(G,H)===false){H.global&&b.active--;return}if(G.aborted){return}var k=0;var z=0;var j=x.clk;if(j){var y=j.name;if(y&&!j.disabled){t.extraData=t.extraData||{};t.extraData[y]=j.value;if(j.type=="image"){t.extraData[name+".x"]=x.clk_x;t.extraData[name+".y"]=x.clk_y}}}setTimeout(function(){var K=u.attr("target"),I=u.attr("action");x.setAttribute("target",w);if(x.getAttribute("method")!="POST"){x.setAttribute("method","POST")}if(x.getAttribute("action")!=q.url){x.setAttribute("action",q.url)}if(!t.skipEncodingOverride){u.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(q.timeout){setTimeout(function(){z=true;A()},q.timeout)}var J=[];try{if(t.extraData){for(var L in t.extraData){J.push(b('<input type="hidden" name="'+L+'" value="'+t.extraData[L]+'" />').appendTo(x)[0])}}D.appendTo("body");F.attachEvent?F.attachEvent("onload",A):F.addEventListener("load",A,false);x.submit()}finally{x.setAttribute("action",I);K?x.setAttribute("target",K):u.removeAttr("target");b(J).remove()}},10);var B=0;function A(){if(k++){return}F.detachEvent?F.detachEvent("onload",A):F.removeEventListener("load",A,false);var I=true;try{if(z){throw"timeout"}var J,L;L=F.contentWindow?F.contentWindow.document:F.contentDocument?F.contentDocument:F.document;if((L.body==null||L.body.innerHTML=="")&&!B){B=1;k--;setTimeout(A,100);return}G.responseText=L.body?L.body.innerHTML:null;G.responseXML=L.XMLDocument?L.XMLDocument:L;G.getResponseHeader=function(N){var M={"content-type":q.dataType};return M[N]};if(q.dataType=="json"||q.dataType=="script"){var n=L.getElementsByTagName("textarea")[0];G.responseText=n?n.value:G.responseText}else{if(q.dataType=="xml"&&!G.responseXML&&G.responseText!=null){G.responseXML=C(G.responseText)}}J=b.httpData(G,q.dataType)}catch(K){I=false;b.handleError(q,G,"error",K)}if(I){q.success(J,"success");if(E){b.event.trigger("ajaxSuccess",[G,q])}}if(E){b.event.trigger("ajaxComplete",[G,q])}if(E&&!--b.active){b.event.trigger("ajaxStop")}if(q.complete){q.complete(G,I?"success":"error")}setTimeout(function(){D.remove();G.responseXML=null},100)}function C(n,I){if(window.ActiveXObject){I=new ActiveXObject("Microsoft.XMLDOM");I.async="false";I.loadXML(n)}else{I=(new DOMParser()).parseFromString(n,"text/xml")}return(I&&I.documentElement&&I.documentElement.tagName!="parsererror")?I:null}}};b.fn.ajaxForm=function(c){return this.ajaxFormUnbind().bind("submit.form-plugin",function(){b(this).ajaxSubmit(c);return false}).each(function(){b(":submit,input:image",this).bind("click.form-plugin",function(f){var d=this.form;d.clk=this;if(this.type=="image"){if(f.offsetX!=undefined){d.clk_x=f.offsetX;d.clk_y=f.offsetY}else{if(typeof b.fn.offset=="function"){var g=b(this).offset();d.clk_x=f.pageX-g.left;d.clk_y=f.pageY-g.top}else{d.clk_x=f.pageX-this.offsetLeft;d.clk_y=f.pageY-this.offsetTop}}}setTimeout(function(){d.clk=d.clk_x=d.clk_y=null},10)})})};b.fn.ajaxFormUnbind=function(){this.unbind("submit.form-plugin");return this.each(function(){b(":submit,input:image",this).unbind("click.form-plugin")})};b.fn.formToArray=function(q){var p=[];if(this.length==0){return p}var d=this[0];var h=q?d.getElementsByTagName("*"):d.elements;if(!h){return p}for(var k=0,m=h.length;k<m;k++){var e=h[k];var f=e.name;if(!f){continue}if(q&&d.clk&&e.type=="image"){if(!e.disabled&&d.clk==e){p.push({name:f,value:b(e).val()});p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}continue}var r=b.fieldValue(e,true);if(r&&r.constructor==Array){for(var g=0,c=r.length;g<c;g++){p.push({name:f,value:r[g]})}}else{if(r!==null&&typeof r!="undefined"){p.push({name:f,value:r})}}}if(!q&&d.clk){var l=b(d.clk),o=l[0],f=o.name;if(f&&!o.disabled&&o.type=="image"){p.push({name:f,value:l.val()});p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}}return p};b.fn.formSerialize=function(c){return b.param(this.formToArray(c))};b.fn.fieldSerialize=function(d){var c=[];this.each(function(){var h=this.name;if(!h){return}var f=b.fieldValue(this,d);if(f&&f.constructor==Array){for(var g=0,e=f.length;g<e;g++){c.push({name:h,value:f[g]})}}else{if(f!==null&&typeof f!="undefined"){c.push({name:this.name,value:f})}}});return b.param(c)};b.fn.fieldValue=function(h){for(var g=[],e=0,c=this.length;e<c;e++){var f=this[e];var d=b.fieldValue(f,h);if(d===null||typeof d=="undefined"||(d.constructor==Array&&!d.length)){continue}d.constructor==Array?b.merge(g,d):g.push(d)}return g};b.fieldValue=function(c,j){var e=c.name,p=c.type,q=c.tagName.toLowerCase();if(typeof j=="undefined"){j=true}if(j&&(!e||c.disabled||p=="reset"||p=="button"||(p=="checkbox"||p=="radio")&&!c.checked||(p=="submit"||p=="image")&&c.form&&c.form.clk!=c||q=="select"&&c.selectedIndex==-1)){return null}if(q=="select"){var k=c.selectedIndex;if(k<0){return null}var m=[],d=c.options;var g=(p=="select-one");var l=(g?k+1:d.length);for(var f=(g?k:0);f<l;f++){var h=d[f];if(h.selected){var o=h.value;if(!o){o=(h.attributes&&h.attributes.value&&!(h.attributes.value.specified))?h.text:h.value}if(g){return o}m.push(o)}}return m}return c.value};b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()})};b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var d=this.type,c=this.tagName.toLowerCase();if(d=="text"||d=="password"||c=="textarea"){this.value=""}else{if(d=="checkbox"||d=="radio"){this.checked=false}else{if(c=="select"){this.selectedIndex=-1}}}})};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};b.fn.enable=function(c){if(c==undefined){c=true}return this.each(function(){this.disabled=!c})};b.fn.selected=function(c){if(c==undefined){c=true}return this.each(function(){var d=this.type;if(d=="checkbox"||d=="radio"){this.checked=c}else{if(this.tagName.toLowerCase()=="option"){var e=b(this).parent("select");if(c&&e[0]&&e[0].type=="select-one"){e.find("option").selected(false)}this.selected=c}}})};function a(){if(b.fn.ajaxSubmit.debug&&window.console&&window.console.log){window.console.log("[jquery.form] "+Array.prototype.join.call(arguments,""))}}})(jQuery);(function(b){var a=b.scrollTo=function(d,f,e){b(window).scrollTo(d,f,e)};a.defaults={axis:"y",duration:1};a.window=function(d){return b(window).scrollable()};b.fn.scrollable=function(){return this.map(function(){var d=this.parentWindow||this.defaultView,h=this.nodeName=="#document"?d.frameElement||d:this,f=h.contentDocument||(h.contentWindow||h).document,e=h.setInterval;return h.nodeName=="IFRAME"||e&&b.browser.safari?f.body:e?f.documentElement:this})};b.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;e=0}if(typeof d=="function"){d={onAfter:d}}d=b.extend({},a.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2}d.offset=c(d.offset);d.over=c(d.over);return this.scrollable().each(function(){var h=this,t=b(h),s=f,g,r={},n=t.is("html,body");switch(typeof s){case"number":case"string":if(/^([+-]=)?\d+(px)?$/.test(s)){s=c(s);break}s=b(s,this);case"object":if(s.is||s.style){g=(s=b(s)).offset()}}b.each(d.axis.split(""),function(k,x){var u=x=="x"?"Left":"Top",p=u.toLowerCase(),w="scroll"+u,q=h[w],o=x=="x"?"Width":"Height",l=o.toLowerCase();if(g){r[w]=g[p]+(n?0:q-t.offset()[p]);if(d.margin){r[w]-=parseInt(s.css("margin"+u))||0;r[w]-=parseInt(s.css("border"+u+"Width"))||0}r[w]+=d.offset[p]||0;if(d.over[p]){r[w]+=s[l]()*d.over[p]}}else{r[w]=s[p]}if(/^\d+$/.test(r[w])){r[w]=r[w]<=0?0:Math.min(r[w],j(o))}if(!k&&d.queue){if(q!=r[w]){m(d.onAfterFirst)}delete r[w]}});m(d.onAfter);function m(k){t.animate(r,e,d.easing,k&&function(){k.call(this,f,d)})}function j(k){var o="scroll"+k,l=h.ownerDocument;return n?Math.max(l.documentElement[o],l.body[o]):h[o]}}).end()};function c(d){return typeof d=="object"?d:{top:d,left:d}}})(jQuery);function flashembed(k,o,e){if(typeof k=="string"){k=document.getElementById(k)}var g={src:"#",width:"100%",height:"100%",version:null,loadEvent:null,onFail:null,expressInstall:window.pb_path+"js/expressInstall.swf",allowfullscreen:true,allowscriptaccess:"always",quality:"high",bgcolor:"#ffffff",wmode:"opaque",type:"application/x-shockwave-flash",pluginspage:"http://www.adobe.com/go/getflashplayer"};h(g,o);var n=g.loadEvent;g.loadEvent=null;if(n){if(!k){return}k["on"+n]=function(){return m()}}else{return m()}function h(q,p){if(p){for(key in p){q[key]=p[key]}}}function d(p){if(/img|a/.test(k.nodeName.toLowerCase())){var q=$("<div/>").html(p).insertAfter(k);$(k).remove();k=q[0]}else{k.innerHTML=p}}function m(){var p=f();var r=g.version;var s=g.expressInstall;if(!k){return}if(parseInt(p)>0&&(!r||c(r))){g.onFail=g.version=g.expressInstall=null;d(a());return k.firstChild}else{if(g.onFail){var q=g.onFail.call(g,f(),e);if(q){d(q)}}else{if(r&&s&&c([6,65])){h(g,{src:s});e={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};d(a())}else{if(k.innerHTML.replace(/\s/g,"")!=""){}else{d('<div class="noFlash"><h2>Flash version '+(r||"6.65")+" or greater is required</h2><h3>"+(p[0]>0?"Your version is "+p:"You have no flash plugin installed")+"</h3><p>Download the latest version <a href='"+g.pluginspage+"'>here</a></p></div>")}}}}k["on"+n]=null}function c(p){var r=f();var q=(r[0]>p[0])||(r[0]==p[0]&&r[1]>=p[1]);return q}function a(){var q="";if(typeof e=="function"){e=e()}if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){q='<embed type="application/x-shockwave-flash" ';h(g,{name:g.id});for(var p in g){if(g[p]!=null){q+=[p]+'="'+g[p]+'"\n\t'}}if(e){q+="flashvars='";for(var p in e){q+=[p]+"="+encodeURIComponent(e[p])+"&"}q+="'"}q+="/>"}else{q='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';q+='width="'+g.width+'" height="'+g.height+'"';if(document.all&&parseInt(navigator.appVersion)<=6){g.id="_"+(""+Math.random()).substring(5)}if(g.id){q+=' id="'+g.id+'"'}q+=">";q+='\n\t<param name="movie" value="'+g.src+'" />';$.extend(e,{width:g.width,height:g.height});g.id=g.src=g.width=g.height=null;for(var p in g){if(g[p]!=null){q+='\n\t<param name="'+p+'" value="'+g[p]+'" />'}}if(e){q+='\n\t<param name="flashvars" value=\'';for(var p in e){q+=[p]+"="+encodeURIComponent(e[p])+"&"}q+="' />"}q+="</object>"}return q}function f(){var q=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var p=navigator.plugins["Shockwave Flash"].description;if(typeof p!="undefined"){p=p.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var r=parseInt(p.replace(/^(.*)\..*$/,"$1"),10);var u=/r/.test(p)?parseInt(p.replace(/^.*r(.*)$/,"$1"),10):0;q=[r,u]}}else{if(window.ActiveXObject){try{var s=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(t){try{var s=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");q=[6,0];s.AllowScriptAccess="always"}catch(t){if(q[0]==6){return}}try{var s=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(t){}}if(typeof s=="object"){var p=s.GetVariable("$version");if(typeof p!="undefined"){p=p.replace(/^\S+\s+(.*)$/,"$1").split(",");q=[parseInt(p[0],10),parseInt(p[2],10)]}}}}return q}function j(q){switch(l(q)){case"string":return'"'+q.replace(new RegExp('(["\\\\])',"g"),"\\$1")+'"';case"array":return"["+b(q,function(s){return j(s)}).join(",")+"]";case"object":var r=[];for(var p in q){r.push('"'+p+'":'+j(q[p]))}return"{"+r.join(",")+"}"}return String(q).replace(/\s/g," ").replace(/\'/g,'"')}function l(q){if(q===null||q===undefined){return false}var p=typeof q;return(p=="object"&&q.push)?"array":p}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function b(p,s){var r=[];for(var q in p){r[q]=s(p[q])}return r}flashembed.getVersion=f;flashembed.isSupported=c;return k}if(typeof jQuery=="function"){(function(b){var a=b.flashembed={players:{flv:window.pb_path+"js/mediaplayer.swf",mp3:window.pb_path+"js/mediaplayer.swf"},types:{flv:function(e,d,c){c.file=e;return a.players.flv+"?"+b.param(c)},mp3:function(e,d,c){c.file=e;return a.players.mp3+"?file="+encodeURIComponent(e)},swf:function(e,d,c){return e}}};b.fn.flashembed=function(d,c){c=c||{};return this.each(function(){b(this).css("display","block");d=b.extend(b.metadata?b(this).metadata():{},d);d.height=d.height||this.height||b(this).height();d.width=d.width||this.width||b(this).width();d.type=d.type||"swf";if(d.type=="youtube"){d.type="flv"}d.src=a.types[d.type]?a.types[d.type](d.src||this.href||this.src,d,c):d.src;new flashembed(this,d,c)})}})(jQuery)}(function($){$.ewyseGallery={set:function(settings){$.ewyseGallery.settings=$.extend(true,$.ewyseGallery.settings,settings)},$:{},settings:{imgPath:"images/gallery/",img:{close:"close.png",overview:"overview.gif",info:"info.gif",loader:"loader.gif",prev:"previous.gif",next:"next.gif",play:"play.gif",pause:"pause.gif",sep:"sep.gif"},slideshowInterval:3500,minWidth:300,minHeight:0,maxWidth:900,maxHeight:600,borderSpace:0,autoMaxDimension:false,fitImage:true,overlayBgColor:"#000",overlayOpacity:0.5,cacheAjaxRequests:false,cache:{},flashparams:{version:[9,45],width:400,height:320},flashvars:{autostart:true},plugins:{flv:"flash",swf:"flash",youtube:"flash"}},data:{},current:0,show:false,timer:false,_initInterface:function(options){if(!this.$.gallery){function _img(name){return $.ewyseGallery.settings.imgPath+$.ewyseGallery.settings.img[name]}this.options=$.extend({appendTo:"body",showInContent:false},options||{});$(this.options.appendTo).append((this.options.showInContent?"":'<div id="egallery-overlay" title="close" style="display: none;"></div>')+'<div id="egallery" style="display: none;"><div id="egallery-container">'+(this.options.showInContent?"":'<a id="egallery-close-link" href="javascript:void(0)"><img id="egallery-close" src="'+_img("close")+'" alt="Close"></a>')+'<div id="egallery-info"><span></span></div><div id="egallery-loading"><img src="'+_img("loader")+'"></div><div id="egallery-imageContainer"><img style="display: none;" id="egallery-image" alt="image"></div><div id="egallery-controls"><table><tr><td><img class="egallery-sep" src="'+_img("sep")+'" alt="&nbsp;"><img id="egallery-button-prev" src="'+_img("prev")+'" alt="Previous Image" title="Previous Image"><img id="egallery-button-play" src="'+_img("play")+'" alt="Play Slideshow" title="Play Slideshow"><img id="egallery-button-pause" style="display: none;" src="'+_img("pause")+'" alt="Pause Slideshow" title="Pause Slideshow"><img id="egallery-button-next" src="'+_img("next")+'" alt="Next Image" title="Next Image"><img class="egallery-sep" src="'+_img("sep")+'" alt="&nbsp;"><img id="egallery-button-overview" src="'+_img("overview")+'" alt="View thumbnails" title="View thumbnails"><img class="egallery-sep" src="'+_img("sep")+'" alt="&nbsp;"><img id="egallery-button-info" src="'+_img("info")+'" alt="Toggle Info" title="Toggle Info"><img class="egallery-sep" src="'+_img("sep")+'" alt="&nbsp;"></td></tr></table><div id="egallery-index"></div></div></div></div>');if($.ifixpng){$("#egallery *").ifixpng()}this.$={overlay:$("#egallery-overlay").css({backgroundColor:this.settings.overlayBgColor,opacity:this.settings.overlayOpacity}),info:$("#egallery-info").css({zIndex:1002}),"close-link":$("#egallery-close-link").bind("click",this.actions.close),b:{info:$("#egallery-button-info"),play:$("#egallery-button-play"),pause:$("#egallery-button-pause"),prev:$("#egallery-button-prev"),next:$("#egallery-button-next"),overview:$("#egallery-button-overview").hide()},gallery:$("#egallery"),loading:$("#egallery-loading").css("z-index",2000),controls:$("#egallery-controls"),image:$("#egallery-image"),"image-container":$("#egallery-imageContainer").css({position:"relative",opacity:1}),container:$("#egallery-container"),index:$("#egallery-index")};if(this.options.hideInfo){this.$.b["info"].remove()}this.$.controls.find("td").css({position:"relative",opacity:1});this._setButton("overview",true)}return this.$.gallery},plugins:{flash:{create:function(img){var params={};if(/youtube.com/.test(img.src)){params={l:"263"}}params=$.extend(params,$.ewyseGallery.settings.flashparams,{type:img.type,src:img.src});$(img.obj).appendTo("body").flashembed(params,$.ewyseGallery.settings.flashvars);var elem=$("body > div:last");img.obj={html:elem.html()};elem.remove()}}},actions:{next:function(){$.ewyseGallery._setButton("next",false);$.ewyseGallery._setButton("prev",false);$.ewyseGallery._setButton("play",false);$.ewyseGallery._setCurrentImage("next")},prev:function(){$.ewyseGallery._setButton("next",false);$.ewyseGallery._setButton("prev",false);$.ewyseGallery._setButton("play",false);$.ewyseGallery._setCurrentImage("prev")},close:function(){with($.ewyseGallery){show=false;slideshow.stop();window.$(window).add(document).unbind(".gallery");$.image.remove();$.info.slideUp("fast");$["close-link"].hide();$.gallery.hide();$.overlay.fadeOut();window.$("embed, object, select").css({visibility:"visible"})}},info:function(){$.ewyseGallery.$.info.slideToggle()},play:function(){$.ewyseGallery.slideshow.start()},pause:function(){$.ewyseGallery.slideshow.stop()},overview:function(){}},slideshow:{start:function(){$.ewyseGallery.$.b["play"].hide();$.ewyseGallery.$.b["pause"].show();$.ewyseGallery._setButton("next",false);$.ewyseGallery._setButton("prev",false);this.setTimeout()},setTimeout:function(){clearTimeout(this.timer);this.timer=setTimeout(this.next,$.ewyseGallery.settings.slideshowInterval)},next:function(){$.ewyseGallery._setCurrentImage("next")},toggle:function(){if(!this.timer){this.start()}else{this.stop()}},stop:function(){clearTimeout(this.timer);this.timer=false;$.ewyseGallery.$.b["pause"].hide();$.ewyseGallery.$.b["play"].show();$.ewyseGallery._setButton("prev",true);$.ewyseGallery._setButton("next",true)}},_setCurrentImage:function(which){if(this.loading){return}var img=this._getImage(which,true);if(img!==false){this.loading=true;this.$.info.slideUp("fast");this._preload(img,this._setImage)}},_preload:function(img,callback){if(!((typeof img=="object")||(img=this._getImage(img)))){return}if(!img.type){img.type=/youtube.com/.test(img.src.toLowerCase())?"youtube":img.src.split(".").pop().toLowerCase()}if(img.type&&!img.plugin){img.plugin=this.settings.plugins[img.type]}var context=this;var newHeight=Math.max(this.settings.maxHeight,this.settings.minHeight)-this.settings.borderSpace*2;var newWidth=Math.max(this.settings.maxWidth,this.settings.minWidth)-this.settings.borderSpace*2;if(img.obj){if(callback){if(img.plugin){callback.call(context,img.obj);context=null;return}else{if(!this.data.rewriteFunction||img.width==newWidth&&img.height==newHeight){if(img.obj.complete){callback.call(context,img.obj);context=null;return}else{$(img.obj).one("load",function(e){callback.call(context,this);context=null});this.$.loading.show();return}}}}}else{img.obj=new Image();if(img.plugin){this.plugins[img.plugin].create(img)}}if(callback){this.$.loading.show();if(img.plugin){callback.call(context,img.obj);context=null}else{$(img.obj).one("load",function(e){callback.call(context,this);context=null})}}if(!img.plugin){img.width=newWidth;img.height=newHeight;img.obj.src=this.data.rewriteFunction?this.data.rewriteFunction.apply(context,[img.src,img.width,img.height]):img.src}img.obj.title=img.obj.alt=$.trim(img.title)||""},_setImage:function(img){var newHeight,newWidth,h,w,$img=$(img.html||img),imgHeight=parseInt(img.height||$img.attr("height")),imgWidth=parseInt(img.width||$img.attr("width"));if(this.settings.fitImage){newHeight=imgHeight+(this.settings.borderSpace*2);newWidth=imgWidth+(this.settings.borderSpace*2)}else{newHeight=Math.max(Math.min(imgHeight+this.settings.borderSpace*2,this.settings.maxHeight),this.settings.minHeight);newWidth=Math.max(Math.min(imgWidth+this.settings.borderSpace*2,this.settings.maxWidth),this.settings.minWidth)}if(!parseInt(newHeight)){newHeight=200}if(!parseInt(newWidth)){newWidth=400}h=this.$["image-container"].height()!=newHeight;w=this.$.container.width()!=newWidth;function temp(){$.ewyseGallery.$.image=$img.css("display","none").appendTo($.ewyseGallery.$["image-container"]);$.ewyseGallery._loadingDone(img);if(h&&$.ewyseGallery.options.showInContent!==true){$.ewyseGallery._setPosition()}}this.$.image.fadeOut(300,function(){if($.ewyseGallery.slideshow.timer){$.ewyseGallery.slideshow.setTimeout()}else{var enabled=$.ewyseGallery.data.images.length>1;$.ewyseGallery._setButton("play",enabled);$.ewyseGallery._setButton("prev",enabled);$.ewyseGallery._setButton("next",enabled)}$(this).remove();if(h||w){$.ewyseGallery.$["close-link"].hide();$.ewyseGallery.$["image-container"].animate({height:newHeight,width:newWidth},400,"easeInOutCubic");$.ewyseGallery.$.container.animate({width:newWidth},400,"easeInOutCubic",temp)}else{temp()}})},_loadingDone:function(img){this._setButton("info",img.title);if(!!$.trim(img.title)){this.$.info.slideDown().children().html(img.title)}this.$["close-link"].show();this.$.loading.hide();this.$.index.html((this.current+1)+" / "+this.data.images.length);this.$.image.center().fadeIn(300);this.loading=false;this._preload("next")},_getImage:function(which,setCurrent){var index=which;if(typeof index=="undefined"){index=this.current}else{switch(which){case"current":case"active":index=this.current;break;case"prev":index=this.__testIndex(this.current-1)!==false?this.current-1:this.data.images.length-1;break;case"next":index=this.__testIndex(this.current+1)||0;break;case"last":index=this.data.images.length-1;break;case"first":index=0;break}}index=this.__testIndex(index);if(index!==false&&setCurrent){this.current=index}return $.ewyseGallery.data.images[index]},__testIndex:function(index){return(index>=0&&index<this.data.images.length)?index:false},_setButton:function(which,enabled){this.$.b[which].unbind().css({opacity:enabled?1:0.4,cursor:enabled?"pointer":"auto"});if(enabled){this.$.b[which].bind("click",this.actions[which])}},_show:function(args,index){this._initInterface();var self=this;this.show=true;$("embed, object, select").css({visibility:"hidden"});if(!this._settings){this._settings=$.extend({},this.settings)}if(this.options.showInContent!==true){this._setPosition();this.$.gallery.css({position:"absolute",left:0,top:0});var windowTimeout=false;$(window).bind("scroll.gallery resize.gallery",function(e){clearTimeout(windowTimeout);windowTimeout=setTimeout(function(){self._setPosition(e)},50)})}this.data=args;if(typeof index!="undefined"){this.current=index}if(this.data.images.length>1){this._setButton("play",true);this._setButton("pause",true);this.$.controls.show()}else{this.$.controls.hide()}this.$.gallery.fadeIn(function(){$.ewyseGallery._setCurrentImage();if(args.autoplay){$.ewyseGallery.slideshow.start()}});this._bindKeys()},_bindKeys:function(){var self=this;$(document).bind("keydown.gallery",function(e){var prevent=true;if(e.which==32){self.slideshow.toggle()}else{if(e.keyCode==39){self.actions.next()}else{if(e.keyCode==37){self.actions.prev()}else{if(e.keyCode==27&&self.options.showInContent!==true){self.actions.close()}else{prevent=false}}}}if(prevent){e.stopPropagation();e.preventDefault()}}).click()},_setPosition:function(y){if(!$.ewyseGallery.show){return}var $win=$(window),$doc=$(document),scrollTop=$win.scrollTop(),winHeight=$win.height();var location=$win.scrollTop()+(winHeight/2)-($.ewyseGallery.$.gallery.height()/2);if(!isNaN(y)){height=Math.max(y,$doc.height())}if($.ewyseGallery.settings.autoMaxDimension){$.ewyseGallery.settings.maxWidth=Math.min($win.width()-50,$.ewyseGallery._settings.maxWidth);$.ewyseGallery.settings.maxHeight=Math.min(winHeight-150,$.ewyseGallery._settings.maxHeight)}if(location>scrollTop){$.ewyseGallery.$.gallery.stop().animate({top:location,opacity:1},"fast","easeOutCubic",function(){if($.browser.msie){$.ewyseGallery.$.gallery.css("filter","")}$.ewyseGallery.$.overlay.css("height",$doc.height()).not(":visible").fadeIn("fast")})}else{$.ewyseGallery.$.overlay.css("height",$doc.height()).not(":visible").fadeIn("fast");if(!y||!isNaN(y)){$.ewyseGallery.$.gallery.animate({top:scrollTop+30},"fast","easeOutCubic")}}}};$.fn.center=function(){return this.each(function(){var $$=$(this);$parent=$$.parent().css({position:"relative"});$$.css({position:"absolute",left:($parent.width()-$$.width())/2,top:($parent.height()-$$.height())/2})})};$.fn.ewyseGallery=function(arg,arg2){if(typeof arg=="string"){return this.each(function(){var $$=$(this);arg2=arg2||{};if(arg2.thumbnails&&typeof arg2.thumbnails=="string"){arg2.thumbnails=$$.find(arg2.thumbnails).get()}$$.find(arg).ewyseGallery($.extend({},arg2))})}var options=arg||{};options.images=options.images||[];options.thumbnails=options.thumbnails?(typeof options.thumbnails=="string"?$(options.thumbnails).get():options.thumbnails):[];var jsonLoaded=false;function _initialize(e){e.preventDefault();e.stopPropagation();var obj=this;if(!jsonLoaded&&options.mode&&options.mode.toLowerCase()=="json"){if($.ewyseGallery.settings.cacheAjaxRequests&&(options.images=$.ewyseGallery.settings.cache[options.url])){jsonLoaded=true;_start(obj,options)}else{$.getJSON(options.url,function(json){jsonLoaded=true;options.images=json.images||json;if(options.jsonCallback){options.images=options.jsonCallback.call(this,options.images)}if($.ewyseGallery.settings.cacheAjaxRequests){$.ewyseGallery.settings.cache[options.url]=options.images}_start(obj,options)})}}else{_start(obj,options)}return false}function _start(obj,data){var img=obj.href||obj.src;var index=0;for(i=0;i<data.images.length;i++){if(data.images[i].src.indexOf(img)>-1){index=i;break}}$.ewyseGallery._show(data,index)}if(!options.images.length){this.each(function(){var img={src:this.href||this.src,title:this.title||this.alt};img.type=($.metadata?$(this).metadata().type:false)||$(this).data("type")||false;options.images.push(img)})}return this.unbind(".gallery").bind("click.gallery",_initialize)}})(jQuery);(function(b){b.ifixpng=function(c){b.ifixpng.pixel=c};b.ifixpng.regexp={bg:/^url\(["']?(.*\.png([?].*)?)["']?\)$/i,img:/.*\.png([?].*)?$/i},b.ifixpng.getPixel=function(){return b.ifixpng.pixel||"images/pixel.gif"};b.ifixpng.processElement=function(){function d(p,o,m,l,n){p.css({filter:a.filter(o),width:m,height:l}).attr({src:b.ifixpng.getPixel()}).positionFix()}var f=b(this);if(f.is("img")||f.is("input")){var h,e;if(this.src&&this.src.match(b.ifixpng.regexp.img)){h=(a.base&&this.src.substring(0,1)!="/"&&this.src.indexOf(a.base)===-1)?a.base+this.src:this.src;if(!this.width||!this.height){b(new Image()).one("load",function(){d(f,h,this.width,this.height);b(this).remove()}).attr("src",h)}else{d(f,h,this.width,this.height)}}}else{if(this.style){var j=f.css("backgroundImage");if(j&&j.match(b.ifixpng.regexp.bg)&&this.currentStyle.backgroundRepeat=="no-repeat"){j=RegExp.$1;var c=this.currentStyle.backgroundPositionX||0,k=this.currentStyle.backgroundPositionY||0;if(c||k){var g={},e;if(typeof c!="undefined"){if(c=="left"){g.left=0}else{if(c=="right"){g.right=f.width()%2===1?-1:0}else{g.left=c}}}if(typeof k!="undefined"){if(k=="bottom"){g.bottom=f.height()%2===1?-1:0}else{if(k=="top"){g.top=0}else{g.top=k}}}e=new Image();b(e).one("load",function(){var l,p,n={},o;if(/center|%/.test(g.top)){n.top="(this.parentNode.offsetHeight - this.offsetHeight) * "+(g.top=="center"?0.5:(parseInt(g.top)/100));delete g.top}if(/center|%/.test(g.left)){n.left="(this.parentNode.offsetWidth - this.offsetWidth) * "+(g.left=="center"?0.5:(parseInt(g.left)/100));delete g.left}f.positionFix().css({backgroundImage:"none"}).prepend(b("<div></div>").css(g).css({width:this.width,height:this.height,position:"absolute",filter:a.filter(j)}));if(n.top||n.left){var m=f.children(":first")[0];for(o in n){m.style.setExpression(o,n[o],"JavaScript")}}b(this).remove()});e.src=j}else{f.css({backgroundImage:"none",filter:a.filter(j)})}}}}};var a={base:b("base").attr("href"),ltie7:b.browser.msie&&b.browser.version<7,filter:function(c){return"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,sizingMethod=crop,src='"+c+"')"}};b.fn.ifixpng=a.ltie7?function(){return this.each(b.ifixpng.processElement)}:function(){return this};b.fn.positionFix=function(){return this.each(function(){var c=b(this);if(c.css("position")!="absolute"){c.css({position:"relative"})}})}})(jQuery);(function(a){a.fn.example=function(d,c){var b=a.extend({},a.fn.example.defaults,c);var e=a.isFunction(d);a.fn.example.bound_class_names[b.class_name]=true;a("form:not(.jq_example_form)").addClass("jq_example_form").bind("submit.jq_example",a.fn.example.empty_bound_inputs);return this.each(function(){var g=a(this);var h=e?d.call(this):d;if(!h){return this}if(a.browser.msie&&!g.attr("defaultValue")&&(e?g.val()!="":g.val()==d)){g.val("")}if(g.val()==""){g.addClass(b.class_name);g.val(e?d.call(this):d)}if(b.hide_label){var f=a("label[@for="+g.attr("id")+"]");f.next("br").hide();f.hide()}g.focus(function(){if(a(this).is("."+b.class_name)){a(this).val("");a(this).removeClass(b.class_name)}});g.blur(function(j){if(a(this).val()==""){a(this).addClass(b.class_name);a(this).val(e?d.call(this):d)}})})};a.fn.example.defaults={class_name:"example",hide_label:false};a.fn.example.bound_class_names={};a.fn.example.empty_bound_inputs=function(){var b=a(this);a.each(a.fn.example.bound_class_names,function(d,c){b.find("."+d).val("")})};a(window).unload(function(){a.fn.example.empty_bound_inputs.apply(a("form.jq_example_form"))})})(jQuery);(function(a){if(!a.ewyseCustom){a.extend({ewyseCustom:true,ajaxLoad:{cache:{}},load:function(b,d,c,e){return a(b).load(d,c,e)},ie6:function(){return a.browser.msie&&parseInt(a.browser.version)<7},activeItem:function(b,c){return a(b).activeItem(c)},makeURL:function(c,b){if(b){c+=(c.match(/\?/)?"&":"?")+(typeof b=="string"?b:a.param(b,true))}return c},parseGetParameters:function(e,h){var j={},d,c,b,g,f;if((e||(!h&&(e=window.location.search)))&&(d=e.indexOf("?"))!==-1){c=e.substring(d+1).split(/&amp;|&/);for(g=0;g<c.length;g++){b=c[g].split("=");f=b.shift();b=b.join("=");j[f]=(typeof(b)!="undefined")?decodeURIComponent(b):""}}return j},postJSON:function(b,c,e,d){return a.ajax({type:"POST",url:a.makeURL(b,c),dataType:"json",data:e,success:d})},createStyleSheet:function(b){if(document.styleSheets){for(var c=0;c<document.styleSheets.length;c++){if(document.styleSheets[c].href.indexOf(b)>=0){return document.styleSheets[c]}}}if(a.browser.msie){return document.createStyleSheet(b)}else{return a("<link>").appendTo("head").attr({href:b,rel:"stylesheet",type:"text/css"})[0]}}});if(!a.fn._load){a.fn._load=a.fn.load}a.fn.extend({args:function(b){return this.each(function(){if(/FORM|A/.test(this.nodeName)){a(this).attr(this.nodeName=="FORM"?"action":"href",a.makeURL(this.href||this.action,b))}})},imageReady:function(g,d){d=d||[];var b=this.filter("img"),f=b.length,e=0,c=this;b.each(function(){if(this.complete){e++}else{a(this).one("load error abort",function(){e++;if(e==f){g.apply(c,d)}})}});if(e==f){g.apply(c,d)}return this},doIf:function(b,c){return(b&&a.isFunction(c))?c.apply(this):this},absolutize:function(){return this.each(function(){var b=a(this),c=b.position();b.css({position:"absolute",top:c.top,left:c.left,width:b.width(),height:b.height()})})},lightbox:function(d,c){function b(e){PopupMessage().lightbox(e.content,c)}this.filter("a:not(.jq_lightbox)").addClass("jq_lightbox").ajaxLoad(d,c,b);return this},ajaxLoad:function(c,b,d){if(a.isFunction(b)){d=b;b={}}else{b=b||{}}return this.each(function(){var f=c?a.makeURL(this.href,c):this.href,e=this;f=encodeURI(f);if(false){var g=d;d=function(h){a.ajaxLoad.cache[f]=h;g.call(e,h)}}a(e).click(function(h){h.preventDefault();if(g&&a.ajaxLoad.cache[f]){d.call(e,a.ajaxLoad.cache[f])}else{a.getJSON(f,d)}})})},load:function(c,b,e){if(a.isFunction(c)){return a(this)._load(c,b,e)}if(!this.length){return this}var d=c;if(b){d=a.makeURL(c,b)}return this.each(function(){if(typeof this["location"]=="object"){this.location.href=d}else{if(typeof this["href"]!="undefined"){this.href=d}else{if(typeof this["src"]!="undefined"){this.src=d}else{a(this)._load(c,b,e)}}}})},hoverClass:function(b){return this.hover(function(){a(this).addClass(b)},function(){a(this).removeClass(b)})},focusClass:function(b){return this.each(function(){a(this).focus(function(){a(this).addClass(b)}).blur(function(){a(this).removeClass(b)})})},activeClass:function(b){return this.each(function(){a(this).mousedown(function(){a(this).addClass(b)}).mouseup(function(){a(this).removeClass(b)})})},document:function(c){if(this.length==1&&(el=this[0])&&el.nodeName=="IFRAME"){var b=a(el.contentWindow.document)}else{var b=a(document)}if(typeof c!="undefined"){return b.find(c)}else{return b}},window:function(c){if(this.length==1&&(el=this[0])&&el.nodeName=="IFRAME"){var b=a(el.contentWindow)}else{var b=a(window)}if(typeof c!="undefined"){return b.find(c)}else{return b}},enable:function(b){if(a.browser.mozilla||b){this.css("opacity",1)}return this.removeAttr("disabled")},disable:function(b){if(a.browser.mozilla||b){this.css("opacity",0.4)}return this.attr("disabled","disabled")},enabled:function(c,b){return this[c===false?"disable":"enable"](b)},activeItem:function(c){if(!c){c={}}var b={classBase:((c.classBase||this.className)||"dummyClassForActiveItem"),classDown:c.classDown||"",classOver:c.classOver||"",classActive:c.classActive||"",navigation:c.navigation||false,keyNext:c.navigation=="horizontal"?39:40,keyPrev:c.navigation=="horizontal"?37:38};return this.each(function(d){var e=a(this);this.tabIndex="0";this.className=b.classBase;if(b.classOver){e.mouseover(function(f){this.focus();a(this).addClass(b.classOver).siblings("."+b.classBase).mouseout()})}if(b.classOver||b.classDown){e.mouseout(function(f){if(!b.classActive||!e.is("."+b.classActive)){a(this).removeClass([b.classDown,b.classOver].join(" "))}})}e.blur(function(f){a(this).triggerHandler("mouseout")});e.focus(function(f){a(this).triggerHandler("mouseover")});if(b.classDown){e.mousedown(function(f){a(this).addClass(b.classDown);return false});e.mouseup(function(f){a(this).mouseout();return false})}e.keyup(function(f){if(/13|32/.test(f.which)){a(this).mouseup().click();return false}});e.keydown(function(f){if(/13|32/.test(f.which)){a(this).mousedown();return false}else{if(b.navigation){if(f.which==b.keyNext&&(nextItem=a(this).next().not(":disabled"))&&nextItem.length){a(this).mouseout();nextItem.mouseover().focus();return false}else{if(f.which==b.keyPrev&&(prevItem=a(this).prev().not(":disabled"))&&prevItem.length){a(this).mouseout();prevItem.mouseover().focus();return false}}}}});if(b.classOver){e.mouseover(function(f){if(!b.classActive||!e.is("."+b.classActive)){e.addClass(b.classOver)}})}})}});a.fn.bgIframe=a.fn.bgiframe=function(c){if(a.browser.msie&&a.browser.version=="6.0"){c=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},c||{});var d=function(e){return e&&e.constructor==Number?e+"px":e},b='<iframe class="bgiframe" frameborder="0" tabindex="-1" src="'+c.src+'" style="display:block;position:absolute;z-index:-1;'+(c.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(c.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":d(c.top))+";left:"+(c.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":d(c.left))+";width:"+(c.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":d(c.width))+";height:"+(c.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":d(c.height))+';"/>';return this.not(".bgiframeProcessed").prepend(b).addClass("bgiframeProcessed")}return this}}})(jQuery);jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e},easeOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l)==1){return e+m}if(!k){k=l*0.3}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}return g*Math.pow(2,-10*h)*Math.sin((h*l-j)*(2*Math.PI)/k)+m+e},easeInOutElastic:function(f,h,e,m,l){var j=1.70158;var k=0;var g=m;if(h==0){return e}if((h/=l/2)==2){return e+m}if(!k){k=l*(0.3*1.5)}if(g<Math.abs(m)){g=m;var j=k/4}else{var j=k/(2*Math.PI)*Math.asin(m/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*l-j)*(2*Math.PI)/k)*0.5+m+e},easeInBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}return j*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,j,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return j/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return j/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});jQuery.extend(jQuery.easing,{easein:function(e,f,a,h,g){return jQuery.easing.easeInQuad(e,f,a,h,g)},easeout:function(e,f,a,h,g){return jQuery.easing.easeOutQuad(e,f,a,h,g)},easeinout:function(e,f,a,h,g){return jQuery.easing.easeInOutQuad(e,f,a,h,g)},expoin:function(e,f,a,h,g){return jQuery.easing.easeInExpo(e,f,a,h,g)},expoout:function(e,f,a,h,g){return jQuery.easing.easeOutExpo(e,f,a,h,g)},expoinout:function(e,f,a,h,g){return jQuery.easing.easeInOutExpo(e,f,a,h,g)},bouncein:function(e,f,a,h,g){return jQuery.easing.easeInBounce(e,f,a,h,g)},bounceout:function(e,f,a,h,g){return jQuery.easing.easeOutBounce(e,f,a,h,g)},bounceinout:function(e,f,a,h,g){return jQuery.easing.easeInOutBounce(e,f,a,h,g)},elasin:function(e,f,a,h,g){return jQuery.easing.easeInElastic(e,f,a,h,g)},elasout:function(e,f,a,h,g){return jQuery.easing.easeOutElastic(e,f,a,h,g)},elasinout:function(e,f,a,h,g){return jQuery.easing.easeInOutElastic(e,f,a,h,g)},backin:function(e,f,a,h,g){return jQuery.easing.easeInBack(e,f,a,h,g)},backout:function(e,f,a,h,g){return jQuery.easing.easeOutBack(e,f,a,h,g)},backinout:function(e,f,a,h,g){return jQuery.easing.easeInOutBack(e,f,a,h,g)}});(function(a){a.shadow={defaults:{imagePath:"assets/images/shadow/",imageType:"png",corners:"tl tr bl br",sides:"top right bottom left",dimensions:false,wrap:"inside",noPadding:false,margin:false,callback:false,fixWidth:false,innerOverlap:false},remove:function(){a(".jq_shadow").shadow("remove")}};a.fn.shadow=a.browser.msie&&a.browser.version<7?function(){return this}:function(k){if(k&&k.constructor==String&&k=="remove"){return this.each(function(){var l=a(this);if(!l.is(".jq_shadow")){return}if(l.is(":has(> .jq_shadow_inner)")){l.css({border:"",background:"",margin:"",padding:"",width:""}).children(".jq_shadow_inner").css({padding:0,width:"auto"})}l.removeClass("jq_shadow").children(".jq_shadow_element").remove()})}k=a.extend(true,{},a.shadow.defaults,k||{});if(k.margin===false){k.margin=k.sides}var j=this;function h(l,m){return l[0]&&Math.round(parseFloat(jQuery.curCSS(l[0],m,true),10))||0}function g(l){return k.imagePath+l+"."+k.imageType}var f=k.corners.split(" ")[0],b;if(f&&(b=g(f))){var d=new Image();a(d).one("load",function(){k.dimensions={width:this.width,height:this.height};c(j,k)});d.src=b}else{setTimeout(function(){c(j,k)},0)}function c(l,m){l.each(function(){e.call(this,m)})}function e(p){var y=a(this),o,s={},n,x={};if(y.is(".jq_shadow")){return}y.addClass("jq_shadow");if(!p.noPadding){s.padding="0px";if(/t/.test(p.corners)||/top/.test(p.sides)){x.top=p.dimensions.height}if(/r/.test(p.corners)||/right/.test(p.sides)){x.right=p.dimensions.width}if(/b/.test(p.corners)||/bottom/.test(p.sides)){x.bottom=p.dimensions.height}if(/l/.test(p.corners)||/left/.test(p.sides)){x.left=p.dimensions.width}a.each(x,function(z,A){s["padding-"+z]=A;if(p.margin&&p.margin.indexOf(z)>-1){s["margin-"+z]=-(A-h(y,"padding-"+z))+h(y,"margin-"+z)}})}if(p.wrap=="inside"){var w={};if(!y.is(":has(> .jq_shadow_inner)")){var t,m=["backgroundColor","backgroundScroll","backgroundPosition","backgroundImage","backgroundRepeat"];for(var r=0;r<m.length;r++){if(t=y.css(m[r])){w[m[r]]=t}}s.background="transparent";y.wrapInner('<div class="jq_shadow_inner"></div>')}var l,v,u;a.each("left right top bottom".split(" "),function(){u=this.toString();v=h(y,"padding-"+u);l=h(y,"border-"+u+"-width");if(p.innerOverlap){w["margin-"+u]=v-(x[u]||0)+l;w["padding-"+u]=Math.max(v,0)}else{w["padding-"+u]=Math.max(v-(x[u]||0),0)+l}});if(p.fixWidth){var q=h(y,"width");if(q>0){w.width=q}}if(a.browser.msie){w.zoom=1;s.zoom=1}y.children(".jq_shadow_inner").css(w);s.border="none";s.background="transparent"}if(y.css("position")!="absolute"){s.position="relative"}y.css(s);s={position:"absolute"};if(a.browser.msie){s.lineHeight=0;s.fontSize=0}a.each(p.sides.split(" "),function(){var A=a("<span>&nbsp;</span>").css(s).addClass(this+" jq_shadow_element");var z={backgroundImage:"url("+g(this)+")"};if(/left|right/.test(this)){z[this]=0;z.backgroundRepeat="repeat-y";z.width=p.dimensions.width;z.top=p.corners.indexOf("t"+this.charAt(0))>-1?p.dimensions.height:0;z.bottom=p.corners.indexOf("b"+this.charAt(0))>-1?p.dimensions.height:0}else{if(/top|bottom/.test(this)){z[this]=0;z.backgroundRepeat="repeat-x";z.height=p.dimensions.height;z.left=p.corners.indexOf(this.charAt(0)+"l")>-1?p.dimensions.width:0;z.right=p.corners.indexOf(this.charAt(0)+"r")>-1?p.dimensions.width:0}}A.appendTo(y).css(z)});a.extend(s,p.dimensions);s.backgroundRepeat="no-repeat";a.each(p.corners.split(" "),function(){var A=a("<span>&nbsp;</span>").css(s).addClass(this+" jq_shadow_element");var z={backgroundImage:"url("+g(this)+")"};if(/b/.test(this)){z.bottom=0}if(/t/.test(this)){z.top=0}if(/l/.test(this)){z.left=0}if(/r/.test(this)){z.right=0}A.appendTo(y).css(z)});if(k.callback){k.callback.apply(y)}}return this}})(jQuery);var PopupMessage=function(){if(window==this){return window.___popupMessage?window.___popupMessage:new PopupMessage()}window.___popupMessage=this;$('<div id="dimmer" title="Click to close" style="cursor: pointer; position: absolute; left: 0; top: 0; width: 100%; background: #000; z-index:100; display:none;"></div>').appendTo("body").click(function(){PopupMessage().hide()})};PopupMessage.prototype={settings:{emptyOnHide:false,width:600,ifixpng:"img",lightboxButton:"assets/images/buttons/close.png",addHelpers:false,easing:"easeOutCubic"},set:function(a){$.extend(this.settings,a)},lightbox:function(f,d){d=d||{};var b=$("#lightbox"),a=this;if(!(b.length)){b='<div id="lightbox"><div id="lightboxInner"><span id="lightboxCloseLink"><img alt="sluiten" src="'+this.settings.lightboxButton+'" id="lightboxClose"/></span>';if(this.settings.addHelpers){b=b+'<span class="top">&nbsp;</span><span class="tl">&nbsp;</span><span class="tr">&nbsp;</span>'}b=b+'<div id="lightboxContent"></div>';if(this.settings.addHelpers){b=b+'<span class="bottom">&nbsp;</span><span class="bl">&nbsp;</span><span class="br">&nbsp;</span></div></div>'}b=$(b).css({textAlign:"center",position:"absolute",left:0,display:"none",width:"100%"}).appendTo("body");$("#lightboxClose",b).css({cursor:"pointer",zIndex:1001}).click(function(){a.hide()});if(this.settings.shadow&&$.shadow&&!($.browser.msie&&$.browser.version<7)){this.settings.emptyOnHide=".jq_shadow_inner";var g=$("#lightboxContent").html("<div/>").shadow($.extend({callback:e},this.settings.shadow))}else{e()}}else{e()}function e(){var c={width:a.settings.width,margin:"auto",textAlign:"left",position:"relative"};if($.metadata&&$(f).get(0)){c.width=$(f).metadata().width||d.width||c.width}$("#lightboxInner",b).css(c);if(!a.settings.emptyOnHide||a.settings.emptyOnHide===true){a.settings.emptyOnHide="#lightboxContent"}a.settings.contentEl=b.find(a.settings.emptyOnHide).html(f);a.show(b,false,d)}},showMessage:function(c,b){b=b||{};var a=$("#myMessageBoxHelper");if(!(a.length)){a=$('<div id="myMessageBoxHelper" style="position: absolute; width: 100%; display: none; text-align: center; left: 0;"><div id="myMessageBox" style="margin: auto; position: relative;"></div></div>').appendTo("body")}var f={width:"",height:""};if($.metadata){var e=$(c).metadata();f.width=e.width||f.width;f.height=e.height||f.height}a.find(":first-child").css(f).html(c);this.show("myMessageBoxHelper",b.onShow,b)},show:function(d,e,c){c=c||{};var b=this;var a=typeof d=="string"?$("#"+d):$(d);if(!a.length){return}else{this.control=a}$("body").children().not(this.control).find("embed, object, select").css({visibility:"hidden"});if(e){c.onShow=e}if($("#dimmer").is(":hidden")){$("#dimmer").css({opacity:0.4,zIndex:900}).animate({opacity:"show"},200,function(){b._show(a,c)})}else{this._show(a,c)}return this},_show:function(c,b){var a=this;this._setHeight();if($.ifixpng&&this.settings.ifixpng){$(this.settings.ifixpng===true?"img":this.settings.ifixpng,c).ifixpng()}c.css({zIndex:1000,position:"absolute",opacity:0,display:"block"}).animate({opacity:1},200,function(){if($.browser.msie){c.css("opacity","")}$(window).bind("resize.popupmessage scroll.popupmessage",window.___popupMessage._setHeight);$(document).bind("keyup.popupmessage",function(f){var d=true;if(f.keyCode==27){a.hide()}else{d=false}if(d){f.preventDefault()}});if($.isFunction(b.onShow)){b.onShow.apply(c)}});if($.isFunction(b.onHide)){c.one("hide.popupmessage",b.onHide)}},hide:function(c){var b=this;$(window).add(document).unbind(".popupmessage");var a=$(this.control).stop().animate({opacity:0},function(){a.hide();if(b.settings.emptyOnHide){if($.browser.msie){a.find("embed,object").remove()}a.find(b.settings.emptyOnHide.constructor!=Boolean?b.settings.emptyOnHide:":first-child").empty()}$("#dimmer").animate({opacity:"hide"},300,function(){$("embed, object, select").css({visibility:"visible"})})}).trigger("hide");return this},_setHeight:function(d){var c=$(window.___popupMessage.control);var f=$(window);var b=f.scrollTop();var a=f.scrollTop()+(f.height()/2)-(c.height()/2);if(a>b){if(d){c.stop(true)}c.animate({top:a},"fast",window.___popupMessage.settings.easing)}else{if(!d){c.animate({top:b+25},"fast",window.___popupMessage.settings.easing)}}$("#dimmer").height($(document).height())}};(function(d){var b={},k,m,o,j=d.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),a=false;d.Tooltip={blocked:false,defaults:{delay:200,showURL:true,extraClass:"",top:15,left:15},block:function(){d.Tooltip.blocked=!d.Tooltip.blocked}};d.fn.extend({Tooltip:function(p){p=d.extend({},d.Tooltip.defaults,p);g();return this.each(function(){this.tSettings=p;this.tooltipText=this.title;d(this).removeAttr("title");this.alt=""}).hover(l,e).click(e)},hideWhenEmpty:function(){return this.each(function(){d(this)[d(this).html()?"show":"hide"]()})},url:function(){return this.attr("href")||this.attr("src")}});function g(){if(b.parent){return}b.parent=d('<div id="tooltip"><h3></h3><div class="body"></div><div class="url"></div></div>').hide().css({position:"absolute",zIndex:4000}).appendTo("body");if(d.fn.bgiframe){b.parent.bgiframe()}b.title=d("h3",b.parent);b.body=d("div.body",b.parent);b.url=d("div.url",b.parent)}function f(p){if(this.tSettings.delay){o=setTimeout(n,this.tSettings.delay)}else{n()}a=!!this.tSettings.track;d("body").bind("mousemove",c);c(p)}function l(s){if((d.Tooltip.blocked||this==k||!this.tooltipText)&&!d.isFunction(this.tSettings.bodyHandler)){return}s.preventDefault();s.stopPropagation();k=this;m=this.tooltipText;if(this.tSettings.bodyHandler){b.title.hide();b.body.html(this.tSettings.bodyHandler.call(this)).show()}else{if(this.tSettings.showBody){var r=m.split(this.tSettings.showBody);b.title.html(r.shift()).show();b.body.empty();for(var q=0,p;p=r[q];q++){if(q>0){b.body.append("<br/>")}b.body.append(p)}b.body.hideWhenEmpty()}else{b.title.html(m).show();b.body.hide()}}if(this.tSettings.showURL&&d(this).url()){b.url.html(d(this).url().replace("http://","")).show()}else{b.url.hide()}b.parent.addClass(this.tSettings.extraClass);if(this.tSettings.fixPNG&&d.ifixpng){b.parent.ifixpng()}f.apply(this,arguments)}function n(){o=null;b.parent.show();c()}function c(r){if(d.Tooltip.blocked){return}if(!a&&b.parent.is(":visible")){d("body").unbind("mousemove",c)}if(k==null){d("body").unbind("mousemove",c);return}var t=b.parent[0].offsetLeft;var s=b.parent[0].offsetTop;if(r){r.preventDefault();r.stopPropagation();t=r.pageX+k.tSettings.left;s=r.pageY+k.tSettings.top;b.parent.css({left:t+"px",top:s+"px"})}var p=h(),q=b.parent[0];if(p.x+p.cx<q.offsetLeft+q.offsetWidth){t-=q.offsetWidth+20+k.tSettings.left;b.parent.css({left:t+"px"})}if(p.y+p.cy<q.offsetTop+q.offsetHeight){s-=q.offsetHeight+20+k.tSettings.top;b.parent.css({top:s+"px"})}}function h(){return{x:d(window).scrollLeft(),y:d(window).scrollTop(),cx:d(window).width(),cy:d(window).height()}}function e(p){if(d.Tooltip.blocked){return}if(o){clearTimeout(o)}k=null;b.parent.hide().removeClass(this.tSettings.extraClass)}})(jQuery);function flashembed(k,o,e){if(typeof k=="string"){k=document.getElementById(k)}var g={src:"#",width:"100%",height:"100%",version:null,loadEvent:null,onFail:null,expressInstall:window.pb_path+"js/expressInstall.swf",allowfullscreen:true,allowscriptaccess:"always",quality:"high",bgcolor:"#ffffff",wmode:"opaque",type:"application/x-shockwave-flash",pluginspage:"http://www.adobe.com/go/getflashplayer"};h(g,o);var n=g.loadEvent;g.loadEvent=null;if(n){if(!k){return}k["on"+n]=function(){return m()}}else{return m()}function h(q,p){if(p){for(key in p){q[key]=p[key]}}}function d(p){if(/img|a/.test(k.nodeName.toLowerCase())){var q=$("<div/>").html(p).insertAfter(k);$(k).remove();k=q[0]}else{k.innerHTML=p}}function m(){var p=f();var r=g.version;var s=g.expressInstall;if(!k){return}if(parseInt(p)>0&&(!r||c(r))){g.onFail=g.version=g.expressInstall=null;d(a());return k.firstChild}else{if(g.onFail){var q=g.onFail.call(g,f(),e);if(q){d(q)}}else{if(r&&s&&c([6,65])){h(g,{src:s});e={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title};d(a())}else{if(k.innerHTML.replace(/\s/g,"")!=""){}else{d('<div class="noFlash"><h2>Flash version '+(r||"6.65")+" or greater is required</h2><h3>"+(p[0]>0?"Your version is "+p:"You have no flash plugin installed")+"</h3><p>Download the latest version <a href='"+g.pluginspage+"'>here</a></p></div>")}}}}k["on"+n]=null}function c(p){var r=f();var q=(r[0]>p[0])||(r[0]==p[0]&&r[1]>=p[1]);return q}function a(){var q="";if(typeof e=="function"){e=e()}if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){q='<embed type="application/x-shockwave-flash" ';h(g,{name:g.id});for(var p in g){if(g[p]!=null){q+=[p]+'="'+g[p]+'"\n\t'}}if(e){q+="flashvars='";for(var p in e){q+=[p]+"="+encodeURIComponent(e[p])+"&"}q+="'"}q+="/>"}else{q='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';q+='width="'+g.width+'" height="'+g.height+'"';if(document.all&&parseInt(navigator.appVersion)<=6){g.id="_"+(""+Math.random()).substring(5)}if(g.id){q+=' id="'+g.id+'"'}q+=">";q+='\n\t<param name="movie" value="'+g.src+'" />';$.extend(e,{width:g.width,height:g.height});g.id=g.src=g.width=g.height=null;for(var p in g){if(g[p]!=null){q+='\n\t<param name="'+p+'" value="'+g[p]+'" />'}}if(e){q+='\n\t<param name="flashvars" value=\'';for(var p in e){q+=[p]+"="+encodeURIComponent(e[p])+"&"}q+="' />"}q+="</object>"}return q}function f(){var q=[0,0];if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){var p=navigator.plugins["Shockwave Flash"].description;if(typeof p!="undefined"){p=p.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var r=parseInt(p.replace(/^(.*)\..*$/,"$1"),10);var u=/r/.test(p)?parseInt(p.replace(/^.*r(.*)$/,"$1"),10):0;q=[r,u]}}else{if(window.ActiveXObject){try{var s=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(t){try{var s=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");q=[6,0];s.AllowScriptAccess="always"}catch(t){if(q[0]==6){return}}try{var s=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(t){}}if(typeof s=="object"){var p=s.GetVariable("$version");if(typeof p!="undefined"){p=p.replace(/^\S+\s+(.*)$/,"$1").split(",");q=[parseInt(p[0],10),parseInt(p[2],10)]}}}}return q}function j(q){switch(l(q)){case"string":return'"'+q.replace(new RegExp('(["\\\\])',"g"),"\\$1")+'"';case"array":return"["+b(q,function(s){return j(s)}).join(",")+"]";case"object":var r=[];for(var p in q){r.push('"'+p+'":'+j(q[p]))}return"{"+r.join(",")+"}"}return String(q).replace(/\s/g," ").replace(/\'/g,'"')}function l(q){if(q===null||q===undefined){return false}var p=typeof q;return(p=="object"&&q.push)?"array":p}if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function b(p,s){var r=[];for(var q in p){r[q]=s(p[q])}return r}flashembed.getVersion=f;flashembed.isSupported=c;return k}if(typeof jQuery=="function"){(function(b){var a=b.flashembed={players:{flv:window.pb_path+"js/mediaplayer.swf",mp3:window.pb_path+"js/mediaplayer.swf"},types:{flv:function(e,d,c){c.file=e;return a.players.flv+"?"+b.param(c)},mp3:function(e,d,c){c.file=e;return a.players.mp3+"?file="+encodeURIComponent(e)},swf:function(e,d,c){return e}}};b.fn.flashembed=function(d,c){c=c||{};return this.each(function(){b(this).css("display","block");d=b.extend(b.metadata?b(this).metadata():{},d);d.height=d.height||this.height||b(this).height();d.width=d.width||this.width||b(this).width();d.type=d.type||"swf";if(d.type=="youtube"){d.type="flv"}d.src=a.types[d.type]?a.types[d.type](d.src||this.href||this.src,d,c):d.src;new flashembed(this,d,c)})}})(jQuery)}jQuery.fn.extend({selectbox:function(a){return this.each(function(){new jQuery.SelectBox(this,a)})}});jQuery.SelectBox=function(x,e){var u=$(x);if(u.is(".jq_selectbox")){return this}u.addClass("jq_selectbox");var b=e||{};b.inputClass=b.inputClass||"selectbox";b.containerClass=b.containerClass||"selectbox-wrapper";b.hoverClass=b.hoverClass||"selected";b.debug=b.debug||false;var l=x.id;var g=-1;var d=false;var w=0;var c=o(b);var s=h(b);var n=false;var r=false;var v=false;u.css("display","none").before(c).before(s);t();var a=0;c.click(function(y){if(y.originalEvent!=undefined){n=true}v=false;if(r){r=false;return}if(s.css("display")!="block"){var z=c.position();s.css({position:"absolute",left:z.left,top:z.top+c.height()});s.show()}else{s.hide()}}).mousedown(function(y){v=true}).focus(function(y){if(s.not(":visible")){if(v){r=true}d=true;var z=c.position();s.css({position:"absolute",left:z.left,top:z.top+c.height()});s.show()}}).keydown(function(y){switch(y.keyCode){case 38:y.preventDefault();m(-1);break;case 40:y.preventDefault();m(1);break;case 13:y.preventDefault();f();j();break}}).blur(function(){if(s.is(":visible")&&w>0){if(b.debug){console.log("container visible and has focus")}}else{j()}});function j(){w=0;s.hide()}function t(){s.append(p());s.css("display","none");s.width(c.width())}function h(z){var y=document.createElement("div");s=$(y);s.attr("id",l+"_container");s.addClass(z.containerClass);return s}function o(y){return $('<input type="text" />').attr({id:l+"_input",autocomplete:"off",readonly:"readonly",tabIndex:u.attr("tabindex")}).addClass(y.inputClass)}function m(z){var y=$("li",s);if(!y){return}g+=z;if(g<0){g=0}else{if(g>=y.size()){g=y.size()-1}}y.removeClass(b.hoverClass);$(y[g]).addClass(b.hoverClass)}function f(){var y=$("li."+b.hoverClass,s).get(0);var z=y.id;if(u.val()!==z){u.val(z).trigger("change")}c.val($(y).html());return true}function q(){return u.val()}function k(){return c.val()}function p(){var z=new Array();var y=document.createElement("ul");u.children("option").each(function(){var A=document.createElement("li");A.setAttribute("id",$(this).val());A.innerHTML=$(this).html();if($(this).is(":selected")){c.val($(this).html());$(A).addClass(b.hoverClass)}y.appendChild(A);$(A).mouseover(function(B){w=1;if(b.debug){console.log("out on : "+this.id)}$(B.target,s).addClass(b.hoverClass)}).mouseout(function(B){w=-1;if(b.debug){console.log("out on : "+this.id)}$(B.target,s).removeClass(b.hoverClass)}).click(function(B){if(b.debug){console.log("click on :"+this.id)}$(this).addClass(b.hoverClass);f();j()})});return y}};(function(a){if(!document.defaultView||!document.defaultView.getComputedStyle){var b=jQuery.curCSS;jQuery.curCSS=function(e,c,f){if(c!=="backgroundPosition"||!e.currentStyle||e.currentStyle[c]){return b.apply(this,arguments)}var d=e.style;if(!f&&d&&d[c]){return d[c]}return b(e,"backgroundPositionX",f)+" "+b(e,"backgroundPositionY",f)}}})(jQuery);(function(b){function a(d){d=d.replace(/left|top/g,"0px");d=d.replace(/right|bottom/g,"100%");d=d.replace(/([0-9\.]+)(\s|\)|$)/g,"$1px$2");var c=d.match(/(-?[0-9\.]+)(px|\%|em|pt)\s(-?[0-9\.]+)(px|\%|em|pt)/);return[parseFloat(c[1],10),c[2],parseFloat(c[3],10),c[4]]}b.fx.step.backgroundPosition=function(d){if(!d.bgPosReady){var f=b.curCSS(d.elem,"backgroundPosition");if(!f){f="0px 0px"}f=a(f);d.start=[f[0],f[2]];var c=a(d.options.curAnim.backgroundPosition);d.end=[c[0],c[2]];d.unit=[c[1],c[3]];d.bgPosReady=true}var e=[];e[0]=((d.end[0]-d.start[0])*d.pos)+d.start[0]+d.unit[0];e[1]=((d.end[1]-d.start[1])*d.pos)+d.start[1]+d.unit[1];d.elem.style.backgroundPosition=e[0]+" "+e[1]}})(jQuery);$(init);var currentURL=window.location.protocol+"//"+window.location.host+window.location.pathname;if(!window.console){window.console={log:function(){}}}function init(){if($.browser.msie){try{document.execCommand("BackgroundImageCache",false,true)}catch(a){}}$("body").removeClass("nonJS").addClass("js");$.ifixpng("assets/images/pixel.gif");PopupMessage().set({lightboxButton:"assets/images/buttons/close.png",width:678});if(!($.browser.msie&&$.browser.version.substr(0,1)<7)){$("#mainMenu li").each(function(){$("a",this).before($(this).html());$("a:first",this).addClass("no_hover");$("a:last",this).addClass("hover").fadeTo(0,0)}).hover(function(){$("a.hover span",this).stop().fadeTo(300,1);$("a.hover",this).stop().fadeTo(400,1)},function(){$("a.hover span",this).stop().fadeTo(300,0);$("a.hover",this).stop().fadeTo(200,0)})}$("div.foldable").foldout();$("body#homepage div.foldable_teaser").addClass("closed").find("div.collection_innerWrapper").slideUp();$("div.foldable_teaser h2").click(function(){var b=$(this).parent().find("div.collection_innerWrapper");if(b.is(":hidden")){b.slideDown().parent().removeClass("no_shadow closed")}else{b.slideUp().parent().addClass("no_shadow closed")}});$("div.locations li.collection_item").hover(function(){$("span.collection_item_no_url",this).stop().fadeTo(400,1)},function(){$("span.collection_item_no_url",this).stop().fadeTo(200,0)});$("*").removeAttr("title");$("div.contact_team .contact_map #map_team_europe div, div.contact_team .contact_map #map_team_america div, div.contact_team .contact_map #map_team_asia div").Tooltip({bodyHandler:function(){return $(this).closest(".contact_map").find("span.contact_tooltip span."+this.className).html()},showURL:false,track:true,delay:0,left:-70,extraClass:"contact_team_tooltip"});$("div.image_carousel_teaser, div.image_carousel").each(function(){var b=$(this),f=b.parents("div[id$=CollectionPane]:first").attr("id"),e={output:"json",retrieve:"collectionview",view:b.metadata().view},d="#"+location.hash.substring(2);if(f){e.siteposition=f}$("a.prevItem, a.nextItem").remove();var c=b.find("ul.collection_items");$("a.page",this).ajaxNav({target:c,hash:false,preload:false,fade:false,callback:bindCarouselItemEvents,onNavigate:navigateCarousel,createViewport:true,createWorkspace:true,fixViewport:true,processBackLinks:false,keyNav:true,classActive:"activePage",ajaxParams:e,buttons:{right:"assets/images/buttons/next.png",left:"assets/images/buttons/prev.png"},find:"ul.collection_items"});$("ul.collection_items li:first",this).addClass("active");bindCarouselItemEvents.apply(c);if(location.hash!=""){$(d+" a",b).trigger("click")}});$("div.latest_news").each(function(){var b=$(this),e=b.parents("div[id$=CollectionPane]:first").attr("id"),d={output:"json",retrieve:"collectionview",view:b.metadata().view};if(e){d.siteposition=e}var c=b.find("ul.collection_items");$("a.page",this).ajaxNav({target:c,hash:false,preload:false,fade:true,createViewport:true,createWorkspace:true,fixViewport:true,processBackLinks:false,classActive:"activePage",ajaxParams:d,find:"ul.collection_items"})});$("div.teaser_movie").addClass("jq_gallery").each(function(){var b=$(this),e=b.parents("div[id$=CollectionPane]:first").attr("id"),d={output:"json",retrieve:"collectionview",view:b.metadata().view};if(e){d.siteposition=e}var c=b.find("ul.collection_items");$("a.page",this).ajaxNav({target:c,hash:false,preload:false,fade:true,callback:addEwyseGallery,createViewport:true,createWorkspace:true,fixViewport:true,processBackLinks:false,classActive:"activePage",ajaxParams:d,find:"ul.collection_items"});addEwyseGallery.apply(c)});$("div.contact_team span#continent_links a").click(function(){var c=(parseInt(this.id)*256)+"px",b=$(this);b.parent().find("a").removeClass("active");b.addClass("active");$("div.contact_team div.collection_innerWrapper").animate({scrollTop:c},500,"easeInOutQuart",function(){$("div.contact_map",this).css({display:"inline"}).css({display:"block"})});return false});$("a.contact_me, div.image_carousel li.sample_request a, div.contact_team a.sample_request, div.image_carousel li.mail a, a.sample_request").lightbox({output:"json",retrieve:"content"},{onShow:processPage});$.ewyseGallery.set({imgPath:"assets/images/gallery/",maxHeight:467,minHeight:467,minWidth:697,maxWidth:697,autoMaxDimension:true,fitImage:true,cacheAjaxRequests:true,flashparams:{height:330}});$("div.image_carousel li.print a").click(function(){$(this).closest("div.selectedImage").remove("ul").print({css:"div.print_area h2 { padding: 10px 0; } div.print_area span.image { float: left; margin-right: 10px; width: 282px; border: 1px solid #f2f2f2; } div.print_area ul.links { display: none; }"});return false});$("img.media").flashembed();processContent(document)}function processContent(a){a=$(a||this);$("div.assets:not(.jq_gallery)",a).addClass("jq_gallery").each(function(){var c=$(this).attr("id").split("_"),b={output:"json",retrieve:"collectionImages"};console.log(c);b[c[0]=="colView"?"view":"doc_id"]=c[1];$("a.collection_item_url",this).ewyseGallery({rewriteFunction:resizeImage,mode:"json",url:$.makeURL(rootURL,b)})});$("a.lightbox").lightbox({output:"json",retrieve:"content"},{cache:true,onShow:processContent})}function addEwyseGallery(){$("a.collection_item_url:not(.processed)",this).addClass("processed").ewyseGallery()}var processPage=function(a){a=$(a||this);var b=$("form",a).not(".processed");b.find("input, textarea").example(function(){return $(this).metadata().example});b.filter("#mailpageForm, #mailToContactForm, #sampleRequestForm").addClass("processed").args({output:"json",retrieve:"data",data:["missing","validated","error"]}).ajaxForm({dataType:"json",success:ajaxFormReply,beforeSubmit:beforeFormSubmit});var c=$.parseGetParameters($("div.image_carousel li.mail a").attr("href"));$("#refInput").val(c.ref)};function beforeFormSubmit(b,c){$(c).add($(":submit, :image",c)).attr("disabled","disabled")}function ajaxFormReply(c,b,d){$form=$(d);if(!c.validated){$form.add($(":submit, :image",d)).removeAttr("disabled");if(c.missing&&c.missing.length>0){$.each(c.missing,function(){var e=$(':input[name="'+this+'"]:not(.error)',d);if(e.length){var a=e.metadata().error;if(e.is(":radio")){var g=$([]);e.each(function(){g=g.add($(d).find('label[for="'+this.id+'"]:not(.error)'))});e=g}if(e.length){var h=e.position();if(a){var f=$('<span class="errorMessage"/>').text(a).appendTo(e.parent()).css({position:"absolute",left:h.left+5,top:h.top-5,cursor:"pointer"}).one("click",function(){e.focus()})}e.addClass("error").one("focus click",function(){if(a){f.remove()}e.removeClass("error")})}}})}else{PopupMessage().lightbox(c.message)}}else{PopupMessage().lightbox(c.message)}}function bindCarouselItemEvents(){$("a.collection_item_url:not(.processed)",this).addClass("processed").click(function(){var j=$(this),b=j.attr("href"),h=j.closest("div.collection_innerWrapper"),g=j.closest("ul"),c=$.parseGetParameters(b),f=g.find("li").length,e=((c.img-1)%f)+1,d,a=j.parents().find("div.selectedImage");h.find("li").removeClass("active");j.parent().addClass("active");if($("div.image_carousel_teaser").length>0){if(e==1){d="-151px 194px"}else{if(e==2){d="-76px 194px"}else{d="2px 194px"}}a.stop().animate({backgroundPosition:"("+d+")",duration:200},function(){a.find("h2, span").stop().fadeTo(200,0,function(){$("h2",a).html(j.parent().find("span.collection_item_title").html());$("span.learn_more a",a).attr("href",j.parent().find("span.collection_item_learnmore_nav_url").html());$("img",a).attr("src",resizeImage($("img",j).attr("src"),185,149));a.find("span, h2").fadeTo(300,1)})})}else{location.hash="_"+j.parent().attr("id");a.find("h2, span").fadeTo(100,0,function(){$("h2",a).html(j.parent().find("span.collection_item_title").html());$("span.content",a).html(j.parent().find("span.collection_item_content").html());$("span.image img",a).attr("src",resizeImage($("img",j).attr("src"),282,217));$("li.mail a",a).attr("href",j.parent().find("span.collection_item_mail_to_url").html());var l=j.parent().find("span.collection_item_factsheet_url"),k=$("li.download a",a);k.attr("href",l.html());if(l.length==0){k.hide()}else{k.show()}a.find("h2, span").fadeTo(200,1)})}return false})}function navigateCarousel(a){$("li:first a",a.to.target).trigger("click")}function resizeImage(c,d,a){var e=c.split("?");var b=$.parseGetParameters(c,true);b.width=d;b.height=a;return $.makeURL(e[0],b)}(function(a){a.fn.foldout=function(){return this.each(function(){var b=a(this),c=b.find("li"),d=false;function e(h,f,g){if(g){h.removeClass("closed").addClass("open");f.slideDown("slow","easeOutCubic")}else{h.removeClass("open").addClass("closed");f.slideUp("slow","easeOutCubic")}}c.each(function(){var f=a(this),g=f.find("span.collection_item_content, span.collection_item_image").hide(),h=f.find("span.collection_item_title").addClass("closed");f.bind("foldOpen",function(){e(h,g,true)});f.bind("foldClosed",function(){e(h,g,false)});if(f.hasClass("firstCollectionItem")){d=f.trigger("foldOpen")}h.click(function(){if(d){d.trigger("foldClosed")}if((d[0]!=f[0])){d=f.trigger("foldOpen")}else{d=false}})})})}})(jQuery);(function(){jQuery.fn.print=function(b){var c="<HTML>\n<HEAD>\n<style type='text/css'>\n"+b.css+"</style>"+$("head").html()+"\n</HEAD>\n<BODY>\n";this.each(function(d,f){c+='<DIV class="print_area">\n'+$(f).html()+"</DIV>\n"});c+="</BODY>\n</HTML>";var a=window.open("","printWebPart","width=800,height=600,scrollbars=yes");a.document.open();a.document.write(c);a.document.close();a.print();return false}})();