/*** 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
});


/*** modal.js ***/

/**
 * SqueezeBox - Expandable Lightbox
 *
 * Allows to open various content as modal,
 * centered and animated box.
 *
 * Inspired by
 *  ... Lokesh Dhakar	- The original Lightbox v2
 *  ... Cody Lindley	- ThickBox
 *
 * @version		1.0rc1
 *
 * @license		MIT-style license
 * @author		Harald Kirschner <mail [at] digitarald.de>
 * @copyright	Author
 */
var SqueezeBox = {

	presets: {
		size: {x: 600, y: 450},
		sizeLoading: {x: 200, y: 150},
		marginInner: {x: 20, y: 20},
		marginImage: {x: 150, y: 200},
		handler: false,
		adopt: null,
		closeWithOverlay: true,
		zIndex: 65555,
		overlayOpacity: 0.7,
		classWindow: '',
		classOverlay: '',
		disableFx: false,
		onOpen: Class.empty,
		onClose: Class.empty,
		onUpdate: Class.empty,
		onResize: Class.empty,
		onMove: Class.empty,
		onShow: Class.empty,
		onHide: Class.empty,
		fxOverlayDuration: 250,
		fxResizeDuration: 750,
		fxContentDuration: 250,
		ajaxOptions: {}
	},

	initialize: function(options) {
		if (this.options) return this;
		this.presets = $merge(this.presets, options)
		this.setOptions(this.presets);
		this.build();
		this.listeners = {
			window: this.reposition.bind(this, [null]),
			close: this.close.bind(this),
			key: this.onkeypress.bind(this)};
		this.isOpen = this.isLoading = false;
		this.window.close = this.listeners.close;
		return this;
	},

	build: function() {
		this.overlay = new Element('div', {
			id: 'sbox-overlay',
			styles: {
				display: 'none',
				zIndex: this.options.zIndex
			}
		});
		this.content = new Element('div', {
			id: 'sbox-content'
		});
		this.btnClose = new Element('a', {
			id: 'sbox-btn-close',
			href: '#'
		});
		this.window = new Element('div', {
			id: 'sbox-window',
			styles: {
				display: 'none',
				zIndex: this.options.zIndex + 2
			}
		}).adopt(this.btnClose, this.content);

		if (!window.ie6) {
			this.overlay.setStyles({
				position: 'fixed',
				top: 0,
				left: 0
			});
			this.window.setStyles({
				position: 'fixed',
				top: '50%',
				left: '50%'
			});
		} else {
			this.overlay.style.setExpression('marginTop', 'document.documentElement.scrollTop + "px"');
			this.window.style.setExpression('marginTop', '0 - parseInt(this.offsetHeight / 2) + document.documentElement.scrollTop + "px"');

			this.overlay.setStyles({
				position: 'absolute',
				top: '0%',
				left: '0%'
				//,marginTop: "expression(document.documentElement.scrollTop + 'px')"
			});

			this.window.setStyles({
				position: 'absolute',
				top: '0%',
				left: '0%'
				//,marginTop: "(expression(0 - parseInt(this.offsetHeight / 2) + document.documentElement.scrollTop + 'px')"
			});
		}

		$(document.body).adopt(this.overlay, this.window);

		this.fx = {
			overlay: this.overlay.effect('opacity', {
				duration: this.options.fxOverlayDuration,
				wait: false}).set(0),
			window: this.window.effects({
				duration: this.options.fxResizeDuration,
				wait: false}),
			content: this.content.effect('opacity', {
				duration: this.options.fxContentDuration,
				wait: false}).set(0)
		};
	},

	addClick: function(el) {
		return el.addEvent('click', function() {
			if (this.fromElement(el)) return false;
		}.bind(this));
	},

	fromElement: function(el, options) {
		this.initialize();
		this.element = $(el);
		if (this.element && this.element.rel) options = $merge(options || {}, Json.evaluate(this.element.rel));
		this.setOptions(this.presets, options);
		this.assignOptions();
		this.url = (this.element ? (this.options.url || this.element.href) : el) || '';

		if (this.options.handler) {
			var handler = this.options.handler;
			return this.setContent(handler, this.parsers[handler].call(this, true));
		}
		var res = false;
		for (var key in this.parsers) {
			if ((res = this.parsers[key].call(this))) return this.setContent(key, res);
		}
		return this;
	},

	assignOptions: function() {
		this.overlay.setProperty('class', this.options.classOverlay);
		this.window.setProperty('class', this.options.classWindow);
	},

	close: function(e) {
		if (e) new Event(e).stop();
		if (!this.isOpen) return this;
		this.fx.overlay.start(0).chain(this.toggleOverlay.bind(this));
		this.window.setStyle('display', 'none');
		this.trashImage();
		this.toggleListeners();
		this.isOpen = null;
		this.fireEvent('onClose', [this.content]).removeEvents();
		this.options = {};
		this.setOptions(this.presets).callChain();
		return this;
	},

	onError: function() {
		if (this.image) this.trashImage();
		this.setContent('Error during loading');
	},

	trashImage: function() {
		if (this.image) this.image = this.image.onload = this.image.onerror = this.image.onabort = null;
	},

	setContent: function(handler, content) {
		this.content.setProperty('class', 'sbox-content-' + handler);
		this.applyTimer = this.applyContent.delay(this.fx.overlay.options.duration, this, [this.handlers[handler].call(this, content)]);
		if (this.overlay.opacity) return this;
		this.toggleOverlay(true);
		this.fx.overlay.start(this.options.overlayOpacity);
		this.reposition();
		return this;
	},

	applyContent: function(content, size) {
		this.applyTimer = $clear(this.applyTimer);
		this.hideContent();
		if (!content) this.toggleLoading(true);
		else {
			if (this.isLoading) this.toggleLoading(false);
			this.fireEvent('onUpdate', [this.content], 20);
		}
		this.content.empty()[['string', 'array', false].contains($type(content)) ? 'setHTML' : 'adopt'](content || '');
		this.callChain();
		if (!this.isOpen) {
			this.toggleListeners(true);
			this.resize(size, true);
			this.isOpen = true;
			this.fireEvent('onOpen', [this.content]);
		} else this.resize(size);
	},

	resize: function(size, instantly) {
		var sizes = window.getSize();
		this.size = $merge(this.isLoading ? this.options.sizeLoading : this.options.size, size);
		var to = {
			width: this.size.x,
			height: this.size.y,
			marginLeft: - this.size.x / 2,
			marginTop: - this.size.y / 2
			//left: (sizes.scroll.x + (sizes.size.x - this.size.x - this.options.marginInner.x) / 2).toInt(),
			//top: (sizes.scroll.y + (sizes.size.y - this.size.y - this.options.marginInner.y) / 2).toInt()
		};
		$clear(this.showTimer || null);
		this.hideContent();
		if (!instantly) this.fx.window.start(to).chain(this.showContent.bind(this));
		else {
			this.window.setStyles(to).setStyle('display', '');
			this.showTimer = this.showContent.delay(50, this);
		}
		this.reposition(sizes);
	},

	toggleListeners: function(state) {
		var task = state ? 'addEvent' : 'removeEvent';
		this.btnClose[task]('click', this.listeners.close);
		if (this.options.closeWithOverlay) this.overlay[task]('click', this.listeners.close);
		document[task]('keydown', this.listeners.key);
		window[task]('resize', this.listeners.window);
		window[task]('scroll', this.listeners.window);
	},

	toggleLoading: function(state) {
		this.isLoading = state;
		this.window[state ? 'addClass' : 'removeClass']('sbox-loading');
		if (state) this.fireEvent('onLoading', [this.window]);
	},

	toggleOverlay: function(state) {
		this.overlay.setStyle('display', state ? '' : 'none');
		$(document.body)[state ? 'addClass' : 'removeClass']('body-overlayed');
	},

	showContent: function() {
		if (this.content.opacity) this.fireEvent('onShow', [this.window]);
		this.fx.content.start(1);
	},

	hideContent: function() {
		if (!this.content.opacity) this.fireEvent('onHide', [this.window]);
		this.fx.content.stop().set(0);
	},

	onkeypress: function(e) {
		switch (e.key) {
			case 'esc':
			case 'x':
				this.close();
				break;
		}
	},

	reposition: function(sizes) {
		sizes = sizes || window.getSize();
		this.overlay.setStyles({
			//'left': sizes.scroll.x, 'top': sizes.scroll.y,
			width: sizes.size.x,
			height: sizes.size.y
		});
		/*
		this.window.setStyles({
			left: (sizes.scroll.x + (sizes.size.x - this.window.offsetWidth) / 2).toInt(),
			top: (sizes.scroll.y + (sizes.size.y - this.window.offsetHeight) / 2).toInt()
		});
		*/
		this.fireEvent('onMove', [this.overlay, this.window, sizes]);
	},

	removeEvents: function(type){
		if (!this.$events) return this;
		if (!type) this.$events = null;
		else if (this.$events[type]) this.$events[type] = null;
		return this;
	},

	parsers: {
		'image': function(preset) {
			return (preset || this.url.test(/\.(jpg|jpeg|png|gif|bmp)$/i)) ? this.url : false;
		},
		'adopt': function(preset) {
			if ($(this.options.adopt)) return $(this.options.adopt);
			if (preset || ($(this.element) && !this.element.parentNode)) return $(this.element);
			var bits = this.url.match(/#([\w-]+)$/);
			return bits ? $(bits[1]) : false;
		},
		'url': function(preset) {
			return (preset || (this.url && !this.url.test(/^javascript:/i))) ? this.url: false;
		},
		'iframe': function(preset) {
			return (preset || this.url) ? this.url: false;
		},
		'string': function(preset) {
			return true;
		}
	},

	handlers: {
		'image': function(url) {
			this.image = new Image();
			var events = {
				loaded: function() {
					var win = {x: window.getWidth() - this.options.marginImage.x, y: window.getHeight() - this.options.marginImage.y};
					var size = {x: this.image.width, y: this.image.height};
					for (var i = 0; i < 2; i++)
						if (size.x > win.x) {
							size.y *= win.x / size.x;
							size.x = win.x;
						} else if (size.y > win.y) {
							size.x *= win.y / size.y;
							size.y = win.y;
						}
					size = {x: parseInt(size.x), y: parseInt(size.y)};
					if (window.webkit419) this.image = new Element('img', {'src': this.image.src});
					else $(this.image);
					this.image.setProperties({
						'width': size.x,
						'height': size.y});
					this.applyContent(this.image, size);
				}.bind(this),
				failed: this.onError.bind(this)
			};
			(function() {
				this.src = url;
			}).delay(10, this.image);
			this.image.onload = events.loaded;
			this.image.onerror = this.image.onabort = events.failed;
		},
		'adopt': function(el) {
			return el.clone();
		},
		'url': function(url) {
			this.ajax = new Ajax(url, this.options.ajaxOptions);
			this.ajax.addEvent('onSuccess', function(resp) {
				this.applyContent(resp);
				this.ajax = null;
			}.bind(this));
			this.ajax.addEvent('onFailure', this.onError.bind(this));
			this.ajax.request.delay(10, this.ajax);
		},
		'iframe': function(url) {
			return new Element('iframe', {
				'src': url,
				'frameBorder': 0,
				'width': this.options.size.x,
				'height': this.options.size.y
			});
		},
		'string': function(str) {
			return str;
		}
	},

	extend: $extend
};

SqueezeBox.extend(Events.prototype);
SqueezeBox.extend(Options.prototype);
SqueezeBox.extend(Chain.prototype);

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

/******************************************************************************
Name:    Highslide JS
Version: 4.1.4 (April 17 2009)
Config:  default +events +unobtrusive +imagemap +slideshow +positioning +transitions +viewport +thumbstrip +inline +ajax +iframe +flash
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.
******************************************************************************/
var hs = {
// Language strings
lang : {
	cssDirection: 'ltr',
	loadingText : 'Loading...',
	loadingTitle : 'Click to cancel',
	focusTitle : 'Click to bring to front',
	fullExpandTitle : 'Expand to actual size (f)',
	creditsText : '',
	creditsTitle : '',
	previousText : 'Previous',
	nextText : 'Next', 
	moveText : 'Move',
	closeText : 'Close', 
	closeTitle : 'Close (esc)', 
	resizeTitle : 'Resize',
	playText : 'Play',
	playTitle : 'Play slideshow (spacebar)',
	pauseText : 'Pause',
	pauseTitle : 'Pause slideshow (spacebar)',
	previousTitle : 'Previous (arrow left)',
	nextTitle : 'Next (arrow right)',
	moveTitle : 'Move',
	fullExpandText : '1:1',
	number: 'Image %1 of %2',
	restoreTitle : 'Click to close image, click and drag to move. Use arrow keys for next and previous.'
},
// See http://highslide.com/ref for examples of settings  
graphicsDir : 'highslide/graphics/',
expandCursor : 'zoomin.cur', // null disables
restoreCursor : 'zoomout.cur', // null disables
expandDuration : 250, // milliseconds
restoreDuration : 250,
marginLeft : 15,
marginRight : 15,
marginTop : 15,
marginBottom : 15,
zIndexCounter : 1001, // adjust to other absolutely positioned elements
loadingOpacity : 0.75,
allowMultipleInstances: true,
numberOfImagesToPreload : 5,
outlineWhileAnimating : 2, // 0 = never, 1 = always, 2 = HTML only 
outlineStartOffset : 3, // ends at 10
padToMinWidth : false, // pad the popup width to make room for wide caption
fullExpandPosition : 'bottom right',
fullExpandOpacity : 1,
showCredits : true, // you can set this to false if you want
creditsHref : 'http://highslide.com/',
enableKeyListener : true,
openerTagNames : ['a', 'area'], // Add more to allow slideshow indexing
transitions : [],
transitionDuration: 250,
dimmingOpacity: 0, // Lightbox style dimming background
dimmingDuration: 50, // 0 for instant dimming

allowWidthReduction : false,
allowHeightReduction : true,
preserveContent : true, // Preserve changes made to the content and position of HTML popups.
objectLoadTime : 'before', // Load iframes 'before' or 'after' expansion.
cacheAjax : true, // Cache ajax popups for instant display. Can be overridden for each popup.
anchor : 'auto', // where the image expands from
align : 'auto', // position in the client (overrides anchor)
targetX: null, // the id of a target element
targetY: null,
dragByHeading: true,
minWidth: 200,
minHeight: 200,
allowSizeReduction: true, // allow the image to reduce to fit client size. If false, this overrides minWidth and minHeight
outlineType : 'drop-shadow', // set null to disable outlines
wrapperClassName : 'highslide-wrapper', // for enhanced css-control
skin : {
	controls:
		'<div class="highslide-controls"><ul>'+
			'<li class="highslide-previous">'+
				'<a href="#" title="{hs.lang.previousTitle}">'+
				'<span>{hs.lang.previousText}</span></a>'+
			'</li>'+
			'<li class="highslide-play">'+
				'<a href="#" title="{hs.lang.playTitle}">'+
				'<span>{hs.lang.playText}</span></a>'+
			'</li>'+
			'<li class="highslide-pause">'+
				'<a href="#" title="{hs.lang.pauseTitle}">'+
				'<span>{hs.lang.pauseText}</span></a>'+
			'</li>'+
			'<li class="highslide-next">'+
				'<a href="#" title="{hs.lang.nextTitle}">'+
				'<span>{hs.lang.nextText}</span></a>'+
			'</li>'+
			'<li class="highslide-move">'+
				'<a href="#" title="{hs.lang.moveTitle}">'+
				'<span>{hs.lang.moveText}</span></a>'+
			'</li>'+
			'<li class="highslide-full-expand">'+
				'<a href="#" title="{hs.lang.fullExpandTitle}">'+
				'<span>{hs.lang.fullExpandText}</span></a>'+
			'</li>'+
			'<li class="highslide-close">'+
				'<a href="#" title="{hs.lang.closeTitle}" >'+
				'<span>{hs.lang.closeText}</span></a>'+
			'</li>'+
		'</ul></div>'
	,
	contentWrapper:
		'<div class="highslide-header"><ul>'+
			'<li class="highslide-previous">'+
				'<a href="#" title="{hs.lang.previousTitle}" onclick="return hs.previous(this)">'+
				'<span>{hs.lang.previousText}</span></a>'+
			'</li>'+
			'<li class="highslide-next">'+
				'<a href="#" title="{hs.lang.nextTitle}" onclick="return hs.next(this)">'+
				'<span>{hs.lang.nextText}</span></a>'+
			'</li>'+
			'<li class="highslide-move">'+
				'<a href="#" title="{hs.lang.moveTitle}" onclick="return false">'+
				'<span>{hs.lang.moveText}</span></a>'+
			'</li>'+
			'<li class="highslide-close">'+
				'<a href="#" title="{hs.lang.closeTitle}" onclick="return hs.close(this)">'+
				'<span>{hs.lang.closeText}</span></a>'+
			'</li>'+
		'</ul></div>'+
		'<div class="highslide-body"></div>'+
		'<div class="highslide-footer"><div>'+
			'<span class="highslide-resize" title="{hs.lang.resizeTitle}"><span></span></span>'+
		'</div></div>'
},
// END OF YOUR SETTINGS


// declare internal properties
preloadTheseImages : [],
continuePreloading: true,
expanders : [],
overrides : [
	'allowSizeReduction',
	'useBox',
	'anchor',
	'align',
	'targetX',
	'targetY',
	'outlineType',
	'outlineWhileAnimating',
	'captionId',
	'captionText',
	'captionEval',
	'captionOverlay',
	'headingId',
	'headingText',
	'headingEval',
	'headingOverlay',
	'creditsPosition',
	'dragByHeading',
	'autoplay',
	'numberPosition',
	'transitions',
	'dimmingOpacity',
	
	'width',
	'height',
	
	'contentId',
	'allowWidthReduction',
	'allowHeightReduction',
	'preserveContent',
	'maincontentId',
	'maincontentText',
	'maincontentEval',
	'objectType',	
	'cacheAjax',	
	'objectWidth',
	'objectHeight',
	'objectLoadTime',	
	'swfOptions',
	'wrapperClassName',
	'minWidth',
	'minHeight',
	'maxWidth',
	'maxHeight',
	'slideshowGroup',
	'easing',
	'easingClose',
	'fadeInOut',
	'src'
],
overlays : [],
idCounter : 0,
oPos : {
	x: ['leftpanel', 'left', 'center', 'right', 'rightpanel'],
	y: ['above', 'top', 'middle', 'bottom', 'below']
},
mouse: {},
headingOverlay: {},
captionOverlay: {},
swfOptions: { flashvars: {}, params: {}, attributes: {} },
timers : [],

slideshows : [],

pendingOutlines : {},
sleeping : [],
preloadTheseAjax : [],
cacheBindings : [],
cachedGets : {},
clones : {},
onReady: [],
uaVersion: parseFloat((navigator.userAgent.toLowerCase().match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [0,'0'])[1]),
ie : (document.all && !window.opera),
safari : /Safari/.test(navigator.userAgent),
geckoMac : /Macintosh.+rv:1\.[0-8].+Gecko/.test(navigator.userAgent),

$ : function (id) {
	if (id) return document.getElementById(id);
},

push : function (arr, val) {
	arr[arr.length] = val;
},

createElement : function (tag, attribs, styles, parent, nopad) {
	var el = document.createElement(tag);
	if (attribs) hs.extend(el, attribs);
	if (nopad) hs.setStyles(el, {padding: 0, border: 'none', margin: 0});
	if (styles) hs.setStyles(el, styles);
	if (parent) parent.appendChild(el);	
	return el;
},

extend : function (el, attribs) {
	for (var x in attribs) el[x] = attribs[x];
	return el;
},

setStyles : function (el, styles) {
	for (var x in styles) {
		if (hs.ie && x == 'opacity') {
			if (styles[x] > 0.99) el.style.removeAttribute('filter');
			else el.style.filter = 'alpha(opacity='+ (styles[x] * 100) +')';
		}
		else el.style[x] = styles[x];
	}
},
animate: function(el, prop, opt) {
	var start,
		end,
		unit;
	if (typeof opt != 'object' || opt === null) {
		var args = arguments;
		opt = {
			duration: args[2],
			easing: args[3],
			complete: args[4]
		};
	}
	if (typeof opt.duration != 'number') opt.duration = 250;
	opt.easing = Math[opt.easing] || Math.easeInQuad;
	opt.curAnim = hs.extend({}, prop);
	for (var name in prop) {
		var e = new hs.fx(el, opt , name );
		
		start = parseFloat(hs.css(el, name)) || 0;
		end = parseFloat(prop[name]);
		unit = name != 'opacity' ? 'px' : '';
		
		e.custom( start, end, unit );
	}	
},
css: function(el, prop) {
	if (document.defaultView) {
		return document.defaultView.getComputedStyle(el, null).getPropertyValue(prop);

	} else {
		if (prop == 'opacity') prop = 'filter';
		var val = el.currentStyle[prop.replace(/\-(\w)/g, function (a, b){ return b.toUpperCase(); })];
		if (prop == 'filter') 
			val = val.replace(/alpha\(opacity=([0-9]+)\)/, 
				function (a, b) { return b / 100 });
		return val === '' ? 1 : val;
	} 
},

getPageSize : function () {
	var d = document, w = window, iebody = d.compatMode && d.compatMode != 'BackCompat' 
		? d.documentElement : d.body;	
	
	
	var b = d.body;
	var xScroll = (w.innerWidth && w.scrollMaxX) 
			? w.innerWidth + w.scrollMaxX : Math.max(b.scrollWidth, b.offsetWidth),
		yScroll = (w.innerHeight && window.scrollMaxY) 
			? w.innerHeight + w.scrollMaxY : Math.max(b.scrollHeight, b.offsetHeight),
		pageWidth = hs.ie ? iebody.scrollWidth :
			(d.documentElement.clientWidth || self.innerWidth),
      	pageHeight = hs.ie ? Math.max(iebody.scrollHeight, iebody.clientHeight) : 
			(d.documentElement.clientHeight || self.innerHeight);
	
	var width = hs.ie ? iebody.clientWidth : 
			(d.documentElement.clientWidth || self.innerWidth),
		height = hs.ie ? iebody.clientHeight : self.innerHeight;
	
	return {
		pageWidth: Math.max(pageWidth, xScroll),
		pageHeight: Math.max(pageHeight, yScroll),
		width: width,
		height: height,		
		scrollLeft: hs.ie ? iebody.scrollLeft : pageXOffset,
		scrollTop: hs.ie ? iebody.scrollTop : pageYOffset
	}
},

getPosition : function(el)	{
	if (/area/i.test(el.tagName)) {
		var imgs = document.getElementsByTagName('img');
		for (var i = 0; i < imgs.length; i++) {
			var u = imgs[i].useMap;
			if (u && u.replace(/^.*?#/, '') == el.parentNode.name) {
				el = imgs[i];
				break;
			}
		}
	}
	var p = { x: el.offsetLeft, y: el.offsetTop };
	while (el.offsetParent)	{
		el = el.offsetParent;
		p.x += el.offsetLeft;
		p.y += el.offsetTop;
		if (el != document.body && el != document.documentElement) {
			p.x -= el.scrollLeft;
			p.y -= el.scrollTop;
		}
	}
	return p;
},

expand : function(a, params, custom, type) {
	if (!a) a = hs.createElement('a', null, { display: 'none' }, hs.container);
	if (typeof a.getParams == 'function') return params;
	if (type == 'html') {
		for (var i = 0; i < hs.sleeping.length; i++) {
			if (hs.sleeping[i] && hs.sleeping[i].a == a) {
				hs.sleeping[i].awake();
				hs.sleeping[i] = null;
				return false;
			}
		}
		hs.hasHtmlExpanders = true;
	}	
	try {	
		new hs.Expander(a, params, custom, type);
		return false;
	} catch (e) { return true; }
},

htmlExpand : function(a, params, custom) {
	return hs.expand(a, params, custom, 'html');
},

getSelfRendered : function() {
	return hs.createElement('div', { 
		className: 'highslide-html-content', 
		innerHTML: hs.replaceLang(hs.skin.contentWrapper) 
	});
},
getElementByClass : function (el, tagName, className) {
	var els = el.getElementsByTagName(tagName);
	for (var i = 0; i < els.length; i++) {
    	if ((new RegExp(className)).test(els[i].className)) {
			return els[i];
		}
	}
	return null;
},
replaceLang : function(s) {
	s = s.replace(/\s/g, ' ');
	var re = /{hs\.lang\.([^}]+)\}/g,
		matches = s.match(re),
		lang;
	if (matches) for (var i = 0; i < matches.length; i++) {
		lang = matches[i].replace(re, "$1");
		if (typeof hs.lang[lang] != 'undefined') s = s.replace(matches[i], hs.lang[lang]);
	}
	return s;
},


setClickEvents : function () {
	var els = document.getElementsByTagName('a');
	for (var i = 0; i < els.length; i++) {
		var type = hs.isUnobtrusiveAnchor(els[i]);
		if (type && !els[i].hsHasSetClick) {
			(function(){
				var t = type;
				if (hs.fireEvent(hs, 'onSetClickEvent', { element: els[i], type: t })) {
					els[i].onclick =(type == 'image') ?function() { return hs.expand(this) }:
						function() { return hs.htmlExpand(this, { objectType: t } );};
				}
			})();
			els[i].hsHasSetClick = true;	
		}
	}
	hs.getAnchors();
},
isUnobtrusiveAnchor: function(el) {
	if (el.rel == 'highslide') return 'image';
	else if (el.rel == 'highslide-ajax') return 'ajax';
	else if (el.rel == 'highslide-iframe') return 'iframe';
	else if (el.rel == 'highslide-swf') return 'swf';
},

getCacheBinding : function (a) {
	for (var i = 0; i < hs.cacheBindings.length; i++) {
		if (hs.cacheBindings[i][0] == a) {
			var c = hs.cacheBindings[i][1];
			hs.cacheBindings[i][1] = c.cloneNode(1);
			return c;
		}
	}
	return null;
},

preloadAjax : function (e) {
	var arr = hs.getAnchors();
	for (var i = 0; i < arr.htmls.length; i++) {
		var a = arr.htmls[i];
		if (hs.getParam(a, 'objectType') == 'ajax' && hs.getParam(a, 'cacheAjax'))
			hs.push(hs.preloadTheseAjax, a);
	}
	
	hs.preloadAjaxElement(0);
},

preloadAjaxElement : function (i) {
	if (!hs.preloadTheseAjax[i]) return;
	var a = hs.preloadTheseAjax[i];
	var cache = hs.getNode(hs.getParam(a, 'contentId'));
	if (!cache) cache = hs.getSelfRendered();
	var ajax = new hs.Ajax(a, cache, 1);	
   	ajax.onError = function () { };
   	ajax.onLoad = function () {
   		hs.push(hs.cacheBindings, [a, cache]);
   		hs.preloadAjaxElement(i + 1);
   	};
   	ajax.run();
},

focusTopmost : function() {
	var topZ = 0, 
		topmostKey = -1,
		expanders = hs.expanders,
		exp,
		zIndex;
	for (var i = 0; i < expanders.length; i++) {
		exp = expanders[i];
		if (exp) {
			zIndex = exp.wrapper.style.zIndex;
			if (zIndex && zIndex > topZ) {
				topZ = zIndex;				
				topmostKey = i;
			}
		}
	}
	if (topmostKey == -1) hs.focusKey = -1;
	else expanders[topmostKey].focus();
},

getParam : function (a, param) {
	a.getParams = a.onclick;
	var p = a.getParams ? a.getParams() : null;
	a.getParams = null;
	
	return (p && typeof p[param] != 'undefined') ? p[param] : 
		(typeof hs[param] != 'undefined' ? hs[param] : null);
},

getSrc : function (a) {
	var src = hs.getParam(a, 'src');
	if (src) return src;
	return a.href;
},

getNode : function (id) {
	var node = hs.$(id), clone = hs.clones[id], a = {};
	if (!node && !clone) return null;
	if (!clone) {
		clone = node.cloneNode(true);
		clone.id = '';
		hs.clones[id] = clone;
		return node;
	} else {
		return clone.cloneNode(true);
	}
},

discardElement : function(d) {
	hs.garbageBin.appendChild(d);
	hs.garbageBin.innerHTML = '';
},
dim : function(exp) {
	if (!hs.dimmer) {
		hs.dimmer = hs.createElement ('div', 
			{ 
				className: 'highslide-dimming',
				owner: '',
				onclick: function() {
					if (hs.fireEvent(hs, 'onDimmerClick'))
					 
						hs.close();
				}
			}, { 
				position: 'absolute',
				visibility: 'visible',
				left: 0,
				opacity: 0 
			}, hs.container, true);
		hs.addEventListener(window, 'resize', hs.setDimmerSize);
	}
	hs.dimmer.style.display = '';
	hs.setDimmerSize();
	hs.dimmer.owner += '|'+ exp.key;
	if (hs.geckoMac && hs.dimmingGeckoFix) 
		hs.setStyles(hs.dimmer, {
			background: 'url('+ hs.graphicsDir + 'geckodimmer.png)',
			opacity: 1
		});
	else
		hs.animate(hs.dimmer, { opacity: exp.dimmingOpacity }, hs.dimmingDuration);
},
undim : function(key) {
	if (!hs.dimmer) return;
	if (typeof key != 'undefined') hs.dimmer.owner = hs.dimmer.owner.replace('|'+ key, '');
	
	if (
		(typeof key != 'undefined' && hs.dimmer.owner != '')
		|| (hs.upcoming && hs.getParam(hs.upcoming, 'dimmingOpacity'))
	) return;
	if (hs.geckoMac && hs.dimmingGeckoFix) 
		hs.setStyles(hs.dimmer, { background: 'none', width: 0, height: 0 });
	else hs.animate(hs.dimmer, { opacity: 0 }, hs.dimmingDuration, null, function() {
		hs.setStyles(hs.dimmer, { display: 'none', width: 0, height: 0 });
	});
},
setDimmerSize : function(exp) {
	if (!hs.dimmer) return;
	var h = (hs.ie && exp && exp.wrapper) ? 
		parseInt(exp.wrapper.style.top) + parseInt(exp.wrapper.style.height)+ (exp.outline ? exp.outline.offset : 0) : 0; 
	hs.setStyles(hs.dimmer, { 
		width: hs.page.pageWidth +'px', 
		height: Math.max(hs.page.pageHeight, h) +'px'
	});
},
transit : function (adj, exp) {
	var last = exp = exp || hs.getExpander();
	if (hs.upcoming) return false;
	else hs.last = last;
	try {
		hs.upcoming = adj;
		adj.onclick(); 		
	} catch (e){
		hs.last = hs.upcoming = null;
	}
	try {
		if (!adj || exp.transitions[1] != 'crossfade')
		exp.close();
	} catch (e) {}
	return false;
},

previousOrNext : function (el, op) {
	var exp = hs.getExpander(el);
	if (exp) {
		adj = exp.getAdjacentAnchor(op);
		return hs.transit(adj, exp);
	} else return false;
},

previous : function (el) {
	return hs.previousOrNext(el, -1);
},

next : function (el) {
	return hs.previousOrNext(el, 1);	
},

keyHandler : function(e) {
	if (!e) e = window.event;
	if (!e.target) e.target = e.srcElement; // ie
	if (typeof e.target.form != 'undefined') return true; // form element has focus
	if (!hs.fireEvent(hs, 'onKeyDown', e)) return true;
	var exp = hs.getExpander();
	
	var op = null;
	switch (e.keyCode) {
		case 70: // f
			if (exp) exp.doFullExpand();
			return true;
		case 32: // Space
			op = 2;
			break;
		case 34: // Page Down
		case 39: // Arrow right
		case 40: // Arrow down
			op = 1;
			break;
		case 8:  // Backspace
		case 33: // Page Up
		case 37: // Arrow left
		case 38: // Arrow up
			op = -1;
			break;
		case 27: // Escape
		case 13: // Enter
			op = 0;
	}
	if (op !== null) {if (op != 2)hs.removeEventListener(document, window.opera ? 'keypress' : 'keydown', hs.keyHandler);
		if (!hs.enableKeyListener) return true;
		
		if (e.preventDefault) e.preventDefault();
    	else e.returnValue = false;
    	if (exp) {
			if (op == 0) {
				exp.close();
			} else if (op == 2) {
				if (exp.slideshow) exp.slideshow.hitSpace();
			} else {
				if (exp.slideshow) exp.slideshow.pause();
				hs.previousOrNext(exp.key, op);
			}
			return false;
		}
	}
	return true;
},


registerOverlay : function (overlay) {
	hs.push(hs.overlays, hs.extend(overlay, { hsId: 'hsId'+ hs.idCounter++ } ));
},


addSlideshow : function (options) {
	var sg = options.slideshowGroup;
	if (typeof sg == 'object') {
		for (var i = 0; i < sg.length; i++) {
			var o = {};
			for (var x in options) o[x] = options[x];
			o.slideshowGroup = sg[i];
			hs.push(hs.slideshows, o);
		}
	} else {
		hs.push(hs.slideshows, options);
	}
},

getWrapperKey : function (element, expOnly) {
	var el, re = /^highslide-wrapper-([0-9]+)$/;
	// 1. look in open expanders
	el = element;
	while (el.parentNode)	{
		if (el.hsKey !== undefined) return el.hsKey;
		if (el.id && re.test(el.id)) return el.id.replace(re, "$1");
		el = el.parentNode;
	}
	// 2. look in thumbnail
	if (!expOnly) {
		el = element;
		while (el.parentNode)	{
			if (el.tagName && hs.isHsAnchor(el)) {
				for (var key = 0; key < hs.expanders.length; key++) {
					var exp = hs.expanders[key];
					if (exp && exp.a == el) return key;
				}
			}
			el = el.parentNode;
		}
	}
	return null; 
},

getExpander : function (el, expOnly) {
	if (typeof el == 'undefined') return hs.expanders[hs.focusKey] || null;
	if (typeof el == 'number') return hs.expanders[el] || null;
	if (typeof el == 'string') el = hs.$(el);
	return hs.expanders[hs.getWrapperKey(el, expOnly)] || null;
},

isHsAnchor : function (a) {
	return (a.onclick && a.onclick.toString().replace(/\s/g, ' ').match(/hs.(htmlE|e)xpand/));
},

reOrder : function () {
	for (var i = 0; i < hs.expanders.length; i++)
		if (hs.expanders[i] && hs.expanders[i].isExpanded) hs.focusTopmost();
},
fireEvent : function (obj, evt, args) {
	return obj && obj[evt] ? (obj[evt](obj, args) !== false) : true;
},

mouseClickHandler : function(e) 
{	
	if (!e) e = window.event;
	if (e.button > 1) return true;
	if (!e.target) e.target = e.srcElement;
	
	var el = e.target;
	while (el.parentNode
		&& !(/highslide-(image|move|html|resize)/.test(el.className)))
	{
		el = el.parentNode;
	}
	var exp = hs.getExpander(el);
	if (exp && (exp.isClosing || !exp.isExpanded)) return true;
		
	if (exp && e.type == 'mousedown') {
		if (e.target.form) return true;
		var match = el.className.match(/highslide-(image|move|resize)/);
		if (match) {
			hs.dragArgs = { exp: exp , type: match[1], left: exp.x.pos, width: exp.x.size, top: exp.y.pos, 
				height: exp.y.size, clickX: e.clientX, clickY: e.clientY };
			
			
			hs.addEventListener(document, 'mousemove', hs.dragHandler);
			if (e.preventDefault) e.preventDefault(); // FF
			
			if (/highslide-(image|html)-blur/.test(exp.content.className)) {
				exp.focus();
				hs.hasFocused = true;
			}
			return false;
		}
		else if (/highslide-html/.test(el.className) && hs.focusKey != exp.key) {
			exp.focus();
			exp.doShowHide('hidden');
		}
	} else if (e.type == 'mouseup') {
		
		hs.removeEventListener(document, 'mousemove', hs.dragHandler);
		
		if (hs.dragArgs) {
			if (hs.styleRestoreCursor && hs.dragArgs.type == 'image') 
				hs.dragArgs.exp.content.style.cursor = hs.styleRestoreCursor;
			var hasDragged = hs.dragArgs.hasDragged;
			
			if (!hasDragged &&!hs.hasFocused && !/(move|resize)/.test(hs.dragArgs.type)) {
				if (hs.fireEvent(exp, 'onImageClick'))
				exp.close();
			} 
			else if (hasDragged || (!hasDragged && hs.hasHtmlExpanders)) {
				hs.dragArgs.exp.doShowHide('hidden');
			}
			
			if (hs.dragArgs.exp.releaseMask) 
				hs.dragArgs.exp.releaseMask.style.display = 'none';
			
			if (hasDragged) hs.fireEvent(hs.dragArgs.exp, 'onDrop', hs.dragArgs);
			if (hasDragged) hs.setDimmerSize(exp);
			
			hs.hasFocused = false;
			hs.dragArgs = null;
		
		} else if (/highslide-image-blur/.test(el.className)) {
			el.style.cursor = hs.styleRestoreCursor;		
		}
	}
	return false;
},

dragHandler : function(e)
{
	if (!hs.dragArgs) return true;
	if (!e) e = window.event;
	var a = hs.dragArgs, exp = a.exp;
	if (exp.iframe) {		
		if (!exp.releaseMask) exp.releaseMask = hs.createElement('div', null, 
			{ position: 'absolute', width: exp.x.size+'px', height: exp.y.size+'px', 
				left: exp.x.cb+'px', top: exp.y.cb+'px', zIndex: 4,	background: (hs.ie ? 'white' : 'none'), 
				opacity: .01 }, 
			exp.wrapper, true);
		if (exp.releaseMask.style.display == 'none')
			exp.releaseMask.style.display = '';
	}
	
	a.dX = e.clientX - a.clickX;
	a.dY = e.clientY - a.clickY;	
	
	var distance = Math.sqrt(Math.pow(a.dX, 2) + Math.pow(a.dY, 2));
	if (!a.hasDragged) a.hasDragged = (a.type != 'image' && distance > 0)
		|| (distance > (hs.dragSensitivity || 5));
	
	if (a.hasDragged && e.clientX > 5 && e.clientY > 5) {
		if (!hs.fireEvent(exp, 'onDrag', a)) return false;
		
		if (a.type == 'resize') exp.resize(a);
		else {
			exp.moveTo(a.left + a.dX, a.top + a.dY);
			if (a.type == 'image') exp.content.style.cursor = 'move';
		}
	}
	return false;
},

wrapperMouseHandler : function (e) {
	try {
		if (!e) e = window.event;
		var over = /mouseover/i.test(e.type); 
		if (!e.target) e.target = e.srcElement; // ie
		if (hs.ie) e.relatedTarget = 
			over ? e.fromElement : e.toElement; // ie
		var exp = hs.getExpander(e.target);
		if (!exp.isExpanded) return;
		if (!exp || !e.relatedTarget || hs.getExpander(e.relatedTarget, true) == exp 
			|| hs.dragArgs) return;
		hs.fireEvent(exp, over ? 'onMouseOver' : 'onMouseOut', e);
		for (var i = 0; i < exp.overlays.length; i++) (function() {
			var o = hs.$('hsId'+ exp.overlays[i]);
			if (o && o.hideOnMouseOut) {
				if (over) hs.setStyles(o, { visibility: 'visible' });
				hs.animate(o, { opacity: over ? o.opacity : 0 }, o.dur);
			}
		})();	
	} catch (e) {}
},
addEventListener : function (el, event, func) {
	if (el == document && event == 'ready') hs.push(hs.onReady, func);
	try {
		el.addEventListener(event, func, false);
	} catch (e) {
		try {
			el.detachEvent('on'+ event, func);
			el.attachEvent('on'+ event, func);
		} catch (e) {
			el['on'+ event] = func;
		}
	} 
},

removeEventListener : function (el, event, func) {
	try {
		el.removeEventListener(event, func, false);
	} catch (e) {
		try {
			el.detachEvent('on'+ event, func);
		} catch (e) {
			el['on'+ event] = null;
		}
	}
},

preloadFullImage : function (i) {
	if (hs.continuePreloading && hs.preloadTheseImages[i] && hs.preloadTheseImages[i] != 'undefined') {
		var img = document.createElement('img');
		img.onload = function() { 
			img = null;
			hs.preloadFullImage(i + 1);
		};
		img.src = hs.preloadTheseImages[i];
	}
},
preloadImages : function (number) {
	if (number && typeof number != 'object') hs.numberOfImagesToPreload = number;
	
	var arr = hs.getAnchors();
	for (var i = 0; i < arr.images.length && i < hs.numberOfImagesToPreload; i++) {
		hs.push(hs.preloadTheseImages, hs.getSrc(arr.images[i]));
	}
	
	// preload outlines
	if (hs.outlineType)	new hs.Outline(hs.outlineType, function () { hs.preloadFullImage(0)} );
	else
	
	hs.preloadFullImage(0);
	
	// preload cursor
	if (hs.restoreCursor) var cur = hs.createElement('img', { src: hs.graphicsDir + hs.restoreCursor });
},


init : function () {
	if (!hs.container) {
	
		hs.page = hs.getPageSize();
		hs.ieLt7 = hs.ie && hs.uaVersion < 7;
		hs.ie6SSL = hs.ieLt7 && location.protocol == 'https:';
		for (var x in hs.langDefaults) {
			if (typeof hs[x] != 'undefined') hs.lang[x] = hs[x];
			else if (typeof hs.lang[x] == 'undefined' && typeof hs.langDefaults[x] != 'undefined') 
				hs.lang[x] = hs.langDefaults[x];
		}
		
		hs.container = hs.createElement('div', {
				className: 'highslide-container'
			}, {
				position: 'absolute', 
				left: 0, 
				top: 0, 
				width: '100%', 
				zIndex: hs.zIndexCounter,
				direction: 'ltr'
			}, 
			document.body,
			true
		);
		hs.loading = hs.createElement('a', {
				className: 'highslide-loading',
				title: hs.lang.loadingTitle,
				innerHTML: hs.lang.loadingText,
				href: 'javascript:;'
			}, {
				position: 'absolute',
				top: '-9999px',
				opacity: hs.loadingOpacity,
				zIndex: 1
			}, hs.container
		);
		hs.garbageBin = hs.createElement('div', null, { display: 'none' }, hs.container);
		hs.viewport = hs.createElement('div', {
				className: 'highslide-viewport'
			}, null, hs.container, 1
		);
		hs.clearing = hs.createElement('div', null, 
			{ clear: 'both', paddingTop: '1px' }, null, true);
		
		// http://www.robertpenner.com/easing/ 
		Math.linearTween = function (t, b, c, d) {
			return c*t/d + b;
		};
		Math.easeInQuad = function (t, b, c, d) {
			return c*(t/=d)*t + b;
		};
		Math.easeOutQuad = function (t, b, c, d) {
			return -c *(t/=d)*(t-2) + b;
		};
		
		hs.hideSelects = hs.ieLt7;
		hs.hideIframes = ((window.opera && hs.uaVersion < 9) || navigator.vendor == 'KDE' 
			|| (hs.ie && hs.uaVersion < 5.5));
		hs.fireEvent(this, 'onActivate');
	}
},
ready : function() {
	if (hs.isReady) return;
	hs.isReady = true;
	
	for (var i = 0; i < hs.onReady.length; i++) hs.onReady[i]();
},

updateAnchors : function() {
	var el, els, all = [], images = [], htmls = [],groups = {}, re;
		
	for (var i = 0; i < hs.openerTagNames.length; i++) {
		els = document.getElementsByTagName(hs.openerTagNames[i]);
		for (var j = 0; j < els.length; j++) {
			el = els[j];
			re = hs.isHsAnchor(el);
			if (re) {
				hs.push(all, el);
				if (re[0] == 'hs.expand') hs.push(images, el);
				else if (re[0] == 'hs.htmlExpand') hs.push(htmls, el);
				var g = hs.getParam(el, 'slideshowGroup') || 'none';
				if (!groups[g]) groups[g] = [];
				hs.push(groups[g], el);
			}
		}
	}
	hs.anchors = { all: all, groups: groups, images: images, htmls: htmls };
	return hs.anchors;
	
},

getAnchors : function() {
	return hs.anchors || hs.updateAnchors();
},


close : function(el) {
	var exp = hs.getExpander(el);
	if (exp) exp.close();
	return false;
}
}; // end hs object
hs.fx = function( elem, options, prop ){
	this.options = options;
	this.elem = elem;
	this.prop = prop;

	if (!options.orig) options.orig = {};
};
hs.fx.prototype = {
	update: function(){
		(hs.fx.step[this.prop] || hs.fx.step._default)(this);
		
		if (this.options.step)
			this.options.step.call(this.elem, this.now, this);

	},
	custom: function(from, to, unit){
		this.startTime = (new Date()).getTime();
		this.start = from;
		this.end = to;
		this.unit = unit;// || this.unit || "px";
		this.now = this.start;
		this.pos = this.state = 0;

		var self = this;
		function t(gotoEnd){
			return self.step(gotoEnd);
		}

		t.elem = this.elem;

		if ( t() && hs.timers.push(t) == 1 ) {
			hs.timerId = setInterval(function(){
				var timers = hs.timers;

				for ( var i = 0; i < timers.length; i++ )
					if ( !timers[i]() )
						timers.splice(i--, 1);

				if ( !timers.length ) {
					clearInterval(hs.timerId);
				}
			}, 13);
		}
	},
	step: function(gotoEnd){
		var t = (new Date()).getTime();
		if ( gotoEnd || t >= this.options.duration + this.startTime ) {
			this.now = this.end;
			this.pos = this.state = 1;
			this.update();

			this.options.curAnim[ this.prop ] = true;

			var done = true;
			for ( var i in this.options.curAnim )
				if ( this.options.curAnim[i] !== true )
					done = false;

			if ( done ) {
				if (this.options.complete) this.options.complete.call(this.elem);
			}
			return false;
		} else {
			var n = t - this.startTime;
			this.state = n / this.options.duration;
			this.pos = this.options.easing(n, 0, 1, this.options.duration);
			this.now = this.start + ((this.end - this.start) * this.pos);
			this.update();
		}
		return true;
	}

};

hs.extend( hs.fx, {
	step: {

		opacity: function(fx){
			hs.setStyles(fx.elem, { opacity: fx.now });
		},

		_default: function(fx){
			if ( fx.elem.style && fx.elem.style[ fx.prop ] != null )
				fx.elem.style[ fx.prop ] = fx.now + fx.unit;
			else
				fx.elem[ fx.prop ] = fx.now;
		}
	}
});

hs.Outline =  function (outlineType, onLoad) {
	this.onLoad = onLoad;
	this.outlineType = outlineType;
	var v = hs.uaVersion, tr;
	
	this.hasAlphaImageLoader = hs.ie && v >= 5.5 && v < 7;
	if (!outlineType) {
		if (onLoad) onLoad();
		return;
	}
	
	hs.init();
	this.table = hs.createElement(
		'table', { 
			cellSpacing: 0 
		}, {
			visibility: 'hidden',
			position: 'absolute',
			borderCollapse: 'collapse',
			width: 0
		},
		hs.container,
		true
	);
	var tbody = hs.createElement('tbody', null, null, this.table, 1);
	
	this.td = [];
	for (var i = 0; i <= 8; i++) {
		if (i % 3 == 0) tr = hs.createElement('tr', null, { height: 'auto' }, tbody, true);
		this.td[i] = hs.createElement('td', null, null, tr, true);
		var style = i != 4 ? { lineHeight: 0, fontSize: 0} : { position : 'relative' };
		hs.setStyles(this.td[i], style);
	}
	this.td[4].className = outlineType +' highslide-outline';
	
	this.preloadGraphic(); 
};

hs.Outline.prototype = {
preloadGraphic : function () {
	var src = hs.graphicsDir + (hs.outlinesDir || "outlines/")+ this.outlineType +".png";
				
	var appendTo = hs.safari ? hs.container : null;
	this.graphic = hs.createElement('img', null, { position: 'absolute', 
		top: '-9999px' }, appendTo, true); // for onload trigger
	
	var pThis = this;
	this.graphic.onload = function() { pThis.onGraphicLoad(); };
	
	this.graphic.src = src;
},

onGraphicLoad : function () {
	var o = this.offset = this.graphic.width / 4,
		pos = [[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],
		dim = { height: (2*o) +'px', width: (2*o) +'px' };
	for (var i = 0; i <= 8; i++) {
		if (pos[i]) {
			if (this.hasAlphaImageLoader) {
				var w = (i == 1 || i == 7) ? '100%' : this.graphic.width +'px';
				var div = hs.createElement('div', null, { width: '100%', height: '100%', position: 'relative', overflow: 'hidden'}, this.td[i], true);
				hs.createElement ('div', null, { 
						filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale, src='"+ this.graphic.src + "')", 
						position: 'absolute',
						width: w, 
						height: this.graphic.height +'px',
						left: (pos[i][0]*o)+'px',
						top: (pos[i][1]*o)+'px'
					}, 
				div,
				true);
			} else {
				hs.setStyles(this.td[i], { background: 'url('+ this.graphic.src +') '+ (pos[i][0]*o)+'px '+(pos[i][1]*o)+'px'});
			}
			
			if (window.opera && (i == 3 || i ==5)) 
				hs.createElement('div', null, dim, this.td[i], true);
			
			hs.setStyles (this.td[i], dim);
		}
	}
	this.graphic = null;
	if (hs.pendingOutlines[this.outlineType]) hs.pendingOutlines[this.outlineType].destroy();
	hs.pendingOutlines[this.outlineType] = this;
	if (this.onLoad) this.onLoad();
},
	
setPosition : function (pos, offset, vis, dur, easing) {
	var exp = this.exp,
		stl = exp.wrapper.style,
		offset = offset || 0,
		pos = pos || {
			x: exp.x.pos + offset,
			y: exp.y.pos + offset,
			w: exp.x.get('wsize') - 2 * offset,
			h: exp.y.get('wsize') - 2 * offset
		};
	if (vis) this.table.style.visibility = (pos.h >= 4 * this.offset) 
		? 'visible' : 'hidden';
	hs.setStyles(this.table, {
		left: (pos.x - this.offset) +'px',
		top: (pos.y - this.offset) +'px',
		width: (pos.w + 2 * this.offset) +'px'
	});
	
	pos.w -= 2 * this.offset;
	pos.h -= 2 * this.offset;
	hs.setStyles (this.td[4], {
		width: pos.w >= 0 ? pos.w +'px' : 0,
		height: pos.h >= 0 ? pos.h +'px' : 0
	});
	if (this.hasAlphaImageLoader) this.td[3].style.height 
		= this.td[5].style.height = this.td[4].style.height;	
	
},
	
destroy : function(hide) {
	if (hide) this.table.style.visibility = 'hidden';
	else hs.discardElement(this.table);
}
};

hs.Dimension = function(exp, dim) {
	this.exp = exp;
	this.dim = dim;
	this.ucwh = dim == 'x' ? 'Width' : 'Height';
	this.wh = this.ucwh.toLowerCase();
	this.uclt = dim == 'x' ? 'Left' : 'Top';
	this.lt = this.uclt.toLowerCase();
	this.ucrb = dim == 'x' ? 'Right' : 'Bottom';
	this.rb = this.ucrb.toLowerCase();
	this.p1 = this.p2 = 0;
};
hs.Dimension.prototype = {
get : function(key) {
	switch (key) {
		case 'loadingPos':
			return this.tpos + this.tb + (this.t - hs.loading['offset'+ this.ucwh]) / 2;
		case 'loadingPosXfade':
			return this.pos + this.cb+ this.p1 + (this.size - hs.loading['offset'+ this.ucwh]) / 2;
		case 'wsize':
			return this.size + 2 * this.cb + this.p1 + this.p2;
		case 'fitsize':
			return this.clientSize - this.marginMin - this.marginMax;
		case 'maxsize':
			return this.get('fitsize') - 2 * this.cb - this.p1 - this.p2 ;
		case 'opos':
			return this.pos - (this.exp.outline ? this.exp.outline.offset : 0);
		case 'osize':
			return this.get('wsize') + (this.exp.outline ? 2*this.exp.outline.offset : 0);
		case 'imgPad':
			return this.imgSize ? Math.round((this.size - this.imgSize) / 2) : 0;
		
	}
},
calcBorders: function() {
	// correct for borders
	this.cb = (this.exp.content['offset'+ this.ucwh] - this.t) / 2;
	this.marginMax = hs['margin'+ this.ucrb] + 2 * this.cb;
},
calcThumb: function() {
	this.t = this.exp.el[this.wh] ? parseInt(this.exp.el[this.wh]) : 
		this.exp.el['offset'+ this.ucwh];
	this.tpos = this.exp.tpos[this.dim];
	this.tb = (this.exp.el['offset'+ this.ucwh] - this.t) / 2;
	if (this.tpos == 0) {
		this.tpos = (hs.page[this.wh] / 2) + hs.page['scroll'+ this.uclt];		
	};
},
calcExpanded: function() {
	var exp = this.exp;
	this.justify = 'auto';
	
	// get alignment
	if (exp.align == 'center') this.justify = 'center';
	else if (new RegExp(this.lt).test(exp.anchor)) this.justify = null;
	else if (new RegExp(this.rb).test(exp.anchor)) this.justify = 'max';
	
	
	// size and position
	this.pos = this.tpos - this.cb + this.tb;
	this.size = Math.min(this.full, exp['max'+ this.ucwh] || this.full);
	this.minSize = exp.allowSizeReduction ? 
		Math.min(exp['min'+ this.ucwh], this.full) :this.full;
	if (exp.isImage && exp.useBox)	{
		this.size = exp[this.wh];
		this.imgSize = this.full;
	}
	if (this.dim == 'x' && hs.padToMinWidth) this.minSize = exp.minWidth;
	this.target = exp['target'+ this.dim.toUpperCase()];
	this.marginMin = hs['margin'+ this.uclt];
	this.scroll = hs.page['scroll'+ this.uclt];
	this.clientSize = hs.page[this.wh];
},
setSize: function(i) {
	var exp = this.exp;
	if (exp.isImage && (exp.useBox || hs.padToMinWidth)) {
		this.imgSize = i;
		this.size = Math.max(this.size, this.imgSize);
		exp.content.style[this.lt] = this.get('imgPad')+'px';
	} else
	this.size = i;

	exp.content.style[this.wh] = i +'px';
	exp.wrapper.style[this.wh] = this.get('wsize') +'px';
	if (exp.outline) exp.outline.setPosition();
	if (exp.releaseMask) exp.releaseMask.style[this.wh] = i +'px';
	if (exp.isHtml) {
		var d = exp.scrollerDiv;
		if (this.sizeDiff === undefined)
			this.sizeDiff = exp.innerContent['offset'+ this.ucwh] - d['offset'+ this.ucwh];
		d.style[this.wh] = (this.size - this.sizeDiff) +'px';
			
		if (this.dim == 'x') exp.mediumContent.style.width = 'auto';
		if (exp.body) exp.body.style[this.wh] = 'auto';		
	}
	if (this.dim == 'x' && exp.overlayBox) exp.sizeOverlayBox(true);
	if (this.dim == 'x' && exp.slideshow && exp.isImage) {
		if (i == this.full) exp.slideshow.disable('full-expand');
		else exp.slideshow.enable('full-expand');
	}
},
setPos: function(i) {
	this.pos = i;
	this.exp.wrapper.style[this.lt] = i +'px';	
	
	if (this.exp.outline) this.exp.outline.setPosition();
	
}
};

hs.Expander = function(a, params, custom, contentType) {
	if (document.readyState && hs.ie && !hs.isReady) {
		hs.addEventListener(document, 'ready', function() {
			new hs.Expander(a, params, custom, contentType);
		});
		return;
	} 
	this.a = a;
	this.custom = custom;
	this.contentType = contentType || 'image';
	this.isHtml = (contentType == 'html');
	this.isImage = !this.isHtml;
	
	hs.continuePreloading = false;
	this.overlays = [];
	this.last = hs.last;
	hs.last = null;
	hs.init();
	var key = this.key = hs.expanders.length;
	// override inline parameters
	for (var i = 0; i < hs.overrides.length; i++) {
		var name = hs.overrides[i];
		this[name] = params && typeof params[name] != 'undefined' ?
			params[name] : hs[name];
	}
	if (!this.src) this.src = a.href;
	
	// get thumb
	var el = (params && params.thumbnailId) ? hs.$(params.thumbnailId) : a;
	el = this.thumb = el.getElementsByTagName('img')[0] || el;
	this.thumbsUserSetId = el.id || a.id;
	if (!hs.fireEvent(this, 'onInit')) return true;
	
	// check if already open
	for (var i = 0; i < hs.expanders.length; i++) {
		if (hs.expanders[i] && hs.expanders[i].a == a 
			&& !(this.last && this.transitions[1] == 'crossfade')) {
			hs.expanders[i].focus();
			return false;
		}
	}	

	// cancel other
	for (var i = 0; i < hs.expanders.length; i++) {
		if (hs.expanders[i] && hs.expanders[i].thumb != el && !hs.expanders[i].onLoadStarted) {
			hs.expanders[i].cancelLoading();
		}
	}
	hs.expanders[this.key] = this;
	if (!hs.allowMultipleInstances && !hs.upcoming) {
		if (hs.expanders[key-1]) hs.expanders[key-1].close();
		if (typeof hs.focusKey != 'undefined' && hs.expanders[hs.focusKey])
			hs.expanders[hs.focusKey].close();
	}
	
	// initiate metrics
	this.el = el;
	this.tpos = hs.getPosition(el);
	hs.page = hs.getPageSize();
	var x = this.x = new hs.Dimension(this, 'x');
	x.calcThumb();
	var y = this.y = new hs.Dimension(this, 'y');
	y.calcThumb();
	if (/area/i.test(el.tagName)) this.getImageMapAreaCorrection(el);
	this.wrapper = hs.createElement(
		'div', {
			id: 'highslide-wrapper-'+ this.key,
			className: this.wrapperClassName
		}, {
			visibility: 'hidden',
			position: 'absolute',
			zIndex: hs.zIndexCounter++
		}, null, true );
	
	this.wrapper.onmouseover = this.wrapper.onmouseout = hs.wrapperMouseHandler;
	if (this.contentType == 'image' && this.outlineWhileAnimating == 2)
		this.outlineWhileAnimating = 0;
	
	// get the outline
	if (!this.outlineType 
		|| (this.last && this.isImage && this.transitions[1] == 'crossfade')) {
		this[this.contentType +'Create']();
	
	} else if (hs.pendingOutlines[this.outlineType]) {
		this.connectOutline();
		this[this.contentType +'Create']();
	
	} else {
		this.showLoading();
		var exp = this;
		new hs.Outline(this.outlineType, 
			function () {
				exp.connectOutline();
				exp[exp.contentType +'Create']();
			} 
		);
	}
	return true;
};

hs.Expander.prototype = {
error : function(e) {
	//alert ('Line '+ e.lineNumber +': '+ e.message);
	window.location.href = this.src;
},

connectOutline : function() {
	var outline = this.outline = hs.pendingOutlines[this.outlineType];
	outline.exp = this;
	outline.table.style.zIndex = this.wrapper.style.zIndex;
	hs.pendingOutlines[this.outlineType] = null;
},

showLoading : function() {
	if (this.onLoadStarted || this.loading) return;
	
	this.loading = hs.loading;
	var exp = this;
	this.loading.onclick = function() {
		exp.cancelLoading();
	};
	
	
	if (!hs.fireEvent(this, 'onShowLoading')) return;
	var exp = this, 
		l = this.x.get('loadingPos') +'px',
		t = this.y.get('loadingPos') +'px';
	if (!tgt && this.last && this.transitions[1] == 'crossfade') 
		var tgt = this.last; 
	if (tgt) {
		l = tgt.x.get('loadingPosXfade') +'px';
		t = tgt.y.get('loadingPosXfade') +'px';
		this.loading.style.zIndex = hs.zIndexCounter++;
	}
	setTimeout(function () { 
		if (exp.loading) hs.setStyles(exp.loading, { left: l, top: t, zIndex: hs.zIndexCounter++ })}
	, 100);
},

imageCreate : function() {
	var exp = this;
	
	var img = document.createElement('img');
    this.content = img;
    img.onload = function () {
    	if (hs.expanders[exp.key]) exp.contentLoaded(); 
	};
    if (hs.blockRightClick) img.oncontextmenu = function() { return false; };
    img.className = 'highslide-image';
    hs.setStyles(img, {
    	visibility: 'hidden',
    	display: 'block',
    	position: 'absolute',
		maxWidth: '9999px',
		zIndex: 3
	});
    img.title = hs.lang.restoreTitle;
    if (hs.safari) hs.container.appendChild(img);
    if (hs.ie) img.src = 'res://';
	img.src = this.src;
	
	this.showLoading();
},

htmlCreate : function () {
	if (!hs.fireEvent(this, 'onBeforeGetContent')) return;
	
	this.content = hs.getCacheBinding(this.a);
	if (!this.content) 
		this.content = hs.getNode(this.contentId);
	if (!this.content) 
		this.content = hs.getSelfRendered();
	this.getInline(['maincontent']);
	if (this.maincontent) {
		var body = hs.getElementByClass(this.content, 'div', 'highslide-body');
		if (body) body.appendChild(this.maincontent);
		this.maincontent.style.display = 'block';
	}
	hs.fireEvent(this, 'onAfterGetContent');
	
	this.innerContent = this.content;
	
	if (/(swf|iframe)/.test(this.objectType)) this.setObjContainerSize(this.innerContent);
	
	// the content tree
	hs.container.appendChild(this.wrapper);
	hs.setStyles( this.wrapper, { 
		position: 'static',
		padding: '0 '+ hs.marginRight +'px 0 '+ hs.marginLeft +'px'
	});
	this.content = hs.createElement(
    	'div', {
    		className: 'highslide-html' 
    	}, {
			position: 'relative',
			zIndex: 3,
			overflow: 'hidden'
		},
		this.wrapper
	);
	this.mediumContent = hs.createElement('div', null, null, this.content, 1);
	this.mediumContent.appendChild(this.innerContent);
	
	hs.setStyles (this.innerContent, { 
		position: 'relative',
		display: 'block',
		direction: hs.lang.cssDirection || ''
	});
	if (this.width) this.innerContent.style.width = this.width+'px';
	if (this.height) this.innerContent.style.height = this.height+'px';
	if (this.innerContent.offsetWidth < this.minWidth)
		this.innerContent.style.width = this.minWidth +'px';
	
    
	if (this.objectType == 'ajax' && !hs.getCacheBinding(this.a)) {
		this.showLoading();
    	var ajax = new hs.Ajax(this.a, this.innerContent);
    	var exp = this;
    	ajax.onLoad = function () {	if (hs.expanders[exp.key]) exp.contentLoaded(); };
    	ajax.onError = function () { location.href = exp.src; };
    	ajax.run();
	}
    else
    
    if (this.objectType == 'iframe' && this.objectLoadTime == 'before') {
		this.writeExtendedContent();
	}
    else
    	this.contentLoaded();
},

contentLoaded : function() {
	try {	
		if (!this.content) return;
		this.content.onload = null;
		if (this.onLoadStarted) return;
		else this.onLoadStarted = true;
		
		var x = this.x, y = this.y;
		
		if (this.loading) {
			hs.setStyles(this.loading, { top: '-9999px' });
			this.loading = null;
			hs.fireEvent(this, 'onHideLoading');
		}
		if (this.isImage) {	
			x.full = this.content.width;
			y.full = this.content.height;
			
			hs.setStyles(this.content, {
				width: x.t +'px',
				height: y.t +'px'
			});
			this.wrapper.appendChild(this.content);
			hs.container.appendChild(this.wrapper);
		} else if (this.htmlGetSize) this.htmlGetSize();
		
		x.calcBorders();
		y.calcBorders();
		
		hs.setStyles (this.wrapper, {
			left: (x.tpos + x.tb - x.cb) +'px',
			top: (y.tpos + x.tb - y.cb) +'px'
		});		
		
		
		this.initSlideshow();
		this.getOverlays();
		
		var ratio = x.full / y.full;
		
		x.calcExpanded();
		this.justify(x);
		
		y.calcExpanded();
		this.justify(y);
		if (this.isHtml) this.htmlSizeOperations();
		if (this.overlayBox) this.sizeOverlayBox(0, 1);
		
		if (this.allowSizeReduction) {
			if (this.isImage)
				this.correctRatio(ratio);
			else this.fitOverlayBox();
			var ss = this.slideshow;			
			if (ss && this.last && ss.controls && ss.fixedControls) {
				var pos = ss.overlayOptions.position || '', p;
				for (var dim in hs.oPos) for (var i = 0; i < 5; i++) {
					p = this[dim];
					if (pos.match(hs.oPos[dim][i])) {
						p.pos = this.last[dim].pos 
							+ (this.last[dim].p1 - p.p1)
							+ (this.last[dim].size - p.size) * [0, 0, .5, 1, 1][i];
						if (ss.fixedControls == 'fit') {
							if (p.pos + p.size + p.p1 + p.p2 > p.scroll + p.clientSize - p.marginMax)
								p.pos = p.scroll + p.clientSize - p.size - p.marginMin - p.marginMax - p.p1 - p.p2;
							if (p.pos < p.scroll + p.marginMin) p.pos = p.scroll + p.marginMin; 
						} 
					}
				}
			}
			if (this.isImage && this.x.full > (this.x.imgSize || this.x.size)) {
				this.createFullExpand();
				if (this.overlays.length == 1) this.sizeOverlayBox();
			}
		}
		this.show();
		
	} catch (e) {
		this.error(e);
	}
},


setObjContainerSize : function(parent, auto) {
	var c = hs.getElementByClass(parent, 'DIV', 'highslide-body');
	if (/(iframe|swf)/.test(this.objectType)) {
		if (this.objectWidth) c.style.width = this.objectWidth +'px';
		if (this.objectHeight) c.style.height = this.objectHeight +'px';
	}
},

writeExtendedContent : function () {
	if (this.hasExtendedContent) return;
	var exp = this;
	this.body = hs.getElementByClass(this.innerContent, 'DIV', 'highslide-body');
	if (this.objectType == 'iframe') {
		this.showLoading();
		var ruler = hs.clearing.cloneNode(1);
		this.body.appendChild(ruler);
		this.newWidth = this.innerContent.offsetWidth;
		if (!this.objectWidth) this.objectWidth = ruler.offsetWidth;
		var hDiff = this.innerContent.offsetHeight - this.body.offsetHeight,
			h = this.objectHeight || hs.page.height - hDiff - hs.marginTop - hs.marginBottom,
			onload = this.objectLoadTime == 'before' ? 
				' onload="if (hs.expanders['+ this.key +']) hs.expanders['+ this.key +'].contentLoaded()" ' : '';
		
		this.body.innerHTML += '<iframe name="hs'+ (new Date()).getTime() +'" frameborder="0" key="'+ this.key +'" '
			+' allowtransparency="true" style="width:'+ this.objectWidth +'px; height:'+ h +'px" '
			+ onload +' src="'+ this.src +'"></iframe>';
		this.ruler = this.body.getElementsByTagName('div')[0];
		this.iframe = this.body.getElementsByTagName('iframe')[0];
		
		if (this.objectLoadTime == 'after') this.correctIframeSize();
		
	}
	if (this.objectType == 'swf') {
		this.body.id = this.body.id || 'hs-flash-id-' + this.key;
		var a = this.swfOptions;
		if (typeof a.params.wmode == 'undefined') a.params.wmode = 'transparent';
		if (swfobject) swfobject.embedSWF(this.src, this.body.id, this.objectWidth, this.objectHeight, 
			a.version || '7', a.expressInstallSwfurl, a.flashvars, a.params, a.attributes);
	}
	this.hasExtendedContent = true;
},
htmlGetSize : function() {
	if (this.iframe && !this.objectHeight) { // loadtime before		
		this.iframe.style.height = this.body.style.height = this.getIframePageHeight() +'px';
	}
	this.innerContent.appendChild(hs.clearing);
	if (!this.x.full) this.x.full = this.innerContent.offsetWidth;
    this.y.full = this.innerContent.offsetHeight;
    this.innerContent.removeChild(hs.clearing);
    if (hs.ie && this.newHeight > parseInt(this.innerContent.currentStyle.height)) { // ie css bug
		this.newHeight = parseInt(this.innerContent.currentStyle.height);
	}
	hs.setStyles( this.wrapper, { position: 'absolute',	padding: '0'});
	hs.setStyles( this.content, { width: this.x.t +'px', height: this.y.t +'px'});
},

getIframePageHeight : function() {
	var h;
	try {
		var doc = this.iframe.contentDocument || this.iframe.contentWindow.document;
		var clearing = doc.createElement('div');
		clearing.style.clear = 'both';
		doc.body.appendChild(clearing);
		h = clearing.offsetTop;
		if (hs.ie) h += parseInt(doc.body.currentStyle.marginTop) 
			+ parseInt(doc.body.currentStyle.marginBottom) - 1;
	} catch (e) { // other domain
		h = 300;
	}
	return h;
},
correctIframeSize : function () {
	var wDiff = this.innerContent.offsetWidth - this.ruler.offsetWidth;
	if (wDiff < 0) wDiff = 0;
	
	var hDiff = this.innerContent.offsetHeight - this.iframe.offsetHeight;
	hs.setStyles(this.iframe, { 
		width: Math.abs(this.x.size - wDiff) +'px', 
		height: Math.abs(this.y.size - hDiff) +'px'
	});
    hs.setStyles(this.body, { 
		width: this.iframe.style.width, 
    	height: this.iframe.style.height
	});
    	
    this.scrollingContent = this.iframe;
    this.scrollerDiv = this.scrollingContent;
},
htmlSizeOperations : function () {
	
	this.setObjContainerSize(this.innerContent);
	
	
	if (this.objectType == 'swf' && this.objectLoadTime == 'before') this.writeExtendedContent();	
	
    // handle minimum size
    if (this.x.size < this.x.full && !this.allowWidthReduction) this.x.size = this.x.full;
    if (this.y.size < this.y.full && !this.allowHeightReduction) this.y.size = this.y.full;
	this.scrollerDiv = this.innerContent;
    hs.setStyles(this.mediumContent, { 
		position: 'relative',
		width: this.x.size +'px'
	});
    hs.setStyles(this.innerContent, { 
    	border: 'none',
    	width: 'auto',
    	height: 'auto'
    });
	var node = hs.getElementByClass(this.innerContent, 'DIV', 'highslide-body');
    if (node && !/(iframe|swf)/.test(this.objectType)) {
    	var cNode = node; // wrap to get true size
    	node = hs.createElement(cNode.nodeName, null, {overflow: 'hidden'}, null, true);
    	cNode.parentNode.insertBefore(node, cNode);
    	node.appendChild(hs.clearing); // IE6
    	node.appendChild(cNode);
    	
    	var wDiff = this.innerContent.offsetWidth - node.offsetWidth;
    	var hDiff = this.innerContent.offsetHeight - node.offsetHeight;
		node.removeChild(hs.clearing);
    	
    	var kdeBugCorr = hs.safari || navigator.vendor == 'KDE' ? 1 : 0; // KDE repainting bug
    	hs.setStyles(node, { 
    			width: (this.x.size - wDiff - kdeBugCorr) +'px', 
    			height: (this.y.size - hDiff) +'px',
    			overflow: 'auto', 
    			position: 'relative' 
    		} 
    	);
		if (kdeBugCorr && cNode.offsetHeight > node.offsetHeight)	{
    		node.style.width = (parseInt(node.style.width) + kdeBugCorr) + 'px';
		}
    	this.scrollingContent = node;
    	this.scrollerDiv = this.scrollingContent;
	}
    if (this.iframe && this.objectLoadTime == 'before') this.correctIframeSize();
    if (!this.scrollingContent && this.y.size < this.mediumContent.offsetHeight) this.scrollerDiv = this.content;
	
	if (this.scrollerDiv == this.content && !this.allowWidthReduction && !/(iframe|swf)/.test(this.objectType)) {
		this.x.size += 17; // room for scrollbars
	}
	if (this.scrollerDiv && this.scrollerDiv.offsetHeight > this.scrollerDiv.parentNode.offsetHeight) {
		setTimeout("try { hs.expanders["+ this.key +"].scrollerDiv.style.overflow = 'auto'; } catch(e) {}",
			 hs.expandDuration);
	}
},

getImageMapAreaCorrection : function(area) {
	var c = area.coords.split(',');
	for (var i = 0; i < c.length; i++) c[i] = parseInt(c[i]);
	
	if (area.shape.toLowerCase() == 'circle') {
		this.x.tpos += c[0] - c[2];
		this.y.tpos += c[1] - c[2];
		this.x.t = this.y.t = 2 * c[2];
	} else {
		var maxX, maxY, minX = maxX = c[0], minY = maxY = c[1];
		for (var i = 0; i < c.length; i++) {
			if (i % 2 == 0) {
				minX = Math.min(minX, c[i]);
				maxX = Math.max(maxX, c[i]);
			} else {
				minY = Math.min(minY, c[i]);
				maxY = Math.max(maxY, c[i]);
			}
		}
		this.x.tpos += minX;
		this.x.t = maxX - minX;
		this.y.tpos += minY;
		this.y.t = maxY - minY;
	}
},
justify : function (p, moveOnly) {
	var tgtArr, tgt = p.target, dim = p == this.x ? 'x' : 'y';
	
	if (tgt && tgt.match(/ /)) {
		tgtArr = tgt.split(' ');
		tgt = tgtArr[0];
	}
	if (tgt && hs.$(tgt)) {
		p.pos = hs.getPosition(hs.$(tgt))[dim];
		if (tgtArr && tgtArr[1] && tgtArr[1].match(/^[-]?[0-9]+px$/)) 
			p.pos += parseInt(tgtArr[1]);
		if (p.size < p.minSize) p.size = p.minSize;
		
	} else if (p.justify == 'auto' || p.justify == 'center') {
	
		var hasMovedMin = false;
		
		var allowReduce = p.exp.allowSizeReduction;
		if (p.justify == 'center')
			p.pos = Math.round(p.scroll + (p.clientSize + p.marginMin - p.marginMax - p.get('wsize')) / 2);
		else
			p.pos = Math.round(p.pos - ((p.get('wsize') - p.t) / 2));
		if (p.pos < p.scroll + p.marginMin) {
			p.pos = p.scroll + p.marginMin;
			hasMovedMin = true;		
		}
		if (!moveOnly && p.size < p.minSize) {
			p.size = p.minSize;
			allowReduce = false;
		}
		if (p.pos + p.get('wsize') > p.scroll + p.clientSize - p.marginMax) {
			if (!moveOnly && hasMovedMin && allowReduce) {
				p.size = p.get(dim == 'y' ? 'fitsize' : 'maxsize');
			} else if (p.get('wsize') < p.get('fitsize')) {
				p.pos = p.scroll + p.clientSize - p.marginMax - p.get('wsize');
			} else { // image larger than viewport
				p.pos = p.scroll + p.marginMin;
				if (!moveOnly && allowReduce) p.size = p.get(dim == 'y' ? 'fitsize' : 'maxsize');
			}			
		}
		
		if (!moveOnly && p.size < p.minSize) {
			p.size = p.minSize;
			allowReduce = false;
		}
		
	
	} else if (p.justify == 'max') {
		p.pos = Math.floor(p.pos - p.size + p.t);
	}
	
		
	if (p.pos < p.marginMin) {
		var tmpMin = p.pos;
		p.pos = p.marginMin; 
		
		if (allowReduce && !moveOnly) p.size = p.size - (p.pos - tmpMin);
		
	}
},

correctRatio : function(ratio) {
	var x = this.x, 
		y = this.y,
		changed = false,
		xSize = Math.min(x.full, x.size),
		ySize = Math.min(y.full, y.size),
		useBox = (this.useBox || hs.padToMinWidth);
	
	if (xSize / ySize > ratio) { // width greater
		xSize = ySize * ratio;
		if (xSize < x.minSize) { // below minWidth
			xSize = x.minSize;
			ySize = xSize / ratio;
		}
		changed = true;
	
	} else if (xSize / ySize < ratio) { // height greater
		ySize = xSize / ratio;
		changed = true;
	}
	
	if (hs.padToMinWidth && x.full < x.minSize) {
		x.imgSize = x.full;
		y.size = y.imgSize = y.full;
	} else if (this.useBox) {
		x.imgSize = xSize;
		y.imgSize = ySize;
	} else {
		x.size = xSize;
		y.size = ySize;
	}
	this.fitOverlayBox(useBox ? null : ratio);
	if (useBox && y.size < y.imgSize) {
		y.imgSize = y.size;
		x.imgSize = y.size * ratio;
	}
	if (changed || useBox) {
		x.pos = x.tpos - x.cb + x.tb;
		x.minSize = x.size;
		this.justify(x, true);
	
		y.pos = y.tpos - y.cb + y.tb;
		y.minSize = y.size;
		this.justify(y, true);
		if (this.overlayBox) this.sizeOverlayBox();
	}
},
fitOverlayBox : function(ratio) {
	var x = this.x, y = this.y;
	if (this.overlayBox) {
		while (y.size > this.minHeight && x.size > this.minWidth 
				&&  y.get('wsize') > y.get('fitsize')) {
			y.size -= 10;
			if (ratio) x.size = y.size * ratio;
			this.sizeOverlayBox(0, 1);
		}
	}
},

reflow : function () {
	if (this.scrollerDiv) {
		var h = /iframe/i.test(this.scrollerDiv.tagName) ? this.getIframePageHeight() + 1 +'px' : 'auto';
		if (this.body) this.body.style.height = h;
		this.scrollerDiv.style.height = h;
		this.y.setSize(this.innerContent.offsetHeight);
		hs.setDimmerSize(this);
	}
},

show : function () {
	var x = this.x, y = this.y;
	this.doShowHide('hidden');
	hs.fireEvent(this, 'onBeforeExpand');
	if (this.slideshow && this.slideshow.thumbstrip) this.slideshow.thumbstrip.selectThumb();
	
	// Apply size change
	this.changeSize(
		1, {
			wrapper: {
				width : x.get('wsize'),
				height : y.get('wsize'),
				left: x.pos,
				top: y.pos
			},
			content: {
				left: x.p1 + x.get('imgPad'),
				top: y.p1 + y.get('imgPad'),
				width:x.imgSize ||x.size,
				height:y.imgSize ||y.size
			}
		},
		hs.expandDuration
	);
},

changeSize : function(up, to, dur) {
	// transition
	var trans = this.transitions,
	other = up ? (this.last ? this.last.a : null) : hs.upcoming,
	t = (trans[1] && other 
			&& hs.getParam(other, 'transitions')[1] == trans[1]) ?
		trans[1] : trans[0];
		
	if (this[t] && t != 'expand') {
		this[t](up, to);
		return;
	}
	
	if (this.outline && !this.outlineWhileAnimating) {
		if (up) this.outline.setPosition();
		else this.outline.destroy(
				(this.isHtml && this.preserveContent));
	}
	
	
	if (!up) this.destroyOverlays();
	
	var exp = this,
		x = exp.x,
		y = exp.y,
		easing = this.easing;
	if (!up) easing = this.easingClose || easing;
	var after = up ?
		function() {
				
			if (exp.outline) exp.outline.table.style.visibility = "visible";
			setTimeout(function() {
				exp.afterExpand();
			}, 50);
		} :
		function() {
			exp.afterClose();
		};
	if (up) hs.setStyles( this.wrapper, {
		width: x.t +'px',
		height: y.t +'px'
	});
	if (up && this.isHtml) {
		hs.setStyles(this.wrapper, {
			left: (x.tpos - x.cb + x.tb) +'px',
			top: (y.tpos - y.cb + y.tb) +'px'
		});
	}
	if (this.fadeInOut) {
		hs.setStyles(this.wrapper, { opacity: up ? 0 : 1 });
		hs.extend(to.wrapper, { opacity: up });
	}
	hs.animate( this.wrapper, to.wrapper, {
		duration: dur,
		easing: easing,
		step: function(val, args) {
			if (exp.outline && exp.outlineWhileAnimating && args.prop == 'top') {
				var fac = up ? args.pos : 1 - args.pos;
				var pos = {
					w: x.t + (x.get('wsize') - x.t) * fac,
					h: y.t + (y.get('wsize') - y.t) * fac,
					x: x.tpos + (x.pos - x.tpos) * fac,
					y: y.tpos + (y.pos - y.tpos) * fac
				};
				exp.outline.setPosition(pos, 0, 1);				
			}
			if (exp.isHtml) {	
				if (args.prop == 'left') 
					exp.mediumContent.style.left = (x.pos - val) +'px';
				if (args.prop == 'top') 
					exp.mediumContent.style.top = (y.pos - val) +'px';
			}
		}
	});
	hs.animate( this.content, to.content, dur, easing, after);
	if (up) {
		this.wrapper.style.visibility = 'visible';
		this.content.style.visibility = 'visible';
		if (this.isHtml) this.innerContent.style.visibility = 'visible';
		this.a.className += ' highslide-active-anchor';
	}
},



fade : function(up, to) {
	this.outlineWhileAnimating = false;
	var exp = this,	t = up ? hs.expandDuration : 0;
	
	if (up) {
		hs.animate(this.wrapper, to.wrapper, 0);
		hs.setStyles(this.wrapper, { opacity: 0, visibility: 'visible' });
		hs.animate(this.content, to.content, 0);
		this.content.style.visibility = 'visible';

		hs.animate(this.wrapper, { opacity: 1 }, t, null, 
			function() { exp.afterExpand(); });
	}
	
	if (this.outline) {
		this.outline.table.style.zIndex = this.wrapper.style.zIndex;
		var dir = up || -1, 
			offset = this.outline.offset,
			startOff = up ? 3 : offset,
			endOff = up? offset : 3;
		for (var i = startOff; dir * i <= dir * endOff; i += dir, t += 25) {
			(function() {
				var o = up ? endOff - i : startOff - i;
				setTimeout(function() {
					exp.outline.setPosition(0, o, 1);
				}, t);
			})();
		}
	}
	
	
	if (up) {}//setTimeout(function() { exp.afterExpand(); }, t+50);
	else {
		setTimeout( function() {
			if (exp.outline) exp.outline.destroy(exp.preserveContent);
			
			exp.destroyOverlays();
	
			hs.animate( exp.wrapper, { opacity: 0 }, null, null, function(){
				exp.afterClose();
			});
		}, t);		
	}
},

crossfade : function (up, to) {
	if (!up) return;
	var exp = this, 
		dur = hs.transitionDuration, 
		last = exp.last,
		x = exp.x, 
		y = exp.y,
		lastX = last.x,
		lastY = last.y,
		overlayBox = exp.overlayBox,
		wrapper = this.wrapper,
		content = this.content;
	hs.removeEventListener(document, 'mousemove', hs.dragHandler);
	this.outline = last.outline;
	if (this.outline) this.outline.exp = exp;
	last.outline = null;
	last.wrapper.style.overflow = 'hidden';
	hs.setStyles(wrapper, {
		left: lastX.pos +'px',
		top: lastY.pos +'px',
		width: lastX.get('wsize') +'px',
		height: lastY.get('wsize') +'px'
	});
	hs.setStyles(content, {
		display: 'none',
		width: (x.imgSize || x.size) +'px', 
		height: (y.imgSize || y.size) +'px',
		left: (x.p1 + x.get('imgPad')) +'px',
		top: (y.p1 + y.get('imgPad')) + 'px'
	});
	var fadeBox = hs.createElement('div', {
		className: 'highslide-image'
	}, { 
		position: 'absolute', 
		zIndex: 4,
		overflow: 'hidden',
		display: 'none',
		left: (lastX.p1 + lastX.get('imgPad')) +'px',
		top: (lastY.p1 + lastY.get('imgPad')) +'px',
		width: (lastX.imgSize || lastX.size) +'px',
		height: (lastY.imgSize || lastY.size) +'px'
	});
	if (this.isHtml) hs.setStyles(this.mediumContent, { 
		left: 0,
		top: 0
	});
	for (var i = 0; i < this.overlays.length; i++) {
		var o = hs.$('hsId'+ this.overlays[i]);
		if (o.style.visibility == 'hidden') o.style.display = 'none';
	}
	if (overlayBox) hs.setStyles(overlayBox, {
		overflow: 'visible',
		left: (lastX.p1 + lastX.cb) +'px',
		top: (lastY.p1 + lastY.cb) +'px',
		width: lastX.size +'px',
		height: lastY.size +'px'
	});
	var names = { oldImg: last, newImg: this };
	for (var n in names) { 	
		this[n] = names[n].content.cloneNode(1);
		hs.setStyles(this[n], {
			position: 'absolute',
			border: 0,
			visibility: 'visible'
		});
		fadeBox.appendChild(this[n]);
	}
	hs.setStyles(this.oldImg, {
		left: 0,
		top: 0
	});	
	hs.setStyles(this.newImg, {
		display: 'block',
		opacity: 0,
		left: (x.pos - lastX.pos + x.p1 - lastX.p1 + x.get('imgPad') - lastX.get('imgPad')) +'px',
		top: (y.pos - lastY.pos + y.p1 - lastY.p1 + y.get('imgPad') - lastY.get('imgPad')) +'px'
	});
	wrapper.appendChild(fadeBox);
	if (overlayBox) {
		overlayBox.className = '';
		wrapper.appendChild(overlayBox);
	}
	fadeBox.style.display = '';
	last.content.style.display = 'none';

	if (hs.safari) {
		var match = navigator.userAgent.match(/Safari\/([0-9]{3})/);
		if (match && parseInt(match[1]) < 525) wrapper.style.visibility = 'visible';
	}
	function end() {
		wrapper.style.visibility = content.style.visibility = 'visible';
		content.style.display = 'block';
		fadeBox.style.display = 'none';
		exp.a.className += ' highslide-active-anchor';
		exp.afterExpand();
		last.afterClose();
		exp.last = null;
	}

	hs.animate(last.wrapper, { 
		left: x.pos,
		top: y.pos,
		width: x.get('wsize'),
		height: y.get('wsize')
	}, dur);
	
	hs.animate(fadeBox, {
		width: x.imgSize || x.size,
		height: y.imgSize || y.size,
		left: x.p1 + x.get('imgPad'),
		top: y.p1 + y.get('imgPad')
	}, dur);
	
	hs.animate(this.oldImg, {
		left: (lastX.pos - x.pos + lastX.p1 - x.p1 + lastX.get('imgPad') - x.get('imgPad')),
		top: (lastY.pos - y.pos + lastY.p1 - y.p1 + lastY.get('imgPad') - y.get('imgPad'))
	}, dur);		
	
	hs.animate(this.newImg, {
		opacity: 1,
		left: 0,
		top: 0
	}, dur);
	if (overlayBox) hs.animate(overlayBox, {
		left: x.p1 + x.cb,
		top: y.p1 + y.cb,
		width: x.size,
		height: y.size
	}, dur);
	if (this.outline) var wrapStep =  function(val, args) {
		if (args.prop == 'top') {
			var stl = exp.wrapper.style;
			var pos = {
				w: parseInt(stl.width),
				h: parseInt(stl.height),
				x: parseInt(stl.left),
				y: parseInt(stl.top)
			};
			exp.outline.setPosition(pos);
		}
	};
	hs.animate(wrapper, to.wrapper, {
		duration: dur, 
		complete: end,
		step: wrapStep
	});
	
	fadeBox.style.visibility = 'visible';
},
reuseOverlay : function(o, el) {
	if (!this.last) return false;
	for (var i = 0; i < this.last.overlays.length; i++) {
		var oDiv = hs.$('hsId'+ this.last.overlays[i]);
		if (oDiv && oDiv.hsId == o.hsId) {
			this.genOverlayBox();
			oDiv.reuse = this.key;
			hs.push(this.overlays, this.last.overlays[i]);
			return true;
		}
	}
	return false;
},


afterExpand : function() {
	this.isExpanded = true;	
	this.focus();
	
	if (this.isHtml && this.objectLoadTime == 'after') this.writeExtendedContent();
	if (this.iframe) {
		try {
			var exp = this,
				doc = this.iframe.contentDocument || this.iframe.contentWindow.document;
			hs.addEventListener(doc, 'mousedown', function () {
				if (hs.focusKey != exp.key) exp.focus();
			});
		} catch(e) {}
		if (hs.ie && typeof this.isClosing != 'boolean') // first open 
			this.iframe.style.width = (this.objectWidth - 1) +'px'; // hasLayout
	}
	if (this.dimmingOpacity) hs.dim(this);
	if (hs.upcoming && hs.upcoming == this.a) hs.upcoming = null;
	this.prepareNextOutline();
	var p = hs.page, mX = hs.mouse.x + p.scrollLeft, mY = hs.mouse.y + p.scrollTop;
	this.mouseIsOver = this.x.pos < mX && mX < this.x.pos + this.x.get('wsize')
		&& this.y.pos < mY && mY < this.y.pos + this.y.get('wsize');	
	if (this.overlayBox) this.showOverlays();
	hs.fireEvent(this, 'onAfterExpand');
	
},


prepareNextOutline : function() {
	var key = this.key;
	var outlineType = this.outlineType;
	new hs.Outline(outlineType, 
		function () { try { hs.expanders[key].preloadNext(); } catch (e) {} });
},


preloadNext : function() {
	var next = this.getAdjacentAnchor(1);
	if (next && next.onclick.toString().match(/hs\.expand/)) 
		var img = hs.createElement('img', { src: hs.getSrc(next) });
},


getAdjacentAnchor : function(op) {
	var current = this.getAnchorIndex(), as = hs.anchors.groups[this.slideshowGroup || 'none'];
	
	/*< ? if ($cfg->slideshow) : ?>s*/
	if (!as[current + op] && this.slideshow && this.slideshow.repeat) {
		if (op == 1) return as[0];
		else if (op == -1) return as[as.length-1];
	}
	/*< ? endif ?>s*/
	return as[current + op] || null;
},

getAnchorIndex : function() {
	var arr = hs.getAnchors().groups[this.slideshowGroup || 'none'];
	if (arr) for (var i = 0; i < arr.length; i++) {
		if (arr[i] == this.a) return i; 
	}
	return null;
},


getNumber : function() {
	if (this[this.numberPosition]) {
		var arr = hs.anchors.groups[this.slideshowGroup || 'none'];
		if (arr) {
			var s = hs.lang.number.replace('%1', this.getAnchorIndex() + 1).replace('%2', arr.length);
			this[this.numberPosition].innerHTML = 
				'<div class="highslide-number">'+ s +'</div>'+ this[this.numberPosition].innerHTML;
		}
	}
},
initSlideshow : function() {
	if (!this.last) {
		for (var i = 0; i < hs.slideshows.length; i++) {
			var ss = hs.slideshows[i], sg = ss.slideshowGroup;
			if (typeof sg == 'undefined' || sg === null || sg === this.slideshowGroup) 
				this.slideshow = new hs.Slideshow(this.key, ss);
		} 
	} else {
		this.slideshow = this.last.slideshow;
	}
	var ss = this.slideshow;
	if (!ss) return;
	var key = ss.expKey = this.key;
	
	ss.checkFirstAndLast();
	ss.disable('full-expand');
	if (ss.controls) {
		var o = ss.overlayOptions || {};
		o.overlayId = ss.controls;
		o.hsId = 'controls';		
		this.createOverlay(o);
	}
	if (ss.thumbstrip) ss.thumbstrip.add(this);
	if (!this.last && this.autoplay) ss.play(true);
	if (ss.autoplay) {
		ss.autoplay = setTimeout(function() {
			hs.next(key);
		}, (ss.interval || 500));
	}
},

cancelLoading : function() {	
	hs.expanders[this.key] = null;
	if (hs.upcoming == this.a) hs.upcoming = null;
	hs.undim(this.key);
	if (this.loading) hs.loading.style.left = '-9999px';
	hs.fireEvent(this, 'onHideLoading');
},

writeCredits : function () {
	if (this.credits) return;
	this.credits = hs.createElement('a', {
		href: hs.creditsHref,
		className: 'highslide-credits',
		innerHTML: hs.lang.creditsText,
		title: hs.lang.creditsTitle
	});
	this.createOverlay({ 
		overlayId: this.credits, 
		position: this.creditsPosition || 'top left', 
		hsId: 'credits' 
	});
},

getInline : function(types, addOverlay) {
	for (var i = 0; i < types.length; i++) {
		var type = types[i], s = null;
		if (type == 'caption' && !hs.fireEvent(this, 'onBeforeGetCaption')) return;
		else if (type == 'heading' && !hs.fireEvent(this, 'onBeforeGetHeading')) return;
		if (!this[type +'Id'] && this.thumbsUserSetId)  
			this[type +'Id'] = type +'-for-'+ this.thumbsUserSetId;
		if (this[type +'Id']) this[type] = hs.getNode(this[type +'Id']);
		if (!this[type] && !this[type +'Text'] && this[type +'Eval']) try {
			s = eval(this[type +'Eval']);
		} catch (e) {}
		if (!this[type] && this[type +'Text']) {
			s = this[type +'Text'];
		}
		if (!this[type] && !s) {
			var next = this.a.nextSibling;
			while (next && !hs.isHsAnchor(next)) {
				if ((new RegExp('highslide-'+ type)).test(next.className || null)) {
					this[type] = next.cloneNode(1);
					break;
				}
				next = next.nextSibling;
			}
		}
		if (!this[type] && !s && this.numberPosition == type) s = '\n';
		
		if (!this[type] && s) this[type] = hs.createElement('div', 
				{ className: 'highslide-'+ type, innerHTML: s } );
		
		if (addOverlay && this[type]) {
			var o = { position: (type == 'heading') ? 'above' : 'below' };
			for (var x in this[type+'Overlay']) o[x] = this[type+'Overlay'][x];
			o.overlayId = this[type];
			this.createOverlay(o);
		}
	}
},


// on end move and resize
doShowHide : function(visibility) {
	if (hs.hideSelects) this.showHideElements('SELECT', visibility);
	if (hs.hideIframes) this.showHideElements('IFRAME', visibility);
	if (hs.geckoMac) this.showHideElements('*', visibility);
},
showHideElements : function (tagName, visibility) {
	var els = document.getElementsByTagName(tagName);
	var prop = tagName == '*' ? 'overflow' : 'visibility';
	for (var i = 0; i < els.length; i++) {
		if (prop == 'visibility' || (document.defaultView.getComputedStyle(
				els[i], "").getPropertyValue('overflow') == 'auto'
				|| els[i].getAttribute('hidden-by') != null)) {
			var hiddenBy = els[i].getAttribute('hidden-by');
			if (visibility == 'visible' && hiddenBy) {
				hiddenBy = hiddenBy.replace('['+ this.key +']', '');
				els[i].setAttribute('hidden-by', hiddenBy);
				if (!hiddenBy) els[i].style[prop] = els[i].origProp;
			} else if (visibility == 'hidden') { // hide if behind
				var elPos = hs.getPosition(els[i]);
				elPos.w = els[i].offsetWidth;
				elPos.h = els[i].offsetHeight;
				if (!this.dimmingOpacity) { // hide all if dimming
				
					var clearsX = (elPos.x + elPos.w < this.x.get('opos') 
						|| elPos.x > this.x.get('opos') + this.x.get('osize'));
					var clearsY = (elPos.y + elPos.h < this.y.get('opos') 
						|| elPos.y > this.y.get('opos') + this.y.get('osize'));
				}
				var wrapperKey = hs.getWrapperKey(els[i]);
				if (!clearsX && !clearsY && wrapperKey != this.key) { // element falls behind image
					if (!hiddenBy) {
						els[i].setAttribute('hidden-by', '['+ this.key +']');
						els[i].origProp = els[i].style[prop];
						els[i].style[prop] = 'hidden';
						
					} else if (hiddenBy.indexOf('['+ this.key +']') == -1) {
						els[i].setAttribute('hidden-by', hiddenBy + '['+ this.key +']');
					}
				} else if ((hiddenBy == '['+ this.key +']' || hs.focusKey == wrapperKey)
						&& wrapperKey != this.key) { // on move
					els[i].setAttribute('hidden-by', '');
					els[i].style[prop] = els[i].origProp || '';
				} else if (hiddenBy && hiddenBy.indexOf('['+ this.key +']') > -1) {
					els[i].setAttribute('hidden-by', hiddenBy.replace('['+ this.key +']', ''));
				}
						
			}
		}
	}
},

focus : function() {
	this.wrapper.style.zIndex = hs.zIndexCounter++;
	// blur others
	for (var i = 0; i < hs.expanders.length; i++) {
		if (hs.expanders[i] && i == hs.focusKey) {
			var blurExp = hs.expanders[i];
			blurExp.content.className += ' highslide-'+ blurExp.contentType +'-blur';
			if (blurExp.isImage) {
				blurExp.content.style.cursor = hs.ie ? 'hand' : 'pointer';
				blurExp.content.title = hs.lang.focusTitle;	
			}	
			hs.fireEvent(blurExp, 'onBlur');
		}
	}
	
	// focus this
	if (this.outline) this.outline.table.style.zIndex 
		= this.wrapper.style.zIndex;
	this.content.className = 'highslide-'+ this.contentType;
	if (this.isImage) {
		this.content.title = hs.lang.restoreTitle;
		
		if (hs.restoreCursor) {
			hs.styleRestoreCursor = window.opera ? 'pointer' : 'url('+ hs.graphicsDir + hs.restoreCursor +'), pointer';
			if (hs.ie && hs.uaVersion < 6) hs.styleRestoreCursor = 'hand';
			this.content.style.cursor = hs.styleRestoreCursor;
		}
	}
	hs.focusKey = this.key;	
	hs.addEventListener(document, window.opera ? 'keypress' : 'keydown', hs.keyHandler);	
	hs.fireEvent(this, 'onFocus');	
},
moveTo: function(x, y) {
	this.x.setPos(x);
	this.y.setPos(y);
},
resize : function (e) {
	var w, h, r = e.width / e.height;
	w = Math.max(e.width + e.dX, Math.min(this.minWidth, this.x.full));
	if (this.isImage && Math.abs(w - this.x.full) < 12) w = this.x.full;
	h = this.isHtml ? e.height + e.dY : w / r;
	if (h < Math.min(this.minHeight, this.y.full)) {
		h = Math.min(this.minHeight, this.y.full);
		if (this.isImage) w = h * r;
	}
	this.resizeTo(w, h);
},
resizeTo: function(w, h) {
	this.y.setSize(h);
	this.x.setSize(w);
},

close : function() {
	if (this.isClosing || !this.isExpanded) return;
	if (this.transitions[1] == 'crossfade' && hs.upcoming) {
		hs.getExpander(hs.upcoming).cancelLoading();
		hs.upcoming = null;
	}
	if (!hs.fireEvent(this, 'onBeforeClose')) return;
	this.isClosing = true;
	if (this.slideshow && !hs.upcoming) this.slideshow.pause();
	
	hs.removeEventListener(document, window.opera ? 'keypress' : 'keydown', hs.keyHandler);
	
	try {
		if (this.isHtml) this.htmlPrepareClose();
		this.content.style.cursor = 'default';
		this.changeSize(
			0, {
				wrapper: {
					width : this.x.t,
					height : this.y.t,
					left: this.x.tpos - this.x.cb + this.x.tb,
					top: this.y.tpos - this.y.cb + this.y.tb
				},
				content: {
					left: 0,
					top: 0,
					width: this.x.t,
					height: this.y.t
				}
			}, hs.restoreDuration
		);
	} catch (e) { this.afterClose(); }
},

htmlPrepareClose : function() {
	if (hs.geckoMac) { // bad redraws
		if (!hs.mask) hs.mask = hs.createElement('div', null, 
			{ position: 'absolute' }, hs.container);
		hs.setStyles(hs.mask, { width: this.x.size +'px', height: this.y.size +'px', 
			left: this.x.pos +'px', top: this.y.pos +'px', display: 'block' });			
	}
	if (this.objectType == 'swf') try { hs.$(this.body.id).StopPlay(); } catch (e) {}
	
	if (this.objectLoadTime == 'after' && !this.preserveContent) this.destroyObject();		
	if (this.scrollerDiv && this.scrollerDiv != this.scrollingContent) 
		this.scrollerDiv.style.overflow = 'hidden';
},

destroyObject : function () {
	if (hs.ie && this.iframe)
		try { this.iframe.contentWindow.document.body.innerHTML = ''; } catch (e) {}
	if (this.objectType == 'swf') swfobject.removeSWF(this.body.id);
	this.body.innerHTML = '';
},

sleep : function() {
	if (this.outline) this.outline.table.style.display = 'none';
	this.releaseMask = null;
	this.wrapper.style.display = 'none';
	hs.push(hs.sleeping, this);
},

awake : function() {try {
	
	hs.expanders[this.key] = this;
	
	if (!hs.allowMultipleInstances &&hs.focusKey != this.key) {	
		try { hs.expanders[hs.focusKey].close(); } catch (e){}
	}
	
	var z = hs.zIndexCounter++, stl = { display: '', zIndex: z };
	hs.setStyles (this.wrapper, stl);
	this.isClosing = false;
	
	var o = this.outline || 0;
	if (o) {
		if (!this.outlineWhileAnimating) stl.visibility = 'hidden';
		hs.setStyles (o.table, stl);		
	}
	if (this.slideshow) {
		this.initSlideshow();
	}
		
	this.show();
} catch (e) {}


},

createOverlay : function (o) {
	var el = o.overlayId, 
		relToVP = (o.relativeTo == 'viewport' && !/panel$/.test(o.position));
	if (typeof el == 'string') el = hs.getNode(el);
	if (o.html) el = hs.createElement('div', { innerHTML: o.html });
	if (!el || typeof el == 'string') return;
	if (!hs.fireEvent(this, 'onCreateOverlay', { overlay: el })) return;
	el.style.display = 'block';
	o.hsId = o.hsId || o.overlayId; 
	if (this.transitions[1] == 'crossfade' && this.reuseOverlay(o, el)) return;
	this.genOverlayBox();
	var width = o.width && /^[0-9]+(px|%)$/.test(o.width) ? o.width : 'auto';
	if (/^(left|right)panel$/.test(o.position) && !/^[0-9]+px$/.test(o.width)) width = '200px';
	var overlay = hs.createElement(
		'div', {
			id: 'hsId'+ hs.idCounter++,
			hsId: o.hsId
		}, {
			position: 'absolute',
			visibility: 'hidden',
			width: width,
			direction: hs.lang.cssDirection || '',
			opacity: 0
		},
		relToVP ? hs.viewport :this.overlayBox,
		true
	);
	if (relToVP) overlay.hsKey = this.key;
	
	overlay.appendChild(el);
	hs.extend(overlay, {
		opacity: 1,
		offsetX: 0,
		offsetY: 0,
		dur: (o.fade === 0 || o.fade === false || (o.fade == 2 && hs.ie)) ? 0 : 250
	});
	hs.extend(overlay, o);
		
	if (this.gotOverlays) {
		this.positionOverlay(overlay);
		if (!overlay.hideOnMouseOut || this.mouseIsOver) 
			hs.animate(overlay, { opacity: overlay.opacity }, overlay.dur);
	}
	hs.push(this.overlays, hs.idCounter - 1);
},
positionOverlay : function(overlay) {
	var p = overlay.position || 'middle center',
		relToVP = (overlay.relativeTo == 'viewport'),
		offX = overlay.offsetX,
		offY = overlay.offsetY;
	if (relToVP) {
		hs.viewport.style.display = 'block';
		overlay.hsKey = this.key;
		if (overlay.offsetWidth > overlay.parentNode.offsetWidth)
			overlay.style.width = '100%';
	} else
	if (overlay.parentNode != this.overlayBox) this.overlayBox.appendChild(overlay);
	if (/left$/.test(p)) overlay.style.left = offX +'px'; 
	
	if (/center$/.test(p))	hs.setStyles (overlay, { 
		left: '50%',
		marginLeft: (offX - Math.round(overlay.offsetWidth / 2)) +'px'
	});	
	
	if (/right$/.test(p)) overlay.style.right = - offX +'px';
		
	if (/^leftpanel$/.test(p)) { 
		hs.setStyles(overlay, {
			right: '100%',
			marginRight: this.x.cb +'px',
			top: - this.y.cb +'px',
			bottom: - this.y.cb +'px',
			overflow: 'auto'
		});		 
		this.x.p1 = overlay.offsetWidth;
	
	} else if (/^rightpanel$/.test(p)) {
		hs.setStyles(overlay, {
			left: '100%',
			marginLeft: this.x.cb +'px',
			top: - this.y.cb +'px',
			bottom: - this.y.cb +'px',
			overflow: 'auto'
		});
		this.x.p2 = overlay.offsetWidth;
	}
	var parOff = overlay.parentNode.offsetHeight;
	overlay.style.height = 'auto';
	if (relToVP && overlay.offsetHeight > parOff)
		overlay.style.height = hs.ieLt7 ? parOff +'px' : '100%';

	if (/^top/.test(p)) overlay.style.top = offY +'px'; 
	if (/^middle/.test(p))	hs.setStyles (overlay, { 
		top: '50%', 
		marginTop: (offY - Math.round(overlay.offsetHeight / 2)) +'px'
	});	
	if (/^bottom/.test(p)) overlay.style.bottom = - offY +'px';
	if (/^above$/.test(p)) {
		hs.setStyles(overlay, {
			left: (- this.x.p1 - this.x.cb) +'px',
			right: (- this.x.p2 - this.x.cb) +'px',
			bottom: '100%',
			marginBottom: this.y.cb +'px',
			width: 'auto'
		});
		this.y.p1 = overlay.offsetHeight;
	
	} else if (/^below$/.test(p)) {
		hs.setStyles(overlay, {
			position: 'relative',
			left: (- this.x.p1 - this.x.cb) +'px',
			right: (- this.x.p2 - this.x.cb) +'px',
			top: '100%',
			marginTop: this.y.cb +'px',
			width: 'auto'
		});
		this.y.p2 = overlay.offsetHeight;
		overlay.style.position = 'absolute';
	}
},

getOverlays : function() {	
	this.getInline(['heading', 'caption'], true);
	this.getNumber();
	if (this.caption) hs.fireEvent(this, 'onAfterGetCaption');
	if (this.heading) hs.fireEvent(this, 'onAfterGetHeading');
	if (this.heading && this.dragByHeading) this.heading.className += ' highslide-move';
	if (hs.showCredits) this.writeCredits();
	for (var i = 0; i < hs.overlays.length; i++) {
		var o = hs.overlays[i], tId = o.thumbnailId, sg = o.slideshowGroup;
		if ((!tId && !sg) || (tId && tId == this.thumbsUserSetId)
				|| (sg && sg === this.slideshowGroup)) {
			if (this.isImage || (this.isHtml && o.useOnHtml))
			this.createOverlay(o);
		}
	}
	var os = [];
	for (var i = 0; i < this.overlays.length; i++) {
		var o = hs.$('hsId'+ this.overlays[i]);
		if (/panel$/.test(o.position)) this.positionOverlay(o);
		else hs.push(os, o);
	}
	for (var i = 0; i < os.length; i++) this.positionOverlay(os[i]);
	this.gotOverlays = true;
},
genOverlayBox : function() {
	if (!this.overlayBox) this.overlayBox = hs.createElement (
		'div', {
			className: this.wrapperClassName
		}, {
			position : 'absolute',
			width: (this.x.size || (this.useBox ? this.width : null) 
				|| this.x.full) +'px',
			height: (this.y.size || this.y.full) +'px',
			visibility : 'hidden',
			overflow : 'hidden',
			zIndex : hs.ie ? 4 : null
		},
		hs.container,
		true
	);
},
sizeOverlayBox : function(doWrapper, doPanels) {
	var overlayBox = this.overlayBox, 
		x = this.x,
		y = this.y;
	hs.setStyles( overlayBox, {
		width: x.size +'px', 
		height: y.size +'px'
	});
	if (doWrapper || doPanels) {
		for (var i = 0; i < this.overlays.length; i++) {
			var o = hs.$('hsId'+ this.overlays[i]);
			var ie6 = (hs.ieLt7 || document.compatMode == 'BackCompat');
			if (o && /^(above|below)$/.test(o.position)) {
				if (ie6) {
					o.style.width = (overlayBox.offsetWidth + 2 * x.cb
						+ x.p1 + x.p2) +'px';
				}
				y[o.position == 'above' ? 'p1' : 'p2'] = o.offsetHeight;
			}
			if (o && ie6 && /^(left|right)panel$/.test(o.position)) {
				o.style.height = (overlayBox.offsetHeight + 2* y.cb) +'px';
			}
		}
	}
	if (doWrapper) {
		hs.setStyles(this.content, {
			top: y.p1 +'px'
		});
		hs.setStyles(overlayBox, {
			top: (y.p1 + y.cb) +'px'
		});
	}
},

showOverlays : function() {
	var b = this.overlayBox;
	b.className = '';
	hs.setStyles(b, {
		top: (this.y.p1 + this.y.cb) +'px',
		left: (this.x.p1 + this.x.cb) +'px',
		overflow : 'visible'
	});
	if (hs.safari) b.style.visibility = 'visible';
	this.wrapper.appendChild (b);
	for (var i = 0; i < this.overlays.length; i++) {
		var o = hs.$('hsId'+ this.overlays[i]);
		o.style.zIndex = o.hsId == 'controls' ? 5 : 4;
		if (!o.hideOnMouseOut || this.mouseIsOver) {
			o.style.visibility = 'visible';
			hs.setStyles(o, { visibility: 'visible', display: '' });
			hs.animate(o, { opacity: o.opacity }, o.dur);
		}
	}
},

destroyOverlays : function() {
	if (!this.overlays.length) return;
	for (var i = 0; i < this.overlays.length; i++) {
		var o = hs.$('hsId'+ this.overlays[i]);
		if (o.parentNode == hs.viewport) hs.discardElement(o);
	}
	if (this.slideshow) {
		var c = this.slideshow.controls;
		if (c && hs.getExpander(c) == this) c.parentNode.removeChild(c);
	}
	if (this.isHtml && this.preserveContent) {
		this.overlayBox.style.top = '-9999px';
		hs.container.appendChild(this.overlayBox);
	} else
	hs.discardElement(this.overlayBox);
},



createFullExpand : function () {
	if (this.slideshow && this.slideshow.controls) {
		this.slideshow.enable('full-expand');
		return;
	}
	this.fullExpandLabel = hs.createElement(
		'a', {
			href: 'javascript:hs.expanders['+ this.key +'].doFullExpand();',
			title: hs.lang.fullExpandTitle,
			className: 'highslide-full-expand'
		}
	);
	if (!hs.fireEvent(this, 'onCreateFullExpand')) return;
	
	this.createOverlay({ 
		overlayId: this.fullExpandLabel, 
		position: hs.fullExpandPosition, 
		hideOnMouseOut: true, 
		opacity: hs.fullExpandOpacity
	});
},

doFullExpand : function () {
	try {
		if (!hs.fireEvent(this, 'onDoFullExpand')) return;
		if (this.fullExpandLabel) hs.discardElement(this.fullExpandLabel);
		
		this.focus();
		var xSize = this.x.size;
		this.resizeTo(this.x.full, this.y.full);
		
		var xpos = this.x.pos - (this.x.size - xSize) / 2;
		if (xpos < hs.marginLeft) xpos = hs.marginLeft;
		
		this.moveTo(xpos, this.y.pos);
		this.doShowHide('hidden');
		hs.setDimmerSize(this);
	
	} catch (e) {
		this.error(e);
	}
},


afterClose : function () {
	this.a.className = this.a.className.replace('highslide-active-anchor', '');
	
	this.doShowHide('visible');	
	
	if (this.isHtml && this.preserveContent
			 && this.transitions[1] != 'crossfade') {
		this.sleep();
	} else {
		if (this.outline && this.outlineWhileAnimating) this.outline.destroy();
	
		hs.discardElement(this.wrapper);
	}
	if (hs.mask) hs.mask.style.display = 'none';
	if (!hs.viewport.childNodes.length) hs.viewport.style.display = 'none';
	
	if (this.dimmingOpacity) hs.undim(this.key);
	hs.fireEvent(this, 'onAfterClose');
	hs.expanders[this.key] = null;		
	hs.reOrder();
}

};


// hs.Ajax object prototype
hs.Ajax = function (a, content, pre) {
	this.a = a;
	this.content = content;
	this.pre = pre;
};

hs.Ajax.prototype = {
run : function () {
	if (!this.src) this.src = hs.getSrc(this.a);
	if (this.src.match('#')) {
		var arr = this.src.split('#');
		this.src = arr[0];
		this.id = arr[1];
	}
	if (hs.cachedGets[this.src]) {
		this.cachedGet = hs.cachedGets[this.src];
		if (this.id) this.getElementContent();
		else this.loadHTML();
		return;
	}
	try { this.xmlHttp = new XMLHttpRequest(); }
	catch (e) {
		try { this.xmlHttp = new ActiveXObject("Msxml2.XMLHTTP"); }
		catch (e) {
			try { this.xmlHttp = new ActiveXObject("Microsoft.XMLHTTP"); }
			catch (e) { this.onError(); }
		}
	}
	var pThis = this; 
	this.xmlHttp.onreadystatechange = function() {
		if(pThis.xmlHttp.readyState == 4) {
			if (pThis.id) pThis.getElementContent();
			else pThis.loadHTML();
		}
	};
	this.xmlHttp.open('POST', this.src, true);
	this.xmlHttp.setRequestHeader('X-Requested-With', 'XMLHttpRequest');
	this.xmlHttp.send('dummy=1');
},

getElementContent : function() {
	hs.init();
	var attribs = window.opera || hs.ie6SSL ? { src: 'about:blank' } : null;
	
	this.iframe = hs.createElement('iframe', attribs, 
		{ position: 'absolute', top: '-9999px' }, hs.container);
		
	this.loadHTML();
},

loadHTML : function() {
	var s = this.cachedGet || this.xmlHttp.responseText;
	if (this.pre) hs.cachedGets[this.src] = s;
	if (!hs.ie || hs.uaVersion >= 5.5) {
		s = s.replace(/\s/g, ' ').replace(
			new RegExp('<link[^>]*>', 'gi'), '').replace(
			new RegExp('<script[^>]*>.*?</script>', 'gi'), '');

		if (this.iframe) {
			var doc = this.iframe.contentDocument;
			if (!doc && this.iframe.contentWindow) doc = this.iframe.contentWindow.document;
			if (!doc) { // Opera
				var pThis = this;
				setTimeout(function() {	pThis.loadHTML(); }, 25);
				return;
			}
			doc.open();
			doc.write(s);
			doc.close();
			try { s = doc.getElementById(this.id).innerHTML; } catch (e) {
				try { s = this.iframe.document.getElementById(this.id).innerHTML; } catch (e) {} // opera
			}
		} else {
			s = s.replace(new RegExp('^.*?<body[^>]*>(.*?)</body>.*?$', 'i'), '$1');
		}
	}
	hs.getElementByClass(this.content, 'DIV', 'highslide-body').innerHTML = s;
	this.onLoad();
	for (var x in this) this[x] = null;
}
};


hs.Slideshow = function (expKey, options) {
	if (hs.dynamicallyUpdateAnchors !== false) hs.updateAnchors();
	this.expKey = expKey;
	for (var x in options) this[x] = options[x];
	if (this.useControls) this.getControls();
	if (this.thumbstrip) this.thumbstrip = hs.Thumbstrip(this);
};
hs.Slideshow.prototype = {
getControls: function() {
	this.controls = hs.createElement('div', { innerHTML: hs.replaceLang(hs.skin.controls) }, 
		null, hs.container);
	
	var buttons = ['play', 'pause', 'previous', 'next', 'move', 'full-expand', 'close'];
	this.btn = {};
	var pThis = this;
	for (var i = 0; i < buttons.length; i++) {
		this.btn[buttons[i]] = hs.getElementByClass(this.controls, 'li', 'highslide-'+ buttons[i]);
		this.enable(buttons[i]);
	}
	this.btn.pause.style.display = 'none';
	//this.disable('full-expand');
},
checkFirstAndLast: function() {
	if (this.repeat || !this.controls) return;
	var exp = hs.expanders[this.expKey],
		cur = exp.getAnchorIndex(), 
		re = /disabled$/;
	if (cur == 0) 
		this.disable('previous');
	else if (re.test(this.btn.previous.getElementsByTagName('a')[0].className))
		this.enable('previous');
	if (cur + 1 == hs.anchors.groups[exp.slideshowGroup || 'none'].length) {
		this.disable('next');
		this.disable('play');
	} else if (re.test(this.btn.next.getElementsByTagName('a')[0].className)) {
		this.enable('next');
		this.enable('play');
	}
},
enable: function(btn) {
	if (!this.btn) return;
	var sls = this, a = this.btn[btn].getElementsByTagName('a')[0], re = /disabled$/;
	a.onclick = function() {
		sls[btn]();
		return false;
	};
	if (re.test(a.className)) a.className = a.className.replace(re, '');
},
disable: function(btn) {
	if (!this.btn) return;
	var a = this.btn[btn].getElementsByTagName('a')[0];
	a.onclick = function() { return false; };
	if (!/disabled$/.test(a.className)) a.className += ' disabled';
},
hitSpace: function() {
	if (this.autoplay) this.pause();
	else this.play();
},
play: function(wait) {
	if (this.btn) {
		this.btn.play.style.display = 'none';
		this.btn.pause.style.display = '';
	}
	
	this.autoplay = true;	
	if (!wait) hs.next(this.expKey);
},
pause: function() {
	if (this.btn) {
		this.btn.pause.style.display = 'none';
		this.btn.play.style.display = '';
	}
	
	clearTimeout(this.autoplay);
	this.autoplay = null;
},
previous: function() {
	this.pause();
	hs.previous(this.btn.previous);
},
next: function() {
	this.pause();
	hs.next(this.btn.next);
},
move: function() {},
'full-expand': function() {
	hs.getExpander().doFullExpand();
},
close: function() {
	hs.close(this.btn.close);
}
};
hs.Thumbstrip = function(slideshow) {
	function add (exp) {
		hs.extend(options || {}, {
			overlayId: dom,
			hsId: 'thumbstrip'
		});
		if (hs.ieLt7) options.fade = 0;
		exp.createOverlay(options);
		hs.setStyles(dom.parentNode, { overflow: 'hidden' });
	};
	
	function scroll (delta) {	
		selectThumb(undefined, Math.round(delta * dom[isX ? 'offsetWidth' : 'offsetHeight'] * 0.7));
	};
	
	function selectThumb (i, scrollBy) {
		if (i === undefined) for (var j = 0; j < group.length; j++) {
			if (group[j] == hs.expanders[slideshow.expKey].a) {
				i = j;
				break;
			}
		}
		var as = dom.getElementsByTagName('a'),
			active = as[i],
			cell = active.parentNode,
			left = isX ? 'Left' : 'Top',
			right = isX ? 'Right' : 'Bottom',
			width = isX ? 'Width' : 'Height',
			offsetLeft = 'offset' + left,
			offsetWidth = 'offset' + width,
			overlayWidth = div.parentNode.parentNode[offsetWidth],
			minTblPos = overlayWidth - table[offsetWidth],
			curTblPos = parseInt(table.style[isX ? 'left' : 'top']) || 0,
			tblPos = curTblPos,
			mgnRight = 20;
		if (scrollBy !== undefined) {
			tblPos = curTblPos - scrollBy;
			if (tblPos > 0) tblPos = 0;
			if (tblPos < minTblPos) tblPos = minTblPos;
	
		} else {
			for (var j = 0; j < as.length; j++) as[j].className = '';
			active.className = 'highslide-active-anchor';
			var activeLeft = i > 0 ? as[i - 1].parentNode[offsetLeft] : cell[offsetLeft],
				activeRight = cell[offsetLeft] + cell[offsetWidth] + 
					(as[i + 1] ? as[i + 1].parentNode[offsetWidth] : 0);
			if (activeRight > overlayWidth - curTblPos) tblPos = overlayWidth - activeRight;
			else if (activeLeft < -curTblPos) tblPos = -activeLeft;
		}
		var markerPos = cell[offsetLeft] + (cell[offsetWidth] - marker[offsetWidth]) / 2 + tblPos;
		hs.animate(table, isX ? { left: tblPos } : { top: tblPos }, null, 'easeOutQuad');
		hs.animate(marker, isX ? { left: markerPos } : { top: markerPos }, null, 'easeOutQuad');
		scrollUp.style.display = tblPos < 0 ? 'block' : 'none';
		scrollDown.style.display = (tblPos > minTblPos)  ? 'block' : 'none';
	};
	

	// initialize
	var group = hs.anchors.groups[hs.expanders[slideshow.expKey].slideshowGroup || 'none'],
		options = slideshow.thumbstrip,
		mode = options.mode || 'horizontal',
		floatMode = (mode == 'float'),
		tree = floatMode ? ['div', 'ul', 'li', 'span'] : ['table', 'tbody', 'tr', 'td'],
		isX = (mode == 'horizontal'),
		dom = hs.createElement('div', {
				className: 'highslide-thumbstrip highslide-thumbstrip-'+ mode,
				innerHTML:
					'<div class="highslide-thumbstrip-inner">'+
					'<'+ tree[0] +'><'+ tree[1] +'></'+ tree[1] +'></'+ tree[0] +'></div>'+
					'<div class="highslide-scroll-up"><div></div></div>'+
					'<div class="highslide-scroll-down"><div></div></div>'+
					'<div class="highslide-marker"><div></div></div>'
			}, {
				display: 'none'
			}, hs.container),
		domCh = dom.childNodes,
		div = domCh[0],
		scrollUp = domCh[1],
		scrollDown = domCh[2],
		marker = domCh[3],
		table = div.firstChild,
		tbody = dom.getElementsByTagName(tree[1])[0],
		tr;
	for (var i = 0; i < group.length; i++) {
		if (i == 0 || !isX) tr = hs.createElement(tree[2], null, null, tbody);
		(function(){
			var a = group[i],
				cell = hs.createElement(tree[3], null, null, tr),
				pI = i;
			hs.createElement('a', {
				href: a.href,
				onclick: function() {
					return hs.transit(a);
				},
				innerHTML: hs.stripItemFormatter ? hs.stripItemFormatter(a) : a.innerHTML
			}, null, cell);
		})();
	}
	
	if (!floatMode) {
		scrollUp.onclick = function () { scroll(-1); };
		scrollDown.onclick = function() { scroll(1); };
		hs.addEventListener(tbody, document.onmousewheel !== undefined ? 
				'mousewheel' : 'DOMMouseScroll', function(e) {        
			var delta = 0;
	        e = e || window.event;
	        if (e.wheelDelta) {
				delta = e.wheelDelta/120;
				if (hs.opera) delta = -delta;
	        } else if (e.detail) {
				delta = -e.detail/3;
	        }
	        if (delta) scroll(-delta * 0.2);
	        if (e.preventDefault) e.preventDefault();
			e.returnValue = false;
		});
	}
	
	return {
		add: add,
		selectThumb: selectThumb
	}
};
if (hs.ie) {
	(function () {
		try {
			document.documentElement.doScroll('left');
		} catch (e) {
			setTimeout(arguments.callee, 50);
			return;
		}
		hs.ready();
	})();
}
hs.addEventListener(document, 'DOMContentLoaded', hs.ready);
hs.addEventListener(window, 'load', hs.ready);
hs.langDefaults = hs.lang;
// history
var HsExpander = hs.Expander;

// set handlers
hs.addEventListener(window, 'load', function() {
	if (hs.expandCursor) {
		var sel = '.highslide img', 
			dec = 'cursor: url('+ hs.graphicsDir + hs.expandCursor +'), pointer !important;';
			
		var style = hs.createElement('style', { type: 'text/css' }, null, 
			document.getElementsByTagName('HEAD')[0]);
	
		if (!hs.ie) {
			style.appendChild(document.createTextNode(sel + " {" + dec + "}"));
		} else {
			var last = document.styleSheets[document.styleSheets.length - 1];
			if (typeof(last.addRule) == "object") last.addRule(sel, dec);
		}
	}
});
hs.addEventListener(window, 'resize', function() {
	hs.page = hs.getPageSize();
	if (hs.viewport) for (var i = 0; i < hs.viewport.childNodes.length; i++) {
		var node = hs.viewport.childNodes[i],
			exp = hs.getExpander(node);
		exp.positionOverlay(node);
		if (node.hsId == 'thumbstrip') exp.slideshow.thumbstrip.selectThumb();
	}
});
hs.addEventListener(document, 'mousemove', function(e) {
	hs.mouse = { x: e.clientX, y: e.clientY	};
});
hs.addEventListener(document, 'mousedown', hs.mouseClickHandler);
hs.addEventListener(document, 'mouseup', hs.mouseClickHandler);
hs.addEventListener(document, 'ready', hs.setClickEvents);
hs.addEventListener(window, 'load', hs.preloadImages);
hs.addEventListener(window, 'load', hs.preloadAjax);

/*** 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(); }


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

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

/*** rokajaxsearch.js ***/

/**
 * RokAjaxSearch Module
 *
 * @package		Joomla
 * @subpackage	RokAjaxSearch Module
 * @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
 *
 */

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}('8 4x=f 5r({5q:"1.0",n:{\'J\':L,\'1F\':L,\'3P\':1W,\'3D\':1W,\'3C\':1W,\'5p\':1W,\'41\':\'5t\',\'46\':\'5y\',\'12\':L,\'3n\':L,\'34\':L,\'36\':L,\'3y\':L,\'3k\':L,\'S\':L,\'3x\':L,\'3o\':L,\'1G\':L,\'I\':L,\'3s\':L,\'3O\':L,\'3G\':1E,\'2E\':L,\'32\':L,\'2R\':L,\'2S\':L,\'4l\':1E,\'4m\':1E,\'3r\':1E,\'3m\':1E,\'2j\':1E},5u:u(n){6.5v(n);6.2k=L;6.1C=[\'5m\',\'5c\'];6.Q=$(\'5Q\').14(\'58\',\'5P\');8 X=6.Q.2Y();8 t=X.t+X.19-$(\'1s\').2T().1V.x;d(t<0)t=X.t;6.J=$(\'1s\').2c({\'3t\':\'4h\',\'1B\':X.1B+X.1M,\'t\':t}).o(3d.5T);6.2e=f 33.4d(6.J,\'2W\').4g(0);6.H=0;6.G=\'1x\';8 I=6.n.I;d(6.n.3P||6.n.3D||6.n.3C){$$(\'#26 .4M 24[G=55]\').1i(u(24){24.1o(\'1c\',u(){6.G=24.1z;d(6.G==\'3u\'||6.G==\'2p\'||6.G==\'2Z\'||6.G==\'2u\'){6.n.I=4;d(6.G==\'3u\')6.B=f B.12.54();C d(6.G==\'2p\')6.B=f B.12.4R();C d(6.G==\'2Z\'){6.n.I=3;6.B=f B.12.3b();6.B.4v(B.12.3b.4T,B.12.3b[\'4K\'+6.n.41])}C d(6.G==\'2u\'){6.n.I=3;6.B=f B.12.4I()}d(6.G!=\'2p\'&&6.G!=\'2u\')6.B.4v(B.12.3v.4F,B.12.3v[\'4H\'+6.n.46]);6.B.4E(B.12.3v.4J);6.B.4L();6.B.4C(6,6.4e)}C 6.n.I=I}.1e(6))},6)};6.2h();6.3H()},3K:u(){d(!6.Q.2d(\'1u\'))6.Q.E(\'1u\');6.B.4D(6.Q.1z)},4e:u(){8 J=6.B.J;8 23=$(\'2N\');8 20=f g(\'20\',{\'q\':\'4c\'}).o(23);d(6.G==\'3u\'){J.1i(u(A){8 M=f g(\'M\');8 1O=f g(\'a\',{\'O\':A.4X}).14(\'1k\',\'1l\').D(A.1Q);8 1Q=f g(\'2t\').o(M).2v(1O);8 2w=f g(\'p\').D(\'<1w><a O="\'+A.37+\'" 1k="1l">\'+A.37+\'</a></1w>\').o(M);8 1f=A.1f;1f=1f.1T(\'<b>\',\'<R q="2m">\').1T(\'</b>\',\'</R>\');8 1n=f g(\'k\',{\'q\':\'1A\'}).D(1f).o(M);M.o(20)})}C d(6.G==\'2p\'){J.1i(u(A){8 M=f g(\'M\');8 1O=f g(\'a\',{\'O\':A.4Q}).14(\'1k\',\'1l\').D(A.1Q);8 1Q=f g(\'2t\').o(M).2v(1O);8 2w=f g(\'p\').D(\'<1w>38 \'+A.4P+\' - <a O="\'+A.4a+\'" 1k="1l">\'+A.4a+\'</a></1w>\').o(M);8 1f=A.1f;1f=1f.1T(\'<b>\',\'<R q="2m">\').1T(\'</b>\',\'</R>\');8 1n=f g(\'k\',{\'q\':\'1A\'}).D(1f).o(M);M.o(20)})}C d(6.G==\'2Z\'){J.1i(u(A){8 M=f g(\'M\');8 1O=f g(\'a\',{\'O\':A.3l}).14(\'1k\',\'1l\').D(A.1Q);8 1Q=f g(\'2t\').o(M).2v(1O);8 2w=f g(\'p\').D(\'<1w><a O="\'+A.4O+\'" 1k="1l">\'+A.37+\'</a></1w>\').o(M);8 1f=A.1f;1f=1f.1T(\'<b>\',\'<R q="2m">\').1T(\'</b>\',\'</R>\');8 1n=f g(\'k\',{\'q\':\'1A\'}).D(1f).o(M);8 2a=f g(\'k\',{\'q\':\'B-3M-2M 1u\'}).o(1n);2a.2c({\'19\':A.2J.1a(),\'1M\':A.2K.1a()});8 a=f g(\'a\',{\'O\':A.3l,\'1k\':\'1l\'}).o(2a);8 3B=f g(\'2M\',{19:A.2J.1a(),1M:A.2K.1a(),3V:A.4q}).o(a);M.o(20)})}C d(6.G==\'2u\'){J.1i(u(A){8 M=f g(\'M\');8 1O=f g(\'a\',{\'O\':A.4V}).14(\'1k\',\'1l\').D(A.1Q);8 1Q=f g(\'2t\').o(M).2v(1O);8 1U=A.1Z.1a();8 1Z=\'4U:\'+((1U<10)?\'0\'+1U:1U);d(1U>=2f){8 m=1U/2f;8 s=1U-(m*2f);m=m.1a();s=s.1a();d(m<10)m=\'0\'+m;d(s<10)s=\'0\'+s;1Z=m+\':\'+s;d(m>=2f){8 h=m/2f;h=h.1a();d(h<10)h=\'0\'+h;1Z=h+1Z}}8 2w=f g(\'p\').D(\'<R q="\'+A.3L.53()+\'">52: \'+(4Y(A.4Z)).50(2)+\' | 51: \'+1Z+\' <1w>\'+A.3L+\'</1w></R>\').o(M);8 1n=f g(\'k\',{\'q\':\'1A\'}).D(\'\').o(M);8 2a=f g(\'k\',{\'q\':\'B-3M-2M 1u\'}).o(1n);2a.2c({\'19\':A.2J.1a(),\'1M\':A.2K.1a(),\'57-4G\':\'4B\'});8 a=f g(\'a\',{\'O\':A.3l,\'1k\':\'1l\'}).o(2a);8 3B=f g(\'2M\',{3V:A.4q,19:A.2J.1a(),1M:A.2K.1a()}).o(a);M.o(20)})}6.J.21().F(\'1s\').13(\'1y\',\'1S\');6.U=L;6.Y=L;6.w=-1;6.1g=[];6.3e();23.21().13(\'1y\',\'1S\');6.Q.F(\'1u\');8 X=6.Q.2Y();8 t=X.t+X.19-$(\'1s\').2T().1V.x;d(t<0)t=X.t;6.J.2c({\'1B\':X.1B+X.1M,\'t\':t});6.2e.2b(1);6.11(\'3i\')},2h:u(){6.Q.2h({\'1c\':u(){d(6.Q.42()==6.n.12)6.Q.1z=\'\'}.1e(6),\'5U\':u(){d(6.Q.42()==\'\')6.Q.1z=6.n.12}.1e(6),\'5J\':u(e){e=f 1Y(e);$3A(6.2k);d(e.V==\'2n\')e.22()},\'27\':u(e){e=f 1Y(e);d(e.2L==0||e.2L==17||e.2L==18||e.2L==5I||e.3E||e.3F||e.3I)1H 1W;d(e.3E||e.3F||e.3I||e.V==\'3f\'||e.V==\'3h\'||e.V==\'3g\'||e.V==\'t\'||e.V==\'T\')1H 1E;d(e.V==\'2n\')e.22();d(e.V==\'2n\'&&6.w!=-1){d(6.w||6.w==0)3J.O=6.1g[6.w].3a(\'a\');1H 1W};$3A(6.2k);8 P=6.n.3y.2D("?")[0];P=P.1T(6.n.3o,\'\');P=(P)?P:"4f.5K";8 3U=6.n.3o+P;d(6.Q.1z==\'\'){8 W=6.n.2E.2D(" ");6.J.21().F(\'1s\').13(\'1y\',\'35\');d(W.K>0&&W!=\'\')W.1i(u(k){$(k).13(\'1y\',\'1S\')})}C{d(6.G==\'1x\'){8 2G=f 5L(3U,{5M:\'5H\',30:5G,1v:{\'G\':\'5C\',\'5B\':\'5D\',\'5E\':\'12\',\'5F\':6.n.3O,\'3s\':6.n.3s,\'1G\':6.n.1G,\'5N\':6.Q.1z,\'5O\':\'5V\',\'r\':$5W()},5X:u(){6.Q.E(\'1u\')}.1e(6),5Y:u(3R,b,c){8 J=f g(\'k\').D(3R);8 23=$(\'2N\');J.1X().1i(u(k){d(k.3p(\'q\')==\'3N\'||k.2C==\'S\'){d(k.2C==\'S\'){8 31=k.2y(\'.J\');23.D((31)?31.2g:\'\')}C 23.D(k.2g)}});6.J.21().F(\'1s\').13(\'1y\',\'1S\');6.U=L;6.Y=L;6.w=-1;6.1g=[];d(J.2y(\'.3N\'))6.3S();C 6.3e();23.21().13(\'1y\',\'1S\');6.Q.F(\'1u\');8 X=6.Q.2Y();8 t=X.t+X.19-$(\'1s\').2T().1V.x;d(t<0)t=X.t;6.J.2c({\'1B\':X.1B+X.1M,\'t\':t});6.2e.2b(1);6.11(\'3i\')}.1e(6)});6.2k=2G.2G.30(3X,2G)}C d(6.G!=\'1x\'){6.2k=6.3K.30(3X,6)}}}.1e(6)})},3H:u(){8 3c={\'27\':u(e){e=f 1Y(e);d(e.V==\'t\'||e.V==\'T\'||e.V==\'3h\'||e.V==\'3g\'||e.V==\'2n\'||e.V==\'3f\'){e.22();d(e.V==\'t\'&&6.U)6.U.11(\'1c\');C d(e.V==\'T\'&&6.Y)6.Y.11(\'1c\');C d(e.V==\'3f\'&&6.1F)6.1F.11(\'1c\',e);C d(e.V==\'3g\'){8 29=6.w;d(6.w==-1)6.w=(6.n.I)*6.H;C d(6.w+1<6.1g.K)6.w++;C 1H;d(29!=-1)6.1g[29].11(\'1K\');d((6.w/6.n.I).1a()>6.H)6.Y.11(\'1c\',1E);d(6.w||6.w==0)6.1g[6.w].11(\'2H\')}C d(e.V==\'3h\'){8 29=6.w;d(6.w==-1)6.w=(6.n.I)*6.H;C d(6.w-1>=0)6.w--;C 1H;d(29!=-1)6.1g[29].11(\'1K\');d((6.w/6.n.I).1a()<6.H)6.U.11(\'1c\',1E);d(6.w||6.w==0)6.1g[6.w].11(\'2H\')}C d(e.V==\'2n\'){d(6.w||6.w==0)5R.3J=6.1g[6.w].2y(\'a\')}}}.1e(6)};d(6.n.3G){6.1o(\'3i\',u(){3d.1o(\'27\',3c.27)});6.1o(\'2X\',u(){3d.5S(\'27\',3c.27)})}},3S:u(){8 16=6;8 2A=f g(\'k\',{\'q\':\'4s\'}).o(6.J);8 2z=f g(\'k\',{\'q\':\'4r\'}).o(2A);8 2B=f g(\'k\',{\'q\':\'4p\'}).o(2z);8 1t=f g(\'k\',{\'q\':\'4n\'}).o(2B);8 2l=f g(\'k\',{\'q\':\'4A 1b\'}).D(6.n.J).1j(1t);6.1F=f g(\'a\',{\'2C\':\'4k\',\'q\':\'1b\'}).14(\'O\',\'#\').D(6.n.1F).49(2l);8 W=6.n.2E.2D(" ");6.1F.1o(\'1c\',u(e){6.11(\'2X\');f 1Y(e).22();6.Q.1z=6.n.12;8 16=6;6.2e.2b(0).44(u(){16.J.21().F(\'1s\')});d(W.K>0&&W!=\'\')W.1i(u(k){$(k).13(\'1y\',\'1S\')})}.1e(6));d(W.K>0&&W!=\'\')W.1i(u(k){$(k).13(\'1y\',\'35\')});6.J.E(\'1s\');8 1L=$$(\'#2N 5Z\');d(1L.K>0){8 1d=f g(\'k\',{\'q\':\'1d-2i\'}).o(1t);8 Z=f g(\'k\',{\'q\':\'1d-Z\'}).o(1d);1L.1i(u(A,i){8 1v=\'\';1v=A.1X();d(1v.K>0){1v.1i(u(k,j){d(k.5A()=="k"){d(k.1X().K>2&&!k.5z()){8 25=k.3a().39().3p(\'O\');8 15=f g(\'k\',{\'q\':6.1C[i%2]+\' 1b\'});8 P=f g(\'a\').14(\'O\',25).1j(15);8 1r=f g(\'2U\').D(k.3a().39().3q()).1j(P);6.1g.2F(15);15.2h({\'2H\':u(){6.E(16.1C[i%2]+\'-2I\');16.w=i},\'1K\':u(){6.F(16.1C[i%2]+\'-2I\');d(16.w==i)16.w=-1}});d(6.n.2j)8 1A=k.39().2g;C 8 1A=\'\';8 1n=f g(\'R\').D(1A).1q(P);d(6.n.3r){8 2o=f g(\'R\',{\'q\':\'1w\'}).D(k.1X().5h().3q()).1q(P);8 1I=f g(\'1I\').1q(2o)}d(6.n.3m){8 P=f g(\'a\',{\'q\':\'4i\'}).14(\'O\',25).D(6.n.3n).1q(1n);d(6.n.2j)8 1I=f g(\'1I\').1q(1n)}8 2s=f g(\'k\',{\'q\':\'47 1b\'}).o(Z);8 2x=f g(\'k\',{\'q\':\'48 1b\'}).o(2s);8 2r=f g(\'k\',{\'q\':\'4w 1b\'}).o(2x);8 2q=f g(\'k\',{\'q\':\'4t 1b\'}).o(2r);15.o(2q)}}},6)}},6);8 1h=Z.1X();8 1N=1J.1N(6.n.I,1h.K);8 1R=1J.1R(6.n.I,1h.K);8 I=6.n.I;6.S=[];(1J.4u(1N/1R)).3Q(u(i){d(1h[i])6.S.2F(f g(\'k\',{\'q\':\'S S-\'+i}).o(Z).13(\'19\',Z.2Q(\'19\')));4z(j=0,l=I;j<l;j++){d(1h[i*I+j])1h[i*I+j].o(6.S[i])}}.1e(6));Z.13(\'19\',1d.2Q(\'19\').1a()*1J.4j(1N/1R)+4b)}d(!1L.K){8 15=f g(\'k\',{\'q\':6.1C[0]});8 1r=f g(\'2U\').D(6.n.34).1j(15);8 P=f g(\'a\').14(\'O\',6.n.3k).1q(1r);8 1r=f g(\'R\').D(6.n.36).1j(P);15.o(1t)}C{d(6.n.32){8 1G=$$(\'#26 24[1r=1G]\')[0];6.1P=f g(\'k\',{\'q\':"45 1b"});8 1D=f g(\'a\').14(\'O\',"#").1j(6.1P);8 1r=f g(\'R\').D(6.n.2R).1j(1D);1D.1o(\'1c\',u(e){f 1Y(e).22();1G.1z=\'\';$(\'26\').3Y()});6.1P.o(1t);d(1h.K>6.n.I){6.28=f g(\'k\',{\'q\':\'1d-3Z\'}).o(6.1P,\'1B\');6.U=f g(\'k\',{\'q\':\'v-t-N\'}).o(6.28);6.Y=f g(\'k\',{\'q\':\'v-T\'}).o(6.28);6.3j(1d)}}}},3e:u(){8 16=6;8 2A=f g(\'k\',{\'q\':\'4s\'}).o(6.J);8 2z=f g(\'k\',{\'q\':\'4r\'}).o(2A);8 2B=f g(\'k\',{\'q\':\'4p\'}).o(2z);8 1t=f g(\'k\',{\'q\':\'4n\'}).o(2B);8 2l=f g(\'k\',{\'q\':\'4A 1b\'}).D(6.n.J).1j(1t);d(6.G!=\'1x\'){1t.E(\'B-12\').E(\'B-12-\'+6.G);8 4o=\'<R q="4y-38-B">(4y 38 <a O="5j://B.5k" 1k="1l">5f</a>)</R>\';2l.D(6.n.J+4o)};6.1F=f g(\'a\',{\'2C\':\'4k\',\'q\':\'1b\'}).14(\'O\',\'#\').D(6.n.1F).49(2l);8 W=6.n.2E.2D(" ");6.1F.1o(\'1c\',u(e){6.11(\'2X\');f 1Y(e).22();6.Q.1z=6.n.12;8 16=6;6.2e.2b(0).44(u(){16.J.21().F(\'1s\')});d(W.K>0&&W!=\'\')W.1i(u(k){$(k).13(\'1y\',\'1S\')})}.1e(6));d(W.K>0&&W!=\'\')W.1i(u(k){$(k).13(\'1y\',\'35\')});6.J.E(\'1s\');8 1L=$$(\'#2N 20.4c M\');d(1L.K>0){8 1d=f g(\'k\',{\'q\':\'1d-2i\'}).o(1t);8 Z=f g(\'k\',{\'q\':\'1d-Z\'}).o(1d);1L.1i(u(A,i){8 1v=\'\';1v=A.1X();d(1v.K>0){8 25=A.2y(\'a\').3p(\'O\');8 15=f g(\'k\',{\'q\':6.1C[i%2]+\' 1b\'});8 P=f g(\'a\').14(\'O\',25).1j(15);d(6.G!=\'1x\')P.14(\'1k\',\'1l\');8 1r=f g(\'2U\').D(1v[0].3q()).1j(P);6.1g.2F(15);15.2h({\'2H\':u(){6.E(16.1C[i%2]+\'-2I\');16.w=i},\'1K\':u(){6.F(16.1C[i%2]+\'-2I\');d(16.w==i)16.w=-1}});d(6.n.2j)8 1A=1v[2].2g;C 8 1A=\'\';8 1n=f g(\'R\').D(1A).1q(P);d(6.n.3r){8 2o=f g(\'R\',{\'q\':\'1w\'}).D(1v[1].2g).1q(P);8 1I=f g(\'1I\').1q(2o)}d(6.n.3m){8 P=f g(\'a\',{\'q\':\'4i\'}).14(\'O\',25).D(6.n.3n).1q(1n);d(6.G!=\'1x\')P.14(\'1k\',\'1l\');d(6.n.2j)8 1I=f g(\'1I\').1q(1n)}8 2s=f g(\'k\',{\'q\':\'47 1b\'}).o(Z);8 2x=f g(\'k\',{\'q\':\'48 1b\'}).o(2s);8 2r=f g(\'k\',{\'q\':\'4w 1b\'}).o(2x);8 2q=f g(\'k\',{\'q\':\'4t 1b\'}).o(2r);15.o(2q)}},6);8 1h=Z.1X();8 1N=1J.1N(6.n.I,1h.K);8 1R=1J.1R(6.n.I,1h.K);8 I=6.n.I;6.S=[];(1J.4u(1N/1R)).3Q(u(i){d(1h[i])6.S.2F(f g(\'k\',{\'q\':\'S S-\'+i}).o(Z).13(\'19\',Z.2Q(\'19\')));4z(j=0,l=I;j<l;j++){d(1h[i*I+j])1h[i*I+j].o(6.S[i])}}.1e(6));d(6.G!=\'1x\'){8 1V=6.S[0].2T().1V;6.S[0].13(\'3t\',\'5n\');6.2V=f g(\'k\',{\'q\':\'26-5o\',\'5s\':{\'19\':1V.x,\'1M\':1V.y,\'3t\':\'4h\',\'t\':0,\'1B\':0,\'5x\':\'5w\',\'z-4f\':5}}).o(6.S[0],\'1B\');8 40=f 33.4d(6.2V,\'2W\',{1Z:5l}).4g(0.9)}Z.13(\'19\',1d.2Q(\'19\').1a()*1J.4j(1N/1R)+4b)}d(!1L.K){8 15=f g(\'k\',{\'q\':6.1C[0]});8 1r=f g(\'2U\').D(6.n.34).1j(15);8 P=f g(\'a\').14(\'O\',6.n.3k).1q(1r);8 1r=f g(\'R\').D(6.n.36).1j(P);15.o(1t)}C{d(6.n.32){8 1G=$$(\'#26 24[1r=1G]\')[0];6.1P=f g(\'k\',{\'q\':"45 1b"});8 1D=f g(\'a\',{\'q\':\'2R\'}).14(\'O\',"#").1j(6.1P);8 1r=f g(\'R\').D(6.n.2R).1j(1D);d(6.G!=\'1x\'){1D.5b({\'O\':6.B.1m.59,\'1k\':\'1l\'});d(6.n.4l)8 2S=f g(\'R\',{\'q\':\'5a\'}).5e(\'(\'+6.B.1m.5i+\' \'+6.n.2S+\')\').o(1D,\'3w\');d(6.n.4m){6.3z=f g(\'k\',{\'q\':\'5g\'}).o(2S||1D,\'3w\');6.3z.D(6.n.S+\' \'+\'<R q="2m">\'+(6.B.1m.2O+1)+\'</R>\'+\' \'+6.n.3x+\' \'+\'<R q="2m">\'+6.B.1m.2P.K+\'</R>\')}}C{1D.1o(\'1c\',u(e){f 1Y(e).22();1G.1z=\'\';$(\'26\').3Y()})}6.1P.o(1t);d(1h.K>6.n.I||((6.G!=\'1x\')&&6.B.1m.2P.K>1)){6.28=f g(\'k\',{\'q\':\'1d-3Z\'}).o(6.1P,\'1B\');6.U=f g(\'k\',{\'q\':\'v-t-N\'}).o(6.28);6.Y=f g(\'k\',{\'q\':\'v-T\'}).o(6.28);d(6.G!=\'1x\'){d(6.B.1m){8 H=6.B.1m.2O;d(H>0)6.U.F(\'v-t-N\').E(\'v-t\');d(H==7)6.Y.F(\'v-T\').E(\'v-T-N\')}6.3T(1d);40.2b(0)}C 6.3j(1d)}}}},3T:u(2i){6.U.1o(\'1c\',u(1p){d(!1p&&6.w>=0)6.1g[6.w].11(\'1K\');d(!1p)6.w=-1;8 H=(6.B.1m)?6.B.1m.2O:L;d(H-1<=0){6.U.F(\'v-t\').E(\'v-t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.H=6.S.K-1;C 6.H+=1;6.Z.43(6.S[6.H])}}.1e(6))}});4x.4N(f 4W,f 5d);',62,372,'||||||this||var|||||if||new|Element||||div|||options|inject||class|||left|function|arrow|selectedEl||||res|google|else|setHTML|addClass|removeClass|type|current|perpage|results|length|null|li|disabled|href|lnk|inputBox|span|page|right|arrowleft|key|splitDivs|pos|arrowright|scroller||fireEvent|search|setStyle|setProperty|el|self|||width|toInt|png|click|container|bind|content|els|splitting|each|injectInside|target|_blank|cursor|desc|addEvent|downkey|injectAfter|name|roksearch_results|wrapper4|loading|data|small|local|visibility|value|description|top|rows|lnk2|true|close|limit|return|br|Math|mouseleave|searchedRestuls|height|max|title_link|bottombar|title|min|visible|replace|seconds|size|false|getChildren|Event|duration|ol|empty|stop|tmp|input|suri|rokajaxsearch|keyup|arrowDiv|store|thumb_container|start|setStyles|hasClass|fx|60|innerHTML|addEvents|wrapper|showdescription|timer|header|highlight|enter|cat|blog|innerWrapper4|innerWrapper3|innerWrapper1|h4|videos|adopt|category|innerWrapper2|getElement|wrapper2|wrapper1|wrapper3|id|split|hidedivs|push|request|mouseenter|hover|tbWidth|tbHeight|code|image|rokajaxsearch_tmp|currentPageIndex|pages|getStyle|viewall|estimated|getSize|h3|layer|opacity|unloaded|getCoordinates|images|delay|rs|includelink|Fx|noresults|hidden|advsearch|visibleUrl|by|getNext|getFirst|ImageSearch|bounds|document|outputTableless|esc|down|up|loaded|arrowsInit|advsearchlink|url|showreadmore|readmore|uribase|getProperty|getText|showcategory|ordering|position|web|Search|after|page_of|searchlink|pagination|clear|img|imagesearch|blogsearch|alt|control|keyevents|keyEvents|meta|location|googleStart|videoType|thumb|contentpaneopen|phrase|websearch|times|returns|outputTable|arrowsGoogleInit|uri|src|gotoPage|500|submit|arrows|overlayfx|imagesize|getValue|toElement|chain|roksearch_row_btm|safesearch|roksearch_result_wrapper1|roksearch_result_wrapper2|injectBefore|blogUrl|1000|list|Style|googleComplete|index|set|absolute|clr|round|roksearch_link|showestimated|showpagination|roksearch_wrapper4|poweredbygoogle|roksearch_wrapper3|tbUrl|roksearch_wrapper2|roksearch_wrapper1|roksearch_result_wrapper4|abs|setRestriction|roksearch_result_wrapper3|RokAjaxSearch|powered|for|roksearch_header|center|setSearchCompleteCallback|execute|setResultSetSize|RESTRICT_SAFESEARCH|align|SAFESEARCH_|VideoSearch|SMALL_RESULTSET|IMAGESIZE_|setNoHtmlGeneration|search_options|implement|originalContextUrl|author|postUrl|BlogSearch|Scroll|RESTRICT_IMAGESIZE|00|playUrl|Options|unescapedUrl|parseFloat|rating|toFixed|Duration|Rating|toLowerCase|WebSearch|radio|wait|text|autocomplete|moreResultsUrl|estimated_res|setProperties|roksearch_even|Events|setText|Google|pagination_res|getLast|estimatedResultCount|http|com|300|roksearch_odd|relative|overlay|videosearch|version|Class|styles|MEDIUM|initialize|setOptions|block|display|MODERATE|getPrevious|getTag|option|raw|com_search|view|searchphrase|200|get|224|keydown|php|Ajax|method|searchword|tmpl|off|roksearch_search_str|window|removeEvent|body|blur|component|time|onRequest|onComplete|fieldset'.split('|'),0,{}))
