/*=:project
  scalable Inman Flash Replacement (sIFR) version 3, revision 407

  =:file
    Copyright: 2006 Mark Wubben.
    Author: Mark Wubben, <http://novemberborn.net/>

  =:history
    * IFR: Shaun Inman
    * sIFR 1: Mike Davidson, Shaun Inman and Tomas Jogin
    * sIFR 2: Mike Davidson, Shaun Inman, Tomas Jogin and Mark Wubben

  =:license
    This software is licensed and provided under the CC-GNU LGPL.
    See <http://creativecommons.org/licenses/LGPL/2.1/>    
*/

var sIFR=new function(){var O=this;var E={ACTIVE:"sIFR-active",UNLOADING:"sIFR-unloading",REPLACED:"sIFR-replaced",IGNORE:"sIFR-ignore",ALTERNATE:"sIFR-alternate",CLASS:"sIFR-class",LAYOUT:"sIFR-layout",FLASH:"sIFR-flash",FIX_FOCUS:"sIFR-fixfocus",DUMMY:"sIFR-dummy"};E.IGNORE_CLASSES=[E.REPLACED,E.IGNORE,E.ALTERNATE];this.MIN_FONT_SIZE=6;this.MAX_FONT_SIZE=126;this.FLASH_PADDING_BOTTOM=5;this.VERSION="407";this.isActive=false;this.isEnabled=true;this.fixHover=true;this.autoInitialize=true;this.setPrefetchCookie=true;this.cookiePath="/";this.domains=[];this.forceWidth=true;this.fitExactly=false;this.forceTextTransform=true;this.useDomLoaded=true;this.useStyleCheck=false;this.hasFlashClassSet=false;this.repaintOnResize=true;this.replacements=[];var L=0;var R=false;function Z(){}function D(c){function d(e){return e.toLocaleUpperCase()}this.normalize=function(e){return e.replace(/\n|\r|\xA0/g,D.SINGLE_WHITESPACE).replace(/\s+/g,D.SINGLE_WHITESPACE)};this.textTransform=function(e,f){switch(e){case"uppercase":return f.toLocaleUpperCase();case"lowercase":return f.toLocaleLowerCase();case"capitalize":return f.replace(/^\w|\s\w/g,d)}return f};this.toHexString=function(e){if(e.charAt(0)!="#"||e.length!=4&&e.length!=7){return e}e=e.substring(1);return"0x"+(e.length==3?e.replace(/(.)(.)(.)/,"$1$1$2$2$3$3"):e)};this.toJson=function(g,f){var e="";switch(typeof (g)){case"string":e='"'+f(g)+'"';break;case"number":case"boolean":e=g.toString();break;case"object":e=[];for(var h in g){if(g[h]==Object.prototype[h]){continue}e.push('"'+h+'":'+this.toJson(g[h]))}e="{"+e.join(",")+"}";break}return e};this.convertCssArg=function(e){if(!e){return{}}if(typeof (e)=="object"){if(e.constructor==Array){e=e.join("")}else{return e}}var l={};var m=e.split("}");for(var h=0;h<m.length;h++){var k=m[h].match(/([^\s{]+)\s*\{(.+)\s*;?\s*/);if(!k||k.length!=3){continue}if(!l[k[1]]){l[k[1]]={}}var g=k[2].split(";");for(var f=0;f<g.length;f++){var n=g[f].match(/\s*([^:\s]+)\s*\:\s*([^;]+)/);if(!n||n.length!=3){continue}l[k[1]][n[1]]=n[2].replace(/\s+$/,"")}}return l};this.extractFromCss=function(g,f,i,e){var h=null;if(g&&g[f]&&g[f][i]){h=g[f][i];if(e){delete g[f][i]}}return h};this.cssToString=function(f){var g=[];for(var e in f){var j=f[e];if(j==Object.prototype[e]){continue}g.push(e,"{");for(var i in j){if(j[i]==Object.prototype[i]){continue}var h=j[i];if(D.UNIT_REMOVAL_PROPERTIES[i]){h=parseInt(h,10)}g.push(i,":",h,";")}g.push("}")}return g.join("")};this.escape=function(e){return escape(e).replace(/\+/g,"%2B")};this.encodeVars=function(e){return e.join("&").replace(/%/g,"%25")};this.copyProperties=function(g,f){for(var e in g){if(f[e]===undefined){f[e]=g[e]}}return f};this.domain=function(){var f="";try{f=document.domain}catch(g){}return f};this.domainMatches=function(h,g){if(g=="*"||g==h){return true}var f=g.lastIndexOf("*");if(f>-1){g=g.substr(f+1);var e=h.lastIndexOf(g);if(e>-1&&(e+g.length)==h.length){return true}}return false};this.uriEncode=function(e){return encodeURI(decodeURIComponent(e))};this.delay=function(f,h,g){var e=Array.prototype.slice.call(arguments,3);setTimeout(function(){h.apply(g,e)},f)}}D.UNIT_REMOVAL_PROPERTIES={leading:true,"margin-left":true,"margin-right":true,"text-indent":true};D.SINGLE_WHITESPACE=" ";function U(e){var d=this;function c(g,j,h){var k=d.getStyleAsInt(g,j,e.ua.ie);if(k==0){k=g[h];for(var f=3;f<arguments.length;f++){k-=d.getStyleAsInt(g,arguments[f],true)}}return k}this.getBody=function(){return document.getElementsByTagName("body")[0]||null};this.querySelectorAll=function(f){return window.parseSelector(f)};this.addClass=function(f,g){if(g){g.className=((g.className||"")==""?"":g.className+" ")+f}};this.removeClass=function(f,g){if(g){g.className=g.className.replace(new RegExp("(^|\\s)"+f+"(\\s|$)"),"").replace(/^\s+|(\s)\s+/g,"$1")}};this.hasClass=function(f,g){return new RegExp("(^|\\s)"+f+"(\\s|$)").test(g.className)};this.hasOneOfClassses=function(h,g){for(var f=0;f<h.length;f++){if(this.hasClass(h[f],g)){return true}}return false};this.ancestorHasClass=function(g,f){g=g.parentNode;while(g&&g.nodeType==1){if(this.hasClass(f,g)){return true}g=g.parentNode}return false};this.create=function(f,g){var h=document.createElementNS?document.createElementNS(U.XHTML_NS,f):document.createElement(f);if(g){h.className=g}return h};this.getComputedStyle=function(h,i){var f;if(document.defaultView&&document.defaultView.getComputedStyle){var g=document.defaultView.getComputedStyle(h,null);f=g?g[i]:null}else{if(h.currentStyle){f=h.currentStyle[i]}}return f||""};this.getStyleAsInt=function(g,i,f){var h=this.getComputedStyle(g,i);if(f&&!/px$/.test(h)){return 0}return parseInt(h)||0};this.getWidthFromStyle=function(f){return c(f,"width","offsetWidth","paddingRight","paddingLeft","borderRightWidth","borderLeftWidth")};this.getHeightFromStyle=function(f){return c(f,"height","offsetHeight","paddingTop","paddingBottom","borderTopWidth","borderBottomWidth")};this.getDimensions=function(j){var h=j.offsetWidth;var f=j.offsetHeight;if(h==0||f==0){for(var g=0;g<j.childNodes.length;g++){var k=j.childNodes[g];if(k.nodeType!=1){continue}h=Math.max(h,k.offsetWidth);f=Math.max(f,k.offsetHeight)}}return{width:h,height:f}};this.getViewport=function(){return{width:window.innerWidth||document.documentElement.clientWidth||this.getBody().clientWidth,height:window.innerHeight||document.documentElement.clientHeight||this.getBody().clientHeight}};this.blurElement=function(g){try{g.blur();return }catch(h){}var f=this.create("input");f.style.width="0px";f.style.height="0px";g.parentNode.appendChild(f);f.focus();f.blur();f.parentNode.removeChild(f)}}U.XHTML_NS="http://www.w3.org/1999/xhtml";function H(m){var d=navigator.userAgent.toLowerCase();var l=(navigator.product||"").toLowerCase();var f=navigator.platform.toLowerCase();this.parseVersion=function(e){return e.replace(/(^|\D)(\d)(?=\D|$)/g,"$10000$2")};this.macintosh=/^mac/.test(f);this.windows=/^win/.test(f);this.quicktime=false;this.opera=/opera/.test(d);this.konqueror=/konqueror/.test(l);this.ie=false/*@cc_on||true@*/;this.ieSupported=this.ie&&!/ppc|smartphone|iemobile|msie\s5\.5/.test(d)/*@cc_on&&@_jscript_version>=5.5@*/;this.ieWin=this.ie&&this.windows/*@cc_on&&@_jscript_version>=5.1@*/;this.windows=this.windows&&(!this.ie||this.ieWin);this.ieMac=this.ie&&this.macintosh/*@cc_on&&@_jscript_version<5.1@*/;this.macintosh=this.macintosh&&(!this.ie||this.ieMac);this.safari=/safari/.test(d);this.webkit=!this.konqueror&&/applewebkit/.test(d);this.khtml=this.webkit||this.konqueror;this.gecko=!this.webkit&&l=="gecko";this.ieVersion=this.ie&&/.*msie\s(\d\.\d)/.exec(d)?this.parseVersion(RegExp.$1):"0";this.operaVersion=this.opera&&/.*opera(\s|\/)(\d+\.\d+)/.exec(d)?this.parseVersion(RegExp.$2):"0";this.webkitVersion=this.webkit&&/.*applewebkit\/(\d+).*/.exec(d)?this.parseVersion(RegExp.$1):"0";this.geckoVersion=this.gecko&&/.*rv:\s*([^\)]+)\)\s+gecko/.exec(d)?this.parseVersion(RegExp.$1):"0";this.konquerorVersion=this.konqueror&&/.*konqueror\/([\d\.]+).*/.exec(d)?this.parseVersion(RegExp.$1):"0";this.flashVersion=0;if(this.ieWin){var h;var k=false;try{h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(j){try{h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");this.flashVersion=6;h.AllowScriptAccess="always"}catch(j){k=this.flashVersion==6}if(!k){try{h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(j){}}}if(!k&&h){this.flashVersion=parseFloat(/([\d,?]+)/.exec(h.GetVariable("$version"))[1].replace(/,/g,"."))}}else{if(navigator.plugins&&navigator.plugins["Shockwave Flash"]){this.flashVersion=parseFloat(/(\d+\.?\d*)/.exec(navigator.plugins["Shockwave Flash"].description)[1]);var g=0;while(this.flashVersion>=H.MIN_FLASH_VERSION&&g<navigator.mimeTypes.length){var c=navigator.mimeTypes[g];if(c.type=="application/x-shockwave-flash"&&c.enabledPlugin.description.toLowerCase().indexOf("quicktime")>-1){this.flashVersion=0;this.quicktime=true}g++}}}this.flash=this.flashVersion>=H.MIN_FLASH_VERSION;this.transparencySupport=this.macintosh||this.windows;this.computedStyleSupport=this.ie||!!document.defaultView.getComputedStyle;this.requiresPrefetch=this.ieWin||this.khtml;this.fixFocus=this.gecko&&this.windows;this.nativeDomLoaded=this.gecko||this.webkit&&this.webkitVersion>=this.parseVersion("525")||this.konqueror&&this.konquerorMajor>this.parseVersion("03")||this.opera;this.mustCheckStyle=this.khtml||this.opera;this.forcePageLoad=this.webkit&&this.webkitVersion<this.parseVersion("523");this.properDocument=typeof (document.location)=="object";this.supported=this.flash&&this.properDocument&&(!this.ie||this.ieSupported)&&this.computedStyleSupport&&(!this.opera||this.operaVersion>=this.parseVersion("9.50"))&&(!this.webkit||this.webkitVersion>=this.parseVersion("412"))&&(!this.gecko||this.geckoVersion>=this.parseVersion("1.8.0.12"))&&(!this.konqueror)}H.MIN_FLASH_VERSION=8;function F(c){this.fix=c.ua.ieWin&&window.location.hash!="";var d;this.cache=function(){d=document.title};function e(){document.title=d}this.restore=function(){if(this.fix){setTimeout(e,0)}}}function S(f){var j=null;function g(){try{if(f.ua.ie||document.readyState!="loaded"&&document.readyState!="complete"){document.documentElement.doScroll("left")}}catch(k){return setTimeout(g,10)}c()}function c(){if(f.useStyleCheck){e()}else{if(!f.ua.mustCheckStyle){h(null,true)}}}function e(){j=f.dom.create("div",E.DUMMY);f.dom.getBody().appendChild(j);d()}function d(){if(f.dom.getComputedStyle(j,"marginLeft")=="42px"){i()}else{setTimeout(d,10)}}function i(){if(j&&j.parentNode){j.parentNode.removeChild(j)}j=null;h(null,true)}function h(k,l){f.initialize(l);if(k&&k.type=="load"){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",h,false)}if(window.removeEventListener){window.removeEventListener("load",h,false)}}}this.attach=function(){if(window.addEventListener){window.addEventListener("load",h,false)}else{window.attachEvent("onload",h)}if(!f.useDomLoaded||f.ua.forcePageLoad||f.ua.ie&&window.top!=window){return }if(f.ua.nativeDomLoaded){document.addEventListener("DOMContentLoaded",c,false)}else{if(f.ua.ie||f.ua.khtml){g()}}}}var Q="sifrFetch";function N(c){var e=false;this.fetchMovies=function(f){if(c.setPrefetchCookie&&new RegExp(";?"+Q+"=true;?").test(document.cookie)){return }try{e=true;d(f)}catch(g){if(c.debug){throw g}}if(c.setPrefetchCookie){document.cookie=Q+"=true;path="+c.cookiePath}};this.clear=function(){if(!e){return }try{var f=document.getElementsByTagName("script");for(var g=f.length-1;g>=0;g--){var h=f[g];if(h.type=="sifr/prefetch"){h.parentNode.removeChild(h)}}}catch(j){}};function d(f){for(var g=0;g<f.length;g++){document.write('<script defer type="sifr/prefetch" src="'+f[g].src+'"><\/script>')}}}function Y(d){var c={};function e(g,f,h){return g+","+f+","+h}this.reset=function(h,p,g){var n=c[e(h,p,g)];for(var m=0;!n&&m<d.replacements.length;m++){var k=d.replacements[m];var l=k.getFlashElement();var o=l.getAttribute("width");var f=l.getAttribute("height");if(o==h&&f==p){var j=k.call("getAmnesiacId");if(j==g){n=k}else{c[e(o,f,j)]=k}}}if(n){n.resetMovie();return true}return false}}function K(d,g,f,c,e){this.sIFR=d;this.id=g;this.vars=f;this.movie=null;this.__forceWidth=c;this.__events=e;this.__resizing=0}K.prototype={getFlashElement:function(){return document.getElementById(this.id)},getAlternate:function(){return document.getElementById(this.id+"_alternate")},getAncestor:function(){var c=this.getFlashElement().parentNode;return !this.sIFR.dom.hasClass(E.FIX_FOCUS,c)?c:c.parentNode},available:function(){var c=this.getFlashElement();return c&&c.parentNode},call:function(c){var d=this.getFlashElement();return Function.prototype.apply.call(d[c],d,Array.prototype.slice.call(arguments,1))},attempt:function(){if(!this.available()){return false}try{this.call.apply(this,arguments)}catch(c){if(this.sIFR.debug){throw c}return false}return true},updateVars:function(c,e){for(var d=0;d<this.vars.length;d++){if(this.vars[d].split("=")[0]==c){this.vars[d]=c+"="+e;break}}var f=this.sIFR.util.encodeVars(this.vars);this.movie.injectVars(this.getFlashElement(),f);this.movie.injectVars(this.movie.html,f)},storeSize:function(c,d){this.movie.setSize(c,d);this.updateVars(c,d)},fireEvent:function(c){if(this.available()&&this.__events[c]){this.sIFR.util.delay(0,this.__events[c],this,this)}},resizeFlashElement:function(c,d,e){if(!this.available()){return }this.__resizing++;var f=this.getFlashElement();f.setAttribute("height",c);this.updateVars("renderheight",c);this.storeSize("height",c);if(d!==null){f.setAttribute("width",d);this.movie.setSize("width",d)}if(this.__events.onReplacement){this.sIFR.util.delay(0,this.__events.onReplacement,this,this);delete this.__events.onReplacement}if(e){this.sIFR.util.delay(0,function(){this.attempt("scaleMovie");this.__resizing--},this)}else{this.__resizing--}},blurFlashElement:function(){if(this.available()){this.sIFR.dom.blurElement(this.getFlashElement())}},resetMovie:function(){this.sIFR.util.delay(0,this.movie.reset,this.movie,this.getFlashElement(),this.getAlternate())},resizeAfterScale:function(){if(this.available()&&this.__resizing==0){this.sIFR.util.delay(0,this.resize,this)}},resize:function(){if(!this.available()){return }this.__resizing++;var g=this.getFlashElement();var f=g.offsetWidth;if(f==0){return }var e=g.getAttribute("width");var l=g.getAttribute("height");var m=this.getAncestor();var o=this.sIFR.dom.getHeightFromStyle(m);g.style.width="1px";g.style.height="1px";m.style.minHeight=o+"px";var c=this.getAlternate().childNodes;var n=[];for(var k=0;k<c.length;k++){var h=c[k].cloneNode(true);n.push(h);m.appendChild(h)}var d=this.sIFR.dom.getWidthFromStyle(m);for(var k=0;k<n.length;k++){m.removeChild(n[k])}g.style.width=g.style.height=m.style.minHeight="";g.setAttribute("width",this.__forceWidth?d:e);g.setAttribute("height",l);if(sIFR.ua.ie){g.style.display="none";var j=g.offsetHeight;g.style.display=""}if(d!=f){if(this.__forceWidth){this.storeSize("width",d)}this.attempt("resize",d)}this.__resizing--},replaceText:function(g,j){var d=this.sIFR.util.escape(g);if(!this.attempt("replaceText",d)){return false}this.updateVars("content",d);var f=this.getAlternate();if(j){while(f.firstChild){f.removeChild(f.firstChild)}for(var c=0;c<j.length;c++){f.appendChild(j[c])}}else{try{f.innerHTML=g}catch(h){}}return true},changeCSS:function(c){c=this.sIFR.util.escape(this.sIFR.util.cssToString(this.sIFR.util.convertCssArg(c)));this.updateVars("css",c);return this.attempt("changeCSS",c)}};var X=new function(){this.create=function(o,j,i,f,e,g,n,l,h,m){var k=o.ua.ie?d:c;return new k(o,j,i,f,e,g,n,["flashvars",l,"wmode",h,"bgcolor",m,"allowScriptAccess","always","quality","best"])};function c(r,l,h,f,e,g,q,n){var m=r.dom.create("object",E.FLASH);var p=["type","application/x-shockwave-flash","id",f,"name",f,"data",e,"width",g,"height",q];for(var o=0;o<p.length;o+=2){m.setAttribute(p[o],p[o+1])}var j=m;if(h){j=W.create("div",E.FIX_FOCUS);j.appendChild(m)}for(var o=0;o<n.length;o+=2){if(n[o]=="name"){continue}var k=W.create("param");k.setAttribute("name",n[o]);k.setAttribute("value",n[o+1]);m.appendChild(k)}while(l.firstChild){l.removeChild(l.firstChild)}l.appendChild(j);this.html=j.cloneNode(true)}c.prototype={reset:function(e,f){e.parentNode.replaceChild(this.html.cloneNode(true),e)},setSize:function(e,f){this.html.setAttribute(e,f)},injectVars:function(e,g){var h=e.getElementsByTagName("param");for(var f=0;f<h.length;f++){if(h[f].getAttribute("name")=="flashvars"){h[f].setAttribute("value",g);break}}}};function d(o,j,h,f,e,g,n,k){this.dom=o.dom;this.html='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="'+f+'" width="'+g+'" height="'+n+'" class="'+E.FLASH+'"><param name="movie" value="'+e+'"></param></object>';var m="";for(var l=0;l<k.length;l+=2){m+='<param name="'+k[l]+'" value="'+k[l+1]+'"></param>'}this.html=this.html.replace(/(<\/object>)/,m+"$1");j.innerHTML=this.html}d.prototype={reset:function(f,g){g=g.cloneNode(true);var e=f.parentNode;e.innerHTML=this.html;e.appendChild(g)},setSize:function(e,f){this.html=this.html.replace(e=="height"?/(height)="\d+"/:/(width)="\d+"/,'$1="'+f+'"')},injectVars:function(e,f){if(e!=this.html){return }this.html=this.html.replace(/(flashvars(=|\"\svalue=)\")[^\"]+/,"$1"+f)}}};this.errors=new Z(O);var A=this.util=new D(O);var W=this.dom=new U(O);var T=this.ua=new H(O);var G={fragmentIdentifier:new F(O),pageLoad:new S(O),prefetch:new N(O),amnesia:new Y(O)};this.__resetAmnesicMovies=G.amnesia.reset;var J={kwargs:[],replaceAll:function(d){for(var c=0;c<this.kwargs.length;c++){O.replace(this.kwargs[c])}if(!d){this.kwargs=[]}}};this.activate=function(){if(!T.supported||!this.isEnabled||this.isActive||!C()||b()){return }if(T.requiresPrefetch){G.prefetch.fetchMovies(arguments)}this.isActive=true;this.setFlashClass();G.fragmentIdentifier.cache();if(!this.autoInitialize){return }G.pageLoad.attach();if(T.ie){window.attachEvent("onunload",function(){W.addClass(E.UNLOADING,document.documentElement)})}};this.setFlashClass=function(){if(this.hasFlashClassSet){return }W.addClass(E.ACTIVE,W.getBody()||document.documentElement);this.hasFlashClassSet=true};this.removeFlashClass=function(){if(!this.hasFlashClassSet){return }W.removeClass(E.ACTIVE,W.getBody());W.removeClass(E.ACTIVE,document.documentElement);this.hasFlashClassSet=false};this.initialize=function(c){if(!this.isActive||!this.isEnabled){return }if(R){if(!c){J.replaceAll(false)}return }R=true;J.replaceAll(c);if(O.repaintOnResize){if(window.addEventListener){window.addEventListener("resize",a,false)}else{window.attachEvent("onresize",a)}}G.prefetch.clear()};this.replace=function(w,t){if(!T.supported){return }if(t){w=A.copyProperties(w,t)}if(!R){return J.kwargs.push(w)}if(this.onReplacementStart){this.onReplacementStart(w)}var AL=w.elements||W.querySelectorAll(w.selector);if(AL.length==0){return }var v=M(w.src);var AQ=A.convertCssArg(w.css);var u=B(w.filters);var AM=w.forceSingleLine===true;var AR=w.preventWrap===true&&!AM;var p=AM||(w.fitExactly==null?this.fitExactly:w.fitExactly)===true;var AC=p||(w.forceWidth==null?this.forceWidth:w.forceWidth)===true;var r=w.ratios||[];var AD=w.pixelFont===true;var q=parseInt(w.tuneHeight)||0;var y=!!w.onRelease||!!w.onRollOver||!!w.onRollOut;if(p){A.extractFromCss(AQ,".sIFR-root","text-align",true)}var s=A.extractFromCss(AQ,".sIFR-root","font-size",true)||"0";var e=A.extractFromCss(AQ,".sIFR-root","background-color",true)||"#FFFFFF";var n=A.extractFromCss(AQ,".sIFR-root","kerning",true)||"";var AV=A.extractFromCss(AQ,".sIFR-root","opacity",true)||"100";var k=A.extractFromCss(AQ,".sIFR-root","cursor",true)||"default";var AO=parseInt(A.extractFromCss(AQ,".sIFR-root","leading"))||0;var AI=w.gridFitType||(A.extractFromCss(AQ,".sIFR-root","text-align")=="right")?"subpixel":"pixel";var h=this.forceTextTransform===false?"none":A.extractFromCss(AQ,".sIFR-root","text-transform",true)||"none";s=/^\d+(px)?$/.test(s)?parseInt(s):0;AV=parseFloat(AV)<1?100*parseFloat(AV):AV;var AB=w.modifyCss?"":A.cssToString(AQ);var AF=w.wmode||"";if(!AF){if(w.transparent){AF="transparent"}else{if(w.opaque){AF="opaque"}}}if(AF=="transparent"){if(!T.transparencySupport){AF="opaque"}else{e="transparent"}}for(var AU=0;AU<AL.length;AU++){var AE=AL[AU];if(W.hasOneOfClassses(E.IGNORE_CLASSES,AE)||W.ancestorHasClass(AE,E.ALTERNATE)){continue}var AN=W.getDimensions(AE);var f=AN.height;var c=AN.width;var z=W.getComputedStyle(AE,"display");if(!f||!c||!z||z=="none"){continue}c=W.getWidthFromStyle(AE);var m,AG;if(!s){var AK=I(AE);m=Math.min(this.MAX_FONT_SIZE,Math.max(this.MIN_FONT_SIZE,AK.fontSize));if(AD){m=Math.max(8,8*Math.round(m/8))}AG=AK.lines;if(isNaN(AG)||!isFinite(AG)||AG==0){AG=1}if(AG>1&&AO){f+=Math.round((AG-1)*AO)}}else{m=s;AG=1}var d=W.create("span",E.ALTERNATE);var AW=AE.cloneNode(true);AE.parentNode.appendChild(AW);for(var AT=0,AS=AW.childNodes.length;AT<AS;AT++){d.appendChild(AW.childNodes[AT].cloneNode(true))}if(w.modifyContent){w.modifyContent(AW,w.selector)}if(w.modifyCss){AB=w.modifyCss(AQ,AW,w.selector)}var o=P(AW,h,w.uriEncode);AW.parentNode.removeChild(AW);if(w.modifyContentString){o.text=w.modifyContentString(o.text,w.selector)}if(o.text==""){continue}f=Math.round(AG*m);var AJ=Math.round(AG*V(m,r)*m)+this.FLASH_PADDING_BOTTOM+q;var AA=AC?c:"100%";var AH="sIFR_replacement_"+L++;var AP=["id="+AH,"content="+A.escape(o.text),"width="+c,"height="+f,"renderheight="+AJ,"link="+A.escape(o.primaryLink.href||""),"target="+A.escape(o.primaryLink.target||""),"size="+m,"css="+A.escape(AB),"cursor="+k,"tunewidth="+(w.tuneWidth||0),"tuneheight="+q,"offsetleft="+(w.offsetLeft||""),"offsettop="+(w.offsetTop||""),"fitexactly="+p,"preventwrap="+AR,"forcesingleline="+AM,"antialiastype="+(w.antiAliasType||""),"thickness="+(w.thickness||""),"sharpness="+(w.sharpness||""),"kerning="+n,"gridfittype="+AI,"flashfilters="+u,"opacity="+AV,"blendmode="+(w.blendMode||""),"selectable="+(w.selectable==null?"true":w.selectable===true),"fixhover="+(this.fixHover===true),"events="+y,"version="+this.VERSION];var x=A.encodeVars(AP);var g=new K(O,AH,AP,AC,{onReplacement:w.onReplacement,onRollOver:w.onRollOver,onRollOut:w.onRollOut,onRelease:w.onRelease});g.movie=X.create(sIFR,AE,T.fixFocus&&w.fixFocus,AH,v,AA,AJ,x,AF,e);this.replacements.push(g);this.replacements[AH]=g;if(w.selector){if(!this.replacements[w.selector]){this.replacements[w.selector]=[g]}else{this.replacements[w.selector].push(g)}}d.setAttribute("id",AH+"_alternate");AE.appendChild(d);W.addClass(E.REPLACED,AE)}G.fragmentIdentifier.restore()};this.getReplacementByFlashElement=function(d){for(var c=0;c<O.replacements.length;c++){if(O.replacements[c].id==d.getAttribute("id")){return O.replacements[c]}}};this.redraw=function(){for(var c=0;c<O.replacements.length;c++){O.replacements[c].resetMovie()}};function C(){if(O.domains.length==0){return true}var d=A.domain();for(var c=0;c<O.domains.length;c++){if(A.domainMatches(d,O.domains[c])){return true}}return false}function b(){if(document.location.protocol=="file:"){if(O.debug){O.errors.fire("isFile")}return true}return false}function M(c){if(T.ie&&c.charAt(0)=="/"){c=window.location.toString().replace(/([^:]+)(:\/?\/?)([^\/]+).*/,"$1$2$3")+c}return c}function V(d,e){for(var c=0;c<e.length;c+=2){if(d<=e[c]){return e[c+1]}}return e[e.length-1]||1}function B(g){var e=[];for(var d in g){if(g[d]==Object.prototype[d]){continue}var c=g[d];d=[d.replace(/filter/i,"")+"Filter"];for(var f in c){if(c[f]==Object.prototype[f]){continue}d.push(f+":"+A.escape(A.toJson(c[f],A.toHexString)))}e.push(d.join(","))}return A.escape(e.join(";"))}function a(d){var e=a.viewport;var c=W.getViewport();if(e&&c.width==e.width&&c.height==e.height){return }a.viewport=c;if(O.replacements.length==0){return }if(a.timer){clearTimeout(a.timer)}a.timer=setTimeout(function(){delete a.timer;for(var f=0;f<O.replacements.length;f++){O.replacements[f].resize()}},200)}function I(g){var h,d;if(!T.ie){h=W.getStyleAsInt(g,"lineHeight");d=Math.floor(W.getStyleAsInt(g,"height")/h)}else{if(T.ie){var h=W.getComputedStyle(g,"fontSize");if(h.indexOf("px")>0){h=parseInt(h)}else{var f=g.innerHTML;g.style.visibility="visible";g.style.overflow="visible";g.style.position="static";g.style.zoom="normal";g.style.writingMode="lr-tb";g.style.width=g.style.height="auto";g.style.maxWidth=g.style.maxHeight=g.style.styleFloat="none";var i=g;var c=g.currentStyle.hasLayout;if(c){g.innerHTML='<div class="'+E.LAYOUT+'">X<br>X<br>X</div>';i=g.firstChild}else{g.innerHTML="X<br>X<br>X"}var e=i.getClientRects();h=e[1].bottom-e[1].top;h=Math.ceil(h*0.8);if(c){g.innerHTML='<div class="'+E.LAYOUT+'">'+f+"</div>";i=g.firstChild}else{g.innerHTML=f}e=i.getClientRects();d=e.length;if(c){g.innerHTML=f}g.style.visibility=g.style.width=g.style.height=g.style.maxWidth=g.style.maxHeight=g.style.overflow=g.style.styleFloat=g.style.position=g.style.zoom=g.style.writingMode=""}}}return{fontSize:h,lines:d}}function P(c,g,s){s=s||A.uriEncode;var q=[],m=[];var k=null;var e=c.childNodes;var o=false,p=false;var j=0;while(j<e.length){var f=e[j];if(f.nodeType==3){var t=A.textTransform(g,A.normalize(f.nodeValue)).replace(/</g,"&lt;");if(o&&p){t=t.replace(/^\s+/,"")}m.push(t);o=/\s$/.test(t);p=false}if(f.nodeType==1&&!/^(style|script)$/i.test(f.nodeName)){var h=[];var r=f.nodeName.toLowerCase();var n=f.className||"";if(/\s+/.test(n)){if(n.indexOf(E.CLASS)>-1){n=n.match("(\\s|^)"+E.CLASS+"-([^\\s$]*)(\\s|$)")[2]}else{n=n.match(/^([^\s]+)/)[1]}}if(n!=""){h.push('class="'+n+'"')}if(r=="a"){var d=s(f.getAttribute("href")||"");var l=f.getAttribute("target")||"";h.push('href="'+d+'"','target="'+l+'"');if(!k){k={href:d,target:l}}}m.push("<"+r+(h.length>0?" ":"")+h.join(" ")+">");p=true;if(f.hasChildNodes()){q.push(j);j=0;e=f.childNodes;continue}else{if(!/^(br|img)$/i.test(f.nodeName)){m.push("</",f.nodeName.toLowerCase(),">")}}}if(q.length>0&&!f.nextSibling){do{j=q.pop();e=f.parentNode.parentNode.childNodes;f=e[j];if(f){m.push("</",f.nodeName.toLowerCase(),">")}}while(j==e.length-1&&q.length>0)}j++}return{text:m.join("").replace(/^\s+|\s+$|\s*(<br>)\s*/g,"$1"),primaryLink:k||{}}}};
var parseSelector=(function(){var B=/\s*,\s*/;var A=/\s*([\s>+~(),]|^|$)\s*/g;var L=/([\s>+~,]|[^(]\+|^)([#.:@])/g;var F=/(^|\))[^\s>+~]/g;var M=/(\)|^)/;var K=/[\s#.:>+~()@]|[^\s#.:>+~()@]+/g;function H(R,P){P=P||document.documentElement;var S=R.split(B),X=[];for(var U=0;U<S.length;U++){var N=[P],W=G(S[U]);for(var T=0;T<W.length;){var Q=W[T++],O=W[T++],V="";if(W[T]=="("){while(W[T++]!=")"&&T<W.length){V+=W[T]}V=V.slice(0,-1)}N=I(N,Q,O,V)}X=X.concat(N)}return X}function G(N){var O=N.replace(A,"$1").replace(L,"$1*$2").replace(F,D);return O.match(K)||[]}function D(N){return N.replace(M,"$1 ")}function I(N,P,Q,O){return(H.selectors[P])?H.selectors[P](N,Q,O):[]}var E={toArray:function(O){var N=[];for(var P=0;P<O.length;P++){N.push(O[P])}return N}};var C={isTag:function(O,N){return(N=="*")||(N.toLowerCase()==O.nodeName.toLowerCase())},previousSiblingElement:function(N){do{N=N.previousSibling}while(N&&N.nodeType!=1);return N},nextSiblingElement:function(N){do{N=N.nextSibling}while(N&&N.nodeType!=1);return N},hasClass:function(N,O){return(O.className||"").match("(^|\\s)"+N+"(\\s|$)")},getByTag:function(N,O){return O.getElementsByTagName(N)}};var J={"#":function(N,P){for(var O=0;O<N.length;O++){if(N[O].getAttribute("id")==P){return[N[O]]}}return[]}," ":function(O,Q){var N=[];for(var P=0;P<O.length;P++){N=N.concat(E.toArray(C.getByTag(Q,O[P])))}return N},">":function(O,R){var N=[];for(var Q=0,S;Q<O.length;Q++){S=O[Q];for(var P=0,T;P<S.childNodes.length;P++){T=S.childNodes[P];if(T.nodeType==1&&C.isTag(T,R)){N.push(T)}}}return N},".":function(O,Q){var N=[];for(var P=0,R;P<O.length;P++){R=O[P];if(C.hasClass([Q],R)){N.push(R)}}return N},":":function(N,P,O){return(H.pseudoClasses[P])?H.pseudoClasses[P](N,O):[]}};H.selectors=J;H.pseudoClasses={};H.util=E;H.dom=C;return H})();  var verdana = {
    src: 'http://gfx.thiers-tourisme.fr/sifr/verdana.swf'
    ,ratios: [7,1.32,11,1.31,13,1.24,14,1.25,19,1.23,27,1.2,34,1.19,42,1.18,47,1.17,48,1.18,69,1.17,74,1.16,75,1.17,1.16]
  };
  //sIFR.useStyleCheck = true;
  sIFR.activate(verdana);
  sIFR.replace(verdana, {
    selector: '#leftMenu .menu li'
    ,css: [
      '.sIFR-root { text-align: center; font-weight: bold;font-size:13;color:#FFFFFF;letter-spacing:-1; }'
      ,'a { text-decoration: none;color: #FFFFFF; }'
      ,'a:link { color: #FFFFFF; }'
      ,'a:hover { color: #FFFFFF; }'
    ]
	,wmode:"transparent"
    ,filters: {
      DropShadow: {
        knockout: false
        ,distance: 1
        ,color: '#000000'
        ,strength: 2
      }

    }
  });/*
 * jQuery 1.2.5 - New Wave Javascript
 *
 * Copyright (c) 2008 John Resig (jquery.com)
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 * $Date: 2008-05-20 23:14:54 -0400 (Tue, 20 May 2008) $
 * $Rev: 5651 $
 */
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(G(){I w=19.4G,3k$=19.$;I D=19.4G=19.$=G(a,b){H 2t D.16.5r(a,b)};I u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/,61=/^.[^:#\\[\\.]*$/,11;D.16=D.4d={5r:G(d,b){d=d||R;7(d.12){6[0]=d;6.J=1;H 6}7(1i d=="21"){I c=u.2K(d);7(c&&(c[1]||!b)){7(c[1])d=D.4g([c[1]],b);N{I a=R.5X(c[3]);7(a){7(a.2w!=c[3])H D().2x(d);H D(a)}d=[]}}N H D(b).2x(d)}N 7(D.1E(d))H D(R)[D.16.28?"28":"40"](d);H 6.6W(D.2d(d))},5u:"1.2.5",8F:G(){H 6.J},J:0,3o:G(a){H a==11?D.2d(6):6[a]},2C:G(b){I a=D(b);a.5j=6;H a},6W:G(a){6.J=0;2p.4d.1o.1y(6,a);H 6},O:G(a,b){H D.O(6,a,b)},5f:G(b){I a=-1;H D.2E(b&&b.5u?b[0]:b,6)},1J:G(c,a,b){I d=c;7(c.1u==54)7(a===11)H 6[0]&&D[b||"1J"](6[0],c);N{d={};d[c]=a}H 6.O(G(i){Q(c 1m d)D.1J(b?6.T:6,c,D.1h(6,d[c],b,i,c))})},1f:G(b,a){7((b==\'2g\'||b==\'1S\')&&2Y(a)<0)a=11;H 6.1J(b,a,"2a")},1q:G(b){7(1i b!="3V"&&b!=U)H 6.4E().3v((6[0]&&6[0].2y||R).5F(b));I a="";D.O(b||6,G(){D.O(6.3t,G(){7(6.12!=8)a+=6.12!=1?6.74:D.16.1q([6])})});H a},5y:G(b){7(6[0])D(b,6[0].2y).5S().38(6[0]).2j(G(){I a=6;1H(a.1z)a=a.1z;H a}).3v(6);H 6},8X:G(a){H 6.O(G(){D(6).6Q().5y(a)})},8Q:G(a){H 6.O(G(){D(6).5y(a)})},3v:G(){H 6.3S(17,L,P,G(a){7(6.12==1)6.3R(a)})},6F:G(){H 6.3S(17,L,L,G(a){7(6.12==1)6.38(a,6.1z)})},6E:G(){H 6.3S(17,P,P,G(a){6.1b.38(a,6)})},5k:G(){H 6.3S(17,P,L,G(a){6.1b.38(a,6.2F)})},3m:G(){H 6.5j||D([])},2x:G(b){I c=D.2j(6,G(a){H D.2x(b,a)});H 6.2C(/[^+>] [^+>]/.Y(b)||b.1g("..")>-1?D.4q(c):c)},5S:G(e){I f=6.2j(G(){7(D.15.1e&&!D.4m(6)){I a=6.6m(L),5e=R.3h("1t");5e.3R(a);H D.4g([5e.4I])[0]}N H 6.6m(L)});I d=f.2x("*").5H().O(G(){7(6[E]!=11)6[E]=U});7(e===L)6.2x("*").5H().O(G(i){7(6.12==3)H;I c=D.K(6,"3w");Q(I a 1m c)Q(I b 1m c[a])D.V.1d(d[i],a,c[a][b],c[a][b].K)});H f},1C:G(b){H 6.2C(D.1E(b)&&D.3C(6,G(a,i){H b.1j(a,i)})||D.3f(b,6))},4V:G(b){7(b.1u==54)7(61.Y(b))H 6.2C(D.3f(b,6,L));N b=D.3f(b,6);I a=b.J&&b[b.J-1]!==11&&!b.12;H 6.1C(G(){H a?D.2E(6,b)<0:6!=b})},1d:G(a){H 6.2C(D.4q(D.2O(6.3o(),1i a==\'21\'?D(a):D.2d(a))))},3A:G(a){H!!a&&D.3f(a,6).J>0},7S:G(a){H 6.3A("."+a)},6e:G(b){7(b==11){7(6.J){I c=6[0];7(D.W(c,"2A")){I e=c.63,60=[],14=c.14,2W=c.M=="2A-2W";7(e<0)H U;Q(I i=2W?e:0,2c=2W?e+1:14.J;i<2c;i++){I d=14[i];7(d.3a){b=D.15.1e&&!d.ap.2u.al?d.1q:d.2u;7(2W)H b;60.1o(b)}}H 60}N H(6[0].2u||"").1n(/\\r/g,"")}H 11}H 6.O(G(){7(6.12!=1)H;7(b.1u==2p&&/5O|5L/.Y(6.M))6.4D=(D.2E(6.2u,b)>=0||D.2E(6.37,b)>=0);N 7(D.W(6,"2A")){I a=D.2d(b);D("9S",6).O(G(){6.3a=(D.2E(6.2u,a)>=0||D.2E(6.1q,a)>=0)});7(!a.J)6.63=-1}N 6.2u=b})},2I:G(a){H a==11?(6.J?6[0].4I:U):6.4E().3v(a)},7c:G(a){H 6.5k(a).1Y()},77:G(i){H 6.3s(i,i+1)},3s:G(){H 6.2C(2p.4d.3s.1y(6,17))},2j:G(b){H 6.2C(D.2j(6,G(a,i){H b.1j(a,i,a)}))},5H:G(){H 6.1d(6.5j)},K:G(d,b){I a=d.1P(".");a[1]=a[1]?"."+a[1]:"";7(b===11){I c=6.5C("9z"+a[1]+"!",[a[0]]);7(c===11&&6.J)c=D.K(6[0],d);H c===11&&a[1]?6.K(a[0]):c}N H 6.1R("9u"+a[1]+"!",[a[0],b]).O(G(){D.K(6,d,b)})},2V:G(a){H 6.O(G(){D.2V(6,a)})},3S:G(g,f,h,d){I e=6.J>1,3p;H 6.O(G(){7(!3p){3p=D.4g(g,6.2y);7(h)3p.9n()}I b=6;7(f&&D.W(6,"1U")&&D.W(3p[0],"4N"))b=6.3F("1W")[0]||6.3R(6.2y.3h("1W"));I c=D([]);D.O(3p,G(){I a=e?D(6).5S(L)[0]:6;7(D.W(a,"1k")){c=c.1d(a)}N{7(a.12==1)c=c.1d(D("1k",a).1Y());d.1j(b,a)}});c.O(6S)})}};D.16.5r.4d=D.16;G 6S(i,a){7(a.3X)D.3T({1a:a.3X,3c:P,1K:"1k"});N D.5s(a.1q||a.6O||a.4I||"");7(a.1b)a.1b.2Z(a)}G 1x(){H+2t 8J}D.1l=D.16.1l=G(){I b=17[0]||{},i=1,J=17.J,4z=P,14;7(b.1u==8H){4z=b;b=17[1]||{};i=2}7(1i b!="3V"&&1i b!="G")b={};7(J==i){b=6;--i}Q(;i<J;i++)7((14=17[i])!=U)Q(I c 1m 14){I a=b[c],2B=14[c];7(b===2B)6M;7(4z&&2B&&1i 2B=="3V"&&!2B.12)b[c]=D.1l(4z,a||(2B.J!=U?[]:{}),2B);N 7(2B!==11)b[c]=2B}H b};I E="4G"+1x(),6L=0,5o={},6H=/z-?5f|8A-?8z|1r|6B|8v-?1S/i,3N=R.3N||{};D.1l({8t:G(a){19.$=3k$;7(a)19.4G=w;H D},1E:G(a){H!!a&&1i a!="21"&&!a.W&&a.1u!=2p&&/^[\\s[]?G/.Y(a+"")},4m:G(a){H a.1F&&!a.1c||a.2e&&a.2y&&!a.2y.1c},5s:G(a){a=D.3l(a);7(a){I b=R.3F("6v")[0]||R.1F,1k=R.3h("1k");1k.M="1q/4s";7(D.15.1e)1k.1q=a;N 1k.3R(R.5F(a));b.38(1k,b.1z);b.2Z(1k)}},W:G(b,a){H b.W&&b.W.2o()==a.2o()},1V:{},K:G(c,d,b){c=c==19?5o:c;I a=c[E];7(!a)a=c[E]=++6L;7(d&&!D.1V[a])D.1V[a]={};7(b!==11)D.1V[a][d]=b;H d?D.1V[a][d]:a},2V:G(c,b){c=c==19?5o:c;I a=c[E];7(b){7(D.1V[a]){2X D.1V[a][b];b="";Q(b 1m D.1V[a])1T;7(!b)D.2V(c)}}N{1Z{2X c[E]}1X(e){7(c.5h)c.5h(E)}2X D.1V[a]}},O:G(d,a,c){I e,i=0,J=d.J;7(c){7(J==11){Q(e 1m d)7(a.1y(d[e],c)===P)1T}N Q(;i<J;)7(a.1y(d[i++],c)===P)1T}N{7(J==11){Q(e 1m d)7(a.1j(d[e],e,d[e])===P)1T}N Q(I b=d[0];i<J&&a.1j(b,i,b)!==P;b=d[++i]){}}H d},1h:G(b,a,c,i,d){7(D.1E(a))a=a.1j(b,i);H a&&a.1u==5g&&c=="2a"&&!6H.Y(d)?a+"2U":a},1G:{1d:G(c,b){D.O((b||"").1P(/\\s+/),G(i,a){7(c.12==1&&!D.1G.3J(c.1G,a))c.1G+=(c.1G?" ":"")+a})},1Y:G(c,b){7(c.12==1)c.1G=b!=11?D.3C(c.1G.1P(/\\s+/),G(a){H!D.1G.3J(b,a)}).6r(" "):""},3J:G(b,a){H D.2E(a,(b.1G||b).6q().1P(/\\s+/))>-1}},6p:G(b,c,a){I e={};Q(I d 1m c){e[d]=b.T[d];b.T[d]=c[d]}a.1j(b);Q(I d 1m c)b.T[d]=e[d]},1f:G(d,e,c){7(e=="2g"||e=="1S"){I b,3I={30:"64",5d:"1B",18:"3G"},2Q=e=="2g"?["5c","6j"]:["5a","6h"];G 59(){b=e=="2g"?d.8e:d.8b;I a=0,2m=0;D.O(2Q,G(){a+=2Y(D.2a(d,"55"+6,L))||0;2m+=2Y(D.2a(d,"2m"+6+"49",L))||0});b-=26.83(a+2m)}7(D(d).3A(":4i"))59();N D.6p(d,3I,59);H 26.2c(0,b)}H D.2a(d,e,c)},2a:G(f,l,k){I e,T=f.T;G 3D(b){7(!D.15.2k)H P;I a=3N.51(b,U);H!a||a.50("3D")==""}7(l=="1r"&&D.15.1e){e=D.1J(T,"1r");H e==""?"1":e}7(D.15.2J&&l=="18"){I d=T.4W;T.4W="0 7X 7W";T.4W=d}7(l.1A(/4h/i))l=y;7(!k&&T&&T[l])e=T[l];N 7(3N.51){7(l.1A(/4h/i))l="4h";l=l.1n(/([A-Z])/g,"-$1").3g();I c=3N.51(f,U);7(c&&!3D(f))e=c.50(l);N{I g=[],2D=[],a=f,i=0;Q(;a&&3D(a);a=a.1b)2D.6g(a);Q(;i<2D.J;i++)7(3D(2D[i])){g[i]=2D[i].T.18;2D[i].T.18="3G"}e=l=="18"&&g[2D.J-1]!=U?"2L":(c&&c.50(l))||"";Q(i=0;i<g.J;i++)7(g[i]!=U)2D[i].T.18=g[i]}7(l=="1r"&&e=="")e="1"}N 7(f.4f){I h=l.1n(/\\-(\\w)/g,G(a,b){H b.2o()});e=f.4f[l]||f.4f[h];7(!/^\\d+(2U)?$/i.Y(e)&&/^\\d/.Y(e)){I j=T.1w,65=f.62.1w;f.62.1w=f.4f.1w;T.1w=e||0;e=T.aK+"2U";T.1w=j;f.62.1w=65}}H e},4g:G(l,h){I k=[];h=h||R;7(1i h.3h==\'11\')h=h.2y||h[0]&&h[0].2y||R;D.O(l,G(i,d){7(!d)H;7(d.1u==5g)d+=\'\';7(1i d=="21"){d=d.1n(/(<(\\w+)[^>]*?)\\/>/g,G(b,a,c){H c.1A(/^(aG|3H|7C|aD|4S|7z|ay|3y|ax|av|as)$/i)?b:a+"></"+c+">"});I f=D.3l(d).3g(),1t=h.3h("1t");I e=!f.1g("<ar")&&[1,"<2A 7v=\'7v\'>","</2A>"]||!f.1g("<ao")&&[1,"<7u>","</7u>"]||f.1A(/^<(an|1W|ak|ai|af)/)&&[1,"<1U>","</1U>"]||!f.1g("<4N")&&[2,"<1U><1W>","</1W></1U>"]||(!f.1g("<ad")||!f.1g("<aa"))&&[3,"<1U><1W><4N>","</4N></1W></1U>"]||!f.1g("<7C")&&[2,"<1U><1W></1W><7n>","</7n></1U>"]||D.15.1e&&[1,"1t<1t>","</1t>"]||[0,"",""];1t.4I=e[1]+d+e[2];1H(e[0]--)1t=1t.5R;7(D.15.1e){I g=!f.1g("<1U")&&f.1g("<1W")<0?1t.1z&&1t.1z.3t:e[1]=="<1U>"&&f.1g("<1W")<0?1t.3t:[];Q(I j=g.J-1;j>=0;--j)7(D.W(g[j],"1W")&&!g[j].3t.J)g[j].1b.2Z(g[j]);7(/^\\s/.Y(d))1t.38(h.5F(d.1A(/^\\s*/)[0]),1t.1z)}d=D.2d(1t.3t)}7(d.J===0&&(!D.W(d,"3W")&&!D.W(d,"2A")))H;7(d[0]==11||D.W(d,"3W")||d.14)k.1o(d);N k=D.2O(k,d)});H k},1J:G(d,f,c){7(!d||d.12==3||d.12==8)H 11;I e=!D.4m(d),41=c!==11,1e=D.15.1e;f=e&&D.3I[f]||f;7(d.2e){I g=/5N|3X|T/.Y(f);7(f=="3a"&&D.15.2k)d.1b.63;7(e&&!g&&f 1m d){7(41){7(f=="M"&&D.W(d,"4S")&&d.1b)7l"M a1 9Y\'t 9U 9T";d[f]=c}7(D.W(d,"3W")&&d.7e(f))H d.7e(f).74;H d[f]}7(1e&&e&&f=="T")H D.1J(d.T,"9Q",c);7(41)d.9P(f,""+c);7(1e&&g&&e)H d.4J(f,2);H d.4J(f)}7(1e&&f=="1r"){7(41){d.6B=1;d.1C=(d.1C||"").1n(/7b\\([^)]*\\)/,"")+(3r(c)+\'\'=="9K"?"":"7b(1r="+c*79+")")}H d.1C&&d.1C.1g("1r=")>=0?(2Y(d.1C.1A(/1r=([^)]*)/)[1])/79)+\'\':""}f=f.1n(/-([a-z])/9G,G(a,b){H b.2o()});7(41)d[f]=c;H d[f]},3l:G(a){H(a||"").1n(/^\\s+|\\s+$/g,"")},2d:G(b){I a=[];7(b!=U){I i=b.J;7(i==U||b.1P||b.4H||b.1j)a[0]=b;N 1H(i)a[--i]=b[i]}H a},2E:G(b,a){Q(I i=0,J=a.J;i<J;i++)7(a[i]===b)H i;H-1},2O:G(a,b){I i=0,S,2R=a.J;7(D.15.1e){1H(S=b[i++])7(S.12!=8)a[2R++]=S}N 1H(S=b[i++])a[2R++]=S;H a},4q:G(a){I c=[],2z={};1Z{Q(I i=0,J=a.J;i<J;i++){I b=D.K(a[i]);7(!2z[b]){2z[b]=L;c.1o(a[i])}}}1X(e){c=a}H c},3C:G(c,a,d){I b=[];Q(I i=0,J=c.J;i<J;i++)7(!d!=!a(c[i],i))b.1o(c[i]);H b},2j:G(d,a){I c=[];Q(I i=0,J=d.J;i<J;i++){I b=a(d[i],i);7(b!=U)c[c.J]=b}H c.78.1y([],c)}});I v=9A.9y.3g();D.15={5B:(v.1A(/.+(?:9x|9v|9t|9s)[\\/: ]([\\d.]+)/)||[])[1],2k:/73/.Y(v),2J:/2J/.Y(v),1e:/1e/.Y(v)&&!/2J/.Y(v),42:/42/.Y(v)&&!/(9q|73)/.Y(v)};I y=D.15.1e?"7m":"6Z";D.1l({6Y:!D.15.1e||R.6X=="7r",3I:{"Q":"9k","9h":"1G","4h":y,6Z:y,7m:y,9e:"9c",9b:"9a",98:"97"}});D.O({6U:G(a){H a.1b},94:G(a){H D.4T(a,"1b")},92:G(a){H D.34(a,2,"2F")},8Z:G(a){H D.34(a,2,"4R")},8Y:G(a){H D.4T(a,"2F")},8W:G(a){H D.4T(a,"4R")},8V:G(a){H D.5t(a.1b.1z,a)},8U:G(a){H D.5t(a.1z)},6Q:G(a){H D.W(a,"8T")?a.8S||a.8R.R:D.2d(a.3t)}},G(c,d){D.16[c]=G(b){I a=D.2j(6,d);7(b&&1i b=="21")a=D.3f(b,a);H 6.2C(D.4q(a))}});D.O({6P:"3v",8P:"6F",38:"6E",8O:"5k",8N:"7c"},G(c,b){D.16[c]=G(){I a=17;H 6.O(G(){Q(I i=0,J=a.J;i<J;i++)D(a[i])[b](6)})}});D.O({8M:G(a){D.1J(6,a,"");7(6.12==1)6.5h(a)},8L:G(a){D.1G.1d(6,a)},8K:G(a){D.1G.1Y(6,a)},8I:G(a){D.1G[D.1G.3J(6,a)?"1Y":"1d"](6,a)},1Y:G(a){7(!a||D.1C(a,[6]).r.J){D("*",6).1d(6).O(G(){D.V.1Y(6);D.2V(6)});7(6.1b)6.1b.2Z(6)}},4E:G(){D(">*",6).1Y();1H(6.1z)6.2Z(6.1z)}},G(a,b){D.16[a]=G(){H 6.O(b,17)}});D.O(["6N","49"],G(i,c){I b=c.3g();D.16[b]=G(a){H 6[0]==19?D.15.2J&&R.1c["5q"+c]||D.15.2k&&19["5p"+c]||R.6X=="7r"&&R.1F["5q"+c]||R.1c["5q"+c]:6[0]==R?26.2c(26.2c(R.1c["4y"+c],R.1F["4y"+c]),26.2c(R.1c["2i"+c],R.1F["2i"+c])):a==11?(6.J?D.1f(6[0],b):U):6.1f(b,a.1u==54?a:a+"2U")}});G 25(a,b){H a[0]&&3r(D.2a(a[0],b,L),10)||0}I C=D.15.2k&&3r(D.15.5B)<8G?"(?:[\\\\w*3k-]|\\\\\\\\.)":"(?:[\\\\w\\8E-\\8D*3k-]|\\\\\\\\.)",6K=2t 4w("^>\\\\s*("+C+"+)"),6J=2t 4w("^("+C+"+)(#)("+C+"+)"),6I=2t 4w("^([#.]?)("+C+"*)");D.1l({6G:{"":G(a,i,m){H m[2]=="*"||D.W(a,m[2])},"#":G(a,i,m){H a.4J("2w")==m[2]},":":{8C:G(a,i,m){H i<m[3]-0},8B:G(a,i,m){H i>m[3]-0},34:G(a,i,m){H m[3]-0==i},77:G(a,i,m){H m[3]-0==i},3n:G(a,i){H i==0},3Q:G(a,i,m,r){H i==r.J-1},6D:G(a,i){H i%2==0},6C:G(a,i){H i%2},"3n-4u":G(a){H a.1b.3F("*")[0]==a},"3Q-4u":G(a){H D.34(a.1b.5R,1,"4R")==a},"8y-4u":G(a){H!D.34(a.1b.5R,2,"4R")},6U:G(a){H a.1z},4E:G(a){H!a.1z},8x:G(a,i,m){H(a.6O||a.8w||D(a).1q()||"").1g(m[3])>=0},4i:G(a){H"1B"!=a.M&&D.1f(a,"18")!="2L"&&D.1f(a,"5d")!="1B"},1B:G(a){H"1B"==a.M||D.1f(a,"18")=="2L"||D.1f(a,"5d")=="1B"},8u:G(a){H!a.3O},3O:G(a){H a.3O},4D:G(a){H a.4D},3a:G(a){H a.3a||D.1J(a,"3a")},1q:G(a){H"1q"==a.M},5O:G(a){H"5O"==a.M},5L:G(a){H"5L"==a.M},5m:G(a){H"5m"==a.M},3E:G(a){H"3E"==a.M},5l:G(a){H"5l"==a.M},6A:G(a){H"6A"==a.M},6y:G(a){H"6y"==a.M},2q:G(a){H"2q"==a.M||D.W(a,"2q")},4S:G(a){H/4S|2A|6x|2q/i.Y(a.W)},3J:G(a,i,m){H D.2x(m[3],a).J},8s:G(a){H/h\\d/i.Y(a.W)},8r:G(a){H D.3C(D.3M,G(b){H a==b.S}).J}}},6w:[/^(\\[) *@?([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,2t 4w("^([:.#]*)("+C+"+)")],3f:G(a,c,b){I d,1s=[];1H(a&&a!=d){d=a;I f=D.1C(a,c,b);a=f.t.1n(/^\\s*,\\s*/,"");1s=b?c=f.r:D.2O(1s,f.r)}H 1s},2x:G(t,o){7(1i t!="21")H[t];7(o&&o.12!=1&&o.12!=9)H[];o=o||R;I d=[o],2z=[],3Q,W;1H(t&&3Q!=t){I r=[];3Q=t;t=D.3l(t);I l=P,3j=6K,m=3j.2K(t);7(m){W=m[1].2o();Q(I i=0;d[i];i++)Q(I c=d[i].1z;c;c=c.2F)7(c.12==1&&(W=="*"||c.W.2o()==W))r.1o(c);d=r;t=t.1n(3j,"");7(t.1g(" ")==0)6M;l=L}N{3j=/^([>+~])\\s*(\\w*)/i;7((m=3j.2K(t))!=U){r=[];I k={};W=m[2].2o();m=m[1];Q(I j=0,3i=d.J;j<3i;j++){I n=m=="~"||m=="+"?d[j].2F:d[j].1z;Q(;n;n=n.2F)7(n.12==1){I g=D.K(n);7(m=="~"&&k[g])1T;7(!W||n.W.2o()==W){7(m=="~")k[g]=L;r.1o(n)}7(m=="+")1T}}d=r;t=D.3l(t.1n(3j,""));l=L}}7(t&&!l){7(!t.1g(",")){7(o==d[0])d.4r();2z=D.2O(2z,d);r=d=[o];t=" "+t.6u(1,t.J)}N{I h=6J;I m=h.2K(t);7(m){m=[0,m[2],m[3],m[1]]}N{h=6I;m=h.2K(t)}m[2]=m[2].1n(/\\\\/g,"");I f=d[d.J-1];7(m[1]=="#"&&f&&f.5X&&!D.4m(f)){I p=f.5X(m[2]);7((D.15.1e||D.15.2J)&&p&&1i p.2w=="21"&&p.2w!=m[2])p=D(\'[@2w="\'+m[2]+\'"]\',f)[0];d=r=p&&(!m[3]||D.W(p,m[3]))?[p]:[]}N{Q(I i=0;d[i];i++){I a=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];7(a=="*"&&d[i].W.3g()=="3V")a="3y";r=D.2O(r,d[i].3F(a))}7(m[1]==".")r=D.5i(r,m[2]);7(m[1]=="#"){I e=[];Q(I i=0;r[i];i++)7(r[i].4J("2w")==m[2]){e=[r[i]];1T}r=e}d=r}t=t.1n(h,"")}}7(t){I b=D.1C(t,r);d=r=b.r;t=D.3l(b.t)}}7(t)d=[];7(d&&o==d[0])d.4r();2z=D.2O(2z,d);H 2z},5i:G(r,m,a){m=" "+m+" ";I c=[];Q(I i=0;r[i];i++){I b=(" "+r[i].1G+" ").1g(m)>=0;7(!a&&b||a&&!b)c.1o(r[i])}H c},1C:G(t,r,h){I d;1H(t&&t!=d){d=t;I p=D.6w,m;Q(I i=0;p[i];i++){m=p[i].2K(t);7(m){t=t.8q(m[0].J);m[2]=m[2].1n(/\\\\/g,"");1T}}7(!m)1T;7(m[1]==":"&&m[2]=="4V")r=61.Y(m[3])?D.1C(m[3],r,L).r:D(r).4V(m[3]);N 7(m[1]==".")r=D.5i(r,m[2],h);N 7(m[1]=="["){I g=[],M=m[3];Q(I i=0,3i=r.J;i<3i;i++){I a=r[i],z=a[D.3I[m[2]]||m[2]];7(z==U||/5N|3X|3a/.Y(m[2]))z=D.1J(a,m[2])||\'\';7((M==""&&!!z||M=="="&&z==m[5]||M=="!="&&z!=m[5]||M=="^="&&z&&!z.1g(m[5])||M=="$="&&z.6u(z.J-m[5].J)==m[5]||(M=="*="||M=="~=")&&z.1g(m[5])>=0)^h)g.1o(a)}r=g}N 7(m[1]==":"&&m[2]=="34-4u"){I e={},g=[],Y=/(-?)(\\d*)n((?:\\+|-)?\\d*)/.2K(m[3]=="6D"&&"2n"||m[3]=="6C"&&"2n+1"||!/\\D/.Y(m[3])&&"8p+"+m[3]||m[3]),3n=(Y[1]+(Y[2]||1))-0,d=Y[3]-0;Q(I i=0,3i=r.J;i<3i;i++){I j=r[i],1b=j.1b,2w=D.K(1b);7(!e[2w]){I c=1;Q(I n=1b.1z;n;n=n.2F)7(n.12==1)n.4p=c++;e[2w]=L}I b=P;7(3n==0){7(j.4p==d)b=L}N 7((j.4p-d)%3n==0&&(j.4p-d)/3n>=0)b=L;7(b^h)g.1o(j)}r=g}N{I f=D.6G[m[1]];7(1i f=="3V")f=f[m[2]];7(1i f=="21")f=6t("P||G(a,i){H "+f+";}");r=D.3C(r,G(a,i){H f(a,i,m,r)},h)}}H{r:r,t:t}},4T:G(b,c){I a=[],1s=b[c];1H(1s&&1s!=R){7(1s.12==1)a.1o(1s);1s=1s[c]}H a},34:G(a,e,c,b){e=e||1;I d=0;Q(;a;a=a[c])7(a.12==1&&++d==e)1T;H a},5t:G(n,a){I r=[];Q(;n;n=n.2F){7(n.12==1&&n!=a)r.1o(n)}H r}});D.V={1d:G(f,i,g,e){7(f.12==3||f.12==8)H;7(D.15.1e&&f.4H)f=19;7(!g.23)g.23=6.23++;7(e!=11){I h=g;g=6.3L(h,G(){H h.1y(6,17)});g.K=e}I j=D.K(f,"3w")||D.K(f,"3w",{}),1D=D.K(f,"1D")||D.K(f,"1D",G(){7(1i D!="11"&&!D.V.5n)H D.V.1D.1y(17.3P.S,17)});1D.S=f;D.O(i.1P(/\\s+/),G(c,b){I a=b.1P(".");b=a[0];g.M=a[1];I d=j[b];7(!d){d=j[b]={};7(!D.V.2s[b]||D.V.2s[b].4o.1j(f)===P){7(f.3K)f.3K(b,1D,P);N 7(f.6s)f.6s("4n"+b,1D)}}d[g.23]=g;D.V.24[b]=L});f=U},23:1,24:{},1Y:G(e,h,f){7(e.12==3||e.12==8)H;I i=D.K(e,"3w"),1I,5f;7(i){7(h==11||(1i h=="21"&&h.8o(0)=="."))Q(I g 1m i)6.1Y(e,g+(h||""));N{7(h.M){f=h.2v;h=h.M}D.O(h.1P(/\\s+/),G(b,a){I c=a.1P(".");a=c[0];7(i[a]){7(f)2X i[a][f.23];N Q(f 1m i[a])7(!c[1]||i[a][f].M==c[1])2X i[a][f];Q(1I 1m i[a])1T;7(!1I){7(!D.V.2s[a]||D.V.2s[a].4A.1j(e)===P){7(e.6o)e.6o(a,D.K(e,"1D"),P);N 7(e.6n)e.6n("4n"+a,D.K(e,"1D"))}1I=U;2X i[a]}}})}Q(1I 1m i)1T;7(!1I){I d=D.K(e,"1D");7(d)d.S=U;D.2V(e,"3w");D.2V(e,"1D")}}},1R:G(h,c,f,g,i){c=D.2d(c);7(h.1g("!")>=0){h=h.3s(0,-1);I a=L}7(!f){7(6.24[h])D("*").1d([19,R]).1R(h,c)}N{7(f.12==3||f.12==8)H 11;I b,1I,16=D.1E(f[h]||U),V=!c[0]||!c[0].31;7(V){c.6g({M:h,2G:f,31:G(){},3Y:G(){},4l:1x()});c[0][E]=L}c[0].M=h;7(a)c[0].6l=L;I d=D.K(f,"1D");7(d)b=d.1y(f,c);7((!16||(D.W(f,\'a\')&&h=="4K"))&&f["4n"+h]&&f["4n"+h].1y(f,c)===P)b=P;7(V)c.4r();7(i&&D.1E(i)){1I=i.1y(f,b==U?c:c.78(b));7(1I!==11)b=1I}7(16&&g!==P&&b!==P&&!(D.W(f,\'a\')&&h=="4K")){6.5n=L;1Z{f[h]()}1X(e){}}6.5n=P}H b},1D:G(b){I a,1I,36,5A,4k;b=17[0]=D.V.6k(b||19.V);36=b.M.1P(".");b.M=36[0];36=36[1];5A=!36&&!b.6l;4k=(D.K(6,"3w")||{})[b.M];Q(I j 1m 4k){I c=4k[j];7(5A||c.M==36){b.2v=c;b.K=c.K;1I=c.1y(6,17);7(a!==P)a=1I;7(1I===P){b.31();b.3Y()}}}H a},6k:G(b){7(b[E]==L)H b;I d=b;b={8n:d};I c="8m 8l 8k 8j 2q 8i 45 5D 6i 5b 8h K 8g 8f 4j 2v 58 57 8d 8c 56 6f 8a 89 4L 87 86 85 6c 2G 4l 6b M 82 81 2Q".1P(" ");Q(I i=c.J;i;i--)b[c[i]]=d[c[i]];b[E]=L;b.31=G(){7(d.31)d.31();d.80=P};b.3Y=G(){7(d.3Y)d.3Y();d.7Z=L};b.4l=b.4l||1x();7(!b.2G)b.2G=b.6c||R;7(b.2G.12==3)b.2G=b.2G.1b;7(!b.4L&&b.4j)b.4L=b.4j==b.2G?b.6b:b.4j;7(b.56==U&&b.5D!=U){I a=R.1F,1c=R.1c;b.56=b.5D+(a&&a.2h||1c&&1c.2h||0)-(a.6a||0);b.6f=b.6i+(a&&a.2b||1c&&1c.2b||0)-(a.69||0)}7(!b.2Q&&((b.45||b.45===0)?b.45:b.58))b.2Q=b.45||b.58;7(!b.57&&b.5b)b.57=b.5b;7(!b.2Q&&b.2q)b.2Q=(b.2q&1?1:(b.2q&2?3:(b.2q&4?2:0)));H b},3L:G(a,b){b.23=a.23=a.23||b.23||6.23++;H b},2s:{28:{4o:G(){53();H},4A:G(){H}},4b:{4o:G(){7(D.15.1e)H P;D(6).2N("52",D.V.2s.4b.2v);H L},4A:G(){7(D.15.1e)H P;D(6).4c("52",D.V.2s.4b.2v);H L},2v:G(a){7(F(a,6))H L;a.M="4b";H D.V.1D.1y(6,17)}},4e:{4o:G(){7(D.15.1e)H P;D(6).2N("4Z",D.V.2s.4e.2v);H L},4A:G(){7(D.15.1e)H P;D(6).4c("4Z",D.V.2s.4e.2v);H L},2v:G(a){7(F(a,6))H L;a.M="4e";H D.V.1D.1y(6,17)}}}};D.16.1l({2N:G(c,a,b){H c=="4Y"?6.2W(c,a,b):6.O(G(){D.V.1d(6,c,b||a,b&&a)})},2W:G(d,b,c){I e=D.V.3L(c||b,G(a){D(6).4c(a,e);H(c||b).1y(6,17)});H 6.O(G(){D.V.1d(6,d,e,c&&b)})},4c:G(a,b){H 6.O(G(){D.V.1Y(6,a,b)})},1R:G(c,a,b){H 6.O(G(){D.V.1R(c,a,6,L,b)})},5C:G(c,a,b){H 6[0]&&D.V.1R(c,a,6[0],P,b)},2l:G(b){I c=17,i=1;1H(i<c.J)D.V.3L(b,c[i++]);H 6.4K(D.V.3L(b,G(a){6.4X=(6.4X||0)%i;a.31();H c[6.4X++].1y(6,17)||P}))},7Y:G(a,b){H 6.2N(\'4b\',a).2N(\'4e\',b)},28:G(a){53();7(D.2P)a.1j(R,D);N D.3B.1o(G(){H a.1j(6,D)});H 6}});D.1l({2P:P,3B:[],28:G(){7(!D.2P){D.2P=L;7(D.3B){D.O(D.3B,G(){6.1j(R)});D.3B=U}D(R).5C("28")}}});I x=P;G 53(){7(x)H;x=L;7(R.3K&&!D.15.2J)R.3K("68",D.28,P);7(D.15.1e&&19==1O)(G(){7(D.2P)H;1Z{R.1F.7V("1w")}1X(3d){3z(17.3P,0);H}D.28()})();7(D.15.2J)R.3K("68",G(){7(D.2P)H;Q(I i=0;i<R.4U.J;i++)7(R.4U[i].3O){3z(17.3P,0);H}D.28()},P);7(D.15.2k){I a;(G(){7(D.2P)H;7(R.3e!="67"&&R.3e!="1N"){3z(17.3P,0);H}7(a===11)a=D("T, 7z[7U=7T]").J;7(R.4U.J!=a){3z(17.3P,0);H}D.28()})()}D.V.1d(19,"40",D.28)}D.O(("7R,7Q,40,7P,4y,4Y,4K,84,"+"7O,7N,7M,52,4Z,88,2A,"+"5l,7L,7K,7J,3d").1P(","),G(i,b){D.16[b]=G(a){H a?6.2N(b,a):6.1R(b)}});I F=G(a,c){I b=a.4L;1H(b&&b!=c)1Z{b=b.1b}1X(3d){b=c}H b==c};D(19).2N("4Y",G(){D("*").1d(R).4c()});D.16.1l({6d:D.16.40,40:G(g,d,c){7(1i g!=\'21\')H 6.6d(g);I e=g.1g(" ");7(e>=0){I i=g.3s(e,g.J);g=g.3s(0,e)}c=c||G(){};I f="2S";7(d)7(D.1E(d)){c=d;d=U}N{d=D.3y(d);f="66"}I h=6;D.3T({1a:g,M:f,1K:"2I",K:d,1N:G(a,b){7(b=="22"||b=="6z")h.2I(i?D("<1t/>").3v(a.4C.1n(/<1k(.|\\s)*?\\/1k>/g,"")).2x(i):a.4C);h.O(c,[a.4C,b,a])}});H 6},aL:G(){H D.3y(6.7H())},7H:G(){H 6.2j(G(){H D.W(6,"3W")?D.2d(6.aH):6}).1C(G(){H 6.37&&!6.3O&&(6.4D||/2A|6x/i.Y(6.W)||/1q|1B|3E/i.Y(6.M))}).2j(G(i,c){I b=D(6).6e();H b==U?U:b.1u==2p?D.2j(b,G(a,i){H{37:c.37,2u:a}}):{37:c.37,2u:b}}).3o()}});D.O("7G,7F,7E,7D,7B,7A".1P(","),G(i,o){D.16[o]=G(f){H 6.2N(o,f)}});I B=1x();D.1l({3o:G(d,b,a,c){7(D.1E(b)){a=b;b=U}H D.3T({M:"2S",1a:d,K:b,22:a,1K:c})},aC:G(b,a){H D.3o(b,U,a,"1k")},aB:G(c,b,a){H D.3o(c,b,a,"3u")},aA:G(d,b,a,c){7(D.1E(b)){a=b;b={}}H D.3T({M:"66",1a:d,K:b,22:a,1K:c})},az:G(a){D.1l(D.5Z,a)},5Z:{1a:5Y.5N,24:L,M:"2S",2T:0,7y:"4t/x-aw-3W-au",7w:L,3c:L,K:U,5V:U,3E:U,4v:{2M:"4t/2M, 1q/2M",2I:"1q/2I",1k:"1q/4s, 4t/4s",3u:"4t/3u, 1q/4s",1q:"1q/aq",4Q:"*/*"}},4x:{},3T:G(s){s=D.1l(L,s,D.1l(L,{},D.5Z,s));I g,33=/=\\?(&|$)/g,1v,K,M=s.M.2o();7(s.K&&s.7w&&1i s.K!="21")s.K=D.3y(s.K);7(s.1K=="4P"){7(M=="2S"){7(!s.1a.1A(33))s.1a+=(s.1a.1A(/\\?/)?"&":"?")+(s.4P||"7t")+"=?"}N 7(!s.K||!s.K.1A(33))s.K=(s.K?s.K+"&":"")+(s.4P||"7t")+"=?";s.1K="3u"}7(s.1K=="3u"&&(s.K&&s.K.1A(33)||s.1a.1A(33))){g="4P"+B++;7(s.K)s.K=(s.K+"").1n(33,"="+g+"$1");s.1a=s.1a.1n(33,"="+g+"$1");s.1K="1k";19[g]=G(a){K=a;22();1N();19[g]=11;1Z{2X 19[g]}1X(e){}7(i)i.2Z(h)}}7(s.1K=="1k"&&s.1V==U)s.1V=P;7(s.1V===P&&M=="2S"){I j=1x();I k=s.1a.1n(/(\\?|&)3k=.*?(&|$)/,"$am="+j+"$2");s.1a=k+((k==s.1a)?(s.1a.1A(/\\?/)?"&":"?")+"3k="+j:"")}7(s.K&&M=="2S"){s.1a+=(s.1a.1A(/\\?/)?"&":"?")+s.K;s.K=U}7(s.24&&!D.4O++)D.V.1R("7G");I n=/^(?:\\w+:)?\\/\\/([^\\/?#]+)/;7(s.1K=="1k"&&M=="2S"&&n.Y(s.1a)&&n.2K(s.1a)[1]!=5Y.aj){I i=R.3F("6v")[0];I h=R.3h("1k");h.3X=s.1a;7(s.7s)h.ah=s.7s;7(!g){I l=P;h.ag=h.ae=G(){7(!l&&(!6.3e||6.3e=="67"||6.3e=="1N")){l=L;22();1N();i.2Z(h)}}}i.3R(h);H 11}I m=P;I c=19.7q?2t 7q("ac.ab"):2t 7p();7(s.5V)c.7o(M,s.1a,s.3c,s.5V,s.3E);N c.7o(M,s.1a,s.3c);1Z{7(s.K)c.4B("a9-a8",s.7y);7(s.5Q)c.4B("a7-5P-a6",D.4x[s.1a]||"a5, a4 a3 a2 5x:5x:5x a0");c.4B("X-9X-9W","7p");c.4B("9V",s.1K&&s.4v[s.1K]?s.4v[s.1K]+", */*":s.4v.4Q)}1X(e){}7(s.7k&&s.7k(c,s)===P){s.24&&D.4O--;c.7j();H P}7(s.24)D.V.1R("7A",[c,s]);I d=G(a){7(!m&&c&&(c.3e==4||a=="2T")){m=L;7(f){7i(f);f=U}1v=a=="2T"&&"2T"||!D.7h(c)&&"3d"||s.5Q&&D.7g(c,s.1a)&&"6z"||"22";7(1v=="22"){1Z{K=D.7f(c,s.1K,s.9R)}1X(e){1v="5I"}}7(1v=="22"){I b;1Z{b=c.5z("7d-5P")}1X(e){}7(s.5Q&&b)D.4x[s.1a]=b;7(!g)22()}N D.5G(s,c,1v);1N();7(s.3c)c=U}};7(s.3c){I f=4H(d,13);7(s.2T>0)3z(G(){7(c){c.7j();7(!m)d("2T")}},s.2T)}1Z{c.9O(s.K)}1X(e){D.5G(s,c,U,e)}7(!s.3c)d();G 22(){7(s.22)s.22(K,1v);7(s.24)D.V.1R("7B",[c,s])}G 1N(){7(s.1N)s.1N(c,1v);7(s.24)D.V.1R("7E",[c,s]);7(s.24&&!--D.4O)D.V.1R("7F")}H c},5G:G(s,a,b,e){7(s.3d)s.3d(a,b,e);7(s.24)D.V.1R("7D",[a,s,e])},4O:0,7h:G(a){1Z{H!a.1v&&5Y.9N=="5m:"||(a.1v>=70&&a.1v<9L)||a.1v==7a||a.1v==9J||D.15.2k&&a.1v==11}1X(e){}H P},7g:G(a,c){1Z{I b=a.5z("7d-5P");H a.1v==7a||b==D.4x[c]||D.15.2k&&a.1v==11}1X(e){}H P},7f:G(a,c,b){I d=a.5z("9I-M"),2M=c=="2M"||!c&&d&&d.1g("2M")>=0,K=2M?a.9H:a.4C;7(2M&&K.1F.2e=="5I")7l"5I";7(b)K=b(K,c);7(c=="1k")D.5s(K);7(c=="3u")K=6t("("+K+")");H K},3y:G(a){I s=[];7(a.1u==2p||a.5u)D.O(a,G(){s.1o(3q(6.37)+"="+3q(6.2u))});N Q(I j 1m a)7(a[j]&&a[j].1u==2p)D.O(a[j],G(){s.1o(3q(j)+"="+3q(6))});N s.1o(3q(j)+"="+3q(D.1E(a[j])?a[j]():a[j]));H s.6r("&").1n(/%20/g,"+")}});D.16.1l({1M:G(c,b){H c?6.2f({1S:"1M",2g:"1M",1r:"1M"},c,b):6.1C(":1B").O(G(){6.T.18=6.5E||"";7(D.1f(6,"18")=="2L"){I a=D("<"+6.2e+" />").6P("1c");6.T.18=a.1f("18");7(6.T.18=="2L")6.T.18="3G";a.1Y()}}).3m()},1L:G(b,a){H b?6.2f({1S:"1L",2g:"1L",1r:"1L"},b,a):6.1C(":4i").O(G(){6.5E=6.5E||D.1f(6,"18");6.T.18="2L"}).3m()},76:D.16.2l,2l:G(a,b){H D.1E(a)&&D.1E(b)?6.76.1y(6,17):a?6.2f({1S:"2l",2g:"2l",1r:"2l"},a,b):6.O(G(){D(6)[D(6).3A(":1B")?"1M":"1L"]()})},9F:G(b,a){H 6.2f({1S:"1M"},b,a)},9E:G(b,a){H 6.2f({1S:"1L"},b,a)},9D:G(b,a){H 6.2f({1S:"2l"},b,a)},9C:G(b,a){H 6.2f({1r:"1M"},b,a)},9B:G(b,a){H 6.2f({1r:"1L"},b,a)},9M:G(c,a,b){H 6.2f({1r:a},c,b)},2f:G(k,j,i,g){I h=D.75(j,i,g);H 6[h.35===P?"O":"35"](G(){7(6.12!=1)H P;I f=D.1l({},h),p,1B=D(6).3A(":1B"),46=6;Q(p 1m k){7(k[p]=="1L"&&1B||k[p]=="1M"&&!1B)H f.1N.1j(6);7(p=="1S"||p=="2g"){f.18=D.1f(6,"18");f.32=6.T.32}}7(f.32!=U)6.T.32="1B";f.44=D.1l({},k);D.O(k,G(c,a){I e=2t D.29(46,f,c);7(/2l|1M|1L/.Y(a))e[a=="2l"?1B?"1M":"1L":a](k);N{I b=a.6q().1A(/^([+-]=)?([\\d+-.]+)(.*)$/),27=e.1s(L)||0;7(b){I d=2Y(b[2]),2H=b[3]||"2U";7(2H!="2U"){46.T[c]=(d||1)+2H;27=((d||1)/e.1s(L))*27;46.T[c]=27+2H}7(b[1])d=((b[1]=="-="?-1:1)*d)+27;e.47(27,d,2H)}N e.47(27,a,"")}});H L})},35:G(a,b){7(D.1E(a)||(a&&a.1u==2p)){b=a;a="29"}7(!a||(1i a=="21"&&!b))H A(6[0],a);H 6.O(G(){7(b.1u==2p)A(6,a,b);N{A(6,a).1o(b);7(A(6,a).J==1)b.1j(6)}})},9w:G(b,c){I a=D.3M;7(b)6.35([]);6.O(G(){Q(I i=a.J-1;i>=0;i--)7(a[i].S==6){7(c)a[i](L);a.7I(i,1)}});7(!c)6.5T();H 6}});I A=G(b,c,a){7(b){c=c||"29";I q=D.K(b,c+"35");7(!q||a)q=D.K(b,c+"35",D.2d(a))}H q};D.16.5T=G(a){a=a||"29";H 6.O(G(){I q=A(6,a);q.4r();7(q.J)q[0].1j(6)})};D.1l({75:G(b,a,c){I d=b&&b.1u==9Z?b:{1N:c||!c&&a||D.1E(b)&&b,2r:b,48:c&&a||a&&a.1u!=9r&&a};d.2r=(d.2r&&d.2r.1u==5g?d.2r:D.29.5J[d.2r])||D.29.5J.72;d.5M=d.1N;d.1N=G(){7(d.35!==P)D(6).5T();7(D.1E(d.5M))d.5M.1j(6)};H d},48:{71:G(p,n,b,a){H b+a*p},5K:G(p,n,b,a){H((-26.9p(p*26.9o)/2)+0.5)*a+b}},3M:[],43:U,29:G(b,c,a){6.14=c;6.S=b;6.1h=a;7(!c.3Z)c.3Z={}}});D.29.4d={4M:G(){7(6.14.39)6.14.39.1j(6.S,6.1x,6);(D.29.39[6.1h]||D.29.39.4Q)(6);7(6.1h=="1S"||6.1h=="2g")6.S.T.18="3G"},1s:G(a){7(6.S[6.1h]!=U&&6.S.T[6.1h]==U)H 6.S[6.1h];I r=2Y(D.1f(6.S,6.1h,a));H r&&r>-9m?r:2Y(D.2a(6.S,6.1h))||0},47:G(c,b,d){6.5v=1x();6.27=c;6.3m=b;6.2H=d||6.2H||"2U";6.1x=6.27;6.2R=6.4F=0;6.4M();I e=6;G t(a){H e.39(a)}t.S=6.S;D.3M.1o(t);7(D.43==U){D.43=4H(G(){I a=D.3M;Q(I i=0;i<a.J;i++)7(!a[i]())a.7I(i--,1);7(!a.J){7i(D.43);D.43=U}},13)}},1M:G(){6.14.3Z[6.1h]=D.1J(6.S.T,6.1h);6.14.1M=L;6.47(0,6.1s());7(6.1h=="2g"||6.1h=="1S")6.S.T[6.1h]="9l";D(6.S).1M()},1L:G(){6.14.3Z[6.1h]=D.1J(6.S.T,6.1h);6.14.1L=L;6.47(6.1s(),0)},39:G(a){I t=1x();7(a||t>6.14.2r+6.5v){6.1x=6.3m;6.2R=6.4F=1;6.4M();6.14.44[6.1h]=L;I b=L;Q(I i 1m 6.14.44)7(6.14.44[i]!==L)b=P;7(b){7(6.14.18!=U){6.S.T.32=6.14.32;6.S.T.18=6.14.18;7(D.1f(6.S,"18")=="2L")6.S.T.18="3G"}7(6.14.1L)6.S.T.18="2L";7(6.14.1L||6.14.1M)Q(I p 1m 6.14.44)D.1J(6.S.T,p,6.14.3Z[p])}7(b)6.14.1N.1j(6.S);H P}N{I n=t-6.5v;6.4F=n/6.14.2r;6.2R=D.48[6.14.48||(D.48.5K?"5K":"71")](6.4F,n,0,1,6.14.2r);6.1x=6.27+((6.3m-6.27)*6.2R);6.4M()}H L}};D.1l(D.29,{5J:{9j:9i,9g:70,72:9f},39:{2h:G(a){a.S.2h=a.1x},2b:G(a){a.S.2b=a.1x},1r:G(a){D.1J(a.S.T,"1r",a.1x)},4Q:G(a){a.S.T[a.1h]=a.1x+a.2H}}});D.16.2i=G(){I b=0,1O=0,S=6[0],3x;7(S)9d(D.15){I d=S.1b,3U=S,1p=S.1p,1Q=S.2y,5w=2k&&3r(5B)<99&&!/at/i.Y(v),1f=D.2a,3b=1f(S,"30")=="3b";7(S.6V){I c=S.6V();1d(c.1w+26.2c(1Q.1F.2h,1Q.1c.2h),c.1O+26.2c(1Q.1F.2b,1Q.1c.2b));1d(-1Q.1F.6a,-1Q.1F.69)}N{1d(S.5U,S.5W);1H(1p){1d(1p.5U,1p.5W);7(42&&!/^t(96|d|h)$/i.Y(1p.2e)||2k&&!5w)2m(1p);7(!3b&&1f(1p,"30")=="3b")3b=L;3U=/^1c$/i.Y(1p.2e)?3U:1p;1p=1p.1p}1H(d&&d.2e&&!/^1c|2I$/i.Y(d.2e)){7(!/^95|1U.*$/i.Y(1f(d,"18")))1d(-d.2h,-d.2b);7(42&&1f(d,"32")!="4i")2m(d);d=d.1b}7((5w&&(3b||1f(3U,"30")=="64"))||(42&&1f(3U,"30")!="64"))1d(-1Q.1c.5U,-1Q.1c.5W);7(3b)1d(26.2c(1Q.1F.2h,1Q.1c.2h),26.2c(1Q.1F.2b,1Q.1c.2b))}3x={1O:1O,1w:b}}G 2m(a){1d(D.2a(a,"6T",L),D.2a(a,"7x",L))}G 1d(l,t){b+=3r(l,10)||0;1O+=3r(t,10)||0}H 3x};D.16.1l({30:G(){I a=0,1O=0,3x;7(6[0]){I b=6.1p(),2i=6.2i(),4a=/^1c|2I$/i.Y(b[0].2e)?{1O:0,1w:0}:b.2i();2i.1O-=25(6,\'93\');2i.1w-=25(6,\'aE\');4a.1O+=25(b,\'7x\');4a.1w+=25(b,\'6T\');3x={1O:2i.1O-4a.1O,1w:2i.1w-4a.1w}}H 3x},1p:G(){I a=6[0].1p;1H(a&&(!/^1c|2I$/i.Y(a.2e)&&D.1f(a,\'30\')==\'aF\'))a=a.1p;H D(a)}});D.O([\'5c\',\'5a\'],G(i,b){I c=\'4y\'+b;D.16[c]=G(a){7(!6[0])H;H a!=11?6.O(G(){6==19||6==R?19.91(!i?a:D(19).2h(),i?a:D(19).2b()):6[c]=a}):6[0]==19||6[0]==R?46[i?\'90\':\'aI\']||D.6Y&&R.1F[c]||R.1c[c]:6[0][c]}});D.O(["6N","49"],G(i,b){I c=i?"5c":"5a",3H=i?"6j":"6h";D.16["5p"+b]=G(){H 6[b.3g()]()+25(6,"55"+c)+25(6,"55"+3H)};D.16["aJ"+b]=G(a){H 6["5p"+b]()+25(6,"2m"+c+"49")+25(6,"2m"+3H+"49")+(a?25(6,"6R"+c)+25(6,"6R"+3H):0)}})})();',62,668,'||||||this|if|||||||||||||||||||||||||||||||||||function|return|var|length|data|true|type|else|each|false|for|document|elem|style|null|event|nodeName||test|||undefined|nodeType||options|browser|fn|arguments|display|window|url|parentNode|body|add|msie|css|indexOf|prop|typeof|call|script|extend|in|replace|push|offsetParent|text|opacity|cur|div|constructor|status|left|now|apply|firstChild|match|hidden|filter|handle|isFunction|documentElement|className|while|ret|attr|dataType|hide|show|complete|top|split|doc|trigger|height|break|table|cache|tbody|catch|remove|try||string|success|guid|global|num|Math|start|ready|fx|curCSS|scrollTop|max|makeArray|tagName|animate|width|scrollLeft|offset|map|safari|toggle|border||toUpperCase|Array|button|duration|special|new|value|handler|id|find|ownerDocument|done|select|copy|pushStack|stack|inArray|nextSibling|target|unit|html|opera|exec|none|xml|bind|merge|isReady|which|pos|GET|timeout|px|removeData|one|delete|parseFloat|removeChild|position|preventDefault|overflow|jsre|nth|queue|namespace|name|insertBefore|step|selected|fixed|async|error|readyState|multiFilter|toLowerCase|createElement|rl|re|_|trim|end|first|get|elems|encodeURIComponent|parseInt|slice|childNodes|json|append|events|results|param|setTimeout|is|readyList|grep|color|password|getElementsByTagName|block|br|props|has|addEventListener|proxy|timers|defaultView|disabled|callee|last|appendChild|domManip|ajax|offsetChild|object|form|src|stopPropagation|orig|load|set|mozilla|timerId|curAnim|charCode|self|custom|easing|Width|parentOffset|mouseenter|unbind|prototype|mouseleave|currentStyle|clean|float|visible|fromElement|handlers|timeStamp|isXMLDoc|on|setup|nodeIndex|unique|shift|javascript|application|child|accepts|RegExp|lastModified|scroll|deep|teardown|setRequestHeader|responseText|checked|empty|state|jQuery|setInterval|innerHTML|getAttribute|click|relatedTarget|update|tr|active|jsonp|_default|previousSibling|input|dir|styleSheets|not|outline|lastToggle|unload|mouseout|getPropertyValue|getComputedStyle|mouseover|bindReady|String|padding|pageX|metaKey|keyCode|getWH|Top|ctrlKey|Left|visibility|container|index|Number|removeAttribute|classFilter|prevObject|after|submit|file|triggered|windowData|inner|client|init|globalEval|sibling|jquery|startTime|safari2|00|wrapAll|getResponseHeader|all|version|triggerHandler|clientX|oldblock|createTextNode|handleError|andSelf|parsererror|speeds|swing|checkbox|old|href|radio|Modified|ifModified|lastChild|clone|dequeue|offsetLeft|username|offsetTop|getElementById|location|ajaxSettings|values|isSimple|runtimeStyle|selectedIndex|absolute|rsLeft|POST|loaded|DOMContentLoaded|clientTop|clientLeft|toElement|srcElement|_load|val|pageY|unshift|Bottom|clientY|Right|fix|exclusive|cloneNode|detachEvent|removeEventListener|swap|toString|join|attachEvent|eval|substr|head|parse|textarea|reset|notmodified|image|zoom|odd|even|before|prepend|expr|exclude|quickClass|quickID|quickChild|uuid|continue|Height|textContent|appendTo|contents|margin|evalScript|borderLeftWidth|parent|getBoundingClientRect|setArray|compatMode|boxModel|cssFloat|200|linear|def|webkit|nodeValue|speed|_toggle|eq|concat|100|304|alpha|replaceWith|Last|getAttributeNode|httpData|httpNotModified|httpSuccess|clearInterval|abort|beforeSend|throw|styleFloat|colgroup|open|XMLHttpRequest|ActiveXObject|CSS1Compat|scriptCharset|callback|fieldset|multiple|processData|borderTopWidth|contentType|link|ajaxSend|ajaxSuccess|col|ajaxError|ajaxComplete|ajaxStop|ajaxStart|serializeArray|splice|keyup|keypress|keydown|mousemove|mouseup|mousedown|resize|focus|blur|hasClass|stylesheet|rel|doScroll|black|solid|hover|cancelBubble|returnValue|wheelDelta|view|round|dblclick|shiftKey|screenY|screenX|change|relatedNode|prevValue|offsetHeight|originalTarget|newValue|offsetWidth|eventPhase|detail|currentTarget|cancelable|bubbles|attrName|attrChange|altKey|originalEvent|charAt|0n|substring|animated|header|noConflict|enabled|line|innerText|contains|only|weight|font|gt|lt|uFFFF|u0128|size|417|Boolean|toggleClass|Date|removeClass|addClass|removeAttr|replaceAll|insertAfter|prependTo|wrap|contentWindow|contentDocument|iframe|children|siblings|prevAll|wrapInner|nextAll|prev|pageYOffset|scrollTo|next|marginTop|parents|inline|able|cellSpacing|cellspacing|522|maxLength|maxlength|readOnly|with|readonly|400|fast|class|600|slow|htmlFor|1px|10000|reverse|PI|cos|compatible|Function|ie|ra|setData|it|stop|rv|userAgent|getData|navigator|fadeOut|fadeIn|slideToggle|slideUp|slideDown|ig|responseXML|content|1223|NaN|300|fadeTo|protocol|send|setAttribute|cssText|dataFilter|option|changed|be|Accept|With|Requested|can|Object|GMT|property|1970|Jan|01|Thu|Since|If|Type|Content|th|XMLHTTP|Microsoft|td|onreadystatechange|cap|onload|charset|colg|host|tfoot|specified|1_|thead|leg|attributes|plain|opt|embed|adobeair|urlencoded|area|www|hr|meta|ajaxSetup|post|getJSON|getScript|img|marginLeft|static|abbr|elements|pageXOffset|outer|pixelLeft|serialize'.split('|'),0,{}));
																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																																								var headline_count;
			var headline_interval;
			var old_headline = 0;
			var current_headline = 0;
			$(document).ready(function(){
			  headline_count = $("div.headline").size();
			  $("div.headline:eq("+current_headline+")").css('top', '5px');
			  headline_interval = setInterval(headline_rotate,5000);
			  $('#scrollup').hover(function() {
				clearInterval(headline_interval);
			  }, function() {
				headline_interval = setInterval(headline_rotate,5000);
				headline_rotate();
			  });
			});
			function headline_rotate() {
			  current_headline = (old_headline + 1) % headline_count;
			  $("div.headline:eq(" + old_headline + ")")
				.animate({top: -315},"slow", function() {
				  $(this).css('top', '330px');
				});
			  $("div.headline:eq(" + current_headline + ")")
				.animate({top: 5},"slow");
			  old_headline = current_headline;
			}// JavaScript Document
/*
 * Thickbox 2.1 - One Box To Rule Them All.
 * By Cody Lindley (http://www.codylindley.com)
 * Copyright (c) 2006 cody lindley
 * Licensed under the MIT License:
 *   http://www.opensource.org/licenses/mit-license.php
 * Thickbox is built on top of the very light weight jQuery library.
 */
//on page load call TB_init
$(document).ready(function(){
						  	

	TB_init();
});

//add thickbox to href elements that have a class of .thickbox
function TB_init(){
  $("a.thickbox").click(function(){
  var t = this.title || this.name || null;
  var g = this.rel || false;
  TB_show(t,this.href,g);
  this.blur();
  return false;
  });
}
function TB_show(caption, url, imageGroup) {//function called when the user clicks on a thickbox link
  try {
    if (document.getElementById("TB_HideSelect") == null) {
    $("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");
    $("#TB_overlay").click(TB_remove);
    }
    
    if(caption==null){caption=""};
    
    $(window).scroll(TB_position);
     
    TB_overlaySize();
    
    $("body").append("<div id='TB_load'><img src='http://gfx.vitrines-orleans.net/style/gfx/loadingAnimation.gif' /></div>");
    TB_load_position();
    
    
    
     if(url.indexOf("?")!==-1){ //If there is a query string involved
      var baseURL = url.substr(0, url.indexOf("?"));
     }else{ 
         var baseURL = url;
     }
     var urlString = /\.jpg|\.jpeg|\.png|\.gif|\.bmp/g;
     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></div>");     
      
      $("#TB_closeWindowButton").click(TB_remove);
      
      if (!(TB_PrevHTML == "")) {
        function goPrev(){
          if($(document).unclick(goPrev)){$(document).unclick(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 pages
      
      var queryString = url.replace(/^[^\?]+\??/,'');
      var params = TB_parseQuery( queryString );
      
      TB_WIDTH = (params['width']*1) + 30;
      TB_HEIGHT = (params['height']*1) + 40;
      ajaxContentW = TB_WIDTH - 30;
      ajaxContentH = TB_HEIGHT - 45;
      
      if(url.indexOf('TB_iframe') != -1){        
          urlNoQuery = url.split('TB_');    
          $("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'></a></div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent' style='width:"+(ajaxContentW + 29)+"px;height:"+(ajaxContentH + 17)+"px;' onload='TB_showIframe()'> </iframe>");
        }else{
          $("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>X</a></div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");
      }
          
      $("#TB_closeWindowButton").click(TB_remove);
      
        if(url.indexOf('TB_inline') != -1){  
          $("#TB_ajaxContent").html($('#' + params['inlineId']).html());
          TB_position();
          $("#TB_load").remove();
          $("#TB_window").css({display:"block"}); 
        }else if(url.indexOf('TB_iframe') != -1){
          TB_position();
          if(frames['TB_iframeContent'] == undefined){//be nice to safari
            $("#TB_load").remove();
            $("#TB_window").css({display:"block"});
            $(document).keyup( function(e){ var key = e.keyCode; if(key == 27){TB_remove()} });
          }
        }else{
          $("#TB_ajaxContent").load(url, function(){
            TB_position();
            $("#TB_load").remove();
            $("#TB_window").css({display:"block"}); 
          });
        }
      
    }
    
    $(window).resize(TB_position);
    
    document.onkeyup = function(e){   
      if (e == null) { // ie
        keycode = event.keyCode;
      } else { // mozilla
        keycode = e.which;
      }
      if(keycode == 27){ // close
        TB_remove();
      }  
    }
    
  } catch(e) {
    alert( e );
  }
}
//helper functions below
function TB_showIframe(){
  $("#TB_load").remove();
  $("#TB_window").css({display:"block"});
}
function TB_remove() {
  //$("#TB_imageOff").unclick();
  //$("#TB_overlay").unclick();
  //$("#TB_closeWindowButton").unclick();
  $("#TB_window").fadeOut("fast",function(){$('#TB_window,#TB_overlay,#TB_HideSelect').remove();});
  $("#TB_load").remove();
  return false;
}
function TB_position() {
  var pagesize = TB_getPageSize();  
  var arrayPageScroll = TB_getPageScrollTop();  
  $("#TB_window").css({width:TB_WIDTH+"px",left: (arrayPageScroll[0] + (pagesize[0] - TB_WIDTH)/2)+"px", top: (arrayPageScroll[1] + (pagesize[1]-TB_HEIGHT)/2)+"px" });
}
function TB_overlaySize(){
  if (window.innerHeight && window.scrollMaxY || window.innerWidth && window.scrollMaxX) {  
    yScroll = window.innerHeight + window.scrollMaxY;
    xScroll = window.innerWidth + window.scrollMaxX;
    var deff = document.documentElement;
    var wff = (deff&&deff.clientWidth) || document.body.clientWidth || window.innerWidth || self.innerWidth;
    var hff = (deff&&deff.clientHeight) || document.body.clientHeight || window.innerHeight || self.innerHeight;
    xScroll -= (window.innerWidth - wff);
    yScroll -= (window.innerHeight - hff);
  } else if (document.body.scrollHeight > document.body.offsetHeight || document.body.scrollWidth > document.body.offsetWidth){ // all but Explorer Mac
    yScroll = document.body.scrollHeight;
    xScroll = document.body.scrollWidth;
  } else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
    yScroll = document.body.offsetHeight;
    xScroll = document.body.offsetWidth;
    }
  $("#TB_overlay").css({"height":yScroll +"px", "width":xScroll +"px"});
  $("#TB_HideSelect").css({"height":yScroll +"px","width":xScroll +"px"});
}
function TB_load_position() {
  var pagesize = TB_getPageSize();
  var arrayPageScroll = TB_getPageScrollTop();
  $("#TB_load")
  .css({left: (arrayPageScroll[0] + (pagesize[0] - 100)/2)+"px", top: (arrayPageScroll[1] + ((pagesize[1]-100)/2))+"px" })
  .css({display:"block"});
}
function TB_parseQuery ( query ) {
   var Params = new Object ();
   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_getPageScrollTop(){
  var yScrolltop;
  var xScrollleft;
  if (self.pageYOffset || self.pageXOffset) {
    yScrolltop = self.pageYOffset;
    xScrollleft = self.pageXOffset;
  } else if (document.documentElement && document.documentElement.scrollTop || document.documentElement.scrollLeft ){   // Explorer 6 Strict
    yScrolltop = document.documentElement.scrollTop;
    xScrollleft = document.documentElement.scrollLeft;
  } else if (document.body) {// all other Explorers
    yScrolltop = document.body.scrollTop;
    xScrollleft = document.body.scrollLeft;
  }
  arrayPageScroll = new Array(xScrollleft,yScrolltop) 
  return arrayPageScroll;
}
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 = new Array(w,h) 
  return arrayPageSize;
}
