(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.makeArray(E))},selector:"",jquery:"1.3.1",size:function(){return this.length},get:function(E){return E===g?o.makeArray(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,find:function(E){if(this.length===1&&!/,/.test(E)){var G=this.pushStack([],"find",E);G.length=0;o.find(E,this[0],G);return G}else{var F=o.map(this,function(H){return o.find(E,H)});return this.pushStack(/[^+>] [^+>]/.test(E)?o.unique(F):F,"find",E)}},clone:function(F){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.cloneNode(true),H=document.createElement("div");H.appendChild(I);return o.clean([H.innerHTML])[0]}else{return this.cloneNode(true)}});var G=E.find("*").andSelf().each(function(){if(this[h]!==g){this[h]=null}});if(F===true){this.find("*").andSelf().each(function(I){if(this.nodeType==3){return}var H=o.data(this,"events");for(var K in H){for(var J in H[K]){o.event.add(G[I],K,H[K][J],H[K][J].data)}}})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var F=o.expr.match.POS.test(E)?o(E):null;return this.map(function(){var G=this;while(G&&G.ownerDocument){if(F?F.index(G)>-1:o(G).is(E)){return G}G=G.parentNode}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return!!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return!!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F<J;F++){var G=M[F];if(G.selected){K=o(G).val();if(H){return K}L.push(K)}}return L}return(E.value||"").replace(/\r/g,"")}return g}if(typeof K==="number"){K+=""}return this.each(function(){if(this.nodeType!=1){return}if(o.isArray(K)&&/radio|checkbox/.test(this.type)){this.checked=(o.inArray(this.value,K)>=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML:null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(K,N,M){if(this[0]){var J=(this[0].ownerDocument||this[0]).createDocumentFragment(),G=o.clean(K,(this[0].ownerDocument||this[0]),J),I=J.firstChild,E=this.length>1?J.cloneNode(true):J;if(I){for(var H=0,F=this.length;H<F;H++){M.call(L(this[H],I),H>0?E.cloneNode(true):J)}}if(G){o.each(G,z)}}return this;function L(O,P){return N&&o.nodeName(O,"table")&&o.nodeName(P,"tr")?(O.getElementsByTagName("tbody")[0]||O.appendChild(O.ownerDocument.createElement("tbody"))):O}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return+new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H<I;H++){if((G=arguments[H])!=null){for(var F in G){var K=J[F],L=G[F];if(J===L){continue}if(E&&L&&typeof L==="object"&&!L.nodeType){J[F]=o.extend(E,K||(L.length!=null?[]:{}),L)}else{if(L!==g){J[F]=L}}}}}return J};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,q=document.defaultView||{},s=Object.prototype.toString;o.extend({noConflict:function(E){l.$=p;if(E){l.jQuery=y}return o},isFunction:function(E){return s.call(E)==="[object Function]"},isArray:function(E){return s.call(E)==="[object Array]"},isXMLDoc:function(E){return E.nodeType===9&&E.documentElement.nodeName!=="HTML"||!!E.ownerDocument&&o.isXMLDoc(E.ownerDocument)},globalEval:function(G){G=o.trim(G);if(G){var F=document.getElementsByTagName("head")[0]||document.documentElement,E=document.createElement("script");E.type="text/javascript";if(o.support.scriptEval){E.appendChild(document.createTextNode(G))}else{E.text=G}F.insertBefore(E,F.firstChild);F.removeChild(E)}},nodeName:function(F,E){return F.nodeName&&F.nodeName.toUpperCase()==E.toUpperCase()},each:function(G,K,F){var E,H=0,I=G.length;if(F){if(I===g){for(E in G){if(K.apply(G[E],F)===false){break}}}else{for(;H<I;){if(K.apply(G[H++],F)===false){break}}}}else{if(I===g){for(E in G){if(K.call(G[E],E,G[E])===false){break}}}else{for(var J=G[0];H<I&&K.call(J,H,J)!==false;J=G[++H]){}}}return G},prop:function(H,I,G,F,E){if(o.isFunction(I)){I=I.call(H,F)}return typeof I==="number"&&G=="curCSS"&&!b.test(E)?I+"px":I},className:{add:function(E,F){o.each((F||"").split(/\s+/),function(G,H){if(E.nodeType==1&&!o.className.has(E.className,H)){E.className+=(E.className?" ":"")+H}})},remove:function(E,F){if(E.nodeType==1){E.className=F!==g?o.grep(E.className.split(/\s+/),function(G){return!o.className.has(F,G)}).join(" "):""}},has:function(F,E){return F&&o.inArray(E,(F.className||F).toString().split(/\s+/))>-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(G,E,I){if(E=="width"||E=="height"){var K,F={position:"absolute",visibility:"hidden",display:"block"},J=E=="width"?["Left","Right"]:["Top","Bottom"];function H(){K=E=="width"?G.offsetWidth:G.offsetHeight;var M=0,L=0;o.each(J,function(){M+=parseFloat(o.curCSS(G,"padding"+this,true))||0;L+=parseFloat(o.curCSS(G,"border"+this+"Width",true))||0});K-=Math.round(M+L)}if(o(G).is(":visible")){H()}else{o.swap(G,F,H)}return Math.max(0,K)}return o.curCSS(G,E,I)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,R){if(typeof R==="number"){R+=""}if(!R){return}if(typeof R==="string"){R=R.replace(/(<(\w+)[^>]*?)\/>/g,function(T,U,S){return S.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?T:U+"></"+S+">"});var O=o.trim(R).toLowerCase();var Q=!O.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!O.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!O.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!O.indexOf("<td")||!O.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!O.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!o.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];L.innerHTML=Q[1]+R+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var N=!O.indexOf("<table")&&O.indexOf("<tbody")<0?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&O.indexOf("<tbody")<0?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(R)){L.insertBefore(K.createTextNode(R.match(/^\s*/)[0]),L.firstChild)}R=o.makeArray(L.childNodes)}if(R.nodeType){G.push(R)}else{G=o.merge(G,R)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E<F;E++){if(H[E]===G){return E}}return-1},merge:function(H,E){var F=0,G,I=H.length;if(!o.support.getAll){while((G=E[F++])!=null){if(G.nodeType!=8){H[I++]=G}}}else{while((G=E[F++])!=null){H[I++]=G}}return H},unique:function(K){var F=[],E={};try{for(var G=0,H=K.length;G<H;G++){var J=o.data(K[G]);if(!E[J]){E[J]=true;F.push(K[G])}}}catch(I){F=K}return F},grep:function(F,J,E){var G=[];for(var H=0,I=F.length;H<I;H++){if(!E!=!J(F[H],H)){G.push(F[H])}}return G},map:function(E,J){var F=[];for(var G=0,H=E.length;G<H;G++){var I=J(E[G],G);if(I!=null){F[F.length]=I}}return F.concat.apply([],F)}});var C=navigator.userAgent.toLowerCase();o.browser={version:(C.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(C),opera:/opera/.test(C),msie:/msie/.test(C)&&!/opera/.test(C),mozilla:/mozilla/.test(C)&&!/(compatible|webkit)/.test(C)};o.each({parent:function(E){return E.parentNode},parents:function(E){return o.dir(E,"parentNode")},next:function(E){return o.nth(E,2,"nextSibling")},prev:function(E){return o.nth(E,2,"previousSibling")},nextAll:function(E){return o.dir(E,"nextSibling")},prevAll:function(E){return o.dir(E,"previousSibling")},siblings:function(E){return o.sibling(E.parentNode.firstChild,E)},children:function(E){return o.sibling(E.firstChild)},contents:function(E){return o.nodeName(E,"iframe")?E.contentDocument||E.contentWindow.document:o.makeArray(E.childNodes)}},function(E,F){o.fn[E]=function(G){var H=o.map(this,F);if(G&&typeof G=="string"){H=o.multiFilter(G,H)}return this.pushStack(o.unique(H),E,G)}});o.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(E,F){o.fn[E]=function(){var G=arguments;return this.each(function(){for(var H=0,I=G.length;H<I;H++){o(G[H])[F](this)}})}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(">*",this).remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}});(function(){var Q=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]+['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[]+)+|[>+~])(\s*,\s*)?/g,K=0,G=Object.prototype.toString;var F=function(X,T,aa,ab){aa=aa||[];T=T||document;if(T.nodeType!==1&&T.nodeType!==9){return[]}if(!X||typeof X!=="string"){return aa}var Y=[],V,ae,ah,S,ac,U,W=true;Q.lastIndex=0;while((V=Q.exec(X))!==null){Y.push(V[1]);if(V[2]){U=RegExp.rightContext;break}}if(Y.length>1&&L.exec(X)){if(Y.length===2&&H.relative[Y[0]]){ae=I(Y[0]+Y[1],T)}else{ae=H.relative[Y[0]]?[T]:F(Y.shift(),T);while(Y.length){X=Y.shift();if(H.relative[X]){X+=Y.shift()}ae=I(X,ae)}}}else{var ad=ab?{expr:Y.pop(),set:E(ab)}:F.find(Y.pop(),Y.length===1&&T.parentNode?T.parentNode:T,P(T));ae=F.filter(ad.expr,ad.set);if(Y.length>0){ah=E(ae)}else{W=false}while(Y.length){var ag=Y.pop(),af=ag;if(!H.relative[ag]){ag=""}else{af=Y.pop()}if(af==null){af=T}H.relative[ag](ah,af,P(T))}}if(!ah){ah=ae}if(!ah){throw"Syntax error, unrecognized expression: "+(ag||X)}if(G.call(ah)==="[object Array]"){if(!W){aa.push.apply(aa,ah)}else{if(T.nodeType===1){for(var Z=0;ah[Z]!=null;Z++){if(ah[Z]&&(ah[Z]===true||ah[Z].nodeType===1&&J(T,ah[Z]))){aa.push(ae[Z])}}}else{for(var Z=0;ah[Z]!=null;Z++){if(ah[Z]&&ah[Z].nodeType===1){aa.push(ae[Z])}}}}}else{E(ah,aa)}if(U){F(U,T,aa,ab)}return aa};F.matches=function(S,T){return F(S,null,null,T)};F.find=function(Z,S,aa){var Y,W;if(!Z){return[]}for(var V=0,U=H.order.length;V<U;V++){var X=H.order[V],W;if((W=H.match[X].exec(Z))){var T=RegExp.leftContext;if(T.substr(T.length-1)!=="\\"){W[1]=(W[1]||"").replace(/\\/g,"");Y=H.find[X](W,S,aa);if(Y!=null){Z=Z.replace(H.match[X],"");break}}}}if(!Y){Y=S.getElementsByTagName("*")}return{set:Y,expr:Z}};F.filter=function(ab,aa,ae,V){var U=ab,ag=[],Y=aa,X,S;while(ab&&aa.length){for(var Z in H.filter){if((X=H.match[Z].exec(ab))!=null){var T=H.filter[Z],af,ad;S=false;if(Y==ag){ag=[]}if(H.preFilter[Z]){X=H.preFilter[Z](X,Y,ae,ag,V);if(!X){S=af=true}else{if(X===true){continue}}}if(X){for(var W=0;(ad=Y[W])!=null;W++){if(ad){af=T(ad,X,W,Y);var ac=V^!!af;if(ae&&af!=null){if(ac){S=true}else{Y[W]=false}}else{if(ac){ag.push(ad);S=true}}}}}if(af!==g){if(!ae){Y=ag}ab=ab.replace(H.match[Z],"");if(!S){return[]}break}}}ab=ab.replace(/\s*,\s*/,"");if(ab==U){if(S==null){throw"Syntax error, unrecognized expression: "+ab}else{break}}U=ab}return Y};var H=F.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(S){return S.getAttribute("href")}},relative:{"+":function(W,T){for(var U=0,S=W.length;U<S;U++){var V=W[U];if(V){var X=V.previousSibling;while(X&&X.nodeType!==1){X=X.previousSibling}W[U]=typeof T==="string"?X||false:X===T}}if(typeof T==="string"){F.filter(T,W,true)}},">":function(X,T,Y){if(typeof T==="string"&&!/\W/.test(T)){T=Y?T:T.toUpperCase();for(var U=0,S=X.length;U<S;U++){var W=X[U];if(W){var V=W.parentNode;X[U]=V.nodeName===T?V:false}}}else{for(var U=0,S=X.length;U<S;U++){var W=X[U];if(W){X[U]=typeof T==="string"?W.parentNode:W.parentNode===T}}if(typeof T==="string"){F.filter(T,X,true)}}},"":function(V,T,X){var U="done"+(K++),S=R;if(!T.match(/\W/)){var W=T=X?T:T.toUpperCase();S=O}S("parentNode",T,U,V,W,X)},"~":function(V,T,X){var U="done"+(K++),S=R;if(typeof T==="string"&&!T.match(/\W/)){var W=T=X?T:T.toUpperCase();S=O}S("previousSibling",T,U,V,W,X)}},find:{ID:function(T,U,V){if(typeof U.getElementById!=="undefined"&&!V){var S=U.getElementById(T[1]);return S?[S]:[]}},NAME:function(S,T,U){if(typeof T.getElementsByName!=="undefined"&&!U){return T.getElementsByName(S[1])}},TAG:function(S,T){return T.getElementsByTagName(S[1])}},preFilter:{CLASS:function(V,T,U,S,Y){V=" "+V[1].replace(/\\/g,"")+" ";var X;for(var W=0;(X=T[W])!=null;W++){if(X){if(Y^(" "+X.className+" ").indexOf(V)>=0){if(!U){S.push(X)}}else{if(U){T[W]=false}}}}return false},ID:function(S){return S[1].replace(/\\/g,"")},TAG:function(T,S){for(var U=0;S[U]===false;U++){}return S[U]&&P(S[U])?T[1]:T[1].toUpperCase()},CHILD:function(S){if(S[1]=="nth"){var T=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(S[2]=="even"&&"2n"||S[2]=="odd"&&"2n+1"||!/\D/.test(S[2])&&"0n+"+S[2]||S[2]);S[2]=(T[1]+(T[2]||1))-0;S[3]=T[3]-0}S[0]="done"+(K++);return S},ATTR:function(T){var S=T[1].replace(/\\/g,"");if(H.attrMap[S]){T[1]=H.attrMap[S]}if(T[2]==="~="){T[4]=" "+T[4]+" "}return T},PSEUDO:function(W,T,U,S,X){if(W[1]==="not"){if(W[3].match(Q).length>1){W[3]=F(W[3],null,null,T)}else{var V=F.filter(W[3],T,U,true^X);if(!U){S.push.apply(S,V)}return false}}else{if(H.match.POS.test(W[0])){return true}}return W},POS:function(S){S.unshift(true);return S}},filters:{enabled:function(S){return S.disabled===false&&S.type!=="hidden"},disabled:function(S){return S.disabled===true},checked:function(S){return S.checked===true},selected:function(S){S.parentNode.selectedIndex;return S.selected===true},parent:function(S){return!!S.firstChild},empty:function(S){return!S.firstChild},has:function(U,T,S){return!!F(S[3],U).length},header:function(S){return/h\d/i.test(S.nodeName)},text:function(S){return"text"===S.type},radio:function(S){return"radio"===S.type},checkbox:function(S){return"checkbox"===S.type},file:function(S){return"file"===S.type},password:function(S){return"password"===S.type},submit:function(S){return"submit"===S.type},image:function(S){return"image"===S.type},reset:function(S){return"reset"===S.type},button:function(S){return"button"===S.type||S.nodeName.toUpperCase()==="BUTTON"},input:function(S){return/input|select|textarea|button/i.test(S.nodeName)}},setFilters:{first:function(T,S){return S===0},last:function(U,T,S,V){return T===V.length-1},even:function(T,S){return S%2===0},odd:function(T,S){return S%2===1},lt:function(U,T,S){return T<S[3]-0},gt:function(U,T,S){return T>S[3]-0},nth:function(U,T,S){return S[3]-0==T},eq:function(U,T,S){return S[3]-0==T}},filter:{CHILD:function(S,V){var Y=V[1],Z=S.parentNode;var X=V[0];if(Z&&(!Z[X]||!S.nodeIndex)){var W=1;for(var T=Z.firstChild;T;T=T.nextSibling){if(T.nodeType==1){T.nodeIndex=W++}}Z[X]=W-1}if(Y=="first"){return S.nodeIndex==1}else{if(Y=="last"){return S.nodeIndex==Z[X]}else{if(Y=="only"){return Z[X]==1}else{if(Y=="nth"){var ab=false,U=V[2],aa=V[3];if(U==1&&aa==0){return true}if(U==0){if(S.nodeIndex==aa){ab=true}}else{if((S.nodeIndex-aa)%U==0&&(S.nodeIndex-aa)/U>=0){ab=true}}return ab}}}}},PSEUDO:function(Y,U,V,Z){var T=U[1],W=H.filters[T];if(W){return W(Y,V,U,Z)}else{if(T==="contains"){return(Y.textContent||Y.innerText||"").indexOf(U[3])>=0}else{if(T==="not"){var X=U[3];for(var V=0,S=X.length;V<S;V++){if(X[V]===Y){return false}}return true}}}},ID:function(T,S){return T.nodeType===1&&T.getAttribute("id")===S},TAG:function(T,S){return(S==="*"&&T.nodeType===1)||T.nodeName===S},CLASS:function(T,S){return S.test(T.className)},ATTR:function(W,U){var S=H.attrHandle[U[1]]?H.attrHandle[U[1]](W):W[U[1]]||W.getAttribute(U[1]),X=S+"",V=U[2],T=U[4];return S==null?V==="!=":V==="="?X===T:V==="*="?X.indexOf(T)>=0:V==="~="?(" "+X+" ").indexOf(T)>=0:!U[4]?S:V==="!="?X!=T:V==="^="?X.indexOf(T)===0:V==="$="?X.substr(X.length-T.length)===T:V==="|="?X===T||X.substr(0,T.length+1)===T+"-":false},POS:function(W,T,U,X){var S=T[2],V=H.setFilters[S];if(V){return V(W,U,T,X)}}}};var L=H.match.POS;for(var N in H.match){H.match[N]=RegExp(H.match[N].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(T,S){T=Array.prototype.slice.call(T);if(S){S.push.apply(S,T);return S}return T};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(M){E=function(W,V){var T=V||[];if(G.call(W)==="[object Array]"){Array.prototype.push.apply(T,W)}else{if(typeof W.length==="number"){for(var U=0,S=W.length;U<S;U++){T.push(W[U])}}else{for(var U=0;W[U];U++){T.push(W[U])}}}return T}}(function(){var T=document.createElement("form"),U="script"+(new Date).getTime();T.innerHTML="<input name='"+U+"'/>";var S=document.documentElement;S.insertBefore(T,S.firstChild);if(!!document.getElementById(U)){H.find.ID=function(W,X,Y){if(typeof X.getElementById!=="undefined"&&!Y){var V=X.getElementById(W[1]);return V?V.id===W[1]||typeof V.getAttributeNode!=="undefined"&&V.getAttributeNode("id").nodeValue===W[1]?[V]:g:[]}};H.filter.ID=function(X,V){var W=typeof X.getAttributeNode!=="undefined"&&X.getAttributeNode("id");return X.nodeType===1&&W&&W.nodeValue===V}}S.removeChild(T)})();(function(){var S=document.createElement("div");S.appendChild(document.createComment(""));if(S.getElementsByTagName("*").length>0){H.find.TAG=function(T,X){var W=X.getElementsByTagName(T[1]);if(T[1]==="*"){var V=[];for(var U=0;W[U];U++){if(W[U].nodeType===1){V.push(W[U])}}W=V}return W}}S.innerHTML="<a href='#'></a>";if(S.firstChild&&S.firstChild.getAttribute("href")!=="#"){H.attrHandle.href=function(T){return T.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var S=F,T=document.createElement("div");T.innerHTML="<p class='TEST'></p>";if(T.querySelectorAll&&T.querySelectorAll(".TEST").length===0){return}F=function(X,W,U,V){W=W||document;if(!V&&W.nodeType===9&&!P(W)){try{return E(W.querySelectorAll(X),U)}catch(Y){}}return S(X,W,U,V)};F.find=S.find;F.filter=S.filter;F.selectors=S.selectors;F.matches=S.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){H.order.splice(1,0,"CLASS");H.find.CLASS=function(S,T){return T.getElementsByClassName(S[1])}}function O(T,Z,Y,ac,aa,ab){for(var W=0,U=ac.length;W<U;W++){var S=ac[W];if(S){S=S[T];var X=false;while(S&&S.nodeType){var V=S[Y];if(V){X=ac[V];break}if(S.nodeType===1&&!ab){S[Y]=W}if(S.nodeName===Z){X=S;break}S=S[T]}ac[W]=X}}}function R(T,Y,X,ab,Z,aa){for(var V=0,U=ab.length;V<U;V++){var S=ab[V];if(S){S=S[T];var W=false;while(S&&S.nodeType){if(S[X]){W=ab[S[X]];break}if(S.nodeType===1){if(!aa){S[X]=V}if(typeof Y!=="string"){if(S===Y){W=true;break}}else{if(F.filter(Y,[S]).length>0){W=S;break}}}S=S[T]}ab[V]=W}}}var J=document.compareDocumentPosition?function(T,S){return T.compareDocumentPosition(S)&16}:function(T,S){return T!==S&&(T.contains?T.contains(S):true)};var P=function(S){return S.nodeType===9&&S.documentElement.nodeName!=="HTML"||!!S.ownerDocument&&P(S.ownerDocument)};var I=function(S,Z){var V=[],W="",X,U=Z.nodeType?[Z]:Z;while((X=H.match.PSEUDO.exec(S))){W+=X[0];S=S.replace(H.match.PSEUDO,"")}S=H.relative[S]?S+"*":S;for(var Y=0,T=U.length;Y<T;Y++){F(S,U[Y],V)}return F.filter(W,V)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(S){return"hidden"===S.type||o.css(S,"display")==="none"||o.css(S,"visibility")==="hidden"};F.selectors.filters.visible=function(S){return"hidden"!==S.type&&o.css(S,"display")!=="none"&&o.css(S,"visibility")!=="hidden"};F.selectors.filters.animated=function(S){return o.grep(o.timers,function(T){return S===T.elem}).length};o.multiFilter=function(U,S,T){if(T){U=":not("+U+")"}return F.matches(U,S)};o.dir=function(U,T){var S=[],V=U[T];while(V&&V!=document){if(V.nodeType==1){S.push(V)}V=V[T]}return S};o.nth=function(W,S,U,V){S=S||1;var T=0;for(;W;W=W[U]){if(W.nodeType==1&&++T==S){break}}return W};o.sibling=function(U,T){var S=[];for(;U;U=U.nextSibling){if(U.nodeType==1&&U!=T){S.push(U)}}return S};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.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(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F<E.length){o.event.proxy(G,E[F++])}return this.click(o.event.proxy(G,function(H){this.lastToggle=(this.lastToggle||0)%F;H.preventDefault();return E[this.lastToggle++].apply(this,arguments)||false}))},hover:function(E,F){return this.mouseenter(E).mouseleave(F)},ready:function(E){B();if(o.isReady){E.call(document,o)}else{o.readyList.push(E)}return this},live:function(G,F){var E=o.event.proxy(F);E.guid+=this.selector+G;o(document).bind(i(G,this.selector),this.selector,E);return this},die:function(F,E){o(document).unbind(i(F,this.selector),E?{guid:E.guid+this.selector+F}:null);return this}});function c(H){var E=RegExp("(^|\\.)"+H.type+"(\\.|$)"),G=true,F=[];o.each(o.data(this,"events").live||[],function(I,J){if(E.test(J.type)){var K=o(H.target).closest(J.data)[0];if(K){F.push({elem:K,fn:J})}}});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){G=false}});return G}function i(F,E){return["live",F,E.replace(/\./g,"`").replace(/ /g,"|")].join(".")}o.extend({isReady:false,readyList:[],ready:function(){if(!o.isReady){o.isReady=true;if(o.readyList){o.each(o.readyList,function(){this.call(document,o)});o.readyList=null}o(document).triggerHandler("ready")}}});var x=false;function B(){if(x){return}x=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);o.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);o.ready()}});if(document.documentElement.doScroll&&typeof l.frameElement==="undefined"){(function(){if(o.isReady){return}try{document.documentElement.doScroll("left")}catch(E){setTimeout(arguments.callee,0);return}o.ready()})()}}}o.event.add(l,"load",o.ready)}o.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(F,E){o.fn[E]=function(G){return G?this.bind(E,G):this.trigger(E)}});o(l).bind("unload",function(){for(var E in o.cache){if(E!=1&&o.cache[E].handle){o.event.remove(o.cache[E].handle.elem)}}});(function(){o.support={};var F=document.documentElement,G=document.createElement("script"),K=document.createElement("div"),J="script"+(new Date).getTime();K.style.display="none";K.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var H=K.getElementsByTagName("*"),E=K.getElementsByTagName("a")[0];if(!H||!H.length||!E){return}o.support={leadingWhitespace:K.firstChild.nodeType==3,tbody:!K.getElementsByTagName("tbody").length,objectAll:!!K.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!K.getElementsByTagName("link").length,style:/red/.test(E.getAttribute("style")),hrefNormalized:E.getAttribute("href")==="/a",opacity:E.style.opacity==="0.5",cssFloat:!!E.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};G.type="text/javascript";try{G.appendChild(document.createTextNode("window."+J+"=1;"))}catch(I){}F.insertBefore(G,F.firstChild);if(l[J]){o.support.scriptEval=true;delete l[J]}F.removeChild(G);if(K.attachEvent&&K.fireEvent){K.attachEvent("onclick",function(){o.support.noCloneEvent=false;K.detachEvent("onclick",arguments.callee)});K.cloneNode(true).fireEvent("onclick")}o(function(){var L=document.createElement("div");L.style.width="1px";L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L)})})();var w=o.support.cssFloat?"cssFloat":"styleFloat";o.props={"for":"htmlFor","class":"className","float":w,cssFloat:w,styleFloat:w,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};o.fn.extend({_load:o.fn.load,load:function(G,J,K){if(typeof G!=="string"){return this._load(G)}var I=G.indexOf(" ");if(I>=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("<div/>").append(M.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.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(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return!F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H<F;H++){var E=o.data(this[H],"olddisplay");this[H].style.display=E||"";if(o.css(this[H],"display")==="none"){var G=this[H].tagName,K;if(m[G]){K=m[G]}else{var I=o("<"+G+" />").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}this[H].style.display=o.data(this[H],"olddisplay",K)}}return this}},hide:function(H,I){if(H){return this.animate(t("hide",3),H,I)}else{for(var G=0,F=this.length;G<F;G++){var E=o.data(this[G],"olddisplay");if(!E&&E!=="none"){o.data(this[G],"olddisplay",o.css(this[G],"display"))}this[G].style.display="none"}return this}},_toggle:o.fn.toggle,toggle:function(G,F){var E=typeof G==="boolean";return o.isFunction(G)&&o.isFunction(F)?this._toggle.apply(this,arguments):G==null||E?this.each(function(){var H=E?G:o(this).is(":hidden");o(this)[H?"show":"hide"]()}):this.animate(t("toggle",3),G,F)},fadeTo:function(E,G,F){return this.animate({opacity:G},E,F)},animate:function(I,F,H,G){var E=o.speed(F,H,G);return this[E.queue===false?"each":"queue"](function(){var K=o.extend({},E),M,L=this.nodeType==1&&o(this).is(":hidden"),J=this;for(M in I){if(I[M]=="hide"&&L||I[M]=="show"&&!L){return K.complete.call(this)}if((M=="height"||M=="width")&&this.style){K.display=o.css(this,"display");K.overflow=this.style.overflow}}if(K.overflow!=null){this.style.overflow="hidden"}K.curAnim=o.extend({},I);o.each(I,function(O,S){var R=new o.fx(J,K,O);if(/toggle|show|hide/.test(S)){R[S=="toggle"?L?"show":"hide":S](I)}else{var Q=S.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),T=R.cur(true)||0;if(Q){var N=parseFloat(Q[2]),P=Q[3]||"px";if(P!="px"){J.style[O]=(N||1)+P;T=((N||1)/R.cur(true))*T;J.style[O]=T+P}if(Q[1]){N=((Q[1]=="-="?-1:1)*N)+T}R.custom(T,N,P)}else{R.custom(T,S,"")}}});return true})},stop:function(F,E){var G=o.timers;if(F){this.queue([])}this.each(function(){for(var H=G.length-1;H>=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)==1){n=setInterval(function(){var K=o.timers;for(var J=0;J<K.length;J++){if(!K[J]()){K.splice(J--,1)}}if(!K.length){clearInterval(n)}},13)}},show:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());o(this.elem).show()},hide:function(){this.options.orig[this.prop]=o.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(H){var G=e();if(H||G>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='<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>';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(H,F){var E=H?"Left":"Top",G=H?"Right":"Bottom";o.fn["inner"+F]=function(){return this[F.toLowerCase()]()+j(this,"padding"+E)+j(this,"padding"+G)};o.fn["outer"+F]=function(J){return this["inner"+F]()+j(this,"border"+E+"Width")+j(this,"border"+G+"Width")+(J?j(this,"margin"+E)+j(this,"margin"+G):0)};var I=F.toLowerCase();o.fn[I]=function(J){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+F]||document.body["client"+F]:this[0]==document?Math.max(document.documentElement["client"+F],document.body["scroll"+F],document.documentElement["scroll"+F],document.body["offset"+F],document.documentElement["offset"+F]):J===g?(this.length?o.css(this[0],I):null):this.css(I,typeof J==="string"?J:J+"px")}})})();(function($){var ariaStatesNS="http://www.w3.org/2005/07/aaa";var xhtmlRoles=["main","secondary","navigation","banner","contentinfo","statements","note","seealso","search"];var xhtmlRolesRegex=new RegExp("^"+xhtmlRoles.join("|")+"$");var focusableRoles=["button","checkbox","columnheader","combobox","grid","gridcell","group","listbox","listitem","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","option","radio","radiogroup","row","rowheader","slider","spinbutton","tab","tabpanel","textbox","toolbar","tree","treegrid","treeitem"];var focusableRolesRegex=new RegExp("^(wairole:)?"+focusableRoles.join("|")+"$");var ariaStateAttr=(function(){if($.browser.mozilla&&parseFloat($.browser.version)<1.9){return function(jq,attr,val){if(typeof val!="undefined"){jq.each(function(i,el){el.setAttributeNS(ariaStatesNS,attr,val);});}else{return jq.get(0).getAttributeNS(ariaStatesNS,attr);}};}else{return function(jq,attr,val){if(typeof val!="undefined"){jq.each(function(i,el){$(el).attr("aria-"+attr,val);});}else{return jq.attr("aria-"+attr);}};}})();$.fn.extend({ariaRole:function(role){var jq=this;if(role){role=xhtmlRolesRegex.test(role)?role:"wairole:"+role;jq.each(function(i,el){$(el).attr("role",role);if(focusableRolesRegex.test(role)&&el.tabIndex<0){el.tabIndex=0;}});return jq;}else{var role=jq.eq(0).attr("role");if(role){role=role.replace(/^wairole:/,"");}
return role;}},ariaState:function(){var args=arguments;var jq=this;if(args.length==2){jq.each(function(i,el){ariaStateAttr($(el),args[0],args[1]);});return jq;}else{if(typeof args[0]=="string"){return ariaStateAttr(jq.eq(0),args[0]);}else{jq.each(function(i,el){$.each(args[0],function(state,val){$(el).ariaState(state,val);});});return jq;}}},ariaParse:function(){var jq=this;jq.find("*").filter(".axs").each(function(i,el){var classNames=$(el).attr("className").split(/\s+/);var parsingAria=false;var roleSet=false;$.each(classNames,function(i,className){if(className=="axs"){parsingAria=true;return true;}
if(parsingAria){if(roleSet){var state=className.split(/-/);$(el).ariaState(state[0],state[1]||"true");}else{$(el).ariaRole(className);roleSet=true;}}});});jq.trigger("ariaready");return jq;}});$.extend($.expr[':'],{ariaRole:"jQuery(a).ariaRole()==m[3]",ariaState:"jQuery(a).ariaState(m[3].split(/=/)[0])==(/=/.test(m[3])?m[3].split(/=/)[1]:'true')"});$(document).ready(function(){$(document).ariaParse();});})(jQuery);$.browser.hasAria=($.browser.opera&&$.browser.version<'9.5'||$.browser.safari&&$.browser.version<='3.0.2'||$.browser.msie&&$.browser.version<'8'||$.browser.mozilla&&$.browser.version<'1.8.1')?false:true;DOM_VK_END=35;DOM_VK_HOME=36;DOM_VK_LEFT=37;DOM_VK_UP=38;DOM_VK_RIGHT=39;DOM_VK_DOWN=40;DOM_VK_ENTER=14;DOM_VK_RETURN=13;jQuery.AKN={DIRECTION_PREV:0,DIRECTION_NEXT:1,DIRECTION_FIRST:2,DIRECTION_LAST:3,ORDER_NORMAL:1,ORDER_REVERSE:0};jQuery.AKN.defaultOptions={controlOrder:jQuery.AKN.ORDER_NORMAL,ignoreKeys:[],keyHandlers:{},role:'toolbar',controlRole:'button'};jQuery.AKN.conf={controlsetClass:'controlset',regionClass:'region',controlClass:'control',ariaFocusClass:'aria-focus'};(function($){regionCount=0;controlCount=0;$.fn.managefocus=function(controlSelector,options){if(!$.browser.hasAria){return $(this);}
if(typeof options.controlRole=='undefined'||options.controlRole==''){switch($.trim(options.role)){case'menubar':case'toolbar':options.controlRole='button';break;case'tablist':options.controlRole='tab';break;case'menu':options.controlRole='menuitem';break;default:break;}}
options=(typeof options=='undefined')?$.AKN.defaultOptions:$.extend({},$.AKN.defaultOptions,options);$(this).addClass($.AKN.conf.controlsetClass).data('controlSelector',controlSelector).data('options',options).bind('keydown',handleKeyEvent);if($.browser.hasAria){$(this).attr('tabindex',0).bind('focus',handleContainerFocusEvent).bind('blur',handleContainerBlurEvent);if(typeof $(this).ariaRole()=='undefined'){$(this).ariaRole(options.role);}else{}
$(this).find(controlSelector).attr('tabindex',-1).each(function(){if($(this).attr('id')==''){controlCount++;$(this).attr('id',$.AKN.conf.controlClass+'-'+controlCount);}
if(typeof $(this).ariaRole()=='undefined'){$(this).ariaRole(options.controlRole);}}).bind('click',handleControlClickEvent);}
if(options.controlOrder==$.AKN.ORDER_NORMAL){$(this).each(function(){$(this).data('lastFocussed',$(this).find(controlSelector+':first').attr('id'));});}else{$(this).each(function(){$(this).data('lastFocussed',$(this).find(controlSelector+':last').attr('id'));});}
return $(this);};handleKeyEvent=function(eventObj){if(eventObj.altKey||eventObj.ctrlKey||eventObj.shiftKey){return true;}
containerEl=$(this).is('.'+$.AKN.conf.controlsetClass)?$(this):$(this).parents('.'+$.AKN.conf.controlsetClass+':first');currentControl=containerEl.find('#'+containerEl.data('lastFocussed'));options=containerEl.data('options');if(!$.browser.hasAria){processKeyHandlers(options.keyHandlers,eventObj);return true;}
if($.inArray(eventObj.keyCode,options.ignoreKeys)!=-1){processKeyHandlers(options.keyHandlers,eventObj);return true;}
switch(eventObj.keyCode){case DOM_VK_ENTER:case DOM_VK_RETURN:if(currentControl.triggerResult('click')!=false){if(currentControl.is('a')){window.location=currentControl.attr('href');}
return true;}else{return false;}
break;case DOM_VK_UP:case DOM_VK_LEFT:eventObj.preventDefault();if(options.controlOrder==$.AKN.ORDER_NORMAL){nextControl=currentControl.getNextControl($.AKN.DIRECTION_PREV);}else{nextControl=currentControl.getNextControl($.AKN.DIRECTION_NEXT);}
break;case DOM_VK_DOWN:case DOM_VK_RIGHT:eventObj.preventDefault();if(options.controlOrder==$.AKN.ORDER_NORMAL){nextControl=currentControl.getNextControl($.AKN.DIRECTION_NEXT);}else{nextControl=currentControl.getNextControl($.AKN.DIRECTION_PREV);}
break;case DOM_VK_HOME:eventObj.preventDefault();if(options.controlOrder==$.AKN.ORDER_NORMAL){nextControl=currentControl.getNextControl($.AKN.DIRECTION_FIRST);}else{nextControl=currentControl.getNextControl($.AKN.DIRECTION_LAST);}
break;case DOM_VK_END:eventObj.preventDefault();if(options.controlOrder==$.AKN.ORDER_NORMAL){nextControl=currentControl.getNextControl($.AKN.DIRECTION_LAST);}else{nextControl=currentControl.getNextControl($.AKN.DIRECTION_FIRST);}
break;default:return true;break;}
containerEl.removeAriaFocus('#'+containerEl.data('lastFocussed'));containerEl.setAriaFocus(nextControl);processKeyHandlers(options.keyHandlers,eventObj);};processKeyHandlers=function(keyHandlers,eventObj){if($(eventObj.target).is('.'+$.AKN.conf.controlsetClass)){controlSet=$(eventObj.target);}else{controlSet=$(eventObj.target).parents('.'+$.AKN.conf.controlsetClass+':first');}
target=$('#'+controlSet.ariaState('activedescendant')).get();if(eventObj.keyCode in keyHandlers){for(keyCode in keyHandlers){if(keyCode==eventObj.keyCode){keyHandlers[keyCode].apply(target,[eventObj]);}}}};handleControlClickEvent=function(eventObj){$(this).parents('.'+$.AKN.conf.controlsetClass+':first').data('lastFocussed',$(this).attr('id')).focus();return true;};handleContainerFocusEvent=function(eventObj){$(this).find($(this).data('controlSelector')).attr('tabindex',-1);if(this.scrollIntoView){}
if(this!=eventObj.target){$(this).setAriaFocus(eventObj.target);}else{$(this).setAriaFocus('#'+$(this).data('lastFocussed'));}};handleContainerBlurEvent=function(eventObj){if(this!=eventObj.target){}else{$(this).removeAriaFocus();}};$.fn.getNextControl=function(direction){containerEl=$(this).parents('.'+$.AKN.conf.controlsetClass+':first');allControls=containerEl.find(containerEl.data('controlSelector'));currentControlIndex=allControls.index($(this));switch(direction){default:case $.AKN.DIRECTION_NEXT:nextControl=(currentControlIndex+1<allControls.size())?allControls.eq(currentControlIndex+1):allControls.eq(0);break;case $.AKN.DIRECTION_PREV:nextControl=(currentControlIndex-1>=0)?allControls.eq(currentControlIndex-1):allControls.eq(allControls.size()-1);break;case $.AKN.DIRECTION_FIRST:nextControl=allControls.eq(0);break;case $.AKN.DIRECTION_LAST:nextControl=allControls.eq(allControls.size()-1);break;}
return nextControl;}
$.fn.triggerResult=function(eventType){if(typeof eventType=='undefined'){return null;}
el=$(this).get(0);if(typeof document.createEvent!='undefined'){var evt=document.createEvent('MouseEvents');evt.initMouseEvent(eventType,true,true,window,0,0,0,0,0,false,false,false,false,0,null);return el.dispatchEvent(evt);}else if(typeof document.createEventObject!='undefined'){var eventObj=document.createEventObject();return el.fireEvent('on'+eventType,eventObj);}else{return null;}};$.fn.setAriaFocus=function(elementToFocus){elementToFocus=$(elementToFocus).get();$('#'+$(this).data('lastFocussed')).removeClass($.AKN.conf.ariaFocusClass);$(this).ariaState('activedescendant',$(elementToFocus).attr('id')).data('lastFocussed',$(elementToFocus).attr('id'));$(elementToFocus).addClass($.AKN.conf.ariaFocusClass);if(elementToFocus.scrollIntoView){elementToFocus.scrollIntoView();}
return $(this);}
$.fn.removeAriaFocus=function(){$('#'+$(this).ariaState('activedescendant')).removeClass($.AKN.conf.ariaFocusClass);$(this).ariaState('activedescendant','');return $(this);}
$.fn.controls=function(regionControlledSelector){$(this).each(function(){elementList='';$(regionControlledSelector).each(function(){if($(this).attr('id')==''){regionCount++;$(this).attr('id',$.AKN.conf.regionClass+'-'+regionCount);}
elementList+=' '+$(this).attr('id');});if(elementList!=''){$(this).ariaState('controls',$.trim(elementList));}});return $(this);};$.fn.controlsParent=function(parentRegionSelector){$(this).each(function(){$(this).controls($(this).parents(parentRegionSelector+':lt(1)'));});return $(this);};})(jQuery);jQuery.tLayout={};jQuery.tLayout.conf={optionsRef:'transformer-layout-options'};jQuery.tLayout.defaultOptions={layouts:[['50','layout-large'],['30','layout-medium'],['0','layout-small']],callback:null};(function($){$.fn.transformer=function(options){if(typeof ResizeEvents=='undefined'){$.debug('DEBUG: ResizeEvents plugin could not be found');return;}
options=options||{};options.layouts=options.layouts.sort(sortLayouts);$(this).each(function(){initTransformer.apply(this,[options])});return $(this);};sortLayouts=function(a,b){return b[0]-a[0];};initTransformer=function(options){options=(typeof options=='undefined')?$.tLayout.defaultOptions:$.extend({},$.tLayout.defaultOptions,options);$(this).data($.tLayout.conf.optionsRef,options);ResizeEvents.bind('x-initial-sizes x-text-resize x-window-resize',function(eventObj,emPixels,textHeight,windowWidth){layouts=options.layouts;layoutMatched=false;for(id in layouts){if(!layoutMatched&&(parseFloat(emPixels)>parseFloat(layouts[id][0]))){$('body').addClass(layouts[id][1]);layoutMatched=true;}else{$('body').removeClass(layouts[id][1]);}}
if(options.callback!=null){options.callback.apply(this);}});};$.debug=function(message){if(typeof window.console!='undefined'&&window.console.log!='undefined'){window.console.log(message);}else{}};})(jQuery);var ResizeEvents={baseTextHeight:0,currentTextHeight:0,baseWindowWidth:0,baseWindowHeight:0,currentWindowWidth:0,currentWindowHeight:0,initialised:false,intervalReference:null,controlElement:null,eventElement:$(document),conf:{textResizeEvent:'x-text-resize',windowResizeEvent:'x-window-resize',windowWidthResizeEvent:'x-window-width-resize',windowHeightResizeEvent:'x-window-height-resize',initialResizeEvent:'x-initial-sizes',pollFrequency:500,controlElementId:'text-resize'}};(function($){$(function(){if(ResizeEvents.initialised!==true){ResizeEvents.initialise();}});ResizeEvents.initialise=function(){if(ResizeEvents.initialised===true){return;}
ResizeEvents.controlElement=$('<span id="'+ResizeEvents.conf.controlElementId+'">&nbsp;</span>').css({position:'absolute',left:'-9999px','font-size':'100%','font-family':'Courier New, mono',padding:'0',margin:'0'}).get(0);$('body').append(ResizeEvents.controlElement);ResizeEvents.baseTextHeight=ResizeEvents.currentTextHeight=getTextHeight();ResizeEvents.baseWindowWidth=ResizeEvents.currentWindowWidth=getWindowWidth();ResizeEvents.baseWindowHeight=ResizeEvents.currentWindowWidth=getWindowHeight();startResizePolling();ResizeEvents.initialised=true;windowWidthNow=getWindowWidth();windowHeightNow=getWindowHeight();textHeightNow=getTextHeight();emPixelNow=windowWidthNow/textHeightNow;ResizeEvents.triggerEvent(ResizeEvents.conf.initialResizeEvent,[emPixelNow,textHeightNow,windowWidthNow,windowHeightNow]);};ResizeEvents.bind=function(events,handler){ResizeEvents.eventElement.bind(events,handler);}
ResizeEvents.triggerEvent=function(eventType,args){ResizeEvents.eventElement.trigger(eventType,args);}
ResizeEventsPoll=function(){windowWidthNow=getWindowWidth();windowHeightNow=getWindowHeight();textHeightNow=getTextHeight();emPixelNow=windowWidthNow/textHeightNow;widthChanged=false;if(ResizeEvents.currentTextHeight!=textHeightNow){ResizeEvents.triggerEvent(ResizeEvents.conf.textResizeEvent,[emPixelNow,textHeightNow,windowWidthNow,windowHeightNow]);ResizeEvents.currentTextHeight=textHeightNow;}
if(ResizeEvents.currentWindowWidth!=windowWidthNow){ResizeEvents.triggerEvent(ResizeEvents.conf.windowResizeEvent,[emPixelNow,textHeightNow,windowWidthNow,windowHeightNow]);ResizeEvents.triggerEvent(ResizeEvents.conf.windowWidthResizeEvent,[emPixelNow,textHeightNow,windowWidthNow,windowHeightNow]);ResizeEvents.currentWindowWidth=windowWidthNow;widthChanged=true;}
if(ResizeEvents.currentWindowHeight!=windowHeightNow){if(!widthChanged){ResizeEvents.triggerEvent(ResizeEvents.conf.windowResizeEvent,[emPixelNow,textHeightNow,windowWidthNow,windowHeightNow]);}
ResizeEvents.triggerEvent(ResizeEvents.conf.windowHeightResizeEvent,[emPixelNow,textHeightNow,windowWidthNow,windowHeightNow]);ResizeEvents.currentWindowHeight=windowHeightNow;}};getTextHeight=function(){return ResizeEvents.controlElement.offsetHeight;};getWindowWidth=function(){if(document.documentElement&&document.documentElement.clientWidth){return document.documentElement.clientWidth;}else if(typeof document.body.clientWidth!='undefined'){return document.body.clientWidth;}else{return window.innerWidth;};};getWindowHeight=function(){if(document.documentElement&&document.documentElement.clientHeight){return document.documentElement.clientHeight;}else if(typeof document.body.clientHeight!='undefined'){return document.body.clientHeight;}else{return window.innerHeight;};};startResizePolling=function(){if(ResizeEvents.intervalReference==null){ResizeEvents.intervalReference=window.setInterval('ResizeEventsPoll()',ResizeEvents.conf.pollFrequency);}};stopResizePolling=function(){if(ResizeEvents.intervalReference!=null){window.clearInterval(ResizeEvents.intervalReference);ResizeEvents.intervalReference=null;}};})(jQuery);(function($){$.browser.gotStyleCache=null;$(document).ready(function(){$.browser.gotStyle();});$.browser.gotStyle=function(formedElement){if($.browser.gotStyleCache==null){formedElement=formedElement||$('body');gotStyleTestEl=$('<div id="got-style"></div>').css({width:'1px',height:'1px',padding:'0',margin:'0',overflow:'hidden',zoom:'1'});$(formedElement).append(gotStyleTestEl);$.browser.gotStyleCache=(gotStyleTestEl.width()==1)?true:false;gotStyleTestEl.remove();}
return $.browser.gotStyleCache;};})(jQuery);jQuery.exmenu={};jQuery.exmenu.conf={exmenuClass:'exmenu',simpleClass:'simple',parentClass:'parent',pageTitleSelector:'h1#page-title',activeClass:'active',currentClass:'current',toggleClass:'toggle',closedClass:'closed',noLinkClass:'no-link',parentLinkClass:'parent-link',openToggleText:'[-]',closedToggleText:'[+]',openToggleTitle:'Close the %s submenu',closedToggleTitle:'Open the %s submenu',clearPixelClass:'for-css-replacement'};jQuery.exmenu.defaultOptions={topLevelCanToggle:true,supportCSSImgReplace:false,clearPixelImg:'displacement.png'};(function($){xmMenuIds=[];xmMenuIdCount=0;xmMatchCurrentText='';xmCurrentMenu=null;$(document).ready(function(){$('.exmenu').exmenu();});$.fn.extend({exmenu:function(){action=(arguments.length>0)?arguments[0]:'';switch(action.toLowerCase()){default:case'':case'init':options=arguments[1]||{};$(this).each(function(){xmInitExMenu.apply(this,[options]);});return $(this);break;case'setcurrent':xmMatchCurrentText=(arguments.length>1)?arguments[1]:'';$(this).each(xmSetCurrent);return $(this);break;case'expandall':case'openall':$(this).each(xmExpandAll);return $(this);break;case'collapseall':case'closeall':$(this).each(xmCollapseAll);return $(this);break;}}});function xmInitExMenu(options){if(this.tagName!='UL'){return $(this);}
if($(this).is('.'+$.exmenu.conf.activeClass)){return $(this);}
if(!$(this).is($.exmenu.conf.exmenuClass)){$(this).addClass($.exmenu.conf.exmenuClass);}
options=(typeof options=='undefined')?$.exmenu.defaultOptions:$.extend({},$.exmenu.defaultOptions,options);$(this).data('options',options);$.exmenu.currentOptions=options;xmMatched=this;if(xmMatched.id===''){if(typeof(console)!='undefined'){console.error('Failed to initialise exmenu "'+xmMatched.id+'": Selector matched, but each exmenu must have an unique id.');}}else{xmMenuIds[xmMenuIdCount++]=xmMatched.id;}
xmMenuSelector='#'+xmMatched.id;if(options.topLevelCanToggle){$(xmMenuSelector+' li').each(xmSetupLi);}else{$(xmMenuSelector+' li li').each(xmSetupLi);}
allToggles=$(xmMenuSelector+' .'+$.exmenu.conf.toggleClass).click(xmToggleNode).ariaRole('button');if(options.supportCSSImgReplace!==false){allToggles.prepend('<img src="'+options.clearPixelImg+'" alt="" class="'+$.compact.slideshow.conf.clearPixelClass+'" />');}
$(xmMenuSelector+' li.'+$.exmenu.conf.parentClass).addClass($.exmenu.conf.closedClass).children('ul').ariaState('hidden','true');$(xmMenuSelector+' li.'+$.exmenu.conf.parentClass+' a.'+$.exmenu.conf.toggleClass).each(xmSetupToggle);xmCurrentNode=$(xmMenuSelector+' li.'+$.exmenu.conf.currentClass);xmCurrentNode.removeClass($.exmenu.conf.closedClass).children('ul').ariaState('hidden','false');xmUpdateToggle(xmCurrentNode.children('.'+$.exmenu.conf.toggleClass).get());xmParentsOfCurrent=$(xmMenuSelector+' li.'+$.exmenu.conf.currentClass).parents('li.'+$.exmenu.conf.parentClass);xmParentsOfCurrent.removeClass($.exmenu.conf.closedClass).children('ul').ariaState('hidden','false');xmUpdateToggle(xmParentsOfCurrent.children('.'+$.exmenu.conf.toggleClass).get());$(this).addClass($.exmenu.conf.activeClass);$(this).addClass($.exmenu.conf.exmenuClass);xmTitle=$($.exmenu.conf.pageTitleSelector+':lt(1)').text();if(xmTitle!=''){$(this).exmenu('setCurrent',xmTitle);}};function xmSetupLi(){if($(this).children('a').size()===0){xmTempChildren=$(this).children();$(this).children().remove();xmTempText=$(this).text();$(this).empty();$(this).append('<span class="'+$.exmenu.conf.noLinkClass+'">'+xmTempText+'</span>');$(this).append(xmTempChildren);}
if($(this).find('li').size()>0){$(this).addClass($.exmenu.conf.parentClass);if($(this).parents('.exmenu.simple').size()>0){$(this).children('a').addClass($.exmenu.conf.toggleClass);}else{$(this).children('a').addClass($.exmenu.conf.parentLinkClass);$(this).children('.'+$.exmenu.conf.noLinkClass).addClass($.exmenu.conf.parentLinkClass);$(this).prepend('<a href="#" class="'+$.exmenu.conf.toggleClass+'">'+$.exmenu.conf.closedToggleText+'</a> ');}}};function xmToggleNode(eventObj){$(this).parent().toggleClass($.exmenu.conf.closedClass);if($(this).parent().is('.'+$.exmenu.conf.closedClass)){$(this).parent().children('ul').ariaState('hidden','true');}else{$(this).parent().children('ul').ariaState('hidden','false');}
$.exmenu.currentOptions=$(this).parents('.'+$.exmenu.conf.exmenuClass+':first').data('options');xmUpdateToggle(this);eventObj.preventDefault();};function xmUpdateToggle(xmThis){options=$.exmenu.currentOptions;xmMenuText=$(xmThis).siblings('a').text();xmMenuText=(xmMenuText!=='')?xmMenuText:$(xmThis).siblings('.'+$.exmenu.conf.noLinkClass).text();if($(xmThis).parent().is('.'+$.exmenu.conf.closedClass)){$(xmThis).text($.exmenu.conf.closedToggleText);$(xmThis).attr('title',$.exmenu.conf.closedToggleTitle.replace("%s",xmMenuText,"gi"));if(options.supportCSSImgReplace!==false){$(xmThis).prepend('<img src="'+options.clearPixelImg+'" alt="" class="'+$.compact.slideshow.conf.clearPixelClass+'" />');}}else{$(xmThis).text($.exmenu.conf.openToggleText);$(xmThis).attr('title',$.exmenu.conf.openToggleTitle.replace("%s",xmMenuText,"gi"));if(options.supportCSSImgReplace!==false){$(xmThis).prepend('<img src="'+options.clearPixelImg+'" alt="" class="'+$.compact.slideshow.conf.clearPixelClass+'" />');}}};function xmSetupToggle(){return xmUpdateToggle(this);};xmSetCurrent=function(){if(xmMatchCurrentText==''){xmCollapseAll.apply(this);}else{xmCurrentMenu=this;xmNavElements=$(this).find('a, .'+$.exmenu.conf.noLinkClass).not('.'+$.exmenu.conf.toggleClass);for(xmN=0;xmN<xmNavElements.size();xmN++){if(xmTestAndSetMenuItemAsCurrent(xmNavElements.get(xmN))){break;}}}};xmTestAndSetMenuItemAsCurrent=function(xmNavElement){if($.trim($(xmNavElement).text()).toLowerCase()==$.trim(xmMatchCurrentText).toLowerCase()){xmCollapseAll.apply(xmCurrentMenu);xmPreviousCurrent=$(xmCurrentMenu).find('.'+$.exmenu.conf.currentClass);xmPreviousCurrent.removeClass($.exmenu.conf.currentClass);xmUpdateToggle(xmPreviousCurrent.children('.'+$.exmenu.conf.toggleClass).get());xmCurrentNode=$(xmNavElement).parent();xmCurrentNode.addClass($.exmenu.conf.currentClass);xmCurrentNode.removeClass($.exmenu.conf.closedClass).children('ul').ariaState('hidden','false');xmUpdateToggle(xmCurrentNode.children('.'+$.exmenu.conf.toggleClass).get());xmCurrentParents=xmCurrentNode.parents('li.'+$.exmenu.conf.parentClass);xmCurrentParents.removeClass($.exmenu.conf.closedClass).children('ul').ariaState('hidden','false');xmUpdateToggle(xmCurrentParents.children('.'+$.exmenu.conf.toggleClass).get());return true;}
return false;};xmCollapseAll=function(){$(this).find('li.'+$.exmenu.conf.parentClass).addClass($.exmenu.conf.closedClass).children('ul').ariaState('hidden','true');xmUpdateToggle($(this).find('li.'+$.exmenu.conf.parentClass+' > .'+$.exmenu.conf.toggleClass).get());};xmExpandAll=function(){$(this).find('li.'+$.exmenu.conf.parentClass).removeClass($.exmenu.conf.closedClass).children('ul').ariaState('hidden','false');xmUpdateToggle($(this).find('li.'+$.exmenu.conf.parentClass+' > .'+$.exmenu.conf.toggleClass).get());};xmTestCurrent=function(xmTestText){return($.trim(xmTestText).toLowerCase()==this.findText.toLowerCase())?true:false;};})(jQuery);;jQuery.cookie=function(name,value,options){if(typeof value!='undefined'){options=options||{};if(value===null){value='';options.expires=-1;}
var expires='';if(options.expires&&(typeof options.expires=='number'||options.expires.toUTCString)){var date;if(typeof options.expires=='number'){date=new Date();date.setTime(date.getTime()+(options.expires*24*60*60*1000));}else{date=options.expires;}
expires='; expires='+date.toUTCString();}
var path=options.path?'; path='+(options.path):'';var domain=options.domain?'; domain='+(options.domain):'';var secure=options.secure?'; secure':'';document.cookie=[name,'=',encodeURIComponent(value),expires,path,domain,secure].join('');}else{var cookieValue=null;if(document.cookie&&document.cookie!=''){var cookies=document.cookie.split(';');for(var i=0;i<cookies.length;i++){var cookie=jQuery.trim(cookies[i]);if(cookie.substring(0,name.length+1)==(name+'=')){cookieValue=decodeURIComponent(cookie.substring(name.length+1));break;}}}
return cookieValue;}};;jQuery.compact={};jQuery.compact._conf={compactClass:'compact',activeClass:'active'};(function($){$(function(){$('.'+$.compact._conf.compactClass).not('.'+$.compact._conf.activeClass).compact();if(typeof ResizeEvents!='undefined'){$(this).each(function(){ResizeEvents.bind('x-text-resize x-window-resize',function(eventObj,emPixels,textHeight,windowWidth){window.setTimeout($.compact._handleResizeEvent,20);});});}});$.compact._handleResizeEvent=function(){for(id in $.compact){if(id.substr(0,1)=='_'){continue;}
$.compact[id].handleResizeEvent();}};$.fn.compact=function(options){options=options||{};$(this).each(function(){for(id in $.compact){if(id.substr(0,1)=='_'){continue;}
if($(this).is($.compact[id].conf.containerSelector)){$.compact[id].init(this,options);return;}}
if(typeof options.type!='undefined'&&options.type!=''){if(typeof $.compact[options.type]!='undefined'){$.compact[options.type].init(this,options);return;}else{$.debug('DEBUG: Compact plugin type not found for container element (with options.type of "'+options.type+'"). Make sure options.type is correct and the required plugin file has been included.');return;}}else{$.debug('DEBUG: Compact plugin type not found for container element (with class="'+$(this).attr('class')+'"). Make sure the required plugin file has been included.');return;}});return $(this);};$.compact._cookie=function(reference,value,options){if($.cookie){value=value||null;options=options||{};if(typeof reference=='undefined'){$.debug('DEBUG: No reference was sent for call to $.compact._cookie()');return false;}
if(value==null){return $.cookie(reference);}else{return $.cookie(reference,value,options);}}else{$.debug('DEBUG: Cookie plugin not available to save state of compact section widgets.');return null;}};$.debug=function(message){if(typeof window.console!='undefined'&&window.console.log!='undefined'){window.console.log(message);}else{}};$.fn.firstHeading=function(includeAllDescendants){includeAllDescendants=includeAllDescendants||false;headingSelector='h1:first, h2:first, h3:first, h4:first, h5:first, h6:first';if(includeAllDescendants){return(heading=$(this).find(headingSelector).eq(0)).text()!=''?heading:$('<h2></h2>');}else{return(heading=$(this).children(headingSelector).eq(0)).text()!=''?heading:$('<h2></h2>');}};$.fn.fullHeight=function(){if($(this).css('display')=='none'){$(this).css('display','block');fullHeight=$(this).outerHeight({margin:true});$(this).css('display','none');}else{fullHeight=$(this).outerHeight({margin:true});}
return fullHeight;};$.fn.visible=function(){return $(this).filter(function(){return($(this).css('display')=='none')?false:true;});};$.frag=function(updatedFrag,jumpToFragment){updatedFrag=updatedFrag||null;jumpToFragment=jumpToFragment||false;if(updatedFrag!==null){if(jumpToFragment){window.location.hash=updatedFrag;}else if($.browser.msie&&$.browser.version<=7){currentY=$(window).scrollLeft();currentX=$(window).scrollTop();window.location.hash=updatedFrag;$(window).scrollTop(currentX);$(window).scrollLeft(currentY);}else{window.location.replace('#'+updatedFrag);}
return updatedFrag;}else{currentFragment=window.location.hash.replace('#','');return currentFragment;}};})(jQuery);;if(typeof jQuery.compact=='undefined'){jQuery.compact={};}
jQuery.compact.tabbed={};jQuery.compact.tabbed.defaultOptions={type:'tabbed',variableHeight:false,transitionSpeed:'fast',heightAdjustSpeed:'def',rememberStateInCookie:true,controlsPosition:'before',cookieExpiryDays:30};jQuery.compact.tabbed.conf={containerSelector:'.'+$.compact._conf.compactClass+'.tabbed',activeClass:$.compact._conf.activeClass,cookieRefPrefix:'c.tabbed#',viewportElClass:'viewport',viewportInnerElClass:'viewport-inner',sectionClass:'section',headingClass:'heading',contentClass:'content',buttonClass:'button',closedClass:'closed',openClass:'open',currentClass:'current',updateURL:true,updateURLForIE6_7:false};(function($){$.compact.tabbed.initialised=[];$.fn.compactTabbed=function(options){options=options||{};$(this).each(function(){initCompactTabbed.apply(this,[options])});return $(this);};$.compact.tabbed.init=function(containerEl,options){options=options||{};initCompactTabbed.apply(containerEl,[options]);};$.compact.tabbed.handleResizeEvent=function(){for(n=0;n<$.compact.tabbed.initialised.length;n++){adjustTabbedViewportHeight('#'+$.compact.tabbed.initialised[n]);}};initCompactTabbed=function(options){if(typeof $.browser.gotStyle!='undefined'&&$.browser.gotStyle(this)===false){$.debug('DEBUG: Your browser does not have CSS support available or enabled, tabbed script exiting');return;}
if($(this).attr('id')==''){$.debug('DEBUG: Each "compact tabbed" ('+$.compact.tabbed.conf.containerSelector+') container must have a unique id');return false;}
if(!$(this).is($.compact.tabbed.conf.containerSelector)){$(this).addClass($.compact.tabbed.conf.containerSelector.split('.').join(' '));}
updateURL=false;if($.browser.msie&&$.browser.version<=7){if($.compact.tabbed.conf.updateURLForIE6_7){updateURL=true;}}else if($.compact.tabbed.conf.updateURL){updateURL=true;}
options=(typeof options=='undefined')?$.compact.tabbed.defaultOptions:$.extend({},$.compact.tabbed.defaultOptions,options);options.updateURL=updateURL;$(this).data('options',options).ariaState('live','assertive');var tabGroup=this;var tabList=$('<ul class="nl tabs"></ul>');var viewport=$('<div class="'+$.compact.tabbed.conf.viewportElClass+'"><div class="'+$.compact.tabbed.conf.viewportInnerElClass+'"></div></div>');var viewPortInner=viewport.find('.'+$.compact.tabbed.conf.viewportInnerElClass);var firstTab=null;if(options.rememberStateInCookie){var savedTabId=$.compact._cookie($.compact.tabbed.conf.cookieRefPrefix+$(this).attr('id')+'.current');}else{var savedTabId=null;}
allSections=$(tabGroup).children('.'+$.compact.tabbed.conf.sectionClass);if(allSections.filter('[id='+$.frag()+']').size()>0){var matchedFragId=$.frag();}else{var matchedFragId=null;}
viewPortInner.append(allSections);$(tabGroup).append(viewport);var firstOpenSection=allSections.filter('.'+$.compact.tabbed.conf.openClass+':first');var defaultSection=(firstOpenSection.size()>0)?firstOpenSection.eq(0).attr('id'):null;allSections.each(function(){if($(this).attr('id')==''){$.debug('DEBUG: Each tabbed section must have an unique id');$(this).addClass('error');return false;}
var id=$(this).attr('id');var contentId=id+'-'+$.compact.tabbed.conf.contentClass;var buttonId=id+'-'+$.compact.tabbed.conf.buttonClass;heading=$(this).firstHeading(true);heading.addClass($.compact.tabbed.conf.headingClass);hText=heading.text();listItem=$('<li><a href="#'+id+'" id="'+buttonId+'"><span>'+hText+'</span></a></li>');listItem.find('a').click(activateTab).ariaState('pressed','false');tabList.append(listItem);var tempContent=$(this).children().not(heading);tempContent.remove();var tempContainer=$('<div class="'+$.compact.tabbed.conf.contentClass+'" id="'+contentId+'"></div>').append(tempContent).ariaRole('tabpanel').ariaState({hidden:'true',expanded:'false',labelledby:buttonId,atomic:'true'});$(this).append(tempContainer);if(matchedFragId!==null){initialiseSectionState.apply(this,[matchedFragId,listItem,tabGroup]);}else if(savedTabId!==null){initialiseSectionState.apply(this,[savedTabId,listItem,tabGroup]);}else if(defaultSection!==null){initialiseSectionState.apply(this,[defaultSection,listItem,tabGroup]);}else{if(firstTab===null){initialiseSectionState.apply(this,[$(this).attr('id'),listItem,tabGroup]);}else{initialiseSectionState.apply(this,[firstTab,listItem,tabGroup]);}}
if(firstTab===null){firstTab=this;}});if($.fn.managefocus){tabList.managefocus('a',{role:'tablist',ignoreKeys:[38,40],keyHandlers:{38:tabNavigationEv,40:tabNavigationEv}}).controls(tabGroup);}
if(options.controlsPosition=='before'){$(tabGroup).prepend(tabList);}else{$(tabGroup).append(tabList);}
$(this).addClass($.compact.tabbed.conf.activeClass);$.compact.tabbed.initialised[$.compact.tabbed.initialised.length++]=$(this).attr('id');if(!options.variableHeight){viewPortInner.height(getTallestTabbedSection(this));}
return;};initialiseSectionState=function(expandThisSectionId,listItem,tabGroup){if($(this).attr('id')==expandThisSectionId){expandSection.apply(this);listItem.addClass($.compact.tabbed.conf.currentClass);$(tabGroup).addClass($.compact.tabbed.conf.currentClass+'-'+$(this).attr('id'));}else{collapseSection.apply(this);$(this).hide();listItem.removeClass($.compact.tabbed.conf.currentClass);}}
adjustTabbedViewportHeight=function(tabbedContainerSelector){containerEl=$(tabbedContainerSelector);options=containerEl.data('options');if(!options.variableHeight){viewportEl=$(containerEl).find('.'+$.compact.tabbed.conf.viewportInnerElClass+':first');viewportEl.stop().animate({'height':getTallestTabbedSection(containerEl)},options.heightAdjustSpeed);}};getTallestTabbedSection=function(containerEl){tallest=0;$(containerEl).find('.'+$.compact.tabbed.conf.sectionClass).each(function(){if((temp=$(this).fullHeight())>tallest){tallest=temp;}});return tallest;};tabNavigationEv=function(eventObj){activateTab.apply(this);eventObj.preventDefault();return false;};function expandSection(){$(this).removeClass($.compact.tabbed.conf.closedClass).addClass($.compact.tabbed.conf.openClass).ariaState({hidden:'false',expanded:'true'});};function collapseSection(){$(this).removeClass($.compact.tabbed.conf.openClass).addClass($.compact.tabbed.conf.closedClass).ariaState({hidden:'true',expanded:'false'});};function activateSectionById(sectionId){return $($.compact.tabbed.conf.containerSelector+' #'+sectionId).each(activateSection);};function activateSection(){containerEl=$(this).parents($.compact.tabbed.conf.containerSelector+':first');options=containerEl.data('options');viewportEl=$(this).parents('.'+$.compact.tabbed.conf.viewportInnerElClass+':first');newTab=$(this);previousTab=$(this).siblings('.'+$.compact.tabbed.conf.openClass);containerEl.removeClass($.compact.tabbed.conf.currentClass+'-'+previousTab.attr('id')).addClass($.compact.tabbed.conf.currentClass+'-'+newTab.attr('id'));containerEl.ariaState('busy','true');collapseSection.apply(previousTab);previousTab.fadeOut(options.transitionSpeed,function(){expandSection.apply(newTab);newTab.fadeIn(options.transitionSpeed)
containerEl.ariaState('relevant','all').ariaState('busy','false');});if(options.variableHeight&&previousTab.fullHeight()!=newTab.fullHeight()){viewportEl.stop().animate({'height':$(this).fullHeight()},options.heightAdjustSpeed,'',function(){viewportEl.css('height','auto');});}
if(options.rememberStateInCookie){$.compact._cookie($.compact.tabbed.conf.cookieRefPrefix+containerEl.attr('id')+'.current',$(this).attr('id'),{expires:options.cookieExpiryDays});}
if(options.updateURL){currentCompactFrag=$(this).attr('id');$.frag(currentCompactFrag,false);}
$('a[href$="#'+$(this).attr('id')+'"]').each(setCurrentTab);return;};function activateTab(){href=$(this).attr('href');activateSectionById(href.substr(href.indexOf('#')+1));setCurrentTab.apply(this);return false;};function setCurrentTab(){$(this).parent().siblings().removeClass($.compact.tabbed.conf.currentClass).find('a').ariaState('pressed','false');$(this).parent().addClass($.compact.tabbed.conf.currentClass).find('a').ariaState('pressed','true');};})(jQuery);;if(typeof jQuery.compact=='undefined'){jQuery.compact={};}
jQuery.compact.slideshow={};jQuery.compact.slideshow.defaultOptions={type:'slideshow',panelsLoop:true,slideshowAutoStart:true,slideshowInterval:6000,controlsPosition:'before',variableHeight:false,rememberStateInCookie:true,transitionSpeed:'slow',heightAdjustSpeed:'fast',cookieExpiryDays:30,nextControlText:'>',nextControlTitleText:'Next section',prevControlText:'<',prevControlTitleText:'Previous section',pauseControlText:'||',pauseControlTitleText:'Pause slideshow',playControlText:'|>',playControlTitleText:'Start slideshow',supportCSSImgReplace:false,clearPixelImg:'displacement.png'};jQuery.compact.slideshow.conf={containerSelector:'.'+$.compact._conf.compactClass+'.slideshow',activeClass:$.compact._conf.activeClass,cookieRefPrefix:'c.slideshow#',currentRef:'current-slideshow-panel',contentsClass:'compact-contents',windowClass:'viewport',sliderClass:'sliding-tray',sectionClass:'section',controlsClass:'controlbar',panelsClass:'panels',currentClass:'current',actionsClass:'actions',previousClass:'previous',nextClass:'next',toggleClass:'toggle-animation',animationOnClass:'animation-running',clearPixelClass:'for-css-replacement'};(function($){var sectionCount=null;$.compact.slideshow.initialised=[];$.fn.compactSlideshow=function(options){options=options||{};$(this).each(function(){initCompactSlideshow.apply(this,[options]);});return $(this);};$.compact.slideshow.init=function(containerEl,options){options=options||{};initCompactSlideshow.apply(containerEl,[options]);};$.compact.slideshow.handleResizeEvent=function(){for(n=0;n<$.compact.slideshow.initialised.length;n++){setStaticHeightForContainer('#'+$.compact.slideshow.initialised[n]);}};$(document).ready(function(){window.setTimeout(setAllSlideshowStaticHeights,500);});setAllSlideshowStaticHeights=function(){for(n=0;n<$.compact.slideshow.initialised.length;n++){containerEl=$('#'+$.compact.slideshow.initialised[n]);options=containerEl.data('options');if(!options.variableHeight){setStaticHeight.apply(containerEl);}}};initCompactSlideshow=function(options){if(typeof $.browser.gotStyle!='undefined'&&$.browser.gotStyle(this)===false){$.debug('DEBUG: Your browser does not have CSS support available or enabled, slideshow script exiting');return;}
if($(this).attr('id')==''){$.debug('DEBUG: Each "compact slideshow" ('+$.compact.slideshow.conf.containerSelector+') container must have a unique id');return false;}
if(!$(this).is($.compact.slideshow.conf.containerSelector)){$(this).addClass($.compact.slideshow.conf.containerSelector.split('.').join(' '));}
$(this).css('visibility','hidden');options=(typeof options=='undefined')?$.compact.slideshow.defaultOptions:$.extend({},$.compact.slideshow.defaultOptions,options);$(this).data('options',options);contentsEl=$('<div class="'+$.compact.slideshow.conf.contentsClass+'"></div>');heading=$(this).firstHeading().remove();if(heading.text()!=''){contentsEl.append(heading);}
windowEl=$('<div class="'+$.compact.slideshow.conf.windowClass+'"><div class="'+$.compact.slideshow.conf.sliderClass+'"></div></div>');windowEl.find('.'+$.compact.slideshow.conf.sliderClass).append($(this).contents());$(this).empty();contentsEl.append(windowEl);$(this).append(contentsEl);buttons=$('<div class="'+$.compact.slideshow.conf.controlsClass+'"><ul class="'+$.compact.slideshow.conf.panelsClass+'"></ul><ul class="'+$.compact.slideshow.conf.actionsClass+'"><li><a href="#" class="'+$.compact.slideshow.conf.previousClass+'" title="'+options.prevControlTitleText+'"><span>'+options.prevControlText+'</span></a></li><li><a href="#" class="'+$.compact.slideshow.conf.toggleClass+'" title="'+options.pauseControlTitleText+'"><span>'+options.pauseControlText+'</span></a></li><li><a href="#" class="'+$.compact.slideshow.conf.nextClass+'" title="'+options.nextControlTitleText+'"><span>'+options.nextControlText+'</span></a></li></ul></div>');if(options.controlsPosition=='after'){$(this).append(buttons);}else{$(this).prepend(buttons);}
if(options.supportCSSImgReplace!==false){buttons.find('a span').prepend('<img src="'+options.clearPixelImg+'" alt="" class="'+$.compact.slideshow.conf.clearPixelClass+'" />');}
$(this).find('.'+$.compact.slideshow.conf.previousClass).click(handlePreviousClick);$(this).find('.'+$.compact.slideshow.conf.toggleClass).click(toggleAutoTransitions);$(this).find('.'+$.compact.slideshow.conf.nextClass).click(handleNextClick);sectionCount=1;$(this).find('.'+$.compact.slideshow.conf.sectionClass).ariaState('atomic','true').each(addSectionTab);if(options.rememberStateInCookie){var initialSection=$.compact._cookie($.compact.slideshow.conf.cookieRefPrefix+$(this).attr('id')+'.current');}else{var initialSection=null;}
if(initialSection===null||$(this).find('.'+$.compact.slideshow.conf.sectionClass+'#'+initialSection).size()==0){initialSection=$(this).find('.'+$.compact.slideshow.conf.sectionClass+':first').attr('id');}
$(this).data($.compact.slideshow.conf.currentRef,initialSection);$(this).find('.'+$.compact.slideshow.conf.sectionClass).css('overflow','hidden');$(this).find('.'+$.compact.slideshow.conf.sectionClass).not('#'+initialSection).hide();$(this).find('.'+$.compact.slideshow.conf.panelsClass+' a[href$=#'+initialSection+']').addClass($.compact.slideshow.conf.currentClass);if(options.rememberStateInCookie){var slideshowStatus=$.compact._cookie($.compact.slideshow.conf.cookieRefPrefix+$(this).attr('id')+'.status');}else{var slideshowStatus=null;}
if(slideshowStatus===null){if(options.slideshowAutoStart){startSlideshow(this);}else{pauseSlideshow(this);}}else if(slideshowStatus=='paused'){pauseSlideshow(this);}else{startSlideshow(this);}
$('.'+$.compact.slideshow.conf.panelsClass).managefocus('a',{role:'menu',ignoreKeys:[38,40],keyHandlers:{38:panelsNavEvent,40:panelsNavEvent}});$('.'+$.compact.slideshow.conf.actionsClass).managefocus('a',{role:'toolbar',ignoreKeys:[38,40],keyHandlers:{38:actionsNavEvent,40:actionsNavEvent}});$(this).addClass($.compact.slideshow.conf.activeClass).ariaState('live','polite');$.compact.slideshow.initialised[$.compact.slideshow.initialised.length++]=$(this).attr('id');if(!options.variableHeight){windowEl.height(getTallestSlideshowSection(this));}
$(this).css('visibility','visible');};panelsNavEvent=function(eventObj){handleTabClick.apply(this);eventObj.preventDefault();return false;};actionsNavEvent=function(eventObj){if($(this).is('.'+$.compact.slideshow.conf.previousClass)){handlePreviousClick.apply(this);}else if($(this).is('.'+$.compact.slideshow.conf.nextClass)){handleNextClick.apply(this);}else if($(this).is('.'+$.compact.slideshow.conf.toggleClass)){toggleAutoTransitions.apply(this);}
eventObj.preventDefault();return false;};setStaticHeightForContainer=function(containerElement){setStaticHeight.apply($(containerElement));};setStaticHeight=function(){options=$(this).data('options');windowEl=$(this).find('.'+$.compact.slideshow.conf.windowClass);if(options.variableHeight){currentSection=getCurrentPanel(this);windowEl.stop().animate({'height':$(currentSection).fullHeight()},options.heightAdjustSpeed);}else{windowEl.stop().animate({'height':getTallestSlideshowSection(this)},options.heightAdjustSpeed);}};getTallestSlideshowSection=function(containerEl){tallest=0;$(containerEl).find('.'+$.compact.slideshow.conf.sectionClass).each(function(){if(tallest<(sectionHeight=$(this).fullHeight())){tallest=sectionHeight;}});return tallest;};startSlideshow=function(containerEl){_setSlideshowTimeout(containerEl);options=$(containerEl).data('options');$.compact._cookie($.compact.slideshow.conf.cookieRefPrefix+$(containerEl).attr('id')+'.status','running',{expires:options.cookieExpiryDays});controlSpan=$(containerEl).data('animation','running').addClass($.compact.slideshow.conf.animationOnClass).find('.'+$.compact.slideshow.conf.actionsClass+' .'+$.compact.slideshow.conf.toggleClass).attr('title',options.pauseControlTitleText).ariaState('pressed','true').find('span').text(options.pauseControlText);if(options.supportCSSImgReplace!==false){controlSpan.prepend('<img src="'+options.clearPixelImg+'" alt="" class="'+$.compact.slideshow.conf.clearPixelClass+'" />');}};pauseSlideshow=function(containerEl){_clearSlideshowTimeout(containerEl);options=$(containerEl).data('options');$.compact._cookie($.compact.slideshow.conf.cookieRefPrefix+$(containerEl).attr('id')+'.status','paused',{expires:options.cookieExpiryDays});controlSpan=$(containerEl).data('animation','paused').removeClass($.compact.slideshow.conf.animationOnClass).find('.'+$.compact.slideshow.conf.actionsClass+' .'+$.compact.slideshow.conf.toggleClass).attr('title',options.playControlTitleText).ariaState('pressed','false').find('span').text(options.playControlText);if(options.supportCSSImgReplace!==false){controlSpan.prepend('<img src="'+options.clearPixelImg+'" alt="" class="'+$.compact.slideshow.conf.clearPixelClass+'" />');}};_clearSlideshowTimeout=function(containerEl){toID=$(containerEl).data('animationTimeoutId');if(typeof toID!='undefined'){window.clearTimeout(toID);}};_setSlideshowTimeout=function(containerEl){_clearSlideshowTimeout(containerEl);options=$(containerEl).data('options');toID=window.setTimeout('handleSlideshowNext(\'#'+$(containerEl).attr('id')+'\')',options.slideshowInterval);$(containerEl).data('animationTimeoutId',toID);};handleSlideshowNext=function(containerId){handleNextClick.apply($(containerId).find('.'+$.compact.slideshow.conf.actionsClass+' .'+$.compact.slideshow.conf.nextClass),[beAssertive=false]);};addSectionTab=function(){id=$(this).attr('id');listItem=$('<li><a href="#'+id+'" title="'+$(this).firstHeading(true).text()+'"><span>'+(sectionCount++)+'</span></a></li>');listItem.find('a').data('section',id).click(handleTabClick);getContainerEl(this).find('ul.'+$.compact.slideshow.conf.panelsClass).append(listItem);};handleTabClick=function(){containerEl=getContainerEl(this);currentPanel=getCurrentPanel(this);newPanel=containerEl.find('.'+$.compact.slideshow.conf.sectionClass+'#'+$(this).data('section'));if(newPanel.attr('id')==currentPanel.attr('id')){return false;}
jumpToPanel(newPanel);return false;};handlePreviousClick=function(){containerEl=getContainerEl(this);options=$(containerEl).data('options');containerEl.ariaState('live','assertive');currentPanel=getCurrentPanel(this);newPanel=currentPanel.prevAll('.'+$.compact.slideshow.conf.sectionClass+':first');if(newPanel.size()>0){;jumpToPanel(newPanel);}else if(options.panelsLoop){newPanel=currentPanel.siblings(':last-child');jumpToPanel(newPanel);}
return false;};handleNextClick=function(beAssertive){containerEl=getContainerEl(this);options=$(containerEl).data('options');beAssertive=(beAssertive!==false)?true:false;if(beAssertive){containerEl.ariaState('live','assertive');}
currentPanel=getCurrentPanel(this);newPanel=currentPanel.nextAll('.'+$.compact.slideshow.conf.sectionClass+':first');if(newPanel.size()>0){jumpToPanel(newPanel);}else if(options.panelsLoop){newPanel=currentPanel.siblings(':first');jumpToPanel(newPanel);}
return false;};toggleAutoTransitions=function(){containerEl=getContainerEl(this);if(containerEl.data('animation')=='running'){pauseSlideshow(containerEl);}else{startSlideshow(containerEl);handleSlideshowNext(containerEl);}
return false;};jumpToPanel=function(newPanel){setCurrentPanel(newPanel);updatePanelLinks(newPanel);containerEl=getContainerEl(newPanel);options=$(containerEl).data('options');windowEl=containerEl.find('.'+$.compact.slideshow.conf.windowClass+':first');if(options.variableHeight){windowEl.animate({height:newPanel.fullHeight()});}
containerEl.ariaState('busy','true');windowEl.find('.'+$.compact.slideshow.conf.sectionClass+':visible').not(newPanel).stop().ariaState('hidden','true').fadeOut(options.transitionSpeed,function(){getContainerEl(newPanel).find('.'+$.compact.slideshow.conf.windowClass+':first .'+$.compact.slideshow.conf.sectionClass).visible().not(newPanel).stop().hide().ariaState('hidden','true');newPanel.stop().fadeTo(0,0).show().fadeTo(options.transitionSpeed,1,function(){if($.browser.msie&&$.browser.version<'9'){$(this).get(0).style.filter='';}
$(this).ariaState('hidden','false');containerEl.ariaState('relevant','all').ariaState('busy','false').ariaState('live','polite');});});if(options.variableHeight){windowEl.stop().animate({height:newPanel.fullHeight()},'','',function(){});}
$.compact._cookie($.compact.slideshow.conf.cookieRefPrefix+containerEl.attr('id')+'.current',newPanel.attr('id'),{expires:options.cookieExpiryDays});if(containerEl.data('animation')=='running'){_setSlideshowTimeout(containerEl);}};getContainerEl=function(childEl){return($(childEl).eq(0).is($.compact.slideshow.conf.containerSelector))?$(childEl).eq(0):$(childEl).parents($.compact.slideshow.conf.containerSelector+':first');};getCurrentPanel=function(childEl,containerEl){containerEl=containerEl||getContainerEl(childEl);return containerEl.find('#'+containerEl.data($.compact.slideshow.conf.currentRef));};setCurrentPanel=function(newPanel){getContainerEl(newPanel).data($.compact.slideshow.conf.currentRef,newPanel.attr('id'));};updatePanelLinks=function(newPanel){getContainerEl(newPanel).find('.'+$.compact.slideshow.conf.panelsClass+' a').removeClass($.compact.slideshow.conf.currentClass).filter('[href$=#'+$(newPanel).attr('id')+']').addClass($.compact.slideshow.conf.currentClass);};})(jQuery);;if(typeof jQuery.compact=='undefined'){jQuery.compact={};}
jQuery.compact.slider={};jQuery.compact.slider.defaultOptions={type:'slider',controlsMatchHeight:true,animationDuration:500,collapseDuration:250,cookieExpiryDays:30,nextControlText:'>',nextControlTitleText:'Next',prevControlText:'<',prevControlTitleText:'Previous',supportCSSImgReplace:false,clearPixelImg:'displacement.png'};jQuery.compact.slider.conf={containerSelector:'.'+$.compact._conf.compactClass+'.slider',activeClass:$.compact._conf.activeClass,controlElClass:'slider-control',cookieRefPrefix:'c.slider#',prevControlClass:'prev-panel',nextControlClass:'next-panel',sliderElClass:'sliding-tray',viewportElClass:'viewport',contentsElClass:'slider-contents',measureElClass:'measure',panelClass:'section',loadingClass:'loading',clearPixelClass:'for-css-replacement',holdControlInterval:300,errorMargin:1};(function($){$.compact.slider.initialised=[];holdIntervalId=null;numberOfMovesWhileHeld=0;$.fn.compactSlider=function(options){options=options||{};$(this).each(function(){initCompactSlider.apply(this,[options])});return $(this);};$.compact.slider.init=function(containerEl,options){options=options||{};initCompactSlider.apply(containerEl,[options]);};$.compact.slider.handleResizeEvent=function(){for(n=0;n<$.compact.slider.initialised.length;n++){containerEl=$('#'+$.compact.slider.initialised[n]);scrollToPanel(containerEl,containerEl.data('currentPanel'));}};$(document).ready(function(){window.setTimeout(adjustAllSliders,250);});adjustAllSliders=function(){for(n=0;n<$.compact.slider.initialised.length;n++){$('#'+$.compact.slider.initialised[n]).each(adjustSlidingPanels,[true]);}};initCompactSlider=function(options){if(typeof $.browser.gotStyle!='undefined'&&$.browser.gotStyle(this)===false){$.debug('DEBUG: Your browser does not have CSS support available or enabled, slider script exiting');return;}
if(typeof $(this).attr('id')=='undefined'){$.debug('DEBUG: Each "compact slider" ('+$.compact.slider.conf.containerSelector+') container must have a unique id');return;}
if(!$(this).is($.compact.slider.conf.containerSelector)){$(this).addClass($.compact.slider.conf.containerSelector.split('.').join(' '));}
options=(typeof options=='undefined')?$.compact.slider.defaultOptions:$.extend({},$.compact.slider.defaultOptions,options);$(this).data('options',options);prevControl=$('<a class="'+$.compact.slider.conf.controlElClass+' '+$.compact.slider.conf.prevControlClass+'" id="'+$(this).attr('id')+'-'+$.compact.slider.conf.prevControlClass+'" href="#previous" title="'+options.prevControlTitleText+'"><span>'+options.prevControlText+'</span></a>').click(handleClickPrevious).mousedown(handleHoldPrevious).mouseup(handleReleasePrevious).ariaRole('button').ariaState('controls',$(this).attr('id'));nextControl=$('<a class="'+$.compact.slider.conf.controlElClass+' '+$.compact.slider.conf.nextControlClass+'" id="'+$(this).attr('id')+'-'+$.compact.slider.conf.nextControlClass+'" href="#next" title="'+options.nextControlTitleText+'"><span>'+options.nextControlText+'</span></a>').click(handleClickNext).mousedown(handleHoldNext).mouseup(handleReleaseNext).ariaRole('button').ariaState('controls',$(this).attr('id'));viewportEl=$('<div class="'+$.compact.slider.conf.viewportElClass+'"><div class="'+$.compact.slider.conf.sliderElClass+'"></div></div>');sliderEl=viewportEl.find('.'+$.compact.slider.conf.sliderElClass);sliderEl.append($(this).contents('.'+$.compact.slider.conf.panelClass));$(this).contents('.'+$.compact.slider.conf.panelClass).remove();contentsEl=$('<div class="'+$.compact.slider.conf.contentsElClass+'"></div>').append(prevControl).append(viewportEl).append(nextControl);$(this).append(contentsEl);if(options.supportCSSImgReplace){contentsEl.find('a.'+$.compact.slider.conf.controlElClass+' span').prepend('<img src="'+options.clearPixelImg+'" alt="" class="'+$.compact.slideshow.conf.clearPixelClass+'" />');}
$(this).addClass($.compact.slider.conf.loadingClass).children().css('visibility','hidden');$(this).addClass($.compact.slider.conf.activeClass).ariaState({live:'assertive',atomic:'false',relevant:'all'}).after('<div class="'+$.compact.slider.conf.measureElClass+'" style="width:100%;clear:both;height:0;padding:0;margin:0;border:none;float:none;"></div>');;panels=$(this).find('.'+$.compact.slider.conf.panelClass);firstPanelWidth=panels.eq(0).outerWidth({margin:true});sliderEl.width(firstPanelWidth*panels.size()*4);currentPanelIndex=$.compact._cookie($.compact.slider.conf.cookieRefPrefix+$(this).attr('id')+'.current');currentPanelIndex=(currentPanelIndex!==null)?parseInt(currentPanelIndex):0;scrollToPanel(this,currentPanelIndex,doAnimation=false);$.compact.slider.initialised[$.compact.slider.initialised.length++]=$(this).attr('id');};adjustSlidingPanelsId=function(containerSelector){$(containerSelector).each(adjustSlidingPanels,[true]);};adjustSlidingPanels=function(inital){inital=inital||false;options=$(this).data('options');panels=$(this).find('.'+$.compact.slider.conf.panelClass);firstPanel=panels.eq(0);prevControl=$(this).find('.'+$.compact.slider.conf.prevControlClass);nextControl=$(this).find('.'+$.compact.slider.conf.nextControlClass);viewportEl=$(this).find('.'+$.compact.slider.conf.viewportElClass);contentsEl=$(this).find('.'+$.compact.slider.conf.contentsElClass);controlWidths=prevControl.outerWidth({margin:true})+
nextControl.outerWidth({margin:true});panels.height('auto');tallestSoFar=0;widestSoFar=0;panels.each(function(){if($(this).height()>tallestSoFar){tallestSoFar=$(this).height();}}).height(tallestSoFar);contentsEl.height(firstPanel.outerHeight({margin:true}));if(options.controlsMatchHeight){firstPanelHeight=firstPanel.outerHeight();prevControl.height(firstPanelHeight).css({'margin-top':firstPanel.css('margin-top'),'margin-bottom':firstPanel.css('margin-bottom')});nextControl.height(firstPanelHeight).css({'margin-top':firstPanel.css('margin-top'),'margin-bottom':firstPanel.css('margin-bottom')});if(options.supportCSSImgReplace){prevControl.find('img.'+$.compact.slider.conf.clearPixelClass).height(firstPanelHeight);nextControl.find('img.'+$.compact.slider.conf.clearPixelClass).height(firstPanelHeight);}}
totalPanels=panels.size();availableWidth=$(this).next('.'+$.compact.slider.conf.measureElClass).innerWidth()-controlWidths;panelsDisplayed=0;panelIndex=$(this).data('currentPanel');nextPanelWidth=parseInt(panels.eq(panelIndex).outerWidth({margin:true}));widthUsedSoFar=0;while(panelsDisplayed<totalPanels&&(widthUsedSoFar+nextPanelWidth)<availableWidth){widthUsedSoFar=widthUsedSoFar+nextPanelWidth;panelsDisplayed++;panelIndex++;if(panels.eq(panelIndex).size()==0){previousWidthUsedSoFar=widthUsedSoFar;panelIndex=$(this).data('currentPanel');nextPanelWidth=parseInt(panels.eq(panelIndex).outerWidth({margin:true}));while(panelsDisplayed<totalPanels&&(widthUsedSoFar+nextPanelWidth)<availableWidth){widthUsedSoFar=widthUsedSoFar+nextPanelWidth;panelsDisplayed++;panelIndex--;nextPanelWidth=parseInt(panels.eq(panelIndex).outerWidth({margin:true}));}
if(previousWidthUsedSoFar!=widthUsedSoFar){scrollToPanel(this,panelIndex);return;}else{break;}}
nextPanelWidth=parseInt(panels.eq(panelIndex).outerWidth({margin:true}));}
if(panelsDisplayed==0){panelsDisplayed=1;widthUsedSoFar=parseInt(panels.eq(panelIndex).outerWidth({margin:true}));}
if(inital){contentsEl.width(widthUsedSoFar+controlWidths+$.compact.slider.conf.errorMargin);viewportEl.width(widthUsedSoFar);$(this).removeClass($.compact.slider.conf.loadingClass).fadeTo(0,0).children().css('visibility','visible').end().fadeTo(options.animationDuration,1);}else{if(widthUsedSoFar<$(this).data('currentViewPortWidth')){viewportEl.stop().animate({width:widthUsedSoFar},options.collapseDuration);contentsEl.stop().animate({width:widthUsedSoFar+controlWidths+$.compact.slider.conf.errorMargin},options.collapseDuration+50);}else{$(this).data('numPanelsDisplayed',panelsDisplayed);$(this).data('currentViewPortWidth',widthUsedSoFar);contentsEl.stop().animate({width:widthUsedSoFar+controlWidths+$.compact.slider.conf.errorMargin},options.collapseDuration);viewportEl.stop().animate({width:widthUsedSoFar},options.collapseDuration);if(totalPanels-$(this).data('currentPanel')<panelsDisplayed){scrollToPanel(this,totalPanels-panelsDisplayed);}
updatePanelStates(panels,$(this).data('currentPanel'),panelsDisplayed);updateControlStates(this);return;}}
$(this).data('numPanelsDisplayed',panelsDisplayed);$(this).data('currentViewPortWidth',widthUsedSoFar);updatePanelStates(panels,$(this).data('currentPanel'),panelsDisplayed);updateControlStates(this);};updatePanelStates=function(panels,currentIndex,panelsDisplayed){for(n=0;n<panels.size();n++){if(n<currentIndex||n>=(currentIndex+panelsDisplayed)){panels.eq(n).ariaState('hidden','true').find('a').attr('tabindex','-1')}else{panels.eq(n).ariaState('hidden','false').find('a').attr('tabindex','')}}};updateControlStates=function(containerEl){panels=$(containerEl).find('.'+$.compact.slider.conf.panelClass);prevControl=$(containerEl).find('.'+$.compact.slider.conf.prevControlClass);nextControl=$(containerEl).find('.'+$.compact.slider.conf.nextControlClass);if($(containerEl).data('currentPanel')!=0){prevControl.removeClass('disabled prev-disabled');}else{prevControl.addClass('disabled prev-disabled');}
if($(containerEl).data('currentPanel')+$(containerEl).data('numPanelsDisplayed')<panels.size()){nextControl.removeClass('disabled next-disabled');}else{nextControl.addClass('disabled next-disabled');}};handleHoldPrevious=function(){numberOfMovesWhileHeld=0;containerEl=$(this).getSliderContainer().ariaState('busy','true');prevHeldInterval($(this).attr('id'));holdIntervalId=window.setInterval('prevHeldInterval("'+$(this).attr('id')+'")',$.compact.slider.conf.holdControlInterval);return false;};handleReleasePrevious=function(){window.clearInterval(holdIntervalId);containerEl=$(this).getSliderContainer();adjustSlidingPanels.apply(containerEl);containerEl.ariaState('busy','false');return false;};handleHoldNext=function(){numberOfMovesWhileHeld=0;containerEl=$(this).getSliderContainer().ariaState('busy','true');nextHeldInterval($(this).attr('id'));holdIntervalId=window.setInterval('nextHeldInterval("'+$(this).attr('id')+'")',$.compact.slider.conf.holdControlInterval);return false;};handleReleaseNext=function(){window.clearInterval(holdIntervalId);containerEl=$(this).getSliderContainer();adjustSlidingPanels.apply(containerEl);containerEl.ariaState('busy','false');return false;};prevHeldInterval=function(controlId){numberOfMovesWhileHeld++;doPrevious.apply($('#'+controlId),[doAdjustments=false]);};nextHeldInterval=function(controlId){numberOfMovesWhileHeld++;doNext.apply($('#'+controlId),[doAdjustments=false]);};handleClickPrevious=function(){if(numberOfMovesWhileHeld==0){containerEl=$(this).getSliderContainer().ariaState('busy','true');doPrevious.apply(this);containerEl.ariaState('busy','false');}
numberOfMovesWhileHeld=0;return false;};handleClickNext=function(){if(numberOfMovesWhileHeld==0){containerEl=$(this).getSliderContainer().ariaState('busy','true');doNext.apply(this);containerEl.ariaState('busy','false');}
numberOfMovesWhileHeld=0;return false;};doPrevious=function(doAdjustments){doAdjustments=(typeof doAdjustments=='undefined')?true:doAdjustments;if($(this).is('.disabled')){return false;}
scrollToPanel(containerEl=$(this).getSliderContainer(),newPanelIndex=$(containerEl).data('currentPanel')-1,doAnimation=true,doAdjustments);};doNext=function(doAdjustments){doAdjustments=(typeof doAdjustments=='undefined')?true:doAdjustments;if($(this).is('.disabled')){return false;}
scrollToPanel(containerEl=$(this).getSliderContainer(),newPanelIndex=$(containerEl).data('currentPanel')+1,doAnimation=true,doAdjustments);};scrollToPanel=function(containerEl,newPanelIndex,doAnimation,doAdjustments){panels=$(containerEl).find('.'+$.compact.slider.conf.panelClass);if(newPanelIndex<0||newPanelIndex+$(containerEl).data('numPanelsDisplayed')>panels.size()){updateControlStates(containerEl);return;}
doAnimation=(typeof doAnimation=='undefined')?true:doAnimation;doAdjustments=(typeof doAdjustments=='undefined')?true:doAdjustments;options=$(containerEl).data('options');sliderEl=$(containerEl).find('.'+$.compact.slider.conf.sliderElClass);if(doAnimation){sliderEl.stop().animate({left:-(panels.eq(newPanelIndex).position().left)},options.animationDuration);}else{sliderEl.stop().css('left',-(panels.eq(newPanelIndex).position().left));}
$(containerEl).data('currentPanel',newPanelIndex);updateCurrentPanelCookie(containerEl,newPanelIndex);if(doAdjustments){adjustSlidingPanels.apply(containerEl);}};updateCurrentPanelCookie=function(containerEl,newPanelIndex){cookieRef=$.compact.slider.conf.cookieRefPrefix+$(containerEl).attr('id')+'.current';options=$(containerEl).data('options');if($.compact._cookie(cookieRef)!=newPanelIndex){$.compact._cookie(cookieRef,newPanelIndex+'',{expires:options.cookieExpiryDays});}};$.fn.getSliderContainer=function(){return $(this).parents($.compact.slider.conf.containerSelector+':first');};})(jQuery);;jQuery.cFormLabelsConf={inputSelector:':input',labelSelector:'label',compactLabelClass:'compact-label',hiddenLabelClass:'hidden-label'};(function($){$.fn.compactFormLabel=function(options){options=options||{};$(this).filter($.cFormLabelsConf.inputSelector+', '+$.cFormLabelsConf.labelSelector).each(function(){if($(this).is($.cFormLabelsConf.inputSelector)){initCompactLabel(this);}else{inputId=$(this).attr('for');if(typeof inputId=='undefined'){$.debug('DEBUG: Each "label" must have a "for" attribute that references the input it is labelling');return;}
initCompactLabel('#'+inputId);}});return $(this);};$.fn.findLabel=function(){inputId=$(this).attr('id');if(typeof inputId=='undefined'){$.debug('DEBUG: Cannot find "label" for input element that doesn\'t have a unique "id" attribute');return null;}
labelEl=$($.cFormLabelsConf.labelSelector+'[for='+inputId+']');if(labelEl.size()==0){$.debug('DEBUG: No "label" element found for the input with id "'+inputId+'" ');return null;}
return labelEl;};initCompactLabel=function(inputEl){labelEl=$(inputEl).findLabel();labelEl.addClass($.cFormLabelsConf.compactLabelClass);$(inputEl).bind('focus blur',handleFocusBlurCompactLabelInput);$(inputEl).triggerHandler('blur');};handleFocusBlurCompactLabelInput=function(eventObj){labelEl=$(this).findLabel();if(eventObj.type=='focus'||$(this).val()!=''){labelEl.addClass($.cFormLabelsConf.hiddenLabelClass);}else{labelEl.removeClass($.cFormLabelsConf.hiddenLabelClass);}};$.debug=function(message){if(typeof window.console!='undefined'&&window.console.log!='undefined'){window.console.log(message);}else{window.status=message;}};})(jQuery);jQuery.sList={};jQuery.sList.conf={containerClass:'short-list',viewportClass:'viewport',toggleClass:'toggle',activeClass:'active',expandedClass:'expanded'};jQuery.sList.defaultOptions={howShort:5,toggleShowText:'Show all',toggleHideText:'Show less',toggleShowTitle:'',toggleHideTitle:'',useSimpleAnimation:false};(function($){$.fn.shorterList=function(options){options=options||{};$(this).each(function(){initShorterList.apply(this,[options])});return $(this);};initShorterList=function(options){if(this.nodeName!='UL'&&this.nodeName!='OL'){$.debug('DEBUG: The "shorter list" plugin can only be applied to OL or UL elements');return;}
options=(typeof options=='undefined')?$.sList.defaultOptions:$.extend({},$.sList.defaultOptions,options);if($(this).find('li:gt('+(options.howShort-1)+')').size()==0){$.debug('DEBUG: The "shorter list" plugin has established that this list is short enough already! No further action will be taken');return;}
containerEl=$('<div class="'+$.sList.conf.containerClass+'"></div>').data('options',options).ariaState('live','assertive').ariaState('atomic','false');viewportEl=$('<div class="'+$.sList.conf.viewportClass+'"></div>');toggleEl=$('<p class="'+$.sList.conf.toggleClass+'"><a href="#show-all"><span>'+options.toggleShowText+'</span></a></p>');toggleLink=toggleEl.find('a').attr('title',options.toggleShowTitle).ariaRole('button').ariaState('pressed','false');if($(this).attr('id')!=''){toggleLink.ariaState('controls',$(this).attr('id'));}
toggleLink.toggle(showListItems,hideListItems);$(this).before(containerEl);viewportEl.append(this);containerEl.append(viewportEl);containerEl.append(toggleEl);$(this).find('li:gt('+(options.howShort-1)+')').hide().ariaState('hidden','true');containerEl.addClass($.sList.conf.activeClass);};showListItems=function(){containerEl=$(this).parents('.'+$.sList.conf.containerClass+':first').eq(0).ariaState('busy','true');viewportEl=containerEl.find('.'+$.sList.conf.viewportClass+':first');options=containerEl.data('options');if(!options.useSimpleAnimation){containerEl.find('li:gt('+(options.howShort-1)+')').show();newHeight=$(viewportEl).children('ul').eq(0).outerHeight({margin:true});containerEl.find('li:gt('+(options.howShort-1)+')').hide();viewportEl.stop().animate({height:newHeight},'','',function(){viewportEl.css('height','auto');});}
containerEl.find('li:gt('+(options.howShort-1)+')').fadeIn().ariaState('hidden','false');containerEl.addClass($.sList.conf.expandedClass).ariaState('relevant','additions text').ariaState('busy','false');$(this).attr('title',options.toggleHideTitle).ariaState('pressed','true').find('span').text(options.toggleHideText);};hideListItems=function(){containerEl=$(this).parents('.'+$.sList.conf.containerClass+':first').eq(0).ariaState('busy','true');viewportEl=containerEl.find('.'+$.sList.conf.viewportClass+':first');options=containerEl.data('options');if(!options.useSimpleAnimation){containerEl.find('li:gt('+(options.howShort-1)+')').hide();newHeight=$(viewportEl).children('ul').eq(0).outerHeight({margin:true});containerEl.find('li:gt('+(options.howShort-1)+')').show();viewportEl.stop().animate({height:newHeight},'','',function(){viewportEl.css('height','auto');});}
containerEl.find('li:gt('+(options.howShort-1)+')').fadeOut().ariaState('hidden','true');containerEl.removeClass($.sList.conf.expandedClass).ariaState('busy','false').ariaState('relevant','removals');$(this).attr('title',options.toggleShowTitle).ariaState('pressed','false').find('span').text(options.toggleShowText);};$.debug=function(message){if(typeof window.console!='undefined'&&window.console.log!='undefined'){window.console.log(message);}else{}};})(jQuery);jQuery.linkedUpConf={hoverClass:'hover'};(function($){$.fn.linkedUp=function(){$(this).each(function(){if($(this).find('a[href]').size()==0){return;}
$(this).click(function(){window.location=$(this).find('a[href]').eq(0).attr('href')}).hover(over=function(){$(this).addClass($.linkedUpConf.hoverClass);window.status=$(this).find('a[href]').eq(0).attr('href');},out=function(){$(this).removeClass($.linkedUpConf.hoverClass);window.status='';});});return $(this);};$.debug=function(message){if(typeof window.console!='undefined'&&window.console.log!='undefined'){window.console.log(message);}else{}};})(jQuery);jQuery.fragLinx={};jQuery.fragLinx.conf={containerClass:'frag-linx-container',contentClass:'frag-linx-content',activeClass:'active',expandedClass:'expanded',loadingClass:'loading'};jQuery.fragLinx.defaultOptions={behaviour:'expandable',animationSpeed:'normal',linkSelector:'a',onlyEverOneOpen:true,callback:null};(function($){$.fn.fragLinx=function(options){options=options||{};$(this).each(function(){initFragLinx.apply(this,[options])});return $(this);};initFragLinx=function(options){options=(typeof options=='undefined')?$.fragLinx.defaultOptions:$.extend({},$.fragLinx.defaultOptions,options);fragLinks=$(this).find(options.linkSelector).filter('a[href*="#"]');if(fragLinks.size()==0){$.debug('DEBUG: The "Frag linx" plugin can only be applied to elements that contain A (anchor) elements with a @href attribute containing a fragment identifier (#example)');}
fragLinks.ariaRole('button').click(toggleFragLinkContent).each(function(){$(this).attr('title','Expand: '+$(this).text());});$(this).data('options',options).addClass($.fragLinx.conf.containerClass).addClass($.fragLinx.conf.activeClass);};toggleFragLinkContent=function(eventObj){nextEl=$(this).next().eq(0);if(nextEl.is('.'+$.fragLinx.conf.contentClass)){if(nextEl.is(':hidden')){showFragLink.apply(this);}else{hideFragLink.apply(this,[doCallback=true]);}}else{fragment=$(this).attr('href').split('#')[1];if($(this).attr('id')==''){$(this).attr('id','frag-link-'+fragment)}
contentEl=$('<div></div>').addClass($.fragLinx.conf.contentClass).attr('id',$.fragLinx.conf.contentClass+'-'+fragment).ariaState('live','assertive').ariaState('labelledby',$(this).attr('id')).ariaState('hidden','true').hide();$(this).after(contentEl);showFragLink.apply(this);}
eventObj.preventDefault();return false;};showFragLink=function(){linkEl=$(this);containerEl=$(this).parents('.'+$.fragLinx.conf.containerClass).eq(0);options=containerEl.data('options');if(options.onlyEverOneOpen){containerEl.find('.'+$.fragLinx.conf.contentClass+'.'+$.fragLinx.conf.expandedClass).prev().each(hideFragLink);}
nextEl=$(this).next().eq(0);if(!nextEl.is('.'+$.fragLinx.conf.contentClass)){$.debug('DEBUG: .'+$.fragLinx.conf.contentClass+' element could not be found for: a@href='+$(this).attr('href'));return;}
linkEl.addClass($.fragLinx.conf.loadingClass);nextEl.addClass($.fragLinx.conf.loadingClass).ariaState('busy','true');nextEl.load($(this).attr('href').split('#').join(' #'),[],function(){contents=nextEl.children(':first').contents().not(nextEl.children(':first').firstHeading());nextEl.empty().append(contents);if(options.behaviour=='expandable'){nextEl.slideDown(options.animationSpeed,options.callback);}else{nextEl.fadeIn(options.animationSpeed,options.callback);}
linkEl.removeClass($.fragLinx.conf.loadingClass).attr('title','Collapse: '+linkEl.text());nextEl.addClass($.fragLinx.conf.expandedClass).removeClass($.fragLinx.conf.loadingClass).ariaState('relevant','additions text').ariaState('busy','false').ariaState('hidden','false');});$(this).ariaState('pressed','true').addClass($.fragLinx.conf.expandedClass);};hideFragLink=function(doCallback){nextEl=$(this).next().eq(0);if(!nextEl.is('.'+$.fragLinx.conf.contentClass)){$.debug('DEBUG: .'+$.fragLinx.conf.contentClass+' element could not be found for: a@href='+$(this).attr('href'));return;}
doCallback=doCallback||false;nextEl.ariaState('busy','true');if(options.behaviour=='expandable'){if(doCallback){nextEl.slideUp(options.animationSpeed,options.callback);}else{nextEl.slideUp(options.animationSpeed);}}else{if(doCallback){nextEl.fadeOut(options.animationSpeed,options.callback);}else{nextEl.fadeOut(options.animationSpeed);}}
linkEl.attr('title','Expand: '+linkEl.text());nextEl.removeClass($.fragLinx.conf.expandedClass).ariaState('hidden','true').ariaState('relevant','removals').ariaState('busy','false');$(this).ariaState('pressed','false').removeClass($.fragLinx.conf.expandedClass);};$.fn.firstHeading=function(includeAllDescendants){includeAllDescendants=includeAllDescendants||false;headingSelector='h1:first, h2:first, h3:first, h4:first, h5:first, h6:first';if(includeAllDescendants){return(heading=$(this).find(headingSelector).eq(0)).text()!=''?heading:$('<h2></h2>');}else{return(heading=$(this).children(headingSelector).eq(0)).text()!=''?heading:$('<h2></h2>');}};$.debug=function(message){if(typeof window.console!='undefined'&&window.console.log!='undefined'){window.console.log(message);}else{}};})(jQuery);var GB_DONE=false;var GB_HEIGHT,GB_WIDTH;var GB_ANIMATION=true;var GB_OPEN=false;var GB_CANSHRINK=false;var GB_WIDTHOFFSET=40;var GB_HEIGHTOFFSET=60;var GB_CLOSECHALLENGE=false;function GB_show(caption,url,width,height,canShrink,closeChallenge){GB_HEIGHT=height||400;GB_WIDTH=width||600;GB_CANSHRINK=(typeof canShrink!='undefined')?canShrink:true;GB_CLOSECHALLENGE=closeChallenge||false;if(!GB_DONE){$(document.body).append("<div id='GB_overlay'></div><div id='GB_container'><div id='GB_window'>"
+"<img src='/assets/images/ui/close.png' alt='Close' id='GB_Close'/></div></div>").keyup(function(evtObj){if(GB_OPEN&&evtObj.keyCode==27){GB_hide();}});$("#GB_window img").click(GB_hide);ResizeEvents.bind('x-initial-sizes, x-window-resize',GB_resize);GB_DONE=true;}
$("#GB_frame").remove();$("#GB_window").append("<iframe id='GB_frame' src='"+url+"' title='"+caption+"'></iframe>");$("#GB_window").width(GB_WIDTH);$("#GB_overlay, #GB_container").show();GB_OPEN=true;GB_resize(null,null,null,getWindowWidth(),getWindowHeight());if(GB_ANIMATION){$("#GB_window").stop().slideDown("slow");}else{$("#GB_window").stop().show();}
$("#GB_frame").focus();};function GB_hide(){if(GB_CLOSECHALLENGE===false||confirm(GB_CLOSECHALLENGE)){$("#GB_window, #GB_overlay, #GB_container").stop().hide();GB_OPEN=false;$('body').focus();}};function GB_resize(evtObj,emPixels,textHeight,windowWidth,windowHeight){if(GB_OPEN&&GB_CANSHRINK){if(windowWidth-GB_WIDTHOFFSET<GB_WIDTH){$("#GB_window").width(windowWidth-GB_WIDTHOFFSET);}else{$("#GB_window").width(GB_WIDTH);}
if(windowHeight-GB_HEIGHTOFFSET<GB_HEIGHT){$("#GB_window").height(windowHeight-GB_HEIGHTOFFSET);$("#GB_frame").height(windowHeight-GB_HEIGHTOFFSET);}else{$("#GB_window").height(GB_HEIGHT);$("#GB_frame").height(GB_HEIGHT);}}};adjustColumnHeight=function(){$('#content-container').css('height','auto');if($('body').is('layout-small')){return;}
if($('#content-container').height()<$('#nav2').height()){$('#content-container').height($('#nav2').height()+1);}};init=function(){nav2Options={topLevelCanToggle:true,supportCSSImgReplace:true,clearPixelImg:'/assets/images/ui/displacement.png'};$('#nav2 .site-section').exmenu('init',nav2Options);if(typeof expandNav2To!='undefined'){$('#nav2 .site-section').exmenu('setCurrent',expandNav2To);}
$('#nav2').click(adjustColumnHeight);adjustColumnHeight();baseShortListOptions={howShort:3,toggleShowText:'More',toggleHideText:'Less'}
shortListOptions=baseShortListOptions;shortListOptions.toggleShowTitle='Show more services';shortListOptions.toggleHideTitle='Show less services';$('body').not('.page-home').find('#services ul').shorterList(shortListOptions);shortListOptions.howShort=4;$('body.page-home').find('#services ul').shorterList(shortListOptions);shortListOptions=baseShortListOptions;shortListOptions.howShort=6;shortListOptions.toggleShowTitle='Show more links';shortListOptions.toggleHideTitle='Show less links';$('body.page-home .in-your-region ul').shorterList(shortListOptions);$('#poll a').click(function(eventObj){GB_show('Satisfaction survey',this.href,800,1000,canShrink=true,closeChallenge='Close the survey? \nIf you choose to take '
+'the survey later, you will need to start from the '
+'beginning again');return false;});$('.previous.announcements').shorterList({howShort:10,toggleShowTitle:'Show all announcements',toggleHideTitle:'Show less announcements',useSimpleAnimation:true});$('.pagetype-subject-home .index li p').linkedUp();$('#towns-and-regions').exmenu('init',nav2Options);};