/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var 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.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(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,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}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 G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},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.replace(/ jQuery\d+="(?:\d+|null)"/g,""):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(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G<E;G++){L.call(K(this[G],H),this.length>1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};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){if(G&&/\S/.test(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(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},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,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+"></"+T+">"});var O=S.replace(/^\s+/,"").substring(0,10).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]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/<tbody/i.test(S),N=!O.indexOf("<table")&&!R?L.firstChild&&L.firstChild.childNodes:Q[1]=="<table>"&&!R?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(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});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(G){var J=[],L=o(G);for(var K=0,H=L.length;K<H;K++){var I=(K>0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});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).children().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)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa<ab.length;aa++){if(ab[aa]===ab[aa-1]){ab.splice(aa--,1)}}}}}return ab};F.matches=function(T,U){return F(T,null,null,U)};F.find=function(aa,T,ab){var Z,X;if(!aa){return[]}for(var W=0,V=I.order.length;W<V;W++){var Y=I.order[W],X;if((X=I.match[Y].exec(aa))){var U=RegExp.leftContext;if(U.substr(U.length-1)!=="\\"){X[1]=(X[1]||"").replace(/\\/g,"");Z=I.find[Y](X,T,ab);if(Z!=null){aa=aa.replace(I.match[Y],"");break}}}}if(!Z){Z=T.getElementsByTagName("*")}return{set:Z,expr:aa}};F.filter=function(ad,ac,ag,W){var V=ad,ai=[],aa=ac,Y,T,Z=ac&&ac[0]&&Q(ac[0]);while(ad&&ac.length){for(var ab in I.filter){if((Y=I.match[ab].exec(ad))!=null){var U=I.filter[ab],ah,af;T=false;if(aa==ai){ai=[]}if(I.preFilter[ab]){Y=I.preFilter[ab](Y,aa,ag,ai,W,Z);if(!Y){T=ah=true}else{if(Y===true){continue}}}if(Y){for(var X=0;(af=aa[X])!=null;X++){if(af){ah=U(af,Y,X,aa);var ae=W^!!ah;if(ag&&ah!=null){if(ae){T=true}else{aa[X]=false}}else{if(ae){ai.push(af);T=true}}}}}if(ah!==g){if(!ag){aa=ai}ad=ad.replace(I.match[ab],"");if(!T){return[]}break}}}if(ad==V){if(T==null){throw"Syntax error, unrecognized expression: "+ad}else{break}}V=ad}return aa};var I=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(T){return T.getAttribute("href")}},relative:{"+":function(aa,T,Z){var X=typeof T==="string",ab=X&&!/\W/.test(T),Y=X&&!ab;if(ab&&!Z){T=T.toUpperCase()}for(var W=0,V=aa.length,U;W<V;W++){if((U=aa[W])){while((U=U.previousSibling)&&U.nodeType!==1){}aa[W]=Y||U&&U.nodeName===T?U||false:U===T}}if(Y){F.filter(T,aa,true)}},">":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){var W=Y.parentNode;Z[V]=W.nodeName===U?W:false}}}else{for(var V=0,T=Z.length;V<T;V++){var Y=Z[V];if(Y){Z[V]=X?Y.parentNode:Y.parentNode===U}}if(X){F.filter(U,Z,true)}}},"":function(W,U,Y){var V=L++,T=S;if(!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("parentNode",U,V,W,X,Y)},"~":function(W,U,Y){var V=L++,T=S;if(typeof U==="string"&&!U.match(/\W/)){var X=U=Y?U:U.toUpperCase();T=P}T("previousSibling",U,V,W,X,Y)}},find:{ID:function(U,V,W){if(typeof V.getElementById!=="undefined"&&!W){var T=V.getElementById(U[1]);return T?[T]:[]}},NAME:function(V,Y,Z){if(typeof Y.getElementsByName!=="undefined"){var U=[],X=Y.getElementsByName(V[1]);for(var W=0,T=X.length;W<T;W++){if(X[W].getAttribute("name")===V[1]){U.push(X[W])}}return U.length===0?null:U}},TAG:function(T,U){return U.getElementsByTagName(T[1])}},preFilter:{CLASS:function(W,U,V,T,Z,aa){W=" "+W[1].replace(/\\/g,"")+" ";if(aa){return W}for(var X=0,Y;(Y=U[X])!=null;X++){if(Y){if(Z^(Y.className&&(" "+Y.className+" ").indexOf(W)>=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return U<T[3]-0},gt:function(V,U,T){return U>T[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W<T;W++){if(Y[W]===Z){return false}}return true}}}},CHILD:function(T,W){var Z=W[1],U=T;switch(Z){case"only":case"first":while(U=U.previousSibling){if(U.nodeType===1){return false}}if(Z=="first"){return true}U=T;case"last":while(U=U.nextSibling){if(U.nodeType===1){return false}}return true;case"nth":var V=W[2],ac=W[3];if(V==1&&ac==0){return true}var Y=W[0],ab=T.parentNode;if(ab&&(ab.sizcache!==Y||!T.nodeIndex)){var X=0;for(U=ab.firstChild;U;U=U.nextSibling){if(U.nodeType===1){U.nodeIndex=++X}}ab.sizcache=Y}var aa=T.nodeIndex-ac;if(V==0){return aa==0}else{return(aa%V==0&&aa/V>=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V<T;V++){U.push(X[V])}}else{for(var V=0;X[V];V++){U.push(X[V])}}}return U}}var G;if(document.documentElement.compareDocumentPosition){G=function(U,T){var V=U.compareDocumentPosition(T)&4?-1:U===T?0:1;if(V===0){hasDuplicate=true}return V}}else{if("sourceIndex" in document.documentElement){G=function(U,T){var V=U.sourceIndex-T.sourceIndex;if(V===0){hasDuplicate=true}return V}}else{if(document.createRange){G=function(W,U){var V=W.ownerDocument.createRange(),T=U.ownerDocument.createRange();V.selectNode(W);V.collapse(true);T.selectNode(U);T.collapse(true);var X=V.compareBoundaryPoints(Range.START_TO_END,T);if(X===0){hasDuplicate=true}return X}}}}(function(){var U=document.createElement("form"),V="script"+(new Date).getTime();U.innerHTML="<input name='"+V+"'/>";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="<a href='#'></a>";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="<p class='TEST'></p>";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="<div class='test e'></div><div class='test'></div>";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1&&!ac){T.sizcache=Y;T.sizset=W}if(T.nodeName===Z){X=T;break}T=T[U]}ad[W]=X}}}function S(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W<V;W++){var T=ad[W];if(T){if(ab&&T.nodeType===1){T.sizcache=Y;T.sizset=W}T=T[U];var X=false;while(T){if(T.sizcache===Y){X=ad[T.sizset];break}if(T.nodeType===1){if(!ac){T.sizcache=Y;T.sizset=W}if(typeof Z!=="string"){if(T===Z){X=true;break}}else{if(F.filter(Z,[T]).length>0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z<U;Z++){F(T,V[Z],W)}return F.filter(X,W)};o.find=F;o.filter=F.filter;o.expr=F.selectors;o.expr[":"]=o.expr.filters;F.selectors.filters.hidden=function(T){return T.offsetWidth===0||T.offsetHeight===0};F.selectors.filters.visible=function(T){return T.offsetWidth>0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};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);K.currentTarget=this;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})}}});F.sort(function(J,I){return o.data(J.elem,"closest")-o.data(I.elem,"closest")});o.each(F,function(){if(this.fn.call(this.elem,H,this.fn.data)===false){return(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&&l==l.top){(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=L.style.paddingLeft="1px";document.body.appendChild(L);o.boxModel=o.support.boxModel=L.offsetWidth===2;document.body.removeChild(L).style.display="none"})})();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|search/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();T.onload=T.onreadystatechange=null;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}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H<F;H++){this[H].style.display=o.data(this[H],"olddisplay")||""}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"))}}for(var G=0,F=this.length;G<F;G++){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)&&!n){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);n=g}},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(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})();;
// $Id: drupal.js,v 1.41.2.4 2009/07/21 08:59:10 goba Exp $

var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'themes': {}, 'locale': {} };

/**
 * Set the variable that indicates if JavaScript behaviors should be applied
 */
Drupal.jsEnabled = true;

/**
 * Attach all registered behaviors to a page element.
 *
 * Behaviors are event-triggered actions that attach to page elements, enhancing
 * default non-Javascript UIs. Behaviors are registered in the Drupal.behaviors
 * object as follows:
 * @code
 *    Drupal.behaviors.behaviorName = function () {
 *      ...
 *    };
 * @endcode
 *
 * Drupal.attachBehaviors is added below to the jQuery ready event and so
 * runs on initial page load. Developers implementing AHAH/AJAX in their
 * solutions should also call this function after new page content has been
 * loaded, feeding in an element to be processed, in order to attach all
 * behaviors to the new content.
 *
 * Behaviors should use a class in the form behaviorName-processed to ensure
 * the behavior is attached only once to a given element. (Doing so enables
 * the reprocessing of given elements, which may be needed on occasion despite
 * the ability to limit behavior attachment to a particular element.)
 *
 * @param context
 *   An element to attach behaviors to. If none is given, the document element
 *   is used.
 */
Drupal.attachBehaviors = function(context) {
  context = context || document;
  // Execute all of them.
  jQuery.each(Drupal.behaviors, function() {
    this(context);
  });
};

/**
 * Encode special characters in a plain-text string for display as HTML.
 */
Drupal.checkPlain = function(str) {
  str = String(str);
  var replace = { '&': '&amp;', '"': '&quot;', '<': '&lt;', '>': '&gt;' };
  for (var character in replace) {
    var regex = new RegExp(character, 'g');
    str = str.replace(regex, replace[character]);
  }
  return str;
};

/**
 * Translate strings to the page language or a given language.
 *
 * See the documentation of the server-side t() function for further details.
 *
 * @param str
 *   A string containing the English string to translate.
 * @param args
 *   An object of replacements pairs to make after translation. Incidences
 *   of any key in this array are replaced with the corresponding value.
 *   Based on the first character of the key, the value is escaped and/or themed:
 *    - !variable: inserted as is
 *    - @variable: escape plain text to HTML (Drupal.checkPlain)
 *    - %variable: escape text and theme as a placeholder for user-submitted
 *      content (checkPlain + Drupal.theme('placeholder'))
 * @return
 *   The translated string.
 */
Drupal.t = function(str, args) {
  // Fetch the localized version of the string.
  if (Drupal.locale.strings && Drupal.locale.strings[str]) {
    str = Drupal.locale.strings[str];
  }

  if (args) {
    // Transform arguments before inserting them
    for (var key in args) {
      switch (key.charAt(0)) {
        // Escaped only
        case '@':
          args[key] = Drupal.checkPlain(args[key]);
        break;
        // Pass-through
        case '!':
          break;
        // Escaped and placeholder
        case '%':
        default:
          args[key] = Drupal.theme('placeholder', args[key]);
          break;
      }
      str = str.replace(key, args[key]);
    }
  }
  return str;
};

/**
 * Format a string containing a count of items.
 *
 * This function ensures that the string is pluralized correctly. Since Drupal.t() is
 * called by this function, make sure not to pass already-localized strings to it.
 *
 * See the documentation of the server-side format_plural() function for further details.
 *
 * @param count
 *   The item count to display.
 * @param singular
 *   The string for the singular case. Please make sure it is clear this is
 *   singular, to ease translation (e.g. use "1 new comment" instead of "1 new").
 *   Do not use @count in the singular string.
 * @param plural
 *   The string for the plural case. Please make sure it is clear this is plural,
 *   to ease translation. Use @count in place of the item count, as in "@count
 *   new comments".
 * @param args
 *   An object of replacements pairs to make after translation. Incidences
 *   of any key in this array are replaced with the corresponding value.
 *   Based on the first character of the key, the value is escaped and/or themed:
 *    - !variable: inserted as is
 *    - @variable: escape plain text to HTML (Drupal.checkPlain)
 *    - %variable: escape text and theme as a placeholder for user-submitted
 *      content (checkPlain + Drupal.theme('placeholder'))
 *   Note that you do not need to include @count in this array.
 *   This replacement is done automatically for the plural case.
 * @return
 *   A translated string.
 */
Drupal.formatPlural = function(count, singular, plural, args) {
  var args = args || {};
  args['@count'] = count;
  // Determine the index of the plural form.
  var index = Drupal.locale.pluralFormula ? Drupal.locale.pluralFormula(args['@count']) : ((args['@count'] == 1) ? 0 : 1);

  if (index == 0) {
    return Drupal.t(singular, args);
  }
  else if (index == 1) {
    return Drupal.t(plural, args);
  }
  else {
    args['@count['+ index +']'] = args['@count'];
    delete args['@count'];
    return Drupal.t(plural.replace('@count', '@count['+ index +']'));
  }
};

/**
 * Generate the themed representation of a Drupal object.
 *
 * All requests for themed output must go through this function. It examines
 * the request and routes it to the appropriate theme function. If the current
 * theme does not provide an override function, the generic theme function is
 * called.
 *
 * For example, to retrieve the HTML that is output by theme_placeholder(text),
 * call Drupal.theme('placeholder', text).
 *
 * @param func
 *   The name of the theme function to call.
 * @param ...
 *   Additional arguments to pass along to the theme function.
 * @return
 *   Any data the theme function returns. This could be a plain HTML string,
 *   but also a complex object.
 */
Drupal.theme = function(func) {
  for (var i = 1, args = []; i < arguments.length; i++) {
    args.push(arguments[i]);
  }

  return (Drupal.theme[func] || Drupal.theme.prototype[func]).apply(this, args);
};

/**
 * Parse a JSON response.
 *
 * The result is either the JSON object, or an object with 'status' 0 and 'data' an error message.
 */
Drupal.parseJson = function (data) {
  if ((data.substring(0, 1) != '{') && (data.substring(0, 1) != '[')) {
    return { status: 0, data: data.length ? data : Drupal.t('Unspecified error') };
  }
  return eval('(' + data + ');');
};

/**
 * Freeze the current body height (as minimum height). Used to prevent
 * unnecessary upwards scrolling when doing DOM manipulations.
 */
Drupal.freezeHeight = function () {
  Drupal.unfreezeHeight();
  var div = document.createElement('div');
  $(div).css({
    position: 'absolute',
    top: '0px',
    left: '0px',
    width: '1px',
    height: $('body').css('height')
  }).attr('id', 'freeze-height');
  $('body').append(div);
};

/**
 * Unfreeze the body height
 */
Drupal.unfreezeHeight = function () {
  $('#freeze-height').remove();
};

/**
 * Wrapper around encodeURIComponent() which avoids Apache quirks (equivalent of
 * drupal_urlencode() in PHP). This function should only be used on paths, not
 * on query string arguments.
 */
Drupal.encodeURIComponent = function (item, uri) {
  uri = uri || location.href;
  item = encodeURIComponent(item).replace(/%2F/g, '/');
  return (uri.indexOf('?q=') != -1) ? item : item.replace(/%26/g, '%2526').replace(/%23/g, '%2523').replace(/\/\//g, '/%252F');
};

/**
 * Get the text selection in a textarea.
 */
Drupal.getSelection = function (element) {
  if (typeof(element.selectionStart) != 'number' && document.selection) {
    // The current selection
    var range1 = document.selection.createRange();
    var range2 = range1.duplicate();
    // Select all text.
    range2.moveToElementText(element);
    // Now move 'dummy' end point to end point of original range.
    range2.setEndPoint('EndToEnd', range1);
    // Now we can calculate start and end points.
    var start = range2.text.length - range1.text.length;
    var end = start + range1.text.length;
    return { 'start': start, 'end': end };
  }
  return { 'start': element.selectionStart, 'end': element.selectionEnd };
};

/**
 * Build an error message from ahah response.
 */
Drupal.ahahError = function(xmlhttp, uri) {
  if (xmlhttp.status == 200) {
    if (jQuery.trim(xmlhttp.responseText)) {
      var message = Drupal.t("An error occurred. \n@uri\n@text", {'@uri': uri, '@text': xmlhttp.responseText });
    }
    else {
      var message = Drupal.t("An error occurred. \n@uri\n(no information available).", {'@uri': uri });
    }
  }
  else {
    var message = Drupal.t("An HTTP error @status occurred. \n@uri", {'@uri': uri, '@status': xmlhttp.status });
  }
  return message.replace(/\n/g, '<br />');
}

// Global Killswitch on the <html> element
$(document.documentElement).addClass('js');
// Attach all behaviors.
$(document).ready(function() {
  Drupal.attachBehaviors(this);
});

/**
 * The default themes.
 */
Drupal.theme.prototype = {

  /**
   * Formats text for emphasized display in a placeholder inside a sentence.
   *
   * @param str
   *   The text to format (plain-text).
   * @return
   *   The formatted text (html).
   */
  placeholder: function(str) {
    return '<em>' + Drupal.checkPlain(str) + '</em>';
  }
};
;
// $Id: tabledrag.js,v 1.1.2.1.2.2 2009/03/21 20:06:59 mfer Exp $

/**
 * Drag and drop table rows with field manipulation.
 *
 * Using the drupal_add_tabledrag() function, any table with weights or parent
 * relationships may be made into draggable tables. Columns containing a field
 * may optionally be hidden, providing a better user experience.
 *
 * Created tableDrag instances may be modified with custom behaviors by
 * overriding the .onDrag, .onDrop, .row.onSwap, and .row.onIndent methods.
 * See blocks.js for an example of adding additional functionality to tableDrag.
 */
Drupal.behaviors.tableDrag = function(context) {
  for (var base in Drupal.settings.tableDrag) {
    if (!$('#' + base + '.tabledrag-processed', context).size()) {
      var tableSettings = Drupal.settings.tableDrag[base];

      $('#' + base).filter(':not(.tabledrag-processed)').each(function() {
        // Create the new tableDrag instance. Save in the Drupal variable
        // to allow other scripts access to the object.
        Drupal.tableDrag[base] = new Drupal.tableDrag(this, tableSettings);
      });

      $('#' + base).addClass('tabledrag-processed');
    }
  }
};

/**
 * Constructor for the tableDrag object. Provides table and field manipulation.
 *
 * @param table
 *   DOM object for the table to be made draggable.
 * @param tableSettings
 *   Settings for the table added via drupal_add_dragtable().
 */
Drupal.tableDrag = function(table, tableSettings) {
  var self = this;

  // Required object variables.
  this.table = table;
  this.tableSettings = tableSettings;
  this.dragObject = null; // Used to hold information about a current drag operation.
  this.rowObject = null; // Provides operations for row manipulation.
  this.oldRowElement = null; // Remember the previous element.
  this.oldY = 0; // Used to determine up or down direction from last mouse move.
  this.changed = false; // Whether anything in the entire table has changed.
  this.maxDepth = 0; // Maximum amount of allowed parenting.
  this.rtl = $(this.table).css('direction') == 'rtl' ? -1 : 1; // Direction of the table.

  // Configure the scroll settings.
  this.scrollSettings = { amount: 4, interval: 50, trigger: 70 };
  this.scrollInterval = null;
  this.scrollY = 0;
  this.windowHeight = 0;

  // Check this table's settings to see if there are parent relationships in
  // this table. For efficiency, large sections of code can be skipped if we
  // don't need to track horizontal movement and indentations.
  this.indentEnabled = false;
  for (group in tableSettings) {
    for (n in tableSettings[group]) {
      if (tableSettings[group][n]['relationship'] == 'parent') {
        this.indentEnabled = true;
      }
      if (tableSettings[group][n]['limit'] > 0) {
        this.maxDepth = tableSettings[group][n]['limit'];
      }
    }
  }
  if (this.indentEnabled) {
    this.indentCount = 1; // Total width of indents, set in makeDraggable.
    // Find the width of indentations to measure mouse movements against.
    // Because the table doesn't need to start with any indentations, we
    // manually append 2 indentations in the first draggable row, measure
    // the offset, then remove.
    var indent = Drupal.theme('tableDragIndentation');
    var testCell = $('tr.draggable:first td:first', table).prepend(indent).prepend(indent);
    this.indentAmount = $('.indentation', testCell).get(1).offsetLeft - $('.indentation', testCell).get(0).offsetLeft;
    $('.indentation', testCell).slice(0, 2).remove();
  }

  // Make each applicable row draggable.
  $('tr.draggable', table).each(function() { self.makeDraggable(this); });

  // Hide columns containing affected form elements.
  this.hideColumns();

  // Add mouse bindings to the document. The self variable is passed along
  // as event handlers do not have direct access to the tableDrag object.
  $(document).bind('mousemove', function(event) { return self.dragRow(event, self); });
  $(document).bind('mouseup', function(event) { return self.dropRow(event, self); });
};

/**
 * Hide the columns containing form elements according to the settings for
 * this tableDrag instance.
 */
Drupal.tableDrag.prototype.hideColumns = function(){
  for (var group in this.tableSettings) {
    // Find the first field in this group.
    for (var d in this.tableSettings[group]) {
      var field = $('.' + this.tableSettings[group][d]['target'] + ':first', this.table);
      if (field.size() && this.tableSettings[group][d]['hidden']) {
        var hidden = this.tableSettings[group][d]['hidden'];
        var cell = field.parents('td:first');
        break;
      }
    }

    // Hide the column containing this field.
    if (hidden && cell[0] && cell.css('display') != 'none') {
      // Add 1 to our indexes. The nth-child selector is 1 based, not 0 based.
      var columnIndex = $('td', cell.parent()).index(cell.get(0)) + 1;
      var headerIndex = $('td:not(:hidden)', cell.parent()).index(cell.get(0)) + 1;
      $('tr', this.table).each(function(){
        var row = $(this);
        var parentTag = row.parent().get(0).tagName.toLowerCase();
        var index = (parentTag == 'thead') ? headerIndex : columnIndex;

        // Adjust the index to take into account colspans.
        row.children().each(function(n) {
          if (n < index) {
            index -= (this.colSpan && this.colSpan > 1) ? this.colSpan - 1 : 0;
          }
        });
        if (index > 0) {
          cell = row.children(':nth-child(' + index + ')');
          if (cell[0].colSpan > 1) {
            // If this cell has a colspan, simply reduce it.
            cell[0].colSpan = cell[0].colSpan - 1;
          }
          else {
            // Hide table body cells, but remove table header cells entirely
            // (Safari doesn't hide properly).
            parentTag == 'thead' ? cell.remove() : cell.css('display', 'none');
          }
        }
      });
    }
  }
};

/**
 * Find the target used within a particular row and group.
 */
Drupal.tableDrag.prototype.rowSettings = function(group, row) {
  var field = $('.' + group, row);
  for (delta in this.tableSettings[group]) {
    var targetClass = this.tableSettings[group][delta]['target'];
    if (field.is('.' + targetClass)) {
      // Return a copy of the row settings.
      var rowSettings = new Object();
      for (var n in this.tableSettings[group][delta]) {
        rowSettings[n] = this.tableSettings[group][delta][n];
      }
      return rowSettings;
    }
  }
};

/**
 * Take an item and add event handlers to make it become draggable.
 */
Drupal.tableDrag.prototype.makeDraggable = function(item) {
  var self = this;

  // Create the handle.
  var handle = $('<a href="#" class="tabledrag-handle"><div class="handle">&nbsp;</div></a>').attr('title', Drupal.t('Drag to re-order'));
  // Insert the handle after indentations (if any).
  if ($('td:first .indentation:last', item).after(handle).size()) {
    // Update the total width of indentation in this entire table.
    self.indentCount = Math.max($('.indentation', item).size(), self.indentCount);
  }
  else {
    $('td:first', item).prepend(handle);
  }

  // Add hover action for the handle.
  handle.hover(function() {
    self.dragObject == null ? $(this).addClass('tabledrag-handle-hover') : null;
  }, function() {
    self.dragObject == null ? $(this).removeClass('tabledrag-handle-hover') : null;
  });

  // Add the mousedown action for the handle.
  handle.mousedown(function(event) {
    // Create a new dragObject recording the event information.
    self.dragObject = new Object();
    self.dragObject.initMouseOffset = self.getMouseOffset(item, event);
    self.dragObject.initMouseCoords = self.mouseCoords(event);
    if (self.indentEnabled) {
      self.dragObject.indentMousePos = self.dragObject.initMouseCoords;
    }

    // If there's a lingering row object from the keyboard, remove its focus.
    if (self.rowObject) {
      $('a.tabledrag-handle', self.rowObject.element).blur();
    }

    // Create a new rowObject for manipulation of this row.
    self.rowObject = new self.row(item, 'mouse', self.indentEnabled, self.maxDepth, true);

    // Save the position of the table.
    self.table.topY = $(self.table).offset().top;
    self.table.bottomY = self.table.topY + self.table.offsetHeight;

    // Add classes to the handle and row.
    $(this).addClass('tabledrag-handle-hover');
    $(item).addClass('drag');

    // Set the document to use the move cursor during drag.
    $('body').addClass('drag');
    if (self.oldRowElement) {
      $(self.oldRowElement).removeClass('drag-previous');
    }

    // Hack for IE6 that flickers uncontrollably if select lists are moved.
    if (navigator.userAgent.indexOf('MSIE 6.') != -1) {
      $('select', this.table).css('display', 'none');
    }

    // Hack for Konqueror, prevent the blur handler from firing.
    // Konqueror always gives links focus, even after returning false on mousedown.
    self.safeBlur = false;

    // Call optional placeholder function.
    self.onDrag();
    return false;
  });

  // Prevent the anchor tag from jumping us to the top of the page.
  handle.click(function() {
    return false;
  });

  // Similar to the hover event, add a class when the handle is focused.
  handle.focus(function() {
    $(this).addClass('tabledrag-handle-hover');
    self.safeBlur = true;
  });

  // Remove the handle class on blur and fire the same function as a mouseup.
  handle.blur(function(event) {
    $(this).removeClass('tabledrag-handle-hover');
    if (self.rowObject && self.safeBlur) {
      self.dropRow(event, self);
    }
  });

  // Add arrow-key support to the handle.
  handle.keydown(function(event) {
    // If a rowObject doesn't yet exist and this isn't the tab key.
    if (event.keyCode != 9 && !self.rowObject) {
      self.rowObject = new self.row(item, 'keyboard', self.indentEnabled, self.maxDepth, true);
    }

    var keyChange = false;
    switch (event.keyCode) {
      case 37: // Left arrow.
      case 63234: // Safari left arrow.
        keyChange = true;
        self.rowObject.indent(-1 * self.rtl);
        break;
      case 38: // Up arrow.
      case 63232: // Safari up arrow.
        var previousRow = $(self.rowObject.element).prev('tr').get(0);
        while (previousRow && $(previousRow).is(':hidden')) {
          previousRow = $(previousRow).prev('tr').get(0);
        }
        if (previousRow) {
          self.safeBlur = false; // Do not allow the onBlur cleanup.
          self.rowObject.direction = 'up';
          keyChange = true;

          if ($(item).is('.tabledrag-root')) {
            // Swap with the previous top-level row..
            var groupHeight = 0;
            while (previousRow && $('.indentation', previousRow).size()) {
              previousRow = $(previousRow).prev('tr').get(0);
              groupHeight += $(previousRow).is(':hidden') ? 0 : previousRow.offsetHeight;
            }
            if (previousRow) {
              self.rowObject.swap('before', previousRow);
              // No need to check for indentation, 0 is the only valid one.
              window.scrollBy(0, -groupHeight);
            }
          }
          else if (self.table.tBodies[0].rows[0] != previousRow || $(previousRow).is('.draggable')) {
            // Swap with the previous row (unless previous row is the first one
            // and undraggable).
            self.rowObject.swap('before', previousRow);
            self.rowObject.interval = null;
            self.rowObject.indent(0);
            window.scrollBy(0, -parseInt(item.offsetHeight));
          }
          handle.get(0).focus(); // Regain focus after the DOM manipulation.
        }
        break;
      case 39: // Right arrow.
      case 63235: // Safari right arrow.
        keyChange = true;
        self.rowObject.indent(1 * self.rtl);
        break;
      case 40: // Down arrow.
      case 63233: // Safari down arrow.
        var nextRow = $(self.rowObject.group).filter(':last').next('tr').get(0);
        while (nextRow && $(nextRow).is(':hidden')) {
          nextRow = $(nextRow).next('tr').get(0);
        }
        if (nextRow) {
          self.safeBlur = false; // Do not allow the onBlur cleanup.
          self.rowObject.direction = 'down';
          keyChange = true;

          if ($(item).is('.tabledrag-root')) {
            // Swap with the next group (necessarily a top-level one).
            var groupHeight = 0;
            nextGroup = new self.row(nextRow, 'keyboard', self.indentEnabled, self.maxDepth, false);
            if (nextGroup) {
              $(nextGroup.group).each(function () {groupHeight += $(this).is(':hidden') ? 0 : this.offsetHeight});
              nextGroupRow = $(nextGroup.group).filter(':last').get(0);
              self.rowObject.swap('after', nextGroupRow);
              // No need to check for indentation, 0 is the only valid one.
              window.scrollBy(0, parseInt(groupHeight));
            }
          }
          else {
            // Swap with the next row.
            self.rowObject.swap('after', nextRow);
            self.rowObject.interval = null;
            self.rowObject.indent(0);
            window.scrollBy(0, parseInt(item.offsetHeight));
          }
          handle.get(0).focus(); // Regain focus after the DOM manipulation.
        }
        break;
    }

    if (self.rowObject && self.rowObject.changed == true) {
      $(item).addClass('drag');
      if (self.oldRowElement) {
        $(self.oldRowElement).removeClass('drag-previous');
      }
      self.oldRowElement = item;
      self.restripeTable();
      self.onDrag();
    }

    // Returning false if we have an arrow key to prevent scrolling.
    if (keyChange) {
      return false;
    }
  });

  // Compatibility addition, return false on keypress to prevent unwanted scrolling.
  // IE and Safari will supress scrolling on keydown, but all other browsers
  // need to return false on keypress. http://www.quirksmode.org/js/keys.html
  handle.keypress(function(event) {
    switch (event.keyCode) {
      case 37: // Left arrow.
      case 38: // Up arrow.
      case 39: // Right arrow.
      case 40: // Down arrow.
        return false;
    }
  });
};

/**
 * Mousemove event handler, bound to document.
 */
Drupal.tableDrag.prototype.dragRow = function(event, self) {
  if (self.dragObject) {
    self.currentMouseCoords = self.mouseCoords(event);

    var y = self.currentMouseCoords.y - self.dragObject.initMouseOffset.y;
    var x = self.currentMouseCoords.x - self.dragObject.initMouseOffset.x;

    // Check for row swapping and vertical scrolling.
    if (y != self.oldY) {
      self.rowObject.direction = y > self.oldY ? 'down' : 'up';
      self.oldY = y; // Update the old value.

      // Check if the window should be scrolled (and how fast).
      var scrollAmount = self.checkScroll(self.currentMouseCoords.y);
      // Stop any current scrolling.
      clearInterval(self.scrollInterval);
      // Continue scrolling if the mouse has moved in the scroll direction.
      if (scrollAmount > 0 && self.rowObject.direction == 'down' || scrollAmount < 0 && self.rowObject.direction == 'up') {
        self.setScroll(scrollAmount);
      }

      // If we have a valid target, perform the swap and restripe the table.
      var currentRow = self.findDropTargetRow(x, y);
      if (currentRow) {
        if (self.rowObject.direction == 'down') {
          self.rowObject.swap('after', currentRow, self);
        }
        else {
          self.rowObject.swap('before', currentRow, self);
        }
        self.restripeTable();
      }
    }

    // Similar to row swapping, handle indentations.
    if (self.indentEnabled) {
      var xDiff = self.currentMouseCoords.x - self.dragObject.indentMousePos.x;
      // Set the number of indentations the mouse has been moved left or right.
      var indentDiff = Math.round(xDiff / self.indentAmount * self.rtl);
      // Indent the row with our estimated diff, which may be further
      // restricted according to the rows around this row.
      var indentChange = self.rowObject.indent(indentDiff);
      // Update table and mouse indentations.
      self.dragObject.indentMousePos.x += self.indentAmount * indentChange * self.rtl;
      self.indentCount = Math.max(self.indentCount, self.rowObject.indents);
    }

    return false;
  }
};

/**
 * Mouseup event handler, bound to document.
 * Blur event handler, bound to drag handle for keyboard support.
 */
Drupal.tableDrag.prototype.dropRow = function(event, self) {
  // Drop row functionality shared between mouseup and blur events.
  if (self.rowObject != null) {
    var droppedRow = self.rowObject.element;
    // The row is already in the right place so we just release it.
    if (self.rowObject.changed == true) {
      // Update the fields in the dropped row.
      self.updateFields(droppedRow);

      // If a setting exists for affecting the entire group, update all the
      // fields in the entire dragged group.
      for (var group in self.tableSettings) {
        var rowSettings = self.rowSettings(group, droppedRow);
        if (rowSettings.relationship == 'group') {
          for (n in self.rowObject.children) {
            self.updateField(self.rowObject.children[n], group);
          }
        }
      }

      self.rowObject.markChanged();
      if (self.changed == false) {
        $(Drupal.theme('tableDragChangedWarning')).insertAfter(self.table).hide().fadeIn('slow');
        self.changed = true;
      }
    }

    if (self.indentEnabled) {
      self.rowObject.removeIndentClasses();
    }
    if (self.oldRowElement) {
      $(self.oldRowElement).removeClass('drag-previous');
    }
    $(droppedRow).removeClass('drag').addClass('drag-previous');
    self.oldRowElement = droppedRow;
    self.onDrop();
    self.rowObject = null;
  }

  // Functionality specific only to mouseup event.
  if (self.dragObject != null) {
    $('.tabledrag-handle', droppedRow).removeClass('tabledrag-handle-hover');

    self.dragObject = null;
    $('body').removeClass('drag');
    clearInterval(self.scrollInterval);

    // Hack for IE6 that flickers uncontrollably if select lists are moved.
    if (navigator.userAgent.indexOf('MSIE 6.') != -1) {
      $('select', this.table).css('display', 'block');
    }
  }
};

/**
 * Get the mouse coordinates from the event (allowing for browser differences).
 */
Drupal.tableDrag.prototype.mouseCoords = function(event){
  if (event.pageX || event.pageY) {
    return {x:event.pageX, y:event.pageY};
  }
  return {
    x:event.clientX + document.body.scrollLeft - document.body.clientLeft,
    y:event.clientY + document.body.scrollTop  - document.body.clientTop
  };
};

/**
 * Given a target element and a mouse event, get the mouse offset from that
 * element. To do this we need the element's position and the mouse position.
 */
Drupal.tableDrag.prototype.getMouseOffset = function(target, event) {
  var docPos   = $(target).offset();
  var mousePos = this.mouseCoords(event);
  return { x: mousePos.x - docPos.left, y: mousePos.y - docPos.top };
};

/**
 * Find the row the mouse is currently over. This row is then taken and swapped
 * with the one being dragged.
 *
 * @param x
 *   The x coordinate of the mouse on the page (not the screen).
 * @param y
 *   The y coordinate of the mouse on the page (not the screen).
 */
Drupal.tableDrag.prototype.findDropTargetRow = function(x, y) {
  var rows = this.table.tBodies[0].rows;
  for (var n=0; n<rows.length; n++) {
    var row = rows[n];
    var indentDiff = 0;
    var rowY = $(row).offset().top;
    // Because Safari does not report offsetHeight on table rows, but does on table
    // cells, grab the firstChild of the row and use that instead.
    // http://jacob.peargrove.com/blog/2006/technical/table-row-offsettop-bug-in-safari
    if (row.offsetHeight == 0) {
      var rowHeight = parseInt(row.firstChild.offsetHeight)/2;
    }
    // Other browsers.
    else {
      var rowHeight = parseInt(row.offsetHeight)/2;
    }

    // Because we always insert before, we need to offset the height a bit.
    if ((y > (rowY - rowHeight)) && (y < (rowY + rowHeight))) {
      if (this.indentEnabled) {
        // Check that this row is not a child of the row being dragged.
        for (n in this.rowObject.group) {
          if (this.rowObject.group[n] == row) {
            return null;
          }
        }
      }
      else {
        // Do not allow a row to be swapped with itself.
        if (row == this.rowObject.element) {
          return null;
        }
      }

      // Check that swapping with this row is allowed.
      if (!this.rowObject.isValidSwap(row)) {
        return null;
      }

      // We may have found the row the mouse just passed over, but it doesn't
      // take into account hidden rows. Skip backwards until we find a draggable
      // row.
      while ($(row).is(':hidden') && $(row).prev('tr').is(':hidden')) {
        row = $(row).prev('tr').get(0);
      }
      return row;
    }
  }
  return null;
};

/**
 * After the row is dropped, update the table fields according to the settings
 * set for this table.
 *
 * @param changedRow
 *   DOM object for the row that was just dropped.
 */
Drupal.tableDrag.prototype.updateFields = function(changedRow) {
  for (var group in this.tableSettings) {
    // Each group may have a different setting for relationship, so we find
    // the source rows for each seperately.
    this.updateField(changedRow, group);
  }
};

/**
 * After the row is dropped, update a single table field according to specific
 * settings.
 *
 * @param changedRow
 *   DOM object for the row that was just dropped.
 * @param group
 *   The settings group on which field updates will occur.
 */
Drupal.tableDrag.prototype.updateField = function(changedRow, group) {
  var rowSettings = this.rowSettings(group, changedRow);

  // Set the row as it's own target.
  if (rowSettings.relationship == 'self' || rowSettings.relationship == 'group') {
    var sourceRow = changedRow;
  }
  // Siblings are easy, check previous and next rows.
  else if (rowSettings.relationship == 'sibling') {
    var previousRow = $(changedRow).prev('tr').get(0);
    var nextRow = $(changedRow).next('tr').get(0);
    var sourceRow = changedRow;
    if ($(previousRow).is('.draggable') && $('.' + group, previousRow).length) {
      if (this.indentEnabled) {
        if ($('.indentations', previousRow).size() == $('.indentations', changedRow)) {
          sourceRow = previousRow;
        }
      }
      else {
        sourceRow = previousRow;
      }
    }
    else if ($(nextRow).is('.draggable') && $('.' + group, nextRow).length) {
      if (this.indentEnabled) {
        if ($('.indentations', nextRow).size() == $('.indentations', changedRow)) {
          sourceRow = nextRow;
        }
      }
      else {
        sourceRow = nextRow;
      }
    }
  }
  // Parents, look up the tree until we find a field not in this group.
  // Go up as many parents as indentations in the changed row.
  else if (rowSettings.relationship == 'parent') {
    var previousRow = $(changedRow).prev('tr');
    while (previousRow.length && $('.indentation', previousRow).length >= this.rowObject.indents) {
      previousRow = previousRow.prev('tr');
    }
    // If we found a row.
    if (previousRow.length) {
      sourceRow = previousRow[0];
    }
    // Otherwise we went all the way to the left of the table without finding
    // a parent, meaning this item has been placed at the root level.
    else {
      // Use the first row in the table as source, because it's garanteed to
      // be at the root level. Find the first item, then compare this row
      // against it as a sibling.
      sourceRow = $('tr.draggable:first').get(0);
      if (sourceRow == this.rowObject.element) {
        sourceRow = $(this.rowObject.group[this.rowObject.group.length - 1]).next('tr.draggable').get(0);
      }
      var useSibling = true;
    }
  }

  // Because we may have moved the row from one category to another,
  // take a look at our sibling and borrow its sources and targets.
  this.copyDragClasses(sourceRow, changedRow, group);
  rowSettings = this.rowSettings(group, changedRow);

  // In the case that we're looking for a parent, but the row is at the top
  // of the tree, copy our sibling's values.
  if (useSibling) {
    rowSettings.relationship = 'sibling';
    rowSettings.source = rowSettings.target;
  }

  var targetClass = '.' + rowSettings.target;
  var targetElement = $(targetClass, changedRow).get(0);

  // Check if a target element exists in this row.
  if (targetElement) {
    var sourceClass = '.' + rowSettings.source;
    var sourceElement = $(sourceClass, sourceRow).get(0);
    switch (rowSettings.action) {
      case 'depth':
        // Get the depth of the target row.
        targetElement.value = $('.indentation', $(sourceElement).parents('tr:first')).size();
        break;
      case 'match':
        // Update the value.
        targetElement.value = sourceElement.value;
        break;
      case 'order':
        var siblings = this.rowObject.findSiblings(rowSettings);
        if ($(targetElement).is('select')) {
          // Get a list of acceptable values.
          var values = new Array();
          $('option', targetElement).each(function() {
            values.push(this.value);
          });
          var maxVal = values[values.length - 1];
          // Populate the values in the siblings.
          $(targetClass, siblings).each(function() {
            // If there are more items than possible values, assign the maximum value to the row. 
            if (values.length > 0) {
              this.value = values.shift();
            }
            else {
              this.value = maxVal;
            }
          });
        }
        else {
          // Assume a numeric input field.
          var weight = parseInt($(targetClass, siblings[0]).val()) || 0;
          $(targetClass, siblings).each(function() {
            this.value = weight;
            weight++;
          });
        }
        break;
    }
  }
};

/**
 * Copy all special tableDrag classes from one row's form elements to a
 * different one, removing any special classes that the destination row
 * may have had.
 */
Drupal.tableDrag.prototype.copyDragClasses = function(sourceRow, targetRow, group) {
  var sourceElement = $('.' + group, sourceRow);
  var targetElement = $('.' + group, targetRow);
  if (sourceElement.length && targetElement.length) {
    targetElement[0].className = sourceElement[0].className;
  }
};

Drupal.tableDrag.prototype.checkScroll = function(cursorY) {
  var de  = document.documentElement;
  var b  = document.body;

  var windowHeight = this.windowHeight = window.innerHeight || (de.clientHeight && de.clientWidth != 0 ? de.clientHeight : b.offsetHeight);
  var scrollY = this.scrollY = (document.all ? (!de.scrollTop ? b.scrollTop : de.scrollTop) : (window.pageYOffset ? window.pageYOffset : window.scrollY));
  var trigger = this.scrollSettings.trigger;
  var delta = 0;

  // Return a scroll speed relative to the edge of the screen.
  if (cursorY - scrollY > windowHeight - trigger) {
    delta = trigger / (windowHeight + scrollY - cursorY);
    delta = (delta > 0 && delta < trigger) ? delta : trigger;
    return delta * this.scrollSettings.amount;
  }
  else if (cursorY - scrollY < trigger) {
    delta = trigger / (cursorY - scrollY);
    delta = (delta > 0 && delta < trigger) ? delta : trigger;
    return -delta * this.scrollSettings.amount;
  }
};

Drupal.tableDrag.prototype.setScroll = function(scrollAmount) {
  var self = this;

  this.scrollInterval = setInterval(function() {
    // Update the scroll values stored in the object.
    self.checkScroll(self.currentMouseCoords.y);
    var aboveTable = self.scrollY > self.table.topY;
    var belowTable = self.scrollY + self.windowHeight < self.table.bottomY;
    if (scrollAmount > 0 && belowTable || scrollAmount < 0 && aboveTable) {
      window.scrollBy(0, scrollAmount);
    }
  }, this.scrollSettings.interval);
};

Drupal.tableDrag.prototype.restripeTable = function() {
  // :even and :odd are reversed because jquery counts from 0 and
  // we count from 1, so we're out of sync.
  $('tr.draggable', this.table)
    .filter(':odd').filter('.odd')
      .removeClass('odd').addClass('even')
    .end().end()
    .filter(':even').filter('.even')
      .removeClass('even').addClass('odd');
};

/**
 * Stub function. Allows a custom handler when a row begins dragging.
 */
Drupal.tableDrag.prototype.onDrag = function() {
  return null;
};

/**
 * Stub function. Allows a custom handler when a row is dropped.
 */
Drupal.tableDrag.prototype.onDrop = function() {
  return null;
};

/**
 * Constructor to make a new object to manipulate a table row.
 *
 * @param tableRow
 *   The DOM element for the table row we will be manipulating.
 * @param method
 *   The method in which this row is being moved. Either 'keyboard' or 'mouse'.
 * @param indentEnabled
 *   Whether the containing table uses indentations. Used for optimizations.
 * @param maxDepth
 *   The maximum amount of indentations this row may contain.
 * @param addClasses
 *   Whether we want to add classes to this row to indicate child relationships.
 */
Drupal.tableDrag.prototype.row = function(tableRow, method, indentEnabled, maxDepth, addClasses) {
  this.element = tableRow;
  this.method = method;
  this.group = new Array(tableRow);
  this.groupDepth = $('.indentation', tableRow).size();
  this.changed = false;
  this.table = $(tableRow).parents('table:first').get(0);
  this.indentEnabled = indentEnabled;
  this.maxDepth = maxDepth;
  this.direction = ''; // Direction the row is being moved.

  if (this.indentEnabled) {
    this.indents = $('.indentation', tableRow).size();
    this.children = this.findChildren(addClasses);
    this.group = $.merge(this.group, this.children);
    // Find the depth of this entire group.
    for (var n = 0; n < this.group.length; n++) {
      this.groupDepth = Math.max($('.indentation', this.group[n]).size(), this.groupDepth);
    }
  }
};

/**
 * Find all children of rowObject by indentation.
 *
 * @param addClasses
 *   Whether we want to add classes to this row to indicate child relationships.
 */
Drupal.tableDrag.prototype.row.prototype.findChildren = function(addClasses) {
  var parentIndentation = this.indents;
  var currentRow = $(this.element, this.table).next('tr.draggable');
  var rows = new Array();
  var child = 0;
  while (currentRow.length) {
    var rowIndentation = $('.indentation', currentRow).length;
    // A greater indentation indicates this is a child.
    if (rowIndentation > parentIndentation) {
      child++;
      rows.push(currentRow[0]);
      if (addClasses) {
        $('.indentation', currentRow).each(function(indentNum) {
          if (child == 1 && (indentNum == parentIndentation)) {
            $(this).addClass('tree-child-first');
          }
          if (indentNum == parentIndentation) {
            $(this).addClass('tree-child');
          }
          else if (indentNum > parentIndentation) {
            $(this).addClass('tree-child-horizontal');
          }
        });
      }
    }
    else {
      break;
    }
    currentRow = currentRow.next('tr.draggable');
  }
  if (addClasses && rows.length) {
    $('.indentation:nth-child(' + (parentIndentation + 1) + ')', rows[rows.length - 1]).addClass('tree-child-last');
  }
  return rows;
};

/**
 * Ensure that two rows are allowed to be swapped.
 *
 * @param row
 *   DOM object for the row being considered for swapping.
 */
Drupal.tableDrag.prototype.row.prototype.isValidSwap = function(row) {
  if (this.indentEnabled) {
    var prevRow, nextRow;
    if (this.direction == 'down') {
      prevRow = row;
      nextRow = $(row).next('tr').get(0);
    }
    else {
      prevRow = $(row).prev('tr').get(0);
      nextRow = row;
    }
    this.interval = this.validIndentInterval(prevRow, nextRow);

    // We have an invalid swap if the valid indentations interval is empty.
    if (this.interval.min > this.interval.max) {
      return false;
    }
  }

  // Do not let an un-draggable first row have anything put before it.
  if (this.table.tBodies[0].rows[0] == row && $(row).is(':not(.draggable)')) {
    return false;
  }

  return true;
};

/**
 * Perform the swap between two rows.
 *
 * @param position
 *   Whether the swap will occur 'before' or 'after' the given row.
 * @param row
 *   DOM element what will be swapped with the row group.
 */
Drupal.tableDrag.prototype.row.prototype.swap = function(position, row) {
  $(row)[position](this.group);
  this.changed = true;
  this.onSwap(row);
};

/**
 * Determine the valid indentations interval for the row at a given position
 * in the table.
 *
 * @param prevRow
 *   DOM object for the row before the tested position
 *   (or null for first position in the table).
 * @param nextRow
 *   DOM object for the row after the tested position
 *   (or null for last position in the table).
 */
Drupal.tableDrag.prototype.row.prototype.validIndentInterval = function (prevRow, nextRow) {
  var minIndent, maxIndent;

  // Minimum indentation:
  // Do not orphan the next row.
  minIndent = nextRow ? $('.indentation', nextRow).size() : 0;

  // Maximum indentation:
  if (!prevRow || $(this.element).is('.tabledrag-root')) {
    // Do not indent the first row in the table or 'root' rows..
    maxIndent = 0;
  }
  else {
    // Do not go deeper than as a child of the previous row.
    maxIndent = $('.indentation', prevRow).size() + ($(prevRow).is('.tabledrag-leaf') ? 0 : 1);
    // Limit by the maximum allowed depth for the table.
    if (this.maxDepth) {
      maxIndent = Math.min(maxIndent, this.maxDepth - (this.groupDepth - this.indents));
    }
  }

  return {'min':minIndent, 'max':maxIndent};
}

/**
 * Indent a row within the legal bounds of the table.
 *
 * @param indentDiff
 *   The number of additional indentations proposed for the row (can be
 *   positive or negative). This number will be adjusted to nearest valid
 *   indentation level for the row.
 */
Drupal.tableDrag.prototype.row.prototype.indent = function(indentDiff) {
  // Determine the valid indentations interval if not available yet.
  if (!this.interval) {
    prevRow = $(this.element).prev('tr').get(0);
    nextRow = $(this.group).filter(':last').next('tr').get(0);
    this.interval = this.validIndentInterval(prevRow, nextRow);
  }

  // Adjust to the nearest valid indentation.
  var indent = this.indents + indentDiff;
  indent = Math.max(indent, this.interval.min);
  indent = Math.min(indent, this.interval.max);
  indentDiff = indent - this.indents;

  for (var n = 1; n <= Math.abs(indentDiff); n++) {
    // Add or remove indentations.
    if (indentDiff < 0) {
      $('.indentation:first', this.group).remove();
      this.indents--;
    }
    else {
      $('td:first', this.group).prepend(Drupal.theme('tableDragIndentation'));
      this.indents++;
    }
  }
  if (indentDiff) {
    // Update indentation for this row.
    this.changed = true;
    this.groupDepth += indentDiff;
    this.onIndent();
  }

  return indentDiff;
};

/**
 * Find all siblings for a row, either according to its subgroup or indentation.
 * Note that the passed in row is included in the list of siblings.
 *
 * @param settings
 *   The field settings we're using to identify what constitutes a sibling.
 */
Drupal.tableDrag.prototype.row.prototype.findSiblings = function(rowSettings) {
  var siblings = new Array();
  var directions = new Array('prev', 'next');
  var rowIndentation = this.indents;
  for (var d in directions) {
    var checkRow = $(this.element)[directions[d]]();
    while (checkRow.length) {
      // Check that the sibling contains a similar target field.
      if ($('.' + rowSettings.target, checkRow)) {
        // Either add immediately if this is a flat table, or check to ensure
        // that this row has the same level of indentaiton.
        if (this.indentEnabled) {
          var checkRowIndentation = $('.indentation', checkRow).length
        }

        if (!(this.indentEnabled) || (checkRowIndentation == rowIndentation)) {
          siblings.push(checkRow[0]);
        }
        else if (checkRowIndentation < rowIndentation) {
          // No need to keep looking for siblings when we get to a parent.
          break;
        }
      }
      else {
        break;
      }
      checkRow = $(checkRow)[directions[d]]();
    }
    // Since siblings are added in reverse order for previous, reverse the
    // completed list of previous siblings. Add the current row and continue.
    if (directions[d] == 'prev') {
      siblings.reverse();
      siblings.push(this.element);
    }
  }
  return siblings;
};

/**
 * Remove indentation helper classes from the current row group.
 */
Drupal.tableDrag.prototype.row.prototype.removeIndentClasses = function() {
  for (n in this.children) {
    $('.indentation', this.children[n])
      .removeClass('tree-child')
      .removeClass('tree-child-first')
      .removeClass('tree-child-last')
      .removeClass('tree-child-horizontal');
  }
};

/**
 * Add an asterisk or other marker to the changed row.
 */
Drupal.tableDrag.prototype.row.prototype.markChanged = function() {
  var marker = Drupal.theme('tableDragChangedMarker');
  var cell = $('td:first', this.element);
  if ($('span.tabledrag-changed', cell).length == 0) {
    cell.append(marker);
  }
};

/**
 * Stub function. Allows a custom handler when a row is indented.
 */
Drupal.tableDrag.prototype.row.prototype.onIndent = function() {
  return null;
};

/**
 * Stub function. Allows a custom handler when a row is swapped.
 */
Drupal.tableDrag.prototype.row.prototype.onSwap = function(swappedRow) {
  return null;
};

Drupal.theme.prototype.tableDragChangedMarker = function () {
  return '<span class="warning tabledrag-changed">*</span>';
};

Drupal.theme.prototype.tableDragIndentation = function () {
  return '<div class="indentation">&nbsp;</div>';
};

Drupal.theme.prototype.tableDragChangedWarning = function () {
  return '<div class="warning">' + Drupal.theme('tableDragChangedMarker') + ' ' + Drupal.t("Changes made in this table will not be saved until the form is submitted.") + '</div>';
};
;
// $Id: googleanalytics.js,v 1.9.2.4 2010/09/19 11:39:20 hass Exp $

$(document).ready(function() {

  // Attach onclick event to document only and catch clicks on all elements.
  $(document.body).click(function(event) {
    // Catch only the first parent link of a clicked element.
    $(event.target).parents("a:first,area:first").andSelf().filter("a,area").each(function() {

      var ga = Drupal.settings.googleanalytics;
      // Expression to check for absolute internal links.
      var isInternal = new RegExp("^(https?):\/\/" + window.location.host, "i");
      // Expression to check for special links like gotwo.module /go/* links.
      var isInternalSpecial = new RegExp("(\/go\/.*)$", "i");
      // Expression to check for download links.
      var isDownload = new RegExp("\\.(" + ga.trackDownloadExtensions + ")$", "i");

      // Is the clicked URL internal?
      if (isInternal.test(this.href)) {
        // Is download tracking activated and the file extension configured for download tracking?
        if (ga.trackDownload && isDownload.test(this.href)) {
          // Download link clicked.
          var extension = isDownload.exec(this.href);
          _gaq.push(["_trackEvent", "Downloads", extension[1].toUpperCase(), this.href.replace(isInternal, '')]);
        }
        else if (isInternalSpecial.test(this.href)) {
          // Keep the internal URL for Google Analytics website overlay intact.
          _gaq.push(["_trackPageview", this.href.replace(isInternal, '')]);
        }
      }
      else {
        if (ga.trackMailto && $(this).is("a[href^=mailto:],area[href^=mailto:]")) {
          // Mailto link clicked.
          _gaq.push(["_trackEvent", "Mails", "Click", this.href.substring(7)]);
        }
        else if (ga.trackOutgoing && this.href) {
          // External link clicked.
          _gaq.push(["_trackEvent", "Outgoing links", "Click", this.href]);
        }
      }

    });
  });
});
;
/* $Id: lightbox.js,v 1.5.2.6.2.136 2010/09/24 08:39:40 snpower Exp $ */

/**
 * jQuery Lightbox
 * @author
 *   Stella Power, <http://drupal.org/user/66894>
 *
 * Based on Lightbox v2.03.3 by Lokesh Dhakar
 * <http://www.huddletogether.com/projects/lightbox2/>
 * Also partially based on the jQuery Lightbox by Warren Krewenki
 *   <http://warren.mesozen.com>
 *
 * Permission has been granted to Mark Ashmead & other Drupal Lightbox2 module
 * maintainers to distribute this file via Drupal.org
 * Under GPL license.
 *
 * Slideshow, iframe and video functionality added by Stella Power.
 */

var Lightbox = {
  auto_modal : false,
  overlayOpacity : 0.8, // Controls transparency of shadow overlay.
  overlayColor : '000', // Controls colour of shadow overlay.
  disableCloseClick : true,
  // Controls the order of the lightbox resizing animation sequence.
  resizeSequence: 0, // 0: simultaneous, 1: width then height, 2: height then width.
  resizeSpeed: 'normal', // Controls the speed of the lightbox resizing animation.
  fadeInSpeed: 'normal', // Controls the speed of the image appearance.
  slideDownSpeed: 'slow', // Controls the speed of the image details appearance.
  minWidth: 240,
  borderSize : 10,
  boxColor : 'fff',
  fontColor : '000',
  topPosition : '',
  infoHeight: 20,
  alternative_layout : false,
  imageArray : [],
  imageNum : null,
  total : 0,
  activeImage : null,
  inprogress : false,
  disableResize : false,
  disableZoom : false,
  isZoomedIn : false,
  rtl : false,
  loopItems : false,
  keysClose : ['c', 'x', 27],
  keysPrevious : ['p', 37],
  keysNext : ['n', 39],
  keysZoom : ['z'],
  keysPlayPause : [32],

  // Slideshow options.
  slideInterval : 5000, // In milliseconds.
  showPlayPause : true,
  autoStart : true,
  autoExit : true,
  pauseOnNextClick : false, // True to pause the slideshow when the "Next" button is clicked.
  pauseOnPrevClick : true, // True to pause the slideshow when the "Prev" button is clicked.
  slideIdArray : [],
  slideIdCount : 0,
  isSlideshow : false,
  isPaused : false,
  loopSlides : false,

  // Iframe options.
  isLightframe : false,
  iframe_width : 600,
  iframe_height : 400,
  iframe_border : 1,

  // Video and modal options.
  enableVideo : false,
  flvPlayer : '/flvplayer.swf',
  flvFlashvars : '',
  isModal : false,
  isVideo : false,
  videoId : false,
  modalWidth : 400,
  modalHeight : 400,
  modalHTML : null,


  // initialize()
  // Constructor runs on completion of the DOM loading.
  // The function inserts html at the bottom of the page which is used
  // to display the shadow overlay and the image container.
  initialize: function() {

    var s = Drupal.settings.lightbox2;
    Lightbox.overlayOpacity = s.overlay_opacity;
    Lightbox.overlayColor = s.overlay_color;
    Lightbox.disableCloseClick = s.disable_close_click;
    Lightbox.resizeSequence = s.resize_sequence;
    Lightbox.resizeSpeed = s.resize_speed;
    Lightbox.fadeInSpeed = s.fade_in_speed;
    Lightbox.slideDownSpeed = s.slide_down_speed;
    Lightbox.borderSize = s.border_size;
    Lightbox.boxColor = s.box_color;
    Lightbox.fontColor = s.font_color;
    Lightbox.topPosition = s.top_position;
    Lightbox.rtl = s.rtl;
    Lightbox.loopItems = s.loop_items;
    Lightbox.keysClose = s.keys_close.split(" ");
    Lightbox.keysPrevious = s.keys_previous.split(" ");
    Lightbox.keysNext = s.keys_next.split(" ");
    Lightbox.keysZoom = s.keys_zoom.split(" ");
    Lightbox.keysPlayPause = s.keys_play_pause.split(" ");
    Lightbox.disableResize = s.disable_resize;
    Lightbox.disableZoom = s.disable_zoom;
    Lightbox.slideInterval = s.slideshow_interval;
    Lightbox.showPlayPause = s.show_play_pause;
    Lightbox.showCaption = s.show_caption;
    Lightbox.autoStart = s.slideshow_automatic_start;
    Lightbox.autoExit = s.slideshow_automatic_exit;
    Lightbox.pauseOnNextClick = s.pause_on_next_click;
    Lightbox.pauseOnPrevClick = s.pause_on_previous_click;
    Lightbox.loopSlides = s.loop_slides;
    Lightbox.alternative_layout = s.use_alt_layout;
    Lightbox.iframe_width = s.iframe_width;
    Lightbox.iframe_height = s.iframe_height;
    Lightbox.iframe_border = s.iframe_border;
    Lightbox.enableVideo = s.enable_video;
    if (s.enable_video) {
      Lightbox.flvPlayer = s.flvPlayer;
      Lightbox.flvFlashvars = s.flvFlashvars;
    }

    // Make the lightbox divs.
    var layout_class = (s.use_alt_layout ? 'lightbox2-alt-layout' : 'lightbox2-orig-layout');
    var output = '<div id="lightbox2-overlay" style="display: none;"></div>\
      <div id="lightbox" style="display: none;" class="' + layout_class + '">\
        <div id="outerImageContainer"></div>\
        <div id="imageDataContainer" class="clearfix">\
          <div id="imageData"></div>\
        </div>\
      </div>';
    var loading = '<div id="loading"><a href="#" id="loadingLink"></a></div>';
    var modal = '<div id="modalContainer" style="display: none;"></div>';
    var frame = '<div id="frameContainer" style="display: none;"></div>';
    var imageContainer = '<div id="imageContainer" style="display: none;"></div>';
    var details = '<div id="imageDetails"></div>';
    var bottomNav = '<div id="bottomNav"></div>';
    var image = '<img id="lightboxImage" alt="" />';
    var hoverNav = '<div id="hoverNav"><a id="prevLink" href="#"></a><a id="nextLink" href="#"></a></div>';
    var frameNav = '<div id="frameHoverNav"><a id="framePrevLink" href="#"></a><a id="frameNextLink" href="#"></a></div>';
    var hoverNav = '<div id="hoverNav"><a id="prevLink" title="' + Drupal.t('Previous') + '" href="#"></a><a id="nextLink" title="' + Drupal.t('Next') + '" href="#"></a></div>';
    var frameNav = '<div id="frameHoverNav"><a id="framePrevLink" title="' + Drupal.t('Previous') + '" href="#"></a><a id="frameNextLink" title="' + Drupal.t('Next') + '" href="#"></a></div>';
    var caption = '<span id="caption"></span>';
    var numberDisplay = '<span id="numberDisplay"></span>';
    var close = '<a id="bottomNavClose" title="' + Drupal.t('Close') + '" href="#"></a>';
    var zoom = '<a id="bottomNavZoom" href="#"></a>';
    var zoomOut = '<a id="bottomNavZoomOut" href="#"></a>';
    var pause = '<a id="lightshowPause" title="' + Drupal.t('Pause Slideshow') + '" href="#" style="display: none;"></a>';
    var play = '<a id="lightshowPlay" title="' + Drupal.t('Play Slideshow') + '" href="#" style="display: none;"></a>';

    $("body").append(output);
    $('#outerImageContainer').append(modal + frame + imageContainer + loading);
    if (!s.use_alt_layout) {
      $('#imageContainer').append(image + hoverNav);
      $('#imageData').append(details + bottomNav);
      $('#imageDetails').append(caption + numberDisplay);
      $('#bottomNav').append(frameNav + close + zoom + zoomOut + pause + play);
    }
    else {
      $('#outerImageContainer').append(bottomNav);
      $('#imageContainer').append(image);
      $('#bottomNav').append(close + zoom + zoomOut);
      $('#imageData').append(hoverNav + details);
      $('#imageDetails').append(caption + numberDisplay + pause + play);
    }

    // Setup onclick handlers.
    if (Lightbox.disableCloseClick) {
      $('#lightbox2-overlay').click(function() { Lightbox.end(); return false; } ).hide();
    }
    $('#loadingLink, #bottomNavClose').click(function() { Lightbox.end('forceClose'); return false; } );
    $('#prevLink, #framePrevLink').click(function() { Lightbox.changeData(Lightbox.activeImage - 1); return false; } );
    $('#nextLink, #frameNextLink').click(function() { Lightbox.changeData(Lightbox.activeImage + 1); return false; } );
    $('#bottomNavZoom').click(function() { Lightbox.changeData(Lightbox.activeImage, true); return false; } );
    $('#bottomNavZoomOut').click(function() { Lightbox.changeData(Lightbox.activeImage, false); return false; } );
    $('#lightshowPause').click(function() { Lightbox.togglePlayPause("lightshowPause", "lightshowPlay"); return false; } );
    $('#lightshowPlay').click(function() { Lightbox.togglePlayPause("lightshowPlay", "lightshowPause"); return false; } );

    // Fix positioning.
    $('#prevLink, #nextLink, #framePrevLink, #frameNextLink').css({ 'paddingTop': Lightbox.borderSize + 'px'});
    $('#imageContainer, #frameContainer, #modalContainer').css({ 'padding': Lightbox.borderSize + 'px'});
    $('#outerImageContainer, #imageDataContainer, #bottomNavClose').css({'backgroundColor': '#' + Lightbox.boxColor, 'color': '#'+Lightbox.fontColor});
    if (Lightbox.alternative_layout) {
      $('#bottomNavZoom, #bottomNavZoomOut').css({'bottom': Lightbox.borderSize + 'px', 'right': Lightbox.borderSize + 'px'});
    }
    else if (Lightbox.rtl == 1 && $.browser.msie) {
      $('#bottomNavZoom, #bottomNavZoomOut').css({'left': '0px'});
    }

    // Force navigation links to always be displayed
    if (s.force_show_nav) {
      $('#prevLink, #nextLink').addClass("force_show_nav");
    }

  },

  // initList()
  // Loops through anchor tags looking for 'lightbox', 'lightshow' and
  // 'lightframe', etc, references and applies onclick events to appropriate
  // links. You can rerun after dynamically adding images w/ajax.
  initList : function(context) {

    if (context == undefined || context == null) {
      context = document;
    }

    // Attach lightbox to any links with rel 'lightbox', 'lightshow' or
    // 'lightframe', etc.
    $("a[rel^='lightbox']:not(.lightbox-processed), area[rel^='lightbox']:not(.lightbox-processed)", context).addClass('lightbox-processed').click(function(e) {
      if (Lightbox.disableCloseClick) {
        $('#lightbox').unbind('click');
        $('#lightbox').click(function() { Lightbox.end('forceClose'); } );
      }
      Lightbox.start(this, false, false, false, false);
      if (e.preventDefault) { e.preventDefault(); }
      return false;
    });
    $("a[rel^='lightshow']:not(.lightbox-processed), area[rel^='lightshow']:not(.lightbox-processed)", context).addClass('lightbox-processed').click(function(e) {
      if (Lightbox.disableCloseClick) {
        $('#lightbox').unbind('click');
        $('#lightbox').click(function() { Lightbox.end('forceClose'); } );
      }
      Lightbox.start(this, true, false, false, false);
      if (e.preventDefault) { e.preventDefault(); }
      return false;
    });
    $("a[rel^='lightframe']:not(.lightbox-processed), area[rel^='lightframe']:not(.lightbox-processed)", context).addClass('lightbox-processed').click(function(e) {
      if (Lightbox.disableCloseClick) {
        $('#lightbox').unbind('click');
        $('#lightbox').click(function() { Lightbox.end('forceClose'); } );
      }
      Lightbox.start(this, false, true, false, false);
      if (e.preventDefault) { e.preventDefault(); }
      return false;
    });
    if (Lightbox.enableVideo) {
      $("a[rel^='lightvideo']:not(.lightbox-processed), area[rel^='lightvideo']:not(.lightbox-processed)", context).addClass('lightbox-processed').click(function(e) {
        if (Lightbox.disableCloseClick) {
          $('#lightbox').unbind('click');
          $('#lightbox').click(function() { Lightbox.end('forceClose'); } );
        }
        Lightbox.start(this, false, false, true, false);
        if (e.preventDefault) { e.preventDefault(); }
        return false;
      });
    }
    $("a[rel^='lightmodal']:not(.lightbox-processed), area[rel^='lightmodal']:not(.lightbox-processed)", context).addClass('lightbox-processed').click(function(e) {
      $('#lightbox').unbind('click');
      // Add classes from the link to the lightbox div - don't include lightbox-processed
      $('#lightbox').addClass($(this).attr('class'));
      $('#lightbox').removeClass('lightbox-processed');
      Lightbox.start(this, false, false, false, true);
      if (e.preventDefault) { e.preventDefault(); }
      return false;
    });
    $("#lightboxAutoModal:not(.lightbox-processed)", context).addClass('lightbox-processed').click(function(e) {
      Lightbox.auto_modal = true;
      $('#lightbox').unbind('click');
      Lightbox.start(this, false, false, false, true);
      if (e.preventDefault) { e.preventDefault(); }
      return false;
    });
  },

  // start()
  // Display overlay and lightbox. If image is part of a set, add siblings to
  // imageArray.
  start: function(imageLink, slideshow, lightframe, lightvideo, lightmodal) {

    Lightbox.isPaused = !Lightbox.autoStart;

    // Replaces hideSelectBoxes() and hideFlash() calls in original lightbox2.
    Lightbox.toggleSelectsFlash('hide');

    // Stretch overlay to fill page and fade in.
    var arrayPageSize = Lightbox.getPageSize();
    $("#lightbox2-overlay").hide().css({
      'width': '100%',
      'zIndex': '10090',
      'height': arrayPageSize[1] + 'px',
      'backgroundColor' : '#' + Lightbox.overlayColor
    });
    // Detect OS X FF2 opacity + flash issue.
    if (lightvideo && this.detectMacFF2()) {
      $("#lightbox2-overlay").removeClass("overlay_default");
      $("#lightbox2-overlay").addClass("overlay_macff2");
      $("#lightbox2-overlay").css({'opacity' : null});
    }
    else {
      $("#lightbox2-overlay").removeClass("overlay_macff2");
      $("#lightbox2-overlay").addClass("overlay_default");
      $("#lightbox2-overlay").css({'opacity' : Lightbox.overlayOpacity});
    }
    $("#lightbox2-overlay").fadeIn(Lightbox.fadeInSpeed);


    Lightbox.isSlideshow = slideshow;
    Lightbox.isLightframe = lightframe;
    Lightbox.isVideo = lightvideo;
    Lightbox.isModal = lightmodal;
    Lightbox.imageArray = [];
    Lightbox.imageNum = 0;

    var anchors = $(imageLink.tagName);
    var anchor = null;
    var rel_parts = Lightbox.parseRel(imageLink);
    var rel = rel_parts["rel"];
    var rel_group = rel_parts["group"];
    var title = (rel_parts["title"] ? rel_parts["title"] : imageLink.title);
    var rel_style = null;
    var i = 0;

    if (rel_parts["flashvars"]) {
      Lightbox.flvFlashvars = Lightbox.flvFlashvars + '&' + rel_parts["flashvars"];
    }

    // Set the title for image alternative text.
    var alt = imageLink.title;
    if (!alt) {
      var img = $(imageLink).find("img");
      if (img && $(img).attr("alt")) {
        alt = $(img).attr("alt");
      }
      else {
        alt = title;
      }
    }

    if ($(imageLink).attr('id') == 'lightboxAutoModal') {
      rel_style = rel_parts["style"];
      Lightbox.imageArray.push(['#lightboxAutoModal > *', title, alt, rel_style, 1]);
    }
    else {
      // Handle lightbox images with no grouping.
      if ((rel == 'lightbox' || rel == 'lightshow') && !rel_group) {
        Lightbox.imageArray.push([imageLink.href, title, alt]);
      }

      // Handle other items with no grouping.
      else if (!rel_group) {
        rel_style = rel_parts["style"];
        Lightbox.imageArray.push([imageLink.href, title, alt, rel_style]);
      }

      // Handle grouped items.
      else {

        // Loop through anchors and add them to imageArray.
        for (i = 0; i < anchors.length; i++) {
          anchor = anchors[i];
          if (anchor.href && typeof(anchor.href) == "string" && $(anchor).attr('rel')) {
            var rel_data = Lightbox.parseRel(anchor);
            var anchor_title = (rel_data["title"] ? rel_data["title"] : anchor.title);
            img_alt = anchor.title;
            if (!img_alt) {
              var anchor_img = $(anchor).find("img");
              if (anchor_img && $(anchor_img).attr("alt")) {
                img_alt = $(anchor_img).attr("alt");
              }
              else {
                img_alt = title;
              }
            }
            if (rel_data["rel"] == rel) {
              if (rel_data["group"] == rel_group) {
                if (Lightbox.isLightframe || Lightbox.isModal || Lightbox.isVideo) {
                  rel_style = rel_data["style"];
                }
                Lightbox.imageArray.push([anchor.href, anchor_title, img_alt, rel_style]);
              }
            }
          }
        }

        // Remove duplicates.
        for (i = 0; i < Lightbox.imageArray.length; i++) {
          for (j = Lightbox.imageArray.length-1; j > i; j--) {
            if (Lightbox.imageArray[i][0] == Lightbox.imageArray[j][0]) {
              Lightbox.imageArray.splice(j,1);
            }
          }
        }
        while (Lightbox.imageArray[Lightbox.imageNum][0] != imageLink.href) {
          Lightbox.imageNum++;
        }
      }
    }

    if (Lightbox.isSlideshow && Lightbox.showPlayPause && Lightbox.isPaused) {
      $('#lightshowPlay').show();
      $('#lightshowPause').hide();
    }

    // Calculate top and left offset for the lightbox.
    var arrayPageScroll = Lightbox.getPageScroll();
    var lightboxTop = arrayPageScroll[1] + (Lightbox.topPosition == '' ? (arrayPageSize[3] / 10) : Lightbox.topPosition) * 1;
    var lightboxLeft = arrayPageScroll[0];
    $('#frameContainer, #modalContainer, #lightboxImage').hide();
    $('#hoverNav, #prevLink, #nextLink, #frameHoverNav, #framePrevLink, #frameNextLink').hide();
    $('#imageDataContainer, #numberDisplay, #bottomNavZoom, #bottomNavZoomOut').hide();
    $('#outerImageContainer').css({'width': '250px', 'height': '250px'});
    $('#lightbox').css({
      'zIndex': '10500',
      'top': lightboxTop + 'px',
      'left': lightboxLeft + 'px'
    }).show();

    Lightbox.total = Lightbox.imageArray.length;
    Lightbox.changeData(Lightbox.imageNum);
  },

  // changeData()
  // Hide most elements and preload image in preparation for resizing image
  // container.
  changeData: function(imageNum, zoomIn) {

    if (Lightbox.inprogress === false) {
      if (Lightbox.total > 1 && ((Lightbox.isSlideshow && Lightbox.loopSlides) || (!Lightbox.isSlideshow && Lightbox.loopItems))) {
        if (imageNum >= Lightbox.total) imageNum = 0;
        if (imageNum < 0) imageNum = Lightbox.total - 1;
      }

      if (Lightbox.isSlideshow) {
        for (var i = 0; i < Lightbox.slideIdCount; i++) {
          window.clearTimeout(Lightbox.slideIdArray[i]);
        }
      }
      Lightbox.inprogress = true;
      Lightbox.activeImage = imageNum;

      if (Lightbox.disableResize && !Lightbox.isSlideshow) {
        zoomIn = true;
      }
      Lightbox.isZoomedIn = zoomIn;


      // Hide elements during transition.
      $('#loading').css({'zIndex': '10500'}).show();
      if (!Lightbox.alternative_layout) {
        $('#imageContainer').hide();
      }
      $('#frameContainer, #modalContainer, #lightboxImage').hide();
      $('#hoverNav, #prevLink, #nextLink, #frameHoverNav, #framePrevLink, #frameNextLink').hide();
      $('#imageDataContainer, #numberDisplay, #bottomNavZoom, #bottomNavZoomOut').hide();

      // Preload image content, but not iframe pages.
      if (!Lightbox.isLightframe && !Lightbox.isVideo && !Lightbox.isModal) {
        $("#lightbox #imageDataContainer").removeClass('lightbox2-alt-layout-data');
        imgPreloader = new Image();
        imgPreloader.onerror = function() { Lightbox.imgNodeLoadingError(this); };

        imgPreloader.onload = function() {
          var photo = document.getElementById('lightboxImage');
          photo.src = Lightbox.imageArray[Lightbox.activeImage][0];
          photo.alt = Lightbox.imageArray[Lightbox.activeImage][2];

          var imageWidth = imgPreloader.width;
          var imageHeight = imgPreloader.height;

          // Resize code.
          var arrayPageSize = Lightbox.getPageSize();
          var targ = { w:arrayPageSize[2] - (Lightbox.borderSize * 2), h:arrayPageSize[3] - (Lightbox.borderSize * 6) - (Lightbox.infoHeight * 4) - (arrayPageSize[3] / 10) };
          var orig = { w:imgPreloader.width, h:imgPreloader.height };

          // Image is very large, so show a smaller version of the larger image
          // with zoom button.
          if (zoomIn !== true) {
            var ratio = 1.0; // Shrink image with the same aspect.
            $('#bottomNavZoomOut, #bottomNavZoom').hide();
            if ((orig.w >= targ.w || orig.h >= targ.h) && orig.h && orig.w) {
              ratio = ((targ.w / orig.w) < (targ.h / orig.h)) ? targ.w / orig.w : targ.h / orig.h;
              if (!Lightbox.disableZoom && !Lightbox.isSlideshow) {
                $('#bottomNavZoom').css({'zIndex': '10500'}).show();
              }
            }

            imageWidth  = Math.floor(orig.w * ratio);
            imageHeight = Math.floor(orig.h * ratio);
          }

          else {
            $('#bottomNavZoom').hide();
            // Only display zoom out button if the image is zoomed in already.
            if ((orig.w >= targ.w || orig.h >= targ.h) && orig.h && orig.w) {
              // Only display zoom out button if not a slideshow and if the
              // buttons aren't disabled.
              if (!Lightbox.disableResize && Lightbox.isSlideshow === false && !Lightbox.disableZoom) {
                $('#bottomNavZoomOut').css({'zIndex': '10500'}).show();
              }
            }
          }

          photo.style.width = (imageWidth) + 'px';
          photo.style.height = (imageHeight) + 'px';
          Lightbox.resizeContainer(imageWidth, imageHeight);

          // Clear onLoad, IE behaves irratically with animated gifs otherwise.
          imgPreloader.onload = function() {};
        };

        imgPreloader.src = Lightbox.imageArray[Lightbox.activeImage][0];
        imgPreloader.alt = Lightbox.imageArray[Lightbox.activeImage][2];
      }

      // Set up frame size, etc.
      else if (Lightbox.isLightframe) {
        $("#lightbox #imageDataContainer").addClass('lightbox2-alt-layout-data');
        var src = Lightbox.imageArray[Lightbox.activeImage][0];
        $('#frameContainer').html('<iframe id="lightboxFrame" style="display: none;" src="'+src+'"></iframe>');

        // Enable swf support in Gecko browsers.
        if ($.browser.mozilla && src.indexOf('.swf') != -1) {
          setTimeout(function () {
            document.getElementById("lightboxFrame").src = Lightbox.imageArray[Lightbox.activeImage][0];
          }, 1000);
        }

        if (!Lightbox.iframe_border) {
          $('#lightboxFrame').css({'border': 'none'});
          $('#lightboxFrame').attr('frameborder', '0');
        }
        var iframe = document.getElementById('lightboxFrame');
        var iframeStyles = Lightbox.imageArray[Lightbox.activeImage][3];
        iframe = Lightbox.setStyles(iframe, iframeStyles);
        Lightbox.resizeContainer(parseInt(iframe.width, 10), parseInt(iframe.height, 10));
      }
      else if (Lightbox.isVideo || Lightbox.isModal) {
        $("#lightbox #imageDataContainer").addClass('lightbox2-alt-layout-data');
        var container = document.getElementById('modalContainer');
        var modalStyles = Lightbox.imageArray[Lightbox.activeImage][3];
        container = Lightbox.setStyles(container, modalStyles);
        if (Lightbox.isVideo) {
          Lightbox.modalHeight =  parseInt(container.height, 10) - 10;
          Lightbox.modalWidth =  parseInt(container.width, 10) - 10;
          Lightvideo.startVideo(Lightbox.imageArray[Lightbox.activeImage][0]);
        }
        Lightbox.resizeContainer(parseInt(container.width, 10), parseInt(container.height, 10));
      }
    }
  },

  // imgNodeLoadingError()
  imgNodeLoadingError: function(image) {
    var s = Drupal.settings.lightbox2;
    var original_image = Lightbox.imageArray[Lightbox.activeImage][0];
    if (s.display_image_size !== "") {
      original_image = original_image.replace(new RegExp("."+s.display_image_size), "");
    }
    Lightbox.imageArray[Lightbox.activeImage][0] = original_image;
    image.onerror = function() { Lightbox.imgLoadingError(image); };
    image.src = original_image;
  },

  // imgLoadingError()
  imgLoadingError: function(image) {
    var s = Drupal.settings.lightbox2;
    Lightbox.imageArray[Lightbox.activeImage][0] = s.default_image;
    image.src = s.default_image;
  },

  // resizeContainer()
  resizeContainer: function(imgWidth, imgHeight) {

    imgWidth = (imgWidth < Lightbox.minWidth ? Lightbox.minWidth : imgWidth);

    this.widthCurrent = $('#outerImageContainer').width();
    this.heightCurrent = $('#outerImageContainer').height();

    var widthNew = (imgWidth  + (Lightbox.borderSize * 2));
    var heightNew = (imgHeight  + (Lightbox.borderSize * 2));

    // Scalars based on change from old to new.
    this.xScale = ( widthNew / this.widthCurrent) * 100;
    this.yScale = ( heightNew / this.heightCurrent) * 100;

    // Calculate size difference between new and old image, and resize if
    // necessary.
    wDiff = this.widthCurrent - widthNew;
    hDiff = this.heightCurrent - heightNew;

    $('#modalContainer').css({'width': imgWidth, 'height': imgHeight});
    // Detect animation sequence.
    if (Lightbox.resizeSequence) {
      var animate1 = {width: widthNew};
      var animate2 = {height: heightNew};
      if (Lightbox.resizeSequence == 2) {
        animate1 = {height: heightNew};
        animate2 = {width: widthNew};
      }
      $('#outerImageContainer').animate(animate1, Lightbox.resizeSpeed).animate(animate2, Lightbox.resizeSpeed, 'linear', function() { Lightbox.showData(); });
    }
    // Simultaneous.
    else {
      $('#outerImageContainer').animate({'width': widthNew, 'height': heightNew}, Lightbox.resizeSpeed, 'linear', function() { Lightbox.showData(); });
    }

    // If new and old image are same size and no scaling transition is necessary
    // do a quick pause to prevent image flicker.
    if ((hDiff === 0) && (wDiff === 0)) {
      if ($.browser.msie) {
        Lightbox.pause(250);
      }
      else {
        Lightbox.pause(100);
      }
    }

    var s = Drupal.settings.lightbox2;
    if (!s.use_alt_layout) {
      $('#prevLink, #nextLink').css({'height': imgHeight + 'px'});
    }
    $('#imageDataContainer').css({'width': widthNew + 'px'});
  },

  // showData()
  // Display image and begin preloading neighbors.
  showData: function() {
    $('#loading').hide();

    if (Lightbox.isLightframe || Lightbox.isVideo || Lightbox.isModal) {
      Lightbox.updateDetails();
      if (Lightbox.isLightframe) {
        $('#frameContainer').show();
        if ($.browser.safari || Lightbox.fadeInSpeed === 0) {
          $('#lightboxFrame').css({'zIndex': '10500'}).show();
        }
        else {
          $('#lightboxFrame').css({'zIndex': '10500'}).fadeIn(Lightbox.fadeInSpeed);
        }
      }
      else {
        if (Lightbox.isVideo) {
          $("#modalContainer").html(Lightbox.modalHTML).click(function(){return false;}).css('zIndex', '10500').show();
        }
        else {
          var src = unescape(Lightbox.imageArray[Lightbox.activeImage][0]);
          if (Lightbox.imageArray[Lightbox.activeImage][4]) {
            $(src).appendTo("#modalContainer");
            $('#modalContainer').css({'zIndex': '10500'}).show();
          }
          else {
            // Use a callback to show the new image, otherwise you get flicker.
            $("#modalContainer").hide().load(src, function () {$('#modalContainer').css({'zIndex': '10500'}).show();});
          }
          $('#modalContainer').unbind('click');
        }
        // This might be needed in the Lightframe section above.
        //$('#modalContainer').css({'zIndex': '10500'}).show();
      }
    }

    // Handle display of image content.
    else {
      $('#imageContainer').show();
      if ($.browser.safari || Lightbox.fadeInSpeed === 0) {
        $('#lightboxImage').css({'zIndex': '10500'}).show();
      }
      else {
        $('#lightboxImage').css({'zIndex': '10500'}).fadeIn(Lightbox.fadeInSpeed);
      }
      Lightbox.updateDetails();
      this.preloadNeighborImages();
    }
    Lightbox.inprogress = false;

    // Slideshow specific stuff.
    if (Lightbox.isSlideshow) {
      if (!Lightbox.loopSlides && Lightbox.activeImage == (Lightbox.total - 1)) {
        if (Lightbox.autoExit) {
          Lightbox.slideIdArray[Lightbox.slideIdCount++] = setTimeout(function () {Lightbox.end('slideshow');}, Lightbox.slideInterval);
        }
      }
      else {
        if (!Lightbox.isPaused && Lightbox.total > 1) {
          Lightbox.slideIdArray[Lightbox.slideIdCount++] = setTimeout(function () {Lightbox.changeData(Lightbox.activeImage + 1);}, Lightbox.slideInterval);
        }
      }
      if (Lightbox.showPlayPause && Lightbox.total > 1 && !Lightbox.isPaused) {
        $('#lightshowPause').show();
        $('#lightshowPlay').hide();
      }
      else if (Lightbox.showPlayPause && Lightbox.total > 1) {
        $('#lightshowPause').hide();
        $('#lightshowPlay').show();
      }
    }

    // Adjust the page overlay size.
    var arrayPageSize = Lightbox.getPageSize();
    var arrayPageScroll = Lightbox.getPageScroll();
    var pageHeight = arrayPageSize[1];
    if (Lightbox.isZoomedIn && arrayPageSize[1] > arrayPageSize[3]) {
      var lightboxTop = (Lightbox.topPosition == '' ? (arrayPageSize[3] / 10) : Lightbox.topPosition) * 1;
      pageHeight = pageHeight + arrayPageScroll[1] + lightboxTop;
    }
    $('#lightbox2-overlay').css({'height': pageHeight + 'px', 'width': arrayPageSize[0] + 'px'});

    // Gecko browsers (e.g. Firefox, SeaMonkey, etc) don't handle pdfs as
    // expected.
    if ($.browser.mozilla) {
      if (Lightbox.imageArray[Lightbox.activeImage][0].indexOf(".pdf") != -1) {
        setTimeout(function () {
          document.getElementById("lightboxFrame").src = Lightbox.imageArray[Lightbox.activeImage][0];
        }, 1000);
      }
    }
  },

  // updateDetails()
  // Display caption, image number, and bottom nav.
  updateDetails: function() {

    $("#imageDataContainer").hide();

    var s = Drupal.settings.lightbox2;

    if (s.show_caption) {
      var caption = Lightbox.filterXSS(Lightbox.imageArray[Lightbox.activeImage][1]);
      if (!caption) caption = '';
      $('#caption').html(caption).css({'zIndex': '10500'}).show();
    }

    // If image is part of set display 'Image x of x'.
    var numberDisplay = null;
    if (s.image_count && Lightbox.total > 1) {
      var currentImage = Lightbox.activeImage + 1;
      if (!Lightbox.isLightframe && !Lightbox.isModal && !Lightbox.isVideo) {
        numberDisplay = s.image_count.replace(/\!current/, currentImage).replace(/\!total/, Lightbox.total);
      }
      else if (Lightbox.isVideo) {
        numberDisplay = s.video_count.replace(/\!current/, currentImage).replace(/\!total/, Lightbox.total);
      }
      else {
        numberDisplay = s.page_count.replace(/\!current/, currentImage).replace(/\!total/, Lightbox.total);
      }
      $('#numberDisplay').html(numberDisplay).css({'zIndex': '10500'}).show();
    }
    else {
      $('#numberDisplay').hide();
    }

    $("#imageDataContainer").hide().slideDown(Lightbox.slideDownSpeed, function() {
      $("#bottomNav").show();
    });
    if (Lightbox.rtl == 1) {
      $("#bottomNav").css({'float': 'left'});
    }
    Lightbox.updateNav();
  },

  // updateNav()
  // Display appropriate previous and next hover navigation.
  updateNav: function() {

    $('#hoverNav').css({'zIndex': '10500'}).show();
    var prevLink = '#prevLink';
    var nextLink = '#nextLink';

    // Slideshow is separated as we need to show play / pause button.
    if (Lightbox.isSlideshow) {
      if ((Lightbox.total > 1 && Lightbox.loopSlides) || Lightbox.activeImage !== 0) {
        $(prevLink).css({'zIndex': '10500'}).show().click(function() {
          if (Lightbox.pauseOnPrevClick) {
            Lightbox.togglePlayPause("lightshowPause", "lightshowPlay");
          }
          Lightbox.changeData(Lightbox.activeImage - 1); return false;
        });
      }
      else {
        $(prevLink).hide();
      }

      // If not last image in set, display next image button.
      if ((Lightbox.total > 1 && Lightbox.loopSlides) || Lightbox.activeImage != (Lightbox.total - 1)) {
        $(nextLink).css({'zIndex': '10500'}).show().click(function() {
          if (Lightbox.pauseOnNextClick) {
            Lightbox.togglePlayPause("lightshowPause", "lightshowPlay");
          }
          Lightbox.changeData(Lightbox.activeImage + 1); return false;
        });
      }
      // Safari browsers need to have hide() called again.
      else {
        $(nextLink).hide();
      }
    }

    // All other types of content.
    else {

      if ((Lightbox.isLightframe || Lightbox.isModal || Lightbox.isVideo) && !Lightbox.alternative_layout) {
        $('#frameHoverNav').css({'zIndex': '10500'}).show();
        $('#hoverNav').css({'zIndex': '10500'}).hide();
        prevLink = '#framePrevLink';
        nextLink = '#frameNextLink';
      }

      // If not first image in set, display prev image button.
      if ((Lightbox.total > 1 && Lightbox.loopItems) || Lightbox.activeImage !== 0) {
        // Unbind any other click handlers, otherwise this adds a new click handler
        // each time the arrow is clicked.
        $(prevLink).css({'zIndex': '10500'}).show().unbind().click(function() {
          Lightbox.changeData(Lightbox.activeImage - 1); return false;
        });
      }
      // Safari browsers need to have hide() called again.
      else {
        $(prevLink).hide();
      }

      // If not last image in set, display next image button.
      if ((Lightbox.total > 1 && Lightbox.loopItems) || Lightbox.activeImage != (Lightbox.total - 1)) {
        // Unbind any other click handlers, otherwise this adds a new click handler
        // each time the arrow is clicked.
        $(nextLink).css({'zIndex': '10500'}).show().unbind().click(function() {
          Lightbox.changeData(Lightbox.activeImage + 1); return false;
        });
      }
      // Safari browsers need to have hide() called again.
      else {
        $(nextLink).hide();
      }
    }

    // Don't enable keyboard shortcuts so forms will work.
    if (!Lightbox.isModal) {
      this.enableKeyboardNav();
    }
  },


  // enableKeyboardNav()
  enableKeyboardNav: function() {
    $(document).bind("keydown", this.keyboardAction);
  },

  // disableKeyboardNav()
  disableKeyboardNav: function() {
    $(document).unbind("keydown", this.keyboardAction);
  },

  // keyboardAction()
  keyboardAction: function(e) {
    if (e === null) { // IE.
      keycode = event.keyCode;
      escapeKey = 27;
    }
    else { // Mozilla.
      keycode = e.keyCode;
      escapeKey = e.DOM_VK_ESCAPE;
    }

    key = String.fromCharCode(keycode).toLowerCase();

    // Close lightbox.
    if (Lightbox.checkKey(Lightbox.keysClose, key, keycode)) {
      Lightbox.end('forceClose');
    }
    // Display previous image (p, <-).
    else if (Lightbox.checkKey(Lightbox.keysPrevious, key, keycode)) {
      if ((Lightbox.total > 1 && ((Lightbox.isSlideshow && Lightbox.loopSlides) || (!Lightbox.isSlideshow && Lightbox.loopItems))) || Lightbox.activeImage !== 0) {
        Lightbox.changeData(Lightbox.activeImage - 1);
      }

    }
    // Display next image (n, ->).
    else if (Lightbox.checkKey(Lightbox.keysNext, key, keycode)) {
      if ((Lightbox.total > 1 && ((Lightbox.isSlideshow && Lightbox.loopSlides) || (!Lightbox.isSlideshow && Lightbox.loopItems))) || Lightbox.activeImage != (Lightbox.total - 1)) {
        Lightbox.changeData(Lightbox.activeImage + 1);
      }
    }
    // Zoom in.
    else if (Lightbox.checkKey(Lightbox.keysZoom, key, keycode) && !Lightbox.disableResize && !Lightbox.disableZoom && !Lightbox.isSlideshow && !Lightbox.isLightframe) {
      if (Lightbox.isZoomedIn) {
        Lightbox.changeData(Lightbox.activeImage, false);
      }
      else if (!Lightbox.isZoomedIn) {
        Lightbox.changeData(Lightbox.activeImage, true);
      }
      return false;
    }
    // Toggle play / pause (space).
    else if (Lightbox.checkKey(Lightbox.keysPlayPause, key, keycode) && Lightbox.isSlideshow) {

      if (Lightbox.isPaused) {
        Lightbox.togglePlayPause("lightshowPlay", "lightshowPause");
      }
      else {
        Lightbox.togglePlayPause("lightshowPause", "lightshowPlay");
      }
      return false;
    }
  },

  preloadNeighborImages: function() {

    if ((Lightbox.total - 1) > Lightbox.activeImage) {
      preloadNextImage = new Image();
      preloadNextImage.src = Lightbox.imageArray[Lightbox.activeImage + 1][0];
    }
    if (Lightbox.activeImage > 0) {
      preloadPrevImage = new Image();
      preloadPrevImage.src = Lightbox.imageArray[Lightbox.activeImage - 1][0];
    }

  },

  end: function(caller) {
    var closeClick = (caller == 'slideshow' ? false : true);
    if (Lightbox.isSlideshow && Lightbox.isPaused && !closeClick) {
      return;
    }
    // To prevent double clicks on navigation links.
    if (Lightbox.inprogress === true && caller != 'forceClose') {
      return;
    }
    Lightbox.disableKeyboardNav();
    $('#lightbox').hide();
    $("#lightbox2-overlay").fadeOut();
    Lightbox.isPaused = true;
    Lightbox.inprogress = false;
    // Replaces calls to showSelectBoxes() and showFlash() in original
    // lightbox2.
    Lightbox.toggleSelectsFlash('visible');
    if (Lightbox.isSlideshow) {
      for (var i = 0; i < Lightbox.slideIdCount; i++) {
        window.clearTimeout(Lightbox.slideIdArray[i]);
      }
      $('#lightshowPause, #lightshowPlay').hide();
    }
    else if (Lightbox.isLightframe) {
      $('#frameContainer').empty().hide();
    }
    else if (Lightbox.isVideo || Lightbox.isModal) {
      if (!Lightbox.auto_modal) {
        $('#modalContainer').hide().html("");
      }
      Lightbox.auto_modal = false;
    }
  },


  // getPageScroll()
  // Returns array with x,y page scroll values.
  // Core code from - quirksmode.com.
  getPageScroll : function() {

    var xScroll, yScroll;

    if (self.pageYOffset || self.pageXOffset) {
      yScroll = self.pageYOffset;
      xScroll = self.pageXOffset;
    }
    else if (document.documentElement && (document.documentElement.scrollTop || document.documentElement.scrollLeft)) {  // Explorer 6 Strict.
      yScroll = document.documentElement.scrollTop;
      xScroll = document.documentElement.scrollLeft;
    }
    else if (document.body) {// All other Explorers.
      yScroll = document.body.scrollTop;
      xScroll = document.body.scrollLeft;
    }

    arrayPageScroll = [xScroll,yScroll];
    return arrayPageScroll;
  },

  // getPageSize()
  // Returns array with page width, height and window width, height.
  // Core code from - quirksmode.com.
  // Edit for Firefox by pHaez.

  getPageSize : function() {

    var xScroll, yScroll;

    if (window.innerHeight && window.scrollMaxY) {
      xScroll = window.innerWidth + window.scrollMaxX;
      yScroll = window.innerHeight + window.scrollMaxY;
    }
    else if (document.body.scrollHeight > document.body.offsetHeight) { // All but Explorer Mac.
      xScroll = document.body.scrollWidth;
      yScroll = document.body.scrollHeight;
    }
    else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari.
      xScroll = document.body.offsetWidth;
      yScroll = document.body.offsetHeight;
    }

    var windowWidth, windowHeight;

    if (self.innerHeight) { // All except Explorer.
      if (document.documentElement.clientWidth) {
        windowWidth = document.documentElement.clientWidth;
      }
      else {
        windowWidth = self.innerWidth;
      }
      windowHeight = self.innerHeight;
    }
    else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode.
      windowWidth = document.documentElement.clientWidth;
      windowHeight = document.documentElement.clientHeight;
    }
    else if (document.body) { // Other Explorers.
      windowWidth = document.body.clientWidth;
      windowHeight = document.body.clientHeight;
    }
    // For small pages with total height less than height of the viewport.
    if (yScroll < windowHeight) {
      pageHeight = windowHeight;
    }
    else {
      pageHeight = yScroll;
    }
    // For small pages with total width less than width of the viewport.
    if (xScroll < windowWidth) {
      pageWidth = xScroll;
    }
    else {
      pageWidth = windowWidth;
    }
    arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight);
    return arrayPageSize;
  },


  // pause(numberMillis)
  pause : function(ms) {
    var date = new Date();
    var curDate = null;
    do { curDate = new Date(); }
    while (curDate - date < ms);
  },


  // toggleSelectsFlash()
  // Hide / unhide select lists and flash objects as they appear above the
  // lightbox in some browsers.
  toggleSelectsFlash: function (state) {
    if (state == 'visible') {
      $("select.lightbox_hidden, embed.lightbox_hidden, object.lightbox_hidden").show();
    }
    else if (state == 'hide') {
      $("select:visible, embed:visible, object:visible").not('#lightboxAutoModal select, #lightboxAutoModal embed, #lightboxAutoModal object').addClass("lightbox_hidden");
      $("select.lightbox_hidden, embed.lightbox_hidden, object.lightbox_hidden").hide();
    }
  },


  // parseRel()
  parseRel: function (link) {
    var parts = [];
    parts["rel"] = parts["title"] = parts["group"] = parts["style"] = parts["flashvars"] = null;
    if (!$(link).attr('rel')) return parts;
    parts["rel"] = $(link).attr('rel').match(/\w+/)[0];

    if ($(link).attr('rel').match(/\[(.*)\]/)) {
      var info = $(link).attr('rel').match(/\[(.*?)\]/)[1].split('|');
      parts["group"] = info[0];
      parts["style"] = info[1];
      if (parts["style"] != undefined && parts["style"].match(/flashvars:\s?(.*?);/)) {
        parts["flashvars"] = parts["style"].match(/flashvars:\s?(.*?);/)[1];
      }
    }
    if ($(link).attr('rel').match(/\[.*\]\[(.*)\]/)) {
      parts["title"] = $(link).attr('rel').match(/\[.*\]\[(.*)\]/)[1];
    }
    return parts;
  },

  // setStyles()
  setStyles: function(item, styles) {
    item.width = Lightbox.iframe_width;
    item.height = Lightbox.iframe_height;
    item.scrolling = "auto";

    if (!styles) return item;
    var stylesArray = styles.split(';');
    for (var i = 0; i< stylesArray.length; i++) {
      if (stylesArray[i].indexOf('width:') >= 0) {
        var w = stylesArray[i].replace('width:', '');
        item.width = jQuery.trim(w);
      }
      else if (stylesArray[i].indexOf('height:') >= 0) {
        var h = stylesArray[i].replace('height:', '');
        item.height = jQuery.trim(h);
      }
      else if (stylesArray[i].indexOf('scrolling:') >= 0) {
        var scrolling = stylesArray[i].replace('scrolling:', '');
        item.scrolling = jQuery.trim(scrolling);
      }
      else if (stylesArray[i].indexOf('overflow:') >= 0) {
        var overflow = stylesArray[i].replace('overflow:', '');
        item.overflow = jQuery.trim(overflow);
      }
    }
    return item;
  },


  // togglePlayPause()
  // Hide the pause / play button as appropriate.  If pausing the slideshow also
  // clear the timers, otherwise move onto the next image.
  togglePlayPause: function(hideId, showId) {
    if (Lightbox.isSlideshow && hideId == "lightshowPause") {
      for (var i = 0; i < Lightbox.slideIdCount; i++) {
        window.clearTimeout(Lightbox.slideIdArray[i]);
      }
    }
    $('#' + hideId).hide();
    $('#' + showId).show();

    if (hideId == "lightshowPlay") {
      Lightbox.isPaused = false;
      if (!Lightbox.loopSlides && Lightbox.activeImage == (Lightbox.total - 1)) {
        Lightbox.end();
      }
      else if (Lightbox.total > 1) {
        Lightbox.changeData(Lightbox.activeImage + 1);
      }
    }
    else {
      Lightbox.isPaused = true;
    }
  },

  triggerLightbox: function (rel_type, rel_group) {
    if (rel_type.length) {
      if (rel_group && rel_group.length) {
        $("a[rel^='" + rel_type +"\[" + rel_group + "\]'], area[rel^='" + rel_type +"\[" + rel_group + "\]']").eq(0).trigger("click");
      }
      else {
        $("a[rel^='" + rel_type +"'], area[rel^='" + rel_type +"']").eq(0).trigger("click");
      }
    }
  },

  detectMacFF2: function() {
    var ua = navigator.userAgent.toLowerCase();
    if (/firefox[\/\s](\d+\.\d+)/.test(ua)) {
      var ffversion = new Number(RegExp.$1);
      if (ffversion < 3 && ua.indexOf('mac') != -1) {
        return true;
      }
    }
    return false;
  },

  checkKey: function(keys, key, code) {
    return (jQuery.inArray(key, keys) != -1 || jQuery.inArray(String(code), keys) != -1);
  },

  filterXSS: function(str, allowed_tags) {
    var output = "";
    $.ajax({
      url: Drupal.settings.basePath + 'system/lightbox2/filter-xss',
      data: {
        'string' : str,
        'allowed_tags' : allowed_tags
      },
      type: "POST",
      async: false,
      dataType:  "json",
      success: function(data) {
        output = data;
      }
    });
    return output;
  }

};

// Initialize the lightbox.
Drupal.behaviors.initLightbox = function (context) {
  $('body:not(.lightbox-processed)', context).addClass('lightbox-processed').each(function() {
    Lightbox.initialize();
    return false; // Break the each loop.
  });

  // Attach lightbox to any links with lightbox rels.
  Lightbox.initList(context);
  $('#lightboxAutoModal', context).triggerHandler('click');
};

;
/*
 * Thickbox 3.1 - One Box To Rule Them All.
 * By Cody Lindley (http://www.codylindley.com)
 * Copyright (c) 2007 cody lindley
 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
*/

//this var dynamically generated by promos.module
//var tb_pathToImage = "/sites/all/modules/asset/thickbox/loadingAnimation.gif";

/*!!!!!!!!!!!!!!!!! edit below this line at your own risk !!!!!!!!!!!!!!!!!!!!!!!*/
//on page load call tb_init
$(document).ready(function(){   
  //Drupal behaviors does this!
  //tb_init('a.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
  
  imgLoader = new Image();// preload image
  imgLoader.src = tb_pathToImage;
});
//add thickbox to href & area elements that have a class of .thickbox
function tb_init(domChunk){
  $(domChunk).click(function(){
  var t = this.title || this.name || null;
  var a = this.href || this.alt;
  var g = this.rel || false;
  tb_show(t,a,g);
  this.blur();
  return false;
  });
}
function tb_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link
  try {
    if (typeof document.body.style.maxHeight === "undefined") {//if IE 6
      $("body","html").css({height: "100%", width: "100%"});
      $("html").css("overflow","hidden");
      if (document.getElementById("TB_HideSelect") === null) {//iframe to hide select elements in ie6
        $("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
        $("#TB_overlay").click(tb_remove);
      }
    }else{//all others
      if(document.getElementById("TB_overlay") === null){
        $("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");
        $("#TB_overlay").click(tb_remove);
      }
    }
    
    if(tb_detectMacXFF()){
      $("#TB_overlay").addClass("TB_overlayMacFFBGHack");//use png overlay so hide flash
    }else{
      $("#TB_overlay").addClass("TB_overlayBG");//use background and opacity
    }
    
    if(caption===null){caption="";}
    $("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");//add loader to the page
    $('#TB_load').show();//show loader
    
    var baseURL;
     if(url.indexOf("?")!==-1){ //ff there is a query string involved
      baseURL = url.substr(0, url.indexOf("?"));
     }else{ 
         baseURL = url;
     }
     
     var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;
     var urlType = baseURL.toLowerCase().match(urlString);
    if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images
        
      TB_PrevCaption = "";
      TB_PrevURL = "";
      TB_PrevHTML = "";
      TB_NextCaption = "";
      TB_NextURL = "";
      TB_NextHTML = "";
      TB_imageCount = "";
      TB_FoundURL = false;
      if(imageGroup){
        TB_TempArray = $("a[@rel="+imageGroup+"]").get();
        for (TB_Counter = 0; ((TB_Counter < TB_TempArray.length) && (TB_NextHTML === "")); TB_Counter++) {
          var urlTypeTemp = TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);
            if (!(TB_TempArray[TB_Counter].href == url)) {            
              if (TB_FoundURL) {
                TB_NextCaption = TB_TempArray[TB_Counter].title;
                TB_NextURL = TB_TempArray[TB_Counter].href;
                TB_NextHTML = "<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>";
              } else {
                TB_PrevCaption = TB_TempArray[TB_Counter].title;
                TB_PrevURL = TB_TempArray[TB_Counter].href;
                TB_PrevHTML = "<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>";
              }
            } else {
              TB_FoundURL = true;
              TB_imageCount = "Image " + (TB_Counter + 1) +" of "+ (TB_TempArray.length);                      
            }
        }
      }
      imgPreloader = new Image();
      imgPreloader.onload = function(){    
      imgPreloader.onload = null;
        
      // Resizing large images - orginal by Christian Montoya edited by me.
      var pagesize = tb_getPageSize();
      var x = pagesize[0] - 150;
      var y = pagesize[1] - 150;
      var imageWidth = imgPreloader.width;
      var imageHeight = imgPreloader.height;
      if (imageWidth > x) {
        imageHeight = imageHeight * (x / imageWidth); 
        imageWidth = x; 
        if (imageHeight > y) { 
          imageWidth = imageWidth * (y / imageHeight); 
          imageHeight = y; 
        }
      } else if (imageHeight > y) { 
        imageWidth = imageWidth * (y / imageHeight); 
        imageHeight = y; 
        if (imageWidth > x) { 
          imageHeight = imageHeight * (x / imageWidth); 
          imageWidth = x;
        }
      }
      // End Resizing
      
      TB_WIDTH = imageWidth + 30;
      TB_HEIGHT = imageHeight + 60;
      $("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>" + "<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>");     
      
      $("#TB_closeWindowButton").click(tb_remove);
      
      if (!(TB_PrevHTML === "")) {
        function goPrev(){
          if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev);}
          $("#TB_window").remove();
          $("body").append("<div id='TB_window'></div>");
          tb_show(TB_PrevCaption, TB_PrevURL, imageGroup);
          return false;  
        }
        $("#TB_prev").click(goPrev);
      }
      
      if (!(TB_NextHTML === "")) {    
        function goNext(){
          $("#TB_window").remove();
          $("body").append("<div id='TB_window'></div>");
          tb_show(TB_NextCaption, TB_NextURL, imageGroup);        
          return false;  
        }
        $("#TB_next").click(goNext);
        
      }
      document.onkeydown = function(e){   
        if (e == null) { // ie
          keycode = event.keyCode;
        } else { // mozilla
          keycode = e.which;
        }
        if(keycode == 27){ // close
          tb_remove();
        } else if(keycode == 190){ // display previous image
          if(!(TB_NextHTML == "")){
            document.onkeydown = "";
            goNext();
          }
        } else if(keycode == 188){ // display next image
          if(!(TB_PrevHTML == "")){
            document.onkeydown = "";
            goPrev();
          }
        }  
      };
      
      tb_position();
      $("#TB_load").remove();
      $("#TB_ImageOff").click(tb_remove);
      $("#TB_window").css({display:"block"}); //for safari using css instead of show
      };
      
      imgPreloader.src = url;
    }else{//code to show html
      
      var queryString = url.replace(/^[^\?]+\??/,'');
      var params = tb_parseQuery( queryString );
      TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL
      TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL
      ajaxContentW = TB_WIDTH - 30;
      ajaxContentH = TB_HEIGHT - 45;
      
      if(url.indexOf('TB_iframe') != -1){// either iframe or ajax window    
          urlNoQuery = url.split('TB_');
          $("#TB_iframeContent").remove();
          if(params['modal'] != "true"){//iframe no modal
            $("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' > </iframe>");
          }else{//iframe modal
          $("#TB_overlay").unbind();
            $("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;'> </iframe>");
          }
      }else{// not an iframe, ajax
          if($("#TB_window").css("display") != "block"){
            if(params['modal'] != "true"){//ajax no modal
            $("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");
            }else{//ajax modal
            $("#TB_overlay").unbind();
            $("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");  
            }
          }else{//this means the window is already up, we are just loading new content via ajax
            $("#TB_ajaxContent")[0].style.width = ajaxContentW +"px";
            $("#TB_ajaxContent")[0].style.height = ajaxContentH +"px";
            $("#TB_ajaxContent")[0].scrollTop = 0;
            $("#TB_ajaxWindowTitle").html(caption);
          }
      }
          
      $("#TB_closeWindowButton").click(tb_remove);
      
        if(url.indexOf('TB_inline') != -1){  
          $("#TB_ajaxContent").append($('#' + params['inlineId']).children());
          $("#TB_window").unload(function () {
            $('#' + params['inlineId']).append( $("#TB_ajaxContent").children() ); // move elements back when you're finished
          });
          tb_position();
          $("#TB_load").remove();
          $("#TB_window").css({display:"block"}); 
        }else if(url.indexOf('TB_iframe') != -1){
          tb_position();
          if($.browser.safari){//safari needs help because it will not fire iframe onload
            $("#TB_load").remove();
            $("#TB_window").css({display:"block"});
          }
        }else{
          $("#TB_ajaxContent").load(url += "&random=" + (new Date().getTime()),function(){//to do a post change this load method
            tb_position();
            $("#TB_load").remove();
            tb_init("#TB_ajaxContent a.thickbox");
            //<crsp+>
            Drupal.attachBehaviors($('#TB_window'));
            //</crsp+>
            $("#TB_window").css({display:"block"});
          });
        }
      
    }
    if(!params['modal']){
      document.onkeyup = function(e){   
        if (e == null) { // ie
          keycode = event.keyCode;
        } else { // mozilla
          keycode = e.which;
        }
        if(keycode == 27){ // close
          tb_remove();
        }  
      };
    }
    
  } catch(e) {
    //nothing here
  }
}
//helper functions below
function tb_showIframe(){
  $("#TB_load").remove();
  $("#TB_window").css({display:"block"});
}
function tb_remove() {
   $("#TB_imageOff").unbind("click");
  $("#TB_closeWindowButton").unbind("click");
  $("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove();});
  $("#TB_load").remove();
  if (typeof document.body.style.maxHeight == "undefined") {//if IE 6
    $("body","html").css({height: "auto", width: "auto"});
    $("html").css("overflow","");
  }
  document.onkeydown = "";
  document.onkeyup = "";
  return false;
}
function tb_position() {
$("#TB_window").css({marginLeft: '-' + parseInt((TB_WIDTH / 2),10) + 'px', width: TB_WIDTH + 'px'});
  if ( !(jQuery.browser.msie && jQuery.browser.version < 7)) { // take away IE6
    $("#TB_window").css({marginTop: '-' + parseInt((TB_HEIGHT / 2),10) + 'px'});
  }
}
function tb_parseQuery ( query ) {
   var Params = {};
   if ( ! query ) {return Params;}// return empty object
   var Pairs = query.split(/[;&]/);
   for ( var i = 0; i < Pairs.length; i++ ) {
      var KeyVal = Pairs[i].split('=');
      if ( ! KeyVal || KeyVal.length != 2 ) {continue;}
      var key = unescape( KeyVal[0] );
      var val = unescape( KeyVal[1] );
      val = val.replace(/\+/g, ' ');
      Params[key] = val;
   }
   return Params;
}
function tb_getPageSize(){
  var de = document.documentElement;
  var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
  var h = window.innerHeight || self.innerHeight || (de&&de.clientHeight) || document.body.clientHeight;
  arrayPageSize = [w,h];
  return arrayPageSize;
}
function tb_detectMacXFF() {
  var userAgent = navigator.userAgent.toLowerCase();
  if (userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox')!=-1) {
    return true;
  }
}
;
// $Id: promos.js,v 1.2 2010/10/07 03:27:35 justindodge Exp $

Drupal.promos = {
};
Drupal.promos.loader = function() {
  $("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");
  $("#TB_overlay").click(tb_remove);
  if(tb_detectMacXFF()){
    $("#TB_overlay").addClass("TB_overlayMacFFBGHack");//use png overlay so hide flash
  }else{
    $("#TB_overlay").addClass("TB_overlayBG");//use background and opacity
  }
  $('body').append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");
  $('#TB_load').show();//show loader
}

Drupal.promos.unloader = function() {
  $("#TB_overlay").remove();
  $('#TB_load').remove();
}
/*Drupal.promos.tb_init_original = tb_init;

// new tb_init function - make sure to call reference to original function
Drupal.promos.tb_init = function(domChunk){
	//original function:
	 $(domChunk).click(function(){
  var t = this.title || this.name || null;
  var a = this.href || this.alt;
  var g = this.rel || false;
  tb_show(t,a,g);
  this.blur();
  Drupal.attachBehaviors($('#TB_window'));
  return false;
  });
  //Drupal.promos.tb_init_original(domchunk);
};

// overwrite tb_init with new function
tb_init = Drupal.promos.tb_init;*/

var gPromoId;

//now we can attach behaviors that will get executed on the markup returned in the thickbox window
//Note- jquery.thickbox.js has been modified so Drupal.attachBehaviors is called on it.  I forget why it had to be modified,
//I was probably having difficulty overriding a function...maybe I was just being lazy.
/*
Drupal.behaviors.promosassign = function(context) {
  //alert('works!');
  $('.promos-assign', context).click(function() {
    //close the thickbox
    tb_remove();
    gPromoId = this.rel;
    $('.promoblock').addClass('messages');
    $('.promoblock').addClass('error');
    $('.promoblock').one("click",function() {
      //alert(this.className+' rel:'+gPromoId);
      $(this).append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");//add loader to the page
      $('#TB_load').show();//show loader
      $('#'+this.id).load('/promos/assign/'+this.id+'/'+gPromoId,function() {
      //alert('ajax success');
        $('.promoblock').removeClass('messages');
        $('.promoblock').removeClass('error');
      });
    });
    return false;
  });
*/
Drupal.behaviors.promobehaviors = function(context) {
  $('.donthide').show();
  //reattach thickbox links
  tb_init($('a.promothickbox, area.promothickbox, input.promothickbox', context));
  
  //This is the link handler for creation links clicked in the thickbox
  $('.promo-create', context).click(function() {
    var href = this.href;
    if($("#promos-global:checked").length) {
      href += '&global=1';
    }
    location = href;
    return false;
  });
  
  //This is the link handler for assignment links clicked in the thickbox
  $('.promos-assign', context).click(function() {
    //close the thickbox
    tb_remove();
    
    var href, parentid, global;
    parentid = '#'+this.rel;
    //href = this.href+'&destination='+location.pathname;
    href = this.href;
    if($("#promos-global:checked").length) {
      href += '&global=1';
    }
    
    Drupal.promos.loader();
    
    $(parentid).load(href,function() {
      Drupal.attachBehaviors($(parentid));
      Drupal.promos.unloader();
    });
    return false;
  });
  
  $('.promos-remove', context).click(function(event) {
    //@todo - notice this is duplicate code as above..
    var href, parentid;
    href = this.href;
    parentid = '#'+this.rel;
    
    Drupal.promos.loader();
    
    $(parentid).load(href,function() { 
      Drupal.attachBehaviors($(parentid));
      Drupal.promos.unloader();
    });
    return false;
  });
  
  $('.promos-reorder', context).click(function(event) {
    //@todo - notice this is duplicate code as above..
    var href, parentid;
    href = this.href;
    parentid = '#'+this.rel;
    
    Drupal.promos.loader();
    
    $(parentid).load(href,function() { 
      Drupal.attachBehaviors($(parentid));
      Drupal.promos.unloader();
    });
    gPromoId = parentid;
    return false;
  });
  
  var options = { 
    target:        gPromoId,   // target element(s) to be updated with server response 
    beforeSubmit:  function() {
      //$('body').append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");
      //$('#TB_load').show();//show loader
      Drupal.promos.loader();
    },
    success: function() {
      $('#TB_load').hide();//show loader
      Drupal.attachBehaviors($(gPromoId));
      Drupal.promos.unloader();
    }
  }; 
  
  // bind form using 'ajaxForm' 
  $('#promos-reorder-form',context).ajaxForm(options); 
  
}


//////////////////////////////////
Drupal.behaviors.resourceLibraries = function(context){
  //hide or unhide child items when a parent is expanded
  $(".toggle a", context).click(function(event){

    var el = $(this.parentNode.parentNode.parentNode.parentNode);
    var next;

    var depth = Number($(el).attr('rel'))+1;

    $('.toggle',this.parentNode.parentNode.parentNode).toggle();
    $('.depth-'+depth,el).toggle();
    /*while(el.next('.depth-'+depth).length) {
      next = el.next('.depth-'+depth);
      $(next).toggle();
      el = next;
    }*/
    return false;
  });
};
// $Id: promos-controls.js,v 1.1 2009/05/14 08:39:52 justindodge Exp $

Drupal.behaviors.promocontrolsbehaviors = function(context) {
  $('.promo-item').hover(
    function() {
      var offset = $(this).position();//offset()
      $('.promo-controls',this).css('position','absolute').css('left',offset.left).css('top',offset.top).fadeIn(200);
      //$('.promo-controls',this).fadeIn(200);
    },
    function() {
      $('.promo-controls',this).fadeOut(200);
    }
  );
  
  $('.promoblock').hover(
    function() {
      if($('.donthide',this).length) { return; }
      $('.promos-controls',this).fadeIn(200);
    },
    function() {
      if($('.donthide',this).length) { return; }
      $('.promos-controls',this).fadeOut(200);
    }
  );
  
};
Drupal.behaviors.spamspan=function(_1){$("span."+Drupal.settings.spamspan.m,_1).each(function(_2){var _3=($("span."+Drupal.settings.spamspan.u,this).text()+"@"+$("span."+Drupal.settings.spamspan.d,this).text()).replace(/\s+/g,"").replace(/\[dot\]/g,".");var _4=$("span."+Drupal.settings.spamspan.h,this).text().replace(/^ ?\((.*)\) ?$/,"$1");var _5=$.map(_4.split(/, /),function(n,i){return (n.replace(/: /,"="));});var _6=$("span."+Drupal.settings.spamspan.t,this).text().replace(/^ \((.*)\)$/,"$1");var _7="mailto:"+encodeURIComponent(_3);var _8=_5.join("&");_7+=_8?("?"+_8):"";$(this).after($("<a></a>").attr("href",_7).html(_6?_6:_3).addClass("spamspan")).remove();});};;
// $Id: spoiler.js,v 1.1.2.2 2009/03/11 15:32:40 karthik Exp $

Drupal.behaviors.spoiler = function() {
  $('.spoiler')
    .addClass('spoiler-js')
    .removeClass('spoiler')
    .click(function() {
      $(this).children().toggle('normal');
    })
    .children('.spoiler-warning')
    .html(Drupal.t('<span title="Click to view">Spoiler</span>'))
    .siblings('.spoiler-content')
    .hide();
}
;
// $Id: swftools_flowplayer3.js,v 1.1.2.6 2010/04/07 21:33:36 stuartgreenfield Exp $

/**
 * Ensure swftools namespace is established.
 */
var swftools = swftools || {};

/**
* Define Flowplayer functions here.
*/
swftools.flowplayer3 = function() {
  var instances = [];
  var activePlayerID = null;
  var flowplayer_api = false;
    
  function getPlayer (playerID) {
    if (flowplayer_api) {
      return swftools.getObject(playerID + '_api');
    }
    return swftools.getObject(playerID);
  };
  
  return {
    flowplayer3_api_present: function() {
      flowplayer_api = true;
    },
    pushInstance: function(playerID) {
      instances.push(playerID);
    },
    activate: function(playerID) {
      if (activePlayerID && activePlayerID != playerID) {
        getPlayer(activePlayerID).fp_pause();
      };
      activePlayerID = playerID;
    },
    play: function(playerID) {
      getPlayer(playerID).fp_play();
    },
    pause: function(playerID) {
      getPlayer(playerID).fp_pause();
    },
    stop: function(playerID) {
      getPlayer(playerID).fp_stop();
    },
    mute: function(playerID) {
      getPlayer(playerID).fp_mute();
    },
    unmute: function(playerID) {
      getPlayer(playerID).fp_unmute();
    }
  }
}();

Drupal.behaviors.swftools_flowplayer3 = function (context) {
  $('.swftools-flowplayer3:not(.swftools-flowplayer3-processed)', context).addClass('swftools-flowplayer3-processed').each(function () {
    var playerID = $(this).attr('id').substring(9);

    // @HACK: Don't need no console logging.
    //console.log($(this).attr('class'));

    swftools.flowplayer3.pushInstance(playerID);
    if (typeof $f != 'undefined') {
      $f(playerID).onStart(function() {
        swftools.flowplayer3.activate(playerID); 
      });
      $f(playerID).onResume(function() {
        swftools.flowplayer3.activate(playerID); 
      });
    };
  });
  $('[class^=flowplayer3-accessible]:not(.swftools-flowplayer3-processed)', context).addClass('swftools-flowplayer3-processed').each(function () {
    $(this).click(function(){
      var classes = $(this).attr('class');
      var classes = classes.split(' ');
      var parts = classes[0].split('-');
      var idStarts = 24 + parts[2].length;
      var action = "swftools.flowplayer3." + parts[2] + "('" + classes[0].substring(idStarts) + "')";
      eval(action);
      return false;
    });
  });
  if (typeof $f != 'undefined') {
    swftools.flowplayer3.flowplayer3_api_present();
  };
};

// If flowplayer not yet created we create our own version to handle auto-pause. It will be over-written by flowplayer.js if it is called.
if (typeof flowplayer == 'undefined') {
  var flowplayer = {};
  flowplayer.fireEvent = function() {
      var a = [].slice.call(arguments);
//      console.log(a[1] + ' : ' + a[0]);
      if (a[1] == 'onStart' || a[1] == 'onResume') {
        swftools.flowplayer3.activate(a[0]);
      };
  };
};
;
/* 
 * flowplayer.js 3.2.4. The Flowplayer API
 * 
 * Copyright 2009 Flowplayer Oy
 * 
 * This file is part of Flowplayer.
 * 
 * Flowplayer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Flowplayer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Flowplayer.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * Date: 2010-08-25 12:48:46 +0000 (Wed, 25 Aug 2010)
 * Revision: 551 
 */
(function(){function g(o){console.log("$f.fireEvent",[].slice.call(o))}function k(q){if(!q||typeof q!="object"){return q}var o=new q.constructor();for(var p in q){if(q.hasOwnProperty(p)){o[p]=k(q[p])}}return o}function m(t,q){if(!t){return}var o,p=0,r=t.length;if(r===undefined){for(o in t){if(q.call(t[o],o,t[o])===false){break}}}else{for(var s=t[0];p<r&&q.call(s,p,s)!==false;s=t[++p]){}}return t}function c(o){return document.getElementById(o)}function i(q,p,o){if(typeof p!="object"){return q}if(q&&p){m(p,function(r,s){if(!o||typeof s!="function"){q[r]=s}})}return q}function n(s){var q=s.indexOf(".");if(q!=-1){var p=s.slice(0,q)||"*";var o=s.slice(q+1,s.length);var r=[];m(document.getElementsByTagName(p),function(){if(this.className&&this.className.indexOf(o)!=-1){r.push(this)}});return r}}function f(o){o=o||window.event;if(o.preventDefault){o.stopPropagation();o.preventDefault()}else{o.returnValue=false;o.cancelBubble=true}return false}function j(q,o,p){q[o]=q[o]||[];q[o].push(p)}function e(){return"_"+(""+Math.random()).slice(2,10)}var h=function(t,r,s){var q=this,p={},u={};q.index=r;if(typeof t=="string"){t={url:t}}i(this,t,true);m(("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop").split(","),function(){var v="on"+this;if(v.indexOf("*")!=-1){v=v.slice(0,v.length-1);var w="onBefore"+v.slice(2);q[w]=function(x){j(u,w,x);return q}}q[v]=function(x){j(u,v,x);return q};if(r==-1){if(q[w]){s[w]=q[w]}if(q[v]){s[v]=q[v]}}});i(this,{onCuepoint:function(x,w){if(arguments.length==1){p.embedded=[null,x];return q}if(typeof x=="number"){x=[x]}var v=e();p[v]=[x,w];if(s.isLoaded()){s._api().fp_addCuepoints(x,r,v)}return q},update:function(w){i(q,w);if(s.isLoaded()){s._api().fp_updateClip(w,r)}var v=s.getConfig();var x=(r==-1)?v.clip:v.playlist[r];i(x,w,true)},_fireEvent:function(v,y,w,A){if(v=="onLoad"){m(p,function(B,C){if(C[0]){s._api().fp_addCuepoints(C[0],r,B)}});return false}A=A||q;if(v=="onCuepoint"){var z=p[y];if(z){return z[1].call(s,A,w)}}if(y&&"onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(v)!=-1){i(A,y);if(y.metaData){if(!A.duration){A.duration=y.metaData.duration}else{A.fullDuration=y.metaData.duration}}}var x=true;m(u[v],function(){x=this.call(s,A,y,w)});return x}});if(t.onCuepoint){var o=t.onCuepoint;q.onCuepoint.apply(q,typeof o=="function"?[o]:o);delete t.onCuepoint}m(t,function(v,w){if(typeof w=="function"){j(u,v,w);delete t[v]}});if(r==-1){s.onCuepoint=this.onCuepoint}};var l=function(p,r,q,t){var o=this,s={},u=false;if(t){i(s,t)}m(r,function(v,w){if(typeof w=="function"){s[v]=w;delete r[v]}});i(this,{animate:function(y,z,x){if(!y){return o}if(typeof z=="function"){x=z;z=500}if(typeof y=="string"){var w=y;y={};y[w]=z;z=500}if(x){var v=e();s[v]=x}if(z===undefined){z=500}r=q._api().fp_animate(p,y,z,v);return o},css:function(w,x){if(x!==undefined){var v={};v[w]=x;w=v}r=q._api().fp_css(p,w);i(o,r);return o},show:function(){this.display="block";q._api().fp_showPlugin(p);return o},hide:function(){this.display="none";q._api().fp_hidePlugin(p);return o},toggle:function(){this.display=q._api().fp_togglePlugin(p);return o},fadeTo:function(y,x,w){if(typeof x=="function"){w=x;x=500}if(w){var v=e();s[v]=w}this.display=q._api().fp_fadeTo(p,y,x,v);this.opacity=y;return o},fadeIn:function(w,v){return o.fadeTo(1,w,v)},fadeOut:function(w,v){return o.fadeTo(0,w,v)},getName:function(){return p},getPlayer:function(){return q},_fireEvent:function(w,v,x){if(w=="onUpdate"){var z=q._api().fp_getPlugin(p);if(!z){return}i(o,z);delete o.methods;if(!u){m(z.methods,function(){var B=""+this;o[B]=function(){var C=[].slice.call(arguments);var D=q._api().fp_invoke(p,B,C);return D==="undefined"||D===undefined?o:D}});u=true}}var A=s[w];if(A){var y=A.apply(o,v);if(w.slice(0,1)=="_"){delete s[w]}return y}return o}})};function b(q,G,t){var w=this,v=null,D=false,u,s,F=[],y={},x={},E,r,p,C,o,A;i(w,{id:function(){return E},isLoaded:function(){return(v!==null&&v.fp_play!==undefined&&!D)},getParent:function(){return q},hide:function(H){if(H){q.style.height="0px"}if(w.isLoaded()){v.style.height="0px"}return w},show:function(){q.style.height=A+"px";if(w.isLoaded()){v.style.height=o+"px"}return w},isHidden:function(){return w.isLoaded()&&parseInt(v.style.height,10)===0},load:function(J){if(!w.isLoaded()&&w._fireEvent("onBeforeLoad")!==false){var H=function(){u=q.innerHTML;if(u&&!flashembed.isSupported(G.version)){q.innerHTML=""}if(J){J.cached=true;j(x,"onLoad",J)}flashembed(q,G,{config:t})};var I=0;m(a,function(){this.unload(function(K){if(++I==a.length){H()}})})}return w},unload:function(J){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent)){if(J){J(false)}return w}if(u.replace(/\s/g,"")!==""){if(w._fireEvent("onBeforeUnload")===false){if(J){J(false)}return w}D=true;try{if(v){v.fp_close();w._fireEvent("onUnload")}}catch(H){}var I=function(){v=null;q.innerHTML=u;D=false;if(J){J(true)}};setTimeout(I,50)}else{if(J){J(false)}}return w},getClip:function(H){if(H===undefined){H=C}return F[H]},getCommonClip:function(){return s},getPlaylist:function(){return F},getPlugin:function(H){var J=y[H];if(!J&&w.isLoaded()){var I=w._api().fp_getPlugin(H);if(I){J=new l(H,I,w);y[H]=J}}return J},getScreen:function(){return w.getPlugin("screen")},getControls:function(){return w.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return w.getPlugin("logo")._fireEvent("onUpdate")}catch(H){}},getPlay:function(){return w.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(H){return H?k(t):t},getFlashParams:function(){return G},loadPlugin:function(K,J,M,L){if(typeof M=="function"){L=M;M={}}var I=L?e():"_";w._api().fp_loadPlugin(K,J,M,I);var H={};H[I]=L;var N=new l(K,null,w,H);y[K]=N;return N},getState:function(){return w.isLoaded()?v.fp_getState():-1},play:function(I,H){var J=function(){if(I!==undefined){w._api().fp_play(I,H)}else{w._api().fp_play()}};if(w.isLoaded()){J()}else{if(D){setTimeout(function(){w.play(I,H)},50)}else{w.load(function(){J()})}}return w},getVersion:function(){var I="flowplayer.js 3.2.4";if(w.isLoaded()){var H=v.fp_getVersion();H.push(I);return H}return I},_api:function(){if(!w.isLoaded()){throw"Flowplayer "+w.id()+" not loaded when calling an API method"}return v},setClip:function(H){w.setPlaylist([H]);return w},getIndex:function(){return p},_swfHeight:function(){return v.clientHeight}});m(("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut").split(","),function(){var H="on"+this;if(H.indexOf("*")!=-1){H=H.slice(0,H.length-1);var I="onBefore"+H.slice(2);w[I]=function(J){j(x,I,J);return w}}w[H]=function(J){j(x,H,J);return w}});m(("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffering,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled").split(","),function(){var H=this;w[H]=function(J,I){if(!w.isLoaded()){return w}var K=null;if(J!==undefined&&I!==undefined){K=v["fp_"+H](J,I)}else{K=(J===undefined)?v["fp_"+H]():v["fp_"+H](J)}return K==="undefined"||K===undefined?w:K}});w._fireEvent=function(Q){if(typeof Q=="string"){Q=[Q]}var R=Q[0],O=Q[1],M=Q[2],L=Q[3],K=0;if(t.debug){g(Q)}if(!w.isLoaded()&&R=="onLoad"&&O=="player"){v=v||c(r);o=w._swfHeight();m(F,function(){this._fireEvent("onLoad")});m(y,function(S,T){T._fireEvent("onUpdate")});s._fireEvent("onLoad")}if(R=="onLoad"&&O!="player"){return}if(R=="onError"){if(typeof O=="string"||(typeof O=="number"&&typeof M=="number")){O=M;M=L}}if(R=="onContextMenu"){m(t.contextMenu[O],function(S,T){T.call(w)});return}if(R=="onPluginEvent"||R=="onBeforePluginEvent"){var H=O.name||O;var I=y[H];if(I){I._fireEvent("onUpdate",O);return I._fireEvent(M,Q.slice(3))}return}if(R=="onPlaylistReplace"){F=[];var N=0;m(O,function(){F.push(new h(this,N++,w))})}if(R=="onClipAdd"){if(O.isInStream){return}O=new h(O,M,w);F.splice(M,0,O);for(K=M+1;K<F.length;K++){F[K].index++}}var P=true;if(typeof O=="number"&&O<F.length){C=O;var J=F[O];if(J){P=J._fireEvent(R,M,L)}if(!J||P!==false){P=s._fireEvent(R,M,L,J)}}m(x[R],function(){P=this.call(w,O,M);if(this.cached){x[R].splice(K,1)}if(P===false){return false}K++});return P};function B(){if($f(q)){$f(q).getParent().innerHTML="";p=$f(q).getIndex();a[p]=w}else{a.push(w);p=a.length-1}A=parseInt(q.style.height,10)||q.clientHeight;E=q.id||"fp"+e();r=G.id||E+"_api";G.id=r;t.playerId=E;if(typeof t=="string"){t={clip:{url:t}}}if(typeof t.clip=="string"){t.clip={url:t.clip}}t.clip=t.clip||{};if(q.getAttribute("href",2)&&!t.clip.url){t.clip.url=q.getAttribute("href",2)}s=new h(t.clip,-1,w);t.playlist=t.playlist||[t.clip];var I=0;m(t.playlist,function(){var K=this;if(typeof K=="object"&&K.length){K={url:""+K}}m(t.clip,function(L,M){if(M!==undefined&&K[L]===undefined&&typeof M!="function"){K[L]=M}});t.playlist[I]=K;K=new h(K,I,w);F.push(K);I++});m(t,function(K,L){if(typeof L=="function"){if(s[K]){s[K](L)}else{j(x,K,L)}delete t[K]}});m(t.plugins,function(K,L){if(L){y[K]=new l(K,L,w)}});if(!t.plugins||t.plugins.controls===undefined){y.controls=new l("controls",null,w)}y.canvas=new l("canvas",null,w);u=q.innerHTML;function J(L){var K=w.hasiPadSupport&&w.hasiPadSupport();if(/iPad|iPhone|iPod/i.test(navigator.userAgent)&&!/.flv$/i.test(F[0].url)&&!K){return true}if(!w.isLoaded()&&w._fireEvent("onBeforeClick")!==false){w.load()}return f(L)}function H(){if(u.replace(/\s/g,"")!==""){if(q.addEventListener){q.addEventListener("click",J,false)}else{if(q.attachEvent){q.attachEvent("onclick",J)}}}else{if(q.addEventListener){q.addEventListener("click",f,false)}w.load()}}setTimeout(H,0)}if(typeof q=="string"){var z=c(q);if(!z){throw"Flowplayer cannot access element: "+q}q=z;B()}else{B()}}var a=[];function d(o){this.length=o.length;this.each=function(p){m(o,p)};this.size=function(){return o.length}}window.flowplayer=window.$f=function(){var p=null;var o=arguments[0];if(!arguments.length){m(a,function(){if(this.isLoaded()){p=this;return false}});return p||a[0]}if(arguments.length==1){if(typeof o=="number"){return a[o]}else{if(o=="*"){return new d(a)}m(a,function(){if(this.id()==o.id||this.id()==o||this.getParent()==o){p=this;return false}});return p}}if(arguments.length>1){var t=arguments[1],q=(arguments.length==3)?arguments[2]:{};if(typeof t=="string"){t={src:t}}t=i({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:true},t);if(typeof o=="string"){if(o.indexOf(".")!=-1){var s=[];m(n(o),function(){s.push(new b(this,k(t),k(q)))});return new d(s)}else{var r=c(o);return new b(r!==null?r:o,t,q)}}else{if(o){return new b(o,t,q)}}}return null};i(window.$f,{fireEvent:function(){var o=[].slice.call(arguments);var q=$f(o[0]);return q?q._fireEvent(o.slice(1)):null},addPlugin:function(o,p){b.prototype[o]=p;return $f},each:m,extend:i});if(typeof jQuery=="function"){jQuery.fn.flowplayer=function(q,p){if(!arguments.length||typeof arguments[0]=="number"){var o=[];this.each(function(){var r=$f(this);if(r){o.push(r)}});return arguments.length?o[arguments[0]]:new d(o)}return this.each(function(){$f(this,k(q),p?k(p):{})})}}})();(function(){var h=document.all,j="http://www.adobe.com/go/getflashplayer",c=typeof jQuery=="function",e=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,b={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function i(m,l){if(l){for(var f in l){if(l.hasOwnProperty(f)){m[f]=l[f]}}}return m}function a(f,n){var m=[];for(var l in f){if(f.hasOwnProperty(l)){m[l]=n(f[l])}}return m}window.flashembed=function(f,m,l){if(typeof f=="string"){f=document.getElementById(f.replace("#",""))}if(!f){return}if(typeof m=="string"){m={src:m}}return new d(f,i(i({},b),m),l)};var g=i(window.flashembed,{conf:b,getVersion:function(){var m,f;try{f=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(o){try{m=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");f=m&&m.GetVariable("$version")}catch(n){try{m=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=m&&m.GetVariable("$version")}catch(l){}}}f=e.exec(f);return f?[f[1],f[3]]:[0,0]},asString:function(l){if(l===null||l===undefined){return null}var f=typeof l;if(f=="object"&&l.push){f="array"}switch(f){case"string":l=l.replace(new RegExp('(["\\\\])',"g"),"\\$1");l=l.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+l+'"';case"array":return"["+a(l,function(o){return g.asString(o)}).join(",")+"]";case"function":return'"function()"';case"object":var m=[];for(var n in l){if(l.hasOwnProperty(n)){m.push('"'+n+'":'+g.asString(l[n]))}}return"{"+m.join(",")+"}"}return String(l).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(o,l){o=i({},o);var n='<object width="'+o.width+'" height="'+o.height+'" id="'+o.id+'" name="'+o.id+'"';if(o.cachebusting){o.src+=((o.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(o.w3c||!h){n+=' data="'+o.src+'" type="application/x-shockwave-flash"'}else{n+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}n+=">";if(o.w3c||h){n+='<param name="movie" value="'+o.src+'" />'}o.width=o.height=o.id=o.w3c=o.src=null;o.onFail=o.version=o.expressInstall=null;for(var m in o){if(o[m]){n+='<param name="'+m+'" value="'+o[m]+'" />'}}var p="";if(l){for(var f in l){if(l[f]){var q=l[f];p+=f+"="+(/function|object/.test(typeof q)?g.asString(q):q)+"&"}}p=p.slice(0,-1);n+='<param name="flashvars" value=\''+p+"' />"}n+="</object>";return n},isSupported:function(f){return k[0]>f[0]||k[0]==f[0]&&k[1]>=f[1]}});var k=g.getVersion();function d(f,n,m){if(g.isSupported(n.version)){f.innerHTML=g.getHTML(n,m)}else{if(n.expressInstall&&g.isSupported([6,65])){f.innerHTML=g.getHTML(i(n,{src:n.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title})}else{if(!f.innerHTML.replace(/\s/g,"")){f.innerHTML="<h2>Flash version "+n.version+" or greater is required</h2><h3>"+(k[0]>0?"Your version is "+k:"You have no flash plugin installed")+"</h3>"+(f.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+j+"'>here</a></p>");if(f.tagName=="A"){f.onclick=function(){location.href=j}}}if(n.onFail){var l=n.onFail.call(this);if(typeof l=="string"){f.innerHTML=l}}}}if(h){window[n.id]=document.getElementById(n.id)}i(this,{getRoot:function(){return f},getOptions:function(){return n},getConf:function(){return m},getApi:function(){return f.firstChild}})}if(c){jQuery.tools=jQuery.tools||{version:"3.2.4"};jQuery.tools.flashembed={conf:b};jQuery.fn.flashembed=function(l,f){return this.each(function(){$(this).data("flashembed",flashembed(this,l,f))})}}})();;
/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();;
// $Id: swftools.js,v 1.1.2.5 2010/03/31 22:23:37 stuartgreenfield Exp $

/**
 * Ensure swftools namespace is established.
 */
var swftools = swftools || {};

/**
 * Returns a DOM object that points to the flash content with the supplied id. 
 */
swftools.getObject = function(objectID) {
  
  // Get the base object
  swftoolsObject = document.getElementById(objectID);
  
  // See if we can get the object like this (IE/Chrome)
  if (typeof swftoolsObject == 'object') {
    return swftoolsObject;
  }
  // See if we can get the object like this (FF with swfobject embedding)
  if (typeof swftoolsObject.attributes.type != 'undefined' && swftoolsObject.attributes.type.value == 'application/x-shockwave-flash') {
    return swftoolsObject;
  }
  // Otherwise try this (FF with direct embedding)
  return swftoolsObject.getElementsByTagName('object')[0];
}

;
// $Id$
/**
 * @file
 * THQ Core module JavaScript.
 */
$(document).ready(function() {

  thq_init_dob();

  thq_init_location();

  thq_init_forum_jump();

  if (typeof Drupal.settings.thq_age_gate != 'undefined') {
    if (Drupal.settings.thq_age_gate.check_age) {
      thq_check_age_gate();
    }
  }
});


/*
 * Add JS to user DOB fields.
 */
function thq_init_dob() {
  var $dob_elements = $("#edit-dob-wrapper");
  if ($dob_elements.length > 0) {
    // Add default values to user birth dates.
    $("#edit-dob-month").each(function(){
      thq_master_default_value($(this), 'MM');
    });

    $("#edit-dob-day").each(function(){
      thq_master_default_value($(this), 'DD');
    });

    $("#edit-dob-year").each(function(){
      thq_master_default_value($(this), 'YYYY');
    });

    // @todo: Add the jumpy thing inside the user birth date.
  }
}


/*
 * Add JS to user location fields.
 */
function thq_init_location() {

  // Wherever there is a country drop-down, tweak the state and province.
  var $country = $("#edit-country");
  var $state = $("#edit-state-wrapper");
  var $province = $("#edit-province-wrapper");

  if ($country.length > 0 && ($state.length > 0 || $province.length > 0)) {
    
    var toggle_country = function ($country, $state, $province) {
      $state.hide();
      $province.hide();

      if ($country.val() == 'US') {
        $state.show();
      }

      if ($country.val() == 'CA') {
        $province.show();
      }
    }
    
    var init_location_dropdowns = function ($country, $state, $province) {
      $country.change(function(){
        toggle_country($country, $state, $province);
      });

      toggle_country($country, $state, $province);
    }

    init_location_dropdowns($country, $state, $province);
  }
}


/*
 * Handle forum jump menu with JavaScript.
 */
function thq_init_forum_jump() {
  var $jump_form = $("#thq-forum-jump-form");
  if ($jump_form.length > 0) {
    
    var $select = $("#edit-forum-jump");
    
    var jump = function($select) {
      new_location = $select.val();
      if (new_location != '') {
        window.location = Drupal.settings.basePath + new_location;
      }
    }
    
    $select.change(function() {
      jump($(this));
    });
    
    $jump_form.submit(function(e) {
      e.preventDefault();
      jump($select);
    });

    // Hide submit button.
    $jump_form.find("#edit-submit").hide();
  }
}


/**
 * Check the age gate.
 * This is basically a close copy of thq_preprocess_page() in the thq.module.
 */
function thq_check_age_gate() {

  var age_gate_settings = Drupal.settings.thq_age_gate;

  //console.log(age_gate_settings);

  // Determine if the user successfully passed the age gate already.
  var passed_status = 'NEVER';

  //console.log('Cookie:');
  //console.log($.cookie(age_gate_settings.THQ_COOKIE_CAN_ENTER));
  //console.log('Session:');
  //console.log($.cookie(age_gate_settings.THQ_SESSION_COOKIE_CAN_ENTER));

  // If there's a cookie, user is OK.
  if ($.cookie(age_gate_settings.THQ_COOKIE_CAN_ENTER) == '1') {
    passed_status = 'OK';
  }

  // User is too young!
  if ($.cookie(age_gate_settings.THQ_SESSION_COOKIE_CAN_ENTER) == 'FALSE') {
    passed_status = 'TOO_YOUNG';
  }

  //console.log(passed_status); return;

  // Special case for 404 403.
  if (age_gate_settings.flag_404) {

    // Display age gate, if user hasn't passed the age gate.
    if (passed_status == 'TOO_YOUNG' || passed_status == 'NEVER') {
      window.location = Drupal.settings.basePath + 'age-gate/enter';
    }
  }

  // All other pages.
  else {

    switch (passed_status) {

      // User is fine, but for some reason is on the age gate page.
      case 'OK':
        if (age_gate_settings.arguments[0] == 'age-gate') {
          window.location = Drupal.settings.basePath + age_gate_settings.front_page;
        }
        break;

      // User is too young.
      case 'TOO_YOUNG':
        if (age_gate_settings.arguments[0] == 'age-gate' && age_gate_settings.arguments[1] == 'denied') {
          // Do nothing
        }
        else {
          window.location = Drupal.settings.basePath + 'age-gate/denied';
        }
        break;

      // User never entered their age.
      case 'NEVER':
      default:

        if (age_gate_settings.arguments[0] == 'age-gate' && age_gate_settings.arguments[1] == 'enter') {
          // Do nothing.
        }
        else {
          window.location = Drupal.settings.basePath + 'age-gate/enter?' + age_gate_settings.destination;
        }
        break;
    }
  }
}


/**
 * Helper function. Replace links in text with A tags.
 */
function thq_link_urls(text, additional_properties) {
  var exp = /(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
  return text.replace(exp, '<a href="$1" ' + additional_properties + ' >$1</a>');
}


/**
 * Helper function. Parse Date form ISO 8601 format.
 * http://webcloud.se/log/JavaScript-and-ISO-8601/
 */
Date.prototype.setISO8601 = function (string) {
    var regexp = "([0-9]{4})(-([0-9]{2})(-([0-9]{2})" +
        "(T([0-9]{2}):([0-9]{2})(:([0-9]{2})(\.([0-9]+))?)?" +
        "(Z|(([-+])([0-9]{2}):([0-9]{2})))?)?)?)?";
    var d = string.match(new RegExp(regexp));

    var offset = 0;
    var date = new Date(d[1], 0, 1);

    if (d[3]) { date.setMonth(d[3] - 1); }
    if (d[5]) { date.setDate(d[5]); }
    if (d[7]) { date.setHours(d[7]); }
    if (d[8]) { date.setMinutes(d[8]); }
    if (d[10]) { date.setSeconds(d[10]); }
    if (d[12]) { date.setMilliseconds(Number("0." + d[12]) * 1000); }
    if (d[14]) {
        offset = (Number(d[16]) * 60) + Number(d[17]);
        offset *= ((d[15] == '-') ? 1 : -1);
    }

    offset -= date.getTimezoneOffset();
    time = (Number(date) + (offset * 60 * 1000));
    this.setTime(Number(time));
}
;
/**
 * Cookie plugin
 *
 * Copyright (c) 2006 Klaus Hartl (stilbuero.de)
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 *
 */

/**
 * Create a cookie with the given name and value and other optional parameters.
 *
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Set the value of a cookie.
 * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true });
 * @desc Create a cookie with all available options.
 * @example $.cookie('the_cookie', 'the_value');
 * @desc Create a session cookie.
 * @example $.cookie('the_cookie', null);
 * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain
 *       used when the cookie was set.
 *
 * @param String name The name of the cookie.
 * @param String value The value of the cookie.
 * @param Object options An object literal containing key/value pairs to provide optional cookie attributes.
 * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object.
 *                             If a negative value is specified (e.g. a date in the past), the cookie will be deleted.
 *                             If set to null or omitted, the cookie will be a session cookie and will not be retained
 *                             when the the browser exits.
 * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie).
 * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie).
 * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will
 *                        require a secure protocol (like HTTPS).
 * @type undefined
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */

/**
 * Get the value of a cookie with the given name.
 *
 * @example $.cookie('the_cookie');
 * @desc Get the value of a cookie.
 *
 * @param String name The name of the cookie.
 * @return The value of the cookie.
 * @type String
 *
 * @name $.cookie
 * @cat Plugins/Cookie
 * @author Klaus Hartl/klaus.hartl@stilbuero.de
 */
jQuery.cookie = function(name, value, options) {
    if (typeof value != 'undefined') { // name and value given, set cookie
        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(); // use expires attribute, max-age is not supported by IE
        }
        // CAUTION: Needed to parenthesize options.path and options.domain
        // in the following expressions, otherwise they evaluate to undefined
        // in the packed version for some reason...
        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 { // only name given, get cookie
        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]);
                // Does this cookie string begin with the name we want?
                if (cookie.substring(0, name.length + 1) == (name + '=')) {
                    cookieValue = decodeURIComponent(cookie.substring(name.length + 1));
                    break;
                }
            }
        }
        return cookieValue;
    }
};
;
/*
 * THQ Jumbotron JS.
 */

$(document).ready(function() {
  var $jumbotron = $("#thq-jumbotron");
  if ($jumbotron.length > 0) {
    thq_jumbotron_init($jumbotron);
  }
});


/*
 * Init the jQuery cycle plugin on the THQ Jumbotron.
 *
 * http://jquery.malsup.com/cycle
 *
 * If you want to tweak the cycle plugin effects, or anything else,
 *
 * -- DO NOT CHANGE IT IN HERE ! --
 *
 * Just add a JavaScript function called thq_jumbotron_init() to your theme
 * and put any JavaScript you want in there.
 */
function thq_jumbotron_init($jumbotron) {
//  $jumbotron.cycle({
//    fx: 'scrollHorz',
//    timeout: 6000,
//    speed: 500,
//    pager:  '#thq-jumbotron-pager',
//    slideExpr: 'a'
//  });

  $jumbotron_slides = $("#thq-jumbotron-slides");

  $jumbotron_slides.cycle({
    fx: 'fade',
    timeout: 6000,
    speed: 500,
    pager:  '#thq-jumbotron-pager',
    slideExpr: 'a',
    pagerAnchorBuilder: function(idx, slide) {
      return '#thq-jumbotron-pager a:eq(' + idx + ')';
    }
  });
}
;
/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version: 2.88 (08-JUN-2010)
 * Dual licensed under the MIT and GPL licenses.
 * http://jquery.malsup.com/license.html
 * Requires: jQuery v1.2.6 or later
 */
(function($){var ver="2.88";if($.support==undefined){$.support={opacity:!($.browser.msie)};}function debug(s){if($.fn.cycle.debug){log(s);}}function log(){if(window.console&&window.console.log){window.console.log("[cycle] "+Array.prototype.join.call(arguments," "));}}$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false){return;}opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false){return;}var startTime=opts2.continuous?10:getTimeout(els[opts2.currSlide],els[opts2.nextSlide],opts2,!opts2.rev);if(startTime){startTime+=(opts2.delay||0);if(startTime<10){startTime=10;}debug("first timeout: "+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,(!opts2.rev&&!opts.backwards));},startTime);}});};function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined){cont.cycleStop=0;}if(options===undefined||options===null){options={};}if(options.constructor==String){switch(options){case"destroy":case"stop":var opts=$(cont).data("cycle.opts");if(!opts){return false;}cont.cycleStop++;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);}cont.cycleTimeout=0;$(cont).removeData("cycle.opts");if(options=="destroy"){destroy(opts);}return false;case"toggle":cont.cyclePause=(cont.cyclePause===1)?0:1;checkInstantResume(cont.cyclePause,arg2,cont);return false;case"pause":cont.cyclePause=1;return false;case"resume":cont.cyclePause=0;checkInstantResume(false,arg2,cont);return false;case"prev":case"next":var opts=$(cont).data("cycle.opts");if(!opts){log('options not found, "prev/next" ignored');return false;}$.fn.cycle[options](opts);return false;default:options={fx:options};}return options;}else{if(options.constructor==Number){var num=options;options=$(cont).data("cycle.opts");if(!options){log("options not found, can not advance slide");return false;}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;function checkInstantResume(isPaused,arg2,cont){if(!isPaused&&arg2===true){var options=$(cont).data("cycle.opts");if(!options){log("options not found, can not resume");return false;}if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}go(options.elements,options,1,(!opts.rev&&!opts.backwards));}}}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}catch(smother){}}}function destroy(opts){if(opts.next){$(opts.next).unbind(opts.prevNextEvent);}if(opts.prev){$(opts.prev).unbind(opts.prevNextEvent);}if(opts.pager||opts.pagerAnchorBuilder){$.each(opts.pagerAnchors||[],function(){this.unbind().remove();});}opts.pagerAnchors=null;if(opts.destroy){opts.destroy(opts);}}function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];opts.after.unshift(function(){opts.busy=0;});if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){removeFilter(this,opts);});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,(!opts.rev&&!opts.backwards));});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide){opts.startingSlide=parseInt(opts.startingSlide);}else{if(opts.backwards){opts.startingSlide=els.length-1;}}if(opts.random){opts.randomMap=[];for(var i=0;i<els.length;i++){opts.randomMap.push(i);}opts.randomMap.sort(function(a,b){return Math.random()-0.5;});opts.randomIndex=1;opts.startingSlide=opts.randomMap[1];}else{if(opts.startingSlide>=els.length){opts.startingSlide=0;}}opts.currSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z;if(opts.backwards){z=first?i<=first?els.length+(i-first):first-i:els.length-i;}else{z=first?i>=first?els.length-(i-first):first-i:els.length-i;}$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();removeFilter(els[first],opts);if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var j=0;j<els.length;j++){var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w){w=e.offsetWidth||e.width||$e.attr("width");}if(!h){h=e.offsetHeight||e.height||$e.attr("height");}maxw=w>maxw?w:maxw;maxh=h>maxh?h:maxh;}if(maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}}if(opts.pause){$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(supportMultiTransitions(opts)===false){return false;}var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:($el.height()||this.offsetHeight||this.height||$el.attr("height")||0);this.cycleW=(opts.fit&&opts.width)?opts.width:($el.width()||this.offsetWidth||this.width||$el.attr("width")||0);if($el.is("img")){var loadingIE=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var loadingFF=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var loadingOp=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var loadingOther=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(loadingIE||loadingFF||loadingOp||loadingOther){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options);},opts.requeueTimeout);requeue=true;return false;}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(requeue){return false;}opts.cssBefore=opts.cssBefore||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);if(opts.cssFirst){$($slides[first]).css(opts.cssFirst);}if(opts.timeout){opts.timeout=parseInt(opts.timeout);if(opts.speed.constructor==String){opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed);}if(!opts.sync){opts.speed=opts.speed/2;}var buffer=opts.fx=="shuffle"?500:250;while((opts.timeout-opts.speed)<buffer){opts.timeout+=opts.speed;}}if(opts.easing){opts.easeIn=opts.easeOut=opts.easing;}if(!opts.speedIn){opts.speedIn=opts.speed;}if(!opts.speedOut){opts.speedOut=opts.speed;}opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.backwards){opts.nextSlide=opts.startingSlide==0?(els.length-1):opts.startingSlide-1;}else{opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1;}}if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return false;}}}var e0=$slides[first];if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length>1){opts.after[1].apply(e0,[e0,e0,opts,true]);}if(opts.next){$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?-1:1);});}if(opts.prev){$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,opts.rev?1:-1);});}if(opts.pager||opts.pagerAnchorBuilder){buildPager(els,opts);}exposeAddSlide(opts,els);return opts;}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(i=0;i<opts.fxs.length;i++){var fx=opts.fxs[i];tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log("discarding unknown transition: ",fx);opts.fxs.splice(i,1);i--;}}if(!opts.fxs.length){log("No valid transitions named; slideshow terminating.");return false;}}else{if(opts.fx=="all"){opts.multiFx=true;opts.fxs=[];for(p in txs){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx)){opts.fxs.push(p);}}}}if(opts.multiFx&&opts.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(i=0;i<r1;i++){var r2=Math.floor(Math.random()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(r2,1)[0]);}debug("randomized fx sequence: ",opts.fxs);}return true;}function exposeAddSlide(opts,els){opts.addSlide=function(newSlide,prepend){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount){opts.countdown++;}els[prepend?"unshift":"push"](s);if(opts.els){opts.els[prepend?"unshift":"push"](s);}opts.slideCount=els.length;$s.css("position","absolute");$s[prepend?"prependTo":"appendTo"](opts.$cont);if(prepend){opts.currSlide++;opts.nextSlide++;}if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($s);}if(opts.fit&&opts.width){$s.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager||opts.pagerAnchorBuilder){$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);}if($.isFunction(opts.onAddSlide)){opts.onAddSlide($s);}else{$s.hide();}};}$.fn.cycle.resetState=function(opts,fx){fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this);});$.each(opts.original.after,function(){opts.after.push(this);});var init=$.fn.cycle.transitions[fx];if($.isFunction(init)){init(opts.$cont,$(opts.elements),opts);}};function go(els,opts,manual,fwd){if(manual&&opts.busy&&opts.manualTrump){debug("manualTrump in go(), stopping active transition");$(els).stop(true,true);opts.busy=false;}if(opts.busy){debug("transition active, ignoring new tx request");return;}var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual){return;}if(!manual&&!p.cyclePause&&!opts.bounce&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end){opts.end(opts);}return;}var changed=false;if((manual||!p.cyclePause)&&(opts.nextSlide!=opts.currSlide)){changed=true;var fx=opts.fx;curr.cycleH=curr.cycleH||$(curr).height();curr.cycleW=curr.cycleW||$(curr).width();next.cycleH=next.cycleH||$(next).height();next.cycleW=next.cycleW||$(next).width();if(opts.multiFx){if(opts.lastFx==undefined||++opts.lastFx>=opts.fxs.length){opts.lastFx=0;}fx=opts.fxs[opts.lastFx];opts.currFx=fx;}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});}var after=function(){$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});};debug("tx firing; currSlide: "+opts.currSlide+"; nextSlide: "+opts.nextSlide);opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{$.fn.cycle.custom(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}}}if(changed||opts.nextSlide==opts.currSlide){opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];if(opts.nextSlide==opts.currSlide){opts.nextSlide=(opts.currSlide==opts.slideCount-1)?0:opts.currSlide+1;}}else{if(opts.backwards){var roll=(opts.nextSlide-1)<0;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=1;opts.currSlide=0;}else{opts.nextSlide=roll?(els.length-1):opts.nextSlide-1;opts.currSlide=roll?0:opts.nextSlide+1;}}else{var roll=(opts.nextSlide+1)==els.length;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=els.length-2;opts.currSlide=els.length-1;}else{opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}}}}if(changed&&opts.pager){opts.updateActivePagerLink(opts.pager,opts.currSlide,opts.activePagerClass);}var ms=0;if(opts.timeout&&!opts.continuous){ms=getTimeout(els[opts.currSlide],els[opts.nextSlide],opts,fwd);}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,(!opts.rev&&!opts.backwards));},ms);}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide,clsName){$(pager).each(function(){$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);});};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn.call(curr,curr,next,opts,fwd);while((t-opts.speed)<250){t+=opts.speed;}debug("calculated timeout: "+t+"; speed: "+opts.speed);if(t!==false){return t;}}return opts.timeout;}$.fn.cycle.next=function(opts){advance(opts,opts.rev?-1:1);};$.fn.cycle.prev=function(opts){advance(opts,opts.rev?1:-1);};function advance(opts,val){var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2;}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1;}}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.random){opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return false;}opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return false;}opts.nextSlide=0;}}}}var cb=opts.onPrevNextEvent||opts.prevNextClick;if($.isFunction(cb)){cb(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,val>=0);return false;}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});opts.updateActivePagerLink(opts.pager,opts.startingSlide,opts.activePagerClass);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)){a=opts.pagerAnchorBuilder(i,el);debug("pagerAnchorBuilder("+i+", el) returned: "+a);}else{a='<a href="#">'+(i+1)+"</a>";}if(!a){return;}var $a=$(a);if($a.parents("body").length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone[0]);});$a=$(arr);}else{$a.appendTo($p);}}opts.pagerAnchors=opts.pagerAnchors||[];opts.pagerAnchors.push($a);$a.bind(opts.pagerEvent,function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}var cb=opts.onPagerEvent||opts.pagerClick;if($.isFunction(cb)){cb(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlide<i);});if(!/^click/.test(opts.pagerEvent)&&!opts.allowPagerClickBubble){$a.bind("click.cycle",function(){return false;});}if(opts.pauseOnPagerHover){$a.hover(function(){opts.$cont[0].cyclePause++;},function(){opts.$cont[0].cyclePause--;});}};$.fn.cycle.hopsFromLast=function(opts,fwd){var hops,l=opts.lastSlide,c=opts.currSlide;if(fwd){hops=c>l?c-l:opts.slideCount-l;}else{hops=c<l?l-c:l+opts.slideCount-c;}return hops;};function clearTypeFix($slides){debug("applying clearType background-color hack");function hex(s){s=parseInt(s).toString(16);return s.length<2?"0"+s:s;}function getBg(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var v=$.css(e,"background-color");if(v.indexOf("rgb")>=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}if(v&&v!="transparent"){return v;}}return"#ffffff";}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();opts.cssBefore.opacity=1;opts.cssBefore.display="block";if(w!==false&&next.cycleW>0){opts.cssBefore.width=next.cycleW;}if(h!==false&&next.cycleH>0){opts.cssBefore.height=next.cycleH;}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(curr).css("zIndex",opts.slideCount+(rev===true?1:0));$(next).css("zIndex",opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,fwd,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride;}else{speedIn=speedOut=1;}easeIn=easeOut=null;}var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,cb);};$l.animate(opts.animOut,speedOut,easeOut,function(){if(opts.cssAfter){$l.css(opts.cssAfter);}if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={fx:"fade",timeout:4000,timeoutFn:null,continuous:0,speed:1000,speedIn:null,speedOut:null,next:null,prev:null,onPrevNextEvent:null,prevNextEvent:"click.cycle",pager:null,onPagerEvent:null,pagerEvent:"click.cycle",allowPagerClickBubble:false,pagerAnchorBuilder:null,before:null,after:null,end:null,easing:null,easeIn:null,easeOut:null,shuffle:null,animIn:null,animOut:null,cssBefore:null,cssAfter:null,fxFn:null,height:"auto",startingSlide:0,sync:1,random:0,fit:0,containerResize:1,pause:0,pauseOnPagerHover:0,autostop:0,autostopCount:0,delay:0,slideExpr:null,cleartype:!$.support.opacity,cleartypeNoBg:false,nowrap:0,fastOnEvent:0,randomizeEffects:1,rev:0,manualTrump:true,requeueOnImageNotLoaded:true,requeueTimeout:250,activePagerClass:"activeSlide",updateActivePagerLink:null,backwards:false};})(jQuery);
/*
 * jQuery Cycle Plugin Transition Definitions
 * This script is a plugin for the jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version:	 2.72
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function($){$.fn.cycle.transitions.none=function($cont,$slides,opts){opts.fxFn=function(curr,next,opts,after){$(next).show();$(curr).hide();after();};};$.fn.cycle.transitions.scrollUp=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssBefore={top:h,left:0};opts.cssFirst={top:0};opts.animIn={top:0};opts.animOut={top:-h};};$.fn.cycle.transitions.scrollDown=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssFirst={top:0};opts.cssBefore={top:-h,left:0};opts.animIn={top:0};opts.animOut={top:h};};$.fn.cycle.transitions.scrollLeft=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:w,top:0};opts.animIn={left:0};opts.animOut={left:0-w};};$.fn.cycle.transitions.scrollRight=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst={left:0};opts.cssBefore={left:-w,top:0};opts.animIn={left:0};opts.animOut={left:w};};$.fn.cycle.transitions.scrollHorz=function($cont,$slides,opts){$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.left=fwd?(next.cycleW-1):(1-next.cycleW);opts.animOut.left=fwd?-curr.cycleW:curr.cycleW;});opts.cssFirst={left:0};opts.cssBefore={top:0};opts.animIn={left:0};opts.animOut={top:0};};$.fn.cycle.transitions.scrollVert=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push(function(curr,next,opts,fwd){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.top=fwd?(1-next.cycleH):(next.cycleH-1);opts.animOut.top=fwd?curr.cycleH:-curr.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0};opts.animIn={top:0};opts.animOut={left:0};};$.fn.cycle.transitions.slideX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;});opts.cssBefore={left:0,top:0,width:0};opts.animIn={width:"show"};opts.animOut={width:0};};$.fn.cycle.transitions.slideY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;});opts.cssBefore={left:0,top:0,height:0};opts.animIn={height:"show"};opts.animOut={height:0};};$.fn.cycle.transitions.shuffle=function($cont,$slides,opts){var i,w=$cont.css("overflow","visible").width();$slides.css({left:0,top:0});opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);});if(!opts.speedAdjusted){opts.speed=opts.speed/2;opts.speedAdjusted=true;}opts.random=0;opts.shuffle=opts.shuffle||{left:-w,top:15};opts.els=[];for(i=0;i<$slides.length;i++){opts.els.push($slides[i]);}for(i=0;i<opts.currSlide;i++){opts.els.push(opts.els.shift());}opts.fxFn=function(curr,next,opts,cb,fwd){var $el=fwd?$(curr):$(next);$(next).css(opts.cssBefore);var count=opts.slideCount;$el.animate(opts.shuffle,opts.speedIn,opts.easeIn,function(){var hops=$.fn.cycle.hopsFromLast(opts,fwd);for(var k=0;k<hops;k++){fwd?opts.els.push(opts.els.shift()):opts.els.unshift(opts.els.pop());}if(fwd){for(var i=0,len=opts.els.length;i<len;i++){$(opts.els[i]).css("z-index",len-i+count);}}else{var z=$(curr).css("z-index");$el.css("z-index",parseInt(z)+1+count);}$el.animate({left:0,top:0},opts.speedOut,opts.easeOut,function(){$(fwd?this:curr).hide();if(cb){cb();}});});};opts.cssBefore={display:"block",opacity:1,top:0,left:0};};$.fn.cycle.transitions.turnUp=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=next.cycleH;opts.animIn.height=next.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0,height:0};opts.animIn={top:0};opts.animOut={height:0};};$.fn.cycle.transitions.turnDown=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssFirst={top:0};opts.cssBefore={left:0,top:0,height:0};opts.animOut={height:0};};$.fn.cycle.transitions.turnLeft=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=next.cycleW;opts.animIn.width=next.cycleW;});opts.cssBefore={top:0,width:0};opts.animIn={left:0};opts.animOut={width:0};};$.fn.cycle.transitions.turnRight=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});opts.cssBefore={top:0,left:0,width:0};opts.animIn={left:0};opts.animOut={width:0};};$.fn.cycle.transitions.zoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false,true);opts.cssBefore.top=next.cycleH/2;opts.cssBefore.left=next.cycleW/2;opts.animIn={top:0,left:0,width:next.cycleW,height:next.cycleH};opts.animOut={width:0,height:0,top:curr.cycleH/2,left:curr.cycleW/2};});opts.cssFirst={top:0,left:0};opts.cssBefore={width:0,height:0};};$.fn.cycle.transitions.fadeZoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false);opts.cssBefore.left=next.cycleW/2;opts.cssBefore.top=next.cycleH/2;opts.animIn={top:0,left:0,width:next.cycleW,height:next.cycleH};});opts.cssBefore={width:0,height:0};opts.animOut={opacity:0};};$.fn.cycle.transitions.blindX=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});opts.cssBefore={left:w,top:0};opts.animIn={left:0};opts.animOut={left:w};};$.fn.cycle.transitions.blindY=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore={top:h,left:0};opts.animIn={top:0};opts.animOut={top:h};};$.fn.cycle.transitions.blindZ=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();var w=$cont.width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore={top:h,left:w};opts.animIn={top:0,left:0};opts.animOut={top:h,left:w};};$.fn.cycle.transitions.growX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=this.cycleW/2;opts.animIn={left:0,width:this.cycleW};opts.animOut={left:0};});opts.cssBefore={width:0,top:0};};$.fn.cycle.transitions.growY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=this.cycleH/2;opts.animIn={top:0,height:this.cycleH};opts.animOut={top:0};});opts.cssBefore={height:0,left:0};};$.fn.cycle.transitions.curtainX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true,true);opts.cssBefore.left=next.cycleW/2;opts.animIn={left:0,width:this.cycleW};opts.animOut={left:curr.cycleW/2,width:0};});opts.cssBefore={top:0,width:0};};$.fn.cycle.transitions.curtainY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false,true);opts.cssBefore.top=next.cycleH/2;opts.animIn={top:0,height:next.cycleH};opts.animOut={top:curr.cycleH/2,height:0};});opts.cssBefore={left:0,height:0};};$.fn.cycle.transitions.cover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);if(d=="right"){opts.cssBefore.left=-w;}else{if(d=="up"){opts.cssBefore.top=h;}else{if(d=="down"){opts.cssBefore.top=-h;}else{opts.cssBefore.left=w;}}}});opts.animIn={left:0,top:0};opts.animOut={opacity:1};opts.cssBefore={top:0,left:0};};$.fn.cycle.transitions.uncover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(d=="right"){opts.animOut.left=w;}else{if(d=="up"){opts.animOut.top=-h;}else{if(d=="down"){opts.animOut.top=h;}else{opts.animOut.left=-w;}}}});opts.animIn={left:0,top:0};opts.animOut={opacity:1};opts.cssBefore={top:0,left:0};};$.fn.cycle.transitions.toss=function($cont,$slides,opts){var w=$cont.css("overflow","visible").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(!opts.animOut.left&&!opts.animOut.top){opts.animOut={left:w*2,top:-h/2,opacity:0};}else{opts.animOut.opacity=0;}});opts.cssBefore={left:0,top:0};opts.animIn={left:0};};$.fn.cycle.transitions.wipe=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.cssBefore=opts.cssBefore||{};var clip;if(opts.clip){if(/l2r/.test(opts.clip)){clip="rect(0px 0px "+h+"px 0px)";}else{if(/r2l/.test(opts.clip)){clip="rect(0px "+w+"px "+h+"px "+w+"px)";}else{if(/t2b/.test(opts.clip)){clip="rect(0px "+w+"px 0px 0px)";}else{if(/b2t/.test(opts.clip)){clip="rect("+h+"px "+w+"px "+h+"px 0px)";}else{if(/zoom/.test(opts.clip)){var top=parseInt(h/2);var left=parseInt(w/2);clip="rect("+top+"px "+left+"px "+top+"px "+left+"px)";}}}}}}opts.cssBefore.clip=opts.cssBefore.clip||clip||"rect(0px 0px 0px 0px)";var d=opts.cssBefore.clip.match(/(\d+)/g);var t=parseInt(d[0]),r=parseInt(d[1]),b=parseInt(d[2]),l=parseInt(d[3]);opts.before.push(function(curr,next,opts){if(curr==next){return;}var $curr=$(curr),$next=$(next);$.fn.cycle.commonReset(curr,next,opts,true,true,false);opts.cssAfter.display="block";var step=1,count=parseInt((opts.speedIn/13))-1;(function f(){var tt=t?t-parseInt(step*(t/count)):0;var ll=l?l-parseInt(step*(l/count)):0;var bb=b<h?b+parseInt(step*((h-b)/count||1)):h;var rr=r<w?r+parseInt(step*((w-r)/count||1)):w;$next.css({clip:"rect("+tt+"px "+rr+"px "+bb+"px "+ll+"px)"});(step++<=count)?setTimeout(f,13):$curr.css("display","none");})();});opts.cssBefore={display:"block",opacity:1,top:0,left:0};opts.animIn={left:0};opts.animOut={left:0};};})(jQuery);;
/*
 * THQ Jumbotron Promos JS.
 */

$(document).ready(function() {
  var $jumbotrons = $(".thq-jumbotron-promos");
  if ($jumbotrons.length > 0) {
    thq_jumbotron_promos_init($jumbotrons);
  }
});


/*
 * Init the jQuery cycle plugin on the THQ Jumbotron.
 *
 * http://jquery.malsup.com/cycle
 *
 * If you want to tweak the cycle plugin effects, or anything else,
 *
 * -- DO NOT CHANGE IT IN HERE ! --
 *
 * Just add a JavaScript function called thq_jumbotron_init() to your theme
 * and put any JavaScript you want in there.
 */
function thq_jumbotron_promos_init($jumbotrons) {
//  $jumbotron.cycle({
//    fx: 'scrollHorz',
//    timeout: 6000,
//    speed: 500,
//    pager:  '#thq-jumbotron-pager',
//    slideExpr: 'a'
//  });

  $jumbotrons.each(function(){

    $jumbotron_slides = $(this).find(".thq-jumbotron-slides");

      $jumbotron_slides.cycle({
        fx: 'fade',
        timeout: 6000,
        speed: 500,
        pager:  '.thq-jumbotron-pager',
        slideExpr: 'div',
        pagerAnchorBuilder: function(idx, slide) {
          return '.thq-jumbotron-pager a:eq(' + idx + ')';
        }
      });
  });
}
;
// $Id$
/**
 * @file
 * Main "onDocumentReady" call for THQ Media Module.
 *
 * @todo: Clean this up big time, simplify and document.
 */

// Initialize global variables.
var thq_media_screenshot_links_map = {},
    thq_media_videos_map = {},
    thq_media_videos_order = [],
		thq_media_screenshots_carousel = null,
		thq_media_fresh_page = true,
    thq_media_thumb_clicked = false,
    thq_media_screenshots_top_offset = 0,
    thq_media_videos_top_offset = 0,
    thq_media_videos_current_hash = null,
    thq_media_videos_flowplayer = null,
    thq_media_videos_ytplayer = null,
    thq_media_videos_current_player = null,
    thq_media_videos_html_cache = {};

jQuery(document).ready(function() {

	// Screenshots jCarousel implementation.
	thq_media_screenshots_init();

  // Videos jCarousel and Flowplayer implementation.
  thq_media_videos_init();
});


/*
 * Initialize the list of videos on the videos page.
 * To override this function, create function with the same name in your theme.
 */
function thq_media_videos_init_list($videos_list) {
  $($videos_list).jcarousel({
    scroll: 6,
    itemFallbackDimension: thq_media_data.video_thumb_width
  });
}


/*
 * Initialize the list of screenshots on the screenshots page.
 * To override this function, create function with the same name in your theme.
 */
function thq_media_screenshots_init_list($videos_list) {
  $($videos_list).jcarousel({
    scroll: 6,
    itemFallbackDimension: thq_media_data.screenshot_thumb_width
  });
}


/*
 * Initialize the main screenshots slideshow / jCarousel.
 * To override this function, create function with the same name in your theme.
 */
function thq_media_screenshots_init_main($screenshots_list) {

  $('#thq-media-screenshots-main ul').jcarousel({
    scroll: 1, // Advance 1 item.
    itemFirstInCallback: thq_media_jcarousel_firstin_callback, // Custom callback function for item in.
    initCallback: thq_media_jcarousel_init_callback,
    itemLoadCallback: thq_media_jcarousel_load_callback,
    itemFallbackDimension: thq_media_data.screenshot_full_width
  });
}


/*
 * Scroll the body to the top once the thumbnail was clicked.
 * To override this function, create function with the same name in your theme.
 */
function thq_media_scroll_video(offset) {
  thq_master_scroll_body(offset);
}


/*
 * Scroll the body to the top once the thumbnail was clicked.
 * To override this function, create function with the same name in your theme.
 */
function thq_media_scroll_screenshot(offset) {
  thq_master_scroll_body(offset);
}


/*
 * Function which makes video navigation enabled / disabled,
 * and assignes the new hash URLs to the nav buttons.
 */
function thq_media_videos_toggle_nav(current_index) {
  // Should we enable / disable the prev button?
  // @todo: Any way to make this cleaner?
  if (current_index == 0) {
    thq_media_videos_html_cache.prev
      .addClass("thq-media-videos-nav-disabled")
      .addClass("thq-media-videos-prev-disabled")
      .attr("href", "#" + thq_media_videos_order[0]);
  }
  else {
    thq_media_videos_html_cache.prev
      .removeClass("thq-media-videos-nav-disabled")
      .removeClass("thq-media-videos-prev-disabled")
      .attr("href", "#" + thq_media_videos_order[current_index - 1]);
  }

  if (typeof thq_media_videos_order[current_index + 1] != "undefined") {
    thq_media_videos_html_cache.next
      .removeClass("thq-media-videos-nav-disabled")
      .removeClass("thq-media-videos-next-disabled")
      .attr("href", "#" + thq_media_videos_order[current_index + 1]);
  }
  else {
    thq_media_videos_html_cache.next
      .addClass("thq-media-videos-nav-disabled")
      .addClass("thq-media-videos-next-disabled")
      .attr("href", "#" + thq_media_videos_order[current_index]);
  }
}


/*
 * THQ Media videos page.
 *
 * This is the main meat of the videos page. It sets up navigation between
 * videos without a page reload. All the video data is hidden next to each video
 * thumbnail. This function reads it in, processes it, and plays the videos in
 * a single player.
 *
 * Actuall 2 players: Flowplayer and Youtube. Both players can exist side-by-side.
 * That's why this function is such a mess. Well, it was kind of a mess before,
 * but with the addition of YouTube it's a REAL mess. :) But it works. So
 * whatever.
 *
 * @todo: Clean this up one of those days.
 */
function thq_media_videos_init() {
  if ($("#thq-media-videos-page").length > 0) {

    // Cache jQuery elements for future reference.
    thq_media_videos_html_cache.main = $("#thq-media-videos-main");
    thq_media_videos_html_cache.caption = thq_media_videos_html_cache.main.find(".thq-media-video-body");
    thq_media_videos_html_cache.fb = thq_media_videos_html_cache.main.find(".thq-media-fb-like");
    thq_media_videos_html_cache.list = $("#thq-media-videos-list .view-content .item-list ul");

    // Get the top offset of main video for automatic scrolling.
    thq_media_videos_top_offset = parseInt(thq_media_videos_html_cache.main.offset().top);

    // Init the video list carousel.
    thq_media_videos_init_list(thq_media_videos_html_cache.list);

		// Parse the video thumbnails and map video data.
    var $video_links = $("#thq-media-videos-list .views-row a");

		$video_links.each(function(j){

      // Get the hash of each video.
			var hash = thq_media_get_hash($(this).attr('href'));

      // Hidden DIV containing video data.
      $data = $(this).next(".thq-media-video-data");

      // Save the relationship of hash to order of video thumb.
      thq_media_videos_order[j] = hash;

      // Save video data in a map.
      thq_media_videos_map[hash] = {
        file: $data.find(".thq-media-video-file").text(),
        caption: $data.find(".thq-media-video-caption").html(),
        fb: $data.find(".thq-media-video-fb").html(),
        splash: $data.find(".thq-media-video-splash").text(),
        type: $data.find(".thq-media-video-type").text(),
        youtube_video: $data.find(".thq-media-youtube-video-id").text(),
        order: j
      };

      // Save the "clean" hash back to each link.
      this.clean_hash = hash;
		});

    // Put the first video's hash in the URL.
    if (window.location.hash == "") {
      window.location.hash = thq_media_videos_order[0];
    }


    // Cache reference to Flowplayer.
    thq_media_videos_flowplayer = $f();

    // Cache reference to YouTube player.
    //thq_media_videos_ytplayer = document.getElementById("thq-media-youtube-player");

//    // @todo: Check if the embedding is enabled.
//    // @todo: Add a button to get embed code.
//    // Wait till our player loads, and place the embed code.
//    thq_media_videos_flowplayer.onLoad(function(){
//      // @todo: Check if the embedding is enabled.
//      // Get the embedding code.
//      var code = thq_media_videos_flowplayer.embed().getEmbedCode();
//
//      // Place this code in our textarea.
//      // @todo: Cache this HTML element.
//      document.getElementById("thq-media-video-embed").innerHTML = code;
//    });
//
//    $("#thq-media-button-embed").click(function(){
//      var code = thq_media_videos_flowplayer.embed().getEmbedCode();
//      alert(code);
//    });



    // Generate previous & next navigation.
    // @todo: Internationalization.
    $prev = $('<a class="thq-media-videos-nav thq-media-videos-prev">Prev</a>')
      .click(function(e) {
        if ($(this).hasClass("thq-media-videos-nav-disabled")) {
          e.preventDefault();
        }
      })
      .attr("href", "#" + thq_media_videos_order[0]);

    // Insert into HTML and save to cache.
    thq_media_videos_html_cache.prev = $prev;
    thq_media_videos_html_cache.main.prepend($prev);

    // @todo: Internationalization.
    $next = $('<a class="thq-media-videos-nav thq-media-videos-next">Next</a>')
      .click(function(e) {
        if ($(this).hasClass("thq-media-videos-nav-disabled")) {
          e.preventDefault();
        }
      })
      .attr("href", "#" + thq_media_videos_order[1]);

    // Insert into HTML and save to cache.
    thq_media_videos_html_cache.main.prepend($next);
    thq_media_videos_html_cache.next = $next;

    // Init history.
    // This is the "meat", which loads the video.
    $.history.init(function(url) {

      if (url != "") {

        var current_index = 0;

        if (thq_media_videos_current_hash != url) {

          // @todo: Show loading here.

          // Create video clip object, and play it.
          var video_data = thq_media_videos_map[url];

          // New video is a YouTube one.
          if (video_data.type == 'youtube') {
            
            // If current video if Flowplayer, stop and hide it.
            if (thq_media_videos_current_player == 'flowplayer') {
              thq_media_videos_flowplayer.stop();
              $("#thq-media-flowplayer").css({left: '-9999px'});
            }

            // Show and play the Youtube video.
            $("#thq-media-youtube-player").css({left: '0'});

            // If Youtube player is undefined, embed it.
            if (thq_media_videos_ytplayer == null) {
              thq_media_videos_ytplayer = document.getElementById('thq-media-youtube-player');
            }
            if (thq_media_videos_ytplayer == null) {

              // Player width
              var params = { allowScriptAccess: "always", allowFullScreen: true, wmode: "opaque" };
              var atts = { id: "thq-media-youtube-player" };
              swfobject.embedSWF("http://www.youtube.com/v/" + video_data.youtube_video + "?enablejsapi=1&version=3&fs=1&hd=1&playerapiid=ytplayer", "thq-media-youtube", thq_media_data.screenshot_full_width, thq_media_data.video_youtube_height, "8", null, null, params, atts);
            }
            else {
              thq_media_videos_ytplayer.cueVideoById(video_data.youtube_video);
            }

//            // If we have youtube player, stop it.
//            if (thq_media_videos_ytplayer != null) {
//              thq_media_videos_ytplayer.stopVideo();
//            }

            thq_media_videos_current_player = 'youtube';
          }

          // Next video is flowplayer.
          if (video_data.type == 'flowplayer') {
            if (thq_media_videos_current_player == 'youtube') {
              thq_media_videos_ytplayer.stopVideo();
              $("#thq-media-youtube-player").css({left: '-9999px'});
            }

            // Show and play the Flowplayer video.
            $("#thq-media-flowplayer").css({left: '0'});

            // If Flowplayer is undefined, embed it.
            if (typeof thq_media_videos_flowplayer == "undefined") {
//              flowplayer("swftools-4d35e9fef36f8",
//                {"play":true,"loop":true,"menu":false,"allowfullscreen":true,"swliveconnect":false,"bgcolor":"","quality":"autohigh","scale":"showall","wmode":"opaque","align":"l","salign":"tl","allowscriptaccess":"sameDomain","base":"\/sites\/default\/files\/","src":"\/sites\/all\/libraries\/flowplayer3\/flowplayer-3.2.4.swf"},
//                {"playlist":[
//                    { "url": "\/sites\/default\/files\/thq_media_videos\/dscf0033.jpg" , "autoPlay": true, "duration": "0" },
//                    { "url": "http:\/\/thqinc.cachefly.net\/svr\/video2011\/S9n6fY\/005-e.flv", "title": "", "duration": "", "artist": "" }
//                  ],"canvas":
//                {"height":"375","width":"500","backgroundRepeat":"repeat","backgroundGradient":"low","backgroundColor":"#000000"},
//                "clip":{"autoPlay":false,"autoBuffering":false,"scaling":"scale","accelerated":false,"linkWindow":"_blank","live":false},
//                "play":{"opacity":"0.8","fadeSpeed":"500","rotateSpeed":"50","height":"10%","width":"10%","replayLabel":"Play again"},
//                "plugins":{"controls":{"backgroundGradient":"medium","progressGradient":"medium","bufferGradient":"none","sliderGradient":"none","volumeSliderGradient":"none","autoHide":"fullscreen","play":true,"volume":true,"mute":true,"time":true,"stop":false,"playlist":false,"fullscreen":true,"scrubber":true,"borderRadius":"0","scrubberHeightRatio":"0.4","scrubberBarHeightRatio":"1","volumeSliderHeightRatio":"0.4","volumeBarHeightRatio":"1","timeBgHeightRatio":"0.7","hideDelay":"4000","backgroundColor":"#000000","timeColor":"#01daff","durationColor":"#ffffff","progressColor":"#015b7a","bufferColor":"#6c9cbc","sliderColor":"#000000","buttonColor":"#889aa4","buttonOverColor":"#92b2bd","volumeSliderColor":"#000000","timeBgColor":"#000000","url":"flowplayer.controls-3.2.2.swf"}}});
//
//
//              $("#swftools-4d35e9fef36f8").height(375).width(500);

              flowplayer("thq-media-flowplayer", { wmode: "opaque", src: "/sites/all/libraries/flowplayer3/flowplayer-3.2.4.swf" },
                { "playlist":[ { "url": video_data.splash , duration: 0 }, { url: video_data.file, autoPlay: false } ],
                  "canvas": {"height": thq_media_data.video_flowplayer_height, "width": thq_media_data.screenshot_full_width}});


              $("#thq-media-flowplayer").height(thq_media_data.video_flowplayer_height).width(thq_media_data.screenshot_full_width);

              //console.log(video_data);

              // Save reference to Flowplayer.
              thq_media_videos_flowplayer = $f();
            }

            // We do have the Flowplayer object.
            else {
              // @todo: Add option to display splash or not.
              var splash = {url: video_data.splash, duration: 0};
              var clip = {url: video_data.file, autoPlay: false};

              thq_media_videos_flowplayer.play([splash, clip]);
            }

            // Save current player.
            thq_media_videos_current_player = 'flowplayer';
          }

          // Add Caption and FB Like button.
          thq_media_videos_html_cache.caption.html(video_data.caption);
          thq_media_videos_html_cache.fb.html(video_data.fb);

          // @todo: Stop loading.

          current_index = video_data.order;

//          // @todo: Check if the embedding is enabled.
//          // Get the embedding code.
//          //var code = thq_media_videos_flowplayer.embed().getEmbedCode();
//
//          // Place this code in our textarea.
//          // @todo: Cache this HTML element.
//          //document.getElementById("thq-media-video-embed").innerHTML = code;
          
        }

        // Toggle (enable/disable) previus/next navigation.
        thq_media_videos_toggle_nav(current_index);

        // Save current hash.
        thq_media_videos_current_hash = url;
      }
    });

    // Add history and scroll to the JS link navigation.
    // http://oncemade.com/animated-page-scroll-with-jquery/
    $video_links.click(function(e){

      thq_media_scroll_video(thq_media_videos_top_offset);
      $.history.load(this.clean_hash);

      return false;
    });


    // Create tabbed navigation for the bottom videos.
    thq_media_videos_init_tabs();
  }
}


/*
 * Generate tabbed navigation from video thumb blocks.
 * Create a function with the same name in your theme to override this.
 */
function thq_media_videos_init_tabs() {
  var block_selectors = "#thq-media-videos-list .view-content .item-list";

  // Let's only do this if we have more than set of videos by platform.
  if ($(block_selectors).length > 1) {
    thq_master_tabs_from_blocks(block_selectors, "tabs-thq-media-videos", "h3");
  }
}


/*
 * Screenshots carousel.
 */
function thq_media_screenshots_init() {
	if ($("#thq-media-screenshots-page .view-content ul").length > 0) {

    thq_media_screenshots_top_offset = parseInt($("#thq-media-screenshots-main").offset().top);

		var $screenshot_links = $("#thq-media-screenshots-list .view-content a");

		// Create screenshot "map", since jCarousel navigates items by numeric indexes.
		$screenshot_links.each(function(i){
      var hash = thq_media_get_hash($(this).attr('href'));

      // Looks like jcarousel array is not 0-based!
      thq_media_screenshot_links_map[hash] = i + 1;

      // Save "clean" hash for the history plugin.
      this.clean_hash = hash;
		});

    // Init main jCarousel.
    thq_media_screenshots_init_main($('#thq-media-screenshots-main ul'));

    // Init the list of screenshots.
    thq_media_screenshots_init_list($('#thq-media-screenshots-list .view-content .item-list ul'));

    // Initialize the history plugin.
    // This function does all the work.
    $.history.init(function(url) {
      if (url != "") {

        // Can't do anything until carousel initializes.
        if (typeof thq_media_screenshots_carousel.first == "undefined") {
          return;
        }

        // Get the screenshot's index from the url,
        // and scroll to the appropriate screenshot.
        id = thq_media_screenshot_links_map[url];

        if (thq_media_screenshots_carousel.first != id) {
          thq_media_screenshots_carousel.scroll($.jcarousel.intval(id));
        }
      }
    });

    // Add history and scrolling to the JS link navigation.
    // http://oncemade.com/animated-page-scroll-with-jquery/
    $screenshot_links.click(function(){

      // Scroll to top.
      thq_media_scroll_screenshot(thq_media_screenshots_top_offset);

      // Display the screenshot.
      $.history.load(this.clean_hash);

		  return false;
    });

    // Tabbed navigation from blocks.
    thq_media_screenshots_init_tabs();
	}
}


/*
 * Generate tabbed navigation from screenshot blocks.
 * Create a function with the same name in your theme to override this.
 */
function thq_media_screenshots_init_tabs() {
  var block_selectors = "#thq-media-screenshots-list .view-content .item-list";

  // Let's only do this if we have more than set of screenshots by platform.
  if ($(block_selectors).length > 1) {
    thq_master_tabs_from_blocks(block_selectors, "tabs-thq-media-screenshots", "h3");
  }
}


/*
 * This is the callback function which receives notification
 * when an item becomes the first one in the visible range.
 */
function thq_media_jcarousel_firstin_callback(carousel, item, idx, state) {
  window.location.hash = thq_media_get_hash($(item).find('h2 a').attr('href'));
}


/*
 * We use the initCallback callback to assign instance of carousel to global variable.
 */
function thq_media_jcarousel_init_callback(carousel) {
	thq_media_screenshots_carousel = carousel;
}


/*
 * This is the callback function when jCarousel loads.
 * We attach this to the main screenshots jCarousel.
 * Apparently, in webkit browsers, the history.init was firing before
 * the carousel was initialized, so it wasn't scrolling to the proper screenshot.
 */
function thq_media_jcarousel_load_callback(carousel, state) {
  if (state == "init" && carousel.first == 1) {
    url = window.location.hash.replace(/^.*#/, '');
    if (url != "") {
      id = parseInt(thq_media_screenshot_links_map[url]);

      if (id != 1) {
        carousel.scroll(id);
      }
    }
  }
}


/*
 * Helper function to get hash from URL string.
 */
function thq_media_get_hash(string) {
	if (typeof string == 'undefined') {
		return '';
	}
	else {
		var chunks = string.split('#');
		return chunks[1];
	}
}


function onYouTubePlayerReady(playerId) {
  thq_media_videos_ytplayer = document.getElementById("thq-media-youtube-player");
}
;
/*!
 * jCarousel - Riding carousels with jQuery
 *   http://sorgalla.com/jcarousel/
 *
 * Copyright (c) 2006 Jan Sorgalla (http://sorgalla.com)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 *
 * Built on top of the jQuery library
 *   http://jquery.com
 *
 * Inspired by the "Carousel Component" by Bill Scott
 *   http://billwscott.com/carousel/
 */

(function(i){i.fn.jcarousel=function(a){if(typeof a=="string"){var c=i(this).data("jcarousel"),b=Array.prototype.slice.call(arguments,1);return c[a].apply(c,b)}else return this.each(function(){i(this).data("jcarousel",new h(this,a))})};var p={vertical:false,rtl:false,start:1,offset:1,size:null,scroll:3,visible:null,animation:"normal",easing:"swing",auto:0,wrap:null,initCallback:null,reloadCallback:null,itemLoadCallback:null,itemFirstInCallback:null,itemFirstOutCallback:null,itemLastInCallback:null, itemLastOutCallback:null,itemVisibleInCallback:null,itemVisibleOutCallback:null,buttonNextHTML:"<div></div>",buttonPrevHTML:"<div></div>",buttonNextEvent:"click",buttonPrevEvent:"click",buttonNextCallback:null,buttonPrevCallback:null,itemFallbackDimension:null},q=false;i(window).bind("load.jcarousel",function(){q=true});i.jcarousel=function(a,c){this.options=i.extend({},p,c||{});this.locked=false;this.buttonPrev=this.buttonNext=this.list=this.clip=this.container=null;if(!c||c.rtl===undefined)this.options.rtl= (i(a).attr("dir")||i("html").attr("dir")||"").toLowerCase()=="rtl";this.wh=!this.options.vertical?"width":"height";this.lt=!this.options.vertical?this.options.rtl?"right":"left":"top";for(var b="",d=a.className.split(" "),e=0;e<d.length;e++)if(d[e].indexOf("jcarousel-skin")!=-1){i(a).removeClass(d[e]);b=d[e];break}if(a.nodeName.toUpperCase()=="UL"||a.nodeName.toUpperCase()=="OL"){this.list=i(a);this.container=this.list.parent();if(this.container.hasClass("jcarousel-clip")){if(!this.container.parent().hasClass("jcarousel-container"))this.container= this.container.wrap("<div></div>");this.container=this.container.parent()}else if(!this.container.hasClass("jcarousel-container"))this.container=this.list.wrap("<div></div>").parent()}else{this.container=i(a);this.list=this.container.find("ul,ol").eq(0)}b!=""&&this.container.parent()[0].className.indexOf("jcarousel-skin")==-1&&this.container.wrap('<div class=" '+b+'"></div>');this.clip=this.list.parent();if(!this.clip.length||!this.clip.hasClass("jcarousel-clip"))this.clip=this.list.wrap("<div></div>").parent(); this.buttonNext=i(".jcarousel-next",this.container);if(this.buttonNext.size()==0&&this.options.buttonNextHTML!=null)this.buttonNext=this.clip.after(this.options.buttonNextHTML).next();this.buttonNext.addClass(this.className("jcarousel-next"));this.buttonPrev=i(".jcarousel-prev",this.container);if(this.buttonPrev.size()==0&&this.options.buttonPrevHTML!=null)this.buttonPrev=this.clip.after(this.options.buttonPrevHTML).next();this.buttonPrev.addClass(this.className("jcarousel-prev"));this.clip.addClass(this.className("jcarousel-clip")).css({overflow:"hidden", position:"relative"});this.list.addClass(this.className("jcarousel-list")).css({overflow:"hidden",position:"relative",top:0,margin:0,padding:0}).css(this.options.rtl?"right":"left",0);this.container.addClass(this.className("jcarousel-container")).css({position:"relative"});!this.options.vertical&&this.options.rtl&&this.container.addClass("jcarousel-direction-rtl").attr("dir","rtl");var f=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;b=this.list.children("li");var g= this;if(b.size()>0){var j=0;e=this.options.offset;b.each(function(){g.format(this,e++);j+=g.dimension(this,f)});this.list.css(this.wh,j+100+"px");if(!c||c.size===undefined)this.options.size=b.size()}this.container.css("display","block");this.buttonNext.css("display","block");this.buttonPrev.css("display","block");this.funcNext=function(){g.next()};this.funcPrev=function(){g.prev()};this.funcResize=function(){g.reload()};this.options.initCallback!=null&&this.options.initCallback(this,"init");if(!q&& i.browser.safari){this.buttons(false,false);i(window).bind("load.jcarousel",function(){g.setup()})}else this.setup()};var h=i.jcarousel;h.fn=h.prototype={jcarousel:"0.2.5"};h.fn.extend=h.extend=i.extend;h.fn.extend({setup:function(){this.prevLast=this.prevFirst=this.last=this.first=null;this.animating=false;this.tail=this.timer=null;this.inTail=false;if(!this.locked){this.list.css(this.lt,this.pos(this.options.offset)+"px");var a=this.pos(this.options.start);this.prevFirst=this.prevLast=null;this.animate(a, false);i(window).unbind("resize.jcarousel",this.funcResize).bind("resize.jcarousel",this.funcResize)}},reset:function(){this.list.empty();this.list.css(this.lt,"0px");this.list.css(this.wh,"10px");this.options.initCallback!=null&&this.options.initCallback(this,"reset");this.setup()},reload:function(){this.tail!=null&&this.inTail&&this.list.css(this.lt,h.intval(this.list.css(this.lt))+this.tail);this.tail=null;this.inTail=false;this.options.reloadCallback!=null&&this.options.reloadCallback(this);if(this.options.visible!= null){var a=this,c=Math.ceil(this.clipping()/this.options.visible),b=0,d=0;this.list.children("li").each(function(e){b+=a.dimension(this,c);if(e+1<a.first)d=b});this.list.css(this.wh,b+"px");this.list.css(this.lt,-d+"px")}this.scroll(this.first,false)},lock:function(){this.locked=true;this.buttons()},unlock:function(){this.locked=false;this.buttons()},size:function(a){if(a!=undefined){this.options.size=a;this.locked||this.buttons()}return this.options.size},has:function(a,c){if(c==undefined||!c)c= a;if(this.options.size!==null&&c>this.options.size)c=this.options.size;for(var b=a;b<=c;b++){var d=this.get(b);if(!d.length||d.hasClass("jcarousel-item-placeholder"))return false}return true},get:function(a){return i(".jcarousel-item-"+a,this.list)},add:function(a,c){var b=this.get(a),d=0,e=i(c);if(b.length==0){var f;b=this.create(a);for(var g=h.intval(a);f=this.get(--g);)if(g<=0||f.length){g<=0?this.list.prepend(b):f.after(b);break}}else d=this.dimension(b);if(e.get(0).nodeName.toUpperCase()=="LI"){b.replaceWith(e); b=e}else b.empty().append(c);this.format(b.removeClass(this.className("jcarousel-item-placeholder")),a);e=this.options.visible!=null?Math.ceil(this.clipping()/this.options.visible):null;d=this.dimension(b,e)-d;a>0&&a<this.first&&this.list.css(this.lt,h.intval(this.list.css(this.lt))-d+"px");this.list.css(this.wh,h.intval(this.list.css(this.wh))+d+"px");return b},remove:function(a){var c=this.get(a);if(!(!c.length||a>=this.first&&a<=this.last)){var b=this.dimension(c);a<this.first&&this.list.css(this.lt, h.intval(this.list.css(this.lt))+b+"px");c.remove();this.list.css(this.wh,h.intval(this.list.css(this.wh))-b+"px")}},next:function(){this.stopAuto();this.tail!=null&&!this.inTail?this.scrollTail(false):this.scroll((this.options.wrap=="both"||this.options.wrap=="last")&&this.options.size!=null&&this.last==this.options.size?1:this.first+this.options.scroll)},prev:function(){this.stopAuto();this.tail!=null&&this.inTail?this.scrollTail(true):this.scroll((this.options.wrap=="both"||this.options.wrap== "first")&&this.options.size!=null&&this.first==1?this.options.size:this.first-this.options.scroll)},scrollTail:function(a){if(!(this.locked||this.animating||!this.tail)){var c=h.intval(this.list.css(this.lt));!a?c-=this.tail:c+=this.tail;this.inTail=!a;this.prevFirst=this.first;this.prevLast=this.last;this.animate(c)}},scroll:function(a,c){this.locked||this.animating||this.animate(this.pos(a),c)},pos:function(a){var c=h.intval(this.list.css(this.lt));if(this.locked||this.animating)return c;if(this.options.wrap!= "circular")a=a<1?1:this.options.size&&a>this.options.size?this.options.size:a;for(var b=this.first>a,d=this.options.wrap!="circular"&&this.first<=1?1:this.first,e=b?this.get(d):this.get(this.last),f=b?d:d-1,g=null,j=0,l=false,k=0;b?--f>=a:++f<a;){g=this.get(f);l=!g.length;if(g.length==0){g=this.create(f).addClass(this.className("jcarousel-item-placeholder"));e[b?"before":"after"](g);if(this.first!=null&&this.options.wrap=="circular"&&this.options.size!==null&&(f<=0||f>this.options.size)){e=this.get(this.index(f)); if(e.length)g=this.add(f,e.clone(true))}}e=g;k=this.dimension(g);if(l)j+=k;if(this.first!=null&&(this.options.wrap=="circular"||f>=1&&(this.options.size==null||f<=this.options.size)))c=b?c+k:c-k}d=this.clipping();var o=[],n=0;f=a;var m=0;for(e=this.get(a-1);++n;){g=this.get(f);l=!g.length;if(g.length==0){g=this.create(f).addClass(this.className("jcarousel-item-placeholder"));e.length==0?this.list.prepend(g):e[b?"before":"after"](g);if(this.first!=null&&this.options.wrap=="circular"&&this.options.size!== null&&(f<=0||f>this.options.size)){e=this.get(this.index(f));if(e.length)g=this.add(f,e.clone(true))}}e=g;k=this.dimension(g);if(k==0)throw Error("jCarousel: No width/height set for items. This will cause an infinite loop. Aborting...");if(this.options.wrap!="circular"&&this.options.size!==null&&f>this.options.size)o.push(g);else if(l)j+=k;m+=k;if(m>=d)break;f++}for(g=0;g<o.length;g++)o[g].remove();if(j>0){this.list.css(this.wh,this.dimension(this.list)+j+"px");if(b){c-=j;this.list.css(this.lt,h.intval(this.list.css(this.lt))- j+"px")}}j=a+n-1;if(this.options.wrap!="circular"&&this.options.size&&j>this.options.size)j=this.options.size;if(f>j){n=0;f=j;for(m=0;++n;){g=this.get(f--);if(!g.length)break;m+=this.dimension(g);if(m>=d)break}}f=j-n+1;if(this.options.wrap!="circular"&&f<1)f=1;if(this.inTail&&b){c+=this.tail;this.inTail=false}this.tail=null;if(this.options.wrap!="circular"&&j==this.options.size&&j-n+1>=1){b=h.margin(this.get(j),!this.options.vertical?"marginRight":"marginBottom");if(m-b>d)this.tail=m-d-b}for(;a-- > f;)c+=this.dimension(this.get(a));this.prevFirst=this.first;this.prevLast=this.last;this.first=f;this.last=j;return c},animate:function(a,c){if(!(this.locked||this.animating)){this.animating=true;var b=this,d=function(){b.animating=false;a==0&&b.list.css(b.lt,0);if(b.options.wrap=="circular"||b.options.wrap=="both"||b.options.wrap=="last"||b.options.size==null||b.last<b.options.size)b.startAuto();b.buttons();b.notify("onAfterAnimation");if(b.options.wrap=="circular"&&b.options.size!==null)for(var e= b.prevFirst;e<=b.prevLast;e++)if(e!==null&&!(e>=b.first&&e<=b.last)&&(e<1||e>b.options.size))b.remove(e)};this.notify("onBeforeAnimation");if(!this.options.animation||c==false){this.list.css(this.lt,a+"px");d()}else this.list.animate(!this.options.vertical?this.options.rtl?{right:a}:{left:a}:{top:a},this.options.animation,this.options.easing,d)}},startAuto:function(a){if(a!=undefined)this.options.auto=a;if(this.options.auto==0)return this.stopAuto();if(this.timer==null){var c=this;this.timer=setTimeout(function(){c.next()}, this.options.auto*1E3)}},stopAuto:function(){if(this.timer!=null){clearTimeout(this.timer);this.timer=null}},buttons:function(a,c){if(a==undefined||a==null){a=!this.locked&&this.options.size!==0&&(this.options.wrap&&this.options.wrap!="first"||this.options.size==null||this.last<this.options.size);if(!this.locked&&(!this.options.wrap||this.options.wrap=="first")&&this.options.size!=null&&this.last>=this.options.size)a=this.tail!=null&&!this.inTail}if(c==undefined||c==null){c=!this.locked&&this.options.size!== 0&&(this.options.wrap&&this.options.wrap!="last"||this.first>1);if(!this.locked&&(!this.options.wrap||this.options.wrap=="last")&&this.options.size!=null&&this.first==1)c=this.tail!=null&&this.inTail}var b=this;this.buttonNext[a?"bind":"unbind"](this.options.buttonNextEvent+".jcarousel",this.funcNext)[a?"removeClass":"addClass"](this.className("jcarousel-next-disabled")).attr("disabled",a?false:true);this.buttonPrev[c?"bind":"unbind"](this.options.buttonPrevEvent+".jcarousel",this.funcPrev)[c?"removeClass": "addClass"](this.className("jcarousel-prev-disabled")).attr("disabled",c?false:true);this.options.buttonNextCallback!=null&&this.buttonNext.data("jcarouselstate")!=a&&this.buttonNext.each(function(){b.options.buttonNextCallback(b,this,a)}).data("jcarouselstate",a);this.options.buttonPrevCallback!=null&&this.buttonPrev.data("jcarouselstate")!=c&&this.buttonPrev.each(function(){b.options.buttonPrevCallback(b,this,c)}).data("jcarouselstate",c)},notify:function(a){var c=this.prevFirst==null?"init":this.prevFirst< this.first?"next":"prev";this.callback("itemLoadCallback",a,c);if(this.prevFirst!==this.first){this.callback("itemFirstInCallback",a,c,this.first);this.callback("itemFirstOutCallback",a,c,this.prevFirst)}if(this.prevLast!==this.last){this.callback("itemLastInCallback",a,c,this.last);this.callback("itemLastOutCallback",a,c,this.prevLast)}this.callback("itemVisibleInCallback",a,c,this.first,this.last,this.prevFirst,this.prevLast);this.callback("itemVisibleOutCallback",a,c,this.prevFirst,this.prevLast, this.first,this.last)},callback:function(a,c,b,d,e,f,g){if(!(this.options[a]==undefined||typeof this.options[a]!="object"&&c!="onAfterAnimation")){var j=typeof this.options[a]=="object"?this.options[a][c]:this.options[a];if(i.isFunction(j)){var l=this;if(d===undefined)j(l,b,c);else if(e===undefined)this.get(d).each(function(){j(l,this,d,b,c)});else for(var k=d;k<=e;k++)k!==null&&!(k>=f&&k<=g)&&this.get(k).each(function(){j(l,this,k,b,c)})}}},create:function(a){return this.format("<li></li>",a)},format:function(a, c){a=i(a);for(var b=a.get(0).className.split(" "),d=0;d<b.length;d++)b[d].indexOf("jcarousel-")!=-1&&a.removeClass(b[d]);a.addClass(this.className("jcarousel-item")).addClass(this.className("jcarousel-item-"+c)).css({"float":this.options.rtl?"right":"left","list-style":"none"}).attr("jcarouselindex",c);return a},className:function(a){return a+" "+a+(!this.options.vertical?"-horizontal":"-vertical")},dimension:function(a,c){var b=a.jquery!=undefined?a[0]:a,d=!this.options.vertical?(b.offsetWidth|| h.intval(this.options.itemFallbackDimension))+h.margin(b,"marginLeft")+h.margin(b,"marginRight"):(b.offsetHeight||h.intval(this.options.itemFallbackDimension))+h.margin(b,"marginTop")+h.margin(b,"marginBottom");if(c==undefined||d==c)return d;d=!this.options.vertical?c-h.margin(b,"marginLeft")-h.margin(b,"marginRight"):c-h.margin(b,"marginTop")-h.margin(b,"marginBottom");i(b).css(this.wh,d+"px");return this.dimension(b)},clipping:function(){return!this.options.vertical?this.clip[0].offsetWidth-h.intval(this.clip.css("borderLeftWidth"))- h.intval(this.clip.css("borderRightWidth")):this.clip[0].offsetHeight-h.intval(this.clip.css("borderTopWidth"))-h.intval(this.clip.css("borderBottomWidth"))},index:function(a,c){if(c==undefined)c=this.options.size;return Math.round(((a-1)/c-Math.floor((a-1)/c))*c)+1}});h.extend({defaults:function(a){return i.extend(p,a||{})},margin:function(a,c){if(!a)return 0;var b=a.jquery!=undefined?a[0]:a;if(c=="marginRight"&&i.browser.safari){var d={display:"block","float":"none",width:"auto"},e,f;i.swap(b,d, function(){e=b.offsetWidth});d.marginRight=0;i.swap(b,d,function(){f=b.offsetWidth});return f-e}return h.intval(i.css(b,c))},intval:function(a){a=parseInt(a);return isNaN(a)?0:a}})})(jQuery);
;
/*
 * jQuery history plugin
 * 
 * The MIT License
 * 
 * Copyright (c) 2006-2009 Taku Sano (Mikage Sawatari)
 * Copyright (c) 2010 Takayuki Miwa
 * 
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 * THE SOFTWARE.
 */

(function($) {
    var locationWrapper = {
        put: function(hash, win) {
            (win || window).location.hash = this.encoder(hash);
        },
        get: function(win) {
            var hash = ((win || window).location.hash).replace(/^#/, '');
            try {
                return $.browser.mozilla ? hash : decodeURIComponent(hash);
            }
            catch (error) {
                return hash;
            }
        },
        encoder: encodeURIComponent
    };

    var iframeWrapper = {
        id: "__jQuery_history",
        init: function() {
            var html = '<iframe id="'+ this.id +'" style="display:none" src="javascript:false;" />';
            $("body").prepend(html);
            return this;
        },
        _document: function() {
            return $("#"+ this.id)[0].contentWindow.document;
        },
        put: function(hash) {
            var doc = this._document();
            doc.open();
            doc.close();
            locationWrapper.put(hash, doc);
        },
        get: function() {
            return locationWrapper.get(this._document());
        }
    };

    function initObjects(options) {
        options = $.extend({
                unescape: false
            }, options || {});

        locationWrapper.encoder = encoder(options.unescape);

        function encoder(unescape_) {
            if(unescape_ === true) {
                return function(hash){ return hash; };
            }
            if(typeof unescape_ == "string" &&
               (unescape_ = partialDecoder(unescape_.split("")))
               || typeof unescape_ == "function") {
                return function(hash) { return unescape_(encodeURIComponent(hash)); };
            }
            return encodeURIComponent;
        }

        function partialDecoder(chars) {
            var re = new RegExp($.map(chars, encodeURIComponent).join("|"), "ig");
            return function(enc) { return enc.replace(re, decodeURIComponent); };
        }
    }

    // public base interface
    var _ = {
        appState: undefined,
        callback: undefined,
        init:  function(callback, options) {},
        check: function() {},
        load:  function(hash) {}
    };
    $.history = _;

    var SimpleImpl = {
        init: function(callback, options) {
            initObjects(options);
            _.callback = callback;
            var current_hash = locationWrapper.get();
            _.appState = current_hash;
            _.callback(current_hash);
            setInterval(_.check, 100);
        },
        check: function() {
            var current_hash = locationWrapper.get();
            if(current_hash != _.appState) {
                _.appState = current_hash;
                _.callback(current_hash);
            }
        },
        load: function(hash) {
            if(hash != _.appState) {
                locationWrapper.put(hash);
                _.appState = hash;
                _.callback(hash);
            }
        }
    };

    var IframeImpl = {
        init: function(callback, options) {
            initObjects(options);
            _.callback = callback;
            var current_hash = locationWrapper.get();
            _.appState = current_hash;
            iframeWrapper.init().put(current_hash);
            _.callback(current_hash);
            setInterval(_.check, 100);
        },
        check: function() {
            var iframe_hash = iframeWrapper.get(),
                location_hash = locationWrapper.get();

            if (location_hash != iframe_hash) {
                if (location_hash == _.appState) {    // user used Back or Forward button
                    _.appState = iframe_hash;
                    locationWrapper.put(iframe_hash);
                    _.callback(iframe_hash); 
                } else {                              // user loaded new bookmark
                    _.appState = location_hash;  
                    iframeWrapper.put(location_hash);
                    _.callback(location_hash);
                }
            }
        },
        load: function(hash) {
            if(hash != _.appState) {
                locationWrapper.put(hash);
                iframeWrapper.put(hash);
                _.appState = hash;
                _.callback(hash);
            }
        }
    };

    if($.browser.msie && ($.browser.version < 8 || document.documentMode < 8)) {
        $.extend(_, IframeImpl);
    } else {
        $.extend(_, SimpleImpl);
    }
})(jQuery);
;
/*
 *
 */
$(document).ready(function(){

  var $thq_twitter_feed_type = $(".radios-twitter-feed-type"); //$("input[name=thq_twitter_feed_type]");
  if ($thq_twitter_feed_type.length > 0) {
    thq_twitter_init_feed_type($thq_twitter_feed_type);
  }

  // Make sure links open in a new window.
  var $tweets = $("ul.list-tweets");
  if ($tweets.length > 0) {
    thq_twitter_link_tweets($tweets);
  }
});


/*
 * Init toggling the twitter feed type
 */
function thq_twitter_init_feed_type($feed_type) {
  var $div_username = $("#edit-thq-twitter-feed-username-wrapper");
  var $div_search = $("#edit-thq-twitter-feed-search-term-wrapper");
  
  var toggle_radios = function($radio) {
    //alert($radios.find(':checked').val());

    if ($radio.val() == 'user') {
      $div_username.show();
      $div_search.hide();
    }
    else {
      $div_search.show();
      $div_username.hide();
    }
  };
  
  toggle_radios($feed_type.find("input:checked"));
  $feed_type.find("input").click(function(){
    toggle_radios($(this));
  });
}


/*
 * Make sure all Twitter links open in a new window.
 */
function thq_twitter_link_tweets($tweets) {
  $tweets.find("div.node-type-tweet a:not(.link-edit)").attr("target", "_blank");
}

;
// $Id$
/**
 * THQ User JavaScript.
 */
$(document).ready(function(){

  // First step of custom registration form.
  // Required information.
  var $register_required_form = $("#thq-user-register-required-form");
  if ($register_required_form.length > 0) {
    thq_user_init_registration_required_form($register_required_form);
  }

  // Twitter connect link
  var $link_twitter_connect = $("#link-twitter-connect");
  if ($link_twitter_connect.length > 0) {
    the_user_twitter_connect($link_twitter_connect);
  }

  // If user is too young, redirect on registration pages.
  if (typeof Drupal.settings.thq_user_age_gate != 'undefined') {
    if (Drupal.settings.thq_user_age_gate.check_age) {
      if ($.cookie(Drupal.settings.thq_user_age_gate.THQ_COOKIE_CAN_REGISTER) == '0') {
        window.location = Drupal.settings.basePath + 'age-gate/denied';
      }
    }
  }

  // Init activate users form.
  // Check all checkboxes on check-all click.
  $(".thq-user-checkall").click(function() {
    $('.thq-user-checkboxes').find(':checkbox').attr('checked', this.checked);
  });
});


/*
 * Initialize first step of custom registration process.
 *
 * @todo: String translation.
 */
function thq_user_init_registration_required_form($form) {

  //
  // Add username availability check
  //
  var $div_name = $form.find("#edit-name-wrapper");
  var $input_name = $form.find("#edit-name");

  // Create placeholder div for username suggestions.
  var $div_suggestions = $('<div id="username-suggestions"></div>')
    .click(function(e){
      thq_user_username_suggestion_clicked(e, $input_name);
    })
    .hide();

  // Loading
  var $loading = $('<span id="availability-loading">' + Drupal.t('Loading') +'</span>');

  // Create "check availability" link.
  var $link_availability = $('<a id="link-availability">' + Drupal.t('Check availability') +'</a>')
    .click(function(){
      thq_user_check_username_availability(
        $input_name, $div_suggestions, $link_availability, $loading);
    });

  // Add new elements to the DIV.
  $div_name
    .append($link_availability)
    .append($loading)
    .append($div_suggestions);
}


/*
 * Check username availability callback.
 */
function thq_user_check_username_availability($input, $output, $link, $loading) {
  // Make sure this is not empty
  var name = $input.val();
  if (name != "") {
    // Add "loading"
    $link.hide();
    $loading.show();

    // Call serverside function and return output.
    $output.load(Drupal.settings.basePath + Drupal.settings.thq_i18n.path_prefix + 'thq-user/checkname/' + $input.val(), function() {

      // Show server response
      $output.show();

      // Hide "loading"
      $loading.hide();
      $link.show();
    });
  }
}


/*
 * Username suggestion clicked
 */
function thq_user_username_suggestion_clicked (e, $input) {
  //console.log(e);
  if (e.target.tagName == 'LI' || e.target.tagName == 'A') {
    $li = $(e.target);
    $input.val($li.text());
  }
}


/*
 * Twitter connect link
 *
 * @todo: Center this window.
 */
function the_user_twitter_connect($link) {
  $link.click(function(e) {
    e.preventDefault();
    window.open($(this).attr("href"), "twitterconnect",
      "menubar=0,resizable=1,width=790,height=400");
  });
}


/*
 * User linked their Twitter account.
 */
function thq_user_twitter_linked() {

  // On register form, check the checkbox.
  var $twitter_checkbox = $("#edit-twitter-connected");
  if ($twitter_checkbox.length > 0) {
    $("#edit-twitter-connected").attr('checked', true);
  }

  // On edit form, submit it.
  var $twitter_form = $("#thq-user-twitter-form");
  if ($twitter_form.length > 0) {
    $twitter_form.submit();
  }
}


/*
 * User linked their Facebook account.
 */
function thq_user_facebook_linked() {
  $("#edit-facebook-connected").attr('checked', true);
}

;
/*!
* jQuery Form Plugin
* version: 2.43 (12-MAR-2010)
* @requires jQuery v1.3.2 or later
*
* Examples and documentation at: http://malsup.com/jquery/form/
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
(function(b){function o(){if(b.fn.ajaxSubmit.debug){var a="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log)window.console.log(a);else window.opera&&window.opera.postError&&window.opera.postError(a)}}b.fn.ajaxSubmit=function(a){function d(){function r(){var p=h.attr("target"),n=h.attr("action");j.setAttribute("target",z);j.getAttribute("method")!="POST"&&j.setAttribute("method","POST");j.getAttribute("action")!=g.url&&j.setAttribute("action",g.url);g.skipEncodingOverride||
h.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});g.timeout&&setTimeout(function(){C=true;s()},g.timeout);var m=[];try{if(g.extraData)for(var u in g.extraData)m.push(b('<input type="hidden" name="'+u+'" value="'+g.extraData[u]+'" />').appendTo(j)[0]);t.appendTo("body");t.data("form-plugin-onload",s);j.submit()}finally{j.setAttribute("action",n);p?j.setAttribute("target",p):h.removeAttr("target");b(m).remove()}}function s(){if(!D){var p=true;try{if(C)throw"timeout";var n,m;m=v.contentWindow?
v.contentWindow.document:v.contentDocument?v.contentDocument:v.document;var u=g.dataType=="xml"||m.XMLDocument||b.isXMLDoc(m);o("isXml="+u);if(!u&&(m.body==null||m.body.innerHTML=="")){if(--G){o("requeing onLoad callback, DOM not available");setTimeout(s,250);return}o("Could not access iframe DOM after 100 tries.");return}o("response detected");D=true;i.responseText=m.body?m.body.innerHTML:null;i.responseXML=m.XMLDocument?m.XMLDocument:m;i.getResponseHeader=function(H){return{"content-type":g.dataType}[H]};
if(g.dataType=="json"||g.dataType=="script"){var E=m.getElementsByTagName("textarea")[0];if(E)i.responseText=E.value;else{var F=m.getElementsByTagName("pre")[0];if(F)i.responseText=F.innerHTML}}else if(g.dataType=="xml"&&!i.responseXML&&i.responseText!=null)i.responseXML=A(i.responseText);n=b.httpData(i,g.dataType)}catch(B){o("error caught:",B);p=false;i.error=B;b.handleError(g,i,"error",B)}if(p){g.success(n,"success");w&&b.event.trigger("ajaxSuccess",[i,g])}w&&b.event.trigger("ajaxComplete",[i,g]);
w&&!--b.active&&b.event.trigger("ajaxStop");if(g.complete)g.complete(i,p?"success":"error");setTimeout(function(){t.removeData("form-plugin-onload");t.remove();i.responseXML=null},100)}}function A(p,n){if(window.ActiveXObject){n=new ActiveXObject("Microsoft.XMLDOM");n.async="false";n.loadXML(p)}else n=(new DOMParser).parseFromString(p,"text/xml");return n&&n.documentElement&&n.documentElement.tagName!="parsererror"?n:null}var j=h[0];if(b(":input[name=submit]",j).length)alert('Error: Form elements must not be named "submit".');
else{var g=b.extend({},b.ajaxSettings,a),q=b.extend(true,{},b.extend(true,{},b.ajaxSettings),g),z="jqFormIO"+(new Date).getTime(),t=b('<iframe id="'+z+'" name="'+z+'" src="'+g.iframeSrc+'" onload="(jQuery(this).data(\'form-plugin-onload\'))()" />'),v=t[0];t.css({position:"absolute",top:"-1000px",left:"-1000px"});var i={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=
1;t.attr("src",g.iframeSrc)}},w=g.global;w&&!b.active++&&b.event.trigger("ajaxStart");w&&b.event.trigger("ajaxSend",[i,g]);if(q.beforeSend&&q.beforeSend(i,q)===false)q.global&&b.active--;else if(!i.aborted){var D=false,C=0;if(q=j.clk){var y=q.name;if(y&&!q.disabled){g.extraData=g.extraData||{};g.extraData[y]=q.value;if(q.type=="image"){g.extraData[y+".x"]=j.clk_x;g.extraData[y+".y"]=j.clk_y}}}g.forceSync?r():setTimeout(r,10);var G=100}}}if(!this.length){o("ajaxSubmit: skipping submit process - no element selected");
return this}if(typeof a=="function")a={success:a};var e=b.trim(this.attr("action"));if(e)e=(e.match(/^([^#]+)/)||[])[1];e=e||window.location.href||"";a=b.extend({url:e,type:this.attr("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},a||{});e={};this.trigger("form-pre-serialize",[this,a,e]);if(e.veto){o("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(a.beforeSerialize&&a.beforeSerialize(this,a)===false){o("ajaxSubmit: submit aborted via beforeSerialize callback");
return this}var f=this.formToArray(a.semantic);if(a.data){a.extraData=a.data;for(var c in a.data)if(a.data[c]instanceof Array)for(var l in a.data[c])f.push({name:c,value:a.data[c][l]});else f.push({name:c,value:a.data[c]})}if(a.beforeSubmit&&a.beforeSubmit(f,this,a)===false){o("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[f,this,a,e]);if(e.veto){o("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}c=b.param(f);if(a.type.toUpperCase()==
"GET"){a.url+=(a.url.indexOf("?")>=0?"&":"?")+c;a.data=null}else a.data=c;var h=this,k=[];a.resetForm&&k.push(function(){h.resetForm()});a.clearForm&&k.push(function(){h.clearForm()});if(!a.dataType&&a.target){var x=a.success||function(){};k.push(function(r){var s=a.replaceTarget?"replaceWith":"html";b(a.target)[s](r).each(x,arguments)})}else a.success&&k.push(a.success);a.success=function(r,s,A){for(var j=0,g=k.length;j<g;j++)k[j].apply(a,[r,s,A||h,h])};c=b("input:file",this).fieldValue();l=false;
for(e=0;e<c.length;e++)if(c[e])l=true;if(c.length&&a.iframe!==false||a.iframe||l||0)a.closeKeepAlive?b.get(a.closeKeepAlive,d):d();else b.ajax(a);this.trigger("form-submit-notify",[this,a]);return this};b.fn.ajaxForm=function(a){return this.ajaxFormUnbind().bind("submit.form-plugin",function(d){d.preventDefault();b(this).ajaxSubmit(a)}).bind("click.form-plugin",function(d){var e=d.target,f=b(e);if(!f.is(":submit,input:image")){e=f.closest(":submit");if(e.length==0)return;e=e[0]}var c=this;c.clk=e;
if(e.type=="image")if(d.offsetX!=undefined){c.clk_x=d.offsetX;c.clk_y=d.offsetY}else if(typeof b.fn.offset=="function"){f=f.offset();c.clk_x=d.pageX-f.left;c.clk_y=d.pageY-f.top}else{c.clk_x=d.pageX-e.offsetLeft;c.clk_y=d.pageY-e.offsetTop}setTimeout(function(){c.clk=c.clk_x=c.clk_y=null},100)})};b.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};b.fn.formToArray=function(a){var d=[];if(this.length==0)return d;var e=this[0],f=a?e.getElementsByTagName("*"):e.elements;
if(!f)return d;for(var c=0,l=f.length;c<l;c++){var h=f[c],k=h.name;if(k)if(a&&e.clk&&h.type=="image"){if(!h.disabled&&e.clk==h){d.push({name:k,value:b(h).val()});d.push({name:k+".x",value:e.clk_x},{name:k+".y",value:e.clk_y})}}else if((h=b.fieldValue(h,true))&&h.constructor==Array)for(var x=0,r=h.length;x<r;x++)d.push({name:k,value:h[x]});else h!==null&&typeof h!="undefined"&&d.push({name:k,value:h})}if(!a&&e.clk){a=b(e.clk);f=a[0];if((k=f.name)&&!f.disabled&&f.type=="image"){d.push({name:k,value:a.val()});
d.push({name:k+".x",value:e.clk_x},{name:k+".y",value:e.clk_y})}}return d};b.fn.formSerialize=function(a){return b.param(this.formToArray(a))};b.fn.fieldSerialize=function(a){var d=[];this.each(function(){var e=this.name;if(e){var f=b.fieldValue(this,a);if(f&&f.constructor==Array)for(var c=0,l=f.length;c<l;c++)d.push({name:e,value:f[c]});else f!==null&&typeof f!="undefined"&&d.push({name:this.name,value:f})}});return b.param(d)};b.fn.fieldValue=function(a){for(var d=[],e=0,f=this.length;e<f;e++){var c=
b.fieldValue(this[e],a);c===null||typeof c=="undefined"||c.constructor==Array&&!c.length||(c.constructor==Array?b.merge(d,c):d.push(c))}return d};b.fieldValue=function(a,d){var e=a.name,f=a.type,c=a.tagName.toLowerCase();if(typeof d=="undefined")d=true;if(d&&(!e||a.disabled||f=="reset"||f=="button"||(f=="checkbox"||f=="radio")&&!a.checked||(f=="submit"||f=="image")&&a.form&&a.form.clk!=a||c=="select"&&a.selectedIndex==-1))return null;if(c=="select"){c=a.selectedIndex;if(c<0)return null;d=[];a=a.options;
e=(f=f=="select-one")?c+1:a.length;for(c=f?c:0;c<e;c++){var l=a[c];if(l.selected){var h=l.value;h||(h=l.attributes&&l.attributes.value&&!l.attributes.value.specified?l.text:l.value);if(f)return h;d.push(h)}}return d}return a.value};b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()})};b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var a=this.type,d=this.tagName.toLowerCase();if(a=="text"||a=="password"||d=="textarea")this.value=
"";else if(a=="checkbox"||a=="radio")this.checked=false;else if(d=="select")this.selectedIndex=-1})};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||typeof this.reset=="object"&&!this.reset.nodeType)this.reset()})};b.fn.enable=function(a){if(a==undefined)a=true;return this.each(function(){this.disabled=!a})};b.fn.selected=function(a){if(a==undefined)a=true;return this.each(function(){var d=this.type;if(d=="checkbox"||d=="radio")this.checked=a;else if(this.tagName.toLowerCase()==
"option"){d=b(this).parent("select");a&&d[0]&&d[0].type=="select-one"&&d.find("option").selected(false);this.selected=a}})}})(jQuery);
;
/* 
 * THQ Master JS
 */
$(document).ready(function() {

  // Add dividers to lists.
  $(".with-dividers").thq_master_withDividers();

  // Add target to external links.
  $("a[rel=external]").attr("target", "_blank");

  // Add default value to username.
  // @todo: Is this appropriate to be in the master theme?
  // @todo: Convert to a jQuery plugin.
  // @todo: Convert into a stand-alone function so that the sub-themes can override.
  // @todo: Add password handling.
  $("#user-box form .form-item-name input").each(function(){
    thq_master_default_value($(this), Drupal.t('username'));
  });

  // For images embedded via FCKeditor, add classes.
  $("img[align=left]").addClass("align-left");
  $("img[align=right]").addClass("align-right");

  thq_master_forum_search_init();
});


/*
 * Init search form on forums.
 * Add type:forum to search strimg;
 */
function thq_master_forum_search_init() {

  var $forum_search_form = $("#forum-search-form");

  if ($forum_search_form.length > 0) {

    // Update the search form to filter by type forum.
    $("#search-block-form #edit-submit").click(function(e){
      e.preventDefault();
      var search_term = $("input[name=search_block_form]").val();
      $("input[name=search_block_form]").val(search_term + " type:forum");
      $("#search-block-form").submit();
    });
  }
}


/*
 * Add default value to input field.
 */
function thq_master_default_value($element, default_value) {
  var value = $element.val();

  // If current value is empty, or possibly a wrong case, replace with default
  if (value == '' || (value.toLowerCase() == default_value.toLowerCase())) {
    $element.val(default_value);
  }

  // Add click and blur
  $element
    .click(function(){
      var value = this.value;
      if (value.toLowerCase() == default_value.toLowerCase()) {
        this.value = '';
      }
      else {
        this.select();
      }
    })
    .focus(function(){
      var value = this.value;
      if (value.toLowerCase() == default_value.toLowerCase()) {
        this.value = '';
      }
      else {
        this.select();
      }
    })
    .blur(function(){
      var value = this.value;
      if (value == '') {
        this.value = default_value;
      }
    });
}


/*
 * Function to scroll body to a certain offset.
 * @todo: Turn into jQuery plugin.
 */
function thq_master_scroll_body(offset) {
  if ($.browser.webkit || $.browser.safari) {
    var body_scroll = $("body").scrollTop();
  }
  else {
    var body_scroll = $("html").scrollTop();
  }

  if (body_scroll > offset) {
    $("html, body").stop(true, true)
      .animate({ scrollTop: offset}, "fast");
  }
}


/*
 * Function for creating tabbed content out of thin air.
 *
 * @todo: Turn into jQuery plugin.
 *
 * @param   string   Selectors of the blocks you want to turn to tabs, as
 *                   jQuery selector expression.
 *
 * @param   string   Unique ID you wish to dive to the tab navigation element.
 *
 * @param   string   jQuery selector expression to find block titles in the
 *                   blocks.
 *
 * @param   function Callback function you want to fire once the tabs are
 *                   initialized.
 */
function thq_master_tabs_from_blocks(block_selectors, tab_navigation_id, block_title_selector, callback) {
  var $blocks = $(block_selectors);
  if ($blocks.length > 0) {

    var blocks = [],
        i = 0,
        tallest_block = 0;

    // Create tabs placeholder.
    var $tabs = $('<ul class="tabs primary clearfix" id="' + tab_navigation_id + '"></ul>')
      .insertBefore($blocks.eq(0))
      .wrap('<div class="tabs"></div>');

    var $parent = $('<div id="' + tab_navigation_id + '-parent"></div>')
      .insertBefore($blocks.eq(0));

    // Function which swaps the tabs.
    var toggle_tab = function($clicked_tab) {
      var j = $clicked_tab.attr("id").replace(tab_navigation_id + '-', '');
      $blocks.hide();
      blocks[j].fadeIn("fast");
      $tabs.find("li").removeClass("active");
      $clicked_tab.parent().addClass("active");
    }

    // Hide all block titles.
    if (typeof block_title_selector == "undefined") {
      block_title_selector = "h3.block-title";
    }
    $blocks.find(block_title_selector).hide();

    // Loop over our blocks.
    $blocks.each(function(){

      var $block = $(this);
      blocks[i] = $block;

      $block.appendTo($parent);

      var block_height = $block.height();
      if (block_height > tallest_block) {
        tallest_block = block_height;
      }
      
      // Find the titles.
      var $block_title = $block.find(block_title_selector);
      if ($block_title.length > 0) {
        if (i > 0) {
          $block.hide();
        }

        var $tab = $('<a id="' + tab_navigation_id + '-' + i + '"></a>')
          .click(function(e){
            e.preventDefault();
            toggle_tab($(this));
          })
          .html($block_title.html())
          .appendTo($tabs)
          .wrap("<li></li>");

        if (i == 0) {
          $tab.parent().addClass("active");
        }

        i++;
      }
    });

    if (tallest_block > 0) {
      $parent.css({'height': (tallest_block + 'px')});
    }

    if (typeof callback == "function") {
      callback();
    }
  }
}


/*
 * Custom THQ Master jQuery plugins.
 *
 * @todo: Do we need any options for these functions?
 */
(function($) {

  /*
   * Insert a span into specific elements for sliding doors effect.
   */
  $.fn.thq_master_innerWrap = function(options) {

    // We may need opts in the future.
    var opts = $.extend({}, $.fn.thq_master_innerWrap.defaults, options);
    return this.each(function() {
      var classes = $(this).attr("class").split(" ");
      $(this).wrapInner('<span class="inner-wrap"></span>');
      for (var i in classes) {
        $(this).addClass(classes[i] + "-wrapped");
      }
    });
  };
  $.fn.thq_master_innerWrap.defaults = {};


  /*
   * With dividers function.
   * Turn any list into an inline list with pipe dividers.
   */
  $.fn.thq_master_withDividers = function(options) {

    // We may need opts in the future.
    var opts = $.extend({}, $.fn.thq_master_withDividers.defaults, options);

    return this.each(function() {
      $(this).addClass("with-dividers").find("li:not(:last)").after('<li class="li-divider">' + opts.divider + '</li>');
    });
  };
  $.fn.thq_master_withDividers.defaults = {
    divider: '|'
  };

})(jQuery);


/**
 * Creating custom :external selector.
 * http://jquery-howto.blogspot.com/2009/06/find-select-all-external-links-with.html.
 */
$.expr[':'].external = function(obj){
    return !obj.href.match(/^mailto\:/)
            && (obj.hostname != location.hostname);
};

;
/* http://keith-wood.name/countdown.html
   Countdown for jQuery v1.5.9.
   Written by Keith Wood (kbwood{at}iinet.com.au) January 2008.
   Dual licensed under the GPL (http://dev.jquery.com/browser/trunk/jquery/GPL-LICENSE.txt) and 
   MIT (http://dev.jquery.com/browser/trunk/jquery/MIT-LICENSE.txt) licenses. 
   Please attribute the author if you use it. */
(function($){function Countdown(){this.regional=[];this.regional['']={labels:['Years','Months','Weeks','Days','Hours','Minutes','Seconds'],labels1:['Year','Month','Week','Day','Hour','Minute','Second'],compactLabels:['y','m','w','d'],whichLabels:null,timeSeparator:':',isRTL:false};this._defaults={until:null,since:null,timezone:null,serverSync:null,format:'dHMS',layout:'',compact:false,significant:0,description:'',expiryUrl:'',expiryText:'',alwaysExpire:false,onExpiry:null,onTick:null,tickInterval:1};$.extend(this._defaults,this.regional['']);this._serverSyncs=[]}var w='countdown';var Y=0;var O=1;var W=2;var D=3;var H=4;var M=5;var S=6;$.extend(Countdown.prototype,{markerClassName:'hasCountdown',_timer:setInterval(function(){$.countdown._updateTargets()},980),_timerTargets:[],setDefaults:function(a){this._resetExtraLabels(this._defaults,a);extendRemove(this._defaults,a||{})},UTCDate:function(a,b,c,e,f,g,h,i){if(typeof b=='object'&&b.constructor==Date){i=b.getMilliseconds();h=b.getSeconds();g=b.getMinutes();f=b.getHours();e=b.getDate();c=b.getMonth();b=b.getFullYear()}var d=new Date();d.setUTCFullYear(b);d.setUTCDate(1);d.setUTCMonth(c||0);d.setUTCDate(e||1);d.setUTCHours(f||0);d.setUTCMinutes((g||0)-(Math.abs(a)<30?a*60:a));d.setUTCSeconds(h||0);d.setUTCMilliseconds(i||0);return d},periodsToSeconds:function(a){return a[0]*31557600+a[1]*2629800+a[2]*604800+a[3]*86400+a[4]*3600+a[5]*60+a[6]},_settingsCountdown:function(a,b){if(!b){return $.countdown._defaults}var c=$.data(a,w);return(b=='all'?c.options:c.options[b])},_attachCountdown:function(a,b){var c=$(a);if(c.hasClass(this.markerClassName)){return}c.addClass(this.markerClassName);var d={options:$.extend({},b),_periods:[0,0,0,0,0,0,0]};$.data(a,w,d);this._changeCountdown(a)},_addTarget:function(a){if(!this._hasTarget(a)){this._timerTargets.push(a)}},_hasTarget:function(a){return($.inArray(a,this._timerTargets)>-1)},_removeTarget:function(b){this._timerTargets=$.map(this._timerTargets,function(a){return(a==b?null:a)})},_updateTargets:function(){for(var i=this._timerTargets.length-1;i>=0;i--){this._updateCountdown(this._timerTargets[i])}},_updateCountdown:function(a,b){var c=$(a);b=b||$.data(a,w);if(!b){return}c.html(this._generateHTML(b));c[(this._get(b,'isRTL')?'add':'remove')+'Class']('countdown_rtl');var d=this._get(b,'onTick');if(d){var e=b._hold!='lap'?b._periods:this._calculatePeriods(b,b._show,this._get(b,'significant'),new Date());var f=this._get(b,'tickInterval');if(f==1||this.periodsToSeconds(e)%f==0){d.apply(a,[e])}}var g=b._hold!='pause'&&(b._since?b._now.getTime()<b._since.getTime():b._now.getTime()>=b._until.getTime());if(g&&!b._expiring){b._expiring=true;if(this._hasTarget(a)||this._get(b,'alwaysExpire')){this._removeTarget(a);var h=this._get(b,'onExpiry');if(h){h.apply(a,[])}var i=this._get(b,'expiryText');if(i){var j=this._get(b,'layout');b.options.layout=i;this._updateCountdown(a,b);b.options.layout=j}var k=this._get(b,'expiryUrl');if(k){window.location=k}}b._expiring=false}else if(b._hold=='pause'){this._removeTarget(a)}$.data(a,w,b)},_changeCountdown:function(a,b,c){b=b||{};if(typeof b=='string'){var d=b;b={};b[d]=c}var e=$.data(a,w);if(e){this._resetExtraLabels(e.options,b);extendRemove(e.options,b);this._adjustSettings(a,e);$.data(a,w,e);var f=new Date();if((e._since&&e._since<f)||(e._until&&e._until>f)){this._addTarget(a)}this._updateCountdown(a,e)}},_resetExtraLabels:function(a,b){var c=false;for(var n in b){if(n!='whichLabels'&&n.match(/[Ll]abels/)){c=true;break}}if(c){for(var n in a){if(n.match(/[Ll]abels[0-9]/)){a[n]=null}}}},_adjustSettings:function(a,b){var c;var d=this._get(b,'serverSync');var e=0;var f=null;for(var i=0;i<this._serverSyncs.length;i++){if(this._serverSyncs[i][0]==d){f=this._serverSyncs[i][1];break}}if(f!=null){e=(d?f:0);c=new Date()}else{var g=(d?d.apply(a,[]):null);c=new Date();e=(g?c.getTime()-g.getTime():0);this._serverSyncs.push([d,e])}var h=this._get(b,'timezone');h=(h==null?-c.getTimezoneOffset():h);b._since=this._get(b,'since');if(b._since!=null){b._since=this.UTCDate(h,this._determineTime(b._since,null));if(b._since&&e){b._since.setMilliseconds(b._since.getMilliseconds()+e)}}b._until=this.UTCDate(h,this._determineTime(this._get(b,'until'),c));if(e){b._until.setMilliseconds(b._until.getMilliseconds()+e)}b._show=this._determineShow(b)},_destroyCountdown:function(a){var b=$(a);if(!b.hasClass(this.markerClassName)){return}this._removeTarget(a);b.removeClass(this.markerClassName).empty();$.removeData(a,w)},_pauseCountdown:function(a){this._hold(a,'pause')},_lapCountdown:function(a){this._hold(a,'lap')},_resumeCountdown:function(a){this._hold(a,null)},_hold:function(a,b){var c=$.data(a,w);if(c){if(c._hold=='pause'&&!b){c._periods=c._savePeriods;var d=(c._since?'-':'+');c[c._since?'_since':'_until']=this._determineTime(d+c._periods[0]+'y'+d+c._periods[1]+'o'+d+c._periods[2]+'w'+d+c._periods[3]+'d'+d+c._periods[4]+'h'+d+c._periods[5]+'m'+d+c._periods[6]+'s');this._addTarget(a)}c._hold=b;c._savePeriods=(b=='pause'?c._periods:null);$.data(a,w,c);this._updateCountdown(a,c)}},_getTimesCountdown:function(a){var b=$.data(a,w);return(!b?null:(!b._hold?b._periods:this._calculatePeriods(b,b._show,this._get(b,'significant'),new Date())))},_get:function(a,b){return(a.options[b]!=null?a.options[b]:$.countdown._defaults[b])},_determineTime:function(k,l){var m=function(a){var b=new Date();b.setTime(b.getTime()+a*1000);return b};var n=function(a){a=a.toLowerCase();var b=new Date();var c=b.getFullYear();var d=b.getMonth();var e=b.getDate();var f=b.getHours();var g=b.getMinutes();var h=b.getSeconds();var i=/([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g;var j=i.exec(a);while(j){switch(j[2]||'s'){case's':h+=parseInt(j[1],10);break;case'm':g+=parseInt(j[1],10);break;case'h':f+=parseInt(j[1],10);break;case'd':e+=parseInt(j[1],10);break;case'w':e+=parseInt(j[1],10)*7;break;case'o':d+=parseInt(j[1],10);e=Math.min(e,$.countdown._getDaysInMonth(c,d));break;case'y':c+=parseInt(j[1],10);e=Math.min(e,$.countdown._getDaysInMonth(c,d));break}j=i.exec(a)}return new Date(c,d,e,f,g,h,0)};var o=(k==null?l:(typeof k=='string'?n(k):(typeof k=='number'?m(k):k)));if(o)o.setMilliseconds(0);return o},_getDaysInMonth:function(a,b){return 32-new Date(a,b,32).getDate()},_normalLabels:function(a){return a},_generateHTML:function(c){var d=this._get(c,'significant');c._periods=(c._hold?c._periods:this._calculatePeriods(c,c._show,d,new Date()));var e=false;var f=0;var g=d;var h=$.extend({},c._show);for(var i=Y;i<=S;i++){e|=(c._show[i]=='?'&&c._periods[i]>0);h[i]=(c._show[i]=='?'&&!e?null:c._show[i]);f+=(h[i]?1:0);g-=(c._periods[i]>0?1:0)}var j=[false,false,false,false,false,false,false];for(var i=S;i>=Y;i--){if(c._show[i]){if(c._periods[i]){j[i]=true}else{j[i]=g>0;g--}}}var k=this._get(c,'compact');var l=this._get(c,'layout');var m=(k?this._get(c,'compactLabels'):this._get(c,'labels'));var n=this._get(c,'whichLabels')||this._normalLabels;var o=this._get(c,'timeSeparator');var p=this._get(c,'description')||'';var q=function(a){var b=$.countdown._get(c,'compactLabels'+n(c._periods[a]));return(h[a]?c._periods[a]+(b?b[a]:m[a])+' ':'')};var r=function(a){var b=$.countdown._get(c,'labels'+n(c._periods[a]));return((!d&&h[a])||(d&&j[a])?'<span class="countdown_section"><span class="countdown_amount">'+c._periods[a]+'</span><br/>'+(b?b[a]:m[a])+'</span>':'')};return(l?this._buildLayout(c,h,l,k,d,j):((k?'<span class="countdown_row countdown_amount'+(c._hold?' countdown_holding':'')+'">'+q(Y)+q(O)+q(W)+q(D)+(h[H]?this._minDigits(c._periods[H],2):'')+(h[M]?(h[H]?o:'')+this._minDigits(c._periods[M],2):'')+(h[S]?(h[H]||h[M]?o:'')+this._minDigits(c._periods[S],2):''):'<span class="countdown_row countdown_show'+(d||f)+(c._hold?' countdown_holding':'')+'">'+r(Y)+r(O)+r(W)+r(D)+r(H)+r(M)+r(S))+'</span>'+(p?'<span class="countdown_row countdown_descr">'+p+'</span>':'')))},_buildLayout:function(c,d,e,f,g,h){var j=this._get(c,(f?'compactLabels':'labels'));var k=this._get(c,'whichLabels')||this._normalLabels;var l=function(a){return($.countdown._get(c,(f?'compactLabels':'labels')+k(c._periods[a]))||j)[a]};var m=function(a,b){return Math.floor(a/b)%10};var o={desc:this._get(c,'description'),sep:this._get(c,'timeSeparator'),yl:l(Y),yn:c._periods[Y],ynn:this._minDigits(c._periods[Y],2),ynnn:this._minDigits(c._periods[Y],3),y1:m(c._periods[Y],1),y10:m(c._periods[Y],10),y100:m(c._periods[Y],100),y1000:m(c._periods[Y],1000),ol:l(O),on:c._periods[O],onn:this._minDigits(c._periods[O],2),onnn:this._minDigits(c._periods[O],3),o1:m(c._periods[O],1),o10:m(c._periods[O],10),o100:m(c._periods[O],100),o1000:m(c._periods[O],1000),wl:l(W),wn:c._periods[W],wnn:this._minDigits(c._periods[W],2),wnnn:this._minDigits(c._periods[W],3),w1:m(c._periods[W],1),w10:m(c._periods[W],10),w100:m(c._periods[W],100),w1000:m(c._periods[W],1000),dl:l(D),dn:c._periods[D],dnn:this._minDigits(c._periods[D],2),dnnn:this._minDigits(c._periods[D],3),d1:m(c._periods[D],1),d10:m(c._periods[D],10),d100:m(c._periods[D],100),d1000:m(c._periods[D],1000),hl:l(H),hn:c._periods[H],hnn:this._minDigits(c._periods[H],2),hnnn:this._minDigits(c._periods[H],3),h1:m(c._periods[H],1),h10:m(c._periods[H],10),h100:m(c._periods[H],100),h1000:m(c._periods[H],1000),ml:l(M),mn:c._periods[M],mnn:this._minDigits(c._periods[M],2),mnnn:this._minDigits(c._periods[M],3),m1:m(c._periods[M],1),m10:m(c._periods[M],10),m100:m(c._periods[M],100),m1000:m(c._periods[M],1000),sl:l(S),sn:c._periods[S],snn:this._minDigits(c._periods[S],2),snnn:this._minDigits(c._periods[S],3),s1:m(c._periods[S],1),s10:m(c._periods[S],10),s100:m(c._periods[S],100),s1000:m(c._periods[S],1000)};var p=e;for(var i=Y;i<=S;i++){var q='yowdhms'.charAt(i);var r=new RegExp('\\{'+q+'<\\}(.*)\\{'+q+'>\\}','g');p=p.replace(r,((!g&&d[i])||(g&&h[i])?'$1':''))}$.each(o,function(n,v){var a=new RegExp('\\{'+n+'\\}','g');p=p.replace(a,v)});return p},_minDigits:function(a,b){a=''+a;if(a.length>=b){return a}a='0000000000'+a;return a.substr(a.length-b)},_determineShow:function(a){var b=this._get(a,'format');var c=[];c[Y]=(b.match('y')?'?':(b.match('Y')?'!':null));c[O]=(b.match('o')?'?':(b.match('O')?'!':null));c[W]=(b.match('w')?'?':(b.match('W')?'!':null));c[D]=(b.match('d')?'?':(b.match('D')?'!':null));c[H]=(b.match('h')?'?':(b.match('H')?'!':null));c[M]=(b.match('m')?'?':(b.match('M')?'!':null));c[S]=(b.match('s')?'?':(b.match('S')?'!':null));return c},_calculatePeriods:function(c,d,e,f){c._now=f;c._now.setMilliseconds(0);var g=new Date(c._now.getTime());if(c._since){if(f.getTime()<c._since.getTime()){c._now=f=g}else{f=c._since}}else{g.setTime(c._until.getTime());if(f.getTime()>c._until.getTime()){c._now=f=g}}var h=[0,0,0,0,0,0,0];if(d[Y]||d[O]){var i=$.countdown._getDaysInMonth(f.getFullYear(),f.getMonth());var j=$.countdown._getDaysInMonth(g.getFullYear(),g.getMonth());var k=(g.getDate()==f.getDate()||(g.getDate()>=Math.min(i,j)&&f.getDate()>=Math.min(i,j)));var l=function(a){return(a.getHours()*60+a.getMinutes())*60+a.getSeconds()};var m=Math.max(0,(g.getFullYear()-f.getFullYear())*12+g.getMonth()-f.getMonth()+((g.getDate()<f.getDate()&&!k)||(k&&l(g)<l(f))?-1:0));h[Y]=(d[Y]?Math.floor(m/12):0);h[O]=(d[O]?m-h[Y]*12:0);f=new Date(f.getTime());var n=(f.getDate()==i);var o=$.countdown._getDaysInMonth(f.getFullYear()+h[Y],f.getMonth()+h[O]);if(f.getDate()>o){f.setDate(o)}f.setFullYear(f.getFullYear()+h[Y]);f.setMonth(f.getMonth()+h[O]);if(n){f.setDate(o)}}var p=Math.floor((g.getTime()-f.getTime())/1000);var q=function(a,b){h[a]=(d[a]?Math.floor(p/b):0);p-=h[a]*b};q(W,604800);q(D,86400);q(H,3600);q(M,60);q(S,1);if(p>0&&!c._since){var r=[1,12,4.3482,7,24,60,60];var s=S;var t=1;for(var u=S;u>=Y;u--){if(d[u]){if(h[s]>=t){h[s]=0;p=1}if(p>0){h[u]++;p=0;s=u;t=1}}t*=r[u]}}if(e){for(var u=Y;u<=S;u++){if(e&&h[u]){e--}else if(!e){h[u]=0}}}return h}});function extendRemove(a,b){$.extend(a,b);for(var c in b){if(b[c]==null){a[c]=null}}return a}$.fn.countdown=function(a){var b=Array.prototype.slice.call(arguments,1);if(a=='getTimes'||a=='settings'){return $.countdown['_'+a+'Countdown'].apply($.countdown,[this[0]].concat(b))}return this.each(function(){if(typeof a=='string'){$.countdown['_'+a+'Countdown'].apply($.countdown,[this].concat(b))}else{$.countdown._attachCountdown(this,a)}})};$.countdown=new Countdown()})(jQuery);;
/*
 * SM 2011 JavaScript.
 * @note: These are just examples. Feel free to delete everything.
 */
$(document).ready(function() {

  // Add dividers to footer menus.
  $("#footer ul.menu").sm2011_withDividers();

  // Example of Cufon replacement.
  //Cufon.replace('h1.title, h2.title, h3.title, .link-button-more, .pager');
  if (Drupal.settings.thq_i18n.language_code != 'ru') {
    Cufon.replace('h3.block-title, #block-menu-primary-links ul.menu li a, #row-main-top ul.menu li, #footer #block-menu-menu-menu-legal .menu li, .section-screenshots .menu-block-1 ul li, .section-concept-art .menu-block-1 ul li, .section-videos .menu-block-1 ul li, #block-menu_block-2 ul.menu li a', {hover: 'true'});
  }

  // Initialize the homepage.
  sm2011_homepage_init();

  // Initialize the flag selector.
  sm2011_flags_init();

  // Add skinned scrollbars on Twitter block everywhere except for homepage.
  if (!$("body").hasClass("front")) {
    sm2011_scrollbars_init('#row-main-right-inner .block-thq_twitter .item-list, .sm-game-content-copy .sm-game-content-copy-inner');
  }

  // Init weapons.
  $("#sm-weapons-view").sm2011_weapons();

  // Init characters.
  $("#sm-characters-view").sm2011_characters();

  // Init quiz.
  sm2011_init_quiz();

  // Init buy / pre-order page.
  sm2011_init_buy();
});


/**
 * Init jScrollPane for custom Scrollbars.
 */
function sm2011_scrollbars_init(block_selectors) {
  
  var $blocks = $(block_selectors);
  if ($blocks.length > 0) {
    
    $blocks.each(function(i) {
    
      // Init jScrollPane.
      $blocks.eq(i).jScrollPane({
        showArrows: false, 
        dragMaxHeight: 25, 
        scrollbarWidth: 20
      });
      
      // Create API var.
      //var api = $('#' + $(this).attr('id')).data('jsp');
      
      // Reinitialise jScrollPane and scroll to top when tabbed nav item is clicked.
      var $tab_nav_parent = $('ul#tab-navigation');
      if ($tab_nav_parent.length > 0) {
        $tab_nav_parent.find('a').click(function(e) {
          
          // Re-initialize scrollbar
          $blocks.eq(i).jScrollPane({
            showArrows: false, 
            dragMaxHeight: 25, 
            scrollbarWidth: 20
          });
          
          // Scroll to top
          $blocks.eq(i)[0].scrollTo(0);
          
          // Reinitialize Cufon
          Cufon.replace(' .front #row-main-right-inner #tab-navigation a', {hover: 'true'});
        });
      }
    });
  }
}


/**
 * Override thq_jumbotron_init to get rid of images in pager.
 */
function thq_jumbotron_init($jumbotron) {
  $jumbotron_slides = $("#thq-jumbotron-slides");

  $jumbotron_slides.cycle({
    fx: 'scrollHorz',
    timeout: 6000,
    speed: 500,
    pager:  '#thq-jumbotron-pager',
    slideExpr: 'a'
  });
}


/**
 * Override thq_jumbotron_promos_init to get rid of images in pager.
 */
function thq_jumbotron_promos_init($jumbotrons) {
  $jumbotrons.each(function(){

    $jumbotron_slides = $(this).find('.thq-jumbotron-slides');
    $jumbotron_pager = $(this).find('.thq-jumbotron-pager');

    $jumbotron_slides.cycle({
      fx: 'scrollHorz',
      timeout: 6000,
      speed: 500,
      pager: $jumbotron_pager,
      slideExpr: 'div'
    });
  });
}


/**
 * Initialize the flag language selector.
 */
function sm2011_flags_init() {
  $flag_button = $("#sm-2011-change-language");

  // Do not do the slidey thingy on the age gate.
  if ($flag_button.length > 0 && !$("body").hasClass("page-age-gate")) {

    $flags = $("#sm-2011-flag-switcher");
    $flags.originalWidth = $flags.width();

    // Shrink the flag selector.
    $flags.css({overflow: 'hidden'}).animate({width: '25px'}, "fast");

    $flag_button.toggle(function(){
      $flags.animate({width: $flags.originalWidth + 'px'}, "fast");
      $(this).addClass("slide-left").removeClass("slide-right");
    }, function(){
      $flags.animate({width: '25px'}, "fast");
      $(this).addClass("slide-right").removeClass("slide-left");
    });
  }
}


/**
 * Initialize the homepage.
 */
function sm2011_homepage_init() {
  $homepage = $("body.front");
  if ($homepage.length > 0) {

    // Create tabs from blocks, and add scrollbars.
    thq_master_tabs_from_blocks('#block-thq_twitter-thqtwitter, #block-views-sm_news-block_1', 'tab-navigation', 'h3.block-title', function(){
      $("#tab-navigation-parent").css({height: '231px'});
      sm2011_scrollbars_init("#tab-navigation-parent");
      Cufon.replace(' .front #row-main-right-inner #tab-navigation a', {hover: 'true'});
    });

    var language_code = Drupal.settings.thq_i18n.language_code;

    // Track Google analytics events on banner clicks.
    $banner_links = $("#row-5-main .thq-jumbotron-slides a");
    $banner_links.click(function(){
      var alt = $(this).find("img").attr("alt");
      _gaq.push(['_trackEvent', 'Pre-order Banners', 'Click', language_code + ': Homepage Bottom - ' + alt]);
    });
    
    // Track Google analytics events on burst banner clicks.
    $burst_links = $("#row-1-right .thq-jumbotron-slides a");
    $burst_links.click(function(){
      var alt = $(this).find("img").attr("alt");
      _gaq.push(['_trackEvent', 'Pre-order Banners', 'Click', language_code + ': Homepage Yop Right - ' + alt]);
    });
  }
}


/**
 * Initialize pages on weapons page.
 */
function sm_2011_weapons_pager_init($view, $tables) {
  
}


/*
 * Custom SM2011 jQuery plugins.
 *
 * @todo: Do we need any options for these functions?
 */
(function($) {

  /**
   * Weapons page plugin.
   */
  $.fn.sm2011_weapons = function(options) {

    // We may need opts in the future.
    var opts = $.extend({}, $.fn.sm2011_weapons.defaults, options);

    var $view = null,
        $tables = null,
        $pager = null,
        $next = null,
        $prev = null,
        current_index = 0,
        total_pages = 1,
        $weapons = null,
        $title = null,
        $subtitle = null,
        $description = null,
        $hero = null,
        $current_weapon = null;

    return this.each(function() {

      $view = $(this);

      // Init elements.
      $title = $("#sm-weapon-title");
      $subtitle = $("#sm-weapon-subtitle");
      $description = $("#sm-weapon-description");
      $hero = $("#sm-game-hero-flash");

      // Init pages.
      $tables = $view.find(".sm-weapons-grid");

      if ($tables.length > 1) {
        total_pages =  $tables.length;

        $pager = $view.find("#sm-weapons-pager").show();

        // @todo: Internationalization?
        $next = $('<a class="sm-weapons-arrow" id="sm-weapons-next">Next</a>').click(function(){

          next_index = current_index + 1;
          if ($tables.eq(next_index).length > 0) {
            $tables.eq(current_index).hide();
            $tables.eq(next_index).fadeIn();
            current_index = next_index;

            $prev.removeClass("sm-weapons-arrow-disabled");
          }

          if (current_index + 1 == total_pages) {
            $(this).addClass("sm-weapons-arrow-disabled");
          }
          else {
            $(this).removeClass("sm-weapons-arrow-disabled");
          }

        }).appendTo($pager);

        $prev = $('<a class="sm-weapons-arrow" id="sm-weapons-prev">Prev</a>').addClass("sm-weapons-arrow-disabled").click(function(){

          prev_index = current_index - 1;
          if ($tables.eq(prev_index).length > 0) {
            $tables.eq(current_index).hide();
            $tables.eq(prev_index).fadeIn();
            current_index = prev_index;

            $next.removeClass("sm-weapons-arrow-disabled");
          }

          if (current_index == 0) {
            $(this).addClass("sm-weapons-arrow-disabled");
          }
          else {
            $(this).removeClass("sm-weapons-arrow-disabled");
          }

        }).appendTo($pager);
      }


      // Init weapon details.
      $weapons = $view.find(".sm-weapon-item");
      $weapons.each(function(){

        $(this).find(".views-field-field-sm-weapon-image-fid a").click(function(e, weapon){
          e.preventDefault();
        });

        $(this).hover(function(){
          $(this).addClass("sm-weapon-hover");
        }, function(){
          $(this).removeClass("sm-weapon-hover");
        });

        $(this).click(function(){

          if ($current_weapon != null) {
            $current_weapon.removeClass("sm-current-weapon");
          }

          $title.html($(this).find(".views-field-title").html());
          $subtitle.html($(this).find(".views-field-field-sm-weapon-subtitle-value").html());
          $description.html($(this).find(".views-field-body").html());


          // Initialize jScrollpane on the description.
          $description.jScrollPane({
            showArrows: false,
            dragMaxHeight: 25,
            scrollbarWidth: 20
          });

          // Scroll to top
          //$description.scrollTo(0);

          // @todo: Play flash video of the weapon.
          $hero.html($(this).find(".views-field-field-sm-game-hero-fid").html());

          $(this).addClass("sm-current-weapon");

          $current_weapon = $(this);

        });
      });

      // Init the first click.

      // If we have a current weapon...
      if (typeof Drupal.settings.sm2011 != "undefined") {

        $initial_weapon = $("#sm-weapon-nid-" + Drupal.settings.sm2011.current_weapon);

        // Scroll to appropriate page.
        if (!$initial_weapon.is(":visible")) {
          $table = $initial_weapon.parents("table");
          page_index = $table.attr("id").replace("sm-weapons-grid-", "");
          $next.addClass("sm-weapons-arrow-disabled");
          $prev.addClass("sm-weapons-arrow-disabled");

          $tables.eq(current_index).hide();
          $tables.eq(page_index).fadeIn();

          current_index = page_index;

          if (current_index == 0) {
            $prev.addClass("sm-weapons-arrow-disabled");
          }

          if (current_index + 1 == total_pages) {
            $next.addClass("sm-weapons-arrow-disabled");
          }
        }

        $initial_weapon.trigger("click");
      }
      else {
        $weapons.eq(0).trigger("click");
      }
    });
  }
  $.fn.sm2011_weapons.defaults = {};


  /**
   * Characters page plugin.
   */
  $.fn.sm2011_characters = function(options) {

    // We may need opts in the future.
    var opts = $.extend({}, $.fn.sm2011_characters.defaults, options);

    var $view = null,
        $lists = null,
        $pager = null,
        $next = null,
        $prev = null,
        current_index = 0,
        total_pages = 1,
        $characters = null,
        $title = null,
        $description = null,
        $detail = null,
        $hero = null,
        $current_character = null;

    return this.each(function() {

      $view = $(this);

      // Init elements.
      $title = $("#sm-character-title");
      $description = $("#sm-character-description");
      $hero = $("#sm-game-hero-image");
      $detail = $("#sm-character-detail-inner");

      // Init pages.
      $lists = $view.find(".sm-characters-list");

      if ($lists.length > 1) {
        total_pages =  $lists.length;

        $pager = $view.find("#sm-characters-pager").show();

        // @todo: Internationalization?
        $next = $('<a class="sm-characters-arrow" id="sm-characters-next">Next</a>').click(function(){

          next_index = current_index + 1;
          if ($lists.eq(next_index).length > 0) {
            $lists.eq(current_index).hide();
            $lists.eq(next_index).fadeIn();
            current_index = next_index;

            $prev.removeClass("sm-characters-arrow-disabled");
          }

          if (current_index + 1 == total_pages) {
            $(this).addClass("sm-characters-arrow-disabled");
          }
          else {
            $(this).removeClass("sm-characters-arrow-disabled");
          }

        }).appendTo($pager);

        $prev = $('<a class="sm-characters-arrow" id="sm-characters-prev">Prev</a>').addClass("sm-characters-arrow-disabled").click(function(){

          prev_index = current_index - 1;
          if ($lists.eq(prev_index).length > 0) {
            $lists.eq(current_index).hide();
            $lists.eq(prev_index).fadeIn();
            current_index = prev_index;

            $next.removeClass("sm-characters-arrow-disabled");
          }

          if (current_index == 0) {
            $(this).addClass("sm-characters-arrow-disabled");
          }
          else {
            $(this).removeClass("sm-characters-arrow-disabled");
          }

        }).appendTo($pager);
      }


      // Init character details.
      $characters = $view.find("li.views-row");
      $characters.each(function(){

        $(this).find(".views-field-field-sm-character-thumb-fid a").click(function(e, weapon){
          e.preventDefault();
        });

        $(this).hover(function(){
          $(this).addClass("sm-character-hover");
        }, function(){
          $(this).removeClass("sm-character-hover");
        });

        $(this).click(function(){

          if ($current_character != null) {
            $current_character.removeClass("sm-current-character");
          }

          $title.html($(this).find(".views-field-title").html());
          $description.html($(this).find(".views-field-body").html());

          // Initialize jScrollpane on the description.
          $detail.jScrollPane({
            showArrows: false,
            dragMaxHeight: 25,
            scrollbarWidth: 20
          });

          // @todo: Play flash video of the character.
          $hero.html($(this).find(".views-field-field-sm-game-hero-fid").html());


          $(this).addClass("sm-current-character");

          $current_character = $(this);

        });
      });

      // Init the first click.

      // If we have a current weapon...
      if (typeof Drupal.settings.sm2011 != "undefined") {

        $initial_character = $("#sm-character-nid-" + Drupal.settings.sm2011.current_character);

        // Scroll to appropriate page.
        if (!$initial_character.is(":visible")) {
          $table = $initial_character.parents("table");
          page_index = $table.attr("id").replace("sm-characters-list-", "");
          $next.addClass("sm-characters-arrow-disabled");
          $prev.addClass("sm-character-arrow-disabled");

          $lists.eq(current_index).hide();
          $lists.eq(page_index).fadeIn();

          current_index = page_index;

          if (current_index == 0) {
            $prev.addClass("sm-characters-arrow-disabled");
          }

          if (current_index + 1 == total_pages) {
            $next.addClass("sm-characters-arrow-disabled");
          }
        }

        $initial_character.trigger("click");
      }
      else {
        $characters.eq(0).trigger("click");
      }
    });
  }
  $.fn.sm2011_characters.defaults = {};


  /*
   * Custom theme level implementation of thq_master_withDividers()
   * With dividers function.
   * Turn any list into an inline list with pipe dividers.
   */
  $.fn.sm2011_withDividers = function(options) {

    // We may need opts in the future.
    // @todo: Allow optional character to be passed in
    var opts = $.extend({}, $.fn.thq_master_withDividers.defaults, options);
    return this.each(function() {
      $(this).addClass("with-dividers").find("li:not(:last)").after('<li class="li-divider">&bull;</li>');
    });
  };
  $.fn.sm2011_withDividers.defaults = {};

})(jQuery);


/**
 * Update weapon video.
 */
function sm2011_change_weapon(video_url) {
  window.document.SpaceMarine.changeVideo(video_url);
}


/**
 * Init quiz pages.
 */
function sm2011_init_quiz() {

  var $terms = $("#webform-component-terms div.description");
  if ($terms.length > 0) {
    var $form = $(".webform-client-form");
    $terms.attr("id", "quiz-rules").insertAfter($form);
  }

  var $legal = $("#webform-component-legal-line");
  if ($legal.length > 0) {
    var $buttons = $("#edit-actions");
    $legal.insertAfter($buttons);
  }

  // Swap state / country.
  // Wherever there is a country drop-down, tweak the state and province.
  var $country = $("#webform-component-country");
  var $state = $("#webform-component-state");
  var $province = $("#webform-component-province");

  if ($country.length > 0 && ($state.length > 0 || $province.length > 0)) {

    var toggle_country = function ($country, $state, $province) {
      $state.hide();
      $province.hide();

      if ($country.find("select").val() == 'US') {
        $state.show();
      }

      if ($country.find("select").val() == 'CA') {
        $province.show();
      }
    }

    var init_location_dropdowns = function ($country, $state, $province) {
      $country.find("select").change(function(){
        toggle_country($country, $state, $province);
      });

      toggle_country($country, $state, $province);
    }

    init_location_dropdowns($country, $state, $province);
  }
}


/**
 * Init pre-order / buy page.
 */
function sm2011_init_buy() {

  var $offer_retailers = $(".view-sm-buy-i18n .node-type-sm_order_offer .node-type-thq_retailer");

  $offer_retailers.each(function(){

    var $image = $(this).find("img");
    var $link = $(this).find(".field-field-thq-retailer-link");
    var $sublinks = $(this).find(".field-field-thq-retailer-sublink");

    if ($sublinks.length > 0) {
//      $image.toggle(
//        function() { $sublinks.slideDown(); },
//        function() { $sublinks.slideUp(); }
//      );

      $(this).hover (
        function() { $sublinks.slideDown("fast"); },
        function() { $sublinks.slideUp("fast"); }
      );
    }

    else {
      $image.wrap('<a href="' + $link.text() + '" target="new"></a>');
    }

  });

}
;
/*
 * nyroModal - jQuery Plugin
 * http://nyromodal.nyrodev.com
 *
 * Copyright (c) 2010 Cedric Nirousset (nyrodev.com)
 * Licensed under the MIT license
 *
 * $Date: 2010-02-23 (Tue, 23 Feb 2010) $
 * $version: 1.6.2
 */
jQuery(function($) {

	// -------------------------------------------------------
	// Private Variables
	// -------------------------------------------------------

	var userAgent = navigator.userAgent.toLowerCase();
	var browserVersion = (userAgent.match(/.+(?:rv|webkit|khtml|opera|msie)[\/: ]([\d.]+)/ ) || [0,'0'])[1];

	var isIE6 = (/msie/.test(userAgent) && !/opera/.test(userAgent) && parseInt(browserVersion) < 7 && (!window.XMLHttpRequest || typeof(XMLHttpRequest) === 'function'));
	var body = $('body');

	var currentSettings;
	var callingSettings;

	var shouldResize = false;

	var gallery = {};

	// To know if the fix for the Issue 10 should be applied (or has been applied)
	var fixFF = false;

	// Used for retrieve the content from an hidden div
	var contentElt;
	var contentEltLast;

	// Contains info about nyroModal state and all div references
	var modal = {
		started: false,
		ready: false,
		dataReady: false,
		anim: false,
		animContent: false,
		loadingShown: false,
		transition: false,
		resizing: false,
		closing: false,
		error: false,
		blocker: null,
		blockerVars: null,
		full: null,
		bg: null,
		loading: null,
		tmp: null,
		content: null,
		wrapper: null,
		contentWrapper: null,
		scripts: new Array(),
		scriptsShown: new Array()
	};

	// Indicate of the height or the width was resized, to reinit the currentsettings related to null
	var resized = {
		width: false,
		height: false,
		windowResizing: false
	};

	var initSettingsSize = {
		width: null,
		height: null,
		windowResizing: true
	};

	var windowResizeTimeout;


	// -------------------------------------------------------
	// Public function
	// -------------------------------------------------------

	// jQuery extension function. A paramater object could be used to overwrite the default settings
	$.fn.nyroModal = function(settings) {
		if (!this)
			return false;
		return this.each(function() {
			var me = $(this);
			if (this.nodeName.toLowerCase() == 'form') {
				me
				.unbind('submit.nyroModal')
				.bind('submit.nyroModal', function(e) {
					if(e.isDefaultPrevented())
						return false;
					if (me.data('nyroModalprocessing'))
						return true;
					if (this.enctype == 'multipart/form-data') {
						processModal($.extend(settings, {
							from: this
						}));
						return true;
					}
					e.preventDefault();
					processModal($.extend(settings, {
						from: this
					}));
					return false;
				});
			} else {
				me
				.unbind('click.nyroModal')
				.bind('click.nyroModal', function(e) {
					if(e.isDefaultPrevented())
						return false;
					e.preventDefault();
					processModal($.extend(settings, {
						from: this
					}));
					return false;
				});
			}
		});
	};

	// jQuery extension function to call manually the modal. A paramater object could be used to overwrite the default settings
	$.fn.nyroModalManual = function(settings) {
		if (!this.length)
			processModal(settings);
		return this.each(function(){
			processModal($.extend(settings, {
				from: this
			}));
		});
	};

	$.nyroModalManual = function(settings) {
		processModal(settings);
	};

	// Update the current settings
	// object settings
	// string deep1 first key where overwrite the settings
	// string deep2 second key where overwrite the settings
	$.nyroModalSettings = function(settings, deep1, deep2) {
		setCurrentSettings(settings, deep1, deep2);
		if (!deep1 && modal.started) {
			if (modal.bg && settings.bgColor)
				currentSettings.updateBgColor(modal, currentSettings, function(){});

			if (modal.contentWrapper && settings.title)
				setTitle();

			if (!modal.error && (settings.windowResizing || (!modal.resizing && (('width' in settings && settings.width == currentSettings.width) || ('height' in settings && settings.height == currentSettings.height))))) {
				modal.resizing = true;
				if (modal.contentWrapper)
					calculateSize(true);
				if (modal.contentWrapper && modal.contentWrapper.is(':visible') && !modal.animContent) {
					if (fixFF)
						modal.content.css({position: ''});
					currentSettings.resize(modal, currentSettings, function() {
						currentSettings.windowResizing = false;
						modal.resizing = false;
						if (fixFF)
							modal.content.css({position: 'fixed'});
						if ($.isFunction(currentSettings.endResize))
							currentSettings.endResize(modal, currentSettings);
					});
				}
			}
		}
	};

	// Remove the modal function
	$.nyroModalRemove = function() {
		removeModal();
	};

	// Go to the next image for a gallery
	// return false if nothing was done
	$.nyroModalNext = function() {
		var link = getGalleryLink(1);
		if (link)
			return link.nyroModalManual(getCurrentSettingsNew());
		return false;
	};

	// Go to the previous image for a gallery
	// return false if nothing was done
	$.nyroModalPrev = function() {
		var link = getGalleryLink(-1);
		if (link)
			return link.nyroModalManual(getCurrentSettingsNew());
		return false;
	};


	// -------------------------------------------------------
	// Default Settings
	// -------------------------------------------------------

	$.fn.nyroModal.settings = {
		debug: false, // Show the debug in the background

		blocker: false, // Element which will be blocked by the modal
		
		windowResize: true, // indicates if the modal should resize when the window is resized

		modal: false, // Esc key or click backgrdound enabling or not

		type: '', // nyroModal type (form, formData, iframe, image, etc...)
		forceType: null, // Used to force the type
		from: '', // Dom object where the call come from
		hash: '', // Eventual hash in the url

		processHandler: null, // Handler just before the real process

		selIndicator: 'nyroModalSel', // Value added when a form or Ajax is sent with a filter content

		formIndicator: 'nyroModal', // Value added when a form is sent

		content: null, // Raw content if type content is used

		bgColor: '#000000', // Background color

		ajax: {}, // Ajax option (url, data, type, success will be overwritten for a form, url and success only for an ajax call)

		swf: { // Swf player options if swf type is used.
			wmode: 'transparent'
		},

		width: null, // default Width If null, will be calculate automatically
		height: null, // default Height If null, will be calculate automatically

		minWidth: 400, // Minimum width
		minHeight: 300, // Minimum height

		resizable: true, // Indicate if the content is resizable. Will be set to false for swf
		autoSizable: true, // Indicate if the content is auto sizable. If not, the min size will be used

		padding: 25, // padding for the max modal size

		regexImg: '[^\.]\.(jpg|jpeg|png|tiff|gif|bmp)\s*$', // Regex to find images
		addImageDivTitle: false, // Indicate if the div title should be inserted
		defaultImgAlt: 'Image', // Default alt attribute for the images
		setWidthImgTitle: true, // Set the width to the image title
		ltr: true, // Left to Right by default. Put to false for Hebrew or Right to Left language

		gallery: null, // Gallery name if provided
		galleryLinks: '<a href="#" class="nyroModalPrev">Prev</a><a href="#"  class="nyroModalNext">Next</a>', // Use .nyroModalPrev and .nyroModalNext to set the navigation link
		galleryCounts: galleryCounts, // Callback to show the gallery count
		galleryLoop: false, // Indicate if the gallery should loop

		zIndexStart: 100,

		cssOpt: { // Default CSS option for the nyroModal Div. Some will be overwritten or updated when using IE6
			bg: {
				position: 'absolute',
				overflow: 'hidden',
				top: 0,
				left: 0,
				height: '100%',
				width: '100%'
			},
			wrapper: {
				position: 'absolute',
				top: '50%',
				left: '50%'
			},
			wrapper2: {
			},
			content: {
			},
			loading: {
				position: 'absolute',
				top: '50%',
				left: '50%',
				marginTop: '-50px',
				marginLeft: '-50px'
			}
		},

		wrap: { // Wrapper div used to style the modal regarding the content type
			div: '<div class="wrapper"></div>',
			ajax: '<div class="wrapper"></div>',
			form: '<div class="wrapper"></div>',
			formData: '<div class="wrapper"></div>',
			image: '<div class="wrapperImg"></div>',
			swf: '<div class="wrapperSwf"></div>',
			iframe: '<div class="wrapperIframe"></div>',
			iframeForm: '<div class="wrapperIframe"></div>',
			manual: '<div class="wrapper"></div>'
		},

		closeButton: '<a href="#" class="nyroModalClose" id="closeBut" title="close">Close</a>', // Adding automaticly as the first child of #nyroModalWrapper

		title: null, // Modal title
		titleFromIframe: true, // When using iframe in the same domain, try to get the title from it

		openSelector: '.nyroModal', // selector for open a new modal. will be used to parse automaticly at page loading
		closeSelector: '.nyroModalClose', // selector to close the modal

		contentLoading: '<a href="#" class="nyroModalClose">Cancel</a>', // Loading div content

		errorClass: 'error', // CSS Error class added to the loading div in case of error
		contentError: 'The requested content cannot be loaded.<br />Please try again later.<br /><a href="#" class="nyroModalClose">Close</a>', // Content placed in the loading div in case of error

		handleError: null, // Callback in case of error

		showBackground: showBackground, // Show background animation function
		hideBackground: hideBackground, // Hide background animation function

		endFillContent: null, // Will be called after filling and wraping the content, before parsing closeSelector and openSelector and showing the content
		showContent: showContent, // Show content animation function
		endShowContent: null, // Will be called once the content is shown
		beforeHideContent: null, // Will be called just before the modal closing
		hideContent: hideContent, // Hide content animation function

		showTransition: showTransition, // Show the transition animation (a modal is already shown and a new one is requested)
		hideTransition: hideTransition, // Hide the transition animation to show the content

		showLoading: showLoading, // show loading animation function
		hideLoading: hideLoading, // hide loading animation function

		resize: resize, // Resize animation function
		endResize: null, // Will be called one the content is resized

		updateBgColor: updateBgColor, // Change background color animation function

		endRemove: null // Will be called once the modal is totally gone
	};

	// -------------------------------------------------------
	// Private function
	// -------------------------------------------------------

	// Main function
	function processModal(settings) {
		if (modal.loadingShown || modal.transition || modal.anim)
			return;
		debug('processModal');
		modal.started = true;
		callingSettings = $.extend(true, settings);
		setDefaultCurrentSettings(settings);
		if (!modal.full)
			modal.blockerVars = modal.blocker = null;
		modal.error = false;
		modal.closing = false;
		modal.dataReady = false;
		modal.scripts = new Array();
		modal.scriptsShown = new Array();

		currentSettings.type = fileType();
		if (currentSettings.forceType) {
			if (!currentSettings.content)
				currentSettings.from = true;
			currentSettings.type = currentSettings.forceType;
			currentSettings.forceType = null;
		}

		if ($.isFunction(currentSettings.processHandler))
			currentSettings.processHandler(currentSettings);

		var from = currentSettings.from;
		var url = currentSettings.url;

		initSettingsSize.width = currentSettings.width;
		initSettingsSize.height = currentSettings.height;

		if (currentSettings.type == 'swf') {
			// Swf is transforming as a raw content
			setCurrentSettings({overflow: 'visible'}, 'cssOpt', 'content');
			currentSettings.content = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+currentSettings.width+'" height="'+currentSettings.height+'"><param name="movie" value="'+url+'"></param>';
			var tmp = '';
			$.each(currentSettings.swf, function(name, val) {
				currentSettings.content+= '<param name="'+name+'" value="'+val+'"></param>';
				tmp+= ' '+name+'="'+val+'"';
			});
			currentSettings.content+= '<embed src="'+url+'" type="application/x-shockwave-flash" width="'+currentSettings.width+'" height="'+currentSettings.height+'"'+tmp+'></embed></object>';
		}

		if (from) {
			var jFrom = $(from).blur();
			if (currentSettings.type == 'form') {
				var data = $(from).serializeArray();
				data.push({name: currentSettings.formIndicator, value: 1});
				if (currentSettings.selector)
					data.push({name: currentSettings.selIndicator, value: currentSettings.selector.substring(1)});
				showModal();
				$.ajax($.extend({}, currentSettings.ajax, {
						url: url,
						data: data,
						type: jFrom.attr('method') ? jFrom.attr('method') : 'get',
						success: ajaxLoaded,
						error: loadingError
					}));
				debug('Form Ajax Load: '+jFrom.attr('action'));
			} else if (currentSettings.type == 'formData') {
				// Form with data. We're using a hidden iframe
				initModal();
				jFrom.attr('target', 'nyroModalIframe');
				jFrom.attr('action', url);
				jFrom.prepend('<input type="hidden" name="'+currentSettings.formIndicator+'" value="1" />');
				if (currentSettings.selector)
					jFrom.prepend('<input type="hidden" name="'+currentSettings.selIndicator+'" value="'+currentSettings.selector.substring(1)+'" />');
				modal.tmp.html('<iframe frameborder="0" hspace="0" name="nyroModalIframe" src="javascript:\'\';"></iframe>');
				$('iframe', modal.tmp)
					.css({
						width: currentSettings.width,
						height: currentSettings.height
					})
					.error(loadingError)
					.load(formDataLoaded);
				debug('Form Data Load: '+jFrom.attr('action'));
				showModal();
				showContentOrLoading();
			} else if (currentSettings.type == 'image') {
				debug('Image Load: '+url);
				var title = jFrom.attr('title') || currentSettings.defaultImgAlt;
				initModal();
				modal.tmp.html('<img id="nyroModalImg" />').find('img').attr('alt', title);
				modal.tmp.css({lineHeight: 0});
				$('img', modal.tmp)
					.error(loadingError)
					.load(function() {
						debug('Image Loaded: '+this.src);
						$(this).unbind('load');
						var w = modal.tmp.width();
						var h = modal.tmp.height();
						modal.tmp.css({lineHeight: ''});
						resized.width = w;
						resized.height = h;
						setCurrentSettings({
							width: w,
							height: h,
							imgWidth: w,
							imgHeight: h
						});
						initSettingsSize.width = w;
						initSettingsSize.height = h;
						setCurrentSettings({overflow: 'visible'}, 'cssOpt', 'content');
						modal.dataReady = true;
						if (modal.loadingShown || modal.transition)
							showContentOrLoading();
					})
					.attr('src', url);
				showModal();
			} else if (currentSettings.type == 'iframeForm') {
				initModal();
				modal.tmp.html('<iframe frameborder="0" hspace="0" src="javascript:\'\';" name="nyroModalIframe" id="nyroModalIframe"></iframe>');
				debug('Iframe Form Load: '+url);
				$('iframe', modal.tmp).eq(0)
					.css({
						width: '100%',
						//height: $.support.boxModel? '99%' : '100%'
            height: '99%'
					})
					.load(iframeLoaded);
				modal.dataReady = true;
				showModal();
			} else if (currentSettings.type == 'iframe') {
				initModal();
				modal.tmp.html('<iframe frameborder="0" hspace="0" src="javascript:\'\';" name="nyroModalIframe" id="nyroModalIframe"></iframe>');
				debug('Iframe Load: '+url);
				$('iframe', modal.tmp).eq(0)
					.css({
						width: '100%',
						//height: $.support.boxModel? '99%' : '100%'
            height: '99%'
					})
					.load(iframeLoaded);
				modal.dataReady = true;
				showModal();
			} else if (currentSettings.type) {
				// Could be every other kind of type or a dom selector
				debug('Content: '+currentSettings.type);
				initModal();
				modal.tmp.html(currentSettings.content);
				var w = modal.tmp.width();
				var h = modal.tmp.height();
				var div = $(currentSettings.type);
				if (div.length) {
					setCurrentSettings({type: 'div'});
					w = div.width();
					h = div.height();
					if (contentElt)
						contentEltLast = contentElt;
					contentElt = div;
					modal.tmp.append(div.contents());
				}
				initSettingsSize.width = w;
				initSettingsSize.height = h;
				setCurrentSettings({
					width: w,
					height: h
				});
				if (modal.tmp.html())
					modal.dataReady = true;
				else
					loadingError();
				if (!modal.ready)
					showModal();
				else
					endHideContent();
			} else {
				debug('Ajax Load: '+url);
				setCurrentSettings({type: 'ajax'});
				var data = currentSettings.ajax.data || {};
				if (currentSettings.selector) {
					if (typeof data == "string") {
						data+= '&'+currentSettings.selIndicator+'='+currentSettings.selector.substring(1);
					} else {
						data[currentSettings.selIndicator] = currentSettings.selector.substring(1);
					}
				}
				showModal();
				$.ajax($.extend(true, currentSettings.ajax, {
					url: url,
					success: ajaxLoaded,
					error: loadingError,
					data: data
				}));
			}
		} else if (currentSettings.content) {
			// Raw content not from a DOM element
			debug('Content: '+currentSettings.type);
			setCurrentSettings({type: 'manual'});
			initModal();
			modal.tmp.html($('<div/>').html(currentSettings.content).contents());
			if (modal.tmp.html())
				modal.dataReady = true;
			else
				loadingError();
			showModal();
		} else {
			// What should we show here? nothing happen
		}
	}

	// Update the current settings
	// object settings
	// string deep1 first key where overwrite the settings
	// string deep2 second key where overwrite the settings
	function setDefaultCurrentSettings(settings) {
		debug('setDefaultCurrentSettings');
		currentSettings = $.extend(true, {}, $.fn.nyroModal.settings, settings);
		setMargin();
	}

	function setCurrentSettings(settings, deep1, deep2) {
		if (modal.started) {
			if (deep1 && deep2) {
				$.extend(true, currentSettings[deep1][deep2], settings);
			} else if (deep1) {
				$.extend(true, currentSettings[deep1], settings);
			} else {
				if (modal.animContent) {
					if ('width' in settings) {
						if (!modal.resizing) {
							settings.setWidth = settings.width;
							shouldResize = true;
						}
						delete settings['width'];
					}
					if ('height' in settings) {
						if (!modal.resizing) {
							settings.setHeight = settings.height;
							shouldResize = true;
						}
						delete settings['height'];
					}
				}
				$.extend(true, currentSettings, settings);
			}
		} else {
			if (deep1 && deep2) {
				$.extend(true, $.fn.nyroModal.settings[deep1][deep2], settings);
			} else if (deep1) {
				$.extend(true, $.fn.nyroModal.settings[deep1], settings);
			} else {
				$.extend(true, $.fn.nyroModal.settings, settings);
			}
		}
	}

	// Set the margin for postionning the element. Useful for IE6
	function setMarginScroll() {
		if (isIE6 && !modal.blocker) {
			if (document.documentElement) {
				currentSettings.marginScrollLeft = document.documentElement.scrollLeft;
				currentSettings.marginScrollTop = document.documentElement.scrollTop;
			} else {
				currentSettings.marginScrollLeft = document.body.scrollLeft;
				currentSettings.marginScrollTop = document.body.scrollTop;
			}
		} else {
			currentSettings.marginScrollLeft = 0;
			currentSettings.marginScrollTop = 0;
		}
	}

	// Set the margin for the content
	function setMargin() {
		setMarginScroll();
		currentSettings.marginLeft = -(currentSettings.width+currentSettings.borderW)/2;
		currentSettings.marginTop = -(currentSettings.height+currentSettings.borderH)/2;
		if (!modal.blocker) {
			currentSettings.marginLeft+= currentSettings.marginScrollLeft;
			currentSettings.marginTop+= currentSettings.marginScrollTop;
		}
	}

	// Set the margin for the current loading
	function setMarginLoading() {
		setMarginScroll();
		var outer = getOuter(modal.loading);
		currentSettings.marginTopLoading = -(modal.loading.height() + outer.h.border + outer.h.padding)/2;
		currentSettings.marginLeftLoading = -(modal.loading.width() + outer.w.border + outer.w.padding)/2;
		if (!modal.blocker) {
			currentSettings.marginLeftLoading+= currentSettings.marginScrollLeft;
			currentSettings.marginTopLoading+= currentSettings.marginScrollTop;
		}
	}

	// Set the modal Title
	function setTitle() {
		var title = $('h1#nyroModalTitle', modal.contentWrapper);
		if (title.length)
			title.text(currentSettings.title);
		else
			modal.contentWrapper.prepend('<h1 id="nyroModalTitle">'+currentSettings.title+'</h1>');
	}

	// Init the nyroModal div by settings the CSS elements and hide needed elements
	function initModal() {
    debug('initModal');

    if (!modal.full) {
      
			if (currentSettings.debug)
				setCurrentSettings({color: 'white'}, 'cssOpt', 'bg');

			var full = {
				zIndex: currentSettings.zIndexStart,
				position: 'fixed',
				top: 0,
				left: 0,
				width: '100%',
				height: '100%'
			};

			var contain = body;
			var iframeHideIE = '';
			if (currentSettings.blocker) {
				modal.blocker = contain = $(currentSettings.blocker);
				var pos = modal.blocker.offset();
				var w = modal.blocker.outerWidth();
				var h = modal.blocker.outerHeight();
				if (isIE6) {
					setCurrentSettings({
						height: '100%',
						width: '100%',
						top: 0,
						left: 0
					}, 'cssOpt', 'bg');
				}
				modal.blockerVars = {
					top: pos.top,
					left: pos.left,
					width: w,
					height: h
				};
				var plusTop = (/msie/.test(userAgent) ?0:getCurCSS(body.get(0), 'borderTopWidth'));
				var plusLeft = (/msie/.test(userAgent) ?0:getCurCSS(body.get(0), 'borderLeftWidth'));
				full = {
					position: 'absolute',
					top: pos.top + plusTop,
					left: pos.left + plusLeft,
					width: w,
					height: h
				};
			} else if (isIE6) {
				body.css({
					marginLeft: 0,
					marginRight: 0
				});
				var w = body.width();
				var h = $(window).height()+'px';
				if ($(window).height() >= body.outerHeight()) {
					h = body.outerHeight()+'px';
				} else
					w+= 20;
				w += 'px';
				body.css({
					width: w,
					height: h,
					position: 'static',
					overflow: 'hidden'
				});
				$('html').css({overflow: 'hidden'});
				setCurrentSettings({
					cssOpt: {
						bg: {
							position: 'absolute',
							zIndex: currentSettings.zIndexStart+1,
							height: '110%',
							width: '110%',
							top: currentSettings.marginScrollTop+'px',
							left: currentSettings.marginScrollLeft+'px'
						},
						wrapper: { zIndex: currentSettings.zIndexStart+2 },
						loading: { zIndex: currentSettings.zIndexStart+3 }
					}
				});

				iframeHideIE = $('<iframe id="nyroModalIframeHideIe" src="javascript:\'\';"></iframe>')
								.css($.extend({},
									currentSettings.cssOpt.bg, {
										opacity: 0,
										zIndex: 50,
										border: 'none'
									}));
			}

			contain.append($('<div id="nyroModalFull"><div id="nyroModalBg"></div><div id="nyroModalWrapper"><div id="nyroModalContent"></div></div><div id="nyrModalTmp"></div><div id="nyroModalLoading"></div></div>').hide());

			modal.full = $('#nyroModalFull')
				.css(full)
				.show();
			modal.bg = $('#nyroModalBg')
				.css($.extend({
						backgroundColor: currentSettings.bgColor
					}, currentSettings.cssOpt.bg))
				.before(iframeHideIE);
			modal.bg.bind('click.nyroModal', clickBg);
			modal.loading = $('#nyroModalLoading')
				.css(currentSettings.cssOpt.loading)
				.hide();
			modal.contentWrapper = $('#nyroModalWrapper')
				.css(currentSettings.cssOpt.wrapper)
				.hide();
			modal.content = $('#nyroModalContent');
			modal.tmp = $('#nyrModalTmp').hide();

			// To stop the mousewheel if the the plugin is available
			if ($.isFunction($.fn.mousewheel)) {
				modal.content.mousewheel(function(e, d) {
					var elt = modal.content.get(0);
					if ((d > 0 && elt.scrollTop == 0) ||
							(d < 0 && elt.scrollHeight - elt.scrollTop == elt.clientHeight)) {
						e.preventDefault();
						e.stopPropagation();
					}
				});
			}

			$(document).bind('keydown.nyroModal', keyHandler);
			modal.content.css({width: 'auto', height: 'auto'});
			modal.contentWrapper.css({width: 'auto', height: 'auto'});

			if (!currentSettings.blocker && currentSettings.windowResize) {
				$(window).bind('resize.nyroModal', function() {
					window.clearTimeout(windowResizeTimeout);
					windowResizeTimeout = window.setTimeout(windowResizeHandler, 200);
				});
			}
		}
	}

	function windowResizeHandler() {
		$.nyroModalSettings(initSettingsSize);
	}

	// Show the modal (ie: the background and then the loading if needed or the content directly)
	function showModal() {
		debug('showModal');
		if (!modal.ready) {
			initModal();
			modal.anim = true;
			currentSettings.showBackground(modal, currentSettings, endBackground);
		} else {
			modal.anim = true;
			modal.transition = true;
			currentSettings.showTransition(modal, currentSettings, function(){endHideContent();modal.anim=false;showContentOrLoading();});
		}
	}

	// Called when user click on background
	function clickBg(e) {
		if (!currentSettings.modal)
			removeModal();
	}
	
	// Used for the escape key or the arrow in the gallery type
	function keyHandler(e) {
		if (e.keyCode == 27) {
			if (!currentSettings.modal)
				removeModal();
		} else if (currentSettings.gallery && modal.ready && modal.dataReady && !modal.anim && !modal.transition) {
			if (e.keyCode == 39 || e.keyCode == 40) {
				e.preventDefault();
				$.nyroModalNext();
				return false;
			} else if (e.keyCode == 37 || e.keyCode == 38) {
				e.preventDefault();
				$.nyroModalPrev();
				return false;
			}
		}
	}

	// Determine the filetype regarding the link DOM element
	function fileType() {
		var from = currentSettings.from;

		var url;

		if (from && from.nodeName) {
			var jFrom = $(from);

			url = jFrom.attr(from.nodeName.toLowerCase() == 'form' ? 'action' : 'href');
			if (!url)
				url = location.href.substring(window.location.host.length+7);
			currentSettings.url = url;

			if (jFrom.attr('rev') == 'modal')
				currentSettings.modal = true;

			currentSettings.title = jFrom.attr('title');

			if (from && from.rel && from.rel.toLowerCase() != 'nofollow') {
				var indexSpace = from.rel.indexOf(' ');
				currentSettings.gallery = indexSpace > 0 ? from.rel.substr(0, indexSpace) : from.rel;
			}

			var imgType = imageType(url, from);
			if (imgType)
				return imgType;

			if (isSwf(url))
				return 'swf';

			var iframe = false;
			if (from.target && from.target.toLowerCase() == '_blank' || (from.hostname && from.hostname.replace(/:\d*$/,'') != window.location.hostname.replace(/:\d*$/,''))) {
				iframe = true;
			}
			if (from.nodeName.toLowerCase() == 'form') {
				if (iframe)
					return 'iframeForm';
				setCurrentSettings(extractUrlSel(url));
				if (jFrom.attr('enctype') == 'multipart/form-data')
					return 'formData';
				return 'form';
			}
			if (iframe)
				return 'iframe';
		} else {
			url = currentSettings.url;
			if (!currentSettings.content)
				currentSettings.from = true;

			if (!url)
				return null;

			if (isSwf(url))
				return 'swf';

			var reg1 = new RegExp("^http://|https://", "g");
			if (url.match(reg1))
				return 'iframe';
		}

		var imgType = imageType(url, from);
		if (imgType)
			return imgType;

		var tmp = extractUrlSel(url);
		setCurrentSettings(tmp);

		if (!tmp.url)
			return tmp.selector;
	}

	function imageType(url, from) {
		var image = new RegExp(currentSettings.regexImg, 'i');
		if (image.test(url)) {
			return 'image';
		}
	}

	function isSwf(url) {
		var swf = new RegExp('[^\.]\.(swf)\s*$', 'i');
		return swf.test(url);
	}

	function extractUrlSel(url) {
		var ret = {
			url: null,
			selector: null
		};

		if (url) {
			var hash = getHash(url);
			var hashLoc = getHash(window.location.href);
			var curLoc = window.location.href.substring(0, window.location.href.length - hashLoc.length);
			var req = url.substring(0, url.length - hash.length);

			if (req == curLoc || req == $('base').attr('href')) {
				ret.selector = hash;
			} else {
				ret.url = req;
				ret.selector = hash;
			}
		}
		return ret;
	}

	// Called when the content cannot be loaded or tiemout reached
	function loadingError() {
		debug('loadingError');

		modal.error = true;

		if (!modal.ready)
			return;

		if ($.isFunction(currentSettings.handleError))
			currentSettings.handleError(modal, currentSettings);

		modal.loading
			.addClass(currentSettings.errorClass)
			.html(currentSettings.contentError);
		$(currentSettings.closeSelector, modal.loading)
			.unbind('click.nyroModal')
			.bind('click.nyroModal', removeModal);
		setMarginLoading();
		modal.loading
			.css({
				marginTop: currentSettings.marginTopLoading+'px',
				marginLeft: currentSettings.marginLeftLoading+'px'
			});
	}

	// Put the content from modal.tmp to modal.content
	function fillContent() {
		debug('fillContent');
		if (!modal.tmp.html())
			return;

		modal.content.html(modal.tmp.contents());
		modal.tmp.empty();
		wrapContent();

		if (currentSettings.type == 'iframeForm') {
			$(currentSettings.from)
				.attr('target', 'nyroModalIframe')
				.data('nyroModalprocessing', 1)
				.submit()
				.attr('target', '_blank')
				.removeData('nyroModalprocessing');
		}

		if (!currentSettings.modal)
			modal.wrapper.prepend(currentSettings.closeButton);

		if ($.isFunction(currentSettings.endFillContent))
			currentSettings.endFillContent(modal, currentSettings);

		modal.content.append(modal.scripts);

		$(currentSettings.closeSelector, modal.contentWrapper)
			.unbind('click.nyroModal')
			.bind('click.nyroModal', removeModal);
		$(currentSettings.openSelector, modal.contentWrapper).nyroModal(getCurrentSettingsNew());
	}

	// Get the current settings to be used in new links
	function getCurrentSettingsNew() {
		return callingSettings;
		var currentSettingsNew = $.extend(true, {}, currentSettings);
		if (resized.width)
			currentSettingsNew.width = null;
		else
			currentSettingsNew.width = initSettingsSize.width;
		if (resized.height)
			currentSettingsNew.height = null;
		else
			currentSettingsNew.height = initSettingsSize.height;
		currentSettingsNew.cssOpt.content.overflow = 'auto';
		return currentSettingsNew;
	}

	// Wrap the content and update the modal size if needed
	function wrapContent() {
		debug('wrapContent');

		var wrap = $(currentSettings.wrap[currentSettings.type]);
		modal.content.append(wrap.children().remove());
		modal.contentWrapper.wrapInner(wrap);

		if (currentSettings.gallery) {
			// Set the action for the next and prev button (or remove them)
			modal.content.append(currentSettings.galleryLinks);

			gallery.links = $('[rel="'+currentSettings.gallery+'"], [rel^="'+currentSettings.gallery+' "]');
			gallery.index = gallery.links.index(currentSettings.from);

			if (currentSettings.galleryCounts && $.isFunction(currentSettings.galleryCounts))
				currentSettings.galleryCounts(gallery.index + 1, gallery.links.length, modal, currentSettings);

			var currentSettingsNew = getCurrentSettingsNew();

			var linkPrev = getGalleryLink(-1);
			if (linkPrev) {
				var prev = $('.nyroModalPrev', modal.contentWrapper)
					.attr('href', linkPrev.attr('href'))
					.click(function(e) {
						e.preventDefault();
						$.nyroModalPrev();
						return false;
					});
				if (isIE6 && currentSettings.type == 'swf') {
					prev.before($('<iframe id="nyroModalIframeHideIeGalleryPrev" src="javascript:\'\';"></iframe>').css({
											position: prev.css('position'),
											top: prev.css('top'),
											left: prev.css('left'),
											width: prev.width(),
											height: prev.height(),
											opacity: 0,
											border: 'none'
										}));
				}
			} else {
				$('.nyroModalPrev', modal.contentWrapper).remove();
			}
			var linkNext = getGalleryLink(1);
			if (linkNext) {
				var next = $('.nyroModalNext', modal.contentWrapper)
					.attr('href', linkNext.attr('href'))
					.click(function(e) {
						e.preventDefault();
						$.nyroModalNext();
						return false;
					});
				if (isIE6 && currentSettings.type == 'swf') {
					next.before($('<iframe id="nyroModalIframeHideIeGalleryNext" src="javascript:\'\';"></iframe>')
									.css($.extend({}, {
											position: next.css('position'),
											top: next.css('top'),
											left: next.css('left'),
											width: next.width(),
											height: next.height(),
											opacity: 0,
											border: 'none'
										})));
				}
			} else {
				$('.nyroModalNext', modal.contentWrapper).remove();
			}
		}

		calculateSize();
	}

	function getGalleryLink(dir) {
		if (currentSettings.gallery) {
			if (!currentSettings.ltr)
				dir *= -1;
			var index = gallery.index + dir;
			if (index >= 0 && index < gallery.links.length)
				return gallery.links.eq(index);
			else if (currentSettings.galleryLoop) {
				if (index < 0)
					return gallery.links.eq(gallery.links.length-1);
				else
					return gallery.links.eq(0);
			}
		}
		return false;
	}

	// Calculate the size for the contentWrapper
	function calculateSize(resizing) {
		debug('calculateSize');

		modal.wrapper = modal.contentWrapper.children('div:first');

		resized.width = false;
		resized.height = false;
		if (false && !currentSettings.windowResizing) {
			initSettingsSize.width = currentSettings.width;
			initSettingsSize.height = currentSettings.height;
		}

		if (currentSettings.autoSizable && (!currentSettings.width || !currentSettings.height)) {
			modal.contentWrapper
				.css({
					opacity: 0,
					width: 'auto',
					height: 'auto'
				})
				.show();
			var tmp = {
				width: 'auto',
				height: 'auto'
			};
			if (currentSettings.width) {
				tmp.width = currentSettings.width;
			} else if (currentSettings.type == 'iframe') {
				tmp.width = currentSettings.minWidth;
			}

			if (currentSettings.height) {
				tmp.height = currentSettings.height;
			} else if (currentSettings.type == 'iframe') {
				tmp.height = currentSettings.minHeight;
			}

			modal.content.css(tmp);
			if (!currentSettings.width) {
				currentSettings.width = modal.content.outerWidth(true);
				resized.width = true;
			}
			if (!currentSettings.height) {
				currentSettings.height = modal.content.outerHeight(true);
				resized.height = true;
			}
			modal.contentWrapper.css({opacity: 1});
			if (!resizing)
				modal.contentWrapper.hide();
		}

		if (currentSettings.type != 'image' && currentSettings.type != 'swf') {
			currentSettings.width = Math.max(currentSettings.width, currentSettings.minWidth);
			currentSettings.height = Math.max(currentSettings.height, currentSettings.minHeight);
		}

		var outerWrapper = getOuter(modal.contentWrapper);
		var outerWrapper2 = getOuter(modal.wrapper);
		var outerContent = getOuter(modal.content);

		var tmp = {
			content: {
				width: currentSettings.width,
				height: currentSettings.height
			},
			wrapper2: {
				width: currentSettings.width + outerContent.w.total,
				height: currentSettings.height + outerContent.h.total
			},
			wrapper: {
				width: currentSettings.width + outerContent.w.total + outerWrapper2.w.total,
				height: currentSettings.height + outerContent.h.total + outerWrapper2.h.total
			}
		};

		if (currentSettings.resizable) {
			var maxHeight = modal.blockerVars? modal.blockerVars.height : $(window).height()
								- outerWrapper.h.border
								- (tmp.wrapper.height - currentSettings.height);
			var maxWidth = modal.blockerVars? modal.blockerVars.width : $(window).width()
								- outerWrapper.w.border
								- (tmp.wrapper.width - currentSettings.width);
			maxHeight-= currentSettings.padding*2;
			maxWidth-= currentSettings.padding*2;

			if (tmp.content.height > maxHeight || tmp.content.width > maxWidth) {
				// We're gonna resize the modal as it will goes outside the view port
				if (currentSettings.type == 'image' || currentSettings.type == 'swf') {
					// An image is resized proportionnaly
					var useW = currentSettings.imgWidth?currentSettings.imgWidth : currentSettings.width;
					var useH = currentSettings.imgHeight?currentSettings.imgHeight : currentSettings.height;
					var diffW = tmp.content.width - useW;
					var diffH = tmp.content.height - useH;
						if (diffH < 0) diffH = 0;
						if (diffW < 0) diffW = 0;
					var calcH = maxHeight - diffH;
					var calcW = maxWidth - diffW;
					var ratio = Math.min(calcH/useH, calcW/useW);
					calcW = Math.floor(useW*ratio);
					calcH = Math.floor(useH*ratio);
					tmp.content.height = calcH + diffH;
					tmp.content.width = calcW + diffW;
				} else {
					// For an HTML content, we simply decrease the size
					tmp.content.height = Math.min(tmp.content.height, maxHeight);
					tmp.content.width = Math.min(tmp.content.width, maxWidth);
				}
				tmp.wrapper2 = {
						width: tmp.content.width + outerContent.w.total,
						height: tmp.content.height + outerContent.h.total
					};
				tmp.wrapper = {
						width: tmp.content.width + outerContent.w.total + outerWrapper2.w.total,
						height: tmp.content.height + outerContent.h.total + outerWrapper2.h.total
					};
			}
		}

		if (currentSettings.type == 'swf') {
			$('object, embed', modal.content)
				.attr('width', tmp.content.width)
				.attr('height', tmp.content.height);
		} else if (currentSettings.type == 'image') {
			$('img', modal.content).css({
				width: tmp.content.width,
				height: tmp.content.height
			});
		}

		modal.content.css($.extend({}, tmp.content, currentSettings.cssOpt.content));
		modal.wrapper.css($.extend({}, tmp.wrapper2, currentSettings.cssOpt.wrapper2));

		if (!resizing)
			modal.contentWrapper.css($.extend({}, tmp.wrapper, currentSettings.cssOpt.wrapper));

		if (currentSettings.type == 'image' && currentSettings.addImageDivTitle) {
			// Adding the title for the image
			$('img', modal.content).removeAttr('alt');
			var divTitle = $('div', modal.content);
			if (currentSettings.title != currentSettings.defaultImgAlt && currentSettings.title) {
				if (divTitle.length == 0) {
					divTitle = $('<div>'+currentSettings.title+'</div>');
					modal.content.append(divTitle);
				}
				if (currentSettings.setWidthImgTitle) {
					var outerDivTitle = getOuter(divTitle);
					divTitle.css({width: (tmp.content.width + outerContent.w.padding - outerDivTitle.w.total)+'px'});
				}
			} else if (divTitle.length = 0) {
				divTitle.remove();
			}
		}

		if (currentSettings.title)
			setTitle();

		tmp.wrapper.borderW = outerWrapper.w.border;
		tmp.wrapper.borderH = outerWrapper.h.border;

		setCurrentSettings(tmp.wrapper);
		setMargin();
	}

	function removeModal(e) {
		debug('removeModal');
		if (e)
			e.preventDefault();
		if (modal.full && modal.ready) {
			$(document).unbind('keydown.nyroModal');
			if (!currentSettings.blocker)
				$(window).unbind('resize.nyroModal');
			modal.ready = false;
			modal.anim = true;
			modal.closing = true;
			if (modal.loadingShown || modal.transition) {
				currentSettings.hideLoading(modal, currentSettings, function() {
						modal.loading.hide();
						modal.loadingShown = false;
						modal.transition = false;
						currentSettings.hideBackground(modal, currentSettings, endRemove);
					});
			} else {
				if (fixFF)
					modal.content.css({position: ''}); // Fix Issue #10, remove the attribute
				modal.wrapper.css({overflow: 'hidden'}); // Used to fix a visual issue when hiding
				modal.content.css({overflow: 'hidden'}); // Used to fix a visual issue when hiding
				$('iframe', modal.content).hide(); // Fix issue 359
				if ($.isFunction(currentSettings.beforeHideContent)) {
					currentSettings.beforeHideContent(modal, currentSettings, function() {
						currentSettings.hideContent(modal, currentSettings, function() {
							endHideContent();
							currentSettings.hideBackground(modal, currentSettings, endRemove);
						});
					});
				} else {
					currentSettings.hideContent(modal, currentSettings, function() {
							endHideContent();
							currentSettings.hideBackground(modal, currentSettings, endRemove);
						});
				}
			}
		}
		if (e)
			return false;
	}

	function showContentOrLoading() {
		debug('showContentOrLoading');
		if (modal.ready && !modal.anim) {
			if (modal.dataReady) {
				if (modal.tmp.html()) {
					modal.anim = true;
					if (modal.transition) {
						fillContent();
						modal.animContent = true;
						currentSettings.hideTransition(modal, currentSettings, function() {
							modal.loading.hide();
							modal.transition = false;
							modal.loadingShown = false;
							endShowContent();
						});
					} else {
						currentSettings.hideLoading(modal, currentSettings, function() {
								modal.loading.hide();
								modal.loadingShown = false;
								fillContent();
								setMarginLoading();
								setMargin();
								modal.animContent = true;
								currentSettings.showContent(modal, currentSettings, endShowContent);
							});
					}
				}
			} else if (!modal.loadingShown && !modal.transition) {
				modal.anim = true;
				modal.loadingShown = true;
				if (modal.error)
					loadingError();
				else
					modal.loading.html(currentSettings.contentLoading);
				$(currentSettings.closeSelector, modal.loading)
					.unbind('click.nyroModal')
					.bind('click.nyroModal', removeModal);
				setMarginLoading();
				currentSettings.showLoading(modal, currentSettings, function(){modal.anim=false;showContentOrLoading();});
			}
		}
	}
	
	// -------------------------------------------------------
	// Private Data Loaded callback
	// -------------------------------------------------------

	function ajaxLoaded(data) {
		debug('AjaxLoaded: '+this.url);
		
		if (currentSettings.selector) {
			var tmp = {};
			var i = 0;
			// Looking for script to store them
			data = data
				.replace(/\r\n/gi,'nyroModalLN')
				.replace(/<script(.|\s)*?\/script>/gi, function(x) {
						tmp[i] = x;
						return '<pre style="display: none" class=nyroModalScript rel="'+(i++)+'"></pre>';
					});
			data = $('<div>'+data+'</div>').find(currentSettings.selector).html()
				.replace(/<pre style="display: none;?" class="?nyroModalScript"? rel="(.?)"><\/pre>/gi, function(x, y, z) {
					return tmp[y];
				})
				.replace(/nyroModalLN/gi,"\r\n");
		}
		modal.tmp.html(filterScripts(data));
		if (modal.tmp.html()) {
			modal.dataReady = true;
			showContentOrLoading();
		} else
			loadingError();
	}

	function formDataLoaded() {
		debug('formDataLoaded');
		var jFrom = $(currentSettings.from);
		jFrom.attr('action', jFrom.attr('action')+currentSettings.selector);
		jFrom.attr('target', '');
		$('input[name='+currentSettings.formIndicator+']', currentSettings.from).remove();
		var iframe = modal.tmp.children('iframe');
		var iframeContent = iframe.unbind('load').contents().find(currentSettings.selector || 'body').not('script[src]');
		iframe.attr('src', 'about:blank'); // Used to stop the loading in FF
		modal.tmp.html(iframeContent.html());
		if (modal.tmp.html()) {
			modal.dataReady = true;
			showContentOrLoading();
		} else
			loadingError();
	}
	
	function iframeLoaded() {
		if ((window.location.hostname && currentSettings.url.indexOf(window.location.hostname) > -1)
				||	currentSettings.url.indexOf('http://')) {
			var iframe = $('iframe', modal.full).contents();
			var tmp = {};
			if (currentSettings.titleFromIframe) {
				tmp.title = iframe.find('title').text();
				if (!tmp.title) {
					// for IE
					try {
						tmp.title = iframe.find('title').html();
					} catch(err) {}
				}
			}
			var body = iframe.find('body');
			if (!currentSettings.height && body.height())
				tmp.height = body.height();
			if (!currentSettings.width && body.width())
				tmp.width = body.width();
			$.extend(initSettingsSize, tmp);
			$.nyroModalSettings(tmp);
		}
	}

	function galleryCounts(nb, total, elts, settings) {
		if (total > 1)
			settings.title+= (settings.title?' - ':'') +nb+'/'+total;
	}


	// -------------------------------------------------------
	// Private Animation callback
	// -------------------------------------------------------

	function endHideContent() {
		debug('endHideContent');
		modal.anim = false;
		if (contentEltLast) {
			contentEltLast.append(modal.content.contents());
			contentEltLast = null;
		} else if (contentElt) {
			contentElt.append(modal.content.contents());
			contentElt= null;
		}
		modal.content.empty();

		gallery = {};

		modal.contentWrapper.hide().children().remove().empty().attr('style', '').hide();

		if (modal.closing || modal.transition)
			modal.contentWrapper.hide();

		modal.contentWrapper
			.css(currentSettings.cssOpt.wrapper)
			.append(modal.content);
		showContentOrLoading();
	}

	function endRemove() {
		debug('endRemove');
		$(document).unbind('keydown', keyHandler);
		modal.anim = false;
		modal.full.remove();
		modal.full = null;
		if (isIE6) {
			body.css({height: '', width: '', position: '', overflow: '', marginLeft: '', marginRight: ''});
			$('html').css({overflow: ''});
		}
		if ($.isFunction(currentSettings.endRemove))
			currentSettings.endRemove(modal, currentSettings);
	}

	function endBackground() {
		debug('endBackground');
		modal.ready = true;
		modal.anim = false;
		showContentOrLoading();
	}

	function endShowContent() {
		debug('endShowContent');
		modal.anim = false;
		modal.animContent = false;
		modal.contentWrapper.css({opacity: ''}); // for the close button in IE
		fixFF = /mozilla/.test(userAgent) && !/(compatible|webkit)/.test(userAgent) && parseFloat(browserVersion) < 1.9 && currentSettings.type != 'image';

		if (fixFF)
			modal.content.css({position: 'fixed'}); // Fix Issue #10
		modal.content.append(modal.scriptsShown);

		if(currentSettings.type == 'iframe')
			modal.content.find('iframe').attr('src', currentSettings.url);

		if ($.isFunction(currentSettings.endShowContent))
			currentSettings.endShowContent(modal, currentSettings);

		if (shouldResize) {
			shouldResize = false;
			$.nyroModalSettings({width: currentSettings.setWidth, height: currentSettings.setHeight});
			delete currentSettings['setWidth'];
			delete currentSettings['setHeight'];
		}
		if (resized.width)
			setCurrentSettings({width: null});
		if (resized.height)
			setCurrentSettings({height: null});
	}


	// -------------------------------------------------------
	// Utilities
	// -------------------------------------------------------

	// Get the selector from an url (as string)
	function getHash(url) {
		if (typeof url == 'string') {
			var hashPos = url.indexOf('#');
			if (hashPos > -1)
				return url.substring(hashPos);
		}
		return '';
	}

	// Filter an html content to remove the script[src]
	function filterScripts(data) {
		// Removing the body, head and html tag
		if (typeof data == 'string')
			data = data.replace(/<\/?(html|head|body)([^>]*)>/gi, '');
		var tmp = new Array();
		$.each($.clean({0:data}, this.ownerDocument), function() {
			if ($.nodeName(this, "script")) {
				if (!this.src || $(this).attr('rel') == 'forceLoad') {
					if ($(this).attr('rev') == 'shown')
						modal.scriptsShown.push(this);
					else
						modal.scripts.push(this);
				}
			} else
				tmp.push(this);
		});
		return tmp;
	}

	// Get the vertical and horizontal margin, padding and border dimension
	function getOuter(elm) {
		elm = elm.get(0);
		var ret = {
			h: {
				margin: getCurCSS(elm, 'marginTop') + getCurCSS(elm, 'marginBottom'),
				border: getCurCSS(elm, 'borderTopWidth') + getCurCSS(elm, 'borderBottomWidth'),
				padding: getCurCSS(elm, 'paddingTop') + getCurCSS(elm, 'paddingBottom')
			},
			w: {
				margin: getCurCSS(elm, 'marginLeft') + getCurCSS(elm, 'marginRight'),
				border: getCurCSS(elm, 'borderLeftWidth') + getCurCSS(elm, 'borderRightWidth'),
				padding: getCurCSS(elm, 'paddingLeft') + getCurCSS(elm, 'paddingRight')
			}
		};

		ret.h.outer = ret.h.margin + ret.h.border;
		ret.w.outer = ret.w.margin + ret.w.border;

		ret.h.inner = ret.h.padding + ret.h.border;
		ret.w.inner = ret.w.padding + ret.w.border;

		ret.h.total = ret.h.outer + ret.h.padding;
		ret.w.total = ret.w.outer + ret.w.padding;

		return ret;
	}

	function getCurCSS(elm, name) {
		var ret = parseInt($.curCSS(elm, name, true));
		if (isNaN(ret))
			ret = 0;
		return ret;
	}

	// Proxy Debug function
	function debug(msg) {
		if ($.fn.nyroModal.settings.debug || currentSettings && currentSettings.debug)
			nyroModalDebug(msg, modal, currentSettings || {});
	}

	// -------------------------------------------------------
	// Default animation function
	// -------------------------------------------------------

	function showBackground(elts, settings, callback) {
		elts.bg.css({opacity:0}).fadeTo(500, 0.75, callback);
	}

	function hideBackground(elts, settings, callback) {
		elts.bg.fadeOut(300, callback);
	}

	function showLoading(elts, settings, callback) {
		elts.loading
			.css({
				marginTop: settings.marginTopLoading+'px',
				marginLeft: settings.marginLeftLoading+'px',
				opacity: 0
			})
			.show()
			.animate({
				opacity: 1
			}, {complete: callback, duration: 400});
	}

	function hideLoading(elts, settings, callback) {
		callback();
	}

	function showContent(elts, settings, callback) {
		elts.loading
			.css({
				marginTop: settings.marginTopLoading+'px',
				marginLeft: settings.marginLeftLoading+'px'
			})
			.show()
			.animate({
				width: settings.width+'px',
				height: settings.height+'px',
				marginTop: settings.marginTop+'px',
				marginLeft: settings.marginLeft+'px'
			}, {duration: 350, complete: function() {
				elts.contentWrapper
					.css({
						width: settings.width+'px',
						height: settings.height+'px',
						marginTop: settings.marginTop+'px',
						marginLeft: settings.marginLeft+'px'
					})
					.show();
					elts.loading.fadeOut(200, callback);
				}
			});
	}

	function hideContent(elts, settings, callback) {
		elts.contentWrapper
			.animate({
				height: '50px',
				width: '50px',
				marginTop: (-(25+settings.borderH)/2 + settings.marginScrollTop)+'px',
				marginLeft: (-(25+settings.borderW)/2 + settings.marginScrollLeft)+'px'
			}, {duration: 350, complete: function() {
				elts.contentWrapper.hide();
				callback();
			}});
	}

	function showTransition(elts, settings, callback) {
		// Put the loading with the same dimensions of the current content
		elts.loading
			.css({
				marginTop: elts.contentWrapper.css('marginTop'),
				marginLeft: elts.contentWrapper.css('marginLeft'),
				height: elts.contentWrapper.css('height'),
				width: elts.contentWrapper.css('width'),
				opacity: 0
			})
			.show()
			.fadeTo(400, 1, function() {
					elts.contentWrapper.hide();
					callback();
				});
	}

	function hideTransition(elts, settings, callback) {
		// Place the content wrapper underneath the the loading with the right dimensions
		elts.contentWrapper
			.hide()
			.css({
				width: settings.width+'px',
				height: settings.height+'px',
				marginLeft: settings.marginLeft+'px',
				marginTop: settings.marginTop+'px',
				opacity: 1
			});
		elts.loading
			.animate({
				width: settings.width+'px',
				height: settings.height+'px',
				marginLeft: settings.marginLeft+'px',
				marginTop: settings.marginTop+'px'
			}, {complete: function() {
					elts.contentWrapper.show();
					elts.loading.fadeOut(400, function() {
						elts.loading.hide();
						callback();
					});
				}, duration: 350});
	}

	function resize(elts, settings, callback) {
		elts.contentWrapper
			.animate({
				width: settings.width+'px',
				height: settings.height+'px',
				marginLeft: settings.marginLeft+'px',
				marginTop: settings.marginTop+'px'
			}, {complete: callback, duration: 400});
	}

	function updateBgColor(elts, settings, callback) {
		if (!$.fx.step.backgroundColor) {
			elts.bg.css({backgroundColor: settings.bgColor});
			callback();
		} else
			elts.bg
				.animate({
					backgroundColor: settings.bgColor
				}, {complete: callback, duration: 400});
	}

	// -------------------------------------------------------
	// Default initialization
	// -------------------------------------------------------

	$($.fn.nyroModal.settings.openSelector).nyroModal();

});

// Default debug function, to be overwritten if needed
//      Be aware that the settings parameter could be empty
var tmpDebug = '';
function nyroModalDebug(msg, elts, settings) {
	if (elts.full && elts.bg) {
		elts.bg.prepend(msg+'<br />'+tmpDebug);
		tmpDebug = '';
	} else
		tmpDebug+= msg+'<br />';
};
/*
 * Copyright (c) 2009 Simo Kinnunen.
 * Licensed under the MIT license.
 *
 * @version 1.09i
 */
var Cufon=(function(){var m=function(){return m.replace.apply(null,arguments)};var x=m.DOM={ready:(function(){var C=false,E={loaded:1,complete:1};var B=[],D=function(){if(C){return}C=true;for(var F;F=B.shift();F()){}};if(document.addEventListener){document.addEventListener("DOMContentLoaded",D,false);window.addEventListener("pageshow",D,false)}if(!window.opera&&document.readyState){(function(){E[document.readyState]?D():setTimeout(arguments.callee,10)})()}if(document.readyState&&document.createStyleSheet){(function(){try{document.body.doScroll("left");D()}catch(F){setTimeout(arguments.callee,1)}})()}q(window,"load",D);return function(F){if(!arguments.length){D()}else{C?F():B.push(F)}}})(),root:function(){return document.documentElement||document.body}};var n=m.CSS={Size:function(C,B){this.value=parseFloat(C);this.unit=String(C).match(/[a-z%]*$/)[0]||"px";this.convert=function(D){return D/B*this.value};this.convertFrom=function(D){return D/this.value*B};this.toString=function(){return this.value+this.unit}},addClass:function(C,B){var D=C.className;C.className=D+(D&&" ")+B;return C},color:j(function(C){var B={};B.color=C.replace(/^rgba\((.*?),\s*([\d.]+)\)/,function(E,D,F){B.opacity=parseFloat(F);return"rgb("+D+")"});return B}),fontStretch:j(function(B){if(typeof B=="number"){return B}if(/%$/.test(B)){return parseFloat(B)/100}return{"ultra-condensed":0.5,"extra-condensed":0.625,condensed:0.75,"semi-condensed":0.875,"semi-expanded":1.125,expanded:1.25,"extra-expanded":1.5,"ultra-expanded":2}[B]||1}),getStyle:function(C){var B=document.defaultView;if(B&&B.getComputedStyle){return new a(B.getComputedStyle(C,null))}if(C.currentStyle){return new a(C.currentStyle)}return new a(C.style)},gradient:j(function(F){var G={id:F,type:F.match(/^-([a-z]+)-gradient\(/)[1],stops:[]},C=F.substr(F.indexOf("(")).match(/([\d.]+=)?(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)/ig);for(var E=0,B=C.length,D;E<B;++E){D=C[E].split("=",2).reverse();G.stops.push([D[1]||E/(B-1),D[0]])}return G}),quotedList:j(function(E){var D=[],C=/\s*((["'])([\s\S]*?[^\\])\2|[^,]+)\s*/g,B;while(B=C.exec(E)){D.push(B[3]||B[1])}return D}),recognizesMedia:j(function(G){var E=document.createElement("style"),D,C,B;E.type="text/css";E.media=G;try{E.appendChild(document.createTextNode("/**/"))}catch(F){}C=g("head")[0];C.insertBefore(E,C.firstChild);D=(E.sheet||E.styleSheet);B=D&&!D.disabled;C.removeChild(E);return B}),removeClass:function(D,C){var B=RegExp("(?:^|\\s+)"+C+"(?=\\s|$)","g");D.className=D.className.replace(B,"");return D},supports:function(D,C){var B=document.createElement("span").style;if(B[D]===undefined){return false}B[D]=C;return B[D]===C},textAlign:function(E,D,B,C){if(D.get("textAlign")=="right"){if(B>0){E=" "+E}}else{if(B<C-1){E+=" "}}return E},textShadow:j(function(F){if(F=="none"){return null}var E=[],G={},B,C=0;var D=/(#[a-f0-9]+|[a-z]+\(.*?\)|[a-z]+)|(-?[\d.]+[a-z%]*)|,/ig;while(B=D.exec(F)){if(B[0]==","){E.push(G);G={};C=0}else{if(B[1]){G.color=B[1]}else{G[["offX","offY","blur"][C++]]=B[2]}}}E.push(G);return E}),textTransform:(function(){var B={uppercase:function(C){return C.toUpperCase()},lowercase:function(C){return C.toLowerCase()},capitalize:function(C){return C.replace(/\b./g,function(D){return D.toUpperCase()})}};return function(E,D){var C=B[D.get("textTransform")];return C?C(E):E}})(),whiteSpace:(function(){var D={inline:1,"inline-block":1,"run-in":1};var C=/^\s+/,B=/\s+$/;return function(H,F,G,E){if(E){if(E.nodeName.toLowerCase()=="br"){H=H.replace(C,"")}}if(D[F.get("display")]){return H}if(!G.previousSibling){H=H.replace(C,"")}if(!G.nextSibling){H=H.replace(B,"")}return H}})()};n.ready=(function(){var B=!n.recognizesMedia("all"),E=false;var D=[],H=function(){B=true;for(var K;K=D.shift();K()){}};var I=g("link"),J=g("style");function C(K){return K.disabled||G(K.sheet,K.media||"screen")}function G(M,P){if(!n.recognizesMedia(P||"all")){return true}if(!M||M.disabled){return false}try{var Q=M.cssRules,O;if(Q){search:for(var L=0,K=Q.length;O=Q[L],L<K;++L){switch(O.type){case 2:break;case 3:if(!G(O.styleSheet,O.media.mediaText)){return false}break;default:break search}}}}catch(N){}return true}function F(){if(document.createStyleSheet){return true}var L,K;for(K=0;L=I[K];++K){if(L.rel.toLowerCase()=="stylesheet"&&!C(L)){return false}}for(K=0;L=J[K];++K){if(!C(L)){return false}}return true}x.ready(function(){if(!E){E=n.getStyle(document.body).isUsable()}if(B||(E&&F())){H()}else{setTimeout(arguments.callee,10)}});return function(K){if(B){K()}else{D.push(K)}}})();function s(D){var C=this.face=D.face,B={"\u0020":1,"\u00a0":1,"\u3000":1};this.glyphs=D.glyphs;this.w=D.w;this.baseSize=parseInt(C["units-per-em"],10);this.family=C["font-family"].toLowerCase();this.weight=C["font-weight"];this.style=C["font-style"]||"normal";this.viewBox=(function(){var F=C.bbox.split(/\s+/);var E={minX:parseInt(F[0],10),minY:parseInt(F[1],10),maxX:parseInt(F[2],10),maxY:parseInt(F[3],10)};E.width=E.maxX-E.minX;E.height=E.maxY-E.minY;E.toString=function(){return[this.minX,this.minY,this.width,this.height].join(" ")};return E})();this.ascent=-parseInt(C.ascent,10);this.descent=-parseInt(C.descent,10);this.height=-this.ascent+this.descent;this.spacing=function(L,N,E){var O=this.glyphs,M,K,G,P=[],F=0,J=-1,I=-1,H;while(H=L[++J]){M=O[H]||this.missingGlyph;if(!M){continue}if(K){F-=G=K[H]||0;P[I]-=G}F+=P[++I]=~~(M.w||this.w)+N+(B[H]?E:0);K=M.k}P.total=F;return P}}function f(){var C={},B={oblique:"italic",italic:"oblique"};this.add=function(D){(C[D.style]||(C[D.style]={}))[D.weight]=D};this.get=function(H,I){var G=C[H]||C[B[H]]||C.normal||C.italic||C.oblique;if(!G){return null}I={normal:400,bold:700}[I]||parseInt(I,10);if(G[I]){return G[I]}var E={1:1,99:0}[I%100],K=[],F,D;if(E===undefined){E=I>400}if(I==500){I=400}for(var J in G){if(!k(G,J)){continue}J=parseInt(J,10);if(!F||J<F){F=J}if(!D||J>D){D=J}K.push(J)}if(I<F){I=F}if(I>D){I=D}K.sort(function(M,L){return(E?(M>=I&&L>=I)?M<L:M>L:(M<=I&&L<=I)?M>L:M<L)?-1:1});return G[K[0]]}}function r(){function D(F,G){if(F.contains){return F.contains(G)}return F.compareDocumentPosition(G)&16}function B(G){var F=G.relatedTarget;if(!F||D(this,F)){return}C(this,G.type=="mouseover")}function E(F){C(this,F.type=="mouseenter")}function C(F,G){setTimeout(function(){var H=d.get(F).options;m.replace(F,G?h(H,H.hover):H,true)},10)}this.attach=function(F){if(F.onmouseenter===undefined){q(F,"mouseover",B);q(F,"mouseout",B)}else{q(F,"mouseenter",E);q(F,"mouseleave",E)}}}function u(){var C=[],D={};function B(H){var E=[],G;for(var F=0;G=H[F];++F){E[F]=C[D[G]]}return E}this.add=function(F,E){D[F]=C.push(E)-1};this.repeat=function(){var E=arguments.length?B(arguments):C,F;for(var G=0;F=E[G++];){m.replace(F[0],F[1],true)}}}function A(){var D={},B=0;function C(E){return E.cufid||(E.cufid=++B)}this.get=function(E){var F=C(E);return D[F]||(D[F]={})}}function a(B){var D={},C={};this.extend=function(E){for(var F in E){if(k(E,F)){D[F]=E[F]}}return this};this.get=function(E){return D[E]!=undefined?D[E]:B[E]};this.getSize=function(F,E){return C[F]||(C[F]=new n.Size(this.get(F),E))};this.isUsable=function(){return !!B}}function q(C,B,D){if(C.addEventListener){C.addEventListener(B,D,false)}else{if(C.attachEvent){C.attachEvent("on"+B,function(){return D.call(C,window.event)})}}}function v(C,B){var D=d.get(C);if(D.options){return C}if(B.hover&&B.hoverables[C.nodeName.toLowerCase()]){b.attach(C)}D.options=B;return C}function j(B){var C={};return function(D){if(!k(C,D)){C[D]=B.apply(null,arguments)}return C[D]}}function c(F,E){var B=n.quotedList(E.get("fontFamily").toLowerCase()),D;for(var C=0;D=B[C];++C){if(i[D]){return i[D].get(E.get("fontStyle"),E.get("fontWeight"))}}return null}function g(B){return document.getElementsByTagName(B)}function k(C,B){return C.hasOwnProperty(B)}function h(){var C={},B,F;for(var E=0,D=arguments.length;B=arguments[E],E<D;++E){for(F in B){if(k(B,F)){C[F]=B[F]}}}return C}function o(E,M,C,N,F,D){var K=document.createDocumentFragment(),H;if(M===""){return K}var L=N.separate;var I=M.split(p[L]),B=(L=="words");if(B&&t){if(/^\s/.test(M)){I.unshift("")}if(/\s$/.test(M)){I.push("")}}for(var J=0,G=I.length;J<G;++J){H=z[N.engine](E,B?n.textAlign(I[J],C,J,G):I[J],C,N,F,D,J<G-1);if(H){K.appendChild(H)}}return K}function l(D,M){var C=D.nodeName.toLowerCase();if(M.ignore[C]){return}var E=!M.textless[C];var B=n.getStyle(v(D,M)).extend(M);var F=c(D,B),G,K,I,H,L,J;if(!F){return}for(G=D.firstChild;G;G=I){K=G.nodeType;I=G.nextSibling;if(E&&K==3){if(H){H.appendData(G.data);D.removeChild(G)}else{H=G}if(I){continue}}if(H){D.replaceChild(o(F,n.whiteSpace(H.data,B,H,J),B,M,G,D),H);H=null}if(K==1){if(G.firstChild){if(G.nodeName.toLowerCase()=="cufon"){z[M.engine](F,null,B,M,G,D)}else{arguments.callee(G,M)}}J=G}}}var t=" ".split(/\s+/).length==0;var d=new A();var b=new r();var y=new u();var e=false;var z={},i={},w={autoDetect:false,engine:null,forceHitArea:false,hover:false,hoverables:{a:true},ignore:{applet:1,canvas:1,col:1,colgroup:1,head:1,iframe:1,map:1,optgroup:1,option:1,script:1,select:1,style:1,textarea:1,title:1,pre:1},printable:true,selector:(window.Sizzle||(window.jQuery&&function(B){return jQuery(B)})||(window.dojo&&dojo.query)||(window.Ext&&Ext.query)||(window.YAHOO&&YAHOO.util&&YAHOO.util.Selector&&YAHOO.util.Selector.query)||(window.$$&&function(B){return $$(B)})||(window.$&&function(B){return $(B)})||(document.querySelectorAll&&function(B){return document.querySelectorAll(B)})||g),separate:"words",textless:{dl:1,html:1,ol:1,table:1,tbody:1,thead:1,tfoot:1,tr:1,ul:1},textShadow:"none"};var p={words:/\s/.test("\u00a0")?/[^\S\u00a0]+/:/\s+/,characters:"",none:/^/};m.now=function(){x.ready();return m};m.refresh=function(){y.repeat.apply(y,arguments);return m};m.registerEngine=function(C,B){if(!B){return m}z[C]=B;return m.set("engine",C)};m.registerFont=function(D){if(!D){return m}var B=new s(D),C=B.family;if(!i[C]){i[C]=new f()}i[C].add(B);return m.set("fontFamily",'"'+C+'"')};m.replace=function(D,C,B){C=h(w,C);if(!C.engine){return m}if(!e){n.addClass(x.root(),"cufon-active cufon-loading");n.ready(function(){n.addClass(n.removeClass(x.root(),"cufon-loading"),"cufon-ready")});e=true}if(C.hover){C.forceHitArea=true}if(C.autoDetect){delete C.fontFamily}if(typeof C.textShadow=="string"){C.textShadow=n.textShadow(C.textShadow)}if(typeof C.color=="string"&&/^-/.test(C.color)){C.textGradient=n.gradient(C.color)}else{delete C.textGradient}if(!B){y.add(D,arguments)}if(D.nodeType||typeof D=="string"){D=[D]}n.ready(function(){for(var F=0,E=D.length;F<E;++F){var G=D[F];if(typeof G=="string"){m.replace(C.selector(G),C,true)}else{l(G,C)}}});return m};m.set=function(B,C){w[B]=C;return m};return m})();Cufon.registerEngine("vml",(function(){var e=document.namespaces;if(!e){return}e.add("cvml","urn:schemas-microsoft-com:vml");e=null;var b=document.createElement("cvml:shape");b.style.behavior="url(#default#VML)";if(!b.coordsize){return}b=null;var h=(document.documentMode||0)<8;document.write(('<style type="text/css">cufoncanvas{text-indent:0;}@media screen{cvml\\:shape,cvml\\:rect,cvml\\:fill,cvml\\:shadow{behavior:url(#default#VML);display:block;antialias:true;position:absolute;}cufoncanvas{position:absolute;text-align:left;}cufon{display:inline-block;position:relative;vertical-align:'+(h?"middle":"text-bottom")+";}cufon cufontext{position:absolute;left:-10000in;font-size:1px;}a cufon{cursor:pointer}}@media print{cufon cufoncanvas{display:none;}}</style>").replace(/;/g,"!important;"));function c(i,j){return a(i,/(?:em|ex|%)$|^[a-z-]+$/i.test(j)?"1em":j)}function a(l,m){if(m==="0"){return 0}if(/px$/i.test(m)){return parseFloat(m)}var k=l.style.left,j=l.runtimeStyle.left;l.runtimeStyle.left=l.currentStyle.left;l.style.left=m.replace("%","em");var i=l.style.pixelLeft;l.style.left=k;l.runtimeStyle.left=j;return i}function f(l,k,j,n){var i="computed"+n,m=k[i];if(isNaN(m)){m=k.get(n);k[i]=m=(m=="normal")?0:~~j.convertFrom(a(l,m))}return m}var g={};function d(p){var q=p.id;if(!g[q]){var n=p.stops,o=document.createElement("cvml:fill"),i=[];o.type="gradient";o.angle=180;o.focus="0";o.method="sigma";o.color=n[0][1];for(var m=1,l=n.length-1;m<l;++m){i.push(n[m][0]*100+"% "+n[m][1])}o.colors=i.join(",");o.color2=n[l][1];g[q]=o}return g[q]}return function(ac,G,Y,C,K,ad,W){var n=(G===null);if(n){G=K.alt}var I=ac.viewBox;var p=Y.computedFontSize||(Y.computedFontSize=new Cufon.CSS.Size(c(ad,Y.get("fontSize"))+"px",ac.baseSize));var y,q;if(n){y=K;q=K.firstChild}else{y=document.createElement("cufon");y.className="cufon cufon-vml";y.alt=G;q=document.createElement("cufoncanvas");y.appendChild(q);if(C.printable){var Z=document.createElement("cufontext");Z.appendChild(document.createTextNode(G));y.appendChild(Z)}if(!W){y.appendChild(document.createElement("cvml:shape"))}}var ai=y.style;var R=q.style;var l=p.convert(I.height),af=Math.ceil(l);var V=af/l;var P=V*Cufon.CSS.fontStretch(Y.get("fontStretch"));var U=I.minX,T=I.minY;R.height=af;R.top=Math.round(p.convert(T-ac.ascent));R.left=Math.round(p.convert(U));ai.height=p.convert(ac.height)+"px";var F=Y.get("color");var ag=Cufon.CSS.textTransform(G,Y).split("");var L=ac.spacing(ag,f(ad,Y,p,"letterSpacing"),f(ad,Y,p,"wordSpacing"));if(!L.length){return null}var k=L.total;var x=-U+k+(I.width-L[L.length-1]);var ah=p.convert(x*P),X=Math.round(ah);var O=x+","+I.height,m;var J="r"+O+"ns";var u=C.textGradient&&d(C.textGradient);var o=ac.glyphs,S=0;var H=C.textShadow;var ab=-1,aa=0,w;while(w=ag[++ab]){var D=o[ag[ab]]||ac.missingGlyph,v;if(!D){continue}if(n){v=q.childNodes[aa];while(v.firstChild){v.removeChild(v.firstChild)}}else{v=document.createElement("cvml:shape");q.appendChild(v)}v.stroked="f";v.coordsize=O;v.coordorigin=m=(U-S)+","+T;v.path=(D.d?"m"+D.d+"xe":"")+"m"+m+J;v.fillcolor=F;if(u){v.appendChild(u.cloneNode(false))}var ae=v.style;ae.width=X;ae.height=af;if(H){var s=H[0],r=H[1];var B=Cufon.CSS.color(s.color),z;var N=document.createElement("cvml:shadow");N.on="t";N.color=B.color;N.offset=s.offX+","+s.offY;if(r){z=Cufon.CSS.color(r.color);N.type="double";N.color2=z.color;N.offset2=r.offX+","+r.offY}N.opacity=B.opacity||(z&&z.opacity)||1;v.appendChild(N)}S+=L[aa++]}var M=v.nextSibling,t,A;if(C.forceHitArea){if(!M){M=document.createElement("cvml:rect");M.stroked="f";M.className="cufon-vml-cover";t=document.createElement("cvml:fill");t.opacity=0;M.appendChild(t);q.appendChild(M)}A=M.style;A.width=X;A.height=af}else{if(M){q.removeChild(M)}}ai.width=Math.max(Math.ceil(p.convert(k*P)),0);if(h){var Q=Y.computedYAdjust;if(Q===undefined){var E=Y.get("lineHeight");if(E=="normal"){E="1em"}else{if(!isNaN(E)){E+="em"}}Y.computedYAdjust=Q=0.5*(a(ad,E)-parseFloat(ai.height))}if(Q){ai.marginTop=Math.ceil(Q)+"px";ai.marginBottom=Q+"px"}}return y}})());Cufon.registerEngine("canvas",(function(){var b=document.createElement("canvas");if(!b||!b.getContext||!b.getContext.apply){return}b=null;var a=Cufon.CSS.supports("display","inline-block");var e=!a&&(document.compatMode=="BackCompat"||/frameset|transitional/i.test(document.doctype.publicId));var f=document.createElement("style");f.type="text/css";f.appendChild(document.createTextNode(("cufon{text-indent:0;}@media screen,projection{cufon{display:inline;display:inline-block;position:relative;vertical-align:middle;"+(e?"":"font-size:1px;line-height:1px;")+"}cufon cufontext{display:-moz-inline-box;display:inline-block;width:0;height:0;overflow:hidden;text-indent:-10000in;}"+(a?"cufon canvas{position:relative;}":"cufon canvas{position:absolute;}")+"}@media print{cufon{padding:0;}cufon canvas{display:none;}}").replace(/;/g,"!important;")));document.getElementsByTagName("head")[0].appendChild(f);function d(p,h){var n=0,m=0;var g=[],o=/([mrvxe])([^a-z]*)/g,k;generate:for(var j=0;k=o.exec(p);++j){var l=k[2].split(",");switch(k[1]){case"v":g[j]={m:"bezierCurveTo",a:[n+~~l[0],m+~~l[1],n+~~l[2],m+~~l[3],n+=~~l[4],m+=~~l[5]]};break;case"r":g[j]={m:"lineTo",a:[n+=~~l[0],m+=~~l[1]]};break;case"m":g[j]={m:"moveTo",a:[n=~~l[0],m=~~l[1]]};break;case"x":g[j]={m:"closePath"};break;case"e":break generate}h[g[j].m].apply(h,g[j].a)}return g}function c(m,k){for(var j=0,h=m.length;j<h;++j){var g=m[j];k[g.m].apply(k,g.a)}}return function(V,w,P,t,C,W){var k=(w===null);if(k){w=C.getAttribute("alt")}var A=V.viewBox;var m=P.getSize("fontSize",V.baseSize);var B=0,O=0,N=0,u=0;var z=t.textShadow,L=[];if(z){for(var U=z.length;U--;){var F=z[U];var K=m.convertFrom(parseFloat(F.offX));var I=m.convertFrom(parseFloat(F.offY));L[U]=[K,I];if(I<B){B=I}if(K>O){O=K}if(I>N){N=I}if(K<u){u=K}}}var Z=Cufon.CSS.textTransform(w,P).split("");var E=V.spacing(Z,~~m.convertFrom(parseFloat(P.get("letterSpacing"))||0),~~m.convertFrom(parseFloat(P.get("wordSpacing"))||0));if(!E.length){return null}var h=E.total;O+=A.width-E[E.length-1];u+=A.minX;var s,n;if(k){s=C;n=C.firstChild}else{s=document.createElement("cufon");s.className="cufon cufon-canvas";s.setAttribute("alt",w);n=document.createElement("canvas");s.appendChild(n);if(t.printable){var S=document.createElement("cufontext");S.appendChild(document.createTextNode(w));s.appendChild(S)}}var aa=s.style;var H=n.style;var j=m.convert(A.height);var Y=Math.ceil(j);var M=Y/j;var G=M*Cufon.CSS.fontStretch(P.get("fontStretch"));var J=h*G;var Q=Math.ceil(m.convert(J+O-u));var o=Math.ceil(m.convert(A.height-B+N));n.width=Q;n.height=o;H.width=Q+"px";H.height=o+"px";B+=A.minY;H.top=Math.round(m.convert(B-V.ascent))+"px";H.left=Math.round(m.convert(u))+"px";var r=Math.max(Math.ceil(m.convert(J)),0)+"px";if(a){aa.width=r;aa.height=m.convert(V.height)+"px"}else{aa.paddingLeft=r;aa.paddingBottom=(m.convert(V.height)-1)+"px"}var X=n.getContext("2d"),D=j/A.height;X.scale(D,D*M);X.translate(-u,-B);X.save();function T(){var x=V.glyphs,ab,l=-1,g=-1,y;X.scale(G,1);while(y=Z[++l]){var ab=x[Z[l]]||V.missingGlyph;if(!ab){continue}if(ab.d){X.beginPath();if(ab.code){c(ab.code,X)}else{ab.code=d("m"+ab.d,X)}X.fill()}X.translate(E[++g],0)}X.restore()}if(z){for(var U=z.length;U--;){var F=z[U];X.save();X.fillStyle=F.color;X.translate.apply(X,L[U]);T()}}var q=t.textGradient;if(q){var v=q.stops,p=X.createLinearGradient(0,A.minY,0,A.maxY);for(var U=0,R=v.length;U<R;++U){p.addColorStop.apply(p,v[U])}X.fillStyle=p}else{X.fillStyle=P.get("color")}T();return s}})());;
/*!
 * The following copyright notice may not be removed under any circumstances.
 * 
 * Copyright:
 * © 1994, 2001, 2002 Adobe Systems Incorporated. All rights reserved.
 * 
 * Trademark:
 * Penumbra is either a registered trademark or a trademark of Adobe Systems
 * Incorporated in the United States and/or other countries.
 * 
 * Full name:
 * PenumbraHalfSerifStd-SeBd
 * 
 * Designer:
 * Lance Hidy
 * 
 * Vendor URL:
 * http://www.adobe.com/type
 * 
 * License information:
 * http://www.adobe.com/type/legal.html
 */
Cufon.registerFont((function(f){var b=_cufon_bridge_={p:[{"d":"180,-110r-162,71r0,-34r126,-53r-126,-52r0,-34r162,71r0,31","w":198},{"d":"173,-57r-88,0v-15,38,-20,51,-6,52r0,5r-82,0r0,-5v11,-1,18,-13,61,-115r70,-165r9,0r69,165v42,101,48,114,59,115r0,5r-86,0r0,-5v14,-1,9,-14,-6,-52xm100,-100v16,2,42,2,58,0v-21,-55,-25,-69,-28,-78v-3,9,-9,23,-30,78xm183,-299r-10,11r-41,-28r-41,27r-9,-11r52,-49","k":{"a":-8,"\u00e6":-8,"\u00e1":-8,"\u00e2":-8,"\u00e4":-8,"\u00e0":-8,"\u00e5":-8,"\u00e3":-8,"c":12,"\u00e7":12,"g":12,"j":-10,"m":-10,"o":12,"\u00f8":12,"\u0153":12,"\u00f3":12,"\u00f4":12,"\u00f6":12,"\u00f2":12,"\u00f5":12,"q":12,"s":-2,"\u0161":-2,"t":27,"u":17,"\u00fa":17,"\u00fb":17,"\u00fc":17,"\u00f9":17,"v":44,"w":26,"x":-4,"y":32,"\u00fd":32,"\u00ff":32,"z":-8,"\u017e":-8,":":-7,",":-8,"\u2014":8,"\u2013":8,"\u00ab":14,"\u2039":16,"-":8,".":-8,"?":4,"\"":42,"\u201e":-6,"\u201c":40,"\u201d":33,"\u2018":40,"\u2019":33,"\u201a":-6,"'":42,";":-7," ":8,"A":-8,"\u00c6":-8,"\u00c1":-8,"\u00c2":-8,"\u00c4":-8,"\u00c0":-8,"\u00c5":-8,"\u00c3":-8,"C":12,"\u00c7":12,"G":12,"J":-10,"M":-10,"O":12,"\u00d8":12,"\u0152":12,"\u00d3":12,"\u00d4":12,"\u00d6":12,"\u00d2":12,"\u00d5":12,"Q":12,"S":-2,"\u0160":-2,"T":27,"U":17,"\u00da":17,"\u00db":17,"\u00dc":17,"\u00d9":17,"V":44,"W":26,"X":-4,"Y":32,"\u00dd":32,"\u0178":32,"Z":-8,"\u017d":-8}},{"d":"127,-83v-1,-33,-39,-42,-79,-40r0,-40v36,-1,70,-5,72,-40v1,-49,-85,-46,-95,-9r-5,0v0,-17,0,-42,-1,-59v61,-30,158,-13,157,60v-2,35,-24,56,-53,66v35,7,61,32,62,68v-1,82,-109,99,-174,63v1,-15,2,-50,2,-60r5,0v12,43,111,46,109,-9","w":199,"k":{"9":7,"7":4,"6":-2,"4":-5,".":6,",":6}},{"d":"71,-56v40,69,158,66,204,4r23,0v-28,33,-75,56,-126,56v-88,0,-160,-65,-160,-144v0,-80,72,-145,160,-145v90,1,161,65,160,148r-261,2r0,79xm273,-226v-38,-64,-151,-65,-198,-8v-8,21,-5,65,-2,90r198,0v6,-22,0,-56,2,-82","w":343},{"d":"266,-168r0,172r-9,0r-123,-123v-17,-15,-30,-33,-52,-54v0,14,1,25,1,56v0,98,1,111,16,112r0,5r-81,0r0,-5v16,-1,16,-14,16,-115r0,-163r8,0r125,125v18,16,29,34,50,54r0,-66v0,-91,0,-105,-16,-106r0,-5r79,0r0,5v-14,1,-14,14,-14,108","w":299,"k":{"a":4,"\u00e6":4,"\u00e1":4,"\u00e2":4,"\u00e4":4,"\u00e0":4,"\u00e5":4,"\u00e3":4,"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3,"w":-3,",":5,".":5,"\u201e":5,"\u201a":5,"A":4,"\u00c6":4,"\u00c1":4,"\u00c2":4,"\u00c4":4,"\u00c0":4,"\u00c5":4,"\u00c3":4,"C":3,"\u00c7":3,"G":3,"O":3,"\u00d8":3,"\u0152":3,"\u00d3":3,"\u00d4":3,"\u00d6":3,"\u00d2":3,"\u00d5":3,"Q":3,"W":-3}},{"d":"232,-139r-88,142r-50,0r-88,-142r88,-143r50,0xm186,-139r-61,-100v-2,-3,-2,-11,-7,-12v-18,40,-44,73,-65,111r67,112v19,-40,45,-73,66,-111","w":238},{"d":"84,-262r45,0r-4,74r74,-6r0,42r-74,-5r0,61r74,-5r0,42r-74,-5r4,106r-45,0r5,-106r-75,5r0,-41r75,4r0,-61r-75,5r0,-40r74,4","w":213},{"d":"188,-75v-53,15,-108,-11,-107,-66v1,-56,50,-81,108,-70v0,10,-2,18,-2,34v-22,-25,-75,-8,-75,34v0,42,49,63,71,36r3,0v0,11,1,22,2,32xm146,-270v70,0,128,55,128,129v0,71,-55,129,-131,129v-72,0,-128,-58,-128,-129v0,-72,59,-129,131,-129xm144,-34v60,0,105,-48,105,-107v0,-60,-46,-107,-105,-107v-58,0,-105,47,-105,107v0,59,45,107,105,107","w":288},{"d":"123,-166v4,-15,71,-113,44,-110r0,-5r81,0r0,6v-10,1,-17,11,-73,114v-11,20,-27,31,-26,61v0,81,0,93,17,95r0,5r-88,0r0,-5v17,-2,17,-14,17,-94v0,-29,-16,-42,-27,-62v-53,-103,-61,-113,-74,-115r0,-5r89,0r0,5v-16,2,-9,15,13,57v10,20,21,40,27,53","w":244,"k":{"a":36,"\u00e6":36,"\u00e1":36,"\u00e2":36,"\u00e4":36,"\u00e0":36,"\u00e5":36,"\u00e3":36,"c":19,"\u00e7":19,"g":19,"j":28,"m":14,"o":19,"\u00f8":19,"\u0153":19,"\u00f3":19,"\u00f4":19,"\u00f6":19,"\u00f2":19,"\u00f5":19,"q":20,"s":3,"\u0161":3,"t":-11,"u":-2,"\u00fa":-2,"\u00fb":-2,"\u00fc":-2,"\u00f9":-2,"v":-18,"w":-20,"x":-13,"y":-19,"\u00fd":-19,"\u00ff":-19,":":23,",":32,"\u2014":10,"\u2013":10,"\u00ab":10,"\u2039":10,"-":10,".":32,"?":-7,"\"":-7,"\u201e":38,"\u201c":-3,"\u201d":-8,"\u2018":-3,"\u2019":-8,"\u201a":38,"'":-7,";":23," ":8,"n":4,"\u00f1":4,"}":-7,"]":-8,"\u00bb":6,"\u203a":6,")":-7}},{"d":"91,-237r0,80v22,-1,73,5,75,-9r5,0r0,63r-5,0v-2,-16,-53,-8,-75,-10r0,25v0,69,0,81,15,83r0,5r-84,0r0,-6v15,-2,15,-13,15,-114r0,-48v0,-94,-1,-105,-15,-107r0,-6r163,0v-1,18,-2,35,-2,61r-6,0v-2,-25,-56,-15,-86,-17","w":204,"k":{"a":27,"\u00e6":27,"\u00e1":27,"\u00e2":27,"\u00e4":27,"\u00e0":27,"\u00e5":27,"\u00e3":27,"j":8,"m":2,"w":-3,":":4,",":28,".":28,"\u201e":26,"\u201a":26,";":4}},{"d":"359,0r-191,3v-85,0,-153,-50,-153,-143v1,-113,96,-141,216,-141r125,0v-1,17,-1,41,-1,61r-5,0v-1,-25,-55,-15,-84,-17r0,72v21,-1,72,3,72,-8r5,0r0,62v-8,-9,-45,-12,-77,-10r0,68v0,7,1,8,8,8v28,-2,77,8,81,-15r5,0v-1,30,-1,46,-1,60xm212,-234v-76,-14,-140,20,-138,95v1,78,66,110,138,91r0,-186","w":381},{"d":"100,-45v31,-3,80,10,86,-16r6,0v-1,29,-2,43,-2,61r-166,0r0,-5v17,2,16,-30,16,-105r-29,21r0,-28r29,-21r0,-30v0,-94,0,-103,-16,-107r0,-6r85,0r0,6v-15,4,-15,11,-15,96r0,8r43,-31r0,29v-8,5,-24,16,-43,29r0,93v0,4,1,6,6,6","w":200,"k":{"y":21,"t":21,"a":-5,"\u00e6":-5,"\u00e1":-5,"\u00e2":-5,"\u00e4":-5,"\u00e0":-5,"\u00e5":-5,"\u00e3":-5,"c":7,"\u00e7":7,"g":9,"m":-5,"o":9,"\u00f8":9,"\u0153":9,"\u00f3":9,"\u00f4":9,"\u00f6":9,"\u00f2":9,"\u00f5":9,"q":9,"u":8,"\u00fa":8,"\u00fb":8,"\u00fc":8,"\u00f9":8,"v":25,"w":9,"\u00fd":21,"\u00ff":21,":":-3,",":-3,"\u2014":15,"\u2013":15,"\u00ab":22,"\u2039":24,"-":15,".":-3,"?":2,"\"":31,"\u201c":37,"\u201d":36,"\u2018":37,"\u2019":36,"'":31,";":-3," ":8}},{"d":"222,-281v-18,54,-99,170,-133,237r94,0v18,0,31,-4,34,-17r5,0v-1,24,-1,43,-1,61r-215,0v40,-84,91,-157,134,-238v-39,4,-105,-13,-117,17r-5,0v0,-24,-1,-43,-1,-60r205,0xm73,-345r9,-10r41,27r42,-27r9,11r-52,49","w":237,"k":{"a":-2,"\u00e6":-2,"\u00e1":-2,"\u00e2":-2,"\u00e4":-2,"\u00e0":-2,"\u00e5":-2,"\u00e3":-2,"c":10,"\u00e7":10,"g":10,"o":10,"\u00f8":10,"\u0153":10,"\u00f3":10,"\u00f4":10,"\u00f6":10,"\u00f2":10,"\u00f5":10,"q":10,"\u2014":3,"\u2013":9,"\u00ab":4,"\u2039":4,"-":6,".":-2,"\u201c":5,"\u2018":5}},{"d":"67,-154v40,0,76,50,100,0r19,22v-15,23,-33,33,-50,33v-26,1,-44,-21,-70,-23v-15,0,-26,12,-34,24r-19,-22v11,-18,33,-34,54,-34","w":198},{"d":"81,-215r12,10v-13,22,-27,44,-38,61v10,18,25,42,38,66r-12,9v-23,-26,-50,-53,-71,-73v21,-21,48,-47,71,-73","w":104,"k":{" ":7,"t":2,"v":5,"x":3,"y":5,"\u00fd":5,"\u00ff":5,"T":2,"V":5,"X":3,"Y":5,"\u00dd":5,"\u0178":5,"r":3,"R":3}},{"d":"11,-152r6,-23r18,0v16,-84,98,-124,190,-104v-1,20,-1,35,-2,65r-6,0v-7,-18,-20,-25,-43,-25v-41,0,-71,24,-81,64r110,0r-6,23r-108,-1v-1,7,-1,16,0,23r105,-1r-6,23r-96,-1v9,40,37,67,77,67v24,0,40,-4,48,-25r6,0v0,19,1,47,1,62v-89,28,-174,-12,-189,-103r-33,0v2,-4,6,-17,6,-23r24,1r0,-23","w":241},{"d":"167,-285v82,0,145,59,145,143v0,84,-64,147,-150,147v-82,0,-147,-62,-147,-143v0,-86,66,-147,152,-147xm254,-140v0,-53,-38,-97,-89,-97v-54,0,-92,42,-92,97v0,54,37,97,90,97v53,0,91,-42,91,-97xm216,-306r-10,11r-41,-28r-41,27r-10,-10r52,-50","w":326,"k":{"a":15,"\u00e6":15,"\u00e1":15,"\u00e2":15,"\u00e4":15,"\u00e0":15,"\u00e5":15,"\u00e3":15,"c":-4,"\u00e7":-4,"g":-4,"j":10,"o":-4,"\u00f8":-4,"\u0153":-4,"\u00f3":-4,"\u00f4":-4,"\u00f6":-4,"\u00f2":-4,"\u00f5":-4,"q":-4,"t":4,"v":12,"x":17,"y":14,"\u00fd":14,"\u00ff":14,"z":9,"\u017e":9,",":13,"\u2014":-3,"\u2013":-3,"\u00ab":-2,"\u2039":-3,"-":-3,".":13,"?":3,"\"":14,"\u201e":19,"\u201c":5,"\u201d":5,"\u2018":5,"\u2019":5,"\u201a":19,"'":14,"A":15,"\u00c6":15,"\u00c1":15,"\u00c2":15,"\u00c4":15,"\u00c0":15,"\u00c5":15,"\u00c3":15,"C":-4,"\u00c7":-4,"G":-4,"J":10,"O":-4,"\u00d8":-4,"\u0152":-4,"\u00d3":-4,"\u00d4":-4,"\u00d6":-4,"\u00d2":-4,"\u00d5":-4,"Q":-4,"T":4,"V":12,"X":17,"Y":14,"\u00dd":14,"\u0178":14,"Z":9,"\u017d":9,"b":3,"\u00fe":3,"d":3,"e":3,"\u00e9":3,"\u00ea":3,"\u00eb":3,"\u00e8":3,"f":3,"\ufb01":3,"\ufb02":3,"\u00df":3,"h":3,"i":3,"\u0131":3,"\u00ed":3,"\u00ee":3,"\u00ef":3,"\u00ec":3,"k":3,"l":3,"\u0142":3,"n":3,"\u00f1":3,"p":3,"r":4,"B":3,"D":3,"\u00d0":3,"E":3,"\u00c9":3,"\u00ca":3,"\u00cb":3,"\u00c8":3,"F":3,"H":3,"I":3,"\u00cd":3,"\u00ce":3,"\u00cf":3,"\u00cc":3,"K":3,"L":3,"\u0141":3,"N":3,"\u00d1":3,"P":3,"\u00de":3,"R":4}},{"d":"118,-46v57,-1,95,-37,95,-98v0,-70,-50,-99,-119,-90r0,79v21,0,51,-1,58,-1r0,26v-7,0,-37,-1,-58,-1r0,76v-1,11,15,7,24,9xm63,-281v117,-14,208,27,207,134v0,110,-86,161,-207,147r-39,0r0,-6v17,-3,16,-11,16,-112r0,-13v-12,0,-25,1,-31,1r0,-25r31,0r0,-15v0,-94,0,-101,-16,-104r0,-6v8,0,27,0,39,-1","w":284},{"d":"75,-234v3,-28,-45,-31,-52,-9r-4,0v0,-13,-1,-25,-1,-30v36,-16,91,-8,87,42v-2,24,-2,68,12,71r0,6v-18,-2,-39,8,-41,-13v-17,24,-67,19,-67,-17v0,-32,39,-43,66,-50xm75,-213v-16,3,-36,8,-36,25v0,20,31,11,34,-3v2,-6,2,-13,2,-22","w":124},{"d":"123,-166v4,-15,71,-113,44,-110r0,-5r81,0r0,6v-10,1,-17,11,-73,114v-11,20,-27,31,-26,61v0,81,0,93,17,95r0,5r-88,0r0,-5v17,-2,17,-14,17,-94v0,-29,-16,-42,-27,-62v-53,-103,-61,-113,-74,-115r0,-5r89,0r0,5v-16,2,-9,15,13,57v10,20,21,40,27,53xm157,-299v-10,0,-18,-8,-18,-19v0,-9,8,-16,18,-16v10,0,19,8,19,17v0,10,-9,18,-19,18xm93,-299v-10,0,-19,-8,-19,-19v0,-9,9,-16,19,-16v11,0,18,8,18,17v0,10,-7,18,-18,18","w":244,"k":{"a":36,"\u00e6":36,"\u00e1":36,"\u00e2":36,"\u00e4":36,"\u00e0":36,"\u00e5":36,"\u00e3":36,"c":19,"\u00e7":19,"g":19,"j":28,"m":14,"o":19,"\u00f8":19,"\u0153":19,"\u00f3":19,"\u00f4":19,"\u00f6":19,"\u00f2":19,"\u00f5":19,"q":20,"s":3,"\u0161":3,"t":-11,"u":-2,"\u00fa":-2,"\u00fb":-2,"\u00fc":-2,"\u00f9":-2,"v":-18,"w":-20,"x":-13,"y":-19,"\u00fd":-19,"\u00ff":-19,":":23,",":32,"\u2014":10,"\u2013":10,"\u00ab":10,"\u2039":10,"-":10,".":32,"?":-7,"\"":-7,"\u201e":38,"\u201c":-3,"\u201d":-8,"\u2018":-3,"\u2019":-8,"\u201a":38,"'":-7,";":23," ":8,"n":4,"\u00f1":4,"}":-7,"]":-8,"\u00bb":6,"\u203a":6,")":-7}},{"d":"167,-285v82,0,145,59,145,143v0,84,-64,147,-150,147v-82,0,-147,-62,-147,-143v0,-86,66,-147,152,-147xm254,-140v0,-53,-38,-97,-89,-97v-54,0,-92,42,-92,97v0,54,37,97,90,97v53,0,91,-42,91,-97xm185,-299v-25,1,-48,-41,-62,-2r-14,-3v4,-18,18,-37,36,-37v21,0,48,40,61,3r13,2v-5,20,-17,37,-34,37","w":326,"k":{"a":15,"\u00e6":15,"\u00e1":15,"\u00e2":15,"\u00e4":15,"\u00e0":15,"\u00e5":15,"\u00e3":15,"c":-4,"\u00e7":-4,"g":-4,"j":10,"o":-4,"\u00f8":-4,"\u0153":-4,"\u00f3":-4,"\u00f4":-4,"\u00f6":-4,"\u00f2":-4,"\u00f5":-4,"q":-4,"t":4,"v":12,"x":17,"y":14,"\u00fd":14,"\u00ff":14,"z":9,"\u017e":9,",":13,"\u2014":-3,"\u2013":-3,"\u00ab":-2,"\u2039":-3,"-":-3,".":13,"?":3,"\"":14,"\u201e":19,"\u201c":5,"\u201d":5,"\u2018":5,"\u2019":5,"\u201a":19,"'":14,"A":15,"\u00c6":15,"\u00c1":15,"\u00c2":15,"\u00c4":15,"\u00c0":15,"\u00c5":15,"\u00c3":15,"C":-4,"\u00c7":-4,"G":-4,"J":10,"O":-4,"\u00d8":-4,"\u0152":-4,"\u00d3":-4,"\u00d4":-4,"\u00d6":-4,"\u00d2":-4,"\u00d5":-4,"Q":-4,"T":4,"V":12,"X":17,"Y":14,"\u00dd":14,"\u0178":14,"Z":9,"\u017d":9,"b":3,"\u00fe":3,"d":3,"e":3,"\u00e9":3,"\u00ea":3,"\u00eb":3,"\u00e8":3,"f":3,"\ufb01":3,"\ufb02":3,"\u00df":3,"h":3,"i":3,"\u0131":3,"\u00ed":3,"\u00ee":3,"\u00ef":3,"\u00ec":3,"k":3,"l":3,"\u0142":3,"n":3,"\u00f1":3,"p":3,"r":4,"B":3,"D":3,"\u00d0":3,"E":3,"\u00c9":3,"\u00ca":3,"\u00cb":3,"\u00c8":3,"F":3,"H":3,"I":3,"\u00cd":3,"\u00ce":3,"\u00cf":3,"\u00cc":3,"K":3,"L":3,"\u0141":3,"N":3,"\u00d1":3,"P":3,"\u00de":3,"R":4}},{"d":"206,-45r-23,22r-25,-31v-28,19,-62,19,-90,0r-24,31r-23,-22r26,-28v-20,-21,-24,-76,0,-98r-26,-25r22,-22r25,29v25,-19,64,-22,90,0r25,-29r23,22r-26,25v24,24,21,74,-1,98xm113,-174v-28,0,-46,24,-46,52v0,31,20,53,46,53v26,0,47,-22,47,-53v0,-29,-20,-52,-47,-52","w":226},{"d":"37,-120r0,-48v0,-93,0,-104,-16,-107r0,-6r84,0r0,6v-14,2,-14,15,-14,92r0,21v15,-21,103,-112,77,-114r0,-5r88,0r0,5v-15,-1,-91,99,-118,126v30,33,110,141,131,145r0,5r-93,0r0,-5v13,-1,1,-16,-35,-61r-50,-63r0,27v0,83,-1,94,16,97r0,5r-87,0r0,-5v17,-3,17,-14,17,-115","k":{"a":-10,"\u00e6":-10,"\u00e1":-10,"\u00e2":-10,"\u00e4":-10,"\u00e0":-10,"\u00e5":-10,"\u00e3":-10,"c":18,"\u00e7":18,"g":19,"j":-10,"m":-11,"o":19,"\u00f8":19,"\u0153":19,"\u00f3":19,"\u00f4":19,"\u00f6":19,"\u00f2":19,"\u00f5":19,"q":19,"u":3,"\u00fa":3,"\u00fb":3,"\u00fc":3,"\u00f9":3,"v":-4,"w":-7,"x":-6,"y":-4,"\u00fd":-4,"\u00ff":-4,"z":-6,"\u017e":-6,":":-8,",":-8,"\u2014":29,"\u2013":29,"\u00ab":24,"\u2039":24,"-":29,".":-8,"?":-2,"\u201e":-5,"\u201c":3,"\u2018":3,"\u201a":-5,";":-8," ":3,"A":-10,"\u00c6":-10,"\u00c1":-10,"\u00c2":-10,"\u00c4":-10,"\u00c0":-10,"\u00c5":-10,"\u00c3":-10,"C":18,"\u00c7":18,"G":19,"J":-10,"M":-11,"O":19,"\u00d8":19,"\u0152":19,"\u00d3":19,"\u00d4":19,"\u00d6":19,"\u00d2":19,"\u00d5":19,"Q":19,"U":3,"\u00da":3,"\u00db":3,"\u00dc":3,"\u00d9":3,"V":-4,"W":-7,"X":-6,"Y":-4,"\u00dd":-4,"\u0178":-4,"Z":-6,"\u017d":-6,"}":-3,"]":-3,"\u00bb":5,"\u203a":5}},{"d":"23,-69r-11,-9v12,-23,26,-45,37,-62v-10,-18,-24,-41,-37,-66r11,-9r71,74v-21,20,-48,46,-71,72","w":104,"k":{" ":9,"a":17,"\u00e6":17,"\u00e1":17,"\u00e2":17,"\u00e4":17,"\u00e0":17,"\u00e5":17,"\u00e3":17,"c":-4,"\u00e7":-4,"g":-4,"j":28,"m":2,"o":-3,"\u00f8":-3,"\u0153":-3,"\u00f3":-3,"\u00f4":-3,"\u00f6":-3,"\u00f2":-3,"\u00f5":-3,"q":-4,"t":10,"v":7,"w":3,"x":9,"y":10,"\u00fd":10,"\u00ff":10,"z":5,"\u017e":5,"A":17,"\u00c6":17,"\u00c1":17,"\u00c2":17,"\u00c4":17,"\u00c0":17,"\u00c5":17,"\u00c3":17,"C":-4,"\u00c7":-4,"G":-4,"J":28,"M":2,"O":-3,"\u00d8":-3,"\u0152":-3,"\u00d3":-3,"\u00d4":-3,"\u00d6":-3,"\u00d2":-3,"\u00d5":-3,"Q":-4,"T":10,"V":7,"W":3,"X":9,"Y":10,"\u00dd":10,"\u0178":10,"Z":5,"\u017d":5,"b":3,"\u00fe":3,"p":3,"B":3,"P":3,"\u00de":3}},{"d":"-6,8r-27,0r183,-296r27,0","w":145},{"d":"147,-214v-5,-34,-76,-29,-72,8v3,32,25,41,50,58v66,46,48,156,-52,152v-22,0,-45,-4,-58,-10v1,-18,2,-36,3,-64r5,0v5,39,88,38,86,-5v-1,-27,-31,-43,-51,-57v-66,-47,-45,-152,52,-151v15,0,34,3,44,7v-1,21,-2,38,-2,62r-5,0xm49,-345r10,-10r41,27r41,-27r9,11r-52,49","w":183,"k":{"a":5,"\u00e6":5,"\u00e1":5,"\u00e2":5,"\u00e4":5,"\u00e0":5,"\u00e5":5,"\u00e3":5,"j":4,"v":3,",":4,".":4,"\u201e":6,"\u201c":4,"\u201d":6,"\u2018":4,"\u2019":6,"\u201a":6,"A":5,"\u00c6":5,"\u00c1":5,"\u00c2":5,"\u00c4":5,"\u00c0":5,"\u00c5":5,"\u00c3":5,"J":4,"V":3}},{"d":"62,-281v120,0,204,34,204,134v0,109,-85,161,-208,147r-38,0r0,-6v17,-2,17,-13,17,-114r0,-48v0,-94,0,-105,-16,-106r0,-6v9,0,26,-1,41,-1xm94,-48v67,11,116,-31,115,-96v0,-64,-47,-102,-118,-90r0,180v0,4,0,6,3,6","w":280,"k":{"a":17,"\u00e6":17,"\u00e1":17,"\u00e2":17,"\u00e4":17,"\u00e0":17,"\u00e5":17,"\u00e3":17,"c":-4,"\u00e7":-4,"g":-4,"j":11,"m":3,"o":-4,"\u00f8":-4,"\u0153":-4,"\u00f3":-4,"\u00f4":-4,"\u00f6":-4,"\u00f2":-4,"\u00f5":-4,"q":-4,"v":10,"x":15,"y":10,"\u00fd":10,"\u00ff":10,"z":7,"\u017e":7,":":3,",":15,"\u2014":-3,"\u2013":-3,"-":-3,".":15,"\"":5,"\u201e":21,"\u201c":3,"\u201d":3,"\u2018":3,"\u2019":3,"\u201a":21,"'":5,";":3,"b":3,"\u00fe":3,"d":3,"e":3,"\u00e9":3,"\u00ea":3,"\u00eb":3,"\u00e8":3,"f":3,"\ufb01":3,"\ufb02":3,"\u00df":3,"h":3,"i":3,"\u0131":3,"\u00ed":3,"\u00ee":3,"\u00ef":3,"\u00ec":3,"k":3,"l":3,"\u0142":3,"n":3,"\u00f1":3,"p":3,"r":4}},{"d":"167,-285v82,0,145,59,145,143v0,84,-64,147,-150,147v-82,0,-147,-62,-147,-143v0,-86,66,-147,152,-147xm254,-140v0,-53,-38,-97,-89,-97v-54,0,-92,42,-92,97v0,54,37,97,90,97v53,0,91,-42,91,-97xm148,-299r-8,-11r59,-50r15,22","w":326,"k":{"a":15,"\u00e6":15,"\u00e1":15,"\u00e2":15,"\u00e4":15,"\u00e0":15,"\u00e5":15,"\u00e3":15,"c":-4,"\u00e7":-4,"g":-4,"j":10,"o":-4,"\u00f8":-4,"\u0153":-4,"\u00f3":-4,"\u00f4":-4,"\u00f6":-4,"\u00f2":-4,"\u00f5":-4,"q":-4,"t":4,"v":12,"x":17,"y":14,"\u00fd":14,"\u00ff":14,"z":9,"\u017e":9,",":13,"\u2014":-3,"\u2013":-3,"\u00ab":-2,"\u2039":-3,"-":-3,".":13,"?":3,"\"":14,"\u201e":19,"\u201c":5,"\u201d":5,"\u2018":5,"\u2019":5,"\u201a":19,"'":14,"A":15,"\u00c6":15,"\u00c1":15,"\u00c2":15,"\u00c4":15,"\u00c0":15,"\u00c5":15,"\u00c3":15,"C":-4,"\u00c7":-4,"G":-4,"J":10,"O":-4,"\u00d8":-4,"\u0152":-4,"\u00d3":-4,"\u00d4":-4,"\u00d6":-4,"\u00d2":-4,"\u00d5":-4,"Q":-4,"T":4,"V":12,"X":17,"Y":14,"\u00dd":14,"\u0178":14,"Z":9,"\u017d":9,"b":3,"\u00fe":3,"d":3,"e":3,"\u00e9":3,"\u00ea":3,"\u00eb":3,"\u00e8":3,"f":3,"\ufb01":3,"\ufb02":3,"\u00df":3,"h":3,"i":3,"\u0131":3,"\u00ed":3,"\u00ee":3,"\u00ef":3,"\u00ec":3,"k":3,"l":3,"\u0142":3,"n":3,"\u00f1":3,"p":3,"r":4,"B":3,"D":3,"\u00d0":3,"E":3,"\u00c9":3,"\u00ca":3,"\u00cb":3,"\u00c8":3,"F":3,"H":3,"I":3,"\u00cd":3,"\u00ce":3,"\u00cf":3,"\u00cc":3,"K":3,"L":3,"\u0141":3,"N":3,"\u00d1":3,"P":3,"\u00de":3,"R":4}},{"d":"37,-120r0,-48v0,-94,-1,-107,-15,-108r0,-5r163,0v-1,18,-2,35,-2,61r-5,0v-3,-25,-57,-15,-87,-17r0,72v22,-2,74,5,76,-8r5,0r0,62r-5,0v-1,-16,-54,-8,-76,-10r0,66v0,8,1,9,7,10v29,-3,79,10,85,-15r6,0v-1,26,-1,42,-1,60r-166,0r0,-5v15,-1,15,-14,15,-115","w":209},{"d":"111,-121v-22,0,-42,14,-42,41v0,22,18,40,42,40v23,0,41,-18,41,-41v0,-25,-19,-40,-41,-40xm155,-147v93,32,49,149,-46,149v-51,0,-93,-28,-93,-77v0,-36,24,-59,51,-69v-24,-9,-44,-31,-44,-62v0,-41,36,-78,91,-78v91,0,112,111,41,137xm111,-242v-23,0,-36,17,-36,38v0,24,17,37,36,37v18,0,36,-14,36,-38v0,-20,-14,-37,-36,-37","w":222,"k":{"9":3,"4":-2,".":6,",":6}},{"d":"147,5v-92,0,-117,-66,-117,-173v0,-94,-1,-107,-16,-108r0,-5r86,0r0,5v-15,1,-16,14,-16,108v0,65,3,122,63,122v56,0,61,-56,61,-122v0,-94,1,-107,-16,-108r0,-5r83,0r0,5v-14,1,-14,14,-14,108v0,107,-18,173,-114,173xm179,-299v-10,0,-18,-8,-18,-19v0,-9,8,-16,18,-16v10,0,19,8,19,17v0,10,-9,18,-19,18xm115,-299v-10,0,-19,-8,-19,-19v0,-9,9,-16,19,-16v10,0,18,8,18,17v0,10,-8,18,-18,18","w":290,"k":{"a":17,"\u00e6":17,"\u00e1":17,"\u00e2":17,"\u00e4":17,"\u00e0":17,"\u00e5":17,"\u00e3":17,"j":6,"v":-5,"w":-8,"y":-3,"\u00fd":-3,"\u00ff":-3,",":14,".":14,"\u201e":15,"\u201a":15,"A":17,"\u00c6":17,"\u00c1":17,"\u00c2":17,"\u00c4":17,"\u00c0":17,"\u00c5":17,"\u00c3":17,"J":6,"V":-5,"W":-8,"Y":-3,"\u00dd":-3,"\u0178":-3,")":-2}},{"d":"74,-279r-1,79v0,48,0,52,13,53r0,6v-17,-1,-43,-1,-60,0r0,-6v14,-1,14,-5,14,-53v0,-14,4,-42,-3,-49v-5,1,-17,4,-25,6r-4,-14v21,-5,39,-24,66,-22","w":108},{"d":"91,-168r0,48v0,101,0,112,17,115r0,5r-88,0r0,-5v17,-3,17,-14,17,-114r0,-49v0,-94,0,-105,-16,-107r0,-6r85,0r0,6v-15,2,-15,13,-15,107xm84,-308r-9,12r-66,-39r15,-23","w":127,"k":{"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3,"w":-3,"C":3,"\u00c7":3,"G":3,"O":3,"\u00d8":3,"\u0152":3,"\u00d3":3,"\u00d4":3,"\u00d6":3,"\u00d2":3,"\u00d5":3,"Q":3,"W":-3}},{"d":"244,-49r23,0r0,21r-22,0v0,14,0,21,9,23r0,5r-52,0r0,-5v10,-3,11,-11,11,-23r-69,0r0,-17v15,-20,48,-60,75,-93r25,0r0,89xm213,-49v-1,-2,3,-37,0,-47r-36,47r36,0xm25,-179v6,19,56,24,56,-2v0,-17,-21,-18,-41,-18r0,-23v16,0,37,-1,37,-18v0,-24,-42,-19,-48,-3r-4,0v0,-9,-1,-22,-1,-31v33,-12,84,-11,87,30v1,18,-16,27,-29,33v18,2,34,13,34,32v0,45,-62,49,-96,32v0,-8,1,-27,1,-32r4,0xm68,8r-21,0r177,-296r22,0","w":285},{"d":"90,0r17,0r-11,19v19,4,24,15,24,25v-1,28,-37,37,-61,29r3,-13v15,3,33,0,33,-15v0,-11,-12,-12,-22,-15","w":182},{"d":"167,-285v82,0,145,59,145,143v0,84,-64,147,-150,147v-82,0,-147,-62,-147,-143v0,-86,66,-147,152,-147xm254,-140v0,-53,-38,-97,-89,-97v-54,0,-92,42,-92,97v0,54,37,97,90,97v53,0,91,-42,91,-97xm198,-299v-10,0,-19,-8,-19,-19v0,-9,9,-16,19,-16v10,0,19,8,19,17v0,10,-9,18,-19,18xm133,-299v-10,0,-18,-8,-18,-19v0,-9,8,-16,18,-16v11,0,19,8,19,17v0,10,-8,18,-19,18","w":326,"k":{"a":15,"\u00e6":15,"\u00e1":15,"\u00e2":15,"\u00e4":15,"\u00e0":15,"\u00e5":15,"\u00e3":15,"c":-4,"\u00e7":-4,"g":-4,"j":10,"o":-4,"\u00f8":-4,"\u0153":-4,"\u00f3":-4,"\u00f4":-4,"\u00f6":-4,"\u00f2":-4,"\u00f5":-4,"q":-4,"t":4,"v":12,"x":17,"y":14,"\u00fd":14,"\u00ff":14,"z":9,"\u017e":9,",":13,"\u2014":-3,"\u2013":-3,"\u00ab":-2,"\u2039":-3,"-":-3,".":13,"?":3,"\"":14,"\u201e":19,"\u201c":5,"\u201d":5,"\u2018":5,"\u2019":5,"\u201a":19,"'":14,"A":15,"\u00c6":15,"\u00c1":15,"\u00c2":15,"\u00c4":15,"\u00c0":15,"\u00c5":15,"\u00c3":15,"C":-4,"\u00c7":-4,"G":-4,"J":10,"O":-4,"\u00d8":-4,"\u0152":-4,"\u00d3":-4,"\u00d4":-4,"\u00d6":-4,"\u00d2":-4,"\u00d5":-4,"Q":-4,"T":4,"V":12,"X":17,"Y":14,"\u00dd":14,"\u0178":14,"Z":9,"\u017d":9,"b":3,"\u00fe":3,"d":3,"e":3,"\u00e9":3,"\u00ea":3,"\u00eb":3,"\u00e8":3,"f":3,"\ufb01":3,"\ufb02":3,"\u00df":3,"h":3,"i":3,"\u0131":3,"\u00ed":3,"\u00ee":3,"\u00ef":3,"\u00ec":3,"k":3,"l":3,"\u0142":3,"n":3,"\u00f1":3,"p":3,"r":4,"B":3,"D":3,"\u00d0":3,"E":3,"\u00c9":3,"\u00ca":3,"\u00cb":3,"\u00c8":3,"F":3,"H":3,"I":3,"\u00cd":3,"\u00ce":3,"\u00cf":3,"\u00cc":3,"K":3,"L":3,"\u0141":3,"N":3,"\u00d1":3,"P":3,"\u00de":3,"R":4}},{"d":"37,-120r0,-48v0,-94,-1,-107,-15,-108r0,-5r163,0v-1,18,-2,35,-2,61r-5,0v-3,-25,-57,-15,-87,-17r0,72v22,-2,74,5,76,-8r5,0r0,62r-5,0v-1,-16,-54,-8,-76,-10r0,66v0,8,1,9,7,10v29,-3,79,10,85,-15r6,0v-1,26,-1,42,-1,60r-166,0r0,-5v15,-1,15,-14,15,-115xm139,-299v-10,0,-18,-8,-18,-19v0,-9,8,-16,18,-16v11,0,19,8,19,17v0,10,-8,18,-19,18xm75,-299v-10,0,-19,-8,-19,-19v0,-9,9,-16,19,-16v10,0,18,8,18,17v0,10,-8,18,-18,18","w":209},{"d":"21,-179v6,18,56,24,56,-2v0,-17,-21,-18,-41,-18r0,-23v16,0,37,-1,37,-18v0,-24,-42,-19,-48,-3r-4,0v0,-9,0,-22,-1,-31v33,-12,83,-11,87,30v1,18,-16,27,-29,33v17,2,34,13,34,32v-2,45,-62,49,-96,32v0,-8,1,-27,1,-32r4,0","w":131},{"d":"79,-279r0,79v0,48,-1,52,12,53r0,6v-17,-1,-42,-1,-59,0r0,-6v14,-1,13,-5,13,-53v0,-14,4,-42,-3,-49r-25,6r-4,-14v21,-5,39,-24,66,-22xm55,8r-22,0r178,-296r21,0xm257,-99v0,32,-29,58,-49,73v16,-2,45,5,49,-7r5,0r0,33r-103,0r0,-18v20,-18,60,-39,63,-74v3,-28,-47,-25,-54,-6r-4,0v0,-5,-1,-24,-1,-33v33,-18,94,-6,94,32","w":285},{"d":"37,-120r0,-48v0,-94,-1,-107,-15,-108r0,-5r163,0v-1,18,-2,35,-2,61r-5,0v-3,-25,-57,-15,-87,-17r0,72v22,-2,74,5,76,-8r5,0r0,62r-5,0v-1,-16,-54,-8,-76,-10r0,66v0,8,1,9,7,10v29,-3,79,10,85,-15r6,0v-1,26,-1,42,-1,60r-166,0r0,-5v15,-1,15,-14,15,-115xm89,-297r-8,-12r59,-50r15,23","w":209},{"d":"235,-49r23,0r0,21r-22,0v-3,17,6,17,9,28r-51,0r0,-5v10,-3,10,-10,10,-23r-68,0r0,-17v15,-20,47,-60,74,-93r26,0v0,29,-1,89,-1,89xm204,-49v-1,-2,2,-37,0,-47r-36,47r36,0xm82,-279v3,38,-11,120,12,132r0,6v-17,-1,-43,-1,-60,0r0,-6v21,-2,12,-62,14,-93v1,-21,-19,0,-28,-3r-5,-14v21,-5,40,-24,67,-22xm57,8r-21,0r177,-296r22,0","w":285},{"d":"19,44v7,-9,27,-33,16,-42v-26,-6,-19,-51,9,-51v32,0,30,56,11,73v-11,10,-25,36,-36,20","w":86,"k":{" ":8,"a":-9,"\u00e6":-9,"\u00e1":-9,"\u00e2":-9,"\u00e4":-9,"\u00e0":-9,"\u00e5":-9,"\u00e3":-9,"c":21,"\u00e7":21,"g":20,"j":-11,"m":-6,"o":19,"\u00f8":19,"\u0153":19,"\u00f3":19,"\u00f4":19,"\u00f6":19,"\u00f2":19,"\u00f5":19,"q":21,"t":30,"u":15,"\u00fa":15,"\u00fb":15,"\u00fc":15,"\u00f9":15,"v":53,"w":32,"x":-10,"y":38,"\u00fd":38,"\u00ff":38,"z":-6,"\u017e":-6,"A":-9,"\u00c6":-9,"\u00c1":-9,"\u00c2":-9,"\u00c4":-9,"\u00c0":-9,"\u00c5":-9,"\u00c3":-9,"C":21,"\u00c7":21,"G":20,"J":-11,"M":-6,"O":19,"\u00d8":19,"\u0152":19,"\u00d3":19,"\u00d4":19,"\u00d6":19,"\u00d2":19,"\u00d5":19,"Q":21,"T":30,"U":15,"\u00da":15,"\u00db":15,"\u00dc":15,"\u00d9":15,"V":53,"W":32,"X":-10,"Y":38,"\u00dd":38,"\u0178":38,"Z":-6,"\u017d":-6}},{"d":"113,18r0,17r-79,0r0,-341r79,0r0,17v-12,2,-37,-6,-37,6r-1,293v1,14,25,6,38,8","w":119,"k":{"t":-5,"v":-7,"w":-8,"x":-7,"y":-8,"\u00fd":-8,"\u00ff":-8,"z":-5,"\u017e":-5,"T":-5,"V":-7,"W":-8,"X":-7,"Y":-8,"\u00dd":-8,"\u0178":-8,"Z":-5,"\u017d":-5}},{"d":"359,0r-191,3v-85,0,-153,-50,-153,-143v1,-113,96,-141,216,-141r125,0v-1,17,-1,41,-1,61r-5,0v-1,-25,-55,-15,-84,-17r0,72v21,-1,72,3,72,-8r5,0r0,62v-8,-9,-45,-12,-77,-10r0,68v0,7,1,8,8,8v28,-2,77,8,81,-15r5,0v-1,30,-1,46,-1,60xm212,-234v-76,-14,-140,20,-138,95v1,78,66,110,138,91r0,-186","w":381},{"d":"185,-46r-35,0r0,-70r-137,0r0,-33r172,0r0,103","w":198},{"d":"91,-168r0,48v0,101,0,112,17,115r0,5r-88,0r0,-5v17,-3,17,-14,17,-114r0,-49v0,-94,0,-105,-16,-107r0,-6r85,0r0,6v-15,2,-15,13,-15,107xm113,-305r-10,11r-40,-28r-42,27r-9,-11r52,-49","w":127,"k":{"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3,"w":-3,"C":3,"\u00c7":3,"G":3,"O":3,"\u00d8":3,"\u0152":3,"\u00d3":3,"\u00d4":3,"\u00d6":3,"\u00d2":3,"\u00d5":3,"Q":3,"W":-3}},{"d":"135,-325r0,20r-87,0r0,-20r87,0","w":182},{"d":"349,-154r0,37r-339,0v1,-11,1,-26,0,-37r339,0","w":359,"k":{"a":7,"\u00e6":7,"\u00e1":7,"\u00e2":7,"\u00e4":7,"\u00e0":7,"\u00e5":7,"\u00e3":7,"c":-4,"\u00e7":-4,"g":-3,"j":24,"o":-3,"\u00f8":-3,"\u0153":-3,"\u00f3":-3,"\u00f4":-3,"\u00f6":-3,"\u00f2":-3,"\u00f5":-3,"q":-3,"t":12,"v":14,"w":3,"x":11,"y":10,"\u00fd":10,"\u00ff":10,"z":3,"\u017e":3,"A":7,"\u00c6":7,"\u00c1":7,"\u00c2":7,"\u00c4":7,"\u00c0":7,"\u00c5":7,"\u00c3":7,"C":-4,"\u00c7":-4,"G":-3,"J":24,"O":-3,"\u00d8":-3,"\u0152":-3,"\u00d3":-3,"\u00d4":-3,"\u00d6":-3,"\u00d2":-3,"\u00d5":-3,"Q":-3,"T":12,"V":14,"W":3,"X":11,"Y":10,"\u00dd":10,"\u0178":10,"Z":3,"\u017d":3}},{"d":"107,-62v57,47,147,1,147,-78v0,-23,-6,-43,-17,-60xm219,-218v-56,-46,-146,0,-146,79v0,23,6,43,17,59xm15,-139v0,-119,147,-188,240,-117v6,-7,16,-17,23,-25r36,0r-40,42v23,23,38,57,38,97v0,120,-148,188,-240,118v-7,7,-16,16,-23,24r-36,0r40,-42v-23,-23,-38,-58,-38,-97","w":326,"k":{"a":15,"\u00e6":15,"\u00e1":15,"\u00e2":15,"\u00e4":15,"\u00e0":15,"\u00e5":15,"\u00e3":15,"c":-4,"\u00e7":-4,"g":-4,"j":10,"o":-4,"\u00f8":-4,"\u0153":-4,"\u00f3":-4,"\u00f4":-4,"\u00f6":-4,"\u00f2":-4,"\u00f5":-4,"q":-4,"t":4,"v":12,"x":17,"y":14,"\u00fd":14,"\u00ff":14,"z":9,"\u017e":9,",":13,"\u2014":-3,"\u2013":-3,"\u00ab":-2,"\u2039":-3,"-":-3,".":13,"?":3,"\"":14,"\u201e":19,"\u201c":5,"\u201d":5,"\u2018":5,"\u2019":5,"\u201a":19,"'":14,"b":3,"\u00fe":3,"d":3,"e":3,"\u00e9":3,"\u00ea":3,"\u00eb":3,"\u00e8":3,"f":3,"\ufb01":3,"\ufb02":3,"\u00df":3,"h":3,"i":3,"\u0131":3,"\u00ed":3,"\u00ee":3,"\u00ef":3,"\u00ec":3,"k":3,"l":3,"\u0142":3,"n":3,"\u00f1":3,"p":3,"r":4}},{"d":"140,-305r-9,11r-41,-28r-41,27r-10,-11r52,-49","w":182},{"d":"17,-139v0,-24,19,-43,45,-43v23,0,42,19,42,41v0,25,-20,44,-44,44v-24,0,-43,-19,-43,-42","w":120},{"d":"23,-69r-11,-9v12,-23,26,-45,37,-62v-10,-18,-24,-41,-37,-66r11,-9r71,74v-21,20,-48,46,-71,72xm95,-69r-12,-9v12,-23,26,-45,37,-62v-10,-18,-24,-41,-37,-66r12,-9v24,26,49,53,70,74v-21,20,-47,46,-70,72","w":176,"k":{" ":8,"a":15,"\u00e6":15,"\u00e1":15,"\u00e2":15,"\u00e4":15,"\u00e0":15,"\u00e5":15,"\u00e3":15,"c":-3,"\u00e7":-3,"g":-3,"j":26,"m":2,"o":-2,"\u00f8":-2,"\u0153":-2,"\u00f3":-2,"\u00f4":-2,"\u00f6":-2,"\u00f2":-2,"\u00f5":-2,"q":-3,"t":8,"v":7,"w":3,"x":9,"y":10,"\u00fd":10,"\u00ff":10,"z":5,"\u017e":5,"A":15,"\u00c6":15,"\u00c1":15,"\u00c2":15,"\u00c4":15,"\u00c0":15,"\u00c5":15,"\u00c3":15,"C":-3,"\u00c7":-3,"G":-3,"J":26,"M":2,"O":-2,"\u00d8":-2,"\u0152":-2,"\u00d3":-2,"\u00d4":-2,"\u00d6":-2,"\u00d2":-2,"\u00d5":-2,"Q":-3,"T":8,"V":7,"W":3,"X":9,"Y":10,"\u00dd":10,"\u0178":10,"Z":5,"\u017d":5,"b":3,"\u00fe":3,"p":3,"B":3,"P":3,"\u00de":3}},{"d":"135,-232r30,16r-20,39r40,0r0,34r-58,0r-16,32r74,0r0,34r-92,0r-26,50r-30,-15r18,-35r-42,0r0,-34r60,0r16,-32r-76,0r0,-34r94,0","w":198},{"d":"74,-197v7,43,82,58,82,113v0,36,-25,65,-69,71r-3,41v-9,-1,-23,2,-30,-1v1,-5,4,-31,5,-39v-16,-1,-30,-4,-42,-9v1,-13,2,-41,2,-56r5,0v9,33,79,35,79,-5v0,-49,-81,-52,-81,-112v0,-39,28,-66,65,-72r4,-41v9,1,22,-2,29,1v0,5,-4,31,-5,39v11,1,24,3,34,6v-1,15,-2,41,-2,55r-6,0v-6,-32,-73,-24,-67,9","w":173,"k":{"7":3}},{"d":"69,-137v0,71,24,124,52,169r-28,0v-38,-38,-68,-96,-67,-169v0,-69,30,-133,68,-169r28,0v-29,44,-53,100,-53,169","w":127,"k":{"t":-4,"u":-2,"\u00fa":-2,"\u00fb":-2,"\u00fc":-2,"\u00f9":-2,"v":-9,"w":-6,"x":-7,"y":-7,"\u00fd":-7,"\u00ff":-7,"z":-2,"\u017e":-2,"T":-4,"U":-2,"\u00da":-2,"\u00db":-2,"\u00dc":-2,"\u00d9":-2,"V":-9,"W":-6,"X":-7,"Y":-7,"\u00dd":-7,"\u0178":-7,"Z":-2,"\u017d":-2}},{"d":"173,-57r-88,0v-15,38,-20,51,-6,52r0,5r-82,0r0,-5v11,-1,18,-13,61,-115r70,-165r9,0r69,165v42,101,48,114,59,115r0,5r-86,0r0,-5v14,-1,9,-14,-6,-52xm100,-100v16,2,42,2,58,0v-21,-55,-25,-69,-28,-78v-3,9,-9,23,-30,78xm132,-294v-17,0,-30,-11,-30,-28v0,-16,15,-28,32,-28v15,0,30,11,30,27v0,17,-14,29,-32,29xm147,-322v0,-8,-6,-15,-14,-15v-9,0,-14,7,-14,15v0,8,6,15,14,15v9,0,14,-7,14,-15","k":{"a":-8,"\u00e6":-8,"\u00e1":-8,"\u00e2":-8,"\u00e4":-8,"\u00e0":-8,"\u00e5":-8,"\u00e3":-8,"c":12,"\u00e7":12,"g":12,"j":-10,"m":-10,"o":12,"\u00f8":12,"\u0153":12,"\u00f3":12,"\u00f4":12,"\u00f6":12,"\u00f2":12,"\u00f5":12,"q":12,"s":-2,"\u0161":-2,"t":27,"u":17,"\u00fa":17,"\u00fb":17,"\u00fc":17,"\u00f9":17,"v":44,"w":26,"x":-4,"y":32,"\u00fd":32,"\u00ff":32,"z":-8,"\u017e":-8,":":-7,",":-8,"\u2014":8,"\u2013":8,"\u00ab":14,"\u2039":16,"-":8,".":-8,"?":4,"\"":42,"\u201e":-6,"\u201c":40,"\u201d":33,"\u2018":40,"\u2019":33,"\u201a":-6,"'":42,";":-7," ":8,"A":-8,"\u00c6":-8,"\u00c1":-8,"\u00c2":-8,"\u00c4":-8,"\u00c0":-8,"\u00c5":-8,"\u00c3":-8,"C":12,"\u00c7":12,"G":12,"J":-10,"M":-10,"O":12,"\u00d8":12,"\u0152":12,"\u00d3":12,"\u00d4":12,"\u00d6":12,"\u00d2":12,"\u00d5":12,"Q":12,"S":-2,"\u0160":-2,"T":27,"U":17,"\u00da":17,"\u00db":17,"\u00dc":17,"\u00d9":17,"V":44,"W":26,"X":-4,"Y":32,"\u00dd":32,"\u0178":32,"Z":-8,"\u017d":-8}},{"d":"15,-220v0,-32,24,-52,55,-52v30,0,54,21,54,52v0,32,-25,51,-55,51v-30,0,-54,-19,-54,-51xm98,-219v0,-18,-9,-33,-30,-33v-16,0,-28,13,-28,32v0,18,12,32,29,32v17,0,29,-13,29,-31","w":140},{"d":"117,-123r0,72r-35,0r0,-72r-69,0r0,-34r69,0r0,-64r35,0r0,64r68,0r0,34r-68,0xm185,-42r0,34r-172,0r0,-34r172,0","w":198},{"d":"173,-57r-88,0v-15,38,-20,51,-6,52r0,5r-82,0r0,-5v11,-1,18,-13,61,-115r70,-165r9,0r69,165v42,101,48,114,59,115r0,5r-86,0r0,-5v14,-1,9,-14,-6,-52xm100,-100v16,2,42,2,58,0v-21,-55,-25,-69,-28,-78v-3,9,-9,23,-30,78xm155,-296v-24,1,-49,-41,-62,-2r-14,-3v4,-18,17,-37,35,-37v21,0,48,40,61,3r14,2v-5,20,-17,37,-34,37","k":{"a":-8,"\u00e6":-8,"\u00e1":-8,"\u00e2":-8,"\u00e4":-8,"\u00e0":-8,"\u00e5":-8,"\u00e3":-8,"c":12,"\u00e7":12,"g":12,"j":-10,"m":-10,"o":12,"\u00f8":12,"\u0153":12,"\u00f3":12,"\u00f4":12,"\u00f6":12,"\u00f2":12,"\u00f5":12,"q":12,"s":-2,"\u0161":-2,"t":27,"u":17,"\u00fa":17,"\u00fb":17,"\u00fc":17,"\u00f9":17,"v":44,"w":26,"x":-4,"y":32,"\u00fd":32,"\u00ff":32,"z":-8,"\u017e":-8,":":-7,",":-8,"\u2014":8,"\u2013":8,"\u00ab":14,"\u2039":16,"-":8,".":-8,"?":4,"\"":42,"\u201e":-6,"\u201c":40,"\u201d":33,"\u2018":40,"\u2019":33,"\u201a":-6,"'":42,";":-7," ":8,"A":-8,"\u00c6":-8,"\u00c1":-8,"\u00c2":-8,"\u00c4":-8,"\u00c0":-8,"\u00c5":-8,"\u00c3":-8,"C":12,"\u00c7":12,"G":12,"J":-10,"M":-10,"O":12,"\u00d8":12,"\u0152":12,"\u00d3":12,"\u00d4":12,"\u00d6":12,"\u00d2":12,"\u00d5":12,"Q":12,"S":-2,"\u0160":-2,"T":27,"U":17,"\u00da":17,"\u00db":17,"\u00dc":17,"\u00d9":17,"V":44,"W":26,"X":-4,"Y":32,"\u00dd":32,"\u0178":32,"Z":-8,"\u017d":-8}},{"d":"147,5v-92,0,-117,-66,-117,-173v0,-94,-1,-107,-16,-108r0,-5r86,0r0,5v-15,1,-16,14,-16,108v0,65,3,122,63,122v56,0,61,-56,61,-122v0,-94,1,-107,-16,-108r0,-5r83,0r0,5v-14,1,-14,14,-14,108v0,107,-18,173,-114,173xm166,-305r-9,12r-66,-39r15,-22","w":290,"k":{"a":17,"\u00e6":17,"\u00e1":17,"\u00e2":17,"\u00e4":17,"\u00e0":17,"\u00e5":17,"\u00e3":17,"j":6,"v":-5,"w":-8,"y":-3,"\u00fd":-3,"\u00ff":-3,",":14,".":14,"\u201e":15,"\u201a":15,"A":17,"\u00c6":17,"\u00c1":17,"\u00c2":17,"\u00c4":17,"\u00c0":17,"\u00c5":17,"\u00c3":17,"J":6,"V":-5,"W":-8,"Y":-3,"\u00dd":-3,"\u0178":-3,")":-2}},{"d":"167,-285v82,0,145,59,145,143v0,84,-64,147,-150,147v-82,0,-147,-62,-147,-143v0,-86,66,-147,152,-147xm254,-140v0,-53,-38,-97,-89,-97v-54,0,-92,42,-92,97v0,54,37,97,90,97v53,0,91,-42,91,-97xm186,-310r-8,12r-67,-39r15,-23","w":326,"k":{"a":15,"\u00e6":15,"\u00e1":15,"\u00e2":15,"\u00e4":15,"\u00e0":15,"\u00e5":15,"\u00e3":15,"c":-4,"\u00e7":-4,"g":-4,"j":10,"o":-4,"\u00f8":-4,"\u0153":-4,"\u00f3":-4,"\u00f4":-4,"\u00f6":-4,"\u00f2":-4,"\u00f5":-4,"q":-4,"t":4,"v":12,"x":17,"y":14,"\u00fd":14,"\u00ff":14,"z":9,"\u017e":9,",":13,"\u2014":-3,"\u2013":-3,"\u00ab":-2,"\u2039":-3,"-":-3,".":13,"?":3,"\"":14,"\u201e":19,"\u201c":5,"\u201d":5,"\u2018":5,"\u2019":5,"\u201a":19,"'":14,"A":15,"\u00c6":15,"\u00c1":15,"\u00c2":15,"\u00c4":15,"\u00c0":15,"\u00c5":15,"\u00c3":15,"C":-4,"\u00c7":-4,"G":-4,"J":10,"O":-4,"\u00d8":-4,"\u0152":-4,"\u00d3":-4,"\u00d4":-4,"\u00d6":-4,"\u00d2":-4,"\u00d5":-4,"Q":-4,"T":4,"V":12,"X":17,"Y":14,"\u00dd":14,"\u0178":14,"Z":9,"\u017d":9,"b":3,"\u00fe":3,"d":3,"e":3,"\u00e9":3,"\u00ea":3,"\u00eb":3,"\u00e8":3,"f":3,"\ufb01":3,"\ufb02":3,"\u00df":3,"h":3,"i":3,"\u0131":3,"\u00ed":3,"\u00ee":3,"\u00ef":3,"\u00ec":3,"k":3,"l":3,"\u0142":3,"n":3,"\u00f1":3,"p":3,"r":4,"B":3,"D":3,"\u00d0":3,"E":3,"\u00c9":3,"\u00ca":3,"\u00cb":3,"\u00c8":3,"F":3,"H":3,"I":3,"\u00cd":3,"\u00ce":3,"\u00cf":3,"\u00cc":3,"K":3,"L":3,"\u0141":3,"N":3,"\u00d1":3,"P":3,"\u00de":3,"R":4}},{"d":"55,48v2,-23,22,-52,57,-48v-19,9,-33,27,-33,42v0,18,19,19,34,15r-3,14v-21,5,-57,1,-55,-23","w":182},{"d":"123,-299v-10,0,-19,-8,-19,-19v0,-9,9,-16,19,-16v10,0,18,8,18,17v0,10,-8,18,-18,18xm58,-299v-10,0,-18,-8,-18,-19v0,-9,8,-16,18,-16v10,0,18,8,18,17v0,10,-8,18,-18,18","w":182},{"d":"117,-111r0,75r-35,0r0,-75r-69,0r0,-33r69,0r0,-68r35,0r0,68r68,0r0,33r-68,0","w":198},{"d":"173,-57r-88,0v-15,38,-20,51,-6,52r0,5r-82,0r0,-5v11,-1,18,-13,61,-115r70,-165r9,0r69,165v42,101,48,114,59,115r0,5r-86,0r0,-5v14,-1,9,-14,-6,-52xm100,-100v16,2,42,2,58,0v-21,-55,-25,-69,-28,-78v-3,9,-9,23,-30,78xm151,-308r-8,11r-67,-39r15,-22","k":{"a":-8,"\u00e6":-8,"\u00e1":-8,"\u00e2":-8,"\u00e4":-8,"\u00e0":-8,"\u00e5":-8,"\u00e3":-8,"c":12,"\u00e7":12,"g":12,"j":-10,"m":-10,"o":12,"\u00f8":12,"\u0153":12,"\u00f3":12,"\u00f4":12,"\u00f6":12,"\u00f2":12,"\u00f5":12,"q":12,"s":-2,"\u0161":-2,"t":27,"u":17,"\u00fa":17,"\u00fb":17,"\u00fc":17,"\u00f9":17,"v":44,"w":26,"x":-4,"y":32,"\u00fd":32,"\u00ff":32,"z":-8,"\u017e":-8,":":-7,",":-8,"\u2014":8,"\u2013":8,"\u00ab":14,"\u2039":16,"-":8,".":-8,"?":4,"\"":42,"\u201e":-6,"\u201c":40,"\u201d":33,"\u2018":40,"\u2019":33,"\u201a":-6,"'":42,";":-7," ":8,"A":-8,"\u00c6":-8,"\u00c1":-8,"\u00c2":-8,"\u00c4":-8,"\u00c0":-8,"\u00c5":-8,"\u00c3":-8,"C":12,"\u00c7":12,"G":12,"J":-10,"M":-10,"O":12,"\u00d8":12,"\u0152":12,"\u00d3":12,"\u00d4":12,"\u00d6":12,"\u00d2":12,"\u00d5":12,"Q":12,"S":-2,"\u0160":-2,"T":27,"U":17,"\u00da":17,"\u00db":17,"\u00dc":17,"\u00d9":17,"V":44,"W":26,"X":-4,"Y":32,"\u00dd":32,"\u0178":32,"Z":-8,"\u017d":-8}},{"d":"14,-94v0,-82,61,-134,102,-187r61,0v-33,37,-63,70,-86,110v57,-30,128,13,125,77v-3,59,-46,98,-102,98v-59,0,-100,-40,-100,-98xm121,-141v-33,-5,-54,19,-54,47v0,33,22,52,49,52v24,0,47,-21,47,-52v0,-24,-16,-44,-42,-47","w":230,"k":{"9":12,"7":6,"4":-4,"2":3,"1":8,".":12,",":12}},{"d":"48,-267v1,14,-3,64,5,61v-2,7,-17,1,-28,3v5,0,6,-40,5,-64v-9,1,-20,-3,-21,6r-3,0r0,-20r65,0r0,20v-6,-3,-9,-8,-23,-6xm94,-241v-4,9,-5,34,-1,38r-25,0v5,-3,11,-55,14,-79r4,0r31,51v3,-6,7,-15,30,-51r3,0v3,20,9,71,15,79r-25,0v5,-5,0,-23,-1,-37v-9,11,-13,27,-24,36v-9,-15,-15,-23,-21,-37","w":173},{"d":"225,-301r-73,353r-20,0r-71,-155v-9,-18,-12,-19,-41,-7r-6,-14r70,-34r59,141r59,-286","w":233},{"d":"81,-215r12,10v-13,22,-27,44,-38,61v10,18,25,42,38,66r-12,9v-23,-26,-50,-53,-71,-73v21,-21,48,-47,71,-73xm152,-215r12,10v-13,22,-26,44,-37,61r37,66r-12,9v-23,-26,-50,-53,-71,-73v21,-21,48,-47,71,-73","w":176,"k":{" ":6,"t":2,"v":5,"x":3,"y":5,"\u00fd":5,"\u00ff":5,"T":2,"V":5,"X":3,"Y":5,"\u00dd":5,"\u0178":5,"r":3,"R":3}},{"d":"91,-237r0,80v22,-1,73,5,75,-9r5,0r0,63r-5,0v-2,-16,-53,-8,-75,-10r0,25v0,69,0,81,15,83r0,5r-84,0r0,-6v15,-2,15,-13,15,-114r0,-48v0,-94,-1,-105,-15,-107r0,-6r163,0v-1,18,-2,35,-2,61r-6,0v-2,-25,-56,-15,-86,-17xm302,-45v31,-3,77,9,85,-16r5,0v-1,26,-1,41,-1,61r-165,0r0,-6v15,-2,15,-13,15,-114r0,-48v0,-94,0,-105,-16,-107r0,-6r85,0r0,6v-15,2,-15,13,-15,107r0,117v0,5,2,6,7,6","w":410,"k":{"a":-5,"\u00e6":-5,"\u00e1":-5,"\u00e2":-5,"\u00e4":-5,"\u00e0":-5,"\u00e5":-5,"\u00e3":-5,"c":7,"\u00e7":7,"g":9,"m":-5,"o":9,"\u00f8":9,"\u0153":9,"\u00f3":9,"\u00f4":9,"\u00f6":9,"\u00f2":9,"\u00f5":9,"q":9,"t":21,"u":8,"\u00fa":8,"\u00fb":8,"\u00fc":8,"\u00f9":8,"v":25,"w":9,"y":21,"\u00fd":21,"\u00ff":21,":":-3,",":-3,"\u2014":15,"\u2013":15,"\u00ab":22,"\u2039":24,"-":15,".":-3,"?":2,"\"":31,"\u201c":37,"\u201d":36,"\u2018":37,"\u2019":36,"'":31,";":-3," ":8}},{"d":"159,-41v-4,49,-87,62,-101,14v-2,17,-3,60,-8,74r-35,0v13,-62,12,-142,12,-218r42,0v3,56,-13,135,39,135v51,0,38,-76,40,-135r41,0v0,66,-1,128,15,171r-36,0v-7,-10,-4,-28,-9,-41","w":221},{"d":"123,-166v4,-15,71,-113,44,-110r0,-5r81,0r0,6v-10,1,-17,11,-73,114v-11,20,-27,31,-26,61v0,81,0,93,17,95r0,5r-88,0r0,-5v17,-2,17,-14,17,-94v0,-29,-16,-42,-27,-62v-53,-103,-61,-113,-74,-115r0,-5r89,0r0,5v-16,2,-9,15,13,57v10,20,21,40,27,53xm118,-293r-8,-12r60,-50r15,23","w":244,"k":{"a":36,"\u00e6":36,"\u00e1":36,"\u00e2":36,"\u00e4":36,"\u00e0":36,"\u00e5":36,"\u00e3":36,"c":19,"\u00e7":19,"g":19,"j":28,"m":14,"o":19,"\u00f8":19,"\u0153":19,"\u00f3":19,"\u00f4":19,"\u00f6":19,"\u00f2":19,"\u00f5":19,"q":20,"s":3,"\u0161":3,"t":-11,"u":-2,"\u00fa":-2,"\u00fb":-2,"\u00fc":-2,"\u00f9":-2,"v":-18,"w":-20,"x":-13,"y":-19,"\u00fd":-19,"\u00ff":-19,":":23,",":32,"\u2014":10,"\u2013":10,"\u00ab":10,"\u2039":10,"-":10,".":32,"?":-7,"\"":-7,"\u201e":38,"\u201c":-3,"\u201d":-8,"\u2018":-3,"\u2019":-8,"\u201a":38,"'":-7,";":23," ":8,"A":36,"\u00c6":36,"\u00c1":36,"\u00c2":36,"\u00c4":36,"\u00c0":36,"\u00c5":36,"\u00c3":36,"C":19,"\u00c7":19,"G":19,"J":28,"M":14,"O":19,"\u00d8":19,"\u0152":19,"\u00d3":19,"\u00d4":19,"\u00d6":19,"\u00d2":19,"\u00d5":19,"Q":20,"S":3,"\u0160":3,"T":-11,"U":-2,"\u00da":-2,"\u00db":-2,"\u00dc":-2,"\u00d9":-2,"V":-18,"W":-20,"X":-13,"Y":-19,"\u00dd":-19,"\u0178":-19,"n":4,"\u00f1":4,"N":4,"\u00d1":4,"}":-7,"]":-8,"\u00bb":6,"\u203a":6,")":-7}},{"d":"147,-214v-5,-34,-76,-29,-72,8v3,32,25,41,50,58v66,46,48,156,-52,152v-22,0,-45,-4,-58,-10v1,-18,2,-36,3,-64r5,0v5,39,88,38,86,-5v-1,-27,-31,-43,-51,-57v-66,-47,-45,-152,52,-151v15,0,34,3,44,7v-1,21,-2,38,-2,62r-5,0xm49,-345r10,-10r41,27r41,-27r9,11r-52,49","w":183,"k":{"a":5,"\u00e6":5,"\u00e1":5,"\u00e2":5,"\u00e4":5,"\u00e0":5,"\u00e5":5,"\u00e3":5,"j":4,"v":3,",":4,".":4,"\u201e":6,"\u201c":4,"\u201d":6,"\u2018":4,"\u2019":6,"\u201a":6}},{"d":"173,-57r-88,0v-15,38,-20,51,-6,52r0,5r-82,0r0,-5v11,-1,18,-13,61,-115r70,-165r9,0r69,165v42,101,48,114,59,115r0,5r-86,0r0,-5v14,-1,9,-14,-6,-52xm100,-100v16,2,42,2,58,0v-21,-55,-25,-69,-28,-78v-3,9,-9,23,-30,78xm155,-296v-24,1,-49,-41,-62,-2r-14,-3v4,-18,17,-37,35,-37v21,0,48,40,61,3r14,2v-5,20,-17,37,-34,37"},{"d":"266,-168r0,172r-9,0r-123,-123v-17,-15,-30,-33,-52,-54v0,14,1,25,1,56v0,98,1,111,16,112r0,5r-81,0r0,-5v16,-1,16,-14,16,-115r0,-163r8,0r125,125v18,16,29,34,50,54r0,-66v0,-91,0,-105,-16,-106r0,-5r79,0r0,5v-14,1,-14,14,-14,108xm173,-294v-23,1,-48,-40,-62,-3r-14,-2v4,-18,16,-37,35,-37v22,0,48,40,61,3r14,2v-5,20,-17,37,-34,37","w":299,"k":{"a":4,"\u00e6":4,"\u00e1":4,"\u00e2":4,"\u00e4":4,"\u00e0":4,"\u00e5":4,"\u00e3":4,"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3,"w":-3,",":5,".":5,"\u201e":5,"\u201a":5,"A":4,"\u00c6":4,"\u00c1":4,"\u00c2":4,"\u00c4":4,"\u00c0":4,"\u00c5":4,"\u00c3":4,"C":3,"\u00c7":3,"G":3,"O":3,"\u00d8":3,"\u0152":3,"\u00d3":3,"\u00d4":3,"\u00d6":3,"\u00d2":3,"\u00d5":3,"Q":3,"W":-3}},{"d":"123,-166v4,-15,71,-113,44,-110r0,-5r81,0r0,6v-10,1,-17,11,-73,114v-11,20,-27,31,-26,61v0,81,0,93,17,95r0,5r-88,0r0,-5v17,-2,17,-14,17,-94v0,-29,-16,-42,-27,-62v-53,-103,-61,-113,-74,-115r0,-5r89,0r0,5v-16,2,-9,15,13,57v10,20,21,40,27,53xm157,-299v-10,0,-18,-8,-18,-19v0,-9,8,-16,18,-16v10,0,19,8,19,17v0,10,-9,18,-19,18xm93,-299v-10,0,-19,-8,-19,-19v0,-9,9,-16,19,-16v11,0,18,8,18,17v0,10,-7,18,-18,18","w":244,"k":{"a":36,"\u00e6":36,"\u00e1":36,"\u00e2":36,"\u00e4":36,"\u00e0":36,"\u00e5":36,"\u00e3":36,"c":19,"\u00e7":19,"g":19,"j":28,"m":14,"o":19,"\u00f8":19,"\u0153":19,"\u00f3":19,"\u00f4":19,"\u00f6":19,"\u00f2":19,"\u00f5":19,"q":20,"s":3,"\u0161":3,"t":-11,"u":-2,"\u00fa":-2,"\u00fb":-2,"\u00fc":-2,"\u00f9":-2,"v":-18,"w":-20,"x":-13,"y":-19,"\u00fd":-19,"\u00ff":-19,":":23,",":32,"\u2014":10,"\u2013":10,"\u00ab":10,"\u2039":10,"-":10,".":32,"?":-7,"\"":-7,"\u201e":38,"\u201c":-3,"\u201d":-8,"\u2018":-3,"\u2019":-8,"\u201a":38,"'":-7,";":23," ":8,"A":36,"\u00c6":36,"\u00c1":36,"\u00c2":36,"\u00c4":36,"\u00c0":36,"\u00c5":36,"\u00c3":36,"C":19,"\u00c7":19,"G":19,"J":28,"M":14,"O":19,"\u00d8":19,"\u0152":19,"\u00d3":19,"\u00d4":19,"\u00d6":19,"\u00d2":19,"\u00d5":19,"Q":20,"S":3,"\u0160":3,"T":-11,"U":-2,"\u00da":-2,"\u00db":-2,"\u00dc":-2,"\u00d9":-2,"V":-18,"W":-20,"X":-13,"Y":-19,"\u00dd":-19,"\u0178":-19,"n":4,"\u00f1":4,"N":4,"\u00d1":4,"}":-7,"]":-8,"\u00bb":6,"\u203a":6,")":-7}},{"d":"6,32v67,-81,67,-255,0,-338r29,0v37,39,66,95,67,167v0,72,-30,133,-67,171r-29,0","w":127},{"d":"19,44v7,-9,27,-33,16,-42v-25,-6,-20,-51,9,-51v32,0,30,56,11,73v-11,10,-25,36,-36,20xm87,44v8,-8,27,-33,16,-42v-26,-6,-20,-51,10,-51v33,0,29,56,10,73v-11,10,-25,36,-36,20","w":155,"k":{" ":8,"a":-9,"\u00e6":-9,"\u00e1":-9,"\u00e2":-9,"\u00e4":-9,"\u00e0":-9,"\u00e5":-9,"\u00e3":-9,"c":21,"\u00e7":21,"g":20,"j":-11,"m":-6,"o":19,"\u00f8":19,"\u0153":19,"\u00f3":19,"\u00f4":19,"\u00f6":19,"\u00f2":19,"\u00f5":19,"q":21,"t":30,"u":15,"\u00fa":15,"\u00fb":15,"\u00fc":15,"\u00f9":15,"v":53,"w":32,"x":-10,"y":38,"\u00fd":38,"\u00ff":38,"z":-6,"\u017e":-6,"A":-9,"\u00c6":-9,"\u00c1":-9,"\u00c2":-9,"\u00c4":-9,"\u00c0":-9,"\u00c5":-9,"\u00c3":-9,"C":21,"\u00c7":21,"G":20,"J":-11,"M":-6,"O":19,"\u00d8":19,"\u0152":19,"\u00d3":19,"\u00d4":19,"\u00d6":19,"\u00d2":19,"\u00d5":19,"Q":21,"T":30,"U":15,"\u00da":15,"\u00db":15,"\u00dc":15,"\u00d9":15,"V":53,"W":32,"X":-10,"Y":38,"\u00dd":38,"\u0178":38,"Z":-6,"\u017d":-6}},{"d":"91,-168r0,48v0,101,0,112,17,115r0,5r-88,0r0,-5v17,-3,17,-14,17,-114r0,-49v0,-94,0,-105,-16,-107r0,-6r85,0r0,6v-15,2,-15,13,-15,107xm51,-297r-9,-12r60,-50r15,23","w":127,"k":{"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3,"w":-3,"C":3,"\u00c7":3,"G":3,"O":3,"\u00d8":3,"\u0152":3,"\u00d3":3,"\u00d4":3,"\u00d6":3,"\u00d2":3,"\u00d5":3,"Q":3,"W":-3}},{"d":"14,-187v0,-55,50,-97,103,-97v59,0,99,38,99,98v0,77,-64,137,-103,186r-61,0v32,-36,63,-70,86,-109v-58,29,-124,-14,-124,-78xm114,-139v30,-1,48,-18,48,-50v0,-28,-19,-49,-48,-49v-28,0,-47,24,-47,50v0,28,19,49,47,49","w":230,"k":{";":5,":":5,"8":4,"6":9,"5":3,"4":11,"2":3,"\/":26,".":41,",":41}},{"d":"266,-168r0,172r-9,0r-123,-123v-17,-15,-30,-33,-52,-54v0,14,1,25,1,56v0,98,1,111,16,112r0,5r-81,0r0,-5v16,-1,16,-14,16,-115r0,-163r8,0r125,125v18,16,29,34,50,54r0,-66v0,-91,0,-105,-16,-106r0,-5r79,0r0,5v-14,1,-14,14,-14,108xm173,-294v-23,1,-48,-40,-62,-3r-14,-2v4,-18,16,-37,35,-37v22,0,48,40,61,3r14,2v-5,20,-17,37,-34,37","w":299,"k":{"a":4,"\u00e6":4,"\u00e1":4,"\u00e2":4,"\u00e4":4,"\u00e0":4,"\u00e5":4,"\u00e3":4,"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3,"w":-3,",":5,".":5,"\u201e":5,"\u201a":5}},{"d":"222,-281v-18,54,-99,170,-133,237r94,0v18,0,31,-4,34,-17r5,0v-1,24,-1,43,-1,61r-215,0v40,-84,91,-157,134,-238v-39,4,-105,-13,-117,17r-5,0v0,-24,-1,-43,-1,-60r205,0","w":237,"k":{"a":-2,"\u00e6":-2,"\u00e1":-2,"\u00e2":-2,"\u00e4":-2,"\u00e0":-2,"\u00e5":-2,"\u00e3":-2,"c":10,"\u00e7":10,"g":10,"o":10,"\u00f8":10,"\u0153":10,"\u00f3":10,"\u00f4":10,"\u00f6":10,"\u00f2":10,"\u00f5":10,"q":10,"\u2014":3,"\u2013":9,"\u00ab":4,"\u2039":4,"-":6,".":-2,"\u201c":5,"\u2018":5}},{"d":"127,-308r-8,12r-66,-39r15,-23","w":182},{"d":"301,-156v0,47,-26,86,-59,111v28,0,58,4,68,-15r5,0v-1,17,-1,41,-1,60r-129,0r0,-48v25,-12,56,-42,56,-93v0,-51,-29,-96,-79,-96v-50,0,-82,40,-82,96v0,48,23,75,56,93r0,48r-130,0v0,-21,-2,-44,-2,-60v18,2,15,17,38,15v11,-2,28,3,35,-2v-33,-23,-58,-56,-58,-108v0,-75,66,-130,143,-130v82,0,139,61,139,129","w":320},{"d":"76,-60v-33,0,-62,-25,-62,-65v0,-39,28,-65,65,-65v30,0,51,17,71,41v19,-22,36,-41,69,-41v35,0,61,25,61,64v0,37,-26,66,-64,66v-21,0,-44,-9,-70,-42v-19,23,-39,42,-70,42xm77,-162v-19,0,-33,14,-33,38v0,19,14,35,34,35v22,0,39,-19,52,-34v-14,-18,-27,-39,-53,-39xm217,-89v21,0,33,-18,33,-36v0,-22,-13,-37,-35,-37v-22,0,-37,22,-50,37v23,28,35,36,52,36","w":293},{"d":"206,-146v0,64,-47,89,-115,87v1,39,3,50,17,53r0,6r-88,0r0,-6v17,-3,17,-13,17,-113r0,-49v0,-94,0,-104,-16,-107r0,-6r85,0r0,6v-14,3,-15,18,-15,47v66,-3,115,16,115,82xm91,-98v37,1,60,-10,61,-46v0,-30,-28,-47,-61,-41r0,87","w":221,"k":{"a":4,"\u00e6":4,"\u00e1":4,"\u00e2":4,"\u00e4":4,"\u00e0":4,"\u00e5":4,"\u00e3":4,"j":4,"t":6,"v":10,"x":6,"y":9,"\u00fd":9,"\u00ff":9,":":2,",":9,".":9,"\"":6,"\u201c":5,"\u201d":6,"\u2018":5,"\u2019":6,"'":6,";":2,"\u00a5":2}},{"d":"18,-128r0,-31r162,-71r0,34v-41,19,-88,32,-126,54r126,52r0,34xm185,-47r0,34r-172,0r0,-34r172,0","w":198},{"d":"40,-243r32,0r0,126r-32,0r0,-126xm40,-63r32,0r0,126r-32,0r0,-126","w":112},{"d":"67,-191v40,0,76,50,100,0r19,21v-15,23,-33,34,-50,34v-26,1,-44,-21,-70,-23v-15,0,-26,12,-34,24r-19,-22v11,-18,33,-34,54,-34xm67,-119v40,0,75,51,100,0r19,21v-15,23,-33,34,-50,34v-26,1,-43,-23,-70,-24v-15,0,-26,12,-34,24r-19,-22v11,-18,33,-33,54,-33","w":198},{"d":"173,-57r-88,0v-15,38,-20,51,-6,52r0,5r-82,0r0,-5v11,-1,18,-13,61,-115r70,-165r9,0r69,165v42,101,48,114,59,115r0,5r-86,0r0,-5v14,-1,9,-14,-6,-52xm100,-100v16,2,42,2,58,0v-21,-55,-25,-69,-28,-78v-3,9,-9,23,-30,78xm166,-294v-10,0,-19,-9,-19,-19v0,-9,9,-17,19,-17v10,0,19,9,19,18v0,9,-9,18,-19,18xm101,-294v-10,0,-18,-9,-18,-19v0,-9,8,-17,18,-17v11,0,19,9,19,18v0,9,-8,18,-19,18","k":{"a":-8,"\u00e6":-8,"\u00e1":-8,"\u00e2":-8,"\u00e4":-8,"\u00e0":-8,"\u00e5":-8,"\u00e3":-8,"c":12,"\u00e7":12,"g":12,"j":-10,"m":-10,"o":12,"\u00f8":12,"\u0153":12,"\u00f3":12,"\u00f4":12,"\u00f6":12,"\u00f2":12,"\u00f5":12,"q":12,"s":-2,"\u0161":-2,"t":27,"u":17,"\u00fa":17,"\u00fb":17,"\u00fc":17,"\u00f9":17,"v":44,"w":26,"x":-4,"y":32,"\u00fd":32,"\u00ff":32,"z":-8,"\u017e":-8,":":-7,",":-8,"\u2014":8,"\u2013":8,"\u00ab":14,"\u2039":16,"-":8,".":-8,"?":4,"\"":42,"\u201e":-6,"\u201c":40,"\u201d":33,"\u2018":40,"\u2019":33,"\u201a":-6,"'":42,";":-7," ":8,"A":-8,"\u00c6":-8,"\u00c1":-8,"\u00c2":-8,"\u00c4":-8,"\u00c0":-8,"\u00c5":-8,"\u00c3":-8,"C":12,"\u00c7":12,"G":12,"J":-10,"M":-10,"O":12,"\u00d8":12,"\u0152":12,"\u00d3":12,"\u00d4":12,"\u00d6":12,"\u00d2":12,"\u00d5":12,"Q":12,"S":-2,"\u0160":-2,"T":27,"U":17,"\u00da":17,"\u00db":17,"\u00dc":17,"\u00d9":17,"V":44,"W":26,"X":-4,"Y":32,"\u00dd":32,"\u0178":32,"Z":-8,"\u017d":-8}},{"d":"61,-57v0,-92,-51,-248,56,-253v18,0,35,9,46,16v-3,15,-7,42,-10,55r-6,0v-4,-13,-8,-23,-22,-24v-17,3,-22,23,-21,46v-2,90,53,253,-54,253v-18,0,-35,-7,-47,-15v3,-17,5,-40,7,-53r6,0v6,11,10,20,26,21v16,-4,18,-24,19,-46","w":165},{"d":"173,-57r-88,0v-15,38,-20,51,-6,52r0,5r-82,0r0,-5v11,-1,18,-13,61,-115r70,-165r9,0r69,165v42,101,48,114,59,115r0,5r-86,0r0,-5v14,-1,9,-14,-6,-52xm100,-100v16,2,42,2,58,0v-21,-55,-25,-69,-28,-78v-3,9,-9,23,-30,78xm183,-299r-10,11r-41,-28r-41,27r-9,-11r52,-49"},{"d":"147,5v-92,0,-117,-66,-117,-173v0,-94,-1,-107,-16,-108r0,-5r86,0r0,5v-15,1,-16,14,-16,108v0,65,3,122,63,122v56,0,61,-56,61,-122v0,-94,1,-107,-16,-108r0,-5r83,0r0,5v-14,1,-14,14,-14,108v0,107,-18,173,-114,173xm138,-293r-8,-12r59,-50r15,23","w":290,"k":{"a":17,"\u00e6":17,"\u00e1":17,"\u00e2":17,"\u00e4":17,"\u00e0":17,"\u00e5":17,"\u00e3":17,"j":6,"v":-5,"w":-8,"y":-3,"\u00fd":-3,"\u00ff":-3,",":14,".":14,"\u201e":15,"\u201a":15,")":-2}},{"d":"48,-238v7,7,22,12,21,28v-1,16,-12,27,-27,27v-31,0,-29,-57,-10,-73v10,-9,25,-36,36,-20v-9,8,-19,27,-20,38","w":86,"k":{"a":36,"\u00e6":36,"\u00e1":36,"\u00e2":36,"\u00e4":36,"\u00e0":36,"\u00e5":36,"\u00e3":36,"c":4,"\u00e7":4,"g":4,"j":39,"m":14,"o":5,"\u00f8":5,"\u0153":5,"\u00f3":5,"\u00f4":5,"\u00f6":5,"\u00f2":5,"\u00f5":5,"q":5,"t":-12,"v":-11,"w":-11,"x":-3,"y":-11,"\u00fd":-11,"\u00ff":-11,"A":36,"\u00c6":36,"\u00c1":36,"\u00c2":36,"\u00c4":36,"\u00c0":36,"\u00c5":36,"\u00c3":36,"C":4,"\u00c7":4,"G":4,"J":39,"M":14,"O":5,"\u00d8":5,"\u0152":5,"\u00d3":5,"\u00d4":5,"\u00d6":5,"\u00d2":5,"\u00d5":5,"Q":5,"T":-12,"V":-11,"W":-11,"X":-3,"Y":-11,"\u00dd":-11,"\u0178":-11}},{"d":"46,-162v15,0,27,12,27,27v0,15,-12,26,-27,26v-15,0,-28,-11,-28,-26v0,-15,13,-27,28,-27xm40,6v-8,-8,-23,-11,-22,-28v3,-37,55,-37,54,5v-1,34,-22,55,-44,69r-8,-8v9,-8,19,-27,20,-38","w":90,"k":{" ":8}},{"d":"-6,8r-27,0r183,-296r27,0","w":145},{"d":"77,-194v0,-12,11,-22,23,-22v12,0,23,10,23,22v0,28,-46,29,-46,0xm99,-40v-11,0,-22,-10,-22,-23v0,-12,11,-22,23,-22v12,0,23,11,23,23v0,13,-12,22,-24,22xm185,-144r0,33r-172,0r0,-33r172,0","w":198},{"d":"185,-179r0,34r-172,0r0,-34r172,0xm185,-110r0,34r-172,0r0,-34r172,0","w":198},{"d":"45,-168v15,0,28,12,28,27v0,15,-12,27,-28,27v-15,0,-27,-12,-27,-27v0,-15,12,-27,27,-27","w":90},{"d":"150,-286r34,0r-154,293r-34,0","w":181,"k":{"7":-20,"6":27,"4":41}},{"d":"301,-156v0,47,-26,86,-59,111v28,0,58,4,68,-15r5,0v-1,17,-1,41,-1,60r-129,0r0,-48v25,-12,56,-42,56,-93v0,-51,-29,-96,-79,-96v-50,0,-82,40,-82,96v0,48,23,75,56,93r0,48r-130,0v0,-21,-2,-44,-2,-60v18,2,15,17,38,15v11,-2,28,3,35,-2v-33,-23,-58,-56,-58,-108v0,-75,66,-130,143,-130v82,0,139,61,139,129","w":320},{"d":"185,-111r-172,0r0,-33r172,0r0,33","w":198},{"d":"173,-57r-88,0v-15,38,-20,51,-6,52r0,5r-82,0r0,-5v11,-1,18,-13,61,-115r70,-165r9,0r69,165v42,101,48,114,59,115r0,5r-86,0r0,-5v14,-1,9,-14,-6,-52xm100,-100v16,2,42,2,58,0v-21,-55,-25,-69,-28,-78v-3,9,-9,23,-30,78xm132,-294v-17,0,-30,-11,-30,-28v0,-16,15,-28,32,-28v15,0,30,11,30,27v0,17,-14,29,-32,29xm147,-322v0,-8,-6,-15,-14,-15v-9,0,-14,7,-14,15v0,8,6,15,14,15v9,0,14,-7,14,-15"},{"d":"91,-168r0,48v0,101,0,112,17,115r0,5r-88,0r0,-5v17,-3,17,-14,17,-114r0,-49v0,-94,0,-105,-16,-107r0,-6r85,0r0,6v-15,2,-15,13,-15,107xm84,-308r-9,12r-66,-39r15,-23","w":127,"k":{"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3,"w":-3}},{"d":"137,-103v4,-22,85,-179,53,-173r0,-5r84,0r0,5v-12,1,-18,14,-59,108r-75,173r-9,0r-77,-173v-42,-94,-48,-107,-60,-108r0,-5r90,0r0,5v-18,1,-12,14,18,83v17,39,26,63,35,90","w":270,"k":{"a":48,"\u00e6":48,"\u00e1":48,"\u00e2":48,"\u00e4":48,"\u00e0":48,"\u00e5":48,"\u00e3":48,"c":15,"\u00e7":15,"g":15,"j":27,"m":14,"o":15,"\u00f8":15,"\u0153":15,"\u00f3":15,"\u00f4":15,"\u00f6":15,"\u00f2":15,"\u00f5":15,"q":16,"s":3,"\u0161":3,"t":-12,"u":-4,"\u00fa":-4,"\u00fb":-4,"\u00fc":-4,"\u00f9":-4,"v":-16,"w":-19,"x":-13,"y":-18,"\u00fd":-18,"\u00ff":-18,":":22,",":47,"\u2014":14,"\u2013":14,"\u00ab":7,"\u2039":7,"-":14,".":47,"?":-7,"\"":-10,"\u201e":53,"\u201c":-4,"\u201d":-9,"\u2018":-4,"\u2019":-9,"\u201a":53,"'":-10,";":22," ":8,"n":3,"\u00f1":3,"}":-6,"]":-7,"\u00bb":6,"\u203a":6,")":-9}},{"d":"237,-212v-6,-22,-29,-26,-59,-26v-61,0,-105,38,-105,96v1,70,54,110,121,96v-1,-30,4,-87,-15,-83r0,-6r81,0r0,6v-13,1,-13,12,-13,58r1,65v-108,33,-234,-14,-234,-134v0,-110,113,-165,231,-138v-1,21,-2,35,-2,66r-6,0","w":278,"k":{"\u201c":2,"\u2018":2}},{"d":"42,-32v10,37,105,44,105,5v0,-13,-13,-26,-49,-34v-74,-16,-113,-69,-54,-112v-35,-39,3,-92,71,-92v28,0,55,8,73,17v-3,11,-8,33,-11,46r-5,0v-8,-33,-97,-40,-99,-5v0,15,16,22,56,34v53,16,71,36,71,65v0,22,-10,36,-24,45v41,45,-9,98,-73,98v-31,0,-58,-8,-79,-20v4,-11,9,-32,13,-47r5,0xm70,-153v-32,22,-8,43,34,54v25,7,30,10,43,15v25,-21,15,-41,-29,-53v-17,-5,-31,-10,-48,-16","w":213},{"d":"233,-4v-20,6,-48,8,-73,8r-9,15v19,4,24,15,24,25v0,27,-37,37,-61,29r3,-13v15,3,33,0,33,-15v0,-11,-12,-12,-22,-15r15,-27v-75,-9,-129,-62,-129,-143v0,-107,104,-163,221,-139v-1,21,-1,36,-2,66r-6,0v-7,-19,-26,-25,-51,-25v-60,0,-103,38,-103,97v0,60,41,98,98,98v25,-1,47,-6,56,-24r5,0v0,19,1,48,1,63","w":257,"k":{"c":11,"\u00e7":11,"g":6,"o":12,"\u00f8":12,"\u0153":12,"\u00f3":12,"\u00f4":12,"\u00f6":12,"\u00f2":12,"\u00f5":12,"q":12,"\u2014":18,"\u2013":18,"\u00ab":5,"\u2039":5,"-":18,"\u201d":-2,"\u2019":-2}},{"d":"147,-214v-5,-34,-76,-29,-72,8v3,32,25,41,50,58v66,46,48,156,-52,152v-22,0,-45,-4,-58,-10v1,-18,2,-36,3,-64r5,0v5,39,88,38,86,-5v-1,-27,-31,-43,-51,-57v-66,-47,-45,-152,52,-151v15,0,34,3,44,7v-1,21,-2,38,-2,62r-5,0xm258,-206v8,53,98,65,92,131v8,65,-90,96,-151,69v1,-18,2,-36,2,-64r6,0v5,39,91,38,85,-5v-7,-51,-97,-67,-90,-128v-6,-58,72,-97,136,-73v-1,21,-2,38,-2,62r-6,0v-5,-34,-77,-28,-72,8","w":375,"k":{"a":5,"\u00e6":5,"\u00e1":5,"\u00e2":5,"\u00e4":5,"\u00e0":5,"\u00e5":5,"\u00e3":5,"j":4,"v":3,",":4,".":4,"\u201e":6,"\u201c":4,"\u201d":6,"\u2018":4,"\u2019":6,"\u201a":6}},{"d":"137,-103v4,-22,85,-179,53,-173r0,-5r84,0r0,5v-12,1,-18,14,-59,108r-75,173r-9,0r-77,-173v-42,-94,-48,-107,-60,-108r0,-5r90,0r0,5v-18,1,-12,14,18,83v17,39,26,63,35,90","w":270,"k":{"\u0161":3,"\u00f6":15,"\u00f4":15,"\u00e3":48,"\u00e5":48,"\u00e0":48,"\u00e4":48,"\u00e2":48,"a":48,"\u00e6":48,"\u00e1":48,"c":15,"\u00e7":15,"g":15,"j":27,"m":14,"o":15,"\u00f8":15,"\u0153":15,"\u00f3":15,"\u00f2":15,"\u00f5":15,"q":16,"s":3,"t":-12,"u":-4,"\u00fa":-4,"\u00fb":-4,"\u00fc":-4,"\u00f9":-4,"v":-16,"w":-19,"x":-13,"y":-18,"\u00fd":-18,"\u00ff":-18,":":22,",":47,"\u2014":14,"\u2013":14,"\u00ab":7,"\u2039":7,"-":14,".":47,"?":-7,"\"":-10,"\u201e":53,"\u201c":-4,"\u201d":-9,"\u2018":-4,"\u2019":-9,"\u201a":53,"'":-10,";":22," ":8,"A":48,"\u00c6":48,"\u00c1":48,"\u00c2":48,"\u00c4":48,"\u00c0":48,"\u00c5":48,"\u00c3":48,"C":15,"\u00c7":15,"G":15,"J":27,"M":14,"O":15,"\u00d8":15,"\u0152":15,"\u00d3":15,"\u00d4":15,"\u00d6":15,"\u00d2":15,"\u00d5":15,"Q":16,"S":3,"\u0160":3,"T":-12,"U":-4,"\u00da":-4,"\u00db":-4,"\u00dc":-4,"\u00d9":-4,"V":-16,"W":-19,"X":-13,"Y":-18,"\u00dd":-18,"\u0178":-18,"n":3,"\u00f1":3,"N":3,"\u00d1":3,"}":-6,"]":-7,"\u00bb":6,"\u203a":6,")":-9}},{"d":"19,-190v8,-8,27,-32,16,-41v-26,-6,-19,-51,9,-51v32,0,30,55,11,72v-11,10,-25,36,-36,20","w":86,"k":{" ":8,"a":48,"\u00e6":48,"\u00e1":48,"\u00e2":48,"\u00e4":48,"\u00e0":48,"\u00e5":48,"\u00e3":48,"c":13,"\u00e7":13,"g":8,"j":39,"m":10,"o":9,"\u00f8":9,"\u0153":9,"\u00f3":9,"\u00f4":9,"\u00f6":9,"\u00f2":9,"\u00f5":9,"q":10,"s":3,"\u0161":3,"t":-12,"v":-18,"w":-17,"x":-12,"y":-16,"\u00fd":-16,"\u00ff":-16,"z":-5,"\u017e":-5,"A":48,"\u00c6":48,"\u00c1":48,"\u00c2":48,"\u00c4":48,"\u00c0":48,"\u00c5":48,"\u00c3":48,"C":13,"\u00c7":13,"G":8,"J":39,"M":10,"O":9,"\u00d8":9,"\u0152":9,"\u00d3":9,"\u00d4":9,"\u00d6":9,"\u00d2":9,"\u00d5":9,"Q":10,"S":3,"\u0160":3,"T":-12,"V":-18,"W":-17,"X":-12,"Y":-16,"\u00dd":-16,"\u0178":-16,"Z":-5,"\u017d":-5}},{"d":"1,45v28,-62,72,-108,103,-168r-96,-152r0,-6r212,0v0,18,-1,27,-1,59r-5,0v-14,-30,-82,-16,-122,-17r66,102v-23,50,-58,87,-83,134r110,0v18,0,25,-4,33,-17r5,0v-1,33,-1,47,-1,65r-221,0","w":234},{"d":"29,-281r52,0v-2,47,-5,163,-6,200r-39,0v-1,-37,-6,-152,-7,-200xm56,-50v15,0,28,12,28,27v0,15,-12,27,-28,27v-15,0,-28,-12,-28,-27v0,-15,13,-27,28,-27","w":110,"k":{" ":3}},{"d":"154,-59v-11,5,-27,6,-45,6r-5,53v-10,-1,-23,2,-31,-1v1,-10,5,-40,7,-56v-41,-10,-67,-41,-67,-84v0,-48,33,-80,84,-86r5,-53v9,1,23,-2,30,1v-1,10,-5,36,-6,50v11,0,21,2,30,4v-1,13,-2,26,-3,47r-5,0v-2,-10,-17,-14,-29,-14v-31,0,-57,19,-57,51v0,47,61,67,86,37r4,0v0,15,1,33,2,45","w":174},{"d":"173,-57r-88,0v-15,38,-20,51,-6,52r0,5r-82,0r0,-5v11,-1,18,-13,61,-115r70,-165r9,0r69,165v42,101,48,114,59,115r0,5r-86,0r0,-5v14,-1,9,-14,-6,-52xm100,-100v16,2,42,2,58,0v-21,-55,-25,-69,-28,-78v-3,9,-9,23,-30,78xm121,-297r-8,-12r59,-50r15,23","k":{"a":-8,"\u00e6":-8,"\u00e1":-8,"\u00e2":-8,"\u00e4":-8,"\u00e0":-8,"\u00e5":-8,"\u00e3":-8,"c":12,"\u00e7":12,"g":12,"j":-10,"m":-10,"o":12,"\u00f8":12,"\u0153":12,"\u00f3":12,"\u00f4":12,"\u00f6":12,"\u00f2":12,"\u00f5":12,"q":12,"s":-2,"\u0161":-2,"t":27,"u":17,"\u00fa":17,"\u00fb":17,"\u00fc":17,"\u00f9":17,"v":44,"w":26,"x":-4,"y":32,"\u00fd":32,"\u00ff":32,"z":-8,"\u017e":-8,":":-7,",":-8,"\u2014":8,"\u2013":8,"\u00ab":14,"\u2039":16,"-":8,".":-8,"?":4,"\"":42,"\u201e":-6,"\u201c":40,"\u201d":33,"\u2018":40,"\u2019":33,"\u201a":-6,"'":42,";":-7," ":8,"A":-8,"\u00c6":-8,"\u00c1":-8,"\u00c2":-8,"\u00c4":-8,"\u00c0":-8,"\u00c5":-8,"\u00c3":-8,"C":12,"\u00c7":12,"G":12,"J":-10,"M":-10,"O":12,"\u00d8":12,"\u0152":12,"\u00d3":12,"\u00d4":12,"\u00d6":12,"\u00d2":12,"\u00d5":12,"Q":12,"S":-2,"\u0160":-2,"T":27,"U":17,"\u00da":17,"\u00db":17,"\u00dc":17,"\u00d9":17,"V":44,"W":26,"X":-4,"Y":32,"\u00dd":32,"\u0178":32,"Z":-8,"\u017d":-8}},{"d":"113,-154r0,37r-103,0v1,-11,1,-26,0,-37r103,0","w":123},{"d":"147,5v-92,0,-117,-66,-117,-173v0,-94,-1,-107,-16,-108r0,-5r86,0r0,5v-15,1,-16,14,-16,108v0,65,3,122,63,122v56,0,61,-56,61,-122v0,-94,1,-107,-16,-108r0,-5r83,0r0,5v-14,1,-14,14,-14,108v0,107,-18,173,-114,173xm166,-305r-9,12r-66,-39r15,-22","w":290,"k":{"a":17,"\u00e6":17,"\u00e1":17,"\u00e2":17,"\u00e4":17,"\u00e0":17,"\u00e5":17,"\u00e3":17,"j":6,"v":-5,"w":-8,"y":-3,"\u00fd":-3,"\u00ff":-3,",":14,".":14,"\u201e":15,"\u201a":15,")":-2}},{"d":"251,-171r0,82v0,97,0,113,17,117r0,5r-87,0r0,-5v15,-5,16,-19,16,-97r0,-168r-106,0r0,168v0,78,0,91,15,97r0,5r-86,0r0,-5v17,-7,17,-20,17,-117r0,-82v0,-90,0,-99,-16,-105r0,-5r244,0r0,5v-14,5,-14,15,-14,105","w":287},{"d":"147,5v-92,0,-117,-66,-117,-173v0,-94,-1,-107,-16,-108r0,-5r86,0r0,5v-15,1,-16,14,-16,108v0,65,3,122,63,122v56,0,61,-56,61,-122v0,-94,1,-107,-16,-108r0,-5r83,0r0,5v-14,1,-14,14,-14,108v0,107,-18,173,-114,173","w":290,"k":{"a":17,"\u00e6":17,"\u00e1":17,"\u00e2":17,"\u00e4":17,"\u00e0":17,"\u00e5":17,"\u00e3":17,"j":6,"v":-5,"w":-8,"y":-3,"\u00fd":-3,"\u00ff":-3,",":14,".":14,"\u201e":15,"\u201a":15,"A":17,"\u00c6":17,"\u00c1":17,"\u00c2":17,"\u00c4":17,"\u00c0":17,"\u00c5":17,"\u00c3":17,"J":6,"V":-5,"W":-8,"Y":-3,"\u00dd":-3,"\u0178":-3,")":-2}},{"d":"37,-120r0,-48v0,-94,-1,-107,-15,-108r0,-5r163,0v-1,18,-2,35,-2,61r-5,0v-3,-25,-57,-15,-87,-17r0,72v22,-2,74,5,76,-8r5,0r0,62r-5,0v-1,-16,-54,-8,-76,-10r0,66v0,8,1,9,7,10v29,-3,79,10,85,-15r6,0v-1,26,-1,42,-1,60r-166,0r0,-5v15,-1,15,-14,15,-115xm162,-305r-10,11r-40,-28r-42,27r-9,-11r52,-49","w":209},{"d":"147,-214v-5,-34,-76,-29,-72,8v3,32,25,41,50,58v66,46,48,156,-52,152v-22,0,-45,-4,-58,-10v1,-18,2,-36,3,-64r5,0v5,39,88,38,86,-5v-1,-27,-31,-43,-51,-57v-66,-47,-45,-152,52,-151v15,0,34,3,44,7v-1,21,-2,38,-2,62r-5,0","w":183,"k":{"a":5,"\u00e6":5,"\u00e1":5,"\u00e2":5,"\u00e4":5,"\u00e0":5,"\u00e5":5,"\u00e3":5,"j":4,"v":3,",":4,".":4,"\u201e":6,"\u201c":4,"\u201d":6,"\u2018":4,"\u2019":6,"\u201a":6,"A":5,"\u00c6":5,"\u00c1":5,"\u00c2":5,"\u00c4":5,"\u00c0":5,"\u00c5":5,"\u00c3":5,"J":4,"V":3}},{"d":"91,-168r0,48v0,101,0,112,17,115r0,5r-88,0r0,-5v17,-3,17,-14,17,-114r0,-49v0,-94,0,-105,-16,-107r0,-6r85,0r0,6v-15,2,-15,13,-15,107xm51,-297r-9,-12r60,-50r15,23","w":127,"k":{"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3,"w":-3}},{"d":"161,-9v-55,29,-145,8,-145,-60v0,-58,71,-80,68,-135r42,0v8,56,-52,82,-56,126v-4,44,77,50,84,9r5,0v0,15,1,43,2,60xm105,-231v-15,0,-28,-12,-28,-27v0,-15,12,-27,28,-27v15,0,28,12,28,27v0,15,-13,27,-28,27","w":176,"k":{"a":-7,"\u00e6":-7,"\u00e1":-7,"\u00e2":-7,"\u00e4":-7,"\u00e0":-7,"\u00e5":-7,"\u00e3":-7,"x":-4,"A":-7,"\u00c6":-7,"\u00c1":-7,"\u00c2":-7,"\u00c4":-7,"\u00c0":-7,"\u00c5":-7,"\u00c3":-7,"X":-4}},{"d":"147,5v-92,0,-117,-66,-117,-173v0,-94,-1,-107,-16,-108r0,-5r86,0r0,5v-15,1,-16,14,-16,108v0,65,3,122,63,122v56,0,61,-56,61,-122v0,-94,1,-107,-16,-108r0,-5r83,0r0,5v-14,1,-14,14,-14,108v0,107,-18,173,-114,173xm198,-305r-10,11r-40,-28r-42,27r-9,-11r52,-49","w":290,"k":{"a":17,"\u00e6":17,"\u00e1":17,"\u00e2":17,"\u00e4":17,"\u00e0":17,"\u00e5":17,"\u00e3":17,"j":6,"v":-5,"w":-8,"y":-3,"\u00fd":-3,"\u00ff":-3,",":14,".":14,"\u201e":15,"\u201a":15,")":-2}},{"d":"37,-120r0,-48v0,-94,-1,-107,-15,-108r0,-5r163,0v-1,18,-2,35,-2,61r-5,0v-3,-25,-57,-15,-87,-17r0,72v22,-2,74,5,76,-8r5,0r0,62r-5,0v-1,-16,-54,-8,-76,-10r0,66v0,8,1,9,7,10v29,-3,79,10,85,-15r6,0v-1,26,-1,42,-1,60r-166,0r0,-5v15,-1,15,-14,15,-115xm139,-299v-10,0,-18,-8,-18,-19v0,-9,8,-16,18,-16v11,0,19,8,19,17v0,10,-8,18,-19,18xm75,-299v-10,0,-19,-8,-19,-19v0,-9,9,-16,19,-16v10,0,18,8,18,17v0,10,-8,18,-18,18","w":209},{"d":"234,-4v-110,30,-220,-24,-220,-136v0,-107,105,-163,221,-139v-1,21,-1,36,-2,66r-5,0v-7,-20,-25,-25,-52,-25v-60,0,-103,38,-103,97v0,60,42,98,99,98v28,-1,47,-3,56,-24r5,0v0,19,1,48,1,63","w":257,"k":{"c":11,"\u00e7":11,"g":6,"o":12,"\u00f8":12,"\u0153":12,"\u00f3":12,"\u00f4":12,"\u00f6":12,"\u00f2":12,"\u00f5":12,"q":12,"\u2014":18,"\u2013":18,"\u00ab":5,"\u2039":5,"-":18,"\u201d":-2,"\u2019":-2}},{"d":"203,-198v0,46,-26,63,-52,78v12,15,21,30,65,89v10,14,21,25,29,26r0,5v-25,-2,-56,5,-75,-4r-70,-105r-12,0r0,15v0,75,0,88,14,89r0,5r-80,0r0,-5v15,-1,15,-14,15,-115r0,-48v0,-94,0,-106,-15,-107r0,-5v89,-3,181,-13,181,82xm88,-149v37,2,59,-11,61,-46v2,-32,-26,-48,-61,-42r0,88","w":237,"k":{"a":-12,"\u00e6":-12,"\u00e1":-12,"\u00e2":-12,"\u00e4":-12,"\u00e0":-12,"\u00e5":-12,"\u00e3":-12,"c":6,"\u00e7":6,"g":6,"j":-11,"m":-13,"o":6,"\u00f8":6,"\u0153":6,"\u00f3":6,"\u00f4":6,"\u00f6":6,"\u00f2":6,"\u00f5":6,"q":6,"s":-3,"\u0161":-3,"t":6,"u":8,"\u00fa":8,"\u00fb":8,"\u00fc":8,"\u00f9":8,"v":15,"w":4,"x":-5,"y":13,"\u00fd":13,"\u00ff":13,"z":-11,"\u017e":-11,":":-9,",":-6,"\u2014":12,"\u2013":12,"\u00ab":7,"\u2039":8,"-":14,".":-9,"\"":15,"\u201e":-8,"\u201c":14,"\u201d":16,"\u2018":14,"\u2019":16,"\u201a":-8,"'":15,";":-9}},{"d":"14,-82v0,-51,35,-92,95,-92v24,0,46,14,53,26v8,-59,-17,-120,-61,-119v-26,0,-43,14,-54,24v-7,-5,-22,-26,-23,-40v14,-10,38,-25,73,-25v80,0,122,66,122,151v0,76,-35,161,-118,161v-52,0,-87,-38,-87,-86xm105,-34v27,0,43,-28,51,-74v-16,-50,-86,-29,-86,28v0,28,14,46,35,46","w":235},{"d":"180,-128r-162,72r0,-34v41,-19,88,-32,126,-54r-126,-52r0,-34r162,71r0,31xm185,-47r0,34r-172,0r0,-34r172,0","w":198},{"d":"173,-57r-88,0v-15,38,-20,51,-6,52r0,5r-82,0r0,-5v11,-1,18,-13,61,-115r70,-165r9,0r69,165v42,101,48,114,59,115r0,5r-86,0r0,-5v14,-1,9,-14,-6,-52xm100,-100v16,2,42,2,58,0v-21,-55,-25,-69,-28,-78v-3,9,-9,23,-30,78"},{"d":"91,-168r0,48v0,101,0,112,17,115r0,5r-88,0r0,-5v17,-3,17,-14,17,-114r0,-49v0,-94,0,-105,-16,-107r0,-6r85,0r0,6v-15,2,-15,13,-15,107xm113,-305r-10,11r-40,-28r-42,27r-9,-11r52,-49","w":127,"k":{"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3,"w":-3}},{"d":"123,-166v4,-15,71,-113,44,-110r0,-5r81,0r0,6v-10,1,-17,11,-73,114v-11,20,-27,31,-26,61v0,81,0,93,17,95r0,5r-88,0r0,-5v17,-2,17,-14,17,-94v0,-29,-16,-42,-27,-62v-53,-103,-61,-113,-74,-115r0,-5r89,0r0,5v-16,2,-9,15,13,57v10,20,21,40,27,53xm118,-293r-8,-12r60,-50r15,23","w":244,"k":{"a":36,"\u00e6":36,"\u00e1":36,"\u00e2":36,"\u00e4":36,"\u00e0":36,"\u00e5":36,"\u00e3":36,"c":19,"\u00e7":19,"g":19,"j":28,"m":14,"o":19,"\u00f8":19,"\u0153":19,"\u00f3":19,"\u00f4":19,"\u00f6":19,"\u00f2":19,"\u00f5":19,"q":20,"s":3,"\u0161":3,"t":-11,"u":-2,"\u00fa":-2,"\u00fb":-2,"\u00fc":-2,"\u00f9":-2,"v":-18,"w":-20,"x":-13,"y":-19,"\u00fd":-19,"\u00ff":-19,":":23,",":32,"\u2014":10,"\u2013":10,"\u00ab":10,"\u2039":10,"-":10,".":32,"?":-7,"\"":-7,"\u201e":38,"\u201c":-3,"\u201d":-8,"\u2018":-3,"\u2019":-8,"\u201a":38,"'":-7,";":23," ":8,"n":4,"\u00f1":4,"}":-7,"]":-8,"\u00bb":6,"\u203a":6,")":-7}},{"d":"183,-97r43,0v-1,12,2,29,-1,39r-41,0v0,40,-1,51,15,52r0,6r-87,0r0,-6v19,-5,18,-7,18,-52r-126,0r0,-29r141,-194r38,0v-1,59,0,184,0,184xm63,-98v20,3,46,0,68,1v0,-5,0,-74,1,-100","w":235,"k":{"9":13,"8":-5,"7":7,"4":-6}},{"d":"241,-19v22,9,52,28,83,27r4,4v-15,13,-25,35,-48,34v-27,-10,-61,-30,-85,-44v-100,18,-181,-49,-181,-140v0,-86,67,-147,153,-147v82,0,147,59,145,144v-1,67,-32,91,-71,122xm254,-140v0,-53,-38,-97,-91,-97v-53,0,-90,42,-90,97v0,53,37,97,91,97v54,0,90,-43,90,-97","w":326,"k":{"a":8,"\u00e6":8,"\u00e1":8,"\u00e2":8,"\u00e4":8,"\u00e0":8,"\u00e5":8,"\u00e3":8,":":-6,"\u2014":-3,"\u2013":-3,"\u00ab":-3,"\u2039":-4,"-":-3,"?":3,"\"":10,"\u201c":7,"\u201d":5,"\u2018":7,"\u2019":5,"'":10,";":-6,"}":-4,"]":-5,")":-9}},{"d":"91,-168r0,48v0,101,0,112,17,115r0,5r-88,0r0,-5v17,-3,17,-14,17,-114r0,-49v0,-94,0,-105,-16,-107r0,-6r85,0r0,6v-15,2,-15,13,-15,107xm95,-299v-10,0,-18,-8,-18,-19v0,-9,8,-16,18,-16v11,0,19,8,19,17v0,10,-8,18,-19,18xm31,-299v-10,0,-19,-8,-19,-19v0,-9,9,-16,19,-16v10,0,18,8,18,17v0,10,-8,18,-18,18","w":127,"k":{"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3,"w":-3}},{"d":"173,-57r-88,0v-15,38,-20,51,-6,52r0,5r-82,0r0,-5v11,-1,18,-13,61,-115r70,-165r9,0r69,165v42,101,48,114,59,115r0,5r-86,0r0,-5v14,-1,9,-14,-6,-52xm100,-100v16,2,42,2,58,0v-21,-55,-25,-69,-28,-78v-3,9,-9,23,-30,78xm121,-297r-8,-12r59,-50r15,23"},{"d":"50,-254v23,-1,47,-2,48,21v1,10,-9,14,-13,20v6,9,15,16,19,27v-24,5,-22,-16,-36,-25v-1,15,1,23,3,25v-27,4,-18,-2,-18,-40v0,-25,-2,-22,-3,-28xm68,-222v15,3,20,-20,4,-20r-4,0r0,20xm137,-218v0,35,-27,64,-64,64v-35,0,-63,-28,-63,-63v0,-35,28,-64,65,-64v34,0,62,28,62,63xm74,-168v28,0,48,-22,48,-50v0,-27,-21,-49,-49,-49v-27,0,-47,22,-47,50v0,27,20,49,48,49","w":147},{"d":"91,-237r0,80v22,-1,73,5,75,-9r5,0r0,63r-5,0v-2,-16,-53,-8,-75,-10r0,25v0,69,0,81,15,83r0,5r-84,0r0,-6v15,-2,15,-13,15,-114r0,-48v0,-94,-1,-105,-15,-107r0,-6r163,0v-1,18,-2,35,-2,61r-6,0v-2,-25,-56,-15,-86,-17","w":204,"k":{"\u00e3":27,"\u00e0":27,"\u00e4":27,"a":27,"\u00e6":27,"\u00e1":27,"\u00e2":27,"\u00e5":27,"j":8,"m":2,"w":-3,":":4,",":28,".":28,"\u201e":26,"\u201a":26,";":4,"A":27,"\u00c6":27,"\u00c1":27,"\u00c2":27,"\u00c4":27,"\u00c0":27,"\u00c5":27,"\u00c3":27,"J":8,"M":2,"W":-3}},{"d":"122,-127r59,59r-23,23r-59,-60r-59,59r-23,-22r59,-59r-59,-59r23,-24r59,60r59,-59r23,22","w":198},{"d":"233,-4v-20,6,-48,8,-73,8r-9,15v19,4,24,15,24,25v0,27,-37,37,-61,29r3,-13v15,3,33,0,33,-15v0,-11,-12,-12,-22,-15r15,-27v-75,-9,-129,-62,-129,-143v0,-107,104,-163,221,-139v-1,21,-1,36,-2,66r-6,0v-7,-19,-26,-25,-51,-25v-60,0,-103,38,-103,97v0,60,41,98,98,98v25,-1,47,-6,56,-24r5,0v0,19,1,48,1,63","w":257,"k":{"c":11,"\u00e7":11,"g":6,"o":12,"\u00f8":12,"\u0153":12,"\u00f3":12,"\u00f4":12,"\u00f6":12,"\u00f2":12,"\u00f5":12,"q":12,"\u2014":18,"\u2013":18,"\u00ab":5,"\u2039":5,"-":18,"\u201d":-2,"\u2019":-2,"C":11,"\u00c7":11,"G":6,"O":12,"\u00d8":12,"\u0152":12,"\u00d3":12,"\u00d4":12,"\u00d6":12,"\u00d2":12,"\u00d5":12,"Q":12}},{"d":"167,-285v82,0,145,59,145,143v0,84,-64,147,-150,147v-82,0,-147,-62,-147,-143v0,-86,66,-147,152,-147xm254,-140v0,-53,-38,-97,-89,-97v-54,0,-92,42,-92,97v0,54,37,97,90,97v53,0,91,-42,91,-97xm198,-299v-10,0,-19,-8,-19,-19v0,-9,9,-16,19,-16v10,0,18,8,18,17v0,10,-8,18,-18,18xm133,-299v-10,0,-19,-8,-19,-19v0,-9,9,-16,19,-16v11,0,18,8,18,17v0,10,-7,18,-18,18","w":326,"k":{"a":15,"\u00e6":15,"\u00e1":15,"\u00e2":15,"\u00e4":15,"\u00e0":15,"\u00e5":15,"\u00e3":15,"c":-4,"\u00e7":-4,"g":-4,"j":10,"o":-4,"\u00f8":-4,"\u0153":-4,"\u00f3":-4,"\u00f4":-4,"\u00f6":-4,"\u00f2":-4,"\u00f5":-4,"q":-4,"t":4,"v":12,"x":17,"y":14,"\u00fd":14,"\u00ff":14,"z":9,"\u017e":9,",":13,"\u2014":-3,"\u2013":-3,"\u00ab":-2,"\u2039":-3,"-":-3,".":13,"?":3,"\"":14,"\u201e":19,"\u201c":5,"\u201d":5,"\u2018":5,"\u2019":5,"\u201a":19,"'":14,"b":3,"\u00fe":3,"d":3,"e":3,"\u00e9":3,"\u00ea":3,"\u00eb":3,"\u00e8":3,"f":3,"\ufb01":3,"\ufb02":3,"\u00df":3,"h":3,"i":3,"\u0131":3,"\u00ed":3,"\u00ee":3,"\u00ef":3,"\u00ec":3,"k":3,"l":3,"\u0142":3,"n":3,"\u00f1":3,"p":3,"r":4}},{"d":"64,-116r13,-49r-39,0r4,-28r43,0r15,-58r21,0r-16,58r45,0r16,-58r20,0r-15,58r37,0r-5,28r-40,0r-13,49r36,0r-5,27r-40,0r-17,65r-20,0r17,-65r-45,0r-17,65r-20,0r16,-65r-40,0r6,-27r43,0xm85,-116r45,0r13,-49r-45,0","w":223},{"d":"91,-168r0,48v0,101,0,112,17,115r0,5r-88,0r0,-5v17,-3,17,-14,17,-114r0,-49v0,-94,0,-105,-16,-107r0,-6r85,0r0,6v-15,2,-15,13,-15,107","w":127,"k":{"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3,"w":-3}},{"d":"112,-297v-23,1,-48,-41,-62,-3r-14,-2v4,-18,16,-37,35,-37v22,0,49,40,61,2r14,3v-5,20,-17,37,-34,37","w":182},{"d":"84,-152v4,25,-27,154,0,147r0,5r-81,0r0,-5v13,-1,16,-14,30,-115r22,-163r8,0v86,150,97,169,108,192v11,-22,22,-42,110,-192r8,0r21,163v13,101,15,114,28,115r0,5r-83,0r0,-5v16,-1,13,-16,6,-73v-4,-31,-6,-53,-7,-74v-26,56,-43,84,-81,147r-8,0v-22,-36,-39,-64,-48,-81v-13,-25,-23,-43,-33,-66","w":344,"k":{"a":-7,"\u00e6":-7,"\u00e1":-7,"\u00e2":-7,"\u00e4":-7,"\u00e0":-7,"\u00e5":-7,"\u00e3":-7,"j":-5,"m":-8,"u":2,"\u00fa":2,"\u00fb":2,"\u00fc":2,"\u00f9":2,"v":13,"w":3,"y":14,"\u00fd":14,"\u00ff":14,"z":-6,"\u017e":-6,":":-4,",":-4,"\u00ab":2,"\u2039":2,".":-4,"\"":14,"\u201e":-5,"\u201c":13,"\u201d":14,"\u2018":13,"\u2019":14,"\u201a":-5,"'":14,";":-4,"A":-7,"\u00c6":-7,"\u00c1":-7,"\u00c2":-7,"\u00c4":-7,"\u00c0":-7,"\u00c5":-7,"\u00c3":-7,"J":-5,"M":-8,"U":2,"\u00da":2,"\u00db":2,"\u00dc":2,"\u00d9":2,"V":13,"W":3,"Y":14,"\u00dd":14,"\u0178":14,"Z":-6,"\u017d":-6}},{"d":"81,-171r-29,0v1,-13,3,-27,5,-40v-11,9,-22,16,-33,24r-14,-24v10,-6,26,-10,37,-17v-13,-5,-25,-10,-37,-16r14,-24r33,25v-2,-14,-4,-29,-5,-41r29,0v-1,12,-3,27,-5,41v11,-9,22,-17,33,-25r14,24v-12,7,-27,10,-37,17v13,5,25,10,37,16r-14,24v-11,-7,-22,-15,-33,-24v2,13,4,27,5,40","w":133},{"d":"147,5v-92,0,-117,-66,-117,-173v0,-94,-1,-107,-16,-108r0,-5r86,0r0,5v-15,1,-16,14,-16,108v0,65,3,122,63,122v56,0,61,-56,61,-122v0,-94,1,-107,-16,-108r0,-5r83,0r0,5v-14,1,-14,14,-14,108v0,107,-18,173,-114,173","w":290,"k":{"a":17,"\u00e6":17,"\u00e1":17,"\u00e2":17,"\u00e4":17,"\u00e0":17,"\u00e5":17,"\u00e3":17,"j":6,"v":-5,"w":-8,"y":-3,"\u00fd":-3,"\u00ff":-3,",":14,".":14,"\u201e":15,"\u201a":15,")":-2}},{"d":"40,-270r32,0r0,360r-32,0r0,-360","w":112},{"d":"127,-100v-7,17,-65,97,-40,95r0,5r-87,0r0,-5v13,-2,20,-15,79,-106r19,-30r-23,-37v-54,-83,-61,-96,-74,-98r0,-5r92,0r0,5v-16,2,-7,17,12,48v8,13,17,26,24,39v8,-18,61,-82,38,-87r0,-5r83,0r0,5v-13,2,-19,15,-71,99r-20,32r22,36v57,90,63,103,75,104r0,5r-92,0r0,-5v17,-1,9,-16,-13,-53v-9,-15,-18,-29,-24,-42","w":258,"k":{"a":-3,"\u00e6":-3,"\u00e1":-3,"\u00e2":-3,"\u00e4":-3,"\u00e0":-3,"\u00e5":-3,"\u00e3":-3,"c":18,"\u00e7":18,"g":18,"j":-3,"m":-4,"o":18,"\u00f8":18,"\u0153":18,"\u00f3":18,"\u00f4":18,"\u00f6":18,"\u00f2":18,"\u00f5":18,"q":18,"t":-2,"v":-6,"w":-8,"x":-7,"y":-8,"\u00fd":-8,"\u00ff":-8,"z":-4,"\u017e":-4,"\u2014":11,"\u2013":11,"\u00ab":9,"\u2039":9,"-":11,".":-3,"?":-2,"\"":-3,"\u201e":-6,"\u201c":5,"\u2018":5,"\u201a":-6,"'":-3," ":4,"}":-5,"]":-7,"\u00bb":4,"\u203a":4,")":-7}},{"d":"40,6v-9,-6,-23,-11,-22,-28v3,-37,55,-37,54,5v-1,34,-24,56,-45,70r-7,-8v8,-8,19,-28,20,-39","w":90,"k":{"9":20,"8":4,"7":6,"6":6,"2":-12,"1":8,"0":2," ":8}},{"d":"234,-4v-110,30,-220,-24,-220,-136v0,-107,105,-163,221,-139v-1,21,-1,36,-2,66r-5,0v-7,-20,-25,-25,-52,-25v-60,0,-103,38,-103,97v0,60,42,98,99,98v28,-1,47,-3,56,-24r5,0v0,19,1,48,1,63","w":257,"k":{"c":11,"\u00e7":11,"g":6,"o":12,"\u00f8":12,"\u0153":12,"\u00f3":12,"\u00f4":12,"\u00f6":12,"\u00f2":12,"\u00f5":12,"q":12,"\u2014":18,"\u2013":18,"\u00ab":5,"\u2039":5,"-":18,"\u201d":-2,"\u2019":-2,"C":11,"\u00c7":11,"G":6,"O":12,"\u00d8":12,"\u0152":12,"\u00d3":12,"\u00d4":12,"\u00d6":12,"\u00d2":12,"\u00d5":12,"Q":12}},{"d":"23,-280v81,-1,172,-17,172,72v0,30,-21,55,-46,61v31,5,57,31,57,67v-2,83,-91,85,-185,80r0,-6v15,-1,16,-14,16,-114r0,-48v0,-94,0,-106,-14,-107r0,-5xm87,-165v31,2,54,-7,55,-38v1,-28,-26,-39,-55,-34r0,72xm104,-45v26,-1,47,-10,47,-39v0,-34,-30,-42,-64,-38r0,69v-1,12,9,8,17,8","w":223,"k":{"a":4,"\u00e6":4,"\u00e1":4,"\u00e2":4,"\u00e4":4,"\u00e0":4,"\u00e5":4,"\u00e3":4,"j":4,"t":6,"v":10,"x":6,"y":9,"\u00fd":9,"\u00ff":9,":":2,",":9,".":9,"\"":6,"\u201c":5,"\u201d":6,"\u2018":5,"\u2019":6,"'":6,";":2,"A":4,"\u00c6":4,"\u00c1":4,"\u00c2":4,"\u00c4":4,"\u00c0":4,"\u00c5":4,"\u00c3":4,"J":4,"T":6,"V":10,"X":6,"Y":9,"\u00dd":9,"\u0178":9,"\u00a5":2}},{"d":"54,-175v1,-74,45,-126,123,-105v0,13,-2,40,-2,53r-5,0v-13,-32,-62,-10,-61,22v-2,9,-4,20,-5,30v18,0,44,-1,51,-1v-1,9,-1,23,0,33v-7,0,-35,-1,-56,-1r-27,194r-44,0v5,-54,12,-107,22,-193r-35,0r0,-33v6,0,32,1,39,1","w":184,"k":{"7":-8,"6":8,"4":18,"2":-2,"1":-8}},{"d":"118,-169v8,-24,62,-116,38,-106r0,-6r72,0r0,6v-10,4,-17,13,-68,112r-13,27r51,0r0,20v-8,0,-34,-1,-56,-1r0,24r56,0r0,20r-55,0v1,24,-6,75,16,68r0,5r-87,0r0,-5v13,-1,17,-6,17,-38r0,-30r-57,0r0,-20r57,0r0,-24v-22,0,-49,1,-57,1r0,-20r53,0r-13,-25v-55,-103,-58,-110,-69,-114r0,-6r78,0r0,6v-12,4,-8,12,18,65v4,8,16,32,19,41","w":230,"k":{"9":5,"8":7,"7":-5,"6":8,"4":4,"0":2}},{"d":"41,-344r10,-11r41,28r41,-28r9,11r-52,50","w":182},{"d":"159,-41v-4,49,-87,62,-101,14v-2,17,-3,60,-8,74r-35,0v13,-62,12,-142,12,-218r42,0v3,56,-13,135,39,135v51,0,38,-76,40,-135r41,0v0,66,-1,128,15,171r-36,0v-7,-10,-4,-28,-9,-41","w":221},{"d":"37,-120r0,-48v0,-94,-1,-107,-15,-108r0,-5r163,0v-1,18,-2,35,-2,61r-5,0v-3,-25,-57,-15,-87,-17r0,72v22,-2,74,5,76,-8r5,0r0,62r-5,0v-1,-16,-54,-8,-76,-10r0,66v0,8,1,9,7,10v29,-3,79,10,85,-15r6,0v-1,26,-1,42,-1,60r-166,0r0,-5v15,-1,15,-14,15,-115xm162,-305r-10,11r-40,-28r-42,27r-9,-11r52,-49","w":209},{"d":"14,-278r48,-5r-13,91r-21,4","w":75,"k":{" ":8,"a":43,"\u00e6":43,"\u00e1":43,"\u00e2":43,"\u00e4":43,"\u00e0":43,"\u00e5":43,"\u00e3":43,"c":12,"\u00e7":12,"g":12,"j":31,"m":14,"o":14,"\u00f8":14,"\u0153":14,"\u00f3":14,"\u00f4":14,"\u00f6":14,"\u00f2":14,"\u00f5":14,"q":14,"s":3,"\u0161":3,"t":-5,"v":-10,"w":-11,"x":-3,"y":-7,"\u00fd":-7,"\u00ff":-7,"A":43,"\u00c6":43,"\u00c1":43,"\u00c2":43,"\u00c4":43,"\u00c0":43,"\u00c5":43,"\u00c3":43,"C":12,"\u00c7":12,"G":12,"J":31,"M":14,"O":14,"\u00d8":14,"\u0152":14,"\u00d3":14,"\u00d4":14,"\u00d6":14,"\u00d2":14,"\u00d5":14,"Q":14,"S":3,"\u0160":3,"T":-5,"V":-10,"W":-11,"X":-3,"Y":-7,"\u00dd":-7,"\u0178":-7,"n":5,"\u00f1":5,"N":5,"\u00d1":5}},{"d":"173,-57r-88,0v-15,38,-20,51,-6,52r0,5r-82,0r0,-5v11,-1,18,-13,61,-115r70,-165r9,0r69,165v42,101,48,114,59,115r0,5r-86,0r0,-5v14,-1,9,-14,-6,-52xm100,-100v16,2,42,2,58,0v-21,-55,-25,-69,-28,-78v-3,9,-9,23,-30,78xm151,-308r-8,11r-67,-39r15,-22"},{"d":"208,-191v-2,67,-50,96,-120,95r0,12v0,65,1,77,16,79r0,5r-82,0r0,-5v15,-3,15,-14,15,-115r0,-48v0,-94,0,-104,-15,-107r0,-5v94,-7,188,-1,186,89xm88,-140v40,2,65,-13,66,-50v1,-34,-28,-52,-66,-46r0,96","w":223,"k":{"\u00e4":37,"a":37,"\u00e6":37,"\u00e1":37,"\u00e2":37,"\u00e0":37,"\u00e5":37,"\u00e3":37,"j":32,"m":8,"t":-3,"v":3,"y":3,"\u00fd":3,"\u00ff":3,"z":2,"\u017e":2,":":3,",":41,".":41,"\u201e":39,"\u201a":39,";":3," ":4,"A":37,"\u00c6":37,"\u00c1":37,"\u00c2":37,"\u00c4":37,"\u00c0":37,"\u00c5":37,"\u00c3":37,"J":32,"M":8,"T":-3,"V":3,"Y":3,"\u00dd":3,"\u0178":3,"Z":2,"\u017d":2,"b":3,"\u00fe":3,"d":4,"e":4,"\u00e9":4,"\u00ea":4,"\u00eb":4,"\u00e8":4,"f":4,"\ufb01":4,"\ufb02":4,"\u00df":4,"h":4,"i":4,"\u0131":4,"\u00ed":4,"\u00ee":4,"\u00ef":4,"\u00ec":4,"k":4,"l":4,"\u0142":4,"n":4,"\u00f1":4,"p":4,"r":4,"B":3,"D":4,"\u00d0":4,"E":4,"\u00c9":4,"\u00ca":4,"\u00cb":4,"\u00c8":4,"F":4,"H":4,"I":4,"\u00cd":4,"\u00ce":4,"\u00cf":4,"\u00cc":4,"K":4,"L":4,"\u0141":4,"N":4,"\u00d1":4,"P":4,"\u00de":4,"R":4}},{"d":"173,-57r-88,0v-15,38,-20,51,-6,52r0,5r-82,0r0,-5v11,-1,18,-13,61,-115r70,-165r9,0r69,165v42,101,48,114,59,115r0,5r-86,0r0,-5v14,-1,9,-14,-6,-52xm100,-100v16,2,42,2,58,0v-21,-55,-25,-69,-28,-78v-3,9,-9,23,-30,78","k":{"a":-8,"\u00e6":-8,"\u00e1":-8,"\u00e2":-8,"\u00e4":-8,"\u00e0":-8,"\u00e5":-8,"\u00e3":-8,"c":12,"\u00e7":12,"g":12,"j":-10,"m":-10,"o":12,"\u00f8":12,"\u0153":12,"\u00f3":12,"\u00f4":12,"\u00f6":12,"\u00f2":12,"\u00f5":12,"q":12,"s":-2,"\u0161":-2,"t":27,"u":17,"\u00fa":17,"\u00fb":17,"\u00fc":17,"\u00f9":17,"v":44,"w":26,"x":-4,"y":32,"\u00fd":32,"\u00ff":32,"z":-8,"\u017e":-8,":":-7,",":-8,"\u2014":8,"\u2013":8,"\u00ab":14,"\u2039":16,"-":8,".":-8,"?":4,"\"":42,"\u201e":-6,"\u201c":40,"\u201d":33,"\u2018":40,"\u2019":33,"\u201a":-6,"'":42,";":-7," ":8,"A":-8,"\u00c6":-8,"\u00c1":-8,"\u00c2":-8,"\u00c4":-8,"\u00c0":-8,"\u00c5":-8,"\u00c3":-8,"C":12,"\u00c7":12,"G":12,"J":-10,"M":-10,"O":12,"\u00d8":12,"\u0152":12,"\u00d3":12,"\u00d4":12,"\u00d6":12,"\u00d2":12,"\u00d5":12,"Q":12,"S":-2,"\u0160":-2,"T":27,"U":17,"\u00da":17,"\u00db":17,"\u00dc":17,"\u00d9":17,"V":44,"W":26,"X":-4,"Y":32,"\u00dd":32,"\u0178":32,"Z":-8,"\u017d":-8}},{"d":"173,-57r-88,0v-15,38,-20,51,-6,52r0,5r-82,0r0,-5v11,-1,18,-13,61,-115r70,-165r9,0r69,165v42,101,48,114,59,115r0,5r-86,0r0,-5v14,-1,9,-14,-6,-52xm100,-100v16,2,42,2,58,0v-21,-55,-25,-69,-28,-78v-3,9,-9,23,-30,78xm166,-294v-10,0,-19,-9,-19,-19v0,-9,9,-17,19,-17v10,0,19,9,19,18v0,9,-9,18,-19,18xm101,-294v-10,0,-18,-9,-18,-19v0,-9,8,-17,18,-17v11,0,19,9,19,18v0,9,-8,18,-19,18"},{"d":"37,-120r0,-48v0,-93,0,-104,-16,-107r0,-6r84,0r0,6v-14,2,-14,15,-14,92r0,21v15,-21,103,-112,77,-114r0,-5r88,0r0,5v-15,-1,-91,99,-118,126v30,33,110,141,131,145r0,5r-93,0r0,-5v13,-1,1,-16,-35,-61r-50,-63r0,27v0,83,-1,94,16,97r0,5r-87,0r0,-5v17,-3,17,-14,17,-115","k":{"a":-10,"\u00e6":-10,"\u00e1":-10,"\u00e2":-10,"\u00e4":-10,"\u00e0":-10,"\u00e5":-10,"\u00e3":-10,"c":18,"\u00e7":18,"g":19,"j":-10,"m":-11,"o":19,"\u00f8":19,"\u0153":19,"\u00f3":19,"\u00f4":19,"\u00f6":19,"\u00f2":19,"\u00f5":19,"q":19,"u":3,"\u00fa":3,"\u00fb":3,"\u00fc":3,"\u00f9":3,"v":-4,"w":-7,"x":-6,"y":-4,"\u00fd":-4,"\u00ff":-4,"z":-6,"\u017e":-6,":":-8,",":-8,"\u2014":29,"\u2013":29,"\u00ab":24,"\u2039":24,"-":29,".":-8,"?":-2,"\u201e":-5,"\u201c":3,"\u2018":3,"\u201a":-5,";":-8," ":3,"}":-3,"]":-3,"\u00bb":5,"\u203a":5}},{"d":"265,-168r0,48v0,101,0,114,17,115r0,5r-88,0r0,-5v17,-1,17,-15,17,-97r0,-18r-120,0r0,18v0,82,-1,96,16,97r0,5r-87,0r0,-5v17,-1,17,-14,17,-115r0,-48v0,-94,0,-107,-16,-108r0,-5r85,0r0,5v-15,1,-15,14,-15,96r0,15r120,0r0,-15v0,-81,0,-95,-15,-96r0,-5r83,0r0,5v-14,1,-14,14,-14,108","w":301,"k":{"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3}},{"d":"147,5v-92,0,-117,-66,-117,-173v0,-94,-1,-107,-16,-108r0,-5r86,0r0,5v-15,1,-16,14,-16,108v0,65,3,122,63,122v56,0,61,-56,61,-122v0,-94,1,-107,-16,-108r0,-5r83,0r0,5v-14,1,-14,14,-14,108v0,107,-18,173,-114,173xm138,-293r-8,-12r59,-50r15,23","w":290,"k":{"a":17,"\u00e6":17,"\u00e1":17,"\u00e2":17,"\u00e4":17,"\u00e0":17,"\u00e5":17,"\u00e3":17,"j":6,"v":-5,"w":-8,"y":-3,"\u00fd":-3,"\u00ff":-3,",":14,".":14,"\u201e":15,"\u201a":15,"A":17,"\u00c6":17,"\u00c1":17,"\u00c2":17,"\u00c4":17,"\u00c0":17,"\u00c5":17,"\u00c3":17,"J":6,"V":-5,"W":-8,"Y":-3,"\u00dd":-3,"\u0178":-3,")":-2}},{"d":"265,-168r0,48v0,101,0,114,17,115r0,5r-88,0r0,-5v17,-1,17,-15,17,-97r0,-18r-120,0r0,18v0,82,-1,96,16,97r0,5r-87,0r0,-5v17,-1,17,-14,17,-115r0,-48v0,-94,0,-107,-16,-108r0,-5r85,0r0,5v-15,1,-15,14,-15,96r0,15r120,0r0,-15v0,-81,0,-95,-15,-96r0,-5r83,0r0,5v-14,1,-14,14,-14,108","w":301,"k":{"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3,"C":3,"\u00c7":3,"G":3,"O":3,"\u00d8":3,"\u0152":3,"\u00d3":3,"\u00d4":3,"\u00d6":3,"\u00d2":3,"\u00d5":3,"Q":3}},{"d":"215,-14r6,22v-23,10,-41,14,-70,14v-93,0,-136,-61,-136,-121v0,-81,65,-144,155,-144v76,0,131,47,131,113v0,53,-41,87,-80,87v-18,0,-33,-10,-36,-30v-24,43,-99,41,-101,-21v-3,-64,80,-107,145,-78r-13,70v-4,23,1,34,12,34v20,0,44,-24,44,-59v0,-51,-40,-93,-105,-93v-55,0,-121,47,-121,117v0,84,94,123,169,89xm145,-72v28,-1,43,-44,46,-77v-37,-10,-71,18,-70,49v0,16,7,28,24,28","w":321},{"d":"167,-285v82,0,145,59,145,143v0,84,-64,147,-150,147v-82,0,-147,-62,-147,-143v0,-86,66,-147,152,-147xm254,-140v0,-53,-38,-97,-89,-97v-54,0,-92,42,-92,97v0,54,37,97,90,97v53,0,91,-42,91,-97xm216,-306r-10,11r-41,-28r-41,27r-10,-10r52,-50","w":326,"k":{"a":15,"\u00e6":15,"\u00e1":15,"\u00e2":15,"\u00e4":15,"\u00e0":15,"\u00e5":15,"\u00e3":15,"c":-4,"\u00e7":-4,"g":-4,"j":10,"o":-4,"\u00f8":-4,"\u0153":-4,"\u00f3":-4,"\u00f4":-4,"\u00f6":-4,"\u00f2":-4,"\u00f5":-4,"q":-4,"t":4,"v":12,"x":17,"y":14,"\u00fd":14,"\u00ff":14,"z":9,"\u017e":9,",":13,"\u2014":-3,"\u2013":-3,"\u00ab":-2,"\u2039":-3,"-":-3,".":13,"?":3,"\"":14,"\u201e":19,"\u201c":5,"\u201d":5,"\u2018":5,"\u2019":5,"\u201a":19,"'":14,"b":3,"\u00fe":3,"d":3,"e":3,"\u00e9":3,"\u00ea":3,"\u00eb":3,"\u00e8":3,"f":3,"\ufb01":3,"\ufb02":3,"\u00df":3,"h":3,"i":3,"\u0131":3,"\u00ed":3,"\u00ee":3,"\u00ef":3,"\u00ec":3,"k":3,"l":3,"\u0142":3,"n":3,"\u00f1":3,"p":3,"r":4}},{"d":"55,-42v59,3,47,-65,48,-126v0,-94,0,-106,-16,-108r0,-5r84,0r0,5v-14,2,-14,14,-14,108r0,49v13,105,-63,143,-149,114r0,-64r6,0v5,19,19,27,41,27","w":189,"k":{"a":15,"\u00e6":15,"\u00e1":15,"\u00e2":15,"\u00e4":15,"\u00e0":15,"\u00e5":15,"\u00e3":15,"c":2,"\u00e7":2,"g":2,"j":7,"o":2,"\u00f8":2,"\u0153":2,"\u00f3":2,"\u00f4":2,"\u00f6":2,"\u00f2":2,"\u00f5":2,"q":2,"w":-3,":":4,",":14,".":14,"\u201e":17,"\u201a":17,";":4}},{"d":"62,-281v120,0,204,34,204,134v0,109,-85,161,-208,147r-38,0r0,-6v17,-2,17,-13,17,-114r0,-48v0,-94,0,-105,-16,-106r0,-6v9,0,26,-1,41,-1xm94,-48v67,11,116,-31,115,-96v0,-64,-47,-102,-118,-90r0,180v0,4,0,6,3,6","w":280,"k":{"a":17,"\u00e6":17,"\u00e1":17,"\u00e2":17,"\u00e4":17,"\u00e0":17,"\u00e5":17,"\u00e3":17,"c":-4,"\u00e7":-4,"g":-4,"j":11,"m":3,"o":-4,"\u00f8":-4,"\u0153":-4,"\u00f3":-4,"\u00f4":-4,"\u00f6":-4,"\u00f2":-4,"\u00f5":-4,"q":-4,"v":10,"x":15,"y":10,"\u00fd":10,"\u00ff":10,"z":7,"\u017e":7,":":3,",":15,"\u2014":-3,"\u2013":-3,"-":-3,".":15,"\"":5,"\u201e":21,"\u201c":3,"\u201d":3,"\u2018":3,"\u2019":3,"\u201a":21,"'":5,";":3,"A":17,"\u00c6":17,"\u00c1":17,"\u00c2":17,"\u00c4":17,"\u00c0":17,"\u00c5":17,"\u00c3":17,"C":-4,"\u00c7":-4,"G":-4,"J":11,"M":3,"O":-4,"\u00d8":-4,"\u0152":-4,"\u00d3":-4,"\u00d4":-4,"\u00d6":-4,"\u00d2":-4,"\u00d5":-4,"Q":-4,"V":10,"X":15,"Y":10,"\u00dd":10,"\u0178":10,"Z":7,"\u017d":7,"b":3,"\u00fe":3,"d":3,"e":3,"\u00e9":3,"\u00ea":3,"\u00eb":3,"\u00e8":3,"f":3,"\ufb01":3,"\ufb02":3,"\u00df":3,"h":3,"i":3,"\u0131":3,"\u00ed":3,"\u00ee":3,"\u00ef":3,"\u00ec":3,"k":3,"l":3,"\u0142":3,"n":3,"\u00f1":3,"p":3,"r":4,"B":3,"D":3,"\u00d0":3,"E":3,"\u00c9":3,"\u00ca":3,"\u00cb":3,"\u00c8":3,"F":3,"H":3,"I":3,"\u00cd":3,"\u00ce":3,"\u00cf":3,"\u00cc":3,"K":3,"L":3,"\u0141":3,"N":3,"\u00d1":3,"P":3,"\u00de":3,"R":4}},{"d":"97,-45v31,-3,78,10,85,-16r6,0v-1,26,-2,41,-2,61r-165,0r0,-6v15,-2,16,-13,16,-114r0,-48v0,-94,0,-105,-16,-107r0,-6r85,0r0,6v-15,2,-16,13,-16,107r0,117v0,5,2,6,7,6","w":197,"k":{"a":-5,"\u00e6":-5,"\u00e1":-5,"\u00e2":-5,"\u00e4":-5,"\u00e0":-5,"\u00e5":-5,"\u00e3":-5,"c":7,"\u00e7":7,"g":9,"m":-5,"o":9,"\u00f8":9,"\u0153":9,"\u00f3":9,"\u00f4":9,"\u00f6":9,"\u00f2":9,"\u00f5":9,"q":9,"t":21,"u":8,"\u00fa":8,"\u00fb":8,"\u00fc":8,"\u00f9":8,"v":25,"w":9,"y":21,"\u00fd":21,"\u00ff":21,":":-3,",":-3,"\u2014":15,"\u2013":15,"\u00ab":22,"\u2039":24,"-":15,".":-3,"?":2,"\"":31,"\u201c":37,"\u201d":36,"\u2018":37,"\u2019":36,"'":31,";":-3," ":8,"A":-5,"\u00c6":-5,"\u00c1":-5,"\u00c2":-5,"\u00c4":-5,"\u00c0":-5,"\u00c5":-5,"\u00c3":-5,"C":7,"\u00c7":7,"G":9,"M":-5,"O":9,"\u00d8":9,"\u0152":9,"\u00d3":9,"\u00d4":9,"\u00d6":9,"\u00d2":9,"\u00d5":9,"Q":9,"T":21,"U":8,"\u00da":8,"\u00db":8,"\u00dc":8,"\u00d9":8,"V":25,"W":9,"Y":21,"\u00dd":21,"\u0178":21}},{"d":"130,-194v6,-55,-95,-57,-107,-13r-5,0v0,-9,0,-45,-1,-62v23,-12,52,-16,78,-16v60,0,92,38,92,81v0,70,-57,121,-97,159v36,-3,88,10,102,-15r6,0v0,11,-1,42,-1,60r-187,0r0,-31v39,-40,113,-91,120,-163","w":215,"k":{"9":9,"8":3,"7":3,"6":8,"4":3}},{"d":"167,-285v82,0,145,59,145,143v0,84,-64,147,-150,147v-82,0,-147,-62,-147,-143v0,-86,66,-147,152,-147xm254,-140v0,-53,-38,-97,-89,-97v-54,0,-92,42,-92,97v0,54,37,97,90,97v53,0,91,-42,91,-97","w":326,"k":{"a":15,"\u00e6":15,"\u00e1":15,"\u00e2":15,"\u00e4":15,"\u00e0":15,"\u00e5":15,"\u00e3":15,"c":-4,"\u00e7":-4,"g":-4,"j":10,"o":-4,"\u00f8":-4,"\u0153":-4,"\u00f3":-4,"\u00f4":-4,"\u00f6":-4,"\u00f2":-4,"\u00f5":-4,"q":-4,"t":4,"v":12,"x":17,"y":14,"\u00fd":14,"\u00ff":14,"z":9,"\u017e":9,",":13,"\u2014":-3,"\u2013":-3,"\u00ab":-2,"\u2039":-3,"-":-3,".":13,"?":3,"\"":14,"\u201e":19,"\u201c":5,"\u201d":5,"\u2018":5,"\u2019":5,"\u201a":19,"'":14,"A":15,"\u00c6":15,"\u00c1":15,"\u00c2":15,"\u00c4":15,"\u00c0":15,"\u00c5":15,"\u00c3":15,"C":-4,"\u00c7":-4,"G":-4,"J":10,"O":-4,"\u00d8":-4,"\u0152":-4,"\u00d3":-4,"\u00d4":-4,"\u00d6":-4,"\u00d2":-4,"\u00d5":-4,"Q":-4,"T":4,"V":12,"X":17,"Y":14,"\u00dd":14,"\u0178":14,"Z":9,"\u017d":9,"b":3,"\u00fe":3,"d":3,"e":3,"\u00e9":3,"\u00ea":3,"\u00eb":3,"\u00e8":3,"f":3,"\ufb01":3,"\ufb02":3,"\u00df":3,"h":3,"i":3,"\u0131":3,"\u00ed":3,"\u00ee":3,"\u00ef":3,"\u00ec":3,"k":3,"l":3,"\u0142":3,"n":3,"\u00f1":3,"p":3,"r":4,"B":3,"D":3,"\u00d0":3,"E":3,"\u00c9":3,"\u00ca":3,"\u00cb":3,"\u00c8":3,"F":3,"H":3,"I":3,"\u00cd":3,"\u00ce":3,"\u00cf":3,"\u00cc":3,"K":3,"L":3,"\u0141":3,"N":3,"\u00d1":3,"P":3,"\u00de":3,"R":4}},{"d":"107,-62v57,47,147,1,147,-78v0,-23,-6,-43,-17,-60xm219,-218v-56,-46,-146,0,-146,79v0,23,6,43,17,59xm15,-139v0,-119,147,-188,240,-117v6,-7,16,-17,23,-25r36,0r-40,42v23,23,38,57,38,97v0,120,-148,188,-240,118v-7,7,-16,16,-23,24r-36,0r40,-42v-23,-23,-38,-58,-38,-97","w":326,"k":{"a":15,"\u00e6":15,"\u00e1":15,"\u00e2":15,"\u00e4":15,"\u00e0":15,"\u00e5":15,"\u00e3":15,"c":-4,"\u00e7":-4,"g":-4,"j":10,"o":-4,"\u00f8":-4,"\u0153":-4,"\u00f3":-4,"\u00f4":-4,"\u00f6":-4,"\u00f2":-4,"\u00f5":-4,"q":-4,"t":4,"v":12,"x":17,"y":14,"\u00fd":14,"\u00ff":14,"z":9,"\u017e":9,",":13,"\u2014":-3,"\u2013":-3,"\u00ab":-2,"\u2039":-3,"-":-3,".":13,"?":3,"\"":14,"\u201e":19,"\u201c":5,"\u201d":5,"\u2018":5,"\u2019":5,"\u201a":19,"'":14,"A":15,"\u00c6":15,"\u00c1":15,"\u00c2":15,"\u00c4":15,"\u00c0":15,"\u00c5":15,"\u00c3":15,"C":-4,"\u00c7":-4,"G":-4,"J":10,"O":-4,"\u00d8":-4,"\u0152":-4,"\u00d3":-4,"\u00d4":-4,"\u00d6":-4,"\u00d2":-4,"\u00d5":-4,"Q":-4,"T":4,"V":12,"X":17,"Y":14,"\u00dd":14,"\u0178":14,"Z":9,"\u017d":9,"b":3,"\u00fe":3,"d":3,"e":3,"\u00e9":3,"\u00ea":3,"\u00eb":3,"\u00e8":3,"f":3,"\ufb01":3,"\ufb02":3,"\u00df":3,"h":3,"i":3,"\u0131":3,"\u00ed":3,"\u00ee":3,"\u00ef":3,"\u00ec":3,"k":3,"l":3,"\u0142":3,"n":3,"\u00f1":3,"p":3,"r":4,"B":3,"D":3,"\u00d0":3,"E":3,"\u00c9":3,"\u00ca":3,"\u00cb":3,"\u00c8":3,"F":3,"H":3,"I":3,"\u00cd":3,"\u00ce":3,"\u00cf":3,"\u00cc":3,"K":3,"L":3,"\u0141":3,"N":3,"\u00d1":3,"P":3,"\u00de":3,"R":4}},{"d":"115,-240v0,32,-30,57,-49,73v16,-1,46,4,49,-8r5,0v0,3,-1,25,-1,34r-102,-1r0,-17v20,-19,59,-41,63,-75v3,-29,-47,-24,-54,-5r-4,0v0,-5,-1,-25,-1,-34v33,-18,94,-5,94,33","w":141},{"d":"16,-272v56,-29,145,-9,145,60v0,58,-72,79,-68,135r-43,0v-9,-56,53,-82,57,-126v4,-43,-77,-52,-84,-10r-5,0v0,-15,-1,-42,-2,-59xm43,-23v0,-15,13,-27,29,-27v15,0,27,12,27,27v0,15,-13,27,-28,27v-15,0,-28,-12,-28,-27","w":176,"k":{" ":3}},{"d":"37,-120r0,-48v0,-94,-1,-107,-15,-108r0,-5r163,0v-1,18,-2,35,-2,61r-5,0v-3,-25,-57,-15,-87,-17r0,72v22,-2,74,5,76,-8r5,0r0,62r-5,0v-1,-16,-54,-8,-76,-10r0,66v0,8,1,9,7,10v29,-3,79,10,85,-15r6,0v-1,26,-1,42,-1,60r-166,0r0,-5v15,-1,15,-14,15,-115xm135,-308r-9,12r-66,-39r15,-23","w":209},{"d":"78,-281v39,0,66,27,66,63v0,33,-27,65,-66,65v-40,0,-66,-31,-66,-65v0,-34,27,-63,66,-63xm46,-218v0,19,10,39,33,38v20,0,30,-19,30,-37v0,-22,-13,-38,-31,-38v-19,0,-32,17,-32,37xm212,-127v39,0,66,29,66,64v0,33,-25,65,-66,65v-41,0,-67,-32,-67,-65v0,-34,28,-64,67,-64xm180,-63v0,21,11,39,33,39v19,0,30,-19,30,-39v0,-21,-12,-37,-31,-37v-20,0,-32,17,-32,37xm218,-285r36,0v-40,62,-145,226,-184,291r-36,0v43,-65,147,-228,184,-291","w":289},{"w":105,"k":{"\u00bf":3,"\u00bb":7,"\u201e":8,"\u201a":8,"\u203a":7,"\u2039":8,"\u00ab":8,"\u201c":8,"'":8,"\u00a1":3,"\u2018":8,"\"":8,"a":8,"\u00e6":8,"\u00e1":8,"\u00e2":8,"\u00e4":8,"\u00e0":8,"\u00e5":8,"\u00e3":8,"j":5,"t":7,"v":8,"x":4,"y":8,"\u00fd":8,"\u00ff":8,"A":8,"\u00c6":8,"\u00c1":8,"\u00c2":8,"\u00c4":8,"\u00c0":8,"\u00c5":8,"\u00c3":8,"J":5,"T":7,"V":8,"X":4,"Y":8,"\u00dd":8,"\u0178":8}},{"d":"18,-110r0,-31r162,-71r0,34r-126,53r126,52r0,34","w":198},{"d":"55,-42v59,3,47,-65,48,-126v0,-94,0,-106,-16,-108r0,-5r84,0r0,5v-14,2,-14,14,-14,108r0,49v13,105,-63,143,-149,114r0,-64r6,0v5,19,19,27,41,27","w":189,"k":{"a":15,"\u00e6":15,"\u00e1":15,"\u00e2":15,"\u00e4":15,"\u00e0":15,"\u00e5":15,"\u00e3":15,"c":2,"\u00e7":2,"g":2,"j":7,"o":2,"\u00f8":2,"\u0153":2,"\u00f3":2,"\u00f4":2,"\u00f6":2,"\u00f2":2,"\u00f5":2,"q":2,"w":-3,":":4,",":14,".":14,"\u201e":17,"\u201a":17,";":4,"A":15,"\u00c6":15,"\u00c1":15,"\u00c2":15,"\u00c4":15,"\u00c0":15,"\u00c5":15,"\u00c3":15,"C":2,"\u00c7":2,"G":2,"J":7,"O":2,"\u00d8":2,"\u0152":2,"\u00d3":2,"\u00d4":2,"\u00d6":2,"\u00d2":2,"\u00d5":2,"Q":2,"W":-3}},{"d":"60,-50v15,0,27,12,27,27v0,15,-12,27,-27,27v-15,0,-28,-12,-28,-27v0,-15,13,-27,28,-27xm153,-23v0,-15,12,-27,28,-27v15,0,27,12,27,27v0,15,-13,27,-28,27v-15,0,-27,-12,-27,-27xm273,-23v0,-15,12,-27,28,-27v15,0,27,12,27,27v0,15,-12,27,-28,27v-15,0,-27,-12,-27,-27","w":360},{"d":"113,-154r0,37r-103,0v1,-11,1,-26,0,-37r103,0","w":123,"k":{"7":3,"2":6,"a":8,"\u00e6":8,"\u00e1":8,"\u00e2":8,"\u00e4":8,"\u00e0":8,"\u00e5":8,"\u00e3":8,"c":-4,"\u00e7":-4,"g":-3,"j":24,"o":-3,"\u00f8":-3,"\u0153":-3,"\u00f3":-3,"\u00f4":-3,"\u00f6":-3,"\u00f2":-3,"\u00f5":-3,"q":-3,"t":12,"v":12,"w":3,"x":11,"y":10,"\u00fd":10,"\u00ff":10,"z":5,"\u017e":5,"A":8,"\u00c6":8,"\u00c1":8,"\u00c2":8,"\u00c4":8,"\u00c0":8,"\u00c5":8,"\u00c3":8,"C":-4,"\u00c7":-4,"G":-3,"J":24,"O":-3,"\u00d8":-3,"\u0152":-3,"\u00d3":-3,"\u00d4":-3,"\u00d6":-3,"\u00d2":-3,"\u00d5":-3,"Q":-3,"T":12,"V":12,"W":3,"X":11,"Y":10,"\u00dd":10,"\u0178":10,"Z":5,"\u017d":5}},{"d":"135,-325r0,20r-87,0r0,-20r87,0","w":182},{"d":"-5,-286r33,0r155,293r-34,0","w":179},{"d":"131,24r-20,0r0,-134v-50,1,-92,-21,-93,-71v0,-48,28,-84,115,-84v24,0,33,1,43,3r0,286r-20,0r0,-273r-25,0r0,273","w":205},{"d":"45,-50v15,0,28,12,28,27v0,15,-12,27,-28,27v-15,0,-27,-12,-27,-27v0,-15,12,-27,27,-27xm45,-162v15,0,28,12,28,27v0,15,-12,26,-28,26v-15,0,-27,-11,-27,-26v0,-15,12,-27,27,-27","w":90,"k":{" ":8}},{"d":"123,-166v4,-15,71,-113,44,-110r0,-5r81,0r0,6v-10,1,-17,11,-73,114v-11,20,-27,31,-26,61v0,81,0,93,17,95r0,5r-88,0r0,-5v17,-2,17,-14,17,-94v0,-29,-16,-42,-27,-62v-53,-103,-61,-113,-74,-115r0,-5r89,0r0,5v-16,2,-9,15,13,57v10,20,21,40,27,53","w":244,"k":{"\u00f6":19,"a":36,"\u00e6":36,"\u00e1":36,"\u00e2":36,"\u00e4":36,"\u00e0":36,"\u00e5":36,"\u00e3":36,"c":19,"\u00e7":19,"g":19,"j":28,"m":14,"o":19,"\u00f8":19,"\u0153":19,"\u00f3":19,"\u00f4":19,"\u00f2":19,"\u00f5":19,"q":20,"s":3,"\u0161":3,"t":-11,"u":-2,"\u00fa":-2,"\u00fb":-2,"\u00fc":-2,"\u00f9":-2,"v":-18,"w":-20,"x":-13,"y":-19,"\u00fd":-19,"\u00ff":-19,":":23,",":32,"\u2014":10,"\u2013":10,"\u00ab":10,"\u2039":10,"-":10,".":32,"?":-7,"\"":-7,"\u201e":38,"\u201c":-3,"\u201d":-8,"\u2018":-3,"\u2019":-8,"\u201a":38,"'":-7,";":23," ":8,"A":36,"\u00c6":36,"\u00c1":36,"\u00c2":36,"\u00c4":36,"\u00c0":36,"\u00c5":36,"\u00c3":36,"C":19,"\u00c7":19,"G":19,"J":28,"M":14,"O":19,"\u00d8":19,"\u0152":19,"\u00d3":19,"\u00d4":19,"\u00d6":19,"\u00d2":19,"\u00d5":19,"Q":20,"S":3,"\u0160":3,"T":-11,"U":-2,"\u00da":-2,"\u00db":-2,"\u00dc":-2,"\u00d9":-2,"V":-18,"W":-20,"X":-13,"Y":-19,"\u00dd":-19,"\u0178":-19,"n":4,"\u00f1":4,"N":4,"\u00d1":4,"}":-7,"]":-8,"\u00bb":6,"\u203a":6,")":-7}},{"d":"113,-154r0,37r-103,0v1,-11,1,-26,0,-37r103,0","w":123},{"d":"91,-298v-12,0,-21,-10,-21,-21v0,-10,9,-19,21,-19v12,0,21,9,21,20v0,10,-9,20,-21,20","w":182},{"d":"76,-180v61,1,113,22,113,86v0,85,-99,114,-179,85v2,-15,5,-44,7,-60r5,0v17,44,112,31,110,-21v-1,-48,-61,-52,-109,-46v5,-42,12,-99,17,-145r145,0v-1,18,-2,49,-2,62r-6,0v-4,-25,-63,-13,-94,-16","w":206,"k":{"9":7,"2":3,".":12,",":12}},{"d":"167,-285v82,0,145,59,145,143v0,84,-64,147,-150,147v-82,0,-147,-62,-147,-143v0,-86,66,-147,152,-147xm254,-140v0,-53,-38,-97,-89,-97v-54,0,-92,42,-92,97v0,54,37,97,90,97v53,0,91,-42,91,-97xm185,-299v-25,1,-48,-41,-62,-2r-14,-3v4,-18,18,-37,36,-37v21,0,48,40,61,3r13,2v-5,20,-17,37,-34,37","w":326,"k":{"a":15,"\u00e6":15,"\u00e1":15,"\u00e2":15,"\u00e4":15,"\u00e0":15,"\u00e5":15,"\u00e3":15,"c":-4,"\u00e7":-4,"g":-4,"j":10,"o":-4,"\u00f8":-4,"\u0153":-4,"\u00f3":-4,"\u00f4":-4,"\u00f6":-4,"\u00f2":-4,"\u00f5":-4,"q":-4,"t":4,"v":12,"x":17,"y":14,"\u00fd":14,"\u00ff":14,"z":9,"\u017e":9,",":13,"\u2014":-3,"\u2013":-3,"\u00ab":-2,"\u2039":-3,"-":-3,".":13,"?":3,"\"":14,"\u201e":19,"\u201c":5,"\u201d":5,"\u2018":5,"\u2019":5,"\u201a":19,"'":14,"b":3,"\u00fe":3,"d":3,"e":3,"\u00e9":3,"\u00ea":3,"\u00eb":3,"\u00e8":3,"f":3,"\ufb01":3,"\ufb02":3,"\u00df":3,"h":3,"i":3,"\u0131":3,"\u00ed":3,"\u00ee":3,"\u00ef":3,"\u00ec":3,"k":3,"l":3,"\u0142":3,"n":3,"\u00f1":3,"p":3,"r":4}},{"d":"138,-235v-40,4,-107,-13,-119,18r-6,0v0,-13,0,-46,-1,-64r190,0r0,17r-122,264r-56,0","w":211,"k":{"\u00a2":13,";":29,":":29,"9":9,"8":12,"6":33,"5":9,"4":46,"3":2,"2":3,"0":12,"\/":51,".":68,"-":10,",":68}},{"d":"188,-75r24,24v-23,41,-59,56,-94,56v-44,0,-72,-18,-76,-64v-8,5,-13,9,-20,14r-16,-27r34,-24r0,-87v0,-78,31,-106,75,-106v45,0,67,32,67,67v0,49,-33,90,-88,136v-2,68,74,50,94,11xm119,-251v-31,0,-25,83,-25,122v27,-27,47,-63,47,-91v0,-19,-7,-31,-22,-31","w":213},{"d":"45,-50v15,0,28,12,28,27v0,15,-12,27,-28,27v-15,0,-27,-12,-27,-27v0,-15,12,-27,27,-27","w":90,"k":{"9":20,"8":4,"7":12,"6":6,"2":-12,"1":8,"0":7," ":8}},{"d":"37,-120r0,-48v0,-94,-1,-107,-15,-108r0,-5r163,0v-1,18,-2,35,-2,61r-5,0v-3,-25,-57,-15,-87,-17r0,72v22,-2,74,5,76,-8r5,0r0,62r-5,0v-1,-16,-54,-8,-76,-10r0,66v0,8,1,9,7,10v29,-3,79,10,85,-15r6,0v-1,26,-1,42,-1,60r-166,0r0,-5v15,-1,15,-14,15,-115","w":209},{"d":"90,-120r0,-117v-30,3,-75,-10,-79,18r-5,0v0,-24,-1,-44,-1,-62r222,0r0,62r-6,0v-3,-29,-48,-15,-77,-18v4,52,-12,249,17,232r0,5r-88,0r0,-5v17,-2,17,-14,17,-115","w":232,"k":{"\u00f2":8,"\u00f6":8,"\u00e3":30,"\u00e5":30,"\u00e0":30,"\u00e4":30,"\u00e2":30,"a":30,"\u00e6":30,"\u00e1":30,"c":7,"\u00e7":7,"g":7,"j":27,"m":4,"o":8,"\u00f8":8,"\u0153":8,"\u00f3":8,"\u00f4":8,"\u00f5":8,"q":8,"t":-4,"v":-14,"w":-15,"x":-4,"y":-13,"\u00fd":-13,"\u00ff":-13,":":13,",":22,"\u2014":12,"\u2013":12,"\u00ab":8,"\u2039":10,"-":12,".":24,"?":-4,"\"":-5,"\u201e":30,"\u201c":-10,"\u201d":-12,"\u2018":-10,"\u2019":-12,"\u201a":30,"'":-5,";":13," ":7,"A":30,"\u00c6":30,"\u00c1":30,"\u00c2":30,"\u00c4":30,"\u00c0":30,"\u00c5":30,"\u00c3":30,"C":7,"\u00c7":7,"G":7,"J":27,"M":4,"O":8,"\u00d8":8,"\u0152":8,"\u00d3":8,"\u00d4":8,"\u00d6":8,"\u00d2":8,"\u00d5":8,"Q":8,"T":-4,"V":-14,"W":-15,"X":-4,"Y":-13,"\u00dd":-13,"\u0178":-13,"}":-3,"]":-5,"\u00bb":5,"\u203a":5,")":-4}},{"w":105},{"d":"45,-168v15,0,28,12,28,27v0,15,-12,27,-28,27v-15,0,-27,-12,-27,-27v0,-15,12,-27,27,-27","w":90},{"d":"125,-284v68,0,107,67,107,141v0,74,-34,147,-107,147v-75,0,-110,-72,-110,-145v0,-76,39,-143,110,-143xm71,-141v0,39,9,100,54,99v42,0,51,-60,51,-101v0,-38,-10,-96,-52,-96v-42,0,-53,58,-53,98","w":247,"k":{"7":4,".":9,",":10}},{"d":"241,-19v22,9,52,28,83,27r4,4v-15,13,-25,35,-48,34v-27,-10,-61,-30,-85,-44v-100,18,-181,-49,-181,-140v0,-86,67,-147,153,-147v82,0,147,59,145,144v-1,67,-32,91,-71,122xm254,-140v0,-53,-38,-97,-91,-97v-53,0,-90,42,-90,97v0,53,37,97,91,97v54,0,90,-43,90,-97","w":326,"k":{"a":8,"\u00e6":8,"\u00e1":8,"\u00e2":8,"\u00e4":8,"\u00e0":8,"\u00e5":8,"\u00e3":8,":":-6,"\u2014":-3,"\u2013":-3,"\u00ab":-3,"\u2039":-4,"-":-3,"?":3,"\"":12,"\u201c":7,"\u201d":5,"\u2018":7,"\u2019":5,"'":12,";":-6,"A":8,"\u00c6":8,"\u00c1":8,"\u00c2":8,"\u00c4":8,"\u00c0":8,"\u00c5":8,"\u00c3":8,"}":-4,"]":-5,")":-9}},{"d":"167,-285v82,0,145,59,145,143v0,84,-64,147,-150,147v-82,0,-147,-62,-147,-143v0,-86,66,-147,152,-147xm254,-140v0,-53,-38,-97,-89,-97v-54,0,-92,42,-92,97v0,54,37,97,90,97v53,0,91,-42,91,-97","w":326,"k":{"a":15,"\u00e6":15,"\u00e1":15,"\u00e2":15,"\u00e4":15,"\u00e0":15,"\u00e5":15,"\u00e3":15,"c":-4,"\u00e7":-4,"g":-4,"j":10,"o":-4,"\u00f8":-4,"\u0153":-4,"\u00f3":-4,"\u00f4":-4,"\u00f6":-4,"\u00f2":-4,"\u00f5":-4,"q":-4,"t":4,"v":12,"x":17,"y":14,"\u00fd":14,"\u00ff":14,"z":9,"\u017e":9,",":13,"\u2014":-3,"\u2013":-3,"\u00ab":-2,"\u2039":-3,"-":-3,".":13,"?":3,"\"":14,"\u201e":19,"\u201c":5,"\u201d":5,"\u2018":5,"\u2019":5,"\u201a":19,"'":14,"b":3,"\u00fe":3,"d":3,"e":3,"\u00e9":3,"\u00ea":3,"\u00eb":3,"\u00e8":3,"f":3,"\ufb01":3,"\ufb02":3,"\u00df":3,"h":3,"i":3,"\u0131":3,"\u00ed":3,"\u00ee":3,"\u00ef":3,"\u00ec":3,"k":3,"l":3,"\u0142":3,"n":3,"\u00f1":3,"p":3,"r":4}},{"d":"167,-285v82,0,145,59,145,143v0,84,-64,147,-150,147v-82,0,-147,-62,-147,-143v0,-86,66,-147,152,-147xm254,-140v0,-53,-38,-97,-89,-97v-54,0,-92,42,-92,97v0,54,37,97,90,97v53,0,91,-42,91,-97xm148,-299r-8,-11r59,-50r15,22","w":326,"k":{"a":15,"\u00e6":15,"\u00e1":15,"\u00e2":15,"\u00e4":15,"\u00e0":15,"\u00e5":15,"\u00e3":15,"c":-4,"\u00e7":-4,"g":-4,"j":10,"o":-4,"\u00f8":-4,"\u0153":-4,"\u00f3":-4,"\u00f4":-4,"\u00f6":-4,"\u00f2":-4,"\u00f5":-4,"q":-4,"t":4,"v":12,"x":17,"y":14,"\u00fd":14,"\u00ff":14,"z":9,"\u017e":9,",":13,"\u2014":-3,"\u2013":-3,"\u00ab":-2,"\u2039":-3,"-":-3,".":13,"?":3,"\"":14,"\u201e":19,"\u201c":5,"\u201d":5,"\u2018":5,"\u2019":5,"\u201a":19,"'":14,"b":3,"\u00fe":3,"d":3,"e":3,"\u00e9":3,"\u00ea":3,"\u00eb":3,"\u00e8":3,"f":3,"\ufb01":3,"\ufb02":3,"\u00df":3,"h":3,"i":3,"\u0131":3,"\u00ed":3,"\u00ee":3,"\u00ef":3,"\u00ec":3,"k":3,"l":3,"\u0142":3,"n":3,"\u00f1":3,"p":3,"r":4}},{"d":"115,-281r-1,163v0,99,0,111,22,112r0,6r-101,0r0,-6v25,-2,25,-13,25,-112r0,-93v0,-19,-1,-20,-6,-19v-8,1,-33,10,-46,14r-7,-20v26,-10,71,-34,92,-45r22,0","w":161,"k":{"\u00a2":6,"9":10,"8":7,"7":5,"6":9,"5":6,"4":9,"3":3,"2":3,"1":3,"0":7,".":5,",":5}},{"d":"14,-278r48,-5r-13,91r-21,4xm81,-278r48,-5r-12,91r-21,4","w":142,"k":{" ":8,"a":43,"\u00e6":43,"\u00e1":43,"\u00e2":43,"\u00e4":43,"\u00e0":43,"\u00e5":43,"\u00e3":43,"c":12,"\u00e7":12,"g":12,"j":31,"m":14,"o":14,"\u00f8":14,"\u0153":14,"\u00f3":14,"\u00f4":14,"\u00f6":14,"\u00f2":14,"\u00f5":14,"q":14,"s":3,"\u0161":3,"t":-5,"v":-10,"w":-11,"x":-3,"y":-7,"\u00fd":-7,"\u00ff":-7,"A":43,"\u00c6":43,"\u00c1":43,"\u00c2":43,"\u00c4":43,"\u00c0":43,"\u00c5":43,"\u00c3":43,"C":12,"\u00c7":12,"G":12,"J":31,"M":14,"O":14,"\u00d8":14,"\u0152":14,"\u00d3":14,"\u00d4":14,"\u00d6":14,"\u00d2":14,"\u00d5":14,"Q":14,"S":3,"\u0160":3,"T":-5,"V":-10,"W":-11,"X":-3,"Y":-7,"\u00dd":-7,"\u0178":-7,"n":5,"\u00f1":5,"N":5,"\u00d1":5}},{"d":"257,-1r-251,0v4,-6,99,-231,121,-284r10,0xm78,-40v31,-2,70,4,97,-2r-46,-134v-5,17,-52,132,-51,136"},{"d":"222,-281v-18,54,-99,170,-133,237r94,0v18,0,31,-4,34,-17r5,0v-1,24,-1,43,-1,61r-215,0v40,-84,91,-157,134,-238v-39,4,-105,-13,-117,17r-5,0v0,-24,-1,-43,-1,-60r205,0xm73,-345r9,-10r41,27r42,-27r9,11r-52,49","w":237,"k":{"a":-2,"\u00e6":-2,"\u00e1":-2,"\u00e2":-2,"\u00e4":-2,"\u00e0":-2,"\u00e5":-2,"\u00e3":-2,"c":10,"\u00e7":10,"g":10,"o":10,"\u00f8":10,"\u0153":10,"\u00f3":10,"\u00f4":10,"\u00f6":10,"\u00f2":10,"\u00f5":10,"q":10,"\u2014":3,"\u2013":9,"\u00ab":4,"\u2039":4,"-":6,".":-2,"\u201c":5,"\u2018":5,"A":-2,"\u00c6":-2,"\u00c1":-2,"\u00c2":-2,"\u00c4":-2,"\u00c0":-2,"\u00c5":-2,"\u00c3":-2,"C":10,"\u00c7":10,"G":10,"O":10,"\u00d8":10,"\u0152":10,"\u00d3":10,"\u00d4":10,"\u00d6":10,"\u00d2":10,"\u00d5":10,"Q":10}},{"d":"93,-71v-6,14,-33,59,-15,66r0,5r-85,0r0,-5v36,-28,108,-192,141,-258v4,-9,-5,-9,-4,-18r181,0v0,18,-1,36,-1,61r-6,0v0,-23,-55,-16,-84,-17r0,72v22,-1,72,4,73,-8r5,0r0,62v-9,-9,-47,-12,-78,-10r0,68v0,7,1,8,8,8v29,-2,75,7,82,-15r5,0v-1,31,-1,43,-1,60r-161,0r0,-5v18,2,13,-44,14,-66r-74,0xm113,-114v16,3,38,0,56,1r0,-126v-17,41,-41,93,-56,125","w":336},{"d":"48,-238v7,7,22,12,21,28v0,16,-13,27,-27,27v-31,0,-29,-57,-10,-73v10,-9,25,-36,36,-20v-9,8,-19,27,-20,38xm117,-238v6,8,20,12,20,28v0,16,-13,27,-26,27v-31,2,-31,-57,-11,-73v10,-9,25,-36,36,-20v-9,7,-19,26,-19,38","w":155,"k":{"a":36,"\u00e6":36,"\u00e1":36,"\u00e2":36,"\u00e4":36,"\u00e0":36,"\u00e5":36,"\u00e3":36,"c":4,"\u00e7":4,"g":4,"j":39,"m":14,"o":5,"\u00f8":5,"\u0153":5,"\u00f3":5,"\u00f4":5,"\u00f6":5,"\u00f2":5,"\u00f5":5,"q":5,"t":-12,"v":-11,"w":-11,"x":-3,"y":-11,"\u00fd":-11,"\u00ff":-11,"A":36,"\u00c6":36,"\u00c1":36,"\u00c2":36,"\u00c4":36,"\u00c0":36,"\u00c5":36,"\u00c3":36,"C":4,"\u00c7":4,"G":4,"J":39,"M":14,"O":5,"\u00d8":5,"\u0152":5,"\u00d3":5,"\u00d4":5,"\u00d6":5,"\u00d2":5,"\u00d5":5,"Q":5,"T":-12,"V":-11,"W":-11,"X":-3,"Y":-11,"\u00dd":-11,"\u0178":-11}},{"d":"147,5v-92,0,-117,-66,-117,-173v0,-94,-1,-107,-16,-108r0,-5r86,0r0,5v-15,1,-16,14,-16,108v0,65,3,122,63,122v56,0,61,-56,61,-122v0,-94,1,-107,-16,-108r0,-5r83,0r0,5v-14,1,-14,14,-14,108v0,107,-18,173,-114,173xm198,-305r-10,11r-40,-28r-42,27r-9,-11r52,-49","w":290,"k":{"a":17,"\u00e6":17,"\u00e1":17,"\u00e2":17,"\u00e4":17,"\u00e0":17,"\u00e5":17,"\u00e3":17,"j":6,"v":-5,"w":-8,"y":-3,"\u00fd":-3,"\u00ff":-3,",":14,".":14,"\u201e":15,"\u201a":15,"A":17,"\u00c6":17,"\u00c1":17,"\u00c2":17,"\u00c4":17,"\u00c0":17,"\u00c5":17,"\u00c3":17,"J":6,"V":-5,"W":-8,"Y":-3,"\u00dd":-3,"\u0178":-3,")":-2}},{"d":"90,-294v-16,0,-31,-11,-31,-28v0,-16,15,-28,33,-28v15,0,30,11,30,27v0,17,-14,29,-32,29xm105,-322v0,-8,-6,-15,-14,-15v-9,0,-14,7,-14,15v0,8,6,15,14,15v9,0,14,-7,14,-15","w":182},{"d":"91,-168r0,48v0,101,0,112,17,115r0,5r-88,0r0,-5v17,-3,17,-14,17,-114r0,-49v0,-94,0,-105,-16,-107r0,-6r85,0r0,6v-15,2,-15,13,-15,107xm95,-299v-10,0,-18,-8,-18,-19v0,-9,8,-16,18,-16v11,0,19,8,19,17v0,10,-8,18,-19,18xm31,-299v-10,0,-19,-8,-19,-19v0,-9,9,-16,19,-16v10,0,18,8,18,17v0,10,-8,18,-18,18","w":127,"k":{"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3,"w":-3,"C":3,"\u00c7":3,"G":3,"O":3,"\u00d8":3,"\u0152":3,"\u00d3":3,"\u00d4":3,"\u00d6":3,"\u00d2":3,"\u00d5":3,"Q":3,"W":-3}},{"d":"76,-281v38,0,64,28,64,63v0,34,-26,66,-66,66v-40,0,-65,-30,-65,-64v0,-35,28,-65,67,-65xm75,-178v21,0,32,-20,32,-39v0,-22,-14,-39,-32,-39v-20,0,-33,18,-33,39v0,19,11,39,33,39","w":148},{"d":"127,-100v-7,17,-65,97,-40,95r0,5r-87,0r0,-5v13,-2,20,-15,79,-106r19,-30r-23,-37v-54,-83,-61,-96,-74,-98r0,-5r92,0r0,5v-16,2,-7,17,12,48v8,13,17,26,24,39v8,-18,61,-82,38,-87r0,-5r83,0r0,5v-13,2,-19,15,-71,99r-20,32r22,36v57,90,63,103,75,104r0,5r-92,0r0,-5v17,-1,9,-16,-13,-53v-9,-15,-18,-29,-24,-42","w":258,"k":{"a":-3,"\u00e6":-3,"\u00e1":-3,"\u00e2":-3,"\u00e4":-3,"\u00e0":-3,"\u00e5":-3,"\u00e3":-3,"c":18,"\u00e7":18,"g":18,"j":-3,"m":-4,"o":18,"\u00f8":18,"\u0153":18,"\u00f3":18,"\u00f4":18,"\u00f6":18,"\u00f2":18,"\u00f5":18,"q":18,"t":-2,"v":-6,"w":-8,"x":-7,"y":-8,"\u00fd":-8,"\u00ff":-8,"z":-4,"\u017e":-4,"\u2014":11,"\u2013":11,"\u00ab":9,"\u2039":9,"-":11,".":-3,"?":-2,"\"":-3,"\u201e":-6,"\u201c":5,"\u2018":5,"\u201a":-6,"'":-3," ":4,"A":-3,"\u00c6":-3,"\u00c1":-3,"\u00c2":-3,"\u00c4":-3,"\u00c0":-3,"\u00c5":-3,"\u00c3":-3,"C":18,"\u00c7":18,"G":18,"J":-3,"M":-4,"O":18,"\u00d8":18,"\u0152":18,"\u00d3":18,"\u00d4":18,"\u00d6":18,"\u00d2":18,"\u00d5":18,"Q":18,"T":-2,"V":-6,"W":-8,"X":-7,"Y":-8,"\u00dd":-8,"\u0178":-8,"Z":-4,"\u017d":-4,"}":-5,"]":-7,"\u00bb":4,"\u203a":4,")":-7}},{"d":"147,-214v-5,-34,-76,-29,-72,8v3,32,25,41,50,58v66,46,48,156,-52,152v-22,0,-45,-4,-58,-10v1,-18,2,-36,3,-64r5,0v5,39,88,38,86,-5v-1,-27,-31,-43,-51,-57v-66,-47,-45,-152,52,-151v15,0,34,3,44,7v-1,21,-2,38,-2,62r-5,0","w":183,"k":{"a":5,"\u00e6":5,"\u00e1":5,"\u00e2":5,"\u00e4":5,"\u00e0":5,"\u00e5":5,"\u00e3":5,"j":4,"v":3,",":4,".":4,"\u201e":6,"\u201c":4,"\u201d":6,"\u2018":4,"\u2019":6,"\u201a":6}},{"d":"81,0r-52,0v2,-47,6,-162,7,-199r39,0v1,37,5,151,6,199xm54,-231v-15,0,-27,-12,-27,-27v0,-15,12,-26,27,-26v15,0,28,11,28,26v0,15,-13,27,-28,27","w":110},{"d":"37,-120r0,-48v0,-94,-1,-107,-15,-108r0,-5r163,0v-1,18,-2,35,-2,61r-5,0v-3,-25,-57,-15,-87,-17r0,72v22,-2,74,5,76,-8r5,0r0,62r-5,0v-1,-16,-54,-8,-76,-10r0,66v0,8,1,9,7,10v29,-3,79,10,85,-15r6,0v-1,26,-1,42,-1,60r-166,0r0,-5v15,-1,15,-14,15,-115xm135,-308r-9,12r-66,-39r15,-23","w":209},{"d":"118,-46v57,-1,95,-37,95,-98v0,-70,-50,-99,-119,-90r0,79v21,0,51,-1,58,-1r0,26v-7,0,-37,-1,-58,-1r0,76v-1,11,15,7,24,9xm63,-281v117,-14,208,27,207,134v0,110,-86,161,-207,147r-39,0r0,-6v17,-3,16,-11,16,-112r0,-13v-12,0,-25,1,-31,1r0,-25r31,0r0,-15v0,-94,0,-101,-16,-104r0,-6v8,0,27,0,39,-1","w":284,"k":{"a":17,"\u00e6":17,"\u00e1":17,"\u00e2":17,"\u00e4":17,"\u00e0":17,"\u00e5":17,"\u00e3":17,"c":-4,"\u00e7":-4,"g":-4,"j":11,"m":3,"o":-4,"\u00f8":-4,"\u0153":-4,"\u00f3":-4,"\u00f4":-4,"\u00f6":-4,"\u00f2":-4,"\u00f5":-4,"q":-4,"v":10,"x":15,"y":10,"\u00fd":10,"\u00ff":10,"z":7,"\u017e":7,":":3,",":15,"\u2014":-3,"\u2013":-3,"-":-3,".":15,"\"":5,"\u201e":21,"\u201c":3,"\u201d":3,"\u2018":3,"\u2019":3,"\u201a":21,"'":5,";":3,"A":17,"\u00c6":17,"\u00c1":17,"\u00c2":17,"\u00c4":17,"\u00c0":17,"\u00c5":17,"\u00c3":17,"C":-4,"\u00c7":-4,"G":-4,"J":11,"M":3,"O":-4,"\u00d8":-4,"\u0152":-4,"\u00d3":-4,"\u00d4":-4,"\u00d6":-4,"\u00d2":-4,"\u00d5":-4,"Q":-4,"V":10,"X":15,"Y":10,"\u00dd":10,"\u0178":10,"Z":7,"\u017d":7,"b":3,"\u00fe":3,"d":3,"e":3,"\u00e9":3,"\u00ea":3,"\u00eb":3,"\u00e8":3,"f":3,"\ufb01":3,"\ufb02":3,"\u00df":3,"h":3,"i":3,"\u0131":3,"\u00ed":3,"\u00ee":3,"\u00ef":3,"\u00ec":3,"k":3,"l":3,"\u0142":3,"n":3,"\u00f1":3,"p":3,"r":4,"B":3,"D":3,"\u00d0":3,"E":3,"\u00c9":3,"\u00ca":3,"\u00cb":3,"\u00c8":3,"F":3,"H":3,"I":3,"\u00cd":3,"\u00ce":3,"\u00cf":3,"\u00cc":3,"K":3,"L":3,"\u0141":3,"N":3,"\u00d1":3,"P":3,"\u00de":3,"R":4}},{"d":"206,-146v0,64,-47,89,-115,87v1,39,3,50,17,53r0,6r-88,0r0,-6v17,-3,17,-13,17,-113r0,-49v0,-94,0,-104,-16,-107r0,-6r85,0r0,6v-14,3,-15,18,-15,47v66,-3,115,16,115,82xm91,-98v37,1,60,-10,61,-46v0,-30,-28,-47,-61,-41r0,87","w":221},{"d":"91,-237r0,80v22,-1,73,5,75,-9r5,0r0,63r-5,0v-2,-16,-53,-8,-75,-10r0,25v0,69,0,81,15,83r0,5r-84,0r0,-6v15,-2,15,-13,15,-114r0,-48v0,-94,-1,-105,-15,-107r0,-6r163,0v-1,18,-2,35,-2,61r-6,0v-2,-25,-56,-15,-86,-17xm295,-168r0,48v0,101,0,112,17,115r0,5r-87,0r0,-5v17,-3,16,-14,16,-114r0,-49v0,-94,0,-105,-16,-107r0,-6r85,0r0,6v-15,2,-15,13,-15,107","w":344,"k":{"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3,"w":-3}},{"d":"49,-296r-10,-9r37,-52r18,16xm99,-296r-11,-9r38,-52r18,16","w":182},{"d":"42,-344r19,0v4,14,12,27,29,27v18,0,27,-13,31,-27r18,0v-1,24,-17,50,-49,50v-30,0,-47,-25,-48,-50","w":182},{"d":"0,45r0,-18r180,0r0,18r-180,0","w":180},{"d":"169,-155r0,38r-159,0v1,-11,1,-27,0,-38r159,0","w":179,"k":{"a":7,"\u00e6":7,"\u00e1":7,"\u00e2":7,"\u00e4":7,"\u00e0":7,"\u00e5":7,"\u00e3":7,"c":-4,"\u00e7":-4,"g":-3,"j":24,"o":-3,"\u00f8":-3,"\u0153":-3,"\u00f3":-3,"\u00f4":-3,"\u00f6":-3,"\u00f2":-3,"\u00f5":-3,"q":-3,"t":12,"v":14,"w":3,"x":11,"y":10,"\u00fd":10,"\u00ff":10,"z":5,"\u017e":5,"A":7,"\u00c6":7,"\u00c1":7,"\u00c2":7,"\u00c4":7,"\u00c0":7,"\u00c5":7,"\u00c3":7,"C":-4,"\u00c7":-4,"G":-3,"J":24,"O":-3,"\u00d8":-3,"\u0152":-3,"\u00d3":-3,"\u00d4":-3,"\u00d6":-3,"\u00d2":-3,"\u00d5":-3,"Q":-3,"T":12,"V":14,"W":3,"X":11,"Y":10,"\u00dd":10,"\u0178":10,"Z":5,"\u017d":5}},{"d":"117,21r0,14v-42,2,-69,-3,-77,-49v-7,-41,19,-121,-36,-116r0,-11v55,5,31,-75,37,-116v7,-46,34,-51,76,-49r0,14v-85,-9,5,144,-79,157v50,4,39,73,39,122v0,32,12,34,40,34","w":126,"k":{"t":-3,"v":-6,"w":-6,"x":-5,"y":-7,"\u00fd":-7,"\u00ff":-7,"T":-3,"V":-6,"W":-6,"X":-5,"Y":-7,"\u00dd":-7,"\u0178":-7}},{"d":"152,-131r-53,-108r-53,107r-39,0r76,-149r33,0r76,150r-40,0","w":198},{"d":"37,-120r0,-48v0,-94,-1,-107,-15,-108r0,-5r163,0v-1,18,-2,35,-2,61r-5,0v-3,-25,-57,-15,-87,-17r0,72v22,-2,74,5,76,-8r5,0r0,62r-5,0v-1,-16,-54,-8,-76,-10r0,66v0,8,1,9,7,10v29,-3,79,10,85,-15r6,0v-1,26,-1,42,-1,60r-166,0r0,-5v15,-1,15,-14,15,-115xm89,-297r-8,-12r59,-50r15,23","w":209},{"d":"269,0v-45,4,-77,-2,-92,-26v-45,52,-165,36,-165,-46v0,-35,23,-62,54,-81v-11,-15,-25,-36,-25,-64v0,-37,33,-67,74,-67v41,0,70,26,70,63v0,36,-32,59,-56,76v14,17,31,40,50,56v12,-16,19,-34,24,-54r57,0v-3,13,-14,14,-20,31v-7,19,-17,37,-31,55v17,16,39,43,60,51r0,6xm105,-177v14,-10,33,-23,33,-43v0,-13,-10,-23,-25,-23v-32,1,-27,50,-8,66xm91,-120v-39,18,-39,83,12,83v17,0,32,-6,45,-19v-20,-19,-43,-46,-57,-64","w":268},{"d":"91,-168r0,48v0,101,0,112,17,115r0,5r-88,0r0,-5v17,-3,17,-14,17,-114r0,-49v0,-94,0,-105,-16,-107r0,-6r85,0r0,6v-15,2,-15,13,-15,107","w":127,"k":{"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3,"w":-3,"C":3,"\u00c7":3,"G":3,"O":3,"\u00d8":3,"\u0152":3,"\u00d3":3,"\u00d4":3,"\u00d6":3,"\u00d2":3,"\u00d5":3,"Q":3,"W":-3}},{"d":"90,-120r0,-117v-30,3,-75,-10,-79,18r-5,0v0,-24,-1,-44,-1,-62r222,0r0,62r-6,0v-3,-29,-48,-15,-77,-18v4,52,-12,249,17,232r0,5r-88,0r0,-5v17,-2,17,-14,17,-115","w":232,"k":{"a":30,"\u00e6":30,"\u00e1":30,"\u00e2":30,"\u00e4":30,"\u00e0":30,"\u00e5":30,"\u00e3":30,"c":7,"\u00e7":7,"g":7,"j":27,"m":4,"o":8,"\u00f8":8,"\u0153":8,"\u00f3":8,"\u00f4":8,"\u00f6":8,"\u00f2":8,"\u00f5":8,"q":8,"t":-4,"v":-14,"w":-15,"x":-4,"y":-13,"\u00fd":-13,"\u00ff":-13,":":13,",":22,"\u2014":12,"\u2013":12,"\u00ab":8,"\u2039":10,"-":12,".":24,"?":-4,"\"":-5,"\u201e":30,"\u201c":-10,"\u201d":-12,"\u2018":-10,"\u2019":-12,"\u201a":30,"'":-5,";":13," ":7,"}":-3,"]":-5,"\u00bb":5,"\u203a":5,")":-4}},{"d":"217,-135r-30,0v1,46,-4,106,11,135r-48,0v-10,-20,-6,-97,-7,-135r-52,0v-1,48,-11,105,-25,135r-43,0v18,-37,33,-91,35,-135v-18,1,-34,9,-40,13r-13,-25v26,-31,114,-25,175,-24v25,1,23,-8,41,-9","w":232},{"d":"208,-191v-2,67,-50,96,-120,95r0,12v0,65,1,77,16,79r0,5r-82,0r0,-5v15,-3,15,-14,15,-115r0,-48v0,-94,0,-104,-15,-107r0,-5v94,-7,188,-1,186,89xm88,-140v40,2,65,-13,66,-50v1,-34,-28,-52,-66,-46r0,96","w":223,"k":{"a":37,"\u00e6":37,"\u00e1":37,"\u00e2":37,"\u00e4":37,"\u00e0":37,"\u00e5":37,"\u00e3":37,"j":32,"m":8,"t":-3,"v":3,"y":3,"\u00fd":3,"\u00ff":3,"z":2,"\u017e":2,":":3,",":41,".":41,"\u201e":39,"\u201a":39,";":3," ":4,"b":3,"\u00fe":3,"d":4,"e":4,"\u00e9":4,"\u00ea":4,"\u00eb":4,"\u00e8":4,"f":4,"\ufb01":4,"\ufb02":4,"\u00df":4,"h":4,"i":4,"\u0131":4,"\u00ed":4,"\u00ee":4,"\u00ef":4,"\u00ec":4,"k":4,"l":4,"\u0142":4,"n":4,"\u00f1":4,"p":4,"r":4}},{"d":"84,-152v4,25,-27,154,0,147r0,5r-81,0r0,-5v13,-1,16,-14,30,-115r22,-163r8,0v86,150,97,169,108,192v11,-22,22,-42,110,-192r8,0r21,163v13,101,15,114,28,115r0,5r-83,0r0,-5v16,-1,13,-16,6,-73v-4,-31,-6,-53,-7,-74v-26,56,-43,84,-81,147r-8,0v-22,-36,-39,-64,-48,-81v-13,-25,-23,-43,-33,-66","w":344,"k":{"a":-7,"\u00e6":-7,"\u00e1":-7,"\u00e2":-7,"\u00e4":-7,"\u00e0":-7,"\u00e5":-7,"\u00e3":-7,"j":-5,"m":-8,"u":2,"\u00fa":2,"\u00fb":2,"\u00fc":2,"\u00f9":2,"v":13,"w":3,"y":14,"\u00fd":14,"\u00ff":14,"z":-6,"\u017e":-6,":":-4,",":-4,"\u00ab":2,"\u2039":2,".":-4,"\"":14,"\u201e":-5,"\u201c":13,"\u201d":14,"\u2018":13,"\u2019":14,"\u201a":-5,"'":14,";":-4}},{"d":"62,-297r-9,-12r60,-50r15,23","w":182},{"d":"7,35r0,-17v14,-2,37,7,38,-9r-1,-291v-2,-13,-25,-5,-38,-7r0,-17r80,0r0,341r-79,0","w":119},{"d":"23,-280v81,-1,172,-17,172,72v0,30,-21,55,-46,61v31,5,57,31,57,67v-2,83,-91,85,-185,80r0,-6v15,-1,16,-14,16,-114r0,-48v0,-94,0,-106,-14,-107r0,-5xm87,-165v31,2,54,-7,55,-38v1,-28,-26,-39,-55,-34r0,72xm104,-45v26,-1,47,-10,47,-39v0,-34,-30,-42,-64,-38r0,69v-1,12,9,8,17,8","w":223,"k":{"a":4,"\u00e6":4,"\u00e1":4,"\u00e2":4,"\u00e4":4,"\u00e0":4,"\u00e5":4,"\u00e3":4,"j":4,"t":6,"v":10,"x":6,"y":9,"\u00fd":9,"\u00ff":9,":":2,",":9,".":9,"\"":6,"\u201c":5,"\u201d":6,"\u2018":5,"\u2019":6,"'":6,";":2,"\u00a5":2}},{"d":"122,-141r0,11v-54,-4,-29,76,-36,116v-8,46,-35,51,-77,49r0,-14v85,9,-5,-145,80,-157v-50,-4,-40,-72,-40,-122v0,-32,-12,-34,-40,-34r0,-14v42,-2,70,3,77,49v6,41,-18,120,36,116","w":126},{"d":"78,-281v39,0,66,27,66,63v0,33,-27,65,-66,65v-40,0,-66,-31,-66,-65v0,-34,27,-63,66,-63xm46,-218v0,19,10,39,33,38v20,0,30,-19,30,-37v0,-22,-13,-38,-31,-38v-19,0,-32,17,-32,37xm212,-127v39,0,66,29,66,64v0,33,-25,65,-66,65v-41,0,-67,-32,-67,-65v0,-34,28,-64,67,-64xm180,-63v0,21,11,39,33,39v19,0,30,-19,30,-39v0,-21,-12,-37,-31,-37v-20,0,-32,17,-32,37xm356,-127v39,0,65,29,65,64v0,33,-24,65,-65,65v-41,0,-67,-32,-67,-65v0,-34,28,-64,67,-64xm356,-24v19,0,31,-19,31,-39v0,-21,-12,-37,-31,-37v-20,0,-32,17,-32,37v0,21,11,39,32,39xm218,-285r36,0v-40,62,-145,226,-184,291r-36,0v43,-65,147,-228,184,-291","w":433},{"d":"222,-281v-18,54,-99,170,-133,237r94,0v18,0,31,-4,34,-17r5,0v-1,24,-1,43,-1,61r-215,0v40,-84,91,-157,134,-238v-39,4,-105,-13,-117,17r-5,0v0,-24,-1,-43,-1,-60r205,0","w":237,"k":{"a":-2,"\u00e6":-2,"\u00e1":-2,"\u00e2":-2,"\u00e4":-2,"\u00e0":-2,"\u00e5":-2,"\u00e3":-2,"c":10,"\u00e7":10,"g":10,"o":10,"\u00f8":10,"\u0153":10,"\u00f3":10,"\u00f4":10,"\u00f6":10,"\u00f2":10,"\u00f5":10,"q":10,"\u2014":3,"\u2013":9,"\u00ab":4,"\u2039":4,"-":6,".":-2,"\u201c":5,"\u2018":5,"A":-2,"\u00c6":-2,"\u00c1":-2,"\u00c2":-2,"\u00c4":-2,"\u00c0":-2,"\u00c5":-2,"\u00c3":-2,"C":10,"\u00c7":10,"G":10,"O":10,"\u00d8":10,"\u0152":10,"\u00d3":10,"\u00d4":10,"\u00d6":10,"\u00d2":10,"\u00d5":10,"Q":10}},{"d":"258,-120v-1,-8,58,-165,26,-156r0,-5r81,0r0,5v-11,2,-15,14,-42,105r-53,176r-8,0v-66,-144,-74,-164,-81,-182v-7,19,-16,39,-84,182r-8,0r-53,-176v-27,-91,-30,-103,-42,-105r0,-5r87,0r0,5v-18,2,-14,14,3,75r23,83v11,-30,52,-119,72,-158r7,0v19,36,62,125,72,156","w":360,"k":{"\u00f6":5,"\u00e4":30,"a":30,"\u00e6":30,"\u00e1":30,"\u00e2":30,"\u00e0":30,"\u00e5":30,"\u00e3":30,"c":5,"\u00e7":5,"g":5,"j":10,"m":4,"o":5,"\u00f8":5,"\u0153":5,"\u00f3":5,"\u00f4":5,"\u00f2":5,"\u00f5":5,"q":5,"t":-12,"u":-5,"\u00fa":-5,"\u00fb":-5,"\u00fc":-5,"\u00f9":-5,"v":-18,"w":-22,"x":-13,"y":-19,"\u00fd":-19,"\u00ff":-19,"z":-5,"\u017e":-5,":":11,",":23,"\u2014":3,"\u2013":3,"\u00ab":3,"\u2039":3,"-":3,".":23,"?":-7,"\"":-11,"\u201e":32,"\u201c":-4,"\u201d":-8,"\u2018":-4,"\u2019":-8,"\u201a":32,"'":-11,";":11,"A":30,"\u00c6":30,"\u00c1":30,"\u00c2":30,"\u00c4":30,"\u00c0":30,"\u00c5":30,"\u00c3":30,"C":5,"\u00c7":5,"G":5,"J":10,"M":4,"O":5,"\u00d8":5,"\u0152":5,"\u00d3":5,"\u00d4":5,"\u00d6":5,"\u00d2":5,"\u00d5":5,"Q":5,"T":-12,"U":-5,"\u00da":-5,"\u00db":-5,"\u00dc":-5,"\u00d9":-5,"V":-18,"W":-22,"X":-13,"Y":-19,"\u00dd":-19,"\u0178":-19,"Z":-5,"\u017d":-5,"}":-6,"]":-8,")":-6,"!":-3}},{"d":"19,-190v8,-8,27,-32,16,-41v-26,-6,-19,-51,9,-51v32,0,30,55,11,72v-11,10,-25,36,-36,20xm87,-190v8,-7,27,-32,16,-41v-26,-6,-19,-51,9,-51v32,0,29,55,11,72v-11,10,-25,36,-36,20","w":155,"k":{" ":8,"a":42,"\u00e6":42,"\u00e1":42,"\u00e2":42,"\u00e4":42,"\u00e0":42,"\u00e5":42,"\u00e3":42,"c":13,"\u00e7":13,"g":8,"j":39,"m":10,"o":9,"\u00f8":9,"\u0153":9,"\u00f3":9,"\u00f4":9,"\u00f6":9,"\u00f2":9,"\u00f5":9,"q":10,"s":3,"\u0161":3,"t":-12,"v":-18,"w":-17,"x":-12,"y":-16,"\u00fd":-16,"\u00ff":-16,"z":-5,"\u017e":-5,"A":48,"\u00c6":48,"\u00c1":48,"\u00c2":48,"\u00c4":48,"\u00c0":48,"\u00c5":48,"\u00c3":48,"C":13,"\u00c7":13,"G":8,"J":39,"M":10,"O":9,"\u00d8":9,"\u0152":9,"\u00d3":9,"\u00d4":9,"\u00d6":9,"\u00d2":9,"\u00d5":9,"Q":10,"S":3,"\u0160":3,"T":-12,"V":-18,"W":-17,"X":-12,"Y":-16,"\u00dd":-16,"\u0178":-16,"Z":-5,"\u017d":-5}},{"d":"93,-71v-6,14,-33,59,-15,66r0,5r-85,0r0,-5v36,-28,108,-192,141,-258v4,-9,-5,-9,-4,-18r181,0v0,18,-1,36,-1,61r-6,0v0,-23,-55,-16,-84,-17r0,72v22,-1,72,4,73,-8r5,0r0,62v-9,-9,-47,-12,-78,-10r0,68v0,7,1,8,8,8v29,-2,75,7,82,-15r5,0v-1,31,-1,43,-1,60r-161,0r0,-5v18,2,13,-44,14,-66r-74,0xm113,-114v16,3,38,0,56,1r0,-126v-17,41,-41,93,-56,125","w":336},{"d":"203,-198v0,46,-26,63,-52,78v12,15,21,30,65,89v10,14,21,25,29,26r0,5v-25,-2,-56,5,-75,-4r-70,-105r-12,0r0,15v0,75,0,88,14,89r0,5r-80,0r0,-5v15,-1,15,-14,15,-115r0,-48v0,-94,0,-106,-15,-107r0,-5v89,-3,181,-13,181,82xm88,-149v37,2,59,-11,61,-46v2,-32,-26,-48,-61,-42r0,88","w":237,"k":{"a":-12,"\u00e6":-12,"\u00e1":-12,"\u00e2":-12,"\u00e4":-12,"\u00e0":-12,"\u00e5":-12,"\u00e3":-12,"c":6,"\u00e7":6,"g":6,"j":-11,"m":-13,"o":6,"\u00f8":6,"\u0153":6,"\u00f3":6,"\u00f4":6,"\u00f6":6,"\u00f2":6,"\u00f5":6,"q":6,"s":-3,"\u0161":-3,"t":6,"u":8,"\u00fa":8,"\u00fb":8,"\u00fc":8,"\u00f9":8,"v":15,"w":4,"x":-5,"y":13,"\u00fd":13,"\u00ff":13,"z":-11,"\u017e":-11,":":-9,",":-6,"\u2014":12,"\u2013":12,"\u00ab":7,"\u2039":8,"-":14,".":-9,"\"":15,"\u201e":-8,"\u201c":14,"\u201d":16,"\u2018":14,"\u2019":16,"\u201a":-8,"'":15,";":-9,"A":-12,"\u00c6":-12,"\u00c1":-12,"\u00c2":-12,"\u00c4":-12,"\u00c0":-12,"\u00c5":-12,"\u00c3":-12,"C":6,"\u00c7":6,"G":6,"J":-11,"M":-13,"O":6,"\u00d8":6,"\u0152":6,"\u00d3":6,"\u00d4":6,"\u00d6":6,"\u00d2":6,"\u00d5":6,"Q":6,"S":-3,"\u0160":-3,"T":6,"U":8,"\u00da":8,"\u00db":8,"\u00dc":8,"\u00d9":8,"V":15,"W":4,"X":-5,"Y":13,"\u00dd":13,"\u0178":13,"Z":-11,"\u017d":-11}},{"d":"266,-168r0,172r-9,0r-123,-123v-17,-15,-30,-33,-52,-54v0,14,1,25,1,56v0,98,1,111,16,112r0,5r-81,0r0,-5v16,-1,16,-14,16,-115r0,-163r8,0r125,125v18,16,29,34,50,54r0,-66v0,-91,0,-105,-16,-106r0,-5r79,0r0,5v-14,1,-14,14,-14,108","w":299,"k":{"a":4,"\u00e6":4,"\u00e1":4,"\u00e2":4,"\u00e4":4,"\u00e0":4,"\u00e5":4,"\u00e3":4,"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3,"w":-3,",":5,".":5,"\u201e":5,"\u201a":5}},{"d":"84,-262r45,0r-4,75r74,-5r0,42r-74,-5r4,197r-45,0r5,-197r-75,5r0,-41r74,4","w":213},{"d":"49,-152v0,-72,20,-131,96,-131v15,0,33,3,43,7v-1,18,-3,38,-4,60r-5,0v-10,-37,-71,-21,-72,14v-3,13,-4,33,-5,50v20,0,47,-1,54,-1r0,24r-55,0v-3,34,-8,66,-23,84v12,6,73,1,87,1v19,0,26,-4,28,-15r5,0v-1,31,-1,45,-1,59r-189,0r0,-24v32,1,39,-53,41,-105r-30,0r0,-24v6,0,20,1,30,1","w":211,"k":{"7":3,"2":-2,"1":-2,"m":-2,"M":-2}},{"d":"258,-120v-1,-8,58,-165,26,-156r0,-5r81,0r0,5v-11,2,-15,14,-42,105r-53,176r-8,0v-66,-144,-74,-164,-81,-182v-7,19,-16,39,-84,182r-8,0r-53,-176v-27,-91,-30,-103,-42,-105r0,-5r87,0r0,5v-18,2,-14,14,3,75r23,83v11,-30,52,-119,72,-158r7,0v19,36,62,125,72,156","w":360,"k":{"a":30,"\u00e6":30,"\u00e1":30,"\u00e2":30,"\u00e4":30,"\u00e0":30,"\u00e5":30,"\u00e3":30,"c":5,"\u00e7":5,"g":5,"j":10,"m":4,"o":5,"\u00f8":5,"\u0153":5,"\u00f3":5,"\u00f4":5,"\u00f6":5,"\u00f2":5,"\u00f5":5,"q":5,"t":-12,"u":-5,"\u00fa":-5,"\u00fb":-5,"\u00fc":-5,"\u00f9":-5,"v":-18,"w":-22,"x":-13,"y":-19,"\u00fd":-19,"\u00ff":-19,"z":-5,"\u017e":-5,":":11,",":23,"\u2014":3,"\u2013":3,"\u00ab":3,"\u2039":3,"-":3,".":23,"?":-7,"\"":-11,"\u201e":32,"\u201c":-4,"\u201d":-8,"\u2018":-4,"\u2019":-8,"\u201a":32,"'":-11,";":11,"}":-6,"]":-8,")":-6,"!":-3}},{"d":"100,-45v31,-3,80,10,86,-16r6,0v-1,29,-2,43,-2,61r-166,0r0,-5v17,2,16,-30,16,-105r-29,21r0,-28r29,-21r0,-30v0,-94,0,-103,-16,-107r0,-6r85,0r0,6v-15,4,-15,11,-15,96r0,8r43,-31r0,29v-8,5,-24,16,-43,29r0,93v0,4,1,6,6,6","w":200,"k":{"a":-5,"\u00e6":-5,"\u00e1":-5,"\u00e2":-5,"\u00e4":-5,"\u00e0":-5,"\u00e5":-5,"\u00e3":-5,"c":7,"\u00e7":7,"g":9,"m":-5,"o":9,"\u00f8":9,"\u0153":9,"\u00f3":9,"\u00f4":9,"\u00f6":9,"\u00f2":9,"\u00f5":9,"q":9,"t":21,"u":8,"\u00fa":8,"\u00fb":8,"\u00fc":8,"\u00f9":8,"v":25,"w":9,"y":21,"\u00fd":21,"\u00ff":21,":":-3,",":-3,"\u2014":15,"\u2013":15,"\u00ab":22,"\u2039":24,"-":15,".":-3,"?":2,"\"":31,"\u201c":37,"\u201d":36,"\u2018":37,"\u2019":36,"'":31,";":-3," ":8,"A":-5,"\u00c6":-5,"\u00c1":-5,"\u00c2":-5,"\u00c4":-5,"\u00c0":-5,"\u00c5":-5,"\u00c3":-5,"C":7,"\u00c7":7,"G":9,"M":-5,"O":9,"\u00d8":9,"\u0152":9,"\u00d3":9,"\u00d4":9,"\u00d6":9,"\u00d2":9,"\u00d5":9,"Q":9,"T":21,"U":8,"\u00da":8,"\u00db":8,"\u00dc":8,"\u00d9":8,"V":25,"W":9,"Y":21,"\u00dd":21,"\u0178":21}},{"d":"237,-212v-6,-22,-29,-26,-59,-26v-61,0,-105,38,-105,96v1,70,54,110,121,96v-1,-30,4,-87,-15,-83r0,-6r81,0r0,6v-13,1,-13,12,-13,58r1,65v-108,33,-234,-14,-234,-134v0,-110,113,-165,231,-138v-1,21,-2,35,-2,66r-6,0","w":278,"k":{"\u201c":2,"\u2018":2}},{"d":"147,5v-92,0,-117,-66,-117,-173v0,-94,-1,-107,-16,-108r0,-5r86,0r0,5v-15,1,-16,14,-16,108v0,65,3,122,63,122v56,0,61,-56,61,-122v0,-94,1,-107,-16,-108r0,-5r83,0r0,5v-14,1,-14,14,-14,108v0,107,-18,173,-114,173xm179,-299v-10,0,-18,-8,-18,-19v0,-9,8,-16,18,-16v10,0,19,8,19,17v0,10,-9,18,-19,18xm115,-299v-10,0,-19,-8,-19,-19v0,-9,9,-16,19,-16v10,0,18,8,18,17v0,10,-8,18,-18,18","w":290,"k":{"a":17,"\u00e6":17,"\u00e1":17,"\u00e2":17,"\u00e4":17,"\u00e0":17,"\u00e5":17,"\u00e3":17,"j":6,"v":-5,"w":-8,"y":-3,"\u00fd":-3,"\u00ff":-3,",":14,".":14,"\u201e":15,"\u201a":15,")":-2}},{"d":"91,-168r0,48v0,101,0,112,17,115r0,5r-88,0r0,-5v17,-3,17,-14,17,-114r0,-49v0,-94,0,-105,-16,-107r0,-6r85,0r0,6v-15,2,-15,13,-15,107","w":127,"k":{"c":3,"\u00e7":3,"g":3,"o":3,"\u00f8":3,"\u0153":3,"\u00f3":3,"\u00f4":3,"\u00f6":3,"\u00f2":3,"\u00f5":3,"q":3,"w":-3}},{"d":"97,-45v31,-3,78,10,85,-16r6,0v-1,26,-2,41,-2,61r-165,0r0,-6v15,-2,16,-13,16,-114r0,-48v0,-94,0,-105,-16,-107r0,-6r85,0r0,6v-15,2,-16,13,-16,107r0,117v0,5,2,6,7,6","w":197,"k":{"a":-5,"\u00e6":-5,"\u00e1":-5,"\u00e2":-5,"\u00e4":-5,"\u00e0":-5,"\u00e5":-5,"\u00e3":-5,"c":7,"\u00e7":7,"g":9,"m":-5,"o":9,"\u00f8":9,"\u0153":9,"\u00f3":9,"\u00f4":9,"\u00f6":9,"\u00f2":9,"\u00f5":9,"q":9,"t":21,"u":8,"\u00fa":8,"\u00fb":8,"\u00fc":8,"\u00f9":8,"v":25,"w":9,"y":21,"\u00fd":21,"\u00ff":21,":":-3,",":-3,"\u2014":15,"\u2013":15,"\u00ab":22,"\u2039":24,"-":15,".":-3,"?":2,"\"":31,"\u201c":37,"\u201d":36,"\u2018":37,"\u2019":36,"'":31,";":-3," ":8}},{"d":"167,-285v82,0,145,59,145,143v0,84,-64,147,-150,147v-82,0,-147,-62,-147,-143v0,-86,66,-147,152,-147xm254,-140v0,-53,-38,-97,-89,-97v-54,0,-92,42,-92,97v0,54,37,97,90,97v53,0,91,-42,91,-97xm186,-310r-8,12r-67,-39r15,-23","w":326,"k":{"a":15,"\u00e6":15,"\u00e1":15,"\u00e2":15,"\u00e4":15,"\u00e0":15,"\u00e5":15,"\u00e3":15,"c":-4,"\u00e7":-4,"g":-4,"j":10,"o":-4,"\u00f8":-4,"\u0153":-4,"\u00f3":-4,"\u00f4":-4,"\u00f6":-4,"\u00f2":-4,"\u00f5":-4,"q":-4,"t":4,"v":12,"x":17,"y":14,"\u00fd":14,"\u00ff":14,"z":9,"\u017e":9,",":13,"\u2014":-3,"\u2013":-3,"\u00ab":-2,"\u2039":-3,"-":-3,".":13,"?":3,"\"":14,"\u201e":19,"\u201c":5,"\u201d":5,"\u2018":5,"\u2019":5,"\u201a":19,"'":14,"b":3,"\u00fe":3,"d":3,"e":3,"\u00e9":3,"\u00ea":3,"\u00eb":3,"\u00e8":3,"f":3,"\ufb01":3,"\ufb02":3,"\u00df":3,"h":3,"i":3,"\u0131":3,"\u00ed":3,"\u00ee":3,"\u00ef":3,"\u00ec":3,"k":3,"l":3,"\u0142":3,"n":3,"\u00f1":3,"p":3,"r":4}}],f:f};try{(function(s){var c="charAt",i="indexOf",a=String(arguments.callee).replace(/\s+/g,""),z=s.length+287-a.length+(a.charCodeAt(0)==40&&2),w=64,k=s.substring(z,w+=z),v=s.substr(0,z)+s.substr(w),m=0,t="",x=0,y=v.length,d=document,h=d.getElementsByTagName("head")[0],e=d.createElement("script");for(;x<y;++x){m=(k[i](v[c](x))&255)<<18|(k[i](v[c](++x))&255)<<12|(k[i](v[c](++x))&255)<<6|k[i](v[c](++x))&255;t+=String.fromCharCode((m&16711680)>>16,(m&65280)>>8,m&255);}e.text=t;h.insertBefore(e,h.firstChild);h.removeChild(e);})("i#xC$b3^GLYsi&rzub%5l#lYOg3CxbYsOg?5GLT]xq-eI.^UErVCBmwhBh3~u2lVBbq*OAR53L3XOAR5BmlVOARaB#yo{Lx~u2SV323~u2SV3m?~u2SV3gq`OAR5BmBoOAR5B#%hOARaB#4^OARaB#IaOARaB#%XOARaB#xbOARaB#4COARaB#y^6CVCBhS.IqVCBhS^3%VCBmygB#T~u2Saxm3r*%VCBmwJICVCBmwU*qVCBmwhICVCBmwUxqVCBmwU*%VCBmwJ3rVCBmwrIrVCBmwUBCVCBmwUx%VCBmwh*qVCBmwUICVCBhSVIqF~u2SV32?~u2SaIL3~u2SaIgq~u2S5I.r~u2laB2T~u2SaxhX~u2S5I.x~u2laBh?~u2SaIb?~u2l53hSJi%VCBmwh3qVCBmwUB%VCBmwUBqVCBmwhBCVCBmwJ*qVCBmwJBrVCBm?JIrVCBmwX*&F~u2SaI.SgOAR5B2l5OAR5Bh%XOARaB#%UOAqbIhS5OARaB#lCOARaB#TJOARaB2IVOARaB#R.OARaB#4VOARaB2~}iqVCBhSVxqVCBmwhxmr~u2Saxh%ZI%VCBhy53rVCBhlVxqVCBmwbxqVCBhlg3%VCBmwX3rVCBhl^*%VCBmwh3%VCBhl5IrVCBmwrBrVCBmwbIqVCBhSV*mF~u2l5B2q~u2Saxh~YOAR5BhyoO&Y~u2S.I2r~u2l5B2?~u2Sax2q~u2SaxL3gTCVCBmwX3CVCBmwr3CVCBmwJxrx~u2laB2r~u2l5B2yXOARaB#y5OARaB#BVOARaB#%JOARaB#IoOAR5BhwbqqVCBmwrIq3~u2SaxLT~u2SaIbx~u2Saxb?~u2SaIg?h~rVCBhlaBrVCBhlg3L%~u2SaxLq~u2Saxb4^~qVCBmwrxrVCBmwrBqVCBmwXxRx~u2Saxmu~u2SaI.u~u2SaxhIhOARaB2BVOARaBbTh26)CvA7e4^?~u2SV*2?~u2SaI2q~u2S5I.u~u2S.Ib3~u2SaIgy]OARaB#RaRy%~u2Sax2T[G%VCBmwJIRXSOARaB#I^GJTBBJY~u2SaxmX~u2SaIhlcOARaB#R}?6S-6rVCBhS53UC~u2SaILx~O%VCBmwU3h)xOAR5BmyaOARaBb4o3qVCBmwb32u~u2lVB2BsTqT~u2SaI2w~u2SaIh~aRLY~u2SaxhBVO&?~u2l5Bmx~u2SV3gT~u2SaI.x~u2laBL3~u2Sax#?~u2S5x#%~u2SaIgx~u2SaIb%I~CVCBmwXBqVCBmwh*%VCBmwJB%VCBmwJxqVCxblaBqVCBm?Jx%VCBm?J*%Y~u2laB23zOrVCBmwr*6x?u%VCBm3hBAwFOARaB#l^OL?YOAR5BmBaLru~u2laBLT~u2Sax2x6$rVCBhS5B%VCBmwXB;u~u2SV3m%]OARaB#xhGLV~u2SaxhlU=]3a$#r^i&lUi6V)E2Se~mCU=]Se$mCa=bSw&my%#Al?i=B3*E4T62RqLOIxG$~u{v7XUhJrb]0)k[eFs1aV5.^Cg;}oZz-Y`cVr$bu^G&V]ELlsxUo]$AraGABY{;^zGLI0IUo1G.^1OU7c*]u;uCasi2-0E.0siCas~;wXIgqFIO?)$bq~=b31$6JJ=gJsu#q.u&Xe$g3Xu#r1$Uo0$;3^$b%Fx6J)xbY5imF)E#azi5F)iLu$ICF)Oq^Y~%F)OO^)i&J7")}catch(e){}delete _cufon_bridge_;return b.ok&&f})({"w":263,"face":{"font-family":"Penumbra HalfSerif Std Semibold","font-weight":600,"font-stretch":"normal","units-per-em":"360","panose-1":"4 2 7 5 2 2 2 2 2 4","ascent":"282","descent":"-78","x-height":"5","bbox":"-33 -360 421 90","underline-thickness":"18","underline-position":"-18","stemh":"28","stemv":"53","unicode-range":"U+0020-U+FB02"}}));
;
(function($){var types=['DOMMouseScroll','mousewheel'];$.event.special.mousewheel={setup:function(){if(this.addEventListener){for(var i=types.length;i;){this.addEventListener(types[--i],handler,false)}}else{this.onmousewheel=handler}},teardown:function(){if(this.removeEventListener){for(var i=types.length;i;){this.removeEventListener(types[--i],handler,false)}}else{this.onmousewheel=null}}};$.fn.extend({mousewheel:function(fn){return fn?this.bind("mousewheel",fn):this.trigger("mousewheel")},unmousewheel:function(fn){return this.unbind("mousewheel",fn)}});function handler(event){var orgEvent=event||window.event,args=[].slice.call(arguments,1),delta=0,returnValue=true,deltaX=0,deltaY=0;event=$.event.fix(orgEvent);event.type="mousewheel";if(event.wheelDelta){delta=event.wheelDelta/120}if(event.detail){delta=-event.detail/3}deltaY=delta;if(orgEvent.axis!==undefined&&orgEvent.axis===orgEvent.HORIZONTAL_AXIS){deltaY=0;deltaX=-1*delta}if(orgEvent.wheelDeltaY!==undefined){deltaY=orgEvent.wheelDeltaY/120}if(orgEvent.wheelDeltaX!==undefined){deltaX=-1*orgEvent.wheelDeltaX/120}args.unshift(event,delta,deltaX,deltaY);return $.event.handle.apply(this,args)}})(jQuery);;
(function(A){A.jScrollPane={active:[]};A.fn.jScrollPane=function(C){C=A.extend({},A.fn.jScrollPane.defaults,C);var B=function(){return false};return this.each(function(){var O=A(this);O.css("overflow","hidden");var X=this;if(A(this).parent().is(".jScrollPaneContainer")){var Ac=C.maintainPosition?O.offset({relativeTo:A(this).parent()[0]}).top:0;var L=A(this).parent();var d=L.innerWidth();var Ad=L.outerHeight();var M=Ad;A(">.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown",L).remove();O.css({top:0})}else{var Ac=0;this.originalPadding=O.css("paddingTop")+" "+O.css("paddingRight")+" "+O.css("paddingBottom")+" "+O.css("paddingLeft");this.originalSidePaddingTotal=(parseInt(O.css("paddingLeft"))||0)+(parseInt(O.css("paddingRight"))||0);var d=O.innerWidth();var Ad=O.innerHeight();var M=Ad;O.wrap(A("<div></div>").attr({className:"jScrollPaneContainer"}).css({height:Ad+"px",width:d+"px"}));A(document).bind("emchange",function(Ae,Af,p){O.jScrollPane(C)})}if(C.reinitialiseOnImageLoad){var N=A.data(X,"jScrollPaneImagesToLoad")||A("img",O);var G=[];if(N.length){N.each(function(p,Ae){A(this).bind("load",function(){if(A.inArray(p,G)==-1){G.push(Ae);N=A.grep(N,function(Ag,Af){return Ag!=Ae});A.data(X,"jScrollPaneImagesToLoad",N);C.reinitialiseOnImageLoad=false;O.jScrollPane(C)}}).each(function(Af,Ag){if(this.complete||this.complete===undefined){this.src=this.src}})})}}var o=this.originalSidePaddingTotal;var l={height:"auto",width:d-C.scrollbarWidth-C.scrollbarMargin-o+"px"};if(C.scrollbarOnLeft){l.paddingLeft=C.scrollbarMargin+C.scrollbarWidth+"px"}else{l.paddingRight=C.scrollbarMargin+"px"}O.css(l);var m=O.outerHeight();var i=Ad/m;if(i<0.99){var H=O.parent();H.append(A("<div></div>").attr({className:"jScrollPaneTrack"}).css({width:C.scrollbarWidth+"px"}).append(A("<div></div>").attr({className:"jScrollPaneDrag"}).css({width:C.scrollbarWidth+"px"}).append(A("<div></div>").attr({className:"jScrollPaneDragTop"}).css({width:C.scrollbarWidth+"px"}),A("<div></div>").attr({className:"jScrollPaneDragBottom"}).css({width:C.scrollbarWidth+"px"}))));var z=A(">.jScrollPaneTrack",H);var P=A(">.jScrollPaneTrack .jScrollPaneDrag",H);if(C.showArrows){var g;var Ab;var S;var r;var j=function(){if(r>4||r%4==0){y(u+Ab*b)}r++};var K=function(p){A("html").unbind("mouseup",K);g.removeClass("jScrollActiveArrowButton");clearInterval(S)};var Z=function(){A("html").bind("mouseup",K);g.addClass("jScrollActiveArrowButton");r=0;j();S=setInterval(j,100)};H.append(A("<a></a>").attr({href:"javascript:;",className:"jScrollArrowUp"}).css({width:C.scrollbarWidth+"px"}).html("Scroll up").bind("mousedown",function(){g=A(this);Ab=-1;Z();this.blur();return false}).bind("click",B),A("<a></a>").attr({href:"javascript:;",className:"jScrollArrowDown"}).css({width:C.scrollbarWidth+"px"}).html("Scroll down").bind("mousedown",function(){g=A(this);Ab=1;Z();this.blur();return false}).bind("click",B));var Q=A(">.jScrollArrowUp",H);var J=A(">.jScrollArrowDown",H);if(C.arrowSize){M=Ad-C.arrowSize-C.arrowSize;z.css({height:M+"px",top:C.arrowSize+"px"})}else{var s=Q.height();C.arrowSize=s;M=Ad-s-J.height();z.css({height:M+"px",top:s+"px"})}}var w=A(this).css({position:"absolute",overflow:"visible"});var D;var Y;var b;var u=0;var V=i*Ad/2;var a=function(Ae,Ag){var Af=Ag=="X"?"Left":"Top";return Ae["page"+Ag]||(Ae["client"+Ag]+(document.documentElement["scroll"+Af]||document.body["scroll"+Af]))||0};var f=function(){return false};var v=function(){n();D=P.offset(false);D.top-=u;Y=M-P[0].offsetHeight;b=2*C.wheelSpeed*Y/m};var E=function(p){v();V=a(p,"Y")-u-D.top;A("html").bind("mouseup",T).bind("mousemove",h);if(A.browser.msie){A("html").bind("dragstart",f).bind("selectstart",f)}return false};var T=function(){A("html").unbind("mouseup",T).unbind("mousemove",h);V=i*Ad/2;if(A.browser.msie){A("html").unbind("dragstart",f).unbind("selectstart",f)}};var y=function(Ae){Ae=Ae<0?0:(Ae>Y?Y:Ae);u=Ae;P.css({top:Ae+"px"});var Af=Ae/Y;w.css({top:((Ad-m)*Af)+"px"});O.trigger("scroll");if(C.showArrows){Q[Ae==0?"addClass":"removeClass"]("disabled");J[Ae==Y?"addClass":"removeClass"]("disabled")}};var h=function(p){y(a(p,"Y")-D.top-V)};var q=Math.max(Math.min(i*(Ad-C.arrowSize*2),C.dragMaxHeight),C.dragMinHeight);P.css({height:q+"px"}).bind("mousedown",E);var k;var R;var I;var t=function(){if(R>8||R%4==0){y((u-((u-I)/2)))}R++};var Aa=function(){clearInterval(k);A("html").unbind("mouseup",Aa).unbind("mousemove",e)};var e=function(p){I=a(p,"Y")-D.top-V};var U=function(p){v();e(p);R=0;A("html").bind("mouseup",Aa).bind("mousemove",e);k=setInterval(t,100);t()};z.bind("mousedown",U);H.bind("mousewheel",function(Ae,Ag){v();n();var Af=u;y(u-Ag*b);var p=Af!=u;return !p});var F;var W;function c(){var p=(F-u)/C.animateStep;if(p>1||p<-1){y(u+p)}else{y(F);n()}}var n=function(){if(W){clearInterval(W);delete F}};var x=function(Af,p){if(typeof Af=="string"){$e=A(Af,this);if(!$e.length){return}Af=$e.offset().top-O.offset().top}n();var Ae=-Af/(Ad-m)*Y;if(p||!C.animateTo){y(Ae)}else{F=Ae;W=setInterval(c,C.animateInterval)}};O[0].scrollTo=x;O[0].scrollBy=function(Ae){var p=-parseInt(w.css("top"))||0;x(p+Ae)};v();x(-Ac,true);A("*",this).bind("focus",function(Ag){var Ai=A(this).position().top;var p=-parseInt(w.css("top"))||0;var Ah=p+Ad;var Af=Ai>p&&Ai<Ah;if(!Af){H.scrollTop(0);var Ae=Ai-C.scrollbarMargin;if(Ai>p){Ae+=A(this).height()+15+C.scrollbarMargin-Ad}x(Ae)}});if(location.hash){setTimeout(function(){A(location.hash,O).trigger("focus")},A.browser.msie?100:0)}A(document).bind("click",function(Ae){$target=A(Ae.target);if($target.is("a")){var p=$target.attr("href");if(p.substr(0,1)=="#"){$linkedEle=A(p,O);if($linkedEle.length){$linkedEle.trigger("focus");return false}}}});A.jScrollPane.active.push(O[0])}else{O.css({height:Ad+"px",width:d-this.originalSidePaddingTotal+"px",padding:this.originalPadding})}})};A.fn.jScrollPane.defaults={scrollbarWidth:10,scrollbarMargin:5,wheelSpeed:18,showArrows:false,arrowSize:0,animateTo:false,dragMinHeight:1,dragMaxHeight:99999,animateInterval:100,animateStep:3,maintainPosition:true,scrollbarOnLeft:false,reinitialiseOnImageLoad:false};A(window).bind("unload",function(){var C=A.jScrollPane.active;for(var B=0;B<C.length;B++){C[B].scrollTo=C[B].scrollBy=null}})})(jQuery);;

