var Class=function(_1){var _2=function(){for(var p in this){this[p]._proto_=this;}if(arguments[0]!="noinit"&&this.initialize){return this.initialize.apply(this,arguments);}};_2.extend=this.extend;_2.implement=this.implement;_2.prototype=_1;return _2;};Class.empty=function(){};Class.create=function(_4){return new Class(_4);};Class.prototype={extend:function(_5){var _6=new this("noinit");for(var _7 in _5){var _8=_6[_7];var _9=_5[_7];if(_8&&_8!=_9){_9=_8.parentize(_9)||_9;}_6[_7]=_9;}return new Class(_6);},implement:function(_a){for(var _b in _a){this.prototype[_b]=_a[_b];}}};Object.extend=function(){var _c=arguments;if(_c[1]){_c=[_c[0],_c[1]];}else{_c=[this,_c[0]];}for(var _d in _c[1]){_c[0][_d]=_c[1][_d];}return _c[0];};Object.Native=function(){for(var i=0;i<arguments.length;i++){arguments[i].extend=Class.prototype.implement;}};new Object.Native(Function,Array,String,Number);Function.extend({parentize:function(_f){var _10=this;return function(){this.parent=_10;return _f.apply(this,arguments);};}});Function.extend({pass:function(_11,_12){var fn=this;if($type(_11)!="array"){_11=[_11];}return function(){return fn.apply(_12||fn._proto_||fn,_11);};},bind:function(_14){var fn=this;return function(){return fn.apply(_14,arguments);};},bindAsEventListener:function(_16){var fn=this;return function(_18){fn.call(_16,_18||window.event);return false;};},delay:function(ms,_1a){return setTimeout(this.bind(_1a||this._proto_||this),ms);},periodical:function(ms,_1c){return setInterval(this.bind(_1c||this._proto_||this),ms);}});function $clear(_1d){clearTimeout(_1d);clearInterval(_1d);return null;}function $type(obj,_1f){if(!obj){return false;}var _20=false;if(obj instanceof Function){_20="function";}else{if(obj.nodeName){if(obj.nodeType==3&&!/\S/.test(obj.nodeValue)){_20="textnode";}else{if(obj.nodeType==1){_20="element";}}}else{if(obj instanceof Array){_20="array";}else{if(typeof obj=="object"){_20="object";}else{if(typeof obj=="string"){_20="string";}else{if(typeof obj=="number"&&isFinite(obj)){_20="number";}}}}}}return _20;}var Chain=new Class({chain:function(fn){this.chains=this.chains||[];this.chains.push(fn);return this;},callChain:function(){if(this.chains&&this.chains.length){this.chains.splice(0,1)[0].delay(10,this);}},clearChain:function(){this.chains=[];}});if(!Array.prototype.forEach){Array.prototype.forEach=function(fn,_23){for(var i=0;i<this.length;i++){fn.call(_23,this[i],i);}};}Array.extend({each:Array.prototype.forEach,copy:function(){var _25=[];for(var i=0;i<this.length;i++){_25.push(this[i]);}return _25;},remove:function(_27){for(var i=0;i<this.length;i++){if(this[i]==_27){this.splice(i,1);}}return this;},test:function(_29){for(var i=0;i<this.length;i++){if(this[i]==_29){return true;}}return false;},extend:function(_2b){for(var i=0;i<_2b.length;i++){this.push(_2b[i]);}return this;}});function $A(_2d){return Array.prototype.copy.call(_2d);}String.extend({test:function(_2e,_2f){return this.match(new RegExp(_2e,_2f));},toInt:function(){return parseInt(this);},camelCase:function(){return this.replace(/-\D/gi,function(_30){return _30.charAt(_30.length-1).toUpperCase();});},capitalize:function(){return this.toLowerCase().replace(/\b[a-z]/g,function(_31){return _31.toUpperCase();});},trim:function(){return this.replace(/^\s*|\s*$/g,"");},clean:function(){return this.replace(/\s\s/g," ").trim();},rgbToHex:function(_32){var rgb=this.test("([\\d]{1,3})","g");if(rgb[3]==0){return "transparent";}var hex=[];for(var i=0;i<3;i++){var bit=(rgb[i]-0).toString(16);hex.push(bit.length==1?"0"+bit:bit);}var _37="#"+hex.join("");if(_32){return hex;}else{return _37;}},hexToRgb:function(_38){var hex=this.test("^[#]{0,1}([\\w]{1,2})([\\w]{1,2})([\\w]{1,2})$");var rgb=[];for(var i=1;i<hex.length;i++){if(hex[i].length==1){hex[i]+=hex[i];}rgb.push(parseInt(hex[i],16));}var _3c="rgb("+rgb.join(",")+")";if(_38){return rgb;}else{return _3c;}}});Number.extend({toInt:function(){return this;}});var Element=new Class({initialize:function(el){if($type(el)=="string"){el=document.createElement(el);}return $(el);},inject:function(el,_3f){el=$(el)||new Element(el);switch(_3f){case "before":$(el.parentNode).insertBefore(this,el);break;case "after":if(!el.getNext()){$(el.parentNode).appendChild(this);}else{$(el.parentNode).insertBefore(this,el.getNext());}break;case "inside":el.appendChild(this);break;}return this;},injectBefore:function(el){return this.inject(el,"before");},injectAfter:function(el){return this.inject(el,"after");},injectInside:function(el){return this.inject(el,"inside");},adopt:function(el){this.appendChild($(el)||new Element(el));return this;},remove:function(){this.parentNode.removeChild(this);},clone:function(_44){return $(this.cloneNode(_44||true));},replaceWith:function(el){var el=$(el)||new Element(el);this.parentNode.replaceChild(el,this);return el;},appendText:function(_47){if(this.getTag()=="style"&&window.ActiveXObject){this.styleSheet.cssText=_47;}else{this.appendChild(document.createTextNode(_47));}return this;},hasClass:function(_48){return !!this.className.test("\\b"+_48+"\\b");},addClass:function(_49){if(!this.hasClass(_49)){this.className=(this.className+" "+_49.trim()).clean();}return this;},removeClass:function(_4a){if(this.hasClass(_4a)){this.className=this.className.replace(_4a.trim(),"").clean();}return this;},toggleClass:function(_4b){if(this.hasClass(_4b)){return this.removeClass(_4b);}else{return this.addClass(_4b);}},setStyle:function(_4c,_4d){if(_4c=="opacity"){this.setOpacity(parseFloat(_4d));}else{this.style[_4c.camelCase()]=_4d;}return this;},setStyles:function(_4e){if($type(_4e)=="object"){for(var _4f in _4e){this.setStyle(_4f,_4e[_4f]);}}else{if($type(_4e)=="string"){if(window.ActiveXObject){this.cssText=_4e;}else{this.setAttribute("style",_4e);}}}return this;},setOpacity:function(_50){if(_50==0&&this.style.visibility!="hidden"){this.style.visibility="hidden";}else{if(this.style.visibility!="visible"){this.style.visibility="visible";}}if(window.ActiveXObject){this.style.filter="alpha(opacity="+_50*100+")";}this.style.opacity=_50;return this;},getStyle:function(_51,num){var _53=_51.camelCase();var _54=this.style[_53]||false;if(!_54){if(document.defaultView){_54=document.defaultView.getComputedStyle(this,null).getPropertyValue(_51);}else{if(this.currentStyle){_54=this.currentStyle[_53];}}}if(_54&&["color","backgroundColor","borderColor"].test(_53)&&_54.test("rgb")){_54=_54.rgbToHex();}if(num){return _54.toInt();}else{return _54;}},removeStyles:function(){$A(arguments).each(function(_55){this.style[_55.camelCase()]="";},this);return this;},addEvent:function(_56,fn){this[_56+fn]=fn.bind(this);if(this.addEventListener){this.addEventListener(_56,fn,false);}else{this.attachEvent("on"+_56,this[_56+fn]);}var el=this;if(this!=window){Unload.functions.push(function(){el.removeEvent(_56,fn);el[_56+fn]=null;});}return this;},removeEvent:function(_59,fn){if(this.removeEventListener){this.removeEventListener(_59,fn,false);}else{this.detachEvent("on"+_59,this[_59+fn]);}return this;},getBrother:function(_5b){var el=this[_5b+"Sibling"];while($type(el)=="textnode"){el=el[_5b+"Sibling"];}return $(el);},getPrevious:function(){return this.getBrother("previous");},getNext:function(){return this.getBrother("next");},getFirst:function(){var el=this.firstChild;while($type(el)=="textnode"){el=el.nextSibling;}return $(el);},getLast:function(){var el=this.lastChild;while($type(el)=="textnode"){el=el.previousSibling;}return $(el);},setProperty:function(_5f,_60){var el=false;switch(_5f){case "class":this.className=_60;break;case "style":this.setStyles(_60);break;case "name":if(window.ActiveXObject&&this.getTag()=="input"){el=$(document.createElement("<input name=\""+_60+"\" />"));$A(this.attributes).each(function(_62){if(_62.name!="name"){el.setProperty(_62.name,_62.value);}});if(this.parentNode){this.replaceWith(el);}}default:this.setAttribute(_5f,_60);}return el||this;},setProperties:function(_63){for(var _64 in _63){this.setProperty(_64,_63[_64]);}return this;},setHTML:function(_65){this.innerHTML=_65;return this;},getProperty:function(_66){return this.getAttribute(_66);},getTag:function(){return this.tagName.toLowerCase();},getOffset:function(_67){_67=_67.capitalize();var el=this;var _69=0;do{_69+=el["offset"+_67]||0;el=el.offsetParent;}while(el);return _69;},getTop:function(){return this.getOffset("top");},getLeft:function(){return this.getOffset("left");}});new Object.Native(Element);Element.extend({hasClassName:Element.prototype.hasClass,addClassName:Element.prototype.addClass,removeClassName:Element.prototype.removeClass,toggleClassName:Element.prototype.toggleClass});function $Element(el,_6b,_6c){if($type(_6c)!="array"){_6c=[_6c];}return Element.prototype[_6b].apply(el,_6c);}function $(el){if($type(el)=="string"){el=document.getElementById(el);}if($type(el)=="element"){if(!el.extend){Unload.elements.push(el);el.extend=Object.extend;el.extend(Element.prototype);}return el;}else{return false;}}window.addEvent=document.addEvent=Element.prototype.addEvent;window.removeEvent=document.removeEvent=Element.prototype.removeEvent;var Unload={elements:[],functions:[],vars:[],unload:function(){Unload.functions.each(function(fn){fn();});window.removeEvent("unload",window.removeFunction);Unload.elements.each(function(el){for(var p in Element.prototype){window[p]=null;document[p]=null;el[p]=null;}el.extend=null;});}};window.removeFunction=Unload.unload;window.addEvent("unload",window.removeFunction);var Fx=fx={};Fx.Base=new Class({setOptions:function(_71){this.options=Object.extend({onStart:Class.empty,onComplete:Class.empty,transition:Fx.Transitions.sineInOut,duration:500,unit:"px",wait:true,fps:50},_71||{});},step:function(){var _72=new Date().getTime();if(_72<this.time+this.options.duration){this.cTime=_72-this.time;this.setNow();}else{this.options.onComplete.pass(this.element,this).delay(10);this.clearTimer();this.callChain();this.now=this.to;}this.increase();},set:function(to){this.now=to;this.increase();return this;},setNow:function(){this.now=this.compute(this.from,this.to);},compute:function(_74,to){return this.options.transition(this.cTime,_74,(to-_74),this.options.duration);},custom:function(_76,to){if(!this.options.wait){this.clearTimer();}if(this.timer){return;}this.options.onStart.pass(this.element,this).delay(10);this.from=_76;this.to=to;this.time=new Date().getTime();this.timer=this.step.periodical(Math.round(1000/this.options.fps),this);return this;},clearTimer:function(){this.timer=$clear(this.timer);return this;},setStyle:function(_78,_79,_7a){_78.setStyle(_79,_7a+this.options.unit);}});Fx.Base.implement(new Chain);Fx.Style=Fx.Base.extend({initialize:function(el,_7c,_7d){this.element=$(el);this.setOptions(_7d);this.property=_7c.camelCase();},hide:function(){return this.set(0);},goTo:function(val){return this.custom(this.now||0,val);},increase:function(){this.setStyle(this.element,this.property,this.now);}});Fx.Styles=Fx.Base.extend({initialize:function(el,_80){this.element=$(el);this.setOptions(_80);this.now={};},setNow:function(){for(var p in this.from){this.now[p]=this.compute(this.from[p],this.to[p]);}},custom:function(_82){if(this.timer&&this.options.wait){return;}var _83={};var to={};for(var p in _82){_83[p]=_82[p][0];to[p]=_82[p][1];}return this.parent(_83,to);},increase:function(){for(var p in this.now){this.setStyle(this.element,p,this.now[p]);}}});Element.extend({effect:function(_87,_88){return new Fx.Style(this,_87,_88);},effects:function(_89){return new Fx.Styles(this,_89);}});Fx.Transitions={linear:function(t,b,c,d){return c*t/d+b;},sineInOut:function(t,b,c,d){return -c/2*(Math.cos(Math.PI*t/d)-1)+b;}};var Ajax=ajax=new Class({setOptions:function(_92){this.options={method:"post",postBody:null,async:true,onComplete:Class.empty,onStateChange:Class.empty,update:null,evalScripts:false};Object.extend(this.options,_92||{});},initialize:function(url,_94){this.setOptions(_94);this.url=url;this.transport=this.getTransport();},request:function(){this.transport.open(this.options.method,this.url,this.options.async);this.transport.onreadystatechange=this.onStateChange.bind(this);if(this.options.method=="post"){this.transport.setRequestHeader("Content-type","application/x-www-form-urlencoded");if(this.transport.overrideMimeType){this.transport.setRequestHeader("Connection","close");}}switch($type(this.options.postBody)){case "element":this.options.postBody=$(this.options.postBody).toQueryString();break;case "object":this.options.postBody=Object.toQueryString(this.options.postBody);}this.transport.send(this.options.postBody);return this;},onStateChange:function(){this.options.onStateChange.bind(this).delay(10);if(this.transport.readyState==4&&this.transport.status==200){if(this.options.update){$(this.options.update).setHTML(this.transport.responseText);}this.options.onComplete.pass([this.transport.responseText,this.transport.responseXML],this).delay(20);if(this.options.evalScripts){this.evalScripts.delay(30,this);}this.transport.onreadystatechange=Class.empty;this.callChain();}},evalScripts:function(){if(scripts=this.transport.responseText.match(/<script[^>]*?>[\S\s]*?<\/script>/g)){scripts.each(function(_95){eval(_95.replace(/^<script[^>]*?>/,"").replace(/<\/script>$/,""));});}},getTransport:function(){if(window.XMLHttpRequest){return new XMLHttpRequest();}else{if(window.ActiveXObject){return new ActiveXObject("Microsoft.XMLHTTP");}}}});Ajax.implement(new Chain);Object.toQueryString=function(_96){var _97=[];for(var _98 in _96){_97.push(encodeURIComponent(_98)+"="+encodeURIComponent(_96[_98]));}return _97.join("&");};Element.extend({send:function(_99){_99=Object.extend(_99,{postBody:this.toQueryString(),method:"post"});return new Ajax(this.getProperty("action"),_99).request();},toQueryString:function(){var _9a=[];$A(this.getElementsByTagName("*")).each(function(el){$(el);var _9c=el.name||false;if(!_9c){return;}var _9d=false;switch(el.getTag()){case "select":_9d=el.getElementsByTagName("option")[el.selectedIndex].value;break;case "input":if((el.checked&&["checkbox","radio"].test(el.type))||(["hidden","text","password"].test(el.type))){_9d=el.value;}break;case "textarea":_9d=el.value;}if(_9d){_9a.push(encodeURIComponent(_9c)+"="+encodeURIComponent(_9d));}});return _9a.join("&");}});var Window={extend:Object.extend,getWidth:function(){return window.innerWidth||document.documentElement.clientWidth||0;},getHeight:function(){return window.innerHeight||document.documentElement.clientHeight||0;},getScrollHeight:function(){return document.documentElement.scrollHeight;},getScrollWidth:function(){return document.documentElement.scrollWidth;},getScrollTop:function(){return document.documentElement.scrollTop||window.pageYOffset||0;},getScrollLeft:function(){return document.documentElement.scrollLeft||window.pageXOffset||0;},onDomReady:function(_9e){var _9f=document.addEventListener;var _a0=document.readyState;if(_9f){document.addEventListener("DOMContentLoaded",_9e,false);}if(_a0){document.write("<script id=\"_ie_load_\" defer=\"true\"></script>");var scr=$("_ie_load_");if(scr.readyState){scr.onreadystatechange=function(){if(this.readyState.test(/complete|loaded/)){_9e();}};}else{if(_a0.test(/complete|loaded/)){_9e();}else{return Window.onDomReady.pass(_9e).delay(10);}}}else{if(!_9f||window.opera&&navigator.appVersion.toInt()<9){window.addEvent("init",_9e);}}}};var CbsLiveSearch=new Class({initialize:function(_1,_2,_3,_4,_5,_6){this.default_value=_3;this.noresults="<p>"+_4+"</p>";this.postbody=_6;this.textbox=$(_1);this.webkit=_5.k&&navigator.vendor&&navigator.vendor.test("Apple Computer")&&(navigator.productSub.toInt()>=20020000);if(_5.r&&!this.webkit){this.resetimage=new Element("img").setProperty("src",_5.r).addClassName("livesearch_resetimage").setStyles({cursor:"pointer",visibility:"hidden"}).injectInside(this.textbox.parentNode).addEvent("click",function(){this.textbox.value="";this.check();this.textbox.focus();}.bind(this));}if(_5.w){this.waitimage=new Element("img").setProperty("src",_5.w).addClassName("livesearch_waitimage").setStyle("visibility","hidden").injectInside(this.textbox.parentNode);}this.results=new Element("div").setProperty("id",_2).setStyle("display","none").injectAfter(this.textbox.form);this.clone=this.results.clone().setStyles({visibility:"hidden",position:"absolute",display:"",height:""}).injectBefore(this.results);this.resizeFx=this.results.setStyles({display:"",overflow:"hidden"}).effect("height",{duration:500,wait:false}).hide();this.fadeFx=this.results.effect("opacity",{duration:500,wait:false}).hide();this.visible=false;if(this.webkit){$(this.textbox.form).addClassName("livesearch_webkit");this.textbox.setProperties({type:"search",autosave:this.textbox.form.action,results:"5",placeholder:this.default_value});}else{this.textbox.setProperties({autocomplete:"off",value:this.default_value}).addClassName("livesearch_inactive");}this.textbox.addEvent("focus",this.onFocus.bindAsEventListener(this)).addEvent("blur",this.onBlur.bindAsEventListener(this));},onFocus:function(){if(!this.webkit&&(this.textbox.value==this.default_value)){this.textbox.removeClass("livesearch_inactive").value="";}this.oldValue=this.textbox.value;this.checkTimer=this.check.periodical(1000,this);},onBlur:function(){$clear(this.checkTimer);this.check();if(!this.webkit&&(this.textbox.value=="")){this.textbox.addClass("livesearch_inactive").value=this.default_value;}},hideResults:function(){if(!this.visible){return;}this.visible=false;this.fadeFx.goTo(0);this.resizeFx.goTo(0);},check:function(){if(this.textbox.value==this.oldValue){return;}$clear(this.showTimer);this.abort();this.oldValue=this.textbox.value;if(this.resetimage){this.resetimage.style.visibility=this.oldValue?"":"hidden";}if((this.postbody.q=this.oldValue.trim()).length<3){return this.hideResults();}if(this.waitimage){this.waitimage.style.visibility="";}this.ajax=new Ajax(window.location.href,{method:"post",postBody:this.postbody,onComplete:this.onRequestComplete.bind(this),onStateChange:function(){try{if((this.ajax.transport.readyState!=4)||(this.ajax.transport.status==200)){return;}}catch(e){}this.abort();this.hideResults();}.bind(this)}).request();},abort:function(){if(this.ajax){this.ajax.transport.abort();this.ajax=null;if(this.waitimage){this.waitimage.style.visibility="hidden";}}},onRequestComplete:function(_7){this.ajax=null;if(this.waitimage){this.waitimage.style.visibility="hidden";}this.results.setHTML((_7=="<none />")?this.noresults:_7);this.clone.setHTML(this.results.innerHTML);this.showTimer=this.show.delay(50);},show:function(){if(!this.visible){this.visible=true;this.fadeFx.goTo(1);}this.resizeFx.goTo(this.clone.clientHeight);}});var Lightbox={init:function(_1){_1=Object.extend({resizeDuration:400,initialWidth:250,initialHeight:250},_1||{});this.anchors=[];$A(document.getElementsByTagName("a")).each(function(el){var _3=el.getAttribute("rel");if(_3&&el.getAttribute("href")&&_3.test("^lightbox","i")){el.onclick=this.click.pass(el,this);this.anchors.push(el);}},this);this.eventKeyDown=this.keyboardListener.bindAsEventListener(this);this.overlay=new Element("div").setProperty("id","lbOverlay").injectInside(document.body);this.center=new Element("div").setProperty("id","lbCenter").setStyles({width:_1.initialWidth+"px",height:_1.initialHeight+"px",marginLeft:"-"+(_1.initialWidth/2)+"px",display:"none"}).injectInside(document.body);this.image=new Element("div").setProperty("id","lbImage").injectInside(this.center);this.prevLink=new Element("a").setProperties({id:"lbPrevLink",href:"#"}).setStyle("display","none").injectInside(this.image);this.prevLink.onclick=this.previous.bind(this);this.nextLink=new Element("a").setProperties({id:"lbNextLink",href:"#"}).setStyle("display","none").injectInside(this.image);this.nextLink.onclick=this.next.bind(this);this.bottom=new Element("div").setProperty("id","lbBottom").setStyle("display","none").injectInside(document.body);new Element("a").setProperties({id:"lbCloseLink",href:"#"}).injectInside(this.bottom).onclick=this.overlay.onclick=this.close.bind(this);this.caption=new Element("div").setProperty("id","lbCaption").injectInside(this.bottom);this.number=new Element("div").setProperty("id","lbNumber").injectInside(this.bottom);new Element("div").setStyle("clear","both").injectInside(this.bottom);var _4=this.nextEffect.bind(this);this.fx={overlay:this.overlay.effect("opacity",{duration:500}).hide(),resize:this.center.effects({duration:_1.resizeDuration,onComplete:_4}),image:this.image.effect("opacity",{duration:500,onComplete:_4}),bottom:this.bottom.effects({duration:400,onComplete:_4})};this.preloadPrev=new Image();this.preloadNext=new Image();},click:function(_5){var _6=_5.getAttribute("rel");var _7=_5.getAttribute("href");if(_6.toLowerCase()=="lightbox"){return this.show(_7,_5.getAttribute("title"));}var j,elHref,imageNum;var _9=[];this.anchors.each(function(el){elHref=el.getAttribute("href");if(el.getAttribute("rel")==_6){for(j=0;j<_9.length;j++){if(_9[j][0]==elHref){break;}}if(j==_9.length){_9.push([elHref,el.getAttribute("title")]);if(elHref==_7){imageNum=j;}}}},this);return this.open(_9,imageNum);},show:function(_b,_c){return this.open([[_b,_c]],0);},open:function(_d,_e){this.images=_d;this.fixes(true);var _f=Window.getHeight();var _10=Window.getScrollHeight();this.overlay.setStyle("height",((_10<_f)?_f:_10)+"px");this.fx.overlay.goTo(0.8);this.top=Window.getScrollTop()+(_f/15);this.center.setStyles({top:this.top+"px",display:""});document.addEvent("keydown",this.eventKeyDown);return this.changeImage(_e);},fixes:function(_11){var _12=$A(document.getElementsByTagName("object"));if(window.ActiveXObject){_12.extend(document.getElementsByTagName("select"));}_12.each(function(el){el.style.visibility=_11?"hidden":"";});},keyboardListener:function(_14){switch(_14.keyCode){case 27:case 88:case 67:this.close();break;case 37:case 80:this.previous();break;case 39:case 78:this.next();}},previous:function(){return this.changeImage(this.activeImage-1);},next:function(){return this.changeImage(this.activeImage+1);},changeImage:function(_15){if(this.step||(_15<0)||(_15>=this.images.length)){return false;}this.step=1;this.activeImage=_15;this.prevLink.style.display=this.nextLink.style.display="none";this.bottom.setStyles({opacity:"0",height:"0px",display:"none"});this.fx.image.hide();this.center.className="lbLoading";this.preload=new Image();this.preload.onload=this.nextEffect.bind(this);this.preload.src=this.images[_15][0];return false;},nextEffect:function(){switch(this.step++){case 1:this.center.className="";this.image.setStyles({backgroundImage:"url("+this.images[this.activeImage][0]+")",width:this.preload.width+"px"});this.image.style.height=this.prevLink.style.height=this.nextLink.style.height=this.preload.height+"px";this.caption.setHTML(this.images[this.activeImage][1]||"");this.number.setHTML((this.images.length==1)?"":"Image "+(this.activeImage+1)+" of "+this.images.length);if(this.activeImage!=0){this.preloadPrev.src=this.images[this.activeImage-1][0];}if(this.activeImage!=(this.images.length-1)){this.preloadNext.src=this.images[this.activeImage+1][0];}if(this.center.clientHeight!=this.image.offsetHeight){this.fx.resize.custom({height:[this.center.clientHeight,this.image.offsetHeight]});break;}this.step++;case 2:if(this.center.clientWidth!=this.image.offsetWidth){this.fx.resize.custom({width:[this.center.clientWidth,this.image.offsetWidth],marginLeft:[-this.center.clientWidth/2,-this.image.offsetWidth/2]});break;}this.step++;case 3:this.bottom.setStyles({top:(this.top+this.center.clientHeight)+"px",width:this.image.style.width,marginLeft:this.center.style.marginLeft,display:""});this.fx.image.custom(0,1);break;case 4:this.fx.bottom.custom({opacity:[0,1],height:[0,this.bottom.scrollHeight]});break;case 5:if(this.activeImage!=0){this.prevLink.style.display="";}if(this.activeImage!=(this.images.length-1)){this.nextLink.style.display="";}this.step=0;}},close:function(){document.removeEvent("keydown",this.eventKeyDown);if(this.preload){this.preload.onload=Class.empty;this.preload=null;}for(var f in this.fx){this.fx[f].clearTimer();}this.center.style.display=this.bottom.style.display="none";this.fx.overlay.goTo(0);this.fixes(false);this.step=0;return false;}};window.addEvent("load",Lightbox.init.bind(Lightbox));var Reflection={add:function(_1,_2){_1=$(_1);if(_1.getTag()!="img"){return;}Reflection.remove(_1);_2=Object.extend({height:0.33,opacity:0.5},_2||{});var _3=Math.floor(_1.height*_2.height);var _4;if(window.ActiveXObject){_4=new Element("img").setProperty("src",_1.src).setStyles({width:_1.width+"px",marginBottom:"-"+(_1.height-_3)+"px",filter:"flipv progid:DXImageTransform.Microsoft.Alpha(opacity="+(_2.opacity*100)+", style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy="+(_2.height*100)+")"});}else{_4=new Element("canvas").setStyles({width:_1.width+"px",height:_3+"px"});if(!_4.getContext){return;}}var _5=new Element("div").injectAfter(_1).adopt(_1).adopt(_4);_5.className=_1.className;_5.style.cssText=_1.backupStyle=_1.style.cssText;_5.removeClassName("reflect").setStyles({width:_1.width+"px",height:(_3+_1.height)+"px"});_1.style.cssText="vertical-align: bottom";_1.className="reflected";if(window.ActiveXObject){return;}_4.setProperties({width:_1.width,height:_3});var _6=_4.getContext("2d");_6.save();_6.translate(0,_1.height-1);_6.scale(1,-1);_6.drawImage(_1,0,0,_1.width,_1.height);_6.restore();_6.globalCompositeOperation="destination-out";var _7=_6.createLinearGradient(0,0,0,_3);_7.addColorStop(0,"rgba(255, 255, 255, "+(1-_2.opacity)+")");_7.addColorStop(1,"rgba(255, 255, 255, 1.0)");_6.fillStyle=_7;_6.rect(0,0,_1.width,_3);_6.fill();},remove:function(_8){_8=$(_8);if((_8.getTag()=="img")&&(_8.className=="reflected")){_8.className=_8.parentNode.className;_8.style.cssText=_8.backupStyle;_8.parentNode.replaceWith(_8);}},addFromClasses:function(){$A(document.getElementsByTagName("img")).each(function(_9){if($(_9).hasClassName("reflect")){Reflection.add(_9);}});}};Element.extend({addReflection:function(_a){Reflection.add(this,_a);},removeReflection:function(_b){Reflection.remove(this,_b);}});window.addEvent("load",Reflection.addFromClasses);var Digitalia={writeSearchEngineLink:function(){if(window.sidebar&&window.sidebar.addSearchEngine){document.write("<p class=\"searchplugin\"><a href=\"#\" onclick=\"return Digitalia.addSearchEngine();\">Moteur de recherche int\xe9gr\xe9</a></p>");}},addSearchEngine:function(){window.sidebar.addSearchEngine("http://www.digitalia.be/digitalia-be.src","http://www.digitalia.be/digitalia-be.png","digitalia.be","Homepage");return false;}};