/*** mootools.js ***/

//MooTools, My Object Oriented Javascript Tools. Copyright (c) 2006 Valerio Proietti, <http://mad4milk.net>, MIT Style License.

var MooTools={version:'1.12'};function $defined(obj){return(obj!=undefined);};function $type(obj){if(!$defined(obj))return false;if(obj.htmlElement)return'element';var type=typeof obj;if(type=='object'&&obj.nodeName){switch(obj.nodeType){case 1:return'element';case 3:return(/\S/).test(obj.nodeValue)?'textnode':'whitespace';}}
if(type=='object'||type=='function'){switch(obj.constructor){case Array:return'array';case RegExp:return'regexp';case Class:return'class';}
if(typeof obj.length=='number'){if(obj.item)return'collection';if(obj.callee)return'arguments';}}
return type;};function $merge(){var mix={};for(var i=0;i<arguments.length;i++){for(var property in arguments[i]){var ap=arguments[i][property];var mp=mix[property];if(mp&&$type(ap)=='object'&&$type(mp)=='object')mix[property]=$merge(mp,ap);else mix[property]=ap;}}
return mix;};var $extend=function(){var args=arguments;if(!args[1])args=[this,args[0]];for(var property in args[1])args[0][property]=args[1][property];return args[0];};var $native=function(){for(var i=0,l=arguments.length;i<l;i++){arguments[i].extend=function(props){for(var prop in props){if(!this.prototype[prop])this.prototype[prop]=props[prop];if(!this[prop])this[prop]=$native.generic(prop);}};}};$native.generic=function(prop){return function(bind){return this.prototype[prop].apply(bind,Array.prototype.slice.call(arguments,1));};};$native(Function,Array,String,Number);function $chk(obj){return!!(obj||obj===0);};function $pick(obj,picked){return $defined(obj)?obj:picked;};function $random(min,max){return Math.floor(Math.random()*(max-min+1)+min);};function $time(){return new Date().getTime();};function $clear(timer){clearTimeout(timer);clearInterval(timer);return null;};var Abstract=function(obj){obj=obj||{};obj.extend=$extend;return obj;};var Window=new Abstract(window);var Document=new Abstract(document);document.head=document.getElementsByTagName('head')[0];window.xpath=!!(document.evaluate);if(window.ActiveXObject)window.ie=window[window.XMLHttpRequest?'ie7':'ie6']=true;else if(document.childNodes&&!document.all&&!navigator.taintEnabled)window.webkit=window[window.xpath?'webkit420':'webkit419']=true;else if(document.getBoxObjectFor!=null||window.mozInnerScreenX!=null)window.gecko=true;window.khtml=window.webkit;Object.extend=$extend;if(typeof HTMLElement=='undefined'){var HTMLElement=function(){};if(window.webkit)document.createElement("iframe");HTMLElement.prototype=(window.webkit)?window["[[DOMElement.prototype]]"]:{};}
HTMLElement.prototype.htmlElement=function(){};if(window.ie6)try{document.execCommand("BackgroundImageCache",false,true);}catch(e){};var Class=function(properties){var klass=function(){return(arguments[0]!==null&&this.initialize&&$type(this.initialize)=='function')?this.initialize.apply(this,arguments):this;};$extend(klass,this);klass.prototype=properties;klass.constructor=Class;return klass;};Class.empty=function(){};Class.prototype={extend:function(properties){var proto=new this(null);for(var property in properties){var pp=proto[property];proto[property]=Class.Merge(pp,properties[property]);}
return new Class(proto);},implement:function(){for(var i=0,l=arguments.length;i<l;i++)$extend(this.prototype,arguments[i]);}};Class.Merge=function(previous,current){if(previous&&previous!=current){var type=$type(current);if(type!=$type(previous))return current;switch(type){case'function':var merged=function(){this.parent=arguments.callee.parent;return current.apply(this,arguments);};merged.parent=previous;return merged;case'object':return $merge(previous,current);}}
return current;};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.shift().delay(10,this);},clearChain:function(){this.chains=[];}});var Events=new Class({addEvent:function(type,fn){if(fn!=Class.empty){this.$events=this.$events||{};this.$events[type]=this.$events[type]||[];this.$events[type].include(fn);}
return this;},fireEvent:function(type,args,delay){if(this.$events&&this.$events[type]){this.$events[type].each(function(fn){fn.create({'bind':this,'delay':delay,'arguments':args})();},this);}
return this;},removeEvent:function(type,fn){if(this.$events&&this.$events[type])this.$events[type].remove(fn);return this;}});var Options=new Class({setOptions:function(){this.options=$merge.apply(null,[this.options].extend(arguments));if(this.addEvent){for(var option in this.options){if($type(this.options[option]=='function')&&(/^on[A-Z]/).test(option))this.addEvent(option,this.options[option]);}}
return this;}});Array.extend({forEach:function(fn,bind){for(var i=0,j=this.length;i<j;i++)fn.call(bind,this[i],i,this);},filter:function(fn,bind){var results=[];for(var i=0,j=this.length;i<j;i++){if(fn.call(bind,this[i],i,this))results.push(this[i]);}
return results;},map:function(fn,bind){var results=[];for(var i=0,j=this.length;i<j;i++)results[i]=fn.call(bind,this[i],i,this);return results;},every:function(fn,bind){for(var i=0,j=this.length;i<j;i++){if(!fn.call(bind,this[i],i,this))return false;}
return true;},some:function(fn,bind){for(var i=0,j=this.length;i<j;i++){if(fn.call(bind,this[i],i,this))return true;}
return false;},indexOf:function(item,from){var len=this.length;for(var i=(from<0)?Math.max(0,len+from):from||0;i<len;i++){if(this[i]===item)return i;}
return-1;},copy:function(start,length){start=start||0;if(start<0)start=this.length+start;length=length||(this.length-start);var newArray=[];for(var i=0;i<length;i++)newArray[i]=this[start++];return newArray;},remove:function(item){var i=0;var len=this.length;while(i<len){if(this[i]===item){this.splice(i,1);len--;}else{i++;}}
return this;},contains:function(item,from){return this.indexOf(item,from)!=-1;},associate:function(keys){var obj={},length=Math.min(this.length,keys.length);for(var i=0;i<length;i++)obj[keys[i]]=this[i];return obj;},extend:function(array){for(var i=0,j=array.length;i<j;i++)this.push(array[i]);return this;},merge:function(array){for(var i=0,l=array.length;i<l;i++)this.include(array[i]);return this;},include:function(item){if(!this.contains(item))this.push(item);return this;},getRandom:function(){return this[$random(0,this.length-1)]||null;},getLast:function(){return this[this.length-1]||null;}});Array.prototype.each=Array.prototype.forEach;Array.each=Array.forEach;function $A(array){return Array.copy(array);};function $each(iterable,fn,bind){if(iterable&&typeof iterable.length=='number'&&$type(iterable)!='object'){Array.forEach(iterable,fn,bind);}else{for(var name in iterable)fn.call(bind||iterable,iterable[name],name);}};Array.prototype.test=Array.prototype.contains;String.extend({test:function(regex,params){return(($type(regex)=='string')?new RegExp(regex,params):regex).test(this);},toInt:function(){return parseInt(this,10);},toFloat:function(){return parseFloat(this);},camelCase:function(){return this.replace(/-\D/g,function(match){return match.charAt(1).toUpperCase();});},hyphenate:function(){return this.replace(/\w[A-Z]/g,function(match){return(match.charAt(0)+'-'+match.charAt(1).toLowerCase());});},capitalize:function(){return this.replace(/\b[a-z]/g,function(match){return match.toUpperCase();});},trim:function(){return this.replace(/^\s+|\s+$/g,'');},clean:function(){return this.replace(/\s{2,}/g,' ').trim();},rgbToHex:function(array){var rgb=this.match(/\d{1,3}/g);return(rgb)?rgb.rgbToHex(array):false;},hexToRgb:function(array){var hex=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);return(hex)?hex.slice(1).hexToRgb(array):false;},contains:function(string,s){return(s)?(s+this+s).indexOf(s+string+s)>-1:this.indexOf(string)>-1;},escapeRegExp:function(){return this.replace(/([.*+?^${}()|[\]\/\\])/g,'\\$1');}});Array.extend({rgbToHex:function(array){if(this.length<3)return false;if(this.length==4&&this[3]==0&&!array)return'transparent';var hex=[];for(var i=0;i<3;i++){var bit=(this[i]-0).toString(16);hex.push((bit.length==1)?'0'+bit:bit);}
return array?hex:'#'+hex.join('');},hexToRgb:function(array){if(this.length!=3)return false;var rgb=[];for(var i=0;i<3;i++){rgb.push(parseInt((this[i].length==1)?this[i]+this[i]:this[i],16));}
return array?rgb:'rgb('+rgb.join(',')+')';}});Function.extend({create:function(options){var fn=this;options=$merge({'bind':fn,'event':false,'arguments':null,'delay':false,'periodical':false,'attempt':false},options);if($chk(options.arguments)&&$type(options.arguments)!='array')options.arguments=[options.arguments];return function(event){var args;if(options.event){event=event||window.event;args=[(options.event===true)?event:new options.event(event)];if(options.arguments)args.extend(options.arguments);}
else args=options.arguments||arguments;var returns=function(){return fn.apply($pick(options.bind,fn),args);};if(options.delay)return setTimeout(returns,options.delay);if(options.periodical)return setInterval(returns,options.periodical);if(options.attempt)try{return returns();}catch(err){return false;};return returns();};},pass:function(args,bind){return this.create({'arguments':args,'bind':bind});},attempt:function(args,bind){return this.create({'arguments':args,'bind':bind,'attempt':true})();},bind:function(bind,args){return this.create({'bind':bind,'arguments':args});},bindAsEventListener:function(bind,args){return this.create({'bind':bind,'event':true,'arguments':args});},delay:function(delay,bind,args){return this.create({'delay':delay,'bind':bind,'arguments':args})();},periodical:function(interval,bind,args){return this.create({'periodical':interval,'bind':bind,'arguments':args})();}});Number.extend({toInt:function(){return parseInt(this);},toFloat:function(){return parseFloat(this);},limit:function(min,max){return Math.min(max,Math.max(min,this));},round:function(precision){precision=Math.pow(10,precision||0);return Math.round(this*precision)/precision;},times:function(fn){for(var i=0;i<this;i++)fn(i);}});var Element=new Class({initialize:function(el,props){if($type(el)=='string'){if(window.ie&&props&&(props.name||props.type)){var name=(props.name)?' name="'+props.name+'"':'';var type=(props.type)?' type="'+props.type+'"':'';delete props.name;delete props.type;el='<'+el+name+type+'>';}
el=document.createElement(el);}
el=$(el);return(!props||!el)?el:el.set(props);}});var Elements=new Class({initialize:function(elements){return(elements)?$extend(elements,this):this;}});Elements.extend=function(props){for(var prop in props){this.prototype[prop]=props[prop];this[prop]=$native.generic(prop);}};function $(el){if(!el)return null;if(el.htmlElement)return Garbage.collect(el);if([window,document].contains(el))return el;var type=$type(el);if(type=='string'){el=document.getElementById(el);type=(el)?'element':false;}
if(type!='element')return null;if(el.htmlElement)return Garbage.collect(el);if(['object','embed'].contains(el.tagName.toLowerCase()))return el;$extend(el,Element.prototype);el.htmlElement=function(){};return Garbage.collect(el);};document.getElementsBySelector=document.getElementsByTagName;function $$(){var elements=[];for(var i=0,j=arguments.length;i<j;i++){var selector=arguments[i];switch($type(selector)){case'element':elements.push(selector);case'boolean':break;case false:break;case'string':selector=document.getElementsBySelector(selector,true);default:elements.extend(selector);}}
return $$.unique(elements);};$$.unique=function(array){var elements=[];for(var i=0,l=array.length;i<l;i++){if(array[i].$included)continue;var element=$(array[i]);if(element&&!element.$included){element.$included=true;elements.push(element);}}
for(var n=0,d=elements.length;n<d;n++)elements[n].$included=null;return new Elements(elements);};Elements.Multi=function(property){return function(){var args=arguments;var items=[];var elements=true;for(var i=0,j=this.length,returns;i<j;i++){returns=this[i][property].apply(this[i],args);if($type(returns)!='element')elements=false;items.push(returns);};return(elements)?$$.unique(items):items;};};Element.extend=function(properties){for(var property in properties){HTMLElement.prototype[property]=properties[property];Element.prototype[property]=properties[property];Element[property]=$native.generic(property);var elementsProperty=(Array.prototype[property])?property+'Elements':property;Elements.prototype[elementsProperty]=Elements.Multi(property);}};Element.extend({set:function(props){for(var prop in props){var val=props[prop];switch(prop){case'styles':this.setStyles(val);break;case'events':if(this.addEvents)this.addEvents(val);break;case'properties':this.setProperties(val);break;default:this.setProperty(prop,val);}}
return this;},inject:function(el,where){el=$(el);switch(where){case'before':el.parentNode.insertBefore(this,el);break;case'after':var next=el.getNext();if(!next)el.parentNode.appendChild(this);else el.parentNode.insertBefore(this,next);break;case'top':var first=el.firstChild;if(first){el.insertBefore(this,first);break;}
default:el.appendChild(this);}
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,'bottom');},injectTop:function(el){return this.inject(el,'top');},adopt:function(){var elements=[];$each(arguments,function(argument){elements=elements.concat(argument);});$$(elements).inject(this);return this;},remove:function(){return this.parentNode.removeChild(this);},clone:function(contents){var el=$(this.cloneNode(contents!==false));if(!el.$events)return el;el.$events={};for(var type in this.$events)el.$events[type]={'keys':$A(this.$events[type].keys),'values':$A(this.$events[type].values)};return el.removeEvents();},replaceWith:function(el){el=$(el);this.parentNode.replaceChild(el,this);return el;},appendText:function(text){this.appendChild(document.createTextNode(text));return this;},hasClass:function(className){return this.className.contains(className,' ');},addClass:function(className){if(!this.hasClass(className))this.className=(this.className+' '+className).clean();return this;},removeClass:function(className){this.className=this.className.replace(new RegExp('(^|\\s)'+className+'(?:\\s|$)'),'$1').clean();return this;},toggleClass:function(className){return this.hasClass(className)?this.removeClass(className):this.addClass(className);},setStyle:function(property,value){switch(property){case'opacity':return this.setOpacity(parseFloat(value));case'float':property=(window.ie)?'styleFloat':'cssFloat';}
property=property.camelCase();switch($type(value)){case'number':if(!['zIndex','zoom'].contains(property))value+='px';break;case'array':value='rgb('+value.join(',')+')';}
this.style[property]=value;return this;},setStyles:function(source){switch($type(source)){case'object':Element.setMany(this,'setStyle',source);break;case'string':this.style.cssText=source;}
return this;},setOpacity:function(opacity){if(opacity==0){if(this.style.visibility!="hidden")this.style.visibility="hidden";}else{if(this.style.visibility!="visible")this.style.visibility="visible";}
if(!this.currentStyle||!this.currentStyle.hasLayout)this.style.zoom=1;if(window.ie)this.style.filter=(opacity==1)?'':"alpha(opacity="+opacity*100+")";this.style.opacity=this.$tmp.opacity=opacity;return this;},getStyle:function(property){property=property.camelCase();var result=this.style[property];if(!$chk(result)){if(property=='opacity')return this.$tmp.opacity;result=[];for(var style in Element.Styles){if(property==style){Element.Styles[style].each(function(s){var style=this.getStyle(s);result.push(parseInt(style)?style:'0px');},this);if(property=='border'){var every=result.every(function(bit){return(bit==result[0]);});return(every)?result[0]:false;}
return result.join(' ');}}
if(property.contains('border')){if(Element.Styles.border.contains(property)){return['Width','Style','Color'].map(function(p){return this.getStyle(property+p);},this).join(' ');}else if(Element.borderShort.contains(property)){return['Top','Right','Bottom','Left'].map(function(p){return this.getStyle('border'+p+property.replace('border',''));},this).join(' ');}}
if(document.defaultView)result=document.defaultView.getComputedStyle(this,null).getPropertyValue(property.hyphenate());else if(this.currentStyle)result=this.currentStyle[property];}
if(window.ie)result=Element.fixStyle(property,result,this);if(result&&property.test(/color/i)&&result.contains('rgb')){return result.split('rgb').splice(1,4).map(function(color){return color.rgbToHex();}).join(' ');}
return result;},getStyles:function(){return Element.getMany(this,'getStyle',arguments);},walk:function(brother,start){brother+='Sibling';var el=(start)?this[start]:this[brother];while(el&&$type(el)!='element')el=el[brother];return $(el);},getPrevious:function(){return this.walk('previous');},getNext:function(){return this.walk('next');},getFirst:function(){return this.walk('next','firstChild');},getLast:function(){return this.walk('previous','lastChild');},getParent:function(){return $(this.parentNode);},getChildren:function(){return $$(this.childNodes);},hasChild:function(el){return!!$A(this.getElementsByTagName('*')).contains(el);},getProperty:function(property){var index=Element.Properties[property];if(index)return this[index];var flag=Element.PropertiesIFlag[property]||0;if(!window.ie||flag)return this.getAttribute(property,flag);var node=this.attributes[property];return(node)?node.nodeValue:null;},removeProperty:function(property){var index=Element.Properties[property];if(index)this[index]='';else this.removeAttribute(property);return this;},getProperties:function(){return Element.getMany(this,'getProperty',arguments);},setProperty:function(property,value){var index=Element.Properties[property];if(index)this[index]=value;else this.setAttribute(property,value);return this;},setProperties:function(source){return Element.setMany(this,'setProperty',source);},setHTML:function(){this.innerHTML=$A(arguments).join('');return this;},setText:function(text){var tag=this.getTag();if(['style','script'].contains(tag)){if(window.ie){if(tag=='style')this.styleSheet.cssText=text;else if(tag=='script')this.setProperty('text',text);return this;}else{this.removeChild(this.firstChild);return this.appendText(text);}}
this[$defined(this.innerText)?'innerText':'textContent']=text;return this;},getText:function(){var tag=this.getTag();if(['style','script'].contains(tag)){if(window.ie){if(tag=='style')return this.styleSheet.cssText;else if(tag=='script')return this.getProperty('text');}else{return this.innerHTML;}}
return($pick(this.innerText,this.textContent));},getTag:function(){return this.tagName.toLowerCase();},empty:function(){Garbage.trash(this.getElementsByTagName('*'));return this.setHTML('');}});Element.fixStyle=function(property,result,element){if($chk(parseInt(result)))return result;if(['height','width'].contains(property)){var values=(property=='width')?['left','right']:['top','bottom'];var size=0;values.each(function(value){size+=element.getStyle('border-'+value+'-width').toInt()+element.getStyle('padding-'+value).toInt();});return element['offset'+property.capitalize()]-size+'px';}else if(property.test(/border(.+)Width|margin|padding/)){return'0px';}
return result;};Element.Styles={'border':[],'padding':[],'margin':[]};['Top','Right','Bottom','Left'].each(function(direction){for(var style in Element.Styles)Element.Styles[style].push(style+direction);});Element.borderShort=['borderWidth','borderStyle','borderColor'];Element.getMany=function(el,method,keys){var result={};$each(keys,function(key){result[key]=el[method](key);});return result;};Element.setMany=function(el,method,pairs){for(var key in pairs)el[method](key,pairs[key]);return el;};Element.Properties=new Abstract({'class':'className','for':'htmlFor','colspan':'colSpan','rowspan':'rowSpan','accesskey':'accessKey','tabindex':'tabIndex','maxlength':'maxLength','readonly':'readOnly','frameborder':'frameBorder','value':'value','disabled':'disabled','checked':'checked','multiple':'multiple','selected':'selected'});Element.PropertiesIFlag={'href':2,'src':2};Element.Methods={Listeners:{addListener:function(type,fn){if(this.addEventListener)this.addEventListener(type,fn,false);else this.attachEvent('on'+type,fn);return this;},removeListener:function(type,fn){if(this.removeEventListener)this.removeEventListener(type,fn,false);else this.detachEvent('on'+type,fn);return this;}}};window.extend(Element.Methods.Listeners);document.extend(Element.Methods.Listeners);Element.extend(Element.Methods.Listeners);var Garbage={elements:[],collect:function(el){if(!el.$tmp){Garbage.elements.push(el);el.$tmp={'opacity':1};}
return el;},trash:function(elements){for(var i=0,j=elements.length,el;i<j;i++){if(!(el=elements[i])||!el.$tmp)continue;if(el.$events)el.fireEvent('trash').removeEvents();for(var p in el.$tmp)el.$tmp[p]=null;for(var d in Element.prototype)el[d]=null;Garbage.elements[Garbage.elements.indexOf(el)]=null;el.htmlElement=el.$tmp=el=null;}
Garbage.elements.remove(null);},empty:function(){Garbage.collect(window);Garbage.collect(document);Garbage.trash(Garbage.elements);}};window.addListener('beforeunload',function(){window.addListener('unload',Garbage.empty);if(window.ie)window.addListener('unload',CollectGarbage);});var Event=new Class({initialize:function(event){if(event&&event.$extended)return event;this.$extended=true;event=event||window.event;this.event=event;this.type=event.type;this.target=event.target||event.srcElement;if(this.target.nodeType==3)this.target=this.target.parentNode;this.shift=event.shiftKey;this.control=event.ctrlKey;this.alt=event.altKey;this.meta=event.metaKey;if(['DOMMouseScroll','mousewheel'].contains(this.type)){this.wheel=(event.wheelDelta)?event.wheelDelta/120:-(event.detail||0)/3;}else if(this.type.contains('key')){this.code=event.which||event.keyCode;for(var name in Event.keys){if(Event.keys[name]==this.code){this.key=name;break;}}
if(this.type=='keydown'){var fKey=this.code-111;if(fKey>0&&fKey<13)this.key='f'+fKey;}
this.key=this.key||String.fromCharCode(this.code).toLowerCase();}else if(this.type.test(/(click|mouse|menu)/)){this.page={'x':event.pageX||event.clientX+document.documentElement.scrollLeft,'y':event.pageY||event.clientY+document.documentElement.scrollTop};this.client={'x':event.pageX?event.pageX-window.pageXOffset:event.clientX,'y':event.pageY?event.pageY-window.pageYOffset:event.clientY};this.rightClick=(event.which==3)||(event.button==2);switch(this.type){case'mouseover':this.relatedTarget=event.relatedTarget||event.fromElement;break;case'mouseout':this.relatedTarget=event.relatedTarget||event.toElement;}
this.fixRelatedTarget();}
return this;},stop:function(){return this.stopPropagation().preventDefault();},stopPropagation:function(){if(this.event.stopPropagation)this.event.stopPropagation();else this.event.cancelBubble=true;return this;},preventDefault:function(){if(this.event.preventDefault)this.event.preventDefault();else this.event.returnValue=false;return this;}});Event.fix={relatedTarget:function(){if(this.relatedTarget&&this.relatedTarget.nodeType==3)this.relatedTarget=this.relatedTarget.parentNode;},relatedTargetGecko:function(){try{Event.fix.relatedTarget.call(this);}catch(e){this.relatedTarget=this.target;}}};Event.prototype.fixRelatedTarget=(window.gecko)?Event.fix.relatedTargetGecko:Event.fix.relatedTarget;Event.keys=new Abstract({'enter':13,'up':38,'down':40,'left':37,'right':39,'esc':27,'space':32,'backspace':8,'tab':9,'delete':46});Element.Methods.Events={addEvent:function(type,fn){this.$events=this.$events||{};this.$events[type]=this.$events[type]||{'keys':[],'values':[]};if(this.$events[type].keys.contains(fn))return this;this.$events[type].keys.push(fn);var realType=type;var custom=Element.Events[type];if(custom){if(custom.add)custom.add.call(this,fn);if(custom.map)fn=custom.map;if(custom.type)realType=custom.type;}
if(!this.addEventListener)fn=fn.create({'bind':this,'event':true});this.$events[type].values.push(fn);return(Element.NativeEvents.contains(realType))?this.addListener(realType,fn):this;},removeEvent:function(type,fn){if(!this.$events||!this.$events[type])return this;var pos=this.$events[type].keys.indexOf(fn);if(pos==-1)return this;var key=this.$events[type].keys.splice(pos,1)[0];var value=this.$events[type].values.splice(pos,1)[0];var custom=Element.Events[type];if(custom){if(custom.remove)custom.remove.call(this,fn);if(custom.type)type=custom.type;}
return(Element.NativeEvents.contains(type))?this.removeListener(type,value):this;},addEvents:function(source){return Element.setMany(this,'addEvent',source);},removeEvents:function(type){if(!this.$events)return this;if(!type){for(var evType in this.$events)this.removeEvents(evType);this.$events=null;}else if(this.$events[type]){this.$events[type].keys.each(function(fn){this.removeEvent(type,fn);},this);this.$events[type]=null;}
return this;},fireEvent:function(type,args,delay){if(this.$events&&this.$events[type]){this.$events[type].keys.each(function(fn){fn.create({'bind':this,'delay':delay,'arguments':args})();},this);}
return this;},cloneEvents:function(from,type){if(!from.$events)return this;if(!type){for(var evType in from.$events)this.cloneEvents(from,evType);}else if(from.$events[type]){from.$events[type].keys.each(function(fn){this.addEvent(type,fn);},this);}
return this;}};window.extend(Element.Methods.Events);document.extend(Element.Methods.Events);Element.extend(Element.Methods.Events);Element.Events=new Abstract({'mouseenter':{type:'mouseover',map:function(event){event=new Event(event);if(event.relatedTarget!=this&&!this.hasChild(event.relatedTarget))this.fireEvent('mouseenter',event);}},'mouseleave':{type:'mouseout',map:function(event){event=new Event(event);if(event.relatedTarget!=this&&!this.hasChild(event.relatedTarget))this.fireEvent('mouseleave',event);}},'mousewheel':{type:(window.gecko)?'DOMMouseScroll':'mousewheel'}});Element.NativeEvents=['click','dblclick','mouseup','mousedown','mousewheel','DOMMouseScroll','mouseover','mouseout','mousemove','keydown','keypress','keyup','load','unload','beforeunload','resize','move','focus','blur','change','submit','reset','select','error','abort','contextmenu','scroll'];Function.extend({bindWithEvent:function(bind,args){return this.create({'bind':bind,'arguments':args,'event':Event});}});Elements.extend({filterByTag:function(tag){return new Elements(this.filter(function(el){return(Element.getTag(el)==tag);}));},filterByClass:function(className,nocash){var elements=this.filter(function(el){return(el.className&&el.className.contains(className,' '));});return(nocash)?elements:new Elements(elements);},filterById:function(id,nocash){var elements=this.filter(function(el){return(el.id==id);});return(nocash)?elements:new Elements(elements);},filterByAttribute:function(name,operator,value,nocash){var elements=this.filter(function(el){var current=Element.getProperty(el,name);if(!current)return false;if(!operator)return true;switch(operator){case'=':return(current==value);case'*=':return(current.contains(value));case'^=':return(current.substr(0,value.length)==value);case'$=':return(current.substr(current.length-value.length)==value);case'!=':return(current!=value);case'~=':return current.contains(value,' ');}
return false;});return(nocash)?elements:new Elements(elements);}});function $E(selector,filter){return($(filter)||document).getElement(selector);};function $ES(selector,filter){return($(filter)||document).getElementsBySelector(selector);};$$.shared={'regexp':/^(\w*|\*)(?:#([\w-]+)|\.([\w-]+))?(?:\[(\w+)(?:([!*^$]?=)["']?([^"'\]]*)["']?)?])?$/,'xpath':{getParam:function(items,context,param,i){var temp=[context.namespaceURI?'xhtml:':'',param[1]];if(param[2])temp.push('[@id="',param[2],'"]');if(param[3])temp.push('[contains(concat(" ", @class, " "), " ',param[3],' ")]');if(param[4]){if(param[5]&&param[6]){switch(param[5]){case'*=':temp.push('[contains(@',param[4],', "',param[6],'")]');break;case'^=':temp.push('[starts-with(@',param[4],', "',param[6],'")]');break;case'$=':temp.push('[substring(@',param[4],', string-length(@',param[4],') - ',param[6].length,' + 1) = "',param[6],'"]');break;case'=':temp.push('[@',param[4],'="',param[6],'"]');break;case'!=':temp.push('[@',param[4],'!="',param[6],'"]');}}else{temp.push('[@',param[4],']');}}
items.push(temp.join(''));return items;},getItems:function(items,context,nocash){var elements=[];var xpath=document.evaluate('.//'+items.join('//'),context,$$.shared.resolver,XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE,null);for(var i=0,j=xpath.snapshotLength;i<j;i++)elements.push(xpath.snapshotItem(i));return(nocash)?elements:new Elements(elements.map($));}},'normal':{getParam:function(items,context,param,i){if(i==0){if(param[2]){var el=context.getElementById(param[2]);if(!el||((param[1]!='*')&&(Element.getTag(el)!=param[1])))return false;items=[el];}else{items=$A(context.getElementsByTagName(param[1]));}}else{items=$$.shared.getElementsByTagName(items,param[1]);if(param[2])items=Elements.filterById(items,param[2],true);}
if(param[3])items=Elements.filterByClass(items,param[3],true);if(param[4])items=Elements.filterByAttribute(items,param[4],param[5],param[6],true);return items;},getItems:function(items,context,nocash){return(nocash)?items:$$.unique(items);}},resolver:function(prefix){return(prefix=='xhtml')?'http://www.w3.org/1999/xhtml':false;},getElementsByTagName:function(context,tagName){var found=[];for(var i=0,j=context.length;i<j;i++)found.extend(context[i].getElementsByTagName(tagName));return found;}};$$.shared.method=(window.xpath)?'xpath':'normal';Element.Methods.Dom={getElements:function(selector,nocash){var items=[];selector=selector.trim().split(' ');for(var i=0,j=selector.length;i<j;i++){var sel=selector[i];var param=sel.match($$.shared.regexp);if(!param)break;param[1]=param[1]||'*';var temp=$$.shared[$$.shared.method].getParam(items,this,param,i);if(!temp)break;items=temp;}
return $$.shared[$$.shared.method].getItems(items,this,nocash);},getElement:function(selector){return $(this.getElements(selector,true)[0]||false);},getElementsBySelector:function(selector,nocash){var elements=[];selector=selector.split(',');for(var i=0,j=selector.length;i<j;i++)elements=elements.concat(this.getElements(selector[i],true));return(nocash)?elements:$$.unique(elements);}};Element.extend({getElementById:function(id){var el=document.getElementById(id);if(!el)return false;for(var parent=el.parentNode;parent!=this;parent=parent.parentNode){if(!parent)return false;}
return el;},getElementsByClassName:function(className){return this.getElements('.'+className);}});document.extend(Element.Methods.Dom);Element.extend(Element.Methods.Dom);Element.extend({getValue:function(){switch(this.getTag()){case'select':var values=[];$each(this.options,function(option){if(option.selected)values.push($pick(option.value,option.text));});return(this.multiple)?values:values[0];case'input':if(!(this.checked&&['checkbox','radio'].contains(this.type))&&!['hidden','text','password'].contains(this.type))break;case'textarea':return this.value;}
return false;},getFormElements:function(){return $$(this.getElementsByTagName('input'),this.getElementsByTagName('select'),this.getElementsByTagName('textarea'));},toQueryString:function(){var queryString=[];this.getFormElements().each(function(el){var name=el.name;var value=el.getValue();if(value===false||!name||el.disabled)return;var qs=function(val){queryString.push(name+'='+encodeURIComponent(val));};if($type(value)=='array')value.each(qs);else qs(value);});return queryString.join('&');}});Element.extend({scrollTo:function(x,y){this.scrollLeft=x;this.scrollTop=y;},getSize:function(){return{'scroll':{'x':this.scrollLeft,'y':this.scrollTop},'size':{'x':this.offsetWidth,'y':this.offsetHeight},'scrollSize':{'x':this.scrollWidth,'y':this.scrollHeight}};},getPosition:function(overflown){overflown=overflown||[];var el=this,left=0,top=0;do{left+=el.offsetLeft||0;top+=el.offsetTop||0;el=el.offsetParent;}while(el);overflown.each(function(element){left-=element.scrollLeft||0;top-=element.scrollTop||0;});return{'x':left,'y':top};},getTop:function(overflown){return this.getPosition(overflown).y;},getLeft:function(overflown){return this.getPosition(overflown).x;},getCoordinates:function(overflown){var position=this.getPosition(overflown);var obj={'width':this.offsetWidth,'height':this.offsetHeight,'left':position.x,'top':position.y};obj.right=obj.left+obj.width;obj.bottom=obj.top+obj.height;return obj;}});Element.Events.domready={add:function(fn){if(window.loaded){fn.call(this);return;}
var domReady=function(){if(window.loaded)return;window.loaded=true;window.timer=$clear(window.timer);this.fireEvent('domready');}.bind(this);if(document.readyState&&window.webkit){window.timer=function(){if(['loaded','complete'].contains(document.readyState))domReady();}.periodical(50);}else if(document.readyState&&window.ie){if(!$('ie_ready')){var src=(window.location.protocol=='https:')?'://0':'javascript:void(0)';document.write('<script id="ie_ready" defer src="'+src+'"><\/script>');$('ie_ready').onreadystatechange=function(){if(this.readyState=='complete')domReady();};}}else{window.addListener("load",domReady);document.addListener("DOMContentLoaded",domReady);}}};window.onDomReady=function(fn){return this.addEvent('domready',fn);};window.extend({getWidth:function(){if(this.webkit419)return this.innerWidth;if(this.opera)return document.body.clientWidth;return document.documentElement.clientWidth;},getHeight:function(){if(this.webkit419)return this.innerHeight;if(this.opera)return document.body.clientHeight;return document.documentElement.clientHeight;},getScrollWidth:function(){if(this.ie)return Math.max(document.documentElement.offsetWidth,document.documentElement.scrollWidth);if(this.webkit)return document.body.scrollWidth;return document.documentElement.scrollWidth;},getScrollHeight:function(){if(this.ie)return Math.max(document.documentElement.offsetHeight,document.documentElement.scrollHeight);if(this.webkit)return document.body.scrollHeight;return document.documentElement.scrollHeight;},getScrollLeft:function(){return this.pageXOffset||document.documentElement.scrollLeft;},getScrollTop:function(){return this.pageYOffset||document.documentElement.scrollTop;},getSize:function(){return{'size':{'x':this.getWidth(),'y':this.getHeight()},'scrollSize':{'x':this.getScrollWidth(),'y':this.getScrollHeight()},'scroll':{'x':this.getScrollLeft(),'y':this.getScrollTop()}};},getPosition:function(){return{'x':0,'y':0};}});var Fx={};Fx.Base=new Class({options:{onStart:Class.empty,onComplete:Class.empty,onCancel:Class.empty,transition:function(p){return-(Math.cos(Math.PI*p)-1)/2;},duration:500,unit:'px',wait:true,fps:50},initialize:function(options){this.element=this.element||null;this.setOptions(options);if(this.options.initialize)this.options.initialize.call(this);},step:function(){var time=$time();if(time<this.time+this.options.duration){this.delta=this.options.transition((time-this.time)/this.options.duration);this.setNow();this.increase();}else{this.stop(true);this.set(this.to);this.fireEvent('onComplete',this.element,10);this.callChain();}},set:function(to){this.now=to;this.increase();return this;},setNow:function(){this.now=this.compute(this.from,this.to);},compute:function(from,to){return(to-from)*this.delta+from;},start:function(from,to){if(!this.options.wait)this.stop();else if(this.timer)return this;this.from=from;this.to=to;this.change=this.to-this.from;this.time=$time();this.timer=this.step.periodical(Math.round(1000/this.options.fps),this);this.fireEvent('onStart',this.element);return this;},stop:function(end){if(!this.timer)return this;this.timer=$clear(this.timer);if(!end)this.fireEvent('onCancel',this.element);return this;},custom:function(from,to){return this.start(from,to);},clearTimer:function(end){return this.stop(end);}});Fx.Base.implement(new Chain,new Events,new Options);Fx.CSS={select:function(property,to){if(property.test(/color/i))return this.Color;var type=$type(to);if((type=='array')||(type=='string'&&to.contains(' ')))return this.Multi;return this.Single;},parse:function(el,property,fromTo){if(!fromTo.push)fromTo=[fromTo];var from=fromTo[0],to=fromTo[1];if(!$chk(to)){to=from;from=el.getStyle(property);}
var css=this.select(property,to);return{'from':css.parse(from),'to':css.parse(to),'css':css};}};Fx.CSS.Single={parse:function(value){return parseFloat(value);},getNow:function(from,to,fx){return fx.compute(from,to);},getValue:function(value,unit,property){if(unit=='px'&&property!='opacity')value=Math.round(value);return value+unit;}};Fx.CSS.Multi={parse:function(value){return value.push?value:value.split(' ').map(function(v){return parseFloat(v);});},getNow:function(from,to,fx){var now=[];for(var i=0;i<from.length;i++)now[i]=fx.compute(from[i],to[i]);return now;},getValue:function(value,unit,property){if(unit=='px'&&property!='opacity')value=value.map(Math.round);return value.join(unit+' ')+unit;}};Fx.CSS.Color={parse:function(value){return value.push?value:value.hexToRgb(true);},getNow:function(from,to,fx){var now=[];for(var i=0;i<from.length;i++)now[i]=Math.round(fx.compute(from[i],to[i]));return now;},getValue:function(value){return'rgb('+value.join(',')+')';}};Fx.Style=Fx.Base.extend({initialize:function(el,property,options){this.element=$(el);this.property=property;this.parent(options);},hide:function(){return this.set(0);},setNow:function(){this.now=this.css.getNow(this.from,this.to,this);},set:function(to){this.css=Fx.CSS.select(this.property,to);return this.parent(this.css.parse(to));},start:function(from,to){if(this.timer&&this.options.wait)return this;var parsed=Fx.CSS.parse(this.element,this.property,[from,to]);this.css=parsed.css;return this.parent(parsed.from,parsed.to);},increase:function(){this.element.setStyle(this.property,this.css.getValue(this.now,this.options.unit,this.property));}});Element.extend({effect:function(property,options){return new Fx.Style(this,property,options);}});Fx.Styles=Fx.Base.extend({initialize:function(el,options){this.element=$(el);this.parent(options);},setNow:function(){for(var p in this.from)this.now[p]=this.css[p].getNow(this.from[p],this.to[p],this);},set:function(to){var parsed={};this.css={};for(var p in to){this.css[p]=Fx.CSS.select(p,to[p]);parsed[p]=this.css[p].parse(to[p]);}
return this.parent(parsed);},start:function(obj){if(this.timer&&this.options.wait)return this;this.now={};this.css={};var from={},to={};for(var p in obj){var parsed=Fx.CSS.parse(this.element,p,obj[p]);from[p]=parsed.from;to[p]=parsed.to;this.css[p]=parsed.css;}
return this.parent(from,to);},increase:function(){for(var p in this.now)this.element.setStyle(p,this.css[p].getValue(this.now[p],this.options.unit,p));}});Element.extend({effects:function(options){return new Fx.Styles(this,options);}});Fx.Elements=Fx.Base.extend({initialize:function(elements,options){this.elements=$$(elements);this.parent(options);},setNow:function(){for(var i in this.from){var iFrom=this.from[i],iTo=this.to[i],iCss=this.css[i],iNow=this.now[i]={};for(var p in iFrom)iNow[p]=iCss[p].getNow(iFrom[p],iTo[p],this);}},set:function(to){var parsed={};this.css={};for(var i in to){var iTo=to[i],iCss=this.css[i]={},iParsed=parsed[i]={};for(var p in iTo){iCss[p]=Fx.CSS.select(p,iTo[p]);iParsed[p]=iCss[p].parse(iTo[p]);}}
return this.parent(parsed);},start:function(obj){if(this.timer&&this.options.wait)return this;this.now={};this.css={};var from={},to={};for(var i in obj){var iProps=obj[i],iFrom=from[i]={},iTo=to[i]={},iCss=this.css[i]={};for(var p in iProps){var parsed=Fx.CSS.parse(this.elements[i],p,iProps[p]);iFrom[p]=parsed.from;iTo[p]=parsed.to;iCss[p]=parsed.css;}}
return this.parent(from,to);},increase:function(){for(var i in this.now){var iNow=this.now[i],iCss=this.css[i];for(var p in iNow)this.elements[i].setStyle(p,iCss[p].getValue(iNow[p],this.options.unit,p));}}});Fx.Scroll=Fx.Base.extend({options:{overflown:[],offset:{'x':0,'y':0},wheelStops:true},initialize:function(element,options){this.now=[];this.element=$(element);this.bound={'stop':this.stop.bind(this,false)};this.parent(options);if(this.options.wheelStops){this.addEvent('onStart',function(){document.addEvent('mousewheel',this.bound.stop);}.bind(this));this.addEvent('onComplete',function(){document.removeEvent('mousewheel',this.bound.stop);}.bind(this));}},setNow:function(){for(var i=0;i<2;i++)this.now[i]=this.compute(this.from[i],this.to[i]);},scrollTo:function(x,y){if(this.timer&&this.options.wait)return this;var el=this.element.getSize();var values={'x':x,'y':y};for(var z in el.size){var max=el.scrollSize[z]-el.size[z];if($chk(values[z]))values[z]=($type(values[z])=='number')?values[z].limit(0,max):max;else values[z]=el.scroll[z];values[z]+=this.options.offset[z];}
return this.start([el.scroll.x,el.scroll.y],[values.x,values.y]);},toTop:function(){return this.scrollTo(false,0);},toBottom:function(){return this.scrollTo(false,'full');},toLeft:function(){return this.scrollTo(0,false);},toRight:function(){return this.scrollTo('full',false);},toElement:function(el){var parent=this.element.getPosition(this.options.overflown);var target=$(el).getPosition(this.options.overflown);return this.scrollTo(target.x-parent.x,target.y-parent.y);},increase:function(){this.element.scrollTo(this.now[0],this.now[1]);}});Fx.Slide=Fx.Base.extend({options:{mode:'vertical'},initialize:function(el,options){this.element=$(el);this.wrapper=new Element('div',{'styles':$extend(this.element.getStyles('margin'),{'overflow':'hidden'})}).injectAfter(this.element).adopt(this.element);this.element.setStyle('margin',0);this.setOptions(options);this.now=[];this.parent(this.options);this.open=true;this.addEvent('onComplete',function(){this.open=(this.now[0]===0);});if(window.webkit419)this.addEvent('onComplete',function(){if(this.open)this.element.remove().inject(this.wrapper);});},setNow:function(){for(var i=0;i<2;i++)this.now[i]=this.compute(this.from[i],this.to[i]);},vertical:function(){this.margin='margin-top';this.layout='height';this.offset=this.element.offsetHeight;},horizontal:function(){this.margin='margin-left';this.layout='width';this.offset=this.element.offsetWidth;},slideIn:function(mode){this[mode||this.options.mode]();return this.start([this.element.getStyle(this.margin).toInt(),this.wrapper.getStyle(this.layout).toInt()],[0,this.offset]);},slideOut:function(mode){this[mode||this.options.mode]();return this.start([this.element.getStyle(this.margin).toInt(),this.wrapper.getStyle(this.layout).toInt()],[-this.offset,0]);},hide:function(mode){this[mode||this.options.mode]();this.open=false;return this.set([-this.offset,0]);},show:function(mode){this[mode||this.options.mode]();this.open=true;return this.set([0,this.offset]);},toggle:function(mode){if(this.wrapper.offsetHeight==0||this.wrapper.offsetWidth==0)return this.slideIn(mode);return this.slideOut(mode);},increase:function(){this.element.setStyle(this.margin,this.now[0]+this.options.unit);this.wrapper.setStyle(this.layout,this.now[1]+this.options.unit);}});Fx.Transition=function(transition,params){params=params||[];if($type(params)!='array')params=[params];return $extend(transition,{easeIn:function(pos){return transition(pos,params);},easeOut:function(pos){return 1-transition(1-pos,params);},easeInOut:function(pos){return(pos<=0.5)?transition(2*pos,params)/2:(2-transition(2*(1-pos),params))/2;}});};Fx.Transitions=new Abstract({linear:function(p){return p;}});Fx.Transitions.extend=function(transitions){for(var transition in transitions){Fx.Transitions[transition]=new Fx.Transition(transitions[transition]);Fx.Transitions.compat(transition);}};Fx.Transitions.compat=function(transition){['In','Out','InOut'].each(function(easeType){Fx.Transitions[transition.toLowerCase()+easeType]=Fx.Transitions[transition]['ease'+easeType];});};Fx.Transitions.extend({Pow:function(p,x){return Math.pow(p,x[0]||6);},Expo:function(p){return Math.pow(2,8*(p-1));},Circ:function(p){return 1-Math.sin(Math.acos(p));},Sine:function(p){return 1-Math.sin((1-p)*Math.PI/2);},Back:function(p,x){x=x[0]||1.618;return Math.pow(p,2)*((x+1)*p-x);},Bounce:function(p){var value;for(var a=0,b=1;1;a+=b,b/=2){if(p>=(7-4*a)/11){value=-Math.pow((11-6*a-11*p)/4,2)+b*b;break;}}
return value;},Elastic:function(p,x){return Math.pow(2,10*--p)*Math.cos(20*p*Math.PI*(x[0]||1)/3);}});['Quad','Cubic','Quart','Quint'].each(function(transition,i){Fx.Transitions[transition]=new Fx.Transition(function(p){return Math.pow(p,[i+2]);});Fx.Transitions.compat(transition);});var Drag={};Drag.Base=new Class({options:{handle:false,unit:'px',onStart:Class.empty,onBeforeStart:Class.empty,onComplete:Class.empty,onSnap:Class.empty,onDrag:Class.empty,limit:false,modifiers:{x:'left',y:'top'},grid:false,snap:6},initialize:function(el,options){this.setOptions(options);this.element=$(el);this.handle=$(this.options.handle)||this.element;this.mouse={'now':{},'pos':{}};this.value={'start':{},'now':{}};this.bound={'start':this.start.bindWithEvent(this),'check':this.check.bindWithEvent(this),'drag':this.drag.bindWithEvent(this),'stop':this.stop.bind(this)};this.attach();if(this.options.initialize)this.options.initialize.call(this);},attach:function(){this.handle.addEvent('mousedown',this.bound.start);return this;},detach:function(){this.handle.removeEvent('mousedown',this.bound.start);return this;},start:function(event){this.fireEvent('onBeforeStart',this.element);this.mouse.start=event.page;var limit=this.options.limit;this.limit={'x':[],'y':[]};for(var z in this.options.modifiers){if(!this.options.modifiers[z])continue;this.value.now[z]=this.element.getStyle(this.options.modifiers[z]).toInt();this.mouse.pos[z]=event.page[z]-this.value.now[z];if(limit&&limit[z]){for(var i=0;i<2;i++){if($chk(limit[z][i]))this.limit[z][i]=($type(limit[z][i])=='function')?limit[z][i]():limit[z][i];}}}
if($type(this.options.grid)=='number')this.options.grid={'x':this.options.grid,'y':this.options.grid};document.addListener('mousemove',this.bound.check);document.addListener('mouseup',this.bound.stop);this.fireEvent('onStart',this.element);event.stop();},check:function(event){var distance=Math.round(Math.sqrt(Math.pow(event.page.x-this.mouse.start.x,2)+Math.pow(event.page.y-this.mouse.start.y,2)));if(distance>this.options.snap){document.removeListener('mousemove',this.bound.check);document.addListener('mousemove',this.bound.drag);this.drag(event);this.fireEvent('onSnap',this.element);}
event.stop();},drag:function(event){this.out=false;this.mouse.now=event.page;for(var z in this.options.modifiers){if(!this.options.modifiers[z])continue;this.value.now[z]=this.mouse.now[z]-this.mouse.pos[z];if(this.limit[z]){if($chk(this.limit[z][1])&&(this.value.now[z]>this.limit[z][1])){this.value.now[z]=this.limit[z][1];this.out=true;}else if($chk(this.limit[z][0])&&(this.value.now[z]<this.limit[z][0])){this.value.now[z]=this.limit[z][0];this.out=true;}}
if(this.options.grid[z])this.value.now[z]-=(this.value.now[z]%this.options.grid[z]);this.element.setStyle(this.options.modifiers[z],this.value.now[z]+this.options.unit);}
this.fireEvent('onDrag',this.element);event.stop();},stop:function(){document.removeListener('mousemove',this.bound.check);document.removeListener('mousemove',this.bound.drag);document.removeListener('mouseup',this.bound.stop);this.fireEvent('onComplete',this.element);}});Drag.Base.implement(new Events,new Options);Element.extend({makeResizable:function(options){return new Drag.Base(this,$merge({modifiers:{x:'width',y:'height'}},options));}});Drag.Move=Drag.Base.extend({options:{droppables:[],container:false,overflown:[]},initialize:function(el,options){this.setOptions(options);this.element=$(el);this.droppables=$$(this.options.droppables);this.container=$(this.options.container);this.position={'element':this.element.getStyle('position'),'container':false};if(this.container)this.position.container=this.container.getStyle('position');if(!['relative','absolute','fixed'].contains(this.position.element))this.position.element='absolute';var top=this.element.getStyle('top').toInt();var left=this.element.getStyle('left').toInt();if(this.position.element=='absolute'&&!['relative','absolute','fixed'].contains(this.position.container)){top=$chk(top)?top:this.element.getTop(this.options.overflown);left=$chk(left)?left:this.element.getLeft(this.options.overflown);}else{top=$chk(top)?top:0;left=$chk(left)?left:0;}
this.element.setStyles({'top':top,'left':left,'position':this.position.element});this.parent(this.element);},start:function(event){this.overed=null;if(this.container){var cont=this.container.getCoordinates();var el=this.element.getCoordinates();if(this.position.element=='absolute'&&!['relative','absolute','fixed'].contains(this.position.container)){this.options.limit={'x':[cont.left,cont.right-el.width],'y':[cont.top,cont.bottom-el.height]};}else{this.options.limit={'y':[0,cont.height-el.height],'x':[0,cont.width-el.width]};}}
this.parent(event);},drag:function(event){this.parent(event);var overed=this.out?false:this.droppables.filter(this.checkAgainst,this).getLast();if(this.overed!=overed){if(this.overed)this.overed.fireEvent('leave',[this.element,this]);this.overed=overed?overed.fireEvent('over',[this.element,this]):null;}
return this;},checkAgainst:function(el){el=el.getCoordinates(this.options.overflown);var now=this.mouse.now;return(now.x>el.left&&now.x<el.right&&now.y<el.bottom&&now.y>el.top);},stop:function(){if(this.overed&&!this.out)this.overed.fireEvent('drop',[this.element,this]);else this.element.fireEvent('emptydrop',this);this.parent();return this;}});Element.extend({makeDraggable:function(options){return new Drag.Move(this,options);}});var XHR=new Class({options:{method:'post',async:true,onRequest:Class.empty,onSuccess:Class.empty,onFailure:Class.empty,urlEncoded:true,encoding:'utf-8',autoCancel:false,headers:{}},setTransport:function(){this.transport=(window.XMLHttpRequest)?new XMLHttpRequest():(window.ie?new ActiveXObject('Microsoft.XMLHTTP'):false);return this;},initialize:function(options){this.setTransport().setOptions(options);this.options.isSuccess=this.options.isSuccess||this.isSuccess;this.headers={};if(this.options.urlEncoded&&this.options.method=='post'){var encoding=(this.options.encoding)?'; charset='+this.options.encoding:'';this.setHeader('Content-type','application/x-www-form-urlencoded'+encoding);}
if(this.options.initialize)this.options.initialize.call(this);},onStateChange:function(){if(this.transport.readyState!=4||!this.running)return;this.running=false;var status=0;try{status=this.transport.status;}catch(e){};if(this.options.isSuccess.call(this,status))this.onSuccess();else this.onFailure();this.transport.onreadystatechange=Class.empty;},isSuccess:function(status){return((status>=200)&&(status<300));},onSuccess:function(){this.response={'text':this.transport.responseText,'xml':this.transport.responseXML};this.fireEvent('onSuccess',[this.response.text,this.response.xml]);this.callChain();},onFailure:function(){this.fireEvent('onFailure',this.transport);},setHeader:function(name,value){this.headers[name]=value;return this;},send:function(url,data){if(this.options.autoCancel)this.cancel();else if(this.running)return this;this.running=true;if(data&&this.options.method=='get'){url=url+(url.contains('?')?'&':'?')+data;data=null;}
this.transport.open(this.options.method.toUpperCase(),url,this.options.async);this.transport.onreadystatechange=this.onStateChange.bind(this);if((this.options.method=='post')&&this.transport.overrideMimeType)this.setHeader('Connection','close');$extend(this.headers,this.options.headers);for(var type in this.headers)try{this.transport.setRequestHeader(type,this.headers[type]);}catch(e){};this.fireEvent('onRequest');this.transport.send($pick(data,null));return this;},cancel:function(){if(!this.running)return this;this.running=false;this.transport.abort();this.transport.onreadystatechange=Class.empty;this.setTransport();this.fireEvent('onCancel');return this;}});XHR.implement(new Chain,new Events,new Options);var Ajax=XHR.extend({options:{data:null,update:null,onComplete:Class.empty,evalScripts:false,evalResponse:false},initialize:function(url,options){this.addEvent('onSuccess',this.onComplete);this.setOptions(options);this.options.data=this.options.data||this.options.postBody;if(!['post','get'].contains(this.options.method)){this._method='_method='+this.options.method;this.options.method='post';}
this.parent();this.setHeader('X-Requested-With','XMLHttpRequest');this.setHeader('Accept','text/javascript, text/html, application/xml, text/xml, */*');this.url=url;},onComplete:function(){if(this.options.update)$(this.options.update).empty().setHTML(this.response.text);if(this.options.evalScripts||this.options.evalResponse)this.evalScripts();this.fireEvent('onComplete',[this.response.text,this.response.xml],20);},request:function(data){data=data||this.options.data;switch($type(data)){case'element':data=$(data).toQueryString();break;case'object':data=Object.toQueryString(data);}
if(this._method)data=(data)?[this._method,data].join('&'):this._method;return this.send(this.url,data);},evalScripts:function(){var script,scripts;if(this.options.evalResponse||(/(ecma|java)script/).test(this.getHeader('Content-type')))scripts=this.response.text;else{scripts=[];var regexp=/<script[^>]*>([\s\S]*?)<\/script>/gi;while((script=regexp.exec(this.response.text)))scripts.push(script[1]);scripts=scripts.join('\n');}
if(scripts)(window.execScript)?window.execScript(scripts):window.setTimeout(scripts,0);},getHeader:function(name){try{return this.transport.getResponseHeader(name);}catch(e){};return null;}});Object.toQueryString=function(source){var queryString=[];for(var property in source)queryString.push(encodeURIComponent(property)+'='+encodeURIComponent(source[property]));return queryString.join('&');};Element.extend({send:function(options){return new Ajax(this.getProperty('action'),$merge({data:this.toQueryString()},options,{method:'post'})).request();}});var Cookie=new Abstract({options:{domain:false,path:false,duration:false,secure:false},set:function(key,value,options){options=$merge(this.options,options);value=encodeURIComponent(value);if(options.domain)value+='; domain='+options.domain;if(options.path)value+='; path='+options.path;if(options.duration){var date=new Date();date.setTime(date.getTime()+options.duration*24*60*60*1000);value+='; expires='+date.toGMTString();}
if(options.secure)value+='; secure';document.cookie=key+'='+value;return $extend(options,{'key':key,'value':value});},get:function(key){var value=document.cookie.match('(?:^|;)\\s*'+key.escapeRegExp()+'=([^;]*)');return value?decodeURIComponent(value[1]):false;},remove:function(cookie,options){if($type(cookie)=='object')this.set(cookie.key,'',$merge(cookie,{duration:-1}));else this.set(cookie,'',$merge(options,{duration:-1}));}});var Json={toString:function(obj){switch($type(obj)){case'string':return'"'+obj.replace(/(["\\])/g,'\\$1')+'"';case'array':return'['+obj.map(Json.toString).join(',')+']';case'object':var string=[];for(var property in obj)string.push(Json.toString(property)+':'+Json.toString(obj[property]));return'{'+string.join(',')+'}';case'number':if(isFinite(obj))break;case false:return'null';}
return String(obj);},evaluate:function(str,secure){return(($type(str)!='string')||(secure&&!str.test(/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/)))?null:eval('('+str+')');}};Json.Remote=XHR.extend({initialize:function(url,options){this.url=url;this.addEvent('onSuccess',this.onComplete);this.parent(options);this.setHeader('X-Request','JSON');},send:function(obj){return this.parent(this.url,'json='+Json.toString(obj));},onComplete:function(){this.fireEvent('onComplete',[Json.evaluate(this.response.text,this.options.secure)]);}});var Asset=new Abstract({javascript:function(source,properties){properties=$merge({'onload':Class.empty},properties);var script=new Element('script',{'src':source}).addEvents({'load':properties.onload,'readystatechange':function(){if(this.readyState=='complete')this.fireEvent('load');}});delete properties.onload;return script.setProperties(properties).inject(document.head);},css:function(source,properties){return new Element('link',$merge({'rel':'stylesheet','media':'screen','type':'text/css','href':source},properties)).inject(document.head);},image:function(source,properties){properties=$merge({'onload':Class.empty,'onabort':Class.empty,'onerror':Class.empty},properties);var image=new Image();image.src=source;var element=new Element('img',{'src':source});['load','abort','error'].each(function(type){var event=properties['on'+type];delete properties['on'+type];element.addEvent(type,function(){this.removeEvent(type,arguments.callee);event.call(this);});});if(image.width&&image.height)element.fireEvent('load',element,1);return element.setProperties(properties);},images:function(sources,options){options=$merge({onComplete:Class.empty,onProgress:Class.empty},options);if(!sources.push)sources=[sources];var images=[];var counter=0;sources.each(function(source){var img=new Asset.image(source,{'onload':function(){options.onProgress.call(this,counter);counter++;if(counter==sources.length)options.onComplete();}});images.push(img);});return new Elements(images);}});var Hash=new Class({length:0,initialize:function(object){this.obj=object||{};this.setLength();},get:function(key){return(this.hasKey(key))?this.obj[key]:null;},hasKey:function(key){return(key in this.obj);},set:function(key,value){if(!this.hasKey(key))this.length++;this.obj[key]=value;return this;},setLength:function(){this.length=0;for(var p in this.obj)this.length++;return this;},remove:function(key){if(this.hasKey(key)){delete this.obj[key];this.length--;}
return this;},each:function(fn,bind){$each(this.obj,fn,bind);},extend:function(obj){$extend(this.obj,obj);return this.setLength();},merge:function(){this.obj=$merge.apply(null,[this.obj].extend(arguments));return this.setLength();},empty:function(){this.obj={};this.length=0;return this;},keys:function(){var keys=[];for(var property in this.obj)keys.push(property);return keys;},values:function(){var values=[];for(var property in this.obj)values.push(this.obj[property]);return values;}});function $H(obj){return new Hash(obj);};Hash.Cookie=Hash.extend({initialize:function(name,options){this.name=name;this.options=$extend({'autoSave':true},options||{});this.load();},save:function(){if(this.length==0){Cookie.remove(this.name,this.options);return true;}
var str=Json.toString(this.obj);if(str.length>4096)return false;Cookie.set(this.name,str,this.options);return true;},load:function(){this.obj=Json.evaluate(Cookie.get(this.name),true)||{};this.setLength();}});Hash.Cookie.Methods={};['extend','set','merge','empty','remove'].each(function(method){Hash.Cookie.Methods[method]=function(){Hash.prototype[method].apply(this,arguments);if(this.options.autoSave)this.save();return this;};});Hash.Cookie.implement(Hash.Cookie.Methods);var Color=new Class({initialize:function(color,type){type=type||(color.push?'rgb':'hex');var rgb,hsb;switch(type){case'rgb':rgb=color;hsb=rgb.rgbToHsb();break;case'hsb':rgb=color.hsbToRgb();hsb=color;break;default:rgb=color.hexToRgb(true);hsb=rgb.rgbToHsb();}
rgb.hsb=hsb;rgb.hex=rgb.rgbToHex();return $extend(rgb,Color.prototype);},mix:function(){var colors=$A(arguments);var alpha=($type(colors[colors.length-1])=='number')?colors.pop():50;var rgb=this.copy();colors.each(function(color){color=new Color(color);for(var i=0;i<3;i++)rgb[i]=Math.round((rgb[i]/100*(100-alpha))+(color[i]/100*alpha));});return new Color(rgb,'rgb');},invert:function(){return new Color(this.map(function(value){return 255-value;}));},setHue:function(value){return new Color([value,this.hsb[1],this.hsb[2]],'hsb');},setSaturation:function(percent){return new Color([this.hsb[0],percent,this.hsb[2]],'hsb');},setBrightness:function(percent){return new Color([this.hsb[0],this.hsb[1],percent],'hsb');}});function $RGB(r,g,b){return new Color([r,g,b],'rgb');};function $HSB(h,s,b){return new Color([h,s,b],'hsb');};Array.extend({rgbToHsb:function(){var red=this[0],green=this[1],blue=this[2];var hue,saturation,brightness;var max=Math.max(red,green,blue),min=Math.min(red,green,blue);var delta=max-min;brightness=max/255;saturation=(max!=0)?delta/max:0;if(saturation==0){hue=0;}else{var rr=(max-red)/delta;var gr=(max-green)/delta;var br=(max-blue)/delta;if(red==max)hue=br-gr;else if(green==max)hue=2+rr-br;else hue=4+gr-rr;hue/=6;if(hue<0)hue++;}
return[Math.round(hue*360),Math.round(saturation*100),Math.round(brightness*100)];},hsbToRgb:function(){var br=Math.round(this[2]/100*255);if(this[1]==0){return[br,br,br];}else{var hue=this[0]%360;var f=hue%60;var p=Math.round((this[2]*(100-this[1]))/10000*255);var q=Math.round((this[2]*(6000-this[1]*f))/600000*255);var t=Math.round((this[2]*(6000-this[1]*(60-f)))/600000*255);switch(Math.floor(hue/60)){case 0:return[br,t,p];case 1:return[q,br,p];case 2:return[p,br,t];case 3:return[p,q,br];case 4:return[t,p,br];case 5:return[br,p,q];}}
return false;}});var Scroller=new Class({options:{area:20,velocity:1,onChange:function(x,y){this.element.scrollTo(x,y);}},initialize:function(element,options){this.setOptions(options);this.element=$(element);this.mousemover=([window,document].contains(element))?$(document.body):this.element;},start:function(){this.coord=this.getCoords.bindWithEvent(this);this.mousemover.addListener('mousemove',this.coord);},stop:function(){this.mousemover.removeListener('mousemove',this.coord);this.timer=$clear(this.timer);},getCoords:function(event){this.page=(this.element==window)?event.client:event.page;if(!this.timer)this.timer=this.scroll.periodical(50,this);},scroll:function(){var el=this.element.getSize();var pos=this.element.getPosition();var change={'x':0,'y':0};for(var z in this.page){if(this.page[z]<(this.options.area+pos[z])&&el.scroll[z]!=0)
change[z]=(this.page[z]-this.options.area-pos[z])*this.options.velocity;else if(this.page[z]+this.options.area>(el.size[z]+pos[z])&&el.scroll[z]+el.size[z]!=el.scrollSize[z])
change[z]=(this.page[z]-el.size[z]+this.options.area-pos[z])*this.options.velocity;}
if(change.y||change.x)this.fireEvent('onChange',[el.scroll.x+change.x,el.scroll.y+change.y]);}});Scroller.implement(new Events,new Options);var Slider=new Class({options:{onChange:Class.empty,onComplete:Class.empty,onTick:function(pos){this.knob.setStyle(this.p,pos);},mode:'horizontal',steps:100,offset:0},initialize:function(el,knob,options){this.element=$(el);this.knob=$(knob);this.setOptions(options);this.previousChange=-1;this.previousEnd=-1;this.step=-1;this.element.addEvent('mousedown',this.clickedElement.bindWithEvent(this));var mod,offset;switch(this.options.mode){case'horizontal':this.z='x';this.p='left';mod={'x':'left','y':false};offset='offsetWidth';break;case'vertical':this.z='y';this.p='top';mod={'x':false,'y':'top'};offset='offsetHeight';}
this.max=this.element[offset]-this.knob[offset]+(this.options.offset*2);this.half=this.knob[offset]/2;this.getPos=this.element['get'+this.p.capitalize()].bind(this.element);this.knob.setStyle('position','relative').setStyle(this.p,-this.options.offset);var lim={};lim[this.z]=[-this.options.offset,this.max-this.options.offset];this.drag=new Drag.Base(this.knob,{limit:lim,modifiers:mod,snap:0,onStart:function(){this.draggedKnob();}.bind(this),onDrag:function(){this.draggedKnob();}.bind(this),onComplete:function(){this.draggedKnob();this.end();}.bind(this)});if(this.options.initialize)this.options.initialize.call(this);},set:function(step){this.step=step.limit(0,this.options.steps);this.checkStep();this.end();this.fireEvent('onTick',this.toPosition(this.step));return this;},clickedElement:function(event){var position=event.page[this.z]-this.getPos()-this.half;position=position.limit(-this.options.offset,this.max-this.options.offset);this.step=this.toStep(position);this.checkStep();this.end();this.fireEvent('onTick',position);},draggedKnob:function(){this.step=this.toStep(this.drag.value.now[this.z]);this.checkStep();},checkStep:function(){if(this.previousChange!=this.step){this.previousChange=this.step;this.fireEvent('onChange',this.step);}},end:function(){if(this.previousEnd!==this.step){this.previousEnd=this.step;this.fireEvent('onComplete',this.step+'');}},toStep:function(position){return Math.round((position+this.options.offset)/this.max*this.options.steps);},toPosition:function(step){return this.max*step/this.options.steps;}});Slider.implement(new Events);Slider.implement(new Options);var SmoothScroll=Fx.Scroll.extend({initialize:function(options){this.parent(window,options);this.links=(this.options.links)?$$(this.options.links):$$(document.links);var location=window.location.href.match(/^[^#]*/)[0]+'#';this.links.each(function(link){if(link.href.indexOf(location)!=0)return;var anchor=link.href.substr(location.length);if(anchor&&$(anchor))this.useLink(link,anchor);},this);if(!window.webkit419)this.addEvent('onComplete',function(){window.location.hash=this.anchor;});},useLink:function(link,anchor){link.addEvent('click',function(event){this.anchor=anchor;this.toElement(anchor);event.stop();}.bindWithEvent(this));}});var Sortables=new Class({options:{handles:false,onStart:Class.empty,onComplete:Class.empty,ghost:true,snap:3,onDragStart:function(element,ghost){ghost.setStyle('opacity',0.7);element.setStyle('opacity',0.7);},onDragComplete:function(element,ghost){element.setStyle('opacity',1);ghost.remove();this.trash.remove();}},initialize:function(list,options){this.setOptions(options);this.list=$(list);this.elements=this.list.getChildren();this.handles=(this.options.handles)?$$(this.options.handles):this.elements;this.bound={'start':[],'moveGhost':this.moveGhost.bindWithEvent(this)};for(var i=0,l=this.handles.length;i<l;i++){this.bound.start[i]=this.start.bindWithEvent(this,this.elements[i]);}
this.attach();if(this.options.initialize)this.options.initialize.call(this);this.bound.move=this.move.bindWithEvent(this);this.bound.end=this.end.bind(this);},attach:function(){this.handles.each(function(handle,i){handle.addEvent('mousedown',this.bound.start[i]);},this);},detach:function(){this.handles.each(function(handle,i){handle.removeEvent('mousedown',this.bound.start[i]);},this);},start:function(event,el){this.active=el;this.coordinates=this.list.getCoordinates();if(this.options.ghost){var position=el.getPosition();this.offset=event.page.y-position.y;this.trash=new Element('div').inject(document.body);this.ghost=el.clone().inject(this.trash).setStyles({'position':'absolute','left':position.x,'top':event.page.y-this.offset});document.addListener('mousemove',this.bound.moveGhost);this.fireEvent('onDragStart',[el,this.ghost]);}
document.addListener('mousemove',this.bound.move);document.addListener('mouseup',this.bound.end);this.fireEvent('onStart',el);event.stop();},moveGhost:function(event){var value=event.page.y-this.offset;value=value.limit(this.coordinates.top,this.coordinates.bottom-this.ghost.offsetHeight);this.ghost.setStyle('top',value);event.stop();},move:function(event){var now=event.page.y;this.previous=this.previous||now;var up=((this.previous-now)>0);var prev=this.active.getPrevious();var next=this.active.getNext();if(prev&&up&&now<prev.getCoordinates().bottom)this.active.injectBefore(prev);if(next&&!up&&now>next.getCoordinates().top)this.active.injectAfter(next);this.previous=now;},serialize:function(converter){return this.list.getChildren().map(converter||function(el){return this.elements.indexOf(el);},this);},end:function(){this.previous=null;document.removeListener('mousemove',this.bound.move);document.removeListener('mouseup',this.bound.end);if(this.options.ghost){document.removeListener('mousemove',this.bound.moveGhost);this.fireEvent('onDragComplete',[this.active,this.ghost]);}
this.fireEvent('onComplete',this.active);}});Sortables.implement(new Events,new Options);var Tips=new Class({options:{onShow:function(tip){tip.setStyle('visibility','visible');},onHide:function(tip){tip.setStyle('visibility','hidden');},maxTitleChars:30,showDelay:100,hideDelay:100,className:'tool',offsets:{'x':16,'y':16},fixed:false},initialize:function(elements,options){this.setOptions(options);this.toolTip=new Element('div',{'class':this.options.className+'-tip','styles':{'position':'absolute','top':'0','left':'0','visibility':'hidden'}}).inject(document.body);this.wrapper=new Element('div').inject(this.toolTip);$$(elements).each(this.build,this);if(this.options.initialize)this.options.initialize.call(this);},build:function(el){el.$tmp.myTitle=(el.href&&el.getTag()=='a')?el.href.replace('http://',''):(el.rel||false);if(el.title){var dual=el.title.split('::');if(dual.length>1){el.$tmp.myTitle=dual[0].trim();el.$tmp.myText=dual[1].trim();}else{el.$tmp.myText=el.title;}
el.removeAttribute('title');}else{el.$tmp.myText=false;}
if(el.$tmp.myTitle&&el.$tmp.myTitle.length>this.options.maxTitleChars)el.$tmp.myTitle=el.$tmp.myTitle.substr(0,this.options.maxTitleChars-1)+"&hellip;";el.addEvent('mouseenter',function(event){this.start(el);if(!this.options.fixed)this.locate(event);else this.position(el);}.bind(this));if(!this.options.fixed)el.addEvent('mousemove',this.locate.bindWithEvent(this));var end=this.end.bind(this);el.addEvent('mouseleave',end);el.addEvent('trash',end);},start:function(el){this.wrapper.empty();if(el.$tmp.myTitle){this.title=new Element('span').inject(new Element('div',{'class':this.options.className+'-title'}).inject(this.wrapper)).setHTML(el.$tmp.myTitle);}
if(el.$tmp.myText){this.text=new Element('span').inject(new Element('div',{'class':this.options.className+'-text'}).inject(this.wrapper)).setHTML(el.$tmp.myText);}
$clear(this.timer);this.timer=this.show.delay(this.options.showDelay,this);},end:function(event){$clear(this.timer);this.timer=this.hide.delay(this.options.hideDelay,this);},position:function(element){var pos=element.getPosition();this.toolTip.setStyles({'left':pos.x+this.options.offsets.x,'top':pos.y+this.options.offsets.y});},locate:function(event){var win={'x':window.getWidth(),'y':window.getHeight()};var scroll={'x':window.getScrollLeft(),'y':window.getScrollTop()};var tip={'x':this.toolTip.offsetWidth,'y':this.toolTip.offsetHeight};var prop={'x':'left','y':'top'};for(var z in prop){var pos=event.page[z]+this.options.offsets[z];if((pos+tip[z]-scroll[z])>win[z])pos=event.page[z]-this.options.offsets[z]-tip[z];this.toolTip.setStyle(prop[z],pos);};},show:function(){if(this.options.timeout)this.timer=this.hide.delay(this.options.timeout,this);this.fireEvent('onShow',[this.toolTip]);},hide:function(){this.fireEvent('onHide',[this.toolTip]);}});Tips.implement(new Events,new Options);var Group=new Class({initialize:function(){this.instances=$A(arguments);this.events={};this.checker={};},addEvent:function(type,fn){this.checker[type]=this.checker[type]||{};this.events[type]=this.events[type]||[];if(this.events[type].contains(fn))return false;else this.events[type].push(fn);this.instances.each(function(instance,i){instance.addEvent(type,this.check.bind(this,[type,instance,i]));},this);return this;},check:function(type,instance,i){this.checker[type][i]=true;var every=this.instances.every(function(current,j){return this.checker[type][j]||false;},this);if(!every)return;this.checker[type]={};this.events[type].each(function(event){event.call(this,this.instances,instance);},this);}});var Accordion=Fx.Elements.extend({options:{onActive:Class.empty,onBackground:Class.empty,display:0,show:false,height:true,width:false,opacity:true,fixedHeight:false,fixedWidth:false,wait:false,alwaysHide:false},initialize:function(){var options,togglers,elements,container;$each(arguments,function(argument,i){switch($type(argument)){case'object':options=argument;break;case'element':container=$(argument);break;default:var temp=$$(argument);if(!togglers)togglers=temp;else elements=temp;}});this.togglers=togglers||[];this.elements=elements||[];this.container=$(container);this.setOptions(options);this.previous=-1;if(this.options.alwaysHide)this.options.wait=true;if($chk(this.options.show)){this.options.display=false;this.previous=this.options.show;}
if(this.options.start){this.options.display=false;this.options.show=false;}
this.effects={};if(this.options.opacity)this.effects.opacity='fullOpacity';if(this.options.width)this.effects.width=this.options.fixedWidth?'fullWidth':'offsetWidth';if(this.options.height)this.effects.height=this.options.fixedHeight?'fullHeight':'scrollHeight';for(var i=0,l=this.togglers.length;i<l;i++)this.addSection(this.togglers[i],this.elements[i]);this.elements.each(function(el,i){if(this.options.show===i){this.fireEvent('onActive',[this.togglers[i],el]);}else{for(var fx in this.effects)el.setStyle(fx,0);}},this);this.parent(this.elements);if($chk(this.options.display))this.display(this.options.display);},addSection:function(toggler,element,pos){toggler=$(toggler);element=$(element);var test=this.togglers.contains(toggler);var len=this.togglers.length;this.togglers.include(toggler);this.elements.include(element);if(len&&(!test||pos)){pos=$pick(pos,len-1);toggler.injectBefore(this.togglers[pos]);element.injectAfter(toggler);}else if(this.container&&!test){toggler.inject(this.container);element.inject(this.container);}
var idx=this.togglers.indexOf(toggler);toggler.addEvent('click',this.display.bind(this,idx));if(this.options.height)element.setStyles({'padding-top':0,'border-top':'none','padding-bottom':0,'border-bottom':'none'});if(this.options.width)element.setStyles({'padding-left':0,'border-left':'none','padding-right':0,'border-right':'none'});element.fullOpacity=1;if(this.options.fixedWidth)element.fullWidth=this.options.fixedWidth;if(this.options.fixedHeight)element.fullHeight=this.options.fixedHeight;element.setStyle('overflow','hidden');if(!test){for(var fx in this.effects)element.setStyle(fx,0);}
return this;},display:function(index){index=($type(index)=='element')?this.elements.indexOf(index):index;if((this.timer&&this.options.wait)||(index===this.previous&&!this.options.alwaysHide))return this;this.previous=index;var obj={};this.elements.each(function(el,i){obj[i]={};var hide=(i!=index)||(this.options.alwaysHide&&(el.offsetHeight>0));this.fireEvent(hide?'onBackground':'onActive',[this.togglers[i],el]);for(var fx in this.effects)obj[i][fx]=hide?0:el[this.effects[fx]];},this);return this.start(obj);},showThisHideOpen:function(index){return this.display(index);}});Fx.Accordion=Accordion;

/*** caption.js ***/

/**
* @version		$Id: caption.js 5263 2006-10-02 01:25:24Z webImagery $
* @copyright	Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license		GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

/**
* JCaption javascript behavior
*
* Used for displaying image captions
*
* @package	Joomla
* @since	1.5
* @version	1.0
*/
var JCaption = new Class({
	initialize: function(selector)
	{
		this.selector = selector;

		var images = $$(selector);
		images.each(function(image){ this.createCaption(image); }, this);
	},

	createCaption: function(element)
	{
		var caption   = document.createTextNode(element.title);
		var container = document.createElement("div");
		var text      = document.createElement("p");
		var width     = element.getAttribute("width");
		var align     = element.getAttribute("align");

		if(!width) {
			width = element.width;
		}

		//Windows fix
		if (!align)
			align = element.getStyle("float");  // Rest of the world fix
		if (!align) // IE DOM Fix
			align = element.style.styleFloat;

		if (align=="") {
			align="none";
		}

		text.appendChild(caption);
		text.className = this.selector.replace('.', '_');

		element.parentNode.insertBefore(container, element);
		container.appendChild(element);
		if ( element.title != "" ) {
			container.appendChild(text);
		}
		container.className   = this.selector.replace('.', '_');
		container.className   = container.className + " " + align;
		container.setAttribute("style","float:"+align);

		container.style.width = width + "px";

	}
});

document.caption = null;
window.addEvent('load', function() {
	var caption = new JCaption('img.caption')
	document.caption = caption
});


/*** highslide-full.packed.js ***/

/******************************************************************************
Name:    Highslide JS
Version: 4.1.5 (June 26 2009)
Config:  default +events +unobtrusive +imagemap +slideshow +positioning +transitions +viewport +thumbstrip +inline +ajax +iframe +flash +packed
Author:  Torstein Hønsi
Support: http://highslide.com/support

Licence:
Highslide JS is licensed under a Creative Commons Attribution-NonCommercial 2.5
License (http://creativecommons.org/licenses/by-nc/2.5/).

You are free:
	* to copy, distribute, display, and perform the work
	* to make derivative works

Under the following conditions:
	* Attribution. You must attribute the work in the manner  specified by  the
	  author or licensor.
	* Noncommercial. You may not use this work for commercial purposes.

* For  any  reuse  or  distribution, you  must make clear to others the license
  terms of this work.
* Any  of  these  conditions  can  be  waived  if  you  get permission from the 
  copyright holder.

Your fair use and other rights are in no way affected by the above.
******************************************************************************/
eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}('A m={14:{9B:\'aL\',aw:\'eE...\',av:\'9S 2a eF\',bt:\'9S 2a eG 2a eH\',8J:\'eP 2a eW I (f)\',cv:\'eX by <i>aj a7</i>\',cr:\'eY 2a eZ aj a7 ei\',8N:\'a8\',91:\'a6\',98:\'ac\',8R:\'aM\',8Z:\'aM (ez)\',am:\'eA\',a3:\'a9\',al:\'a9 1p (ab)\',ae:\'aa\',ah:\'aa 1p (ab)\',8M:\'a8 (9E Y)\',93:\'a6 (9E 3i)\',94:\'ac\',ag:\'1:1\',3Q:\'ft %1 fC %2\',7Q:\'9S 2a 2f 2L, fe ad fj 2a 3B. d4 9E dk O 1G ad 35.\'},5m:\'M/d6/\',8B:\'d3.56\',69:\'cZ.56\',7f:63,9o:63,4Y:15,9O:15,6b:15,6v:15,4p:db,ay:0.75,9d:L,8p:5,3U:2,cO:3,5G:1i,bp:\'4i 3i\',bn:1,bf:L,ck:\'cT://M.dl/\',ch:\'dM\',b7:L,8F:[\'a\',\'5c\'],3g:[],cq:63,4m:0,96:50,71:1i,7T:L,4E:L,3O:\'5r\',8W:L,4c:\'28\',9q:\'28\',9Y:H,9W:H,9G:L,4H:ak,6k:ak,5v:L,1X:\'e7-e8\',8U:{2N:\'<R 1Z="M-2N"><5s>\'+\'<1J 1Z="M-35">\'+\'<a 23="#" 2k="{m.14.8M}">\'+\'<1A>{m.14.8N}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-3G">\'+\'<a 23="#" 2k="{m.14.al}">\'+\'<1A>{m.14.a3}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-3h">\'+\'<a 23="#" 2k="{m.14.ah}">\'+\'<1A>{m.14.ae}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-1G">\'+\'<a 23="#" 2k="{m.14.93}">\'+\'<1A>{m.14.91}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-3B">\'+\'<a 23="#" 2k="{m.14.94}">\'+\'<1A>{m.14.98}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-1d-2H">\'+\'<a 23="#" 2k="{m.14.8J}">\'+\'<1A>{m.14.ag}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-2f">\'+\'<a 23="#" 2k="{m.14.8Z}" >\'+\'<1A>{m.14.8R}</1A></a>\'+\'</1J>\'+\'</5s></R>\',aQ:\'<R 1Z="M-fk"><5s>\'+\'<1J 1Z="M-35">\'+\'<a 23="#" 2k="{m.14.8M}" 2p="D m.35(k)">\'+\'<1A>{m.14.8N}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-1G">\'+\'<a 23="#" 2k="{m.14.93}" 2p="D m.1G(k)">\'+\'<1A>{m.14.91}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-3B">\'+\'<a 23="#" 2k="{m.14.94}" 2p="D 1i">\'+\'<1A>{m.14.98}</1A></a>\'+\'</1J>\'+\'<1J 1Z="M-2f">\'+\'<a 23="#" 2k="{m.14.8Z}" 2p="D m.2f(k)">\'+\'<1A>{m.14.8R}</1A></a>\'+\'</1J>\'+\'</5s></R>\'+\'<R 1Z="M-1k"></R>\'+\'<R 1Z="M-dF"><R>\'+\'<1A 1Z="M-3L" 2k="{m.14.am}"><1A></1A></1A>\'+\'</R></R>\'},6e:[],86:L,11:[],88:[\'5v\',\'3A\',\'4c\',\'9q\',\'9Y\',\'9W\',\'1X\',\'3U\',\'dG\',\'dy\',\'dx\',\'a2\',\'dq\',\'dp\',\'do\',\'9V\',\'ct\',\'9G\',\'45\',\'5t\',\'3g\',\'4m\',\'K\',\'N\',\'8e\',\'71\',\'7T\',\'4E\',\'dm\',\'dn\',\'dr\',\'2J\',\'8W\',\'3Y\',\'5e\',\'3O\',\'89\',\'9J\',\'4H\',\'6k\',\'aq\',\'ds\',\'2R\',\'2S\',\'cj\',\'cp\',\'1e\'],1L:[],6p:0,8f:{x:[\'br\',\'Y\',\'4A\',\'3i\',\'bq\'],y:[\'5A\',\'V\',\'9T\',\'4i\',\'7s\']},79:{},9V:{},a2:{},89:{an:{},2e:{},b5:{}},47:[],5u:[],4F:{},4K:[],7k:[],5i:[],6Q:{},8Y:{},7r:[],3X:9r((5d.6M.6f().2y(/.+(?:9Z|du|dt|1z)[\\/: ]([\\d.]+)/)||[0,\'0\'])[1]),1z:(19.5H&&!1U.3F),4o:/cw/.1c(5d.6M),5p:/dK.+9Z:1\\.[0-8].+dL/.1c(5d.6M),$:C(1D){q(1D)D 19.8S(1D)},2o:C(2b,3e){2b[2b.W]=3e},18:C(ai,3W,46,5M,b9){A el=19.18(ai);q(3W)m.3E(el,3W);q(b9)m.S(el,{7Z:0,8c:\'1r\',9t:0});q(46)m.S(el,46);q(5M)5M.1V(el);D el},3E:C(el,3W){O(A x 3j 3W)el[x]=3W[x];D el},S:C(el,46){O(A x 3j 46){q(m.1z&&x==\'1w\'){q(46[x]>0.99)el.E.e1(\'6g\');J el.E.6g=\'aT(1w=\'+(46[x]*2W)+\')\'}J el.E[x]=46[x]}},24:C(el,1y,3u){A 4D,3Z,4C;q(1I 3u!=\'72\'||3u===H){A 2K=bW;3u={41:2K[2],2S:2K[3],6G:2K[4]}}q(1I 3u.41!=\'3Q\')3u.41=63;3u.2S=1j[3u.2S]||1j.au;3u.6y=m.3E({},1y);O(A 3d 3j 1y){A e=1H m.fx(el,3u,3d);4D=9r(m.8L(el,3d))||0;3Z=9r(1y[3d]);4C=3d!=\'1w\'?\'F\':\'\';e.3t(4D,3Z,4C)}},8L:C(el,1y){q(19.7N){D 19.7N.cf(el,H).bw(1y)}J{q(1y==\'1w\')1y=\'6g\';A 3e=el.5L[1y.26(/\\-(\\w)/g,C(a,b){D b.aE()})];q(1y==\'6g\')3e=3e.26(/aT\\(1w=([0-9]+)\\)/,C(a,b){D b/2W});D 3e===\'\'?1:3e}},6d:C(){A d=19,w=1U,4e=d.9I&&d.9I!=\'bd\'?d.5n:d.1k;A b=d.1k;A aR=(w.6Y&&w.aU)?w.6Y+w.aU:1j.2Q(b.aW,b.1M),aO=(w.6N&&1U.aV)?w.6N+w.aV:1j.2Q(b.aS,b.1Q),6V=m.1z?4e.aW:(d.5n.8K||54.6Y),6U=m.1z?1j.2Q(4e.aS,4e.8I):(d.5n.8I||54.6N);A K=m.1z?4e.8K:(d.5n.8K||54.6Y),N=m.1z?4e.8I:54.6N;m.3V={6V:1j.2Q(6V,aR),6U:1j.2Q(6U,aO),K:K,N:N,7B:m.1z?4e.7B:dO,7A:m.1z?4e.7A:dN}},6n:C(el){q(/5c/i.1c(el.3T)){A 6O=19.2z(\'1S\');O(A i=0;i<6O.W;i++){A u=6O[i].dR;q(u&&u.26(/^.*?#/,\'\')==el.29.3d){el=6O[i];5f}}}A p={x:el.4I,y:el.7L};4Q(el.aP){el=el.aP;p.x+=el.4I;p.y+=el.7L;q(el!=19.1k&&el!=19.5n){p.x-=el.7B;p.y-=el.7A}}D p},2H:C(a,2e,3t,Z){q(!a)a=m.18(\'a\',H,{1m:\'1r\'},m.2g);q(1I a.65==\'C\')D 2e;q(Z==\'3y\'){O(A i=0;i<m.4K.W;i++){q(m.4K[i]&&m.4K[i].a==a){m.4K[i].bG();m.4K[i]=H;D 1i}}m.b4=L}1C{1H m.5x(a,2e,3t,Z);D 1i}1E(e){D L}},9c:C(a,2e,3t){D m.2H(a,2e,3t,\'3y\')},85:C(){D m.18(\'R\',{1b:\'M-3y-T\',2h:m.8V(m.8U.aQ)})},4G:C(el,3T,1b){A 1l=el.2z(3T);O(A i=0;i<1l.W;i++){q((1H 4y(1b)).1c(1l[i].1b)){D 1l[i]}}D H},8V:C(s){s=s.26(/\\s/g,\' \');A 2n=/{m\\.14\\.([^}]+)\\}/g,68=s.2y(2n),14;q(68)O(A i=0;i<68.W;i++){14=68[i].26(2n,"$1");q(1I m.14[14]!=\'1T\')s=s.26(68[i],m.14[14])}D s},bS:C(){A 1l=19.2z(\'a\');O(A i=0;i<1l.W;i++){A Z=m.aY(1l[i]);q(Z&&!1l[i].aX){(C(){A t=Z;q(m.1x(m,\'dU\',{7l:1l[i],Z:t})){1l[i].2p=(Z==\'2L\')?C(){D m.2H(k)}:C(){D m.9c(k,{2J:t})}}})();1l[i].aX=L}}m.6h()},aY:C(el){q(el.6I==\'M\')D\'2L\';J q(el.6I==\'M-3a\')D\'3a\';J q(el.6I==\'M-1h\')D\'1h\';J q(el.6I==\'M-3D\')D\'3D\'},7V:C(a){O(A i=0;i<m.5i.W;i++){q(m.5i[i][0]==a){A c=m.5i[i][1];m.5i[i][1]=c.4Z(1);D c}}D H},bv:C(e){A 2b=m.6h();O(A i=0;i<2b.4O.W;i++){A a=2b.4O[i];q(m.4b(a,\'2J\')==\'3a\'&&m.4b(a,\'8W\'))m.2o(m.7k,a)}m.8O(0)},8O:C(i){q(!m.7k[i])D;A a=m.7k[i];A 5S=m.5W(m.4b(a,\'8e\'));q(!5S)5S=m.85();A 3a=1H m.7p(a,5S,1);3a.8z=C(){};3a.3s=C(){m.2o(m.5i,[a,5S]);m.8O(i+1)};3a.8q()},b8:C(){A 8P=0,6P=-1,11=m.11,B,1F;O(A i=0;i<11.W;i++){B=11[i];q(B){1F=B.Q.E.1F;q(1F&&1F>8P){8P=1F;6P=i}}}q(6P==-1)m.31=-1;J 11[6P].3I()},4b:C(a,61){a.65=a.2p;A p=a.65?a.65():H;a.65=H;D(p&&1I p[61]!=\'1T\')?p[61]:(1I m[61]!=\'1T\'?m[61]:H)},7x:C(a){A 1e=m.4b(a,\'1e\');q(1e)D 1e;D a.23},5W:C(1D){A 1R=m.$(1D),4t=m.8Y[1D],a={};q(!1R&&!4t)D H;q(!4t){4t=1R.4Z(L);4t.1D=\'\';m.8Y[1D]=4t;D 1R}J{D 4t.4Z(L)}},3H:C(d){q(d)m.8H.1V(d);m.8H.2h=\'\'},1B:C(B){q(!m.2F){m.2F=m.18(\'R\',{1b:\'M-cL\',62:\'\',2p:C(){q(m.1x(m,\'de\'))m.2f()}},{1n:\'2r\',1o:\'22\',Y:0,1w:0},m.2g,L);m.2l(1U,\'3L\',m.4T)}m.2F.E.1m=\'\';m.4T();m.2F.62+=\'|\'+B.P;q(m.5p&&m.b6)m.S(m.2F,{6A:\'7a(\'+m.5m+\'dc.aJ)\',1w:1});J m.24(m.2F,{1w:B.4m},m.96)},8r:C(P){q(!m.2F)D;q(1I P!=\'1T\')m.2F.62=m.2F.62.26(\'|\'+P,\'\');q((1I P!=\'1T\'&&m.2F.62!=\'\')||(m.2u&&m.4b(m.2u,\'4m\')))D;q(m.5p&&m.b6)m.S(m.2F,{6A:\'1r\',K:0,N:0});J m.24(m.2F,{1w:0},m.96,H,C(){m.S(m.2F,{1m:\'1r\',K:0,N:0})})},4T:C(B){m.6d();q(!m.2F)D;A h=(m.1z&&B&&B.Q)?2v(B.Q.E.V)+2v(B.Q.E.N)+(B.1a?B.1a.1s:0):0;m.S(m.2F,{K:m.3V.6V+\'F\',N:1j.2Q(m.3V.6U,h)+\'F\'})},9v:C(4V,B){A 1f=B=B||m.2Y();q(m.2u)D 1i;J m.1f=1f;1C{m.2u=4V;4V.2p()}1E(e){m.1f=m.2u=H}1C{q(!4V||B.3g[1]!=\'4f\')B.2f()}1E(e){}D 1i},7j:C(el,2m){A B=m.2Y(el);q(B){4V=B.8a(2m);D m.9v(4V,B)}J D 1i},35:C(el){D m.7j(el,-1)},1G:C(el){D m.7j(el,1)},6x:C(e){q(!e)e=1U.2E;q(!e.2G)e.2G=e.8x;q(1I e.2G.95!=\'1T\')D L;q(!m.1x(m,\'d2\',e))D L;A B=m.2Y();A 2m=H;aC(e.d1){2c 70:q(B)B.6L();D L;2c 32:2m=2;5f;2c 34:2c 39:2c 40:2m=1;5f;2c 8:2c 33:2c 37:2c 38:2m=-1;5f;2c 27:2c 13:2m=0}q(2m!==H){q(2m!=2)m.5j(19,1U.3F?\'9z\':\'9y\',m.6x);q(!m.b7)D L;q(e.5h)e.5h();J e.bR=1i;q(B){q(2m==0){B.2f()}J q(2m==2){q(B.1p)B.1p.ca()}J{q(B.1p)B.1p.3h();m.7j(B.P,2m)}D 1i}}D L},dd:C(16){m.2o(m.1L,m.3E(16,{21:\'21\'+m.6p++}))},cY:C(1v){A 3c=1v.2R;q(1I 3c==\'72\'){O(A i=0;i<3c.W;i++){A o={};O(A x 3j 1v)o[x]=1v[x];o.2R=3c[i];m.2o(m.5u,o)}}J{m.2o(m.5u,1v)}},87:C(7l,7D){A el,2n=/^M-Q-([0-9]+)$/;el=7l;4Q(el.29){q(el.6o!==1T)D el.6o;q(el.1D&&2n.1c(el.1D))D el.1D.26(2n,"$1");el=el.29}q(!7D){el=7l;4Q(el.29){q(el.3T&&m.6F(el)){O(A P=0;P<m.11.W;P++){A B=m.11[P];q(B&&B.a==el)D P}}el=el.29}}D H},2Y:C(el,7D){q(1I el==\'1T\')D m.11[m.31]||H;q(1I el==\'3Q\')D m.11[el]||H;q(1I el==\'9n\')el=m.$(el);D m.11[m.87(el,7D)]||H},6F:C(a){D(a.2p&&a.2p.cz().26(/\\s/g,\' \').2y(/m.(cG|e)cU/))},bk:C(){O(A i=0;i<m.11.W;i++)q(m.11[i]&&m.11[i].5w)m.b8()},1x:C(64,90,2K){D 64&&64[90]?(64[90](64,2K)!==1i):L},9x:C(e){q(!e)e=1U.2E;q(e.cS>1)D L;q(!e.2G)e.2G=e.8x;A el=e.2G;4Q(el.29&&!(/M-(2L|3B|3y|3L)/.1c(el.1b))){el=el.29}A B=m.2Y(el);q(B&&(B.5X||!B.5w))D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1C{q(!e)e=1U.2E;A 5V=/f6/i.1c(e.Z);q(!e.2G)e.2G=e.8x;q(m.1z)e.8y=5V?e.f5:e.f4;A B=m.2Y(e.2G);q(!B.5w)D;q(!B||!e.8y||m.2Y(e.8y,L)==B||m.2D)D;m.1x(B,5V?\'f3\':\'f7\',e);O(A i=0;i<B.1L.W;i++)(C(){A o=m.$(\'21\'+B.1L[i]);q(o&&o.7q){q(5V)m.S(o,{1o:\'22\',1m:\'\'});m.24(o,{1w:5V?o.1w:0},o.2B)}})()}1E(e){}},2l:C(el,2E,3P){q(el==19&&2E==\'4q\')m.2o(m.7r,3P);1C{el.2l(2E,3P,1i)}1E(e){1C{el.b2(\'6j\'+2E,3P);el.f8(\'6j\'+2E,3P)}1E(e){el[\'6j\'+2E]=3P}}},5j:C(el,2E,3P){1C{el.5j(2E,3P,1i)}1E(e){1C{el.b2(\'6j\'+2E,3P)}1E(e){el[\'6j\'+2E]=H}}},7m:C(i){q(m.86&&m.6e[i]&&m.6e[i]!=\'1T\'){A 1S=19.18(\'1S\');1S.4L=C(){1S=H;m.7m(i+1)};1S.1e=m.6e[i]}},bT:C(3Q){q(3Q&&1I 3Q!=\'72\')m.8p=3Q;A 2b=m.6h();O(A i=0;i<2b.4P.W&&i<m.8p;i++){m.2o(m.6e,m.7x(2b.4P[i]))}q(m.1X)1H m.5U(m.1X,C(){m.7m(0)});J m.7m(0);q(m.69)A 56=m.18(\'1S\',{1e:m.5m+m.69})},6R:C(){q(!m.2g){m.6d();m.5b=m.1z&&m.3X<7;m.c3=m.5b&&7P.fr==\'fE:\';O(A x 3j m.7b){q(1I m[x]!=\'1T\')m.14[x]=m[x];J q(1I m.14[x]==\'1T\'&&1I m.7b[x]!=\'1T\')m.14[x]=m.7b[x]}m.2g=m.18(\'R\',{1b:\'M-2g\'},{1n:\'2r\',Y:0,V:0,K:\'2W%\',1F:m.4p,9l:\'aL\'},19.1k,L);m.2s=m.18(\'a\',{1b:\'M-2s\',2k:m.14.av,2h:m.14.aw,23:\'bo:;\'},{1n:\'2r\',V:\'-4h\',1w:m.ay,1F:1},m.2g);m.8H=m.18(\'R\',H,{1m:\'1r\'},m.2g);m.36=m.18(\'R\',{1b:\'M-36\'},{1o:(m.4o&&m.3X<cu)?\'22\':\'1q\'},m.2g,1);m.3v=m.18(\'R\',H,{a1:\'a0\',fH:\'fI\'},H,L);1j.fK=C(t,b,c,d){D c*t/d+b};1j.au=C(t,b,c,d){D c*(t/=d)*t+b};1j.9h=C(t,b,c,d){D-c*(t/=d)*(t-2)+b};m.cF=m.5b;m.cE=((1U.3F&&m.3X<9)||5d.a5==\'a4\'||(m.1z&&m.3X<5.5));m.1x(k,\'fu\')}},4q:C(){q(m.7K)D;m.7K=L;O(A i=0;i<m.7r.W;i++)m.7r[i]()},8T:C(){A el,1l,5H=[],4P=[],4O=[],3m={},2n;O(A i=0;i<m.8F.W;i++){1l=19.2z(m.8F[i]);O(A j=0;j<1l.W;j++){el=1l[j];2n=m.6F(el);q(2n){m.2o(5H,el);q(2n[0]==\'m.2H\')m.2o(4P,el);J q(2n[0]==\'m.9c\')m.2o(4O,el);A g=m.4b(el,\'2R\')||\'1r\';q(!3m[g])3m[g]=[];m.2o(3m[g],el)}}}m.4N={5H:5H,3m:3m,4P:4P,4O:4O};D m.4N},6h:C(){D m.4N||m.8T()},2f:C(el){A B=m.2Y(el);q(B)B.2f();D 1i}};m.fx=C(30,1v,1y){k.1v=1v;k.30=30;k.1y=1y;q(!1v.at)1v.at={}};m.fx.58={9P:C(){(m.fx.3J[k.1y]||m.fx.3J.aA)(k);q(k.1v.3J)k.1v.3J.ar(k.30,k.4r,k)},3t:C(ao,2a,4C){k.9Q=(1H 7z()).7C();k.4D=ao;k.3Z=2a;k.4C=4C;k.4r=k.4D;k.G=k.9R=0;A 54=k;C t(6m){D 54.3J(6m)}t.30=k.30;q(t()&&m.47.2o(t)==1){m.ap=fB(C(){A 47=m.47;O(A i=0;i<47.W;i++)q(!47[i]())47.fz(i--,1);q(!47.W){fJ(m.ap)}},13)}},3J:C(6m){A t=(1H 7z()).7C();q(6m||t>=k.1v.41+k.9Q){k.4r=k.3Z;k.G=k.9R=1;k.9P();k.1v.6y[k.1y]=L;A 9M=L;O(A i 3j k.1v.6y)q(k.1v.6y[i]!==L)9M=1i;q(9M){q(k.1v.6G)k.1v.6G.ar(k.30)}D 1i}J{A n=t-k.9Q;k.9R=n/k.1v.41;k.G=k.1v.2S(n,0,1,k.1v.41);k.4r=k.4D+((k.3Z-k.4D)*k.G);k.9P()}D L}};m.3E(m.fx,{3J:{1w:C(fx){m.S(fx.30,{1w:fx.4r})},aA:C(fx){q(fx.30.E&&fx.30.E[fx.1y]!=H)fx.30.E[fx.1y]=fx.4r+fx.4C;J fx.30[fx.1y]=fx.4r}}});m.5U=C(1X,3s){k.3s=3s;k.1X=1X;A v=m.3X,43;k.9p=m.1z&&v>=5.5&&v<7;q(!1X){q(3s)3s();D}m.6R();k.2i=m.18(\'2i\',{ey:0},{1o:\'1q\',1n:\'2r\',ex:\'eq\',K:0},m.2g,L);A 4g=m.18(\'4g\',H,H,k.2i,1);k.2I=[];O(A i=0;i<=8;i++){q(i%3==0)43=m.18(\'43\',H,{N:\'28\'},4g,L);k.2I[i]=m.18(\'2I\',H,H,43,L);A E=i!=4?{ep:0,eh:0}:{1n:\'4j\'};m.S(k.2I[i],E)}k.2I[4].1b=1X+\' M-1a\';k.aI()};m.5U.58={aI:C(){A 1e=m.5m+(m.ef||"ed/")+k.1X+".aJ";A aK=m.4o?m.2g:H;k.3M=m.18(\'1S\',H,{1n:\'2r\',V:\'-4h\'},aK,L);A 3x=k;k.3M.4L=C(){3x.aG()};k.3M.1e=1e},aG:C(){A o=k.1s=k.3M.K/4,G=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],1B={N:(2*o)+\'F\',K:(2*o)+\'F\'};O(A i=0;i<=8;i++){q(G[i]){q(k.9p){A w=(i==1||i==7)?\'2W%\':k.3M.K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=(k.I-k.7S)+\'F\';q(k.1B==\'x\')B.42.E.K=\'28\';q(B.1k)B.1k.E[k.3l]=\'28\'}q(k.1B==\'x\'&&B.1u)B.4R(L);q(k.1B==\'x\'&&B.1p&&B.2M){q(i==k.1d)B.1p.57(\'1d-2H\');J B.1p.4u(\'1d-2H\')}},9a:C(i){k.G=i;k.B.Q.E[k.6w]=i+\'F\';q(k.B.1a)k.B.1a.4B()}};m.5x=C(a,2e,3t,3f){q(19.cg&&m.1z&&!m.7K){m.2l(19,\'4q\',C(){1H m.5x(a,2e,3t,3f)});D}k.a=a;k.3t=3t;k.3f=3f||\'2L\';k.2C=(3f==\'3y\');k.2M=!k.2C;m.86=1i;k.1L=[];k.1f=m.1f;m.1f=H;m.6R();A P=k.P=m.11.W;O(A i=0;i<m.88.W;i++){A 3d=m.88[i];k[3d]=2e&&1I 2e[3d]!=\'1T\'?2e[3d]:m[3d]}q(!k.1e)k.1e=a.23;A el=(2e&&2e.9H)?m.$(2e.9H):a;el=k.aH=el.2z(\'1S\')[0]||el;k.6D=el.1D||a.1D;q(!m.1x(k,\'eJ\'))D L;O(A i=0;i<m.11.W;i++){q(m.11[i]&&m.11[i].a==a&&!(k.1f&&k.3g[1]==\'4f\')){m.11[i].3I();D 1i}}q(!m.eN)O(A i=0;i<m.11.W;i++){q(m.11[i]&&m.11[i].aH!=el&&!m.11[i].7w){m.11[i].6r()}}m.11[P]=k;q(!m.9d&&!m.2u){q(m.11[P-1])m.11[P-1].2f();q(1I m.31!=\'1T\'&&m.11[m.31])m.11[m.31].2f()}k.el=el;k.1N=m.6n(el);m.6d();A x=k.x=1H m.6q(k,\'x\');x.7U();A y=k.y=1H m.6q(k,\'y\');y.7U();q(/5c/i.1c(el.3T))k.cm(el);k.Q=m.18(\'R\',{1D:\'M-Q-\'+k.P,1b:\'M-Q \'+k.9J},{1o:\'1q\',1n:\'2r\',1F:m.4p+=2},H,L);k.Q.eK=k.Q.d7=m.az;q(k.3f==\'2L\'&&k.3U==2)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\',{1e:m.7x(1G)})},8a:C(2m){A 80=k.6H(),as=m.4N.3m[k.2R||\'1r\'];q(!as[80+2m]&&k.1p&&k.1p.ce){q(2m==1)D as[0];J q(2m==-1)D as[as.W-1]}D as[80+2m]||H},6H:C(){A 2b=m.6h().3m[k.2R||\'1r\'];q(2b)O(A i=0;i<2b.W;i++){q(2b[i]==k.a)D i}D H},bh:C(){q(k[k.5t]){A 2b=m.4N.3m[k.2R||\'1r\'];q(2b){A s=m.14.3Q.26(\'%1\',k.6H()+1).26(\'%2\',2b.W);k[k.5t].2h=\'<R 1Z="M-3Q">\'+s+\'</R>\'+k[k.5t].2h}}},9i:C(){q(!k.1f){O(A i=0;i<m.5u.W;i++){A 1P=m.5u[i],3c=1P.2R;q(1I 3c==\'1T\'||3c===H||3c===k.2R)k.1p=1H m.8X(k.P,1P)}}J{k.1p=k.1f.1p}A 1P=k.1p;q(!1P)D;A P=1P.4d=k.P;1P.cd();1P.57(\'1d-2H\');q(1P.2N){A o=1P.cn||{};o.4x=1P.2N;o.21=\'2N\';k.4k(o)}q(1P.2X)1P.2X.7h(k);q(!k.1f&&k.45)1P.3G(L);q(1P.45){1P.45=49(C(){m.1G(P)},(1P.fa||fq))}},6r:C(){m.3H(k.Q);m.11[k.P]=H;q(m.2u==k.a)m.2u=H;m.8r(k.P);q(k.2s)m.2s.E.Y=\'-4h\';m.1x(k,\'cl\')},be:C(){q(k.5I)D;k.5I=m.18(\'a\',{23:m.ck,2G:m.ch,1b:\'M-5I\',2h:m.14.cv,2k:m.14.cr});k.4k({4x:k.5I,1n:k.ct||\'V Y\',21:\'5I\'})},9N:C(7W,cD){O(A i=0;i<7W.W;i++){A Z=7W[i],s=H;q(Z==\'9D\'&&!m.1x(k,\'fw\'))D;J q(Z==\'4S\'&&!m.1x(k,\'fy\'))D;q(!k[Z+\'7t\']&&k.6D)k[Z+\'7t\']=Z+\'-O-\'+k.6D;q(k[Z+\'7t\'])k[Z]=m.5W(k[Z+\'7t\']);q(!k[Z]&&!k[Z+\'7H\']&&k[Z+\'cy\'])1C{s=et(k[Z+\'cy\'])}1E(e){}q(!k[Z]&&k[Z+\'7H\']){s=k[Z+\'7H\']}q(!k[Z]&&!s){A 1G=k.a.cx;4Q(1G&&!m.6F(1G)){q((1H 4y(\'M-\'+Z)).1c(1G.1b||H)){k[Z]=1G.4Z(1);5f}1G=1G.cx}}q(!k[Z]&&!s&&k.5t==Z)s=\'\\n\';q(!k[Z]&&s)k[Z]=m.18(\'R\',{1b:\'M-\'+Z,2h:s});q(cD&&k[Z]){A o={1n:(Z==\'4S\')?\'5A\':\'7s\'};O(A x 3j k[Z+\'cC\'])o[x]=k[Z+\'cC\'][x];o.4x=k[Z];k.4k(o)}}},4W:C(1o){q(m.cF)k.6u(\'eM\',1o);q(m.cE)k.6u(\'eL\',1o);q(m.5p)k.6u(\'*\',1o)},6u:C(3T,1o){A 1l=19.2z(3T);A 1y=3T==\'*\'?\'2q\':\'1o\';O(A i=0;i<1l.W;i++){q(1y==\'1o\'||(19.7N.cf(1l[i],"").bw(\'2q\')==\'28\'||1l[i].bx(\'1q-by\')!=H)){A 2V=1l[i].bx(\'1q-by\');q(1o==\'22\'&&2V){2V=2V.26(\'[\'+k.P+\']\',\'\');1l[i].5D(\'1q-by\',2V);q(!2V)1l[i].E[1y]=1l[i].84}J q(1o==\'1q\'){A 3R=m.6n(1l[i]);3R.w=1l[i].1M;3R.h=1l[i].1Q;q(!k.4m){A ba=(3R.x+3R.w<k.x.U(\'60\')||3R.x>k.x.U(\'60\')+k.x.U(\'82\'));A bu=(3R.y+3R.h<k.y.U(\'60\')||3R.y>k.y.U(\'60\')+k.y.U(\'82\'))}A 6t=m.87(1l[i]);q(!ba&&!bu&&6t!=k.P){q(!2V){1l[i].5D(\'1q-by\',\'[\'+k.P+\']\');1l[i].84=1l[i].E[1y];1l[i].E[1y]=\'1q\'}J q(2V.bs(\'[\'+k.P+\']\')==-1){1l[i].5D(\'1q-by\',2V+\'[\'+k.P+\']\')}}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K:k.x.t,N:k.y.t}},m.9o)}1E(e){k.5R()}},bA:C(){q(m.5p){q(!m.6c)m.6c=m.18(\'R\',H,{1n:\'2r\'},m.2g);m.S(m.6c,{K:k.x.I+\'F\',N:k.y.I+\'F\',Y:k.x.G+\'F\',V:k.y.G+\'F\',1m:\'3w\'})}q(k.2J==\'3D\')1C{m.$(k.1k.1D).eR()}1E(e){}q(k.3O==\'5z\'&&!k.4E)k.bF();q(k.2t&&k.2t!=k.59)k.2t.E.2q=\'1q\'},bF:C(){q(m.1z&&k.1h)1C{k.1h.67.19.1k.2h=\'\'}1E(e){}q(k.2J==\'3D\')9g.en(k.1k.1D);k.1k.2h=\'\'},bm:C(){q(k.1a)k.1a.2i.E.1m=\'1r\';k.3S=H;k.Q.E.1m=\'1r\';m.2o(m.4K,k)},bG:C(){1C{m.11[k.P]=k;q(!m.9d&&m.31!=k.P){1C{m.11[m.31].2f()}1E(e){}}A z=m.4p++,3C={1m:\'\',1F:z};m.S(k.Q,3C);k.5X=1i;A o=k.1a||0;q(o){q(!k.3U)3C.1o=\'1q\';m.S(o.2i,3C)}q(k.1p){k.9i()}k.9j()}1E(e){}},4k:C(o){A el=o.4x,52=(o.bD==\'36\'&&!/7u$/.1c(o.1n));q(1I el==\'9n\')el=m.5W(el);q(o.3y)el=m.18(\'R\',{2h:o.3y});q(!el||1I el==\'9n\')D;q(!m.1x(k,\'ee\',{16:el}))D;el.E.1m=\'3w\';o.21=o.21||o.4x;q(k.3g[1]==\'4f\'&&k.bE(o,el))D;k.9K();A K=o.K&&/^[0-9]+(F|%)$/.1c(o.K)?o.K:\'28\';q(/^(Y|3i)7u$/.1c(o.1n)&&!/^[0-9]+F$/.1c(o.K))K=\'ew\';A 16=m.18(\'R\',{1D:\'21\'+m.6p++,21:o.21},{1n:\'2r\',1o:\'1q\',K:K,9l:m.14.9B||\'\',1w:0},52?m.36:k.1u,L);q(52)16.6o=k.P;16.1V(el);m.3E(16,{1w:1,bB:0,bC:0,2B:(o.6i===0||o.6i===1i||(o.6i==2&&m.1z))?0:63});m.3E(16,o);q(k.bb){k.5T(16);q(!16.7q||k.8E)m.24(16,{1w:16.1w},16.2B)}m.2o(k.1L,m.6p-1)},5T:C(16){A p=16.1n||\'9T 4A\',52=(16.bD==\'36\'),6l=16.bB,6C=16.bC;q(52){m.36.E.1m=\'3w\';16.6o=k.P;q(16.1M>16.29.1M)16.E.K=\'2W%\'}J q(16.29!=k.1u)k.1u.1V(16);q(/Y$/.1c(p))16.E.Y=6l+\'F\';q(/4A$/.1c(p))m.S(16,{Y:\'50%\',4Y:(6l-1j.5g(16.1M/2))+\'F\'});q(/3i$/.1c(p))16.E.3i=-6l+\'F\';q(/^br$/.1c(p)){m.S(16,{3i:\'2W%\',9O:k.x.cb+\'F\',V:-k.y.cb+\'F\',4i:-k.y.cb+\'F\',2q:\'28\'});k.x.1g=16.1M}J q(/^bq$/.1c(p)){m.S(16,{Y:\'2W%\',4Y:k.x.cb+\'F\',V:-k.y.cb+\'F\',4i:-k.y.cb+\'F\',2q:\'28\'});k.x.3o=16.1M}A 9U=16.29.1Q;16.E.N=\'28\';q(52&&16.1Q>9U)16.E.N=m.5b?9U+\'F\':\'2W%\';q(/^V/.1c(p))16.E.V=6C+\'F\';q(/^9T/.1c(p))m.S(16,{V:\'50%\',6b:(6C-1j.5g(16.1Q/2))+\'F\'});q(/^4i/.1c(p))16.E.4i=-6C+\'F\';q(/^5A$/.1c(p)){m.S(16,{Y:(-k.x.1g-k.x.cb)+\'F\',3i:(-k.x.3o-k.x.cb)+\'F\',4i:\'2W%\',6v:k.y.cb+\'F\',K:\'28\'});k.y.1g=16.1Q}J q(/^7s$/.1c(p)){m.S(16,{1n:\'4j\',Y:(-k.x.1g-k.x.cb)+\'F\',3i:(-k.x.3o-k.x.cb)+\'F\',V:\'2W%\',6b:k.y.cb+\'F\',K:\'28\'});k.y.3o=16.1Q;16.E.1n=\'2r\'}},bg:C(){k.9N([\'4S\',\'9D\'],L);k.bh();q(k.9D)m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m.24(o,{1w:o.1w},o.2B)}}},8D:C(){q(!k.1L.W)D;O(A i=0;i<k.1L.W;i++){A o=m.$(\'21\'+k.1L[i]);q(o.29==m.36)m.3H(o)}q(k.1p){A c=k.1p.2N;q(c&&m.2Y(c)==k)c.29.8C(c)}q(k.2C&&k.4E){k.1u.E.V=\'-4h\';m.2g.1V(k.1u)}J m.3H(k.1u)},bj:C(){q(k.1p&&k.1p.2N){k.1p.4u(\'1d-2H\');D}k.7y=m.18(\'a\',{23:\'bo:m.11[\'+k.P+\'].6L();\',2k:m.14.8J,1b:\'M-1d-2H\'});q(!m.1x(k,\'fG\'))D;k.4k({4x:k.7y,1n:m.bp,7q:L,1w:m.bn})},6L:C(){1C{q(!m.1x(k,\'fp\'))D;q(k.7y)m.3H(k.7y);k.3I();A 3b=k.x.I;k.8o(k.x.1d,k.y.1d);A 7o=k.x.G-(k.x.I-3b)/2;q(7o<m.4Y)7o=m.4Y;k.8t(7o,k.y.G);k.4W(\'1q\');m.4T(k)}1E(e){k.8s(e)}},5R:C(){k.a.1b=k.a.1b.26(\'M-4z-4c\',\'\');k.4W(\'22\');q(k.2C&&k.4E&&k.3g[1]!=\'4f\'){k.bm()}J{q(k.1a&&k.3U)k.1a.6a();m.3H(k.Q)}q(m.6c)m.6c.E.1m=\'1r\';q(!m.36.74.W)m.36.E.1m=\'1r\';q(k.4m)m.8r(k.P);m.1x(k,\'f9\');m.11[k.P]=H;m.bk()}};m.7p=C(a,T,6W){k.a=a;k.T=T;k.6W=6W};m.7p.58={8q:C(){q(!k.1e)k.1e=m.7x(k.a);q(k.1e.2y(\'#\')){A 2b=k.1e.8u(\'#\');k.1e=2b[0];k.1D=2b[1]}q(m.6Q[k.1e]){k.c2=m.6Q[k.1e];q(k.1D)k.97();J k.66();D}1C{k.3r=1H c4()}1E(e){1C{k.3r=1H bl("fb.bI")}1E(e){1C{k.3r=1H bl("bH.bI")}1E(e){k.8z()}}}A 3x=k;k.3r.f2=C(){q(3x.3r.cg==4){q(3x.1D)3x.97();J 3x.66()}};A 1e=k.1e;q(m.fm)1e=1e.26(/$/,(/\\?/.1c(1e)?\'&\':\'?\')+\'fn=\'+(1H 7z()).7C());k.3r.c6(\'ec\',1e,L);k.3r.c5(\'X-fh-eu\',\'c4\');k.3r.c5(\'cQ-cN\',\'cW/x-dh-95-d0\');k.3r.d9(H)},97:C(){m.6R();A 3W=1U.3F||m.c3?{1e:\'di:dj\'}:H;k.1h=m.18(\'1h\',3W,{1n:\'2r\',V:\'-4h\'},m.2g);k.66()},66:C(){A s=k.c2||k.3r.df;q(k.6W)m.6Q[k.1e]=s;q(!m.1z||m.3X>=5.5){s=s.26(/\\s/g,\' \').26(1H 4y(\'<cM[^>]*>\',\'c1\'),\'\').26(1H 4y(\'<c0[^>]*>.*?</c0>\',\'c1\'),\'\');q(k.1h){A 2A=k.1h.8Q;q(!2A&&k.1h.67)2A=k.1h.67.19;q(!2A){A 3x=k;49(C(){3x.66()},25);D}2A.c6();2A.cV(s);2A.2f();1C{s=2A.8S(k.1D).2h}1E(e){1C{s=k.1h.19.8S(k.1D).2h}1E(e){}}m.3H(k.1h)}J{s=s.26(1H 4y(\'^.*?<1k[^>]*>(.*?)</1k>.*?$\',\'i\'),\'$1\')}}m.4G(k.T,\'6J\',\'M-1k\').2h=s;k.3s();O(A x 3j k)k[x]=H}};m.8X=C(4d,1v){q(m.cI!==1i)m.8T();k.4d=4d;O(A x 3j 1v)k[x]=1v[x];q(k.cH)k.c7();q(k.2X)k.2X=m.c9(k)};m.8X.58={c7:C(){k.2N=m.18(\'R\',{2h:m.8V(m.8U.2N)},H,m.2g);A 5Y=[\'3G\',\'3h\',\'35\',\'1G\',\'3B\',\'1d-2H\',\'2f\'];k.1O={};A 3x=k;O(A i=0;i<5Y.W;i++){k.1O[5Y[i]]=m.4G(k.2N,\'1J\',\'M-\'+5Y[i]);k.4u(5Y[i])}k.1O.3h.E.1m=\'1r\'},cd:C(){q(k.ce||!k.2N)D;A B=m.11[k.4d],56=B.6H(),2n=/6K$/;q(56==0)k.57(\'35\');J q(2n.1c(k.1O.35.2z(\'a\')[0].1b))k.4u(\'35\');q(56+1==m.4N.3m[B.2R||\'1r\'].W){k.57(\'1G\');k.57(\'3G\')}J q(2n.1c(k.1O.1G.2z(\'a\')[0].1b)){k.4u(\'1G\');k.4u(\'3G\')}},4u:C(1O){q(!k.1O)D;A cc=k,a=k.1O[1O].2z(\'a\')[0],2n=/6K$/;a.2p=C(){cc[1O]();D 1i};q(2n.1c(a.1b))a.1b=a.1b.26(2n,\'\')},57:C(1O){q(!k.1O)D;A a=k.1O[1O].2z(\'a\')[0];a.2p=C(){D 1i};q(!/6K$/.1c(a.1b))a.1b+=\' 6K\'},ca:C(){q(k.45)k.3h();J k.3G()},3G:C(c8){q(k.1O){k.1O.3G.E.1m=\'1r\';k.1O.3h.E.1m=\'\'}k.45=L;q(!c8)m.1G(k.4d)},3h:C(){q(k.1O){k.1O.3h.E.1m=\'1r\';k.1O.3G.E.1m=\'\'}dW(k.45);k.45=H},35:C(){k.3h();m.35(k.1O.35)},1G:C(){k.3h();m.1G(k.1O.1G)},3B:C(){},\'1d-2H\':C(){m.2Y().6L()},2f:C(){m.2f(k.1O.2f)}};m.c9=C(1p){C 7h(B){m.3E(1v||{},{4x:4J,21:\'2X\'});q(m.5b)1v.6i=0;B.4k(1v);m.S(4J.29,{2q:\'1q\'})};C 2d(3N){4X(1T,1j.5g(3N*4J[3K?\'1M\':\'1Q\']*0.7))};C 4X(i,9C){q(i===1T)O(A j=0;j<5J.W;j++){q(5J[j]==m.11[1p.4d].a){i=j;5f}}q(i===1T)D;A as=4J.2z(\'a\'),4z=as[i],48=4z.29,Y=3K?\'bZ\':\'bY\',3i=3K?\'bO\':\'bP\',K=3K?\'bN\':\'bM\',4I=\'1s\'+Y,1M=\'1s\'+K,7e=R.29.29[1M],7c=7e-2i[1M],5y=2v(2i.E[3K?\'Y\':\'V\'])||0,2U=5y,dZ=20;q(9C!==1T){2U=5y-9C;q(2U>0)2U=0;q(2U<7c)2U=7c}J{O(A j=0;j<as.W;j++)as[j].1b=\'\';4z.1b=\'M-4z-4c\';A 9e=i>0?as[i-1].29[4I]:48[4I],9m=48[4I]+48[1M]+(as[i+1]?as[i+1].29[1M]:0);q(9m>7e-5y)2U=7e-9m;J q(9e<-5y)2U=-9e}A 9f=48[4I]+(48[1M]-7g[1M])/2+2U;m.24(2i,3K?{Y:2U}:{V:2U},H,\'9h\');m.24(7g,3K?{Y:9f}:{V:9f},H,\'9h\');8A.E.1m=2U<0?\'3w\':\'1r\';8v.E.1m=(2U>7c)?\'3w\':\'1r\'};A 5J=m.4N.3m[m.11[1p.4d].2R||\'1r\'],1v=1p.2X,5N=1v.5N||\'bJ\',9L=(5N==\'e9\'),44=9L?[\'R\',\'5s\',\'1J\',\'1A\']:[\'2i\',\'4g\',\'43\',\'2I\'],3K=(5N==\'bJ\'),4J=m.18(\'R\',{1b:\'M-2X M-2X-\'+5N,2h:\'<R 1Z="M-2X-e6">\'+\'<\'+44[0]+\'><\'+44[1]+\'></\'+44[1]+\'></\'+44[0]+\'></R>\'+\'<R 1Z="M-2d-1K"><R></R></R>\'+\'<R 1Z="M-2d-e5"><R></R></R>\'+\'<R 1Z="M-7g"><R></R></R>\'},{1m:\'1r\'},m.2g),5P=4J.74,R=5P[0],8A=5P[1],8v=5P[2],7g=5P[3],2i=R.e3,4g=4J.2z(44[1])[0],43;O(A i=0;i<5J.W;i++){q(i==0||!3K)43=m.18(44[2],H,H,4g);(C(){A a=5J[i],48=m.18(44[3],H,H,43),e4=i;m.18(\'a\',{23:a.23,2p:C(){m.2Y(k).3I();D m.9v(a)},2h:m.bK?m.bK(a):a.2h},H,48)})()}q(!9L){8A.2p=C(){2d(-1)};8v.2p=C(){2d(1)};m.2l(4g,19.dw!==1T?\'dH\':\'dI\',C(e){A 3N=0;e=e||1U.2E;q(e.bL){3N=e.bL/dE;q(m.3F)3N=-3N}J q(e.bQ){3N=-e.bQ/3}q(3N)2d(-3N*0.2);q(e.5h)e.5h();e.bR=1i})}D{7h:7h,4X:4X}};q(m.1z){(C(){1C{19.5n.dB(\'Y\')}1E(e){49(bW.dD,50);D}m.4q()})()}m.2l(19,\'dA\',m.4q);m.2l(1U,\'7v\',m.4q);m.7b=m.14;A dv=m.5x;m.2l(1U,\'7v\',C(){q(m.8B){A 9F=\'.M 1S\',9A=\'4M: 7a(\'+m.5m+m.8B+\'), 73 !e2;\';A E=m.18(\'E\',{Z:\'ea/8L\'},H,19.2z(\'e0\')[0]);q(!m.1z){E.1V(19.d5(9F+" {"+9A+"}"))}J{A 1f=19.bX[19.bX.W-1];q(1I(1f.bV)=="72")1f.bV(9F,9A)}}});m.2l(1U,\'3L\',C(){m.6d();q(m.36)O(A i=0;i<m.36.74.W;i++){A 1R=m.36.74[i],B=m.2Y(1R);B.5T(1R);q(1R.21==\'2X\')B.1p.2X.4X()}});m.2l(19,\'76\',C(e){m.79={x:e.77,y:e.7n}});m.2l(19,\'8G\',m.9x);m.2l(19,\'bU\',m.9x);m.2l(19,\'4q\',m.bS);m.2l(1U,\'7v\',m.bT);m.2l(1U,\'7v\',m.bv);',62,977,'||||||||||||||||||||this||hs||||if||||||||||var|exp|function|return|style|px|pos|null|size|else|width|true|highslide|height|for|key|wrapper|div|setStyles|content|get|top|length||left|type||expanders|||lang||overlay||createElement|document|outline|className|test|full|src|last|p1|iframe|false|Math|body|els|display|position|visibility|slideshow|hidden|none|offset|innerContent|overlayBox|options|opacity|fireEvent|prop|ie|span|dim|try|id|catch|zIndex|next|new|typeof|li|up|overlays|offsetWidth|tpos|btn|ss|offsetHeight|node|img|undefined|window|appendChild|wsize|outlineType|imgSize|class||hsId|visible|href|animate||replace||auto|parentNode|to|arr|case|scroll|params|close|container|innerHTML|table|imgPad|title|addEventListener|op|re|push|onclick|overflow|absolute|loading|scrollerDiv|upcoming|parseInt|lastX|lastY|match|getElementsByTagName|doc|dur|isHtml|dragArgs|event|dimmer|target|expand|td|objectType|args|image|isImage|controls|justify|tgt|max|slideshowGroup|easing|ratio|tblPos|hiddenBy|100|thumbstrip|getExpander|minSize|elem|focusKey||||previous|viewport||||ajax|xSize|sg|name|val|contentType|transitions|pause|right|in|tb|wh|groups|marginMin|p2|ucwh|min|xmlHttp|onLoad|custom|opt|clearing|block|pThis|html|hasDragged|useBox|move|stl|swf|extend|opera|play|discardElement|focus|step|isX|resize|graphic|delta|objectLoadTime|func|number|elPos|releaseMask|tagName|outlineWhileAnimating|page|attribs|uaVersion|objectWidth|end||duration|mediumContent|tr|tree|autoplay|styles|timers|cell|setTimeout|ySize|getParam|anchor|expKey|iebody|crossfade|tbody|9999px|bottom|relative|createOverlay|clientSize|dimmingOpacity|marginMax|safari|zIndexCounter|ready|now|blurExp|clone|enable|tgtArr|fadeBox|overlayId|RegExp|active|center|setPosition|unit|start|preserveContent|pendingOutlines|getElementByClass|minWidth|offsetLeft|dom|sleeping|onload|cursor|anchors|htmls|images|while|sizeOverlayBox|heading|setDimmerSize|wDiff|adj|doShowHide|selectThumb|marginLeft|cloneNode||cNode|relToVP|styleRestoreCursor|self|hDiff|cur|disable|prototype|scrollingContent|fitsize|ieLt7|area|navigator|objectHeight|break|round|preventDefault|cacheBindings|removeEventListener|ruler|allowReduce|graphicsDir|documentElement|moveOnly|geckoMac|contentLoaded|before|ul|numberPosition|slideshows|allowSizeReduction|isExpanded|Expander|curTblPos|after|above|maxX|minX|setAttribute|fac|trans|padToMinWidth|all|credits|group|minY|currentStyle|parent|mode|maxY|domCh|showLoading|afterClose|cache|positionOverlay|Outline|over|getNode|isClosing|buttons|uclt|opos|param|owner|250|obj|getParams|loadHTML|contentWindow|matches|restoreCursor|destroy|marginTop|mask|getPageSize|preloadTheseImages|toLowerCase|filter|getAnchors|fade|on|minHeight|offX|gotoEnd|getPosition|hsKey|idCounter|Dimension|cancelLoading|os|wrapperKey|showHideElements|marginBottom|lt|keyHandler|curAnim|setSize|background|maincontent|offY|thumbsUserSetId|tId|isHsAnchor|complete|getAnchorIndex|rel|DIV|disabled|doFullExpand|userAgent|innerHeight|imgs|topmostKey|cachedGets|init|afterExpand|writeExtendedContent|pageHeight|pageWidth|pre|oDiv|innerWidth|dragHandler||allowWidthReduction|object|pointer|childNodes||mousemove|clientX|kdeBugCorr|mouse|url|langDefaults|minTblPos|dir|overlayWidth|expandDuration|marker|add|changed|previousOrNext|preloadTheseAjax|element|preloadFullImage|clientY|xpos|Ajax|hideOnMouseOut|onReady|below|Id|panel|load|onLoadStarted|getSrc|fullExpandLabel|Date|scrollTop|scrollLeft|getTime|expOnly|calcBorders|maxsize|mX|Text|calcExpanded|blur|isReady|offsetTop|fitOverlayBox|defaultView|setObjContainerSize|location|restoreTitle|correctIframeSize|sizeDiff|allowHeightReduction|calcThumb|getCacheBinding|types|getIframePageHeight|hasMovedMin|padding|current|oldImg|osize|htmlGetSize|origProp|getSelfRendered|continuePreloading|getWrapperKey|overrides|swfOptions|getAdjacentAnchor|loadingPos|border|mY|contentId|oPos|newImg|Create|endOff|names|loadingPosXfade|connectOutline|startOff|other|resizeTo|numberOfImagesToPreload|run|undim|error|moveTo|split|scrollDown|distance|srcElement|relatedTarget|onError|scrollUp|expandCursor|removeChild|destroyOverlays|mouseIsOver|openerTagNames|mousedown|garbageBin|clientHeight|fullExpandTitle|clientWidth|css|previousTitle|previousText|preloadAjaxElement|topZ|contentDocument|closeText|getElementById|updateAnchors|skin|replaceLang|cacheAjax|Slideshow|clones|closeTitle|evt|nextText|hasFocused|nextTitle|moveTitle|form|dimmingDuration|getElementContent|moveText||setPos|doWrapper|htmlExpand|allowMultipleInstances|activeLeft|markerPos|swfobject|easeOutQuad|initSlideshow|show|ie6|direction|activeRight|string|restoreDuration|hasAlphaImageLoader|align|parseFloat|abs|margin|ucrb|transit|changeSize|mouseClickHandler|keydown|keypress|dec|cssDirection|scrollBy|caption|arrow|sel|dragByHeading|thumbnailId|compatMode|wrapperClassName|genOverlayBox|floatMode|done|getInline|marginRight|update|startTime|state|Click|middle|parOff|headingOverlay|targetY|newHeight|targetX|rv|both|clear|captionOverlay|playText|KDE|vendor|Next|JS|Previous|Play|Pause|spacebar|Move|and|pauseText|htmlSizeOperations|fullExpandText|pauseTitle|tag|Highslide|200|playTitle|resizeTitle|flashvars|from|timerId|maxWidth|call||orig|easeInQuad|loadingTitle|loadingText|fixedControls|loadingOpacity|wrapperMouseHandler|_default|hide|switch|rb|toUpperCase|vis|onGraphicLoad|thumb|preloadGraphic|png|appendTo|ltr|Close|hasExtendedContent|yScroll|offsetParent|contentWrapper|xScroll|scrollHeight|alpha|scrollMaxX|scrollMaxY|scrollWidth|hsHasSetClick|isUnobtrusiveAnchor|clickY|pow|wmode|detachEvent|clickX|hasHtmlExpanders|attributes|dimmingGeckoFix|enableKeyListener|focusTopmost|nopad|clearsX|gotOverlays|doPanels|BackCompat|writeCredits|showCredits|getOverlays|getNumber|showOverlays|createFullExpand|reOrder|ActiveXObject|sleep|fullExpandOpacity|javascript|fullExpandPosition|rightpanel|leftpanel|indexOf|focusTitle|clearsY|preloadAjax|getPropertyValue|getAttribute||hand|htmlPrepareClose|offsetX|offsetY|relativeTo|reuseOverlay|destroyObject|awake|Microsoft|XMLHTTP|horizontal|stripItemFormatter|wheelDelta|Height|Width|Right|Bottom|detail|returnValue|setClickEvents|preloadImages|mouseup|addRule|arguments|styleSheets|Top|Left|script|gi|cachedGet|ie6SSL|XMLHttpRequest|setRequestHeader|open|getControls|wait|Thumbstrip|hitSpace||sls|checkFirstAndLast|repeat|getComputedStyle|readyState|creditsTarget|prepareNextOutline|easingClose|creditsHref|onHideLoading|getImageMapAreaCorrection|overlayOptions|preloadNext|fadeInOut|transitionDuration|creditsTitle|wrapStep|creditsPosition|525|creditsText|Safari|nextSibling|Eval|toString|correctRatio|tmpMin|Overlay|addOverlay|hideIframes|hideSelects|htmlE|useControls|dynamicallyUpdateAnchors|embedSWF|onAfterExpand|dimming|link|Type|outlineStartOffset|transparent|Content|allowtransparency|button|http|xpand|write|application|frameborder|addSlideshow|zoomout|urlencoded|keyCode|onKeyDown|zoomin|Use|createTextNode|graphics|onmouseout|shape|send|version|1001|geckodimmer|registerOverlay|onDimmerClick|responseText|flash|www|about|blank|keys|com|maincontentId|maincontentText|headingEval|headingText|headingId|maincontentEval|maxHeight|ra|it|HsExpander|onmousewheel|captionEval|captionText|floor|DOMContentLoaded|doScroll|circle|callee|120|footer|captionId|mousewheel|DOMMouseScroll|300|Macintosh|Gecko|_self|pageYOffset|pageXOffset|onBeforeExpand|reflow|useMap|onImageClick|boolean|onSetClickEvent|reuse|clearTimeout|||mgnRight|HEAD|removeAttribute|important|firstChild|pI|down|inner|drop|shadow|float|text|expressInstallSwfurl|GET|outlines|onCreateOverlay|outlinesDir|insertBefore|fontSize|homepage|oncontextmenu|DXImageTransform||progid|removeSWF|coords|lineHeight|collapse|htmlCreate|onBeforeGetContent|eval|With|flushImgSize|200px|borderCollapse|cellSpacing|esc|Resize|AlphaImageLoader|sizingMethod|onBlur|Loading|cancel|bring|front|onShowLoading|onInit|onmouseover|IFRAME|SELECT|allowSimultaneousLoading|onFocus|Expand|imageCreate|StopPlay|blockRightClick|scale|default|onBeforeClose|actual|Powered|Go|the|onAfterGetCaption|onAfterGetContent|onreadystatechange|onMouseOver|toElement|fromElement|mouseover|onMouseOut|attachEvent|onAfterClose|interval|Msxml2|newWidth|onDrag|click|01|white|Requested|onDrop|drag|header|dragSensitivity|forceAjaxReload|dummy|sqrt|onDoFullExpand|500|protocol|static|Image|onActivate|nodeName|onBeforeGetCaption||onBeforeGetHeading|splice|useOnHtml|setInterval|of|fit|https|onAfterGetHeading|onCreateFullExpand|paddingTop|1px|clearInterval|linearTween'.split('|'),0,{}))


/*** easing_equations.js ***/

/*
  Easing Equations v1.5
  May 1, 2003
  (c) 2003 Robert Penner, all rights reserved. 
  This work is subject to the terms in http://www.robertpenner.com/easing_terms_of_use.html.  
  
  These tweening functions provide different flavors of 
  math-based motion under a consistent API. 
  
  Types of easing:
  
	  Linear
	  Quadratic
	  Cubic
	  Quartic
	  Quintic
	  Sinusoidal
	  Exponential
	  Circular
	  Elastic
	  Back
	  Bounce

  Changes:
  1.5 - added bounce easing
  1.4 - added elastic and back easing
  1.3 - tweaked the exponential easing functions to make endpoints exact
  1.2 - inline optimizations (changing t and multiplying in one step)--thanks to Tatsuo Kato for the idea
  
  Discussed in Chapter 7 of 
  Robert Penner's Programming Macromedia Flash MX
  (including graphs of the easing equations)
  
  http://www.robertpenner.com/profmx
  http://www.amazon.com/exec/obidos/ASIN/0072223561/robertpennerc-20
*/


// simple linear tweening - no easing
// t: current time, b: beginning value, c: change in value, d: duration
Math.linearTween = function (t, b, c, d) {
	return c*t/d + b;
};


 ///////////// QUADRATIC EASING: t^2 ///////////////////

// quadratic easing in - accelerating from zero velocity
// t: current time, b: beginning value, c: change in value, d: duration
// t and d can be in frames or seconds/milliseconds
Math.easeInQuad = function (t, b, c, d) {
	return c*(t/=d)*t + b;
};

// quadratic easing out - decelerating to zero velocity
Math.easeOutQuad = function (t, b, c, d) {
	return -c *(t/=d)*(t-2) + b;
};

// quadratic easing in/out - acceleration until halfway, then deceleration
Math.easeInOutQuad = function (t, b, c, d) {
	if ((t/=d/2) < 1) return c/2*t*t + b;
	return -c/2 * ((--t)*(t-2) - 1) + b;
};


 ///////////// CUBIC EASING: t^3 ///////////////////////

// cubic easing in - accelerating from zero velocity
// t: current time, b: beginning value, c: change in value, d: duration
// t and d can be frames or seconds/milliseconds
Math.easeInCubic = function (t, b, c, d) {
	return c*(t/=d)*t*t + b;
};

// cubic easing out - decelerating to zero velocity
Math.easeOutCubic = function (t, b, c, d) {
	return c*((t=t/d-1)*t*t + 1) + b;
};

// cubic easing in/out - acceleration until halfway, then deceleration
Math.easeInOutCubic = function (t, b, c, d) {
	if ((t/=d/2) < 1) return c/2*t*t*t + b;
	return c/2*((t-=2)*t*t + 2) + b;
};


 ///////////// QUARTIC EASING: t^4 /////////////////////

// quartic easing in - accelerating from zero velocity
// t: current time, b: beginning value, c: change in value, d: duration
// t and d can be frames or seconds/milliseconds
Math.easeInQuart = function (t, b, c, d) {
	return c*(t/=d)*t*t*t + b;
};

// quartic easing out - decelerating to zero velocity
Math.easeOutQuart = function (t, b, c, d) {
	return -c * ((t=t/d-1)*t*t*t - 1) + b;
};

// quartic easing in/out - acceleration until halfway, then deceleration
Math.easeInOutQuart = function (t, b, c, d) {
	if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
	return -c/2 * ((t-=2)*t*t*t - 2) + b;
};


 ///////////// QUINTIC EASING: t^5  ////////////////////

// quintic easing in - accelerating from zero velocity
// t: current time, b: beginning value, c: change in value, d: duration
// t and d can be frames or seconds/milliseconds
Math.easeInQuint = function (t, b, c, d) {
	return c*(t/=d)*t*t*t*t + b;
};

// quintic easing out - decelerating to zero velocity
Math.easeOutQuint = function (t, b, c, d) {
	return c*((t=t/d-1)*t*t*t*t + 1) + b;
};

// quintic easing in/out - acceleration until halfway, then deceleration
Math.easeInOutQuint = function (t, b, c, d) {
	if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
	return c/2*((t-=2)*t*t*t*t + 2) + b;
};



 ///////////// SINUSOIDAL EASING: sin(t) ///////////////

// sinusoidal easing in - accelerating from zero velocity
// t: current time, b: beginning value, c: change in position, d: duration
Math.easeInSine = function (t, b, c, d) {
	return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
};

// sinusoidal easing out - decelerating to zero velocity
Math.easeOutSine = function (t, b, c, d) {
	return c * Math.sin(t/d * (Math.PI/2)) + b;
};

// sinusoidal easing in/out - accelerating until halfway, then decelerating
Math.easeInOutSine = function (t, b, c, d) {
	return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
};


 ///////////// EXPONENTIAL EASING: 2^t /////////////////

// exponential easing in - accelerating from zero velocity
// t: current time, b: beginning value, c: change in position, d: duration
Math.easeInExpo = function (t, b, c, d) {
	return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
};

// exponential easing out - decelerating to zero velocity
Math.easeOutExpo = function (t, b, c, d) {
	return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
};

// exponential easing in/out - accelerating until halfway, then decelerating
Math.easeInOutExpo = function (t, b, c, d) {
	if (t==0) return b;
	if (t==d) return b+c;
	if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
	return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
};


 /////////// CIRCULAR EASING: sqrt(1-t^2) //////////////

// circular easing in - accelerating from zero velocity
// t: current time, b: beginning value, c: change in position, d: duration
Math.easeInCirc = function (t, b, c, d) {
	return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
};

// circular easing out - decelerating to zero velocity
Math.easeOutCirc = function (t, b, c, d) {
	return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
};

// circular easing in/out - acceleration until halfway, then deceleration
Math.easeInOutCirc = function (t, b, c, d) {
	if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
	return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
};


 /////////// ELASTIC EASING: exponentially decaying sine wave  //////////////

// t: current time, b: beginning value, c: change in value, d: duration, a: amplitude (optional), p: period (optional)
// t and d can be in frames or seconds/milliseconds

Math.easeInElastic = function (t, b, c, d, a, p) {
	if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
	if (a < Math.abs(c)) { a=c; var s=p/4; }
	else var s = p/(2*Math.PI) * Math.asin (c/a);
	return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
};

Math.easeOutElastic = function (t, b, c, d, a, p) {
	if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
	if (a < Math.abs(c)) { a=c; var s=p/4; }
	else var s = p/(2*Math.PI) * Math.asin (c/a);
	return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
};

Math.easeInOutElastic = function (t, b, c, d, a, p) {
	if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
	if (a < Math.abs(c)) { a=c; var s=p/4; }
	else var s = p/(2*Math.PI) * Math.asin (c/a);
	if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
	return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
};


 /////////// BACK EASING: overshooting cubic easing: (s+1)*t^3 - s*t^2  //////////////

// back easing in - backtracking slightly, then reversing direction and moving to target
// t: current time, b: beginning value, c: change in value, d: duration, s: overshoot amount (optional)
// t and d can be in frames or seconds/milliseconds
// s controls the amount of overshoot: higher s means greater overshoot
// s has a default value of 1.70158, which produces an overshoot of 10 percent
// s==0 produces cubic easing with no overshoot
Math.easeInBack = function (t, b, c, d, s) {
	if (s == undefined) s = 1.70158;
	return c*(t/=d)*t*((s+1)*t - s) + b;
};

// back easing out - moving towards target, overshooting it slightly, then reversing and coming back to target
Math.easeOutBack = function (t, b, c, d, s) {
	if (s == undefined) s = 1.70158;
	return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
};

// back easing in/out - backtracking slightly, then reversing direction and moving to target,
// then overshooting target, reversing, and finally coming back to target
Math.easeInOutBack = function (t, b, c, d, s) {
	if (s == undefined) s = 1.70158; 
	if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
	return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
};


 /////////// BOUNCE EASING: exponentially decaying parabolic bounce  //////////////

// bounce easing in
// t: current time, b: beginning value, c: change in position, d: duration
Math.easeInBounce = function (t, b, c, d) {
	return c - Math.easeOutBounce (d-t, 0, c, d) + b;
};

// bounce easing out
Math.easeOutBounce = function (t, b, c, d) {
	if ((t/=d) < (1/2.75)) {
		return c*(7.5625*t*t) + b;
	} else if (t < (2/2.75)) {
		return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
	} else if (t < (2.5/2.75)) {
		return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
	} else {
		return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
	}
};

// bounce easing in/out
Math.easeInOutBounce = function (t, b, c, d) {
	if (t < d/2) return Math.easeInBounce (t*2, 0, c, d) * .5 + b;
	return Math.easeOutBounce (t*2-d, 0, c, d) * .5 + c*.5 + b;
};


//trace (">> Penner easing equations loaded");








/*** swfobject.js ***/

/* SWFObject v2.1 <http://code.google.com/p/swfobject/>
	Copyright (c) 2007-2008 Geoff Stearns, Michael Williams, and Bobby van der Sluis
	This software is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return }f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return }if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return }}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return }var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return }var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return }AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();

/*** en.js ***/

ï»¿/*
 * language: English
*/
hs.lang = {
   cssDirection:     'ltr',
   loadingText :     'Loading...',
   loadingTitle :    'Click to cancel',
   focusTitle :      'Click to bring to front',
   fullExpandTitle : 'Expand to actual size (f)',
   fullExpandText :  'Full size',
   creditsText :     'Powered by <i>Highslide JS</i>',
   creditsTitle :    'Go to the Highslide JS homepage',
   previousText :    'Previous',
   previousTitle :   'Previous (arrow left)',
   nextText :        'Next',
   nextTitle :       'Next (arrow right)',
   moveTitle :       'Move',
   moveText :        'Move',
   closeText :       'Close',
   closeTitle :      'Close (esc)',
   resizeTitle :     'Resize',
   playText :        'Play',
   playTitle :       'Play slideshow (spacebar)',
   pauseText :       'Pause',
   pauseTitle :      'Pause slideshow (spacebar)',
   number :          'Image %1 of %2',
   restoreTitle :    'Click to close image, click and drag to move. Use arrow keys for next and previous.'
};

/*** highslide-sitesettings.js ***/

/*
*  Highslide site settings
*  DO NOT EDIT. Generated on 2010-03-09 20:06:05 (GMT) by the Highslide Configuration Component 2.0.8
*/

hs.showCredits = true;
hs.creditsPosition = 'top left';
hs.graphicsDir = 'plugins/content/highslide/graphics/';
hs.outlineType = 'picture-frame1';
hs.outlineStartOffset = 3;
hs.outlineWhileAnimating = true;
hs.lang.loadingText = 'Å‚adowanie';
hs.loadingOpacity = 0.75;
hs.dimmingOpacity = 0;
hs.padToMinWidth = false;
hs.padToMinWidth = false;
hs.lang.closeTitle = 'zamknij';
hs.lang.nextText = 'pokaÅ¼ nastÄ™pny slajd';
hs.lang.nextTitle = 'nastÄ™pny';
hs.expandCursor = 'zoomin.cur';
hs.restoreCursor = 'zoomout.cur';
hs.creditsHref = 'http://highslide.com';
hs.easing = 'easeInQuad';
hs.easingClose = hs.easing;
hs.fullExpandOpacity = 1.0;
hs.marginTop = 10;
hs.marginBottom = 15;
hs.marginLeft = 10;
hs.marginRight = 15;
hs.minHeight = 200;
hs.minWidth = 200;
hs.numberOfImagesToPreload = 5;
hs.transitions = ['expand'];
hs.fullExpandPosition = 'bottom right';
hs.objectLoadTime = 'before';
hs.align = '';
hs.anchor = '';
hs.allowSizeReduction = true;
hs.fadeInOut = false;
hs.allowMultipleInstances = true;
hs.allowWidthReduction = false;
hs.allowHeightReduction = true;
hs.blockRightClick = false;
hs.enableKeyListener = true;
hs.dynamicallyUpdateAnchors = true;
hs.forceAjaxReload = true;
hs.allowSimultaneousLoading = false;
hs.useBox = false;
hs.cacheAjax = true;
hs.preserveContent = true;
hs.dragByHeading = true;
hs.dragSensitivity = 5;
hs.dimmingDuration = 50;
hs.expandDuration = 250;
hs.transitionDuration = 500;
hs.expandSteps = 10;
hs.zIndexCounter = 1001;
hs.captionOverlay.fade = 0;
hs.captionOverlay.position = 'below';
hs.captionOverlay.hideOnMouseOut = false;
hs.headingOverlay.fade = 1;
hs.headingOverlay.position = 'top';
hs.headingOverlay.hideOnMouseOut = false;
hs.Expander.prototype.onBeforeGetCaption = function(sender)
{
	if (typeof sender.captionId != 'undefined' && sender.captionId != null)
	{
		if ((document.getElementById( sender.captionId ) || hs.clones[ sender.captionId ]) == null && sender.a.onclick != null)
		{
			var onclick = sender.a.onclick.toString();
			var onclickprop = onclick.match(/hsjcaption(["']*):\s*('|")([^'"]*)/);
			if (onclickprop != null)
			{
				var text = unescape( onclickprop[3] );
				var div = document.createElement('div');
				div['innerHTML'] = hs.replaceLang( text );
				div['id'] = sender.captionId;
				div['className'] = 'highslide-caption';
				var onclickstyle = onclick.match(/hsjcaptionstyle(["']*):\s*('|")([^'"]*)/);
				if (onclickstyle != null)
				{
					var styles = onclickstyle[3].match(/([^:; ])*:\s*([^,;}])*/g);
					if (styles != null)
					{
						for (var i = 0; i < styles.length; i++)
						{
							var arr;
							arr = styles[i].split(":");
							div.style[arr[0]] = arr[1].replace( " ", "");
						}
					}
				}
				sender.a.appendChild( div );
			}
		}
	}
	return true;
}
hs.Expander.prototype.onBeforeGetHeading = function(sender)
{
	if (typeof sender.headingId != 'undefined' && sender.headingId != null)
	{
		if ((document.getElementById( sender.headingId ) || hs.clones[ sender.headingId ]) == null && sender.a.onclick != null)
		{
			var onclick = sender.a.onclick.toString();
			var onclickprop = onclick.match(/hsjheading(["']*):\s*('|")([^'"]*)/);
			if (onclickprop != null)
			{
				var text = unescape( onclickprop[3] );
				var div = document.createElement('div');
				div['innerHTML'] = hs.replaceLang( text );
				div['id'] = sender.headingId;
				div['className'] = 'highslide-heading';
				var onclickstyle = onclick.match(/hsjheadingstyle(["']*):\s*('|")([^'"]*)/);
				if (onclickstyle != null)
				{
					var styles = onclickstyle[3].match(/([^:; ])*:\s*([^,;}])*/g);
					if (styles != null)
					{
						for (var i = 0; i < styles.length; i++)
						{
							var arr;
							arr = styles[i].split(":");
							div.style[arr[0]] = arr[1].replace( " ", "");
						}
					}
				}
				sender.a.appendChild( div );
			}
		}
	}
	return true;
}
hs.Expander.prototype.onBeforeGetContent = function(sender)
{
	if (typeof sender.contentId != 'undefined' && sender.contentId != null)
	{
		if ((document.getElementById( sender.contentId ) || hs.clones[ sender.contentId ]) == null && sender.a.onclick != null)
		{
			var onclick = sender.a.onclick.toString();
			var onclickprop = onclick.match(/hsjcontent(["']*):\s*('|")([^'"]*)/);
			if (onclickprop != null)
			{
				var text = unescape( onclickprop[3] );
				var div = document.createElement('div');
				div['innerHTML'] = hs.replaceLang( text );
				div['id'] = sender.contentId;
				div['className'] = 'highslide-html-content';
				var onclickstyle = onclick.match(/hsjcontentstyle(["']*):\s*('|")([^'"]*)/);
				if (onclickstyle != null)
				{
					var styles = onclickstyle[3].match(/([^:; ])*:\s*([^,;}])*/g);
					if (styles != null)
					{
						for (var i = 0; i < styles.length; i++)
						{
							var arr;
							arr = styles[i].split(":");
							div.style[arr[0]] = arr[1].replace( " ", "");
						}
					}
				}
				sender.a.appendChild( div );
			}
		}
	}
	return true;
}
hs.Expander.prototype.onBeforeExpand = function (sender) {
	if (this.custom != null
       &&this.custom['overlayId'] != null)
    {
		sender.createOverlay( this.custom );
	}
	return true;
}
hs.Expander.prototype.onInit = function (sender)
{
	if (sender.a.onclick != null)
	{
		var onclick = sender.a.onclick.toString();
		var onclickprop = onclick.match(/overlayId(["']*):\s*('|")([^'"]*)/);
		if (onclickprop != null)
		{
			var overlayId = onclickprop[3];
			if ((document.getElementById( overlayId ) || hs.clones[ overlayId ]) == null)
			{
				var onclickprop = onclick.match(/hsjcustomOverlay(["']*):\s*('|")([^'"]*)/);
				if (onclickprop != null)
				{
					var text = unescape( onclickprop[3] );
					var div = document.createElement('div');
					div['innerHTML'] = hs.replaceLang( text );
					div['id'] = overlayId;
					div['className'] = 'highslide-overlay';
					var onclickstyle = onclick.match(/hsjcustomOverlayStyle(["']*):\s*('|")([^'"]*)/);
					if (onclickstyle != null)
					{
						var styles = onclickstyle[3].match(/([^:; ])*:\s*([^,;}])*/g);
						if (styles != null)
						{
							for (var i = 0; i < styles.length; i++)
							{
								var arr;
								arr = styles[i].split(":");
								div.style[arr[0]] = arr[1].replace( " ", "");
							}
						}
					}
					sender.a.appendChild( div );
					var overlayExists = false;
					for (var i = 0; i < hs.overlays.length; i++)
					{
						if (hs.overlays[i].overlayId == overlayId)
						{
							overlayExists = true;
						}
					}
					if (! overlayExists)
					{
						onclickprop = onclick.match(/customOverlay(["']*):\s*{\s*([^}]*)}/);
						if (onclickprop != null)
						{
							try
							{
								eval( "var opts = {" + onclickprop[2] + "}" );
								opts.overlayId = overlayId;
								if (typeof sender.thumb.id != "undefined" && sender.thumb.id != "")
								{
									opts.thumbnailId = sender.thumb.id;
									hs.registerOverlay( opts );
								}
								else
								if (typeof sender.a.id != "undefined" && sender.a.id != "")
								{
									opts.thumbnailId = sender.a.id;
									hs.registerOverlay( opts );
								}
							}
							catch(e)
							{
								//	ignore
							}
						}
					}
				}
			}
		}
	}
	return true;
}
hs.addSlideshow( {
	interval: 5000
	,repeat: false
	,useControls: true
	,fixedControls: false
	,overlayOptions: {
		fade: 1
		,position: 'top center'
    	,hideOnMouseOut: true
	}
	,thumbstrip: {
		fade: 1
		,position: 'top center'
    	,mode: 'float'
    	,hideOnMouseOut: true
	}
});
hs.autoplay = true;
/*
 * gallery preset: dark-design
*/
hs.outlineType = 'glossy-dark';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.fadeInOut = true;
hs.wrapperClassName = 'dark';

hs.addSlideshow( {
	repeat: false
	,useControls: true
	,fixedControls: 'fit'
	,overlayOptions: {
		fade: 2
		,position: 'bottom center'
    	,hideOnMouseOut: true
    	,opacity: .6
	}
	,interval: 5000
	,repeat: false
});
hs.autoplay = true;

/*** rokbox.js ***/

/**
 * RokBox System Plugin
 *
 * @package		Joomla
 * @subpackage	RokBox System Plugin
 * @copyright Copyright (C) 2009 RocketTheme. All rights reserved.
 * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see RT-LICENSE.php
 * @author RocketTheme, LLC
 *
 * RokBox System Plugin includes:
 * ------------
 * SWFObject v1.5: SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License:
 * http://www.opensource.org/licenses/mit-license.php
 * -------------
 * JW Player: JW Player is (c) released under CC by-nc-sa 2.0:
 * http://creativecommons.org/licenses/by-nc-sa/2.0/
 * 
 */

eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}('V.6f({\'2K\':D(){L 8.1D(\'2C\',\'\')},\'1U\':D(){L 8.1D(\'2C\',\'3C\')}});8A.6f({\'8v\':D(){l 6i=/^(25|6h):\\/\\/([a-z-.0-9]+)[\\/]{0,1}/i.4S(I.35);l 1x=/^(25|6h):\\/\\/([a-z-.0-9]+)[\\/]{0,1}/i.4S(8);L 6i[2]===1x[2]}});l 43=B 6T({2Y:\'2.1\',t:{\'1L\':\'8y\',\'6M\':\'8I\',\'1I\':2p.4d.4k.8S,\'1J\':4c,\'4x\':40,\'1g\':\'6K\',\'2U\':M,\'5W\':8T,\'4C\':G,\'36\':M,1j:{\'33\':\'#8U\',\'1e\':0.85,\'3t\':8P,\'1J\':4c,\'1I\':2p.4d.4k.6S},\'6x-6s\':0,\'6v-2T\':0,\'15-u\':50,32:{\'C\':6k,\'u\':8K},\'22\':\'M\',\'2N\':\'G\',\'1b\':\'#8J\',\'5d\':G,\'3c\':\'5p\',\'3X\':G,\'3Q\':G,\'3V\':M,\'3P\':G},6W:D(t){8.6X(t);l 5Y=B 8L("^"+8.t.1L),17=8.t.1L,k=8;8.1M=[];8.1P=B 8O({});8.2w=G;8.2f=G;8.8s=$$(\'a\').8c(D(1x){l 1y=1x.2c(\'1y\'),W=G,4E=G,1z=G;l 2P=(1y||\'\').2P(5Y);j(2P){j(1y)W=1y.A(/\\([a-6U-9A-Z]+\\)/g)||G;j(1y)1z=1y.A(/\\[1z\\=(.+)+\\]/)||G;j(1z[1]){1x.1z=1z[1]}N{1x.1z=G};j(W[0]){W=W[0].1S("(","").1S(")","");j(!8.1P.8m(W))8.1P.52(W,[]);l 1P=8.1P.4H(W);1P.8g(1x);4E=1P.1h;8.1P.52(W,1P)};1x.W=W;1x.44=4E;1x.1Q(\'1K\',8.1K.6d(1x,[1x.19,1x.1c,1x.1y,8]))};L 2P}.5F(8));l 6L=$8h(8.t.1j,{\'J\':17+\'-1j\',\'1n\':17+\'-1j\'});8.2J=B 46(G,6L).1Q(\'6H\',D(){k.2m(k.1M)}).1Q(\'6G\',D(){j(k.2w){k.2w=G;l e=k.1R[0],3z=k.1R[1],1p=k.1R[2],1i=k.1R[3],1w;j(3z.2c(\'J\').2P(\'2G\'))1w=1p[1i];N 1w=1p[1i-2];k.1K.3K(27,k,[G,1w.19,1w.1c,1w.1y,k,1w])}});8.1j=8.2J.1j.1Q(\'1K\',D(){k.2f=G;k.2l()});8.P=B V(\'1q\',{\'J\':17+\'-P\',\'1n\':17+\'-\'+8.t.6M}).Y(1f.49).1Z({\'1d\':\'6Z\',\'3t\':6R,\'1e\':0}).1U();l 6N=B V(\'1q\',{\'J\':17+\'-T\',\'1n\':17+\'-16\'}).Y(8.P);l 6O=B V(\'1q\',{\'1n\':17+\'-3m\'}).Y(6N);l 9t=B V(\'1q\',{\'1n\':17+\'-11\'}).Y(6O);l 73=B V(\'1q\',{\'J\':17+\'-9v\',\'1n\':17+\'-16\'}).Y(8.P);l 6Q=B V(\'1q\',{\'1n\':17+\'-3m\'}).Y(73);8.11=B V(\'1q\',{\'1n\':17+\'-11\'}).Y(6Q);l 58=B V(\'1q\',{\'J\':17+\'-9T\',\'1n\':17+\'-16\'}).Y(8.P);l 7a=B V(\'1q\',{\'1n\':17+\'-3m\'}).Y(58);l 9h=B V(\'1q\',{\'1n\':17+\'-11\'}).Y(7a);B V(\'1q\',{\'1n\':\'7F\'}).Y(8.P);8.1O=B V(\'a\',{\'J\':17+\'-2l\',\'1c\':\'#\'}).2y(\'<1Y>[x] 2l</1Y>\').Y(8.11);8.1O.1Q(\'1K\',D(e){B 3l(e).3j();k.2f=G;k.2l(e)});8.1E={\'P\':B 2p.6m(8.P,{\'1J\':8.t.1J,4a:M,\'1I\':8.t.1I,5B:D(){j(k.K==\'31\')L;j(!8.7M.1e&&k.2J.2m){k.P.1U();j(!k.2f){k.2J.1U()}N{j(k.2w){k.2w=G;l e=k.1R[0],3z=k.1R[1],1p=k.1R[2],1i=k.1R[3],1w;j(3z.2c(\'J\').2P(\'2G\'))1w=1p[1i];N 1w=1p[1i-2];k.1K.3K(27,k,[G,1w.19,1w.1c,1w.1y,k,1w])}}}N{k.74.3K(50,k)}}}),\'11\':B 2p.6m(8.11,{\'1J\':8.t.1J,4a:M,\'1I\':8.t.1I}),\'u\':B 2p.6P(8.11,\'u\',{\'1J\':8.t.1J,4a:M,\'1I\':8.t.1I})};I.1Q(\'7p\',D(){k.2h(k.P);k.2J.2h()});j(8.t.4C)I.1Q(\'24\',D(){k.2h(k.P)})},1K:D(e,19,1c,t,k,3k){j(e)B 3l(e).3j();l 2V=\'\';l A=t.A(/([0-9]+\\s?[0-9]+)/g)||[\'\'];A=A[0].1v(" ");l A=t.A(/([0-9%]+\\s?[0-9%]+)/g)||[\'\'];2V=A[0].1v(" ");A=A[0].1v(" ");j(t.A(/3f/g))2V=\'3f\';l 1T=k.1B();j(!3k)3k=G;l W=8.W||3k.W;l 1H=k.1O.1m(\'u\').X()||k.1O.18().E.y||0;l 1X=k.t[\'15-u\']||0;A[0]=(A[0])?A[0]:\'\';A[1]=(A[1])?A[1]:\'\';j((!A[0].3y("%")&&!A[1].3y("%"))&&!A[0].1h||!A[1].1h){j(1c.A(/3R\\.1k\\/3h/i)){A[0]=6k;A[1]=7b}N j(1c.A(/4b\\./i)){A[0]=7c;A[1]=7h}N j(1c.A(/4u\\.1k\\/3h/i)){A[0]=4m;A[1]=7g}N j(1c.A(/4p\\.1k\\/5A/i)){A[0]=4m;A[1]=7d}N j(1c.A(/3A\\.1k\\/[0-9]{1,}/i)){A[0]=4m;A[1]=7e}N j(1c.A(/\\.(69|4J|3D|5G|5D|5E|5g|57|4l|5z|5H|5J|5M|55)$/i)){A[0]=7r;A[1]=7w}N j(1c.A(/\\.(5s|3I|5r)$/i)){A[0]=7P;A[1]=45}};l 1t=I.18().E;j(2V==\'3f\')A[0]=((I.2z)?I.4D:1t.x)-k.1B(M)-20;j(2V==\'3f\')A[1]=((I.2z)?I.4N:1t.y)-k.1B()-1H-1X-20;j($K(A[0])!=\'6q\'&&$K(A[1])!=\'6q\'){j(A[0].3y("%")&&A[1].3y("%")){l 6y=(I.2z)?I.4D:1t.x;l 6z=(I.2z)?I.4N:1t.y;A[0]=A[0].1S("%","").X();A[1]=A[1].1S("%","").X();A[0]=A[0]>27?27:A[0];A[1]=A[1]>27?27:A[1];A[0]=6y*A[0]/27;A[1]=6z*A[1]/27;A[0]=A[0]-k.1B(M)-20;A[1]=A[1]-k.1B()-1H-1X-20}}t={C:(A[0]||k.t.32.C).X(),u:(A[1]||k.t.32.u).X()};6B={C:(A[0]||k.t.32.C).X()+k.1B(M),u:(A[1]||k.t.32.u).X()+k.1B()+1H};k.1M=[8,19,1c,t,W,8.44||3k.44,6B,8.1z];j(!k.2f)k.2J.6E();N k.2m(k.1M)},1B:D(7V){l 1T=(8.t[\'6x-6s\']*2)+(8.t[\'6v-2T\']*2);L 1T},2m:D(){23=23[0];l b=23;l 4j=23[0],19=23[1],1c=23[2],E=23[3],t=23[6],1z=23[7],k=8;8.1O.1D(\'4e\',\'7A\');l 1H=k.1O.1m(\'u\').X()||k.1O.18().E.y||k.1O.7x.u.X()||0;l 1X=k.t[\'15-u\']||0;8.P.1Z({\'C\':t.C,\'u\':t.u+1X+1H}).2K();8.11.1Z({\'C\':E.C,\'u\':E.u+1H+1X});j(k.t.2U&&!8.U){l 26=k.26(19)||[G,G];l 19=26[0],2a=26[1];8.U=B V(\'1q\',{\'J\':8.t.1L+\'-U\'}).Y(8.11).1D(\'1e\',0).5c(19,2a)};j(k.t.2U&&8.U)8.U.1U().1D(\'u\',0);j(k.13)k.13.4g();l 1d=8.2h(8.P,t)[1];8.1E.P.1o(8.3p(8.t.1g,1d).1o).2M(D(){j(k.t.2U&&k.U){(D(){l u=k.U.18().E.y||0;l 11=k.11.1m(\'u\').X();l 7y=k.U.7C().7D().1h;k.1E.u.1o(11+u-1H).2M(D(){k.U.1g(\'1e\').1o(1);j(k.t.36){k.4A=k.36.6d(k);1f.1Q(\'5S\',k.4A)}})}).3K(k.t.5W)}});l h=E.u+1H+1X;l f=8.3p(8.t.1g,1d).1o;j(f.C||f.u)8.1E.11.1o({\'C\':($K(f.C)==\'5O\')?[0,E.C]:E.C,\'u\':($K(f.u)==\'5O\')?[0,h]:h});N 8.11.1Z({\'C\':E.C,\'u\':h})},2l:D(7z,54){l k=8,1g;l 1d={\'16\':8.P.1m(\'16\').X(),\'T\':8.P.1m(\'T\').X()};8.1O.1D(\'4e\',\'56\');8.13.2v(\'2t\');8.5e();1g=8.3p((54)?54:8.t.1g,1d).3e;j(8.t.2U)8.U.1g(\'1e\').52(0);j(8.t.36)1f.7T(\'5S\',k.4A);j(8.15)8.15.4s();8.15=G;l 1T={};j($5Z(1g.C))1T.C=6b.66(1g.C-k.1B());j($5Z(1g.u))1T.u=6b.66(1g.u);8.1E.11.1o(1T).2M(D(){k.1E.u.3j();j(k.U)k.U.1D(\'u\',\'\');k.11.1Z({\'C\':\'\',\'u\':\'\'});k.13.1Z({\'C\':\'\',\'u\':\'\'})});8.1E.P.1o(1g);L 8},36:D(e){B 3l(e);48(e.1A){1W\'16\':j(8.15)8.3a.3s(\'1K\',e);2d;1W\'3m\':j(8.15)8.39.3s(\'1K\',e);2d;1W\'7K\':8.2f=G;8.2l(e,\'3q\')}},2h:D(P,E){l 1t=I.18();j(!P)P=$(8.P);j(!E){l 1T=P.18().E;E={\'C\':1T.x,\'u\':1T.y}};l 76=8.t[\'15-u\'];l 16=1t.24.x+(((I.2z)?I.4D:1t.E.x)/2)-(E.C/2)-P.1m(\'2T-16\').X();l T=1t.24.y+(((I.2z)?I.4N:1t.E.y)/2)-(E.u/ 2) - P.1m(\'2T-T\').X() - (76 /2);l 1d={\'T\':(T>0)?T:0,\'16\':(16>0)?16:0};L[P.1Z(1d),1d]},74:D(){j(8.13)8.13.4s();j(8.U)8.U.1U();l U=8.1M[1],H=8.1M[2],E=8.1M[3],W=8.1M[4],1i=8.1M[5],17=8.t.1L;l 1z=8.1M[7];l 1H=8.1O.1m(\'u\').X()||8.1O.18().E.y||0;l 1X=8.t[\'15-u\']||0;8.K=G;j(1z){8.K=\'1z\';8.F=$(1z)}N j(H.A(/\\.(7O|7N|7L|7Q|7R)$/i)||8.1M[0].7U==\'31\'){8.K=\'31\';l k=8;8.F=B 7S.31(H,{J:\'1r\',7E:D(){k.13.2v(\'7W\').5j(\'7G\');k.13.2y(\'<6J>7I 7B 7J.</6J>\')},5h:D(){E.C=8.C;E.u=8.u;j(k.15)k.15.1U();k.13.1Z(E);l 6V=8,1t=I.18();l T=1t.24.y+(1t.E.y/2)-(8.u/2)-k.P.1m(\'2T-T\').X();j(T<0)T=0;j(k.11.1m(\'C\').X()!=E.C&&k.11.1m(\'u\').X()!=E.u){k.1E.11.1o({\'C\':E.C,\'u\':E.u+k.1B(M)+1X})};l 16=1t.24.x+(1t.E.x/2)-(8.C/ 2) - (k.1B(M) /2)-k.P.1m(\'2T-16\').X();k.1E.P.1o({\'16\':(16>0)?16:0,\'C\':8.C+k.1B(M),\'u\':8.u+k.1B()+1X+1H}).2M(D(){k.13.2v(\'2t\');6V.Y(k.13);j(k.15)k.15.2K()})}})}N j(H.A(/\\.(69|4J|3D|5G|5D|5E|5g|57)$/i)){8.K=\'4J\';j(1C.2A&&1C.2A.1h){8.F=\'<F J="1r" 3U="3O..." K="4n/5n" 5a="25://2B.5L.1k/5v/5w.5x" 3i="\'+H+\'" C="\'+E.C+\'" u="\'+E.u+\'"><R O="2D" S="\'+H+\'" /><R O="5o" S="5q" /><R O="2N" S="\'+8.t.2N+\'" /><R O="22" S="\'+8.t.22+\'" /><R O="1b" S="\'+8.t.1b+\'" /><R O="5y" S="M" /></F>\'}N{8.F=\'<F 51="5Q:7k-7l-7m-7j-7u" 3U="3O..." 5a="25://2B.5L.1k/5v/5w.5x" K="4n/5n" C="\'+E.C+\'" u="\'+E.u+\'" J="1r"><R O="2D" S="\'+H+\'" /><R O="5o" S="5q" /><R O="2N" S="\'+8.t.2N+\'" /><R O="22" S="\'+8.t.22+\'" /><R O="1b" S="\'+8.t.1b+\'" /><R O="5y" S="M" /></F>\'}}N j(H.A(/\\.(4l|5z|5H|5J|5M|55)$/i)){8.K=\'4l\';j(1C.2A&&1C.2A.1h){8.F=\'<F J="1r" 3U="3O..." K="2x/x-5f" 3i="\'+H+\'" C="\'+E.C+\'" u="\'+E.u+\'" /><R O="2D" S="\'+H+\'" /><R O="5i" S="\'+8.t.22+\'" /><R O="1b" S="\'+8.t.1b+\'" /></F>\'}N{8.F=\'<F J="1r" 3U="3O..." 51="7f:7v-7i-7q-7s-7t" K="2x/x-5f" 3i="\'+H+\'" C="\'+E.C+\'" u="\'+E.u+\'" /><R O="4F" S="\'+H+\'" /><R O="7o" S="\'+8.t.2N+\'"><R O="5i" S="\'+8.t.22+\'" /><R O="1b" S="\'+8.t.1b+\'" /><R O="7n" S="M" /></F>\'}}N j(H.A(/3R\\.1k\\/3h\\?v=/i)||H.A(/3R\\-7H\\.1k\\/3h\\?v=/i)){8.K=\'28\';l 2O=3n(H);8.2i=2O[\'2I\'][\'v\'];8W 2O[\'2I\'][\'v\'];j(8.t.5d&&!2O[\'2I\'][\'22\'])2O[\'2I\'][\'22\']=1;8.F=B 1u("25://2B.3R.1k/v/"+8.2i+\'&\'+2E.9i(2O[\'2I\']),"1r",E.C,E.u,"9",8.t.1b,"3b","2W");8.F.1l(\'2n\',\'2k\');8.F.1l(\'2r\',\'M\')}N j(H.A(/4b\\./i)){8.K=\'28\';l 1N=H.1v("9g")[0].1v(\'/\');8.1N=1N[1N.1h-1];8.F=B 1u("25://2B.4b.1k/1F/"+8.1N+"&9f=1&9d=33:9e;9j:9k;9p:9o;9n:9l;&9m=1&9c=0","1r",E.C,E.u,"9",8.t.1b);8.F.1l(\'2n\',\'2k\');8.F.1l(\'2r\',\'M\')}N j(H.A(/4u\\.1k\\/3h/i)){8.K=\'28\';l 1N=H.1v(\'/\');8.2i=1N[4];8.F=B 1u("25://2B.4u.1k/9b/"+8.2i+"/.1F","1r",E.C,E.u,"9",8.t.1b,"3b","2W");8.F.1l(\'2n\',\'2k\');8.F.1l(\'2r\',\'M\')}N j(H.A(/4p\\.1k\\/5A/i)){8.K=\'28\';l 1N=H.1v(\'=\');8.2i=1N[1];8.F=B 1u("25://4n.4p.1k/92.1F?93="+8.2i+"&22=1&91=90","1r",E.C,E.u,"9",8.t.1b,"3b","2W");8.F.1l(\'2n\',\'2k\');8.F.1l(\'2r\',\'M\')}N j(H.A(/3A\\.1k\\/[0-9]{1,}/i)){8.K=\'28\';l 1N=H.1v(\'/\');8.2i=1N[3];8.t.3V=(8.t.3V)?1:0;8.t.3Q=(8.t.3Q)?1:0;8.t.3P=(8.t.3P)?1:0;8.t.3X=(8.t.3X)?1:0;8.t.3c=(8.t.3c.A(/[0-9]{6}/))?8.t.3c:\'5p\';8.F=B 1u("25://2B.3A.1k/8Y.1F?8Z="+8.2i+"&2R;94=2B.3A.1k&2R;3f="+8.t.3V+"&2R;95="+8.t.3Q+"&2R;9a="+8.t.3P+"&2R;99="+8.t.3X+"&2R;6Y="+8.t.3c+"","1r",E.C,E.u,"9",8.t.1b);8.F.1l(\'2n\',\'2k\');8.F.1l(\'2r\',\'M\')}N j(H.A(/\\.1F/i)){8.K=\'28\';8.F=B 1u(H,"1r",E.C,E.u,"9",8.t.1b,"3b","2W");8.F.1l(\'2n\',\'2k\');8.F.1l(\'2r\',\'M\')}N j(H.A(/\\.98/i)&&I.5u){8.K=\'28\';H=I.5u+\'5t/5t.1F?78=\'+H;8.F=B 1u(H,"1r",E.C,E.u,"9",8.t.1b,"3b","2W");8.F.1l(\'2n\',\'2k\');8.F.1l(\'2r\',\'M\')}N j(H.A(/\\.(5s|5r)$/i)){8.K=\'2F\';8.F=\'<F J="1r"" C="\'+E.C+\'" u="\'+E.u+\'" 3i="\'+H+\'"" K="\'+((I.3E)?\'2x/x-3w\':\'2F/3D\')+\'"><R S="\'+H+\'" O="2D"/><R S="\'+H+\'" O="4F"/><R S="\'+((I.3E)?\'2x/x-3w\':\'2F/3D\')+\'" O="K"/><R O="1b" S="\'+8.t.1b+\'" /><p>5K 5k 5C 2j 5b: \'+H+\'</p></F>\'}N j(H.A(/\\.3I$/i)){8.K=\'2F\';8.F=\'<F J="1r"" C="\'+E.C+\'" u="\'+E.u+\'" 3i="\'+H+\'"" K="\'+((I.3E)?\'2x/x-3w\':\'2F/3I\')+\'"><R S="\'+H+\'" O="2D"/><R S="\'+H+\'" O="4F"/><R S="\'+((I.3E)?\'2x/x-3w\':\'2F/3I\')+\'" O="K"/><R O="1b" S="\'+8.t.1b+\'" /><p>5K 5k 5C 2j 5b: \'+H+\'</p></F>\'}N{8.K=\'4I\';l 59="1r"+$96()+$4t(0,27);8.F=B V(\'4I\').4G({J:59,C:E.C,u:E.u,97:0,4C:\'9r\',2D:H});l k=8;8.F.5h=D(){k.13.2v(\'2t\')}}8.4T=$(\'1r\');j(8.K){8.13=B V(\'1q\',{\'J\':17+\'-13\',\'1n\':17+\'-13\'}).5j(\'2t\').1Z(E).9O(8.11);j(8.K==\'28\')8.F.5U(8.13);N j(8.K==\'1z\'){8.F.9Q(M).Y(8.13.2v(\'2t\')).1D(\'2C\',\'9V\')}N j(8.K==\'9N\'){8.F.Y(8.13);B 9M(H,{\'9L\':\'4H\',\'9J\':M,\'9K\':8.F,5B:D(){8.13.2v(\'2t\')}.5F(8)}).9P()}N j(8.K==\'4I\'){8.F.Y(8.13)}N j(8.K!=\'31\')8.13.2v(\'2t\').2y(8.F);j(W){l 1p=8.1P.4H(W),k=8;j(1p.1h>1){j(!8.15){8.15=B V(\'1q\',{\'J\':8.t.1L+\'-15\'}).Y(8.11).1U();j(1i!=1){8.3a=B V(\'a\',{\'J\':8.t.1L+\'-3o\'}).Y(8.15).2y(\'<1Y>&5I;3o</1Y>\');8.3a.4G({\'1c\':1p[1i-2].2c(\'1c\'),\'19\':1p[1i-2].2c(\'19\')})};j(1i!=1p.1h){8.39=B V(\'a\',{\'J\':8.t.1L+\'-2G\'}).Y(8.15).2y(\'<1Y>2G &5m;</1Y>\');8.39.4G({\'1c\':1p[1i].2c(\'1c\'),\'19\':1p[1i].2c(\'19\')})};j(1i==1)8.3a=B V(\'a\',{\'J\':8.t.1L+\'-3o\',\'1n\':\'3r\',\'1c\':\'#\'}).Y(8.15,\'T\').2y(\'<1Y>&5I;3o</1Y>\');j(1i==1p.1h)8.39=B V(\'a\',{\'J\':8.t.1L+\'-2G\',\'1n\':\'3r\',\'1c\':\'#\'}).Y(8.15).2y(\'<1Y>2G &5m;</1Y>\');8.3a.1Q(\'1K\',D(e){e=B 3l(e).3j();j(!8.5l(\'3r\')){k.2w=M;k.1R=[e,8,1p,1i];k.2f=M;k.2l(e,\'3q\')}});8.39.1Q(\'1K\',D(e){e=B 3l(e).3j();j(!8.5l(\'3r\')){k.2w=M;k.1R=[e,8,1p,1i];k.2f=M;k.2l(e,\'3q\')}})};8.15.2K()}};j(8.t.2U){l 26=8.26(U)||[G,G];l 19=26[0],2a=26[1];j(8.U)8.U.4g().4s();8.U=B V(\'1q\',{\'J\':8.t.1L+\'-U\'}).Y(8.11).1D(\'1e\',0).5c(19,2a)}}},5e:D(){j(8.K){8.13.1D(\'4e\',\'56\').4g()}8.4T=2u;8.K=G},26:D(U){U=U.1v(" :: ")||G;48(U.1h){1W 0:L G;2d;1W 1:l 19=G;l 2a=B V(\'p\').4h(U[0]);2d;1W 2:l 19=B V(\'9U\').4h(U[0]);l 2a=B V(\'p\').4h(U[1]);2d}L[19,2a]},9S:D(4j){l 1y=4j.2c(\'1y\'),W=G;j(1y)W=1y.A(/\\([a-6U-9A-Z]+\\)/g)||G;j(W[0])W=W[0].1S("(","").1S(")","");N W=G;L W}});43.41(B 6F,B 9R);l 46=B 6T({t:{\'J\':G,\'1n\':G,\'33\':\'#9I\',\'1e\':0.7,\'3t\':6R,\'1J\':4c,\'1I\':2p.4d.4k.6S},6W:D(2o,t){8.2o=$(2o)||$(1f.49);8.6X(t);8.1j=B V(\'1q\',{\'J\':8.t.J||(\'71-\'+$4t(1,70)),\'1n\':8.t.J||(\'71-\'+$4t(1,70)),\'9H\':{\'1e\':0,\'2C\':\'3C\',\'1d\':\'6Z\',\'T\':0,\'16\':0,\'9w\':\'7X\',\'33-6Y\':8.t.33,\'z-1i\':8.t.3t}}).Y(1f.49);8.1E=B 2p.6P(8.1j,\'1e\',{1J:8.t.1J,1I:8.t.1I});8.2m=G;L 8},2h:D(3u){l 2o=8.2o;3u=3u||I.18().3Y;8.1j.1Z({T:2o.6I().y||0,16:2o.6I().x||0,C:I.18().E.x,u:3u.y});L 8},2K:D(){l 1j=8.1j,k=8;8.1j.1D(\'2C\',\'\');8.2m=M;8.2h().1E.1o(8.t.1e).2M(D(){k.3s(\'6H\',1j)});L 8},1U:D(){l 1j=8.1j,k=8;8.2m=G;8.2h().1E.1o(0).2M(D(){1j.1D(\'2C\',\'3C\');k.3s(\'6G\',1j)});L 8},6E:D(){8[8.2m?\'1U\':\'2K\']();L 8}});46.41(B 6F,B 9x);43.41({3p:D(K,1d){l 1g={};j(!1d)1d=0;48(K){1W\'3q\':1g={\'1o\':{\'T\':[1d.T-8.t.4x,1d.T],\'1e\':1},\'3e\':{\'T\':8.P.1m(\'T\').X()+8.t.4x,\'1e\':0}};2d;1W\'6K\':l u=8.P.1m(\'u\').X(),C=8.P.1m(\'C\').X();1g={\'1o\':{\'T\':[1d.T+(u/2),1d.T],\'u\':[0,u],\'1e\':1},\'3e\':{\'T\':1d.T+(u/2),\'16\':I.18().E.x/2-((I.18().3Y.x-10)/2),\'C\':I.18().3Y.x-30,\'u\':0,\'1e\':0}};2d;1W\'9u\':l u=8.P.1m(\'u\').X(),C=8.P.1m(\'C\').X();1g={\'1o\':{\'u\':[0,u],\'C\':[0,C],\'1e\':1,\'T\':[(I.18().E.y/2)+I.18().24.y,1d.T],\'16\':[(I.18().E.x/2)+I.18().24.x,1d.16]},\'3e\':{\'u\':0,\'C\':0,\'1e\':0,\'T\':(I.18().E.y/2)+I.18().24.y,\'16\':(I.18().E.x/2)+I.18().24.x}};2d;1W\'9s\':1g={\'1o\':{\'1e\':1},\'3e\':{\'1e\':0}}};L 1g}});D 3n(5N){l o=3n.t,m=o.3v[o.72?"77":"75"].4S(5N),2H={},i=14;6r(i--)2H[o.1A[i]]=m[i]||"";2H[o.q.O]={};2H[o.1A[12]].1S(o.q.3v,D($0,$1,$2){j($1)2H[o.q.O][$1]=$2});L 2H};3n.t={72:G,1A:["9y","9z","9F","9G","9E","9D","9B","9C","9q","8X","8j","78","8k","8i"],q:{O:"2I",3v:/(?:^|&)([^&=]*)=?([^&]*)/g},3v:{77:/^(?:([^:\\/?#]+):)?(?:\\/\\/((?:(([^:@]*):?([^:@]*))?@)?([^:\\/?#]*)(?::(\\d*))?))?((((?:[^?#\\/]*\\/)*)([^?#]*))(?:\\?([^#]*))?(?:#(.*))?)/,75:/^(?:(?![^:@]+:[^:@\\/]*@)([^:\\/?#.]+):)?(?:\\/\\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/}};j(2Z Q=="4L"){l Q=B 2E()}j(2Z Q.3g=="4L"){Q.3g=B 2E()}j(2Z Q.2g=="4L"){Q.2g=B 2E()}Q.1u=D(4Q,J,w,h,53,c,4W,3Z,4U,4M){j(!1f.3S){L}8.79=4M?4M:"8f";8.6e=Q.3g.4i(8.79);8.4K=B 2E();8.3J=B 2E();8.4z=B 6D();j(4Q){8.1s("1F",4Q)}j(J){8.1s("J",J)}j(w){8.1s("C",w)}j(h){8.1s("u",h)}j(53){8.1s("2Y",B Q.29(53.8l().1v(".")))}8.3d=Q.2g.6t();j(!I.2z&&1f.4f&&8.3d.2s>7){Q.1u.6g=M}j(c){8.1l("1b",c)}l q=4W?4W:"8r";8.1l("8q",q);8.1s("3T",G);8.1s("38",G);l 6C=(3Z)?3Z:I.35;8.1s("5V",6C);8.1s("3B","");j(4U){8.1s("3B",4U)}};Q.1u.6j={3T:D(4Y){8.4P=!4Y?"8p.1F":4Y;8.1s("3T",M)},1s:D(64,63){8.4z[64]=63},1a:D(61){L 8.4z[61]},1l:D(62,67){8.4K[62]=67},4Z:D(){L 8.4K},37:D(68,6c){8.3J[68]=6c},8n:D(6a){L 8.3J[6a]},60:D(){L 8.3J},4V:D(){l 3G=B 6D();l 1A;l 4O=8.60();2j(1A 3N 4O){3G[3G.1h]=1A+"="+4O[1A]}L 3G},6u:D(){l 1G="";j(1C.2A&&1C.42&&1C.42.1h){j(8.1a("38")){8.37("5R","8o");8.1s("1F",8.4P)}1G="<8e K=\\"2x/x-8d-28\\" 2D=\\""+8.1a("1F")+"\\" C=\\""+8.1a("C")+"\\" u=\\""+8.1a("u")+"\\" 2X=\\""+8.1a("2X")+"\\"";1G+=" J=\\""+8.1a("J")+"\\" O=\\""+8.1a("J")+"\\" ";l 4y=8.4Z();2j(l 1A 3N 4y){1G+=[1A]+"=\\""+4y[1A]+"\\" "}l 4B=8.4V().5P("&");j(4B.1h>0){1G+="5T=\\""+4B+"\\""}1G+="/>"}N{j(8.1a("38")){8.37("5R","82");8.1s("1F",8.4P)}1G="<F J=\\""+8.1a("J")+"\\" 51=\\"5Q:83-81-80-7Y-7Z\\" C=\\""+8.1a("C")+"\\" u=\\""+8.1a("u")+"\\" 2X=\\""+8.1a("2X")+"\\">";1G+="<R O=\\"4T\\" S=\\""+8.1a("1F")+"\\" />";l 4R=8.4Z();2j(l 1A 3N 4R){1G+="<R O=\\""+1A+"\\" S=\\""+4R[1A]+"\\" />"}l 4X=8.4V().5P("&");j(4X.1h>0){1G+="<R O=\\"5T\\" S=\\""+4X+"\\" />"}1G+="</F>"}L 1G},5U:D(3W){j(8.1a("3T")){l 5X=B Q.29([6,0,65]);j(8.3d.3F(5X)&&!8.3d.3F(8.1a("2Y"))){8.1s("38",M);8.37("84",86(8.1a("5V")));1f.19=1f.19.8b(0,47)+" - 6w 8a 89";8.37("87",1f.19)}}j(8.6e||8.1a("38")||8.3d.3F(8.1a("2Y"))){l n=(2Z 3W=="88")?1f.3S(3W):3W;n.8t=8.6u();L M}N{j(8.1a("3B")!=""){1f.35.1S(8.1a("3B"))}}L G}};Q.2g.6t=D(){l 2e=B Q.29([0,0,0]);j(1C.2A&&1C.42.1h){l x=1C.2A["8N 6w"];j(x&&x.2a){2e=B Q.29(x.2a.1S(/([a-8M-Z]|\\s)+/,"").1S(/(\\s+r|\\s+b[0-9]+)/,".").1v("."))}}N{j(1C.6A&&1C.6A.4v("8Q 8V")>=0){l 1V=1;l 3x=3;6r(1V){3L{3x++;1V=B 3M("2b.2b."+3x);2e=B Q.29([3x,0,0])}3H(e){1V=2u}}}N{3L{l 1V=B 3M("2b.2b.7")}3H(e){3L{l 1V=B 3M("2b.2b.6");2e=B Q.29([6,0,21]);1V.8R="2k"}3H(e){j(2e.2s==6){L 2e}}3L{1V=B 3M("2b.2b")}3H(e){}}j(1V!=2u){2e=B Q.29(1V.8H("$2Y").1v(" ")[1].1v(","))}}}L 2e};Q.29=D(2q){8.2s=2q[0]!=2u?4w(2q[0]):0;8.34=2q[1]!=2u?4w(2q[1]):0;8.4o=2q[2]!=2u?4w(2q[2]):0};Q.29.6j.3F=D(2Q){j(8.2s<2Q.2s){L G}j(8.2s>2Q.2s){L M}j(8.34<2Q.34){L G}j(8.34>2Q.34){L M}j(8.4o<2Q.4o){L G}L M};Q.3g={4i:D(4q){l q=1f.35.8z||1f.35.8x;j(4q==2u){L q}j(q){l 2S=q.4r(1).1v("&");2j(l i=0;i<2S.1h;i++){j(2S[i].4r(0,2S[i].4v("="))==4q){L 2S[i].4r((2S[i].4v("=")+1))}}}L""}};Q.2g.6l=D(){l 2L=1f.8w("8u");2j(l i=2L.1h-1;i>=0;i--){2L[i].2X.2C="3C";2j(l x 3N 2L[i]){j(2Z 2L[i][x]=="D"){2L[i][x]=D(){}}}}};j(Q.1u.6g){j(!Q.6n){Q.2g.6o=D(){8B=D(){};8G=D(){};I.6p("8F",Q.2g.6l)};I.6p("8E",Q.2g.6o);Q.6n=M}}j(!1f.3S&&1f.4f){1f.3S=D(J){L 1f.4f[J]}}l 8C=Q.3g.4i;l 8D=Q.1u;l 1u=Q.1u;',62,616,'||||||||this|||||||||||if|self|var||||||||options|height||||||match|new|width|function|size|object|false|url|window|id|type|return|true|else|name|wrapper|deconcept|param|value|top|caption|Element|group|toInt|inject|||center||container||arrows|left|cls|getSize|title|getAttribute|bgcolor|href|position|opacity|document|effect|length|index|overlay|com|addParam|getStyle|class|start|list|div|rokboxobject|setAttribute|winSize|SWFObject|split|what|lnk|rel|module|key|overflow|navigator|setStyle|fx|swf|_19|closeHeight|transition|duration|click|className|current|videoId|closeButton|groups|addEvent|nextGroup|replace|tmp|hide|axo|case|arrowHeight|span|setStyles|||autoplay|arguments|scroll|http|getCaption|100|flash|PlayerVersion|description|ShockwaveFlash|getProperty|break|_23|swtch|SWFObjectUtil|reposition|videoID|for|always|close|open|allowscriptaccess|where|Fx|_29|allowfullscreen|major|spinner|null|removeClass|changeGroup|application|setHTML|opera|plugins|www|display|src|Object|audio|next|uri|queryKey|overlayObj|show|_2f|chain|controller|ytOptions|test|fv|amp|_2d|padding|captions|fs|transparent|style|version|typeof||image|defaultSize|background|minor|location|keyEvents|addVariable|doExpressInstall|nextArrow|prevArrow|wmode|vimeoColor|installedVer|end|fullscreen|util|watch|data|stop|me|Event|right|parseUri|previous|effects|growl|inactive|fireEvent|zIndex|sizes|parser|mplayer2|_26|contains|selfLink|vimeo|redirectUrl|none|mpeg|ie|versionIsValid|_16|catch|wav|variables|delay|try|ActiveXObject|in|loading|vimeoByline|vimeoTitle|youtube|getElementById|useExpressInstall|standby|vimeoFullScreen|_20|vimeoPortrait|scrollSize|_8||implement|mimeTypes|RokBox|idx||Rokverlay||switch|body|wait|dailymotion|200|Transitions|visibility|all|empty|setText|getRequestParameter|el|Quad|wmv|400|video|rev|google|_2b|substring|remove|random|metacafe|indexOf|parseInt|chase|_1a|attributes|evt|_1c|scrolling|innerWidth|len|filename|setProperties|get|iframe|qt|params|undefined|_a|innerHeight|_18|xiSWFPath|_1|_1d|exec|movie|_9|getVariablePairs|_7|_1f|_d|getParams||classid|set|_5|animation|asf|hidden|m4v|bottomleft|IFrameID|codebase|playing|adopt|youtubeAutoplay|unloadVideo|oleobject|mv4|onload|autoStart|addClass|plugin|hasClass|gt|quicktime|scale|00adef|aspect|m4a|mp3|jwplayer|rokboxPath|qtactivex|qtplugin|cab|enablejavascript|wma|videoplay|onComplete|matched|avi|xvid|bind|divx|wax|lt|wvx|No|apple|asx|str|array|join|clsid|MMplayerType|keyup|flashvars|write|xiRedirectUrl|captionsDelay|_21|regexp|chk|getVariables|_10|_11|_f|_e||abs|_12|_13|mov|_15|Math|_14|bindWithEvent|skipDetect|extend|doPrepUnload|https|domain|prototype|640|cleanupSWFs|Styles|unloadSet|prepUnload|attachEvent|number|while|border|getPlayerVersion|getSWFHTML|content|Flash|frame|ww|wh|userAgent|options2|_c|Array|toggle|Options|onHide|onShow|getPosition|h1|quicksilver|overlayOptions|theme|topleft|topright|Style|middleright|65555|easeInOut|Class|z0|img|initialize|setOptions|color|absolute|1000|rokverlay|strictMode|middleleft|loadVideo|loose|plus|strict|file|DETECT_KEY|bottomright|385|420|326|225|CLSID|345|339|B0F6|BC80|02BF25D5|8C17|4B23|stretchToFit|showcontrols|resize|11D0|504|94AB|0080C74C7E95|D3488ABDDC6B|22D6f312|336|currentStyle|captionText|event|visible|not|getText|trim|onerror|clr|warning|nocookie|Image|found|esc|jpeg|now|jpg|gif|320|png|bmp|Asset|removeEvent|alt|margin|liading|pointer|96B8|444553540000|11cf|AE6D|ActiveX|D27CDB6E|MMredirectURL||escape|MMdoctitle|string|Installation|Player|slice|filter|shockwave|embed|detectflash|push|merge|anchor|directory|query|toString|hasKey|getVariable|PlugIn|expressinstall|quality|high|elements|innerHTML|OBJECT|sameDomain|getElementsByTagName|hash|rokbox|search|String|__flash_unloadHandler|getQueryParamValue|FlashObject|onbeforeunload|onunload|__flash_savedUnloadHandler|GetVariable|default|f3f3f3|460|RegExp|zA|Shockwave|Hash|65550|Windows|AllowScriptAccess|easeOut|800|000|CE|delete|path|moogaloop|clip_id|en|hl|googleplayer|docId|server|show_title|time|frameBorder|flv|show_portrait|show_byline|fplayer|related|colors|DDDDDD|v3|_|bottomcenter|toQueryString|glow|FFFFFF|FFC300|autoPlay|special|333333|foreground|relative|auto|fade|topcenter|explode|middle|cursor|Events|source|protocol||host|port|password|user|authority|userInfo|styles|000000|evalScripts|update|method|Ajax|html|injectInside|request|clone|Chain|getGroup|bottom|h2|block'.split('|'),0,{}))


/*** rokbox-config.js ***/

/* All the presets options are the custom ones */

var rokbox;
window.addEvent('domready', function() {
	rokbox = new RokBox({
		'theme': 'light', // this string must match the theme folder name (string, no space, lowercase)
		'transition': Fx.Transitions.Quad.easeOut, // Transition to use when opening RokBox
		'duration': 400, // Duration of opening RokBox Effect (integer, milliseconds)
		'chase': 50, // Chase to use for the animation. works only for growl, see next line. (integer)
		'frame-border': 20, // Width of each border if any (integer, pixels)
		'content-padding': 0, // Padding of internal content wrapper (integer, pixels)
		'arrows-height': 35, // Height of arrows div (integer, pixels)
		'effect': 'growl', // Type of effect to use. Presets are: 'quicksilver', 'growl', 'explode'
		'captions': 1, // Whether to enable or disable captions (boolean, 1 or 0)
		'captionsDelay': 800, // How long captions effect should last, when captions are enabled (integer, milliseconds)
		'scrolling': 0, // Makes RokBox follow when scrolling the page (boolean, 1 or 0)
		'keyEvents': 1, // Enable keyevents. Esc, Left, Right to close and change previous or next (boolean, 1 or 0)
		'overlay': {
			'background': '#000', // Overlay background color (string, hex color format with starting hash #)
			'opacity': 0.2, // Opacity of the overlay (float, from 0 to 1, 0.1 makes it invisible but clickable)
			'duration': 200, // Duration of overlay effect (integer, milliseconds)
			'transition': Fx.Transitions.Quad.easeInOut // Transition to use for opacity effect
		},
		'defaultSize': {
			'width': 640, // Default RokBox window width (integer)
			'height': 460 // Default RokBox window height (integer)
		},
		'autoplay': 'true', // Enable or disable autoplay for QuickTimes and WM videos (string, 'true' or 'false')
		'controller': 'true', // Enable or disable controllers for QuickTimes and WM videos (string, 'true' or 'false')
		'bgcolor': '#ffffff', // Set Background colors for all videos and flash services that support it (string, hex color format with starting hash #)
		'youtubeAutoplay': 0, // Enable or disable autoplay for YouTube (boolean, 1 or 0)
		'vimeoColor': '00adef', // Vimeo Color Scheme (string, hex color format WITHOUT starting hash #)
		'vimeoPortrait': 0, // Enable or disable Vimeo Portrait Button (boolean, 1 or 0)
		'vimeoTitle': 0, // Enable or disable Vimeo Title caption (boolean, 1 or 0)
		'vimeoFullScreen': 1, // Enable or disable Vimeo FullScreen button (boolean, 1 or 0)
		'vimeoByline': 0 // Enable or disable Vimeo's Author line (boolean, 1 or 0)
	});
});

/*** reflection.js ***/

	function dropReflection(el, height, opacity, distance) {
	
		var img = el;
		
		// create new container SPAN, and make the image we're dealing with it's child.
		var container = document.createElement('span');
		img.parentNode.insertBefore(container, img);
//		img.style.cssText = 'vertical-align: bottom;';
		container.appendChild(img.parentNode.removeChild(img));
	
		// copy the classnames and inline styles
		container.className = img.className;	
		container.setAttribute("style", img.getAttribute("style"));
		img.setAttribute("style", "");
		container.style.display = "inline";
		container.style.width = img.width;
		var refheight = img.height*height;
		// make the distance from the image to the reflection
		img.style.marginBottom = (distance + "px");
		var newline = document.createElement('br');
		container.appendChild(newline);
                if (document.all && !window.opera) {
		  var reflection = document.createElement('img');
                  reflection.src = img.src;
                  reflection.style.width = img.width+'px';
                  reflection.style.height = refheight+'px';
 
                  reflection.style.filter = 'flipv progid:DXImageTransform.Microsoft.Alpha(opacity='+(opacity*100)+', style=1, finishOpacity=0, startx=0, starty=0, finishx=0, finishy='+100+')';
                  container.appendChild(reflection);
                } else {
                  var canvas = document.createElement('canvas');
                  if (canvas.getContext) {
                    var context = canvas.getContext("2d");
 
                    canvas.height = img.height;
                    canvas.width = img.width;
		    canvas.style.cssText = 'position:relative;padding:0;margin:0; left: 0px; top:'+(img.height-newline.height)+'px;';
		
                    container.appendChild(canvas);
                    context.translate(0,refheight);
                    context.scale(1,-1);
                    context.drawImage(img, 0, 0, img.width, refheight);
                
                    var gradient = context.createLinearGradient(0, refheight, 0, 0);
                    gradient.addColorStop(1, "rgba(255, 255, 255, 1.0)");
                    gradient.addColorStop(0, "rgba(255, 255, 255, "+(1-opacity)+")");
                    context.fillStyle = gradient;
                    context.fillRect(0, 0, img.width, refheight);
                    
                  }
                }	
	}

document.getElementsByClassName = function(className) {
  var children = document.getElementsByTagName('*') || document.all;
  var elements = new Array();

  for (var i = 0; i < children.length; i++) {
    var child = children[i];
    var classNames = child.className.split(' ');
    for (var j = 0; j < classNames.length; j++) {
      if (classNames[j] == className) {
        elements.push(child);
        break;
      }
    }
  }
  return elements;
}


function addReflections() {
  var rimages = document.getElementsByClassName('reflectimage');
  for (i=0;i<rimages.length;i++) {
    var rsize = null;
    var rspace = null;
    var ropacity = null;
    var classes = rimages[i].className.split(' ');
 
    for (j=0;j<classes.length;j++) {
      if (classes[j].indexOf("refsize") == 0) {
        var rsize = classes[j].substring(7);
      } else if (classes[j].indexOf("refopacity") == 0) {
        var ropacity = classes[j].substring(10);
      } else if (classes[j].indexOf("refspace") == 0) {
        var rspace = classes[j].substring(8);
      }
    }
    dropReflection(rimages[i], rsize, ropacity, rspace);
  }
}

var previousOnload = window.onload;
window.onload = function () { if(previousOnload) previousOnload(); addReflections(); }
