1try{(function(){Browser.Device={name:'other'};if(Browser.Platform.ios){var device=navigator.userAgent.toLowerCase().match(/(ip(ad|od|hone))/)[0];Browser.Device[device]=true;Browser.Device.name=device;} 2if(this.devicePixelRatio==2) 3Browser.hasHighResolution=true;Browser.isMobile=!['mac','linux','win'].contains(Browser.Platform.name);}).call(this);(function(){[Element,Window,Document].invoke('implement',{hasEvent:function(event){var events=this.retrieve('events'),list=(events&&events[event])?events[event].values:null;if(list){var i=list.length;while(i--)if(i in list){return true;}} 4return false;}});var wrap=function(custom,method,extended){method=custom[method];extended=custom[extended];return function(fn,name){if(extended&&!this.hasEvent(name))extended.call(this,fn,name);if(method)method.call(this,fn,name);};};var inherit=function(custom,base,method){return function(fn,name){base[method].call(this,fn,name);custom[method].call(this,fn,name);};};var events=Element.Events;Element.defineCustomEvent=function(name,custom){var base=events[custom.base];custom.onAdd=wrap(custom,'onAdd','onSetup');custom.onRemove=wrap(custom,'onRemove','onTeardown');events[name]=base?Object.append({},custom,{base:base.base,condition:function(event,name){return(!base.condition||base.condition.call(this,event,name))&&(!custom.condition||custom.condition.call(this,event,name));},onAdd:inherit(custom,base,'onAdd'),onRemove:inherit(custom,base,'onRemove')}):custom;return this;};Element.enableCustomEvents=function(){Object.each(events,function(event,name){if(event.onEnable)event.onEnable.call(event,name);});};Element.disableCustomEvents=function(){Object.each(events,function(event,name){if(event.onDisable)event.onDisable.call(event,name);});};})();Browser.Features.Touch=(function(){try{document.createEvent('TouchEvent').initTouchEvent('touchstart');return true;}catch(exception){} 5return false;})();Browser.Features.iOSTouch=(function(){var name='cantouch',html=document.html,hasTouch=false;if(!html.addEventListener)return false;var handler=function(){html.removeEventListener(name,handler,true);hasTouch=true;};try{html.addEventListener(name,handler,true);var event=document.createEvent('TouchEvent');event.initTouchEvent(name);html.dispatchEvent(event);return hasTouch;}catch(exception){} 6handler();return false;})();(function(){var preventDefault=function(event){if(!event.target||event.target.tagName.toLowerCase()!='select') 7event.preventDefault();};var disabled;Element.defineCustomEvent('touch',{base:'touchend',condition:function(event){if(disabled||event.targetTouches.length!=0)return false;var touch=event.changedTouches[0],target=document.elementFromPoint(touch.clientX,touch.clientY);do{if(target==this)return true;}while(target&&(target=target.parentNode));return false;},onSetup:function(){this.addEvent('touchstart',preventDefault);},onTeardown:function(){this.removeEvent('touchstart',preventDefault);},onEnable:function(){disabled=false;},onDisable:function(){disabled=true;}});})();if(Browser.Features.iOSTouch)(function(){var name='click';delete Element.NativeEvents[name];Element.defineCustomEvent(name,{base:'touchend'});})();if(Browser.Features.Touch)(function(){var name='pinch',thresholdKey=name+':threshold',disabled,active;var events={touchstart:function(event){if(event.targetTouches.length==2)active=true;},touchmove:function(event){if(disabled||!active)return;event.preventDefault();var threshold=this.retrieve(thresholdKey,0.5);if(event.scale<(1+threshold)&&event.scale>(1-threshold))return;active=false;event.pinch=(event.scale>1)?'in':'out';this.fireEvent(name,event);}};Element.defineCustomEvent(name,{onSetup:function(){this.addEvents(events);},onTeardown:function(){this.removeEvents(events);},onEnable:function(){disabled=false;},onDisable:function(){disabled=true;}});})();(function(){var name='swipe',distanceKey=name+':distance',cancelKey=name+':cancelVertical',dflt=50;var start={},disabled,active;var clean=function(){active=false;};var events={touchstart:function(event){if(event.touches.length>1)return;var touch=event.touches[0];active=true;start={x:touch.pageX,y:touch.pageY};},touchmove:function(event){if(disabled||!active)return;var touch=event.changedTouches[0],end={x:touch.pageX,y:touch.pageY};if(this.retrieve(cancelKey)&&Math.abs(start.y-end.y)>10){active=false;return;} 8var distance=this.retrieve(distanceKey,dflt),delta=end.x-start.x,isLeftSwipe=delta<-distance,isRightSwipe=delta>distance;if(!isRightSwipe&&!isLeftSwipe) 9return;event.preventDefault();active=false;event.direction=(isLeftSwipe?'left':'right');event.start=start;event.end=end;this.fireEvent(name,event);},touchend:clean,touchcancel:clean};Element.defineCustomEvent(name,{onSetup:function(){this.addEvents(events);},onTeardown:function(){this.removeEvents(events);},onEnable:function(){disabled=false;},onDisable:function(){disabled=true;clean();}});})();(function(){var name='touchhold',delayKey=name+':delay',disabled,timer;var clear=function(e){clearTimeout(timer);};var events={touchstart:function(event){if(event.touches.length>1){clear();return;} 10timer=(function(){this.fireEvent(name,event);}).delay(this.retrieve(delayKey)||750,this);},touchmove:clear,touchcancel:clear,touchend:clear};Element.defineCustomEvent(name,{onSetup:function(){this.addEvents(events);},onTeardown:function(){this.removeEvents(events);},onEnable:function(){disabled=false;},onDisable:function(){disabled=true;clear();}});})();}catch(e){console.error('Error in file:/components/com_roksprocket/assets/js/mootools-mobile.js; Error:'+e.message);}; 11try{((function(){window.matchMedia=window.matchMedia||window.msMatchMedia||(function(doc,undefined){var bool,docElem=doc.documentElement,refNode=docElem.firstElementChild||docElem.firstChild,fakeBody=doc.createElement('body'),div=doc.createElement('div');div.id='mq-test-1';div.style.cssText="position:absolute;top:-100em";fakeBody.style.background="none";fakeBody.appendChild(div);return function(q){div.innerHTML='­<style media="'+q+'"> #mq-test-1 { width: 42px; }</style>';docElem.insertBefore(fakeBody,refNode);bool=div.offsetWidth==42;docElem.removeChild(fakeBody);return{matches:bool,media:q,addListener:function(fn){if(!Browser.ie9&&!window.opera)return"";if(window.retrieve('rokmediaqueries:listener:'+q.replace(/[a-z]|[(|)|:|\s|-]/gi,''),false))return;window.store('rokmediaqueries:listener:'+q.replace(/[a-z]|[(|)|:|\s|-]/gi,''),true);window[window.addListener?'addListener':'attachEvent']('resize',function(){var sizes={},length=0,winSize,passed=false;q.replace(/(\w+-?\w+)\s?:\s?(\d+){1,}/g,function(match,p1,p2,p3,offset,string){sizes[p1]=p2;length++;});if(!length)return;else if(length==1){winSize=window.getSize();passed=false;Object.each(sizes,function(size,dimension){if(dimension=='min-width')passed+=winSize.x>=size;else if(dimension=='max-width')passed+=winSize.x<=size;else if(dimension=='width')passed+=winSize.x==size;});}else if(length>1){winSize=window.getSize();passed=true;
11Object.each(sizes,function(size,dimension){if(dimension=='min-width')passed*=winSize.x>=size;else if(dimension=='max-width')passed*=winSize.x<=size;else if(dimension=='width')passed*=winSize.x==size;});} 12if(passed)return fn.call(fn,q);});}};};})(document);})());((function(win,doc){if(typeof RokMediaQueries!='undefined')return;var RokMediaQuery=new Class({Implements:[Events,Options],options:{queries:['(min-width: 1200px)','(min-width: 960px) and (max-width: 1199px)','(min-width: 768px) and (max-width: 959px)','(min-width: 481px) and (max-width: 767px)','(max-width: 480px)']},initialize:function(options){this.setOptions(options);this.queries=this.options.queries;this.queriesEvents={};this.timers=[];for(var i=this.queries.length-1;i>=0;i--){var media=win.matchMedia(this.queries[i]);media.addListener(this._fireEvent.bind(this,this.queries[i]));this.queriesEvents[this.queries[i]]=[];}},on:function(query,funct){if(query=='every'){for(var i=this.queries.length-1;i>=0;i--)this._addOnMatch(this.queries[i],funct);}else{this._addOnMatch(query,funct);}},add:function(query){if(!this.queries.contains(query)){var media;this.queries.push(query);media=win.matchMedia(query);media.addListener(this._fireEvent.bind(this,query));} 13if(!this.queriesEvents[query])this.queriesEvents[query]=[];},getQuery:function(){var current="";for(var i=this.queries.length-1;i>=0;i--){if(win.matchMedia(this.queries[i]).matches){current=this.queries[i];break;}} 14return current;},_fireEvent:function(query){if(!win.matchMedia(query).matches||!Object.getLength(this.queriesEvents)||!this.queriesEvents[query])return;for(var i=this.queriesEvents[query].length-1;i>=0;i--){this.queriesEvents[query][i].delay(5,this,query);}},_addOnMatch:function(query,funct){this.add(query);this.queriesEvents[query].push(funct);}});win.RokMediaQueries=new RokMediaQuery();})(window,document));}catch(e){console.error('Error in file:/components/com_roksprocket/assets/js/rokmediaqueries.js; Error:'+e.message);}; 15try{((function(){var sprocket={instances:{}};if(typeof this.RokSprocket=='undefined')this.RokSprocket=sprocket;else Object.merge(this.RokSprocket,{instances:{}});if(MooTools.version<"1.4.4"&&(Browser.name=='ie'&&Browser.version<9)){((function(){var dataList=['rel','data-next','data-previous','data-tabs','data-tabs-navigation','data-tabs-panel','data-tabs-next','data-tabs-previous','data-lists','data-lists-items','data-lists-item','data-lists-toggler','data-lists-content','data-lists-page','data-lists-next','data-lists-previous','data-headlines','data-headlines-item','data-headlines-next','data-headlines-previous','data-features','data-features-pagination','data-features-next','data-features-previous','data-slideshow','data-slideshow-pagination','data-slideshow-next','data-slideshow-previous','data-showcase','data-showcase-pagination','data-showcase-next','data-showcase-previous'];dataList.each(function(data){Element.Properties[data]={get:function(){return this.getAttribute(data);}};});})());}})());}catch(e){console.error('Error in file:/components/com_roksprocket/assets/js/roksprocket.js; Error:'+e.message);}; 16try{(function(modules){var cache={},require=function(id){var module=cache[id];if(!module){module=cache[id]={};var exports=module.exports={};modules[id].call(exports,require,module,exports,window);} 17return module.exports;};window["moofx"]=require("0");})({"0":function(require,module,exports,global){"use strict";var color=require("1"),frame=require("2");var moofx=typeof document!=="undefined"?require("7"):require("b");moofx.requestFrame=function(callback){frame.request(callback);return this;};moofx.cancelFrame=function(callback){frame.cancel(callback);return this;};moofx.color=color;module.exports=moofx;},"1":function(require,module,exports,global){"use strict";var colors={maroon:"#800000",red:"#ff0000",orange:"#ffA500",yellow:"#ffff00",olive:"#808000",purple:"#800080",fuchsia:"#ff00ff",white:"#ffffff",lime:"#00ff00",green:"#008000",navy:"#000080",blue:"#0000ff",aqua:"#00ffff",teal:"#008080",black:"#000000",silver:"#c0c0c0",gray:"#808080",transparent:"#0000"};var RGBtoRGB=function(r,g,b,a){if(a==null||a==="")a=1;r=parseFloat(r);g=parseFloat(g);b=parseFloat(b);a=parseFloat(a);if(!(r<=255&&r>=0&&g<=255&&g>=0&&b<=255&&b>=0&&a<=1&&a>=0))return null;return[Math.round(r),Math.round(g),Math.round(b),a];};var HEXtoRGB=function(hex){if(hex.length===3)hex+="f";if(hex.length===4){var h0=hex.charAt(0),h1=hex.charAt(1),h2=hex.charAt(2),h3=hex.charAt(3);hex=h0+h0+h1+h1+h2+h2+h3+h3;} 18if(hex.length===6)hex+="ff";var rgb=[];for(var i=0,l=hex.length;i<l;i+=2)rgb.push(parseInt(hex.substr(i,2),16)/(i===6?255:1));return rgb;};var HUEtoRGB=function(p,q,t){if(t<0)t+=1;if(t>1)t-=1;if(t<1/6)return p+(q-p)*6*t;if(t<1/2)return q;if(t<2/3)return p+(q-p)*(2/3-t)*6;return p;};var HSLtoRGB=function(h,s,l,a){var r,b,g;if(a==null||a==="")a=1;h=parseFloat(h)/360;s=parseFloat(s)/100;l=parseFloat(l)/100;a=parseFloat(a)/1;if(h>1||h<0||s>1||s<0||l>1||l<0||a>1||a<0)return null;if(s===0){r=b=g=l;}else{var q=l<.5?l*(1+s):l+s-l*s;var p=2*l-q;r=HUEtoRGB(p,q,h+1/3);g=HUEtoRGB(p,q,h);b=HUEtoRGB(p,q,h-1/3);} 19return[r*255,g*255,b*255,a];};var keys=[];for(var c in colors)keys.push(c);var shex="(?:#([a-f0-9]{3,8}))",sval="\\s*([.\\d%]+)\\s*",sop="(?:,\\s*([.\\d]+)\\s*)?",slist="\\("+[sval,sval,sval]+sop+"\\)",srgb="(?:rgb)a?",shsl="(?:hsl)a?",skeys="("+keys.join("|")+")";var xhex=RegExp(shex,"i"),xrgb=RegExp(srgb+slist,"i"),xhsl=RegExp(shsl+slist,"i");var color=function(input,array){if(input==null)return null;input=(input+"").replace(/\s+/,"");var match=colors[input];if(match){return color(match,array);}else if(match=input.match(xhex)){input=HEXtoRGB(match[1]);}else if(match=input.match(xrgb)){input=match.slice(1);}else if(match=input.match(xhsl)){input=HSLtoRGB.apply(null,match.slice(1));}else return null;if(!(input&&(input=RGBtoRGB.apply(null,input))))return null;if(array)return input;if(input[3]===1)input.splice(3,1);return"rgb"+(input.length===4?"a":"")+"("+input+")";};color.x=RegExp([skeys,shex,srgb+slist,shsl+slist].join("|"),"gi");module.exports=color;},"2":function(require,module,exports,global){"use strict";var array=require("3");var requestFrame=global.requestAnimationFrame||global.webkitRequestAnimationFrame||global.mozRequestAnimationFrame||global.oRequestAnimationFrame||global.msRequestAnimationFrame||function(callback){return setTimeout(callback,1e3/60);};var callbacks=[];var iterator=function(time){var split=callbacks.splice(0,callbacks.length);for(var i=0,l=split.length;i<l;i++)split[i](time||(time=+new Date()));};var cancel=function(callback){var io=array.indexOf(callbacks,callback);if(io>-1)callbacks.splice(io,1);};var request=function(callback){var i=callbacks.push(callback);if(i===1)requestFrame(iterator);return function(){cancel(callback);};};exports.request=request;exports.cancel=cancel;},"3":function(require,module,exports,global){"use strict";var array=require("4")["array"];var names=("pop,push,reverse,shift,sort,splice,unshift,concat,join,slice,toString,indexOf,lastIndexOf,forEach,every,some"+",filter,map,reduce,reduceRight").split(",");for(var methods={},i=0,name,method;name=names[i++];)if(method=Array.prototype[name])methods[name]=method;if(!methods.filter)methods.filter=function(fn,context){var results=[];for(var i=0,l=this.length>>>0;i<l;i++)if(i in this){var value=this[i];if(fn.call(context,value,i,this))results.push(value);} 20return results;};if(!methods.indexOf)methods.indexOf=function(item,from){for(var l=this.length>>>0,i=from<0?Math.max(0,l+from):from||0;i<l;i++){if(i in this&&this[i]===item)return i;} 21return-1;};if(!methods.map)methods.map=function(fn,context){var length=this.length>>>0,results=Array(length);for(var i=0,l=length;i<l;i++){if(i in this)results[i]=fn.call(context,this[i],i,this);} 22return results;};if(!methods.every)methods.every=function(fn,context){for(var i=0,l=this.length>>>0;i<l;i++){if(i in this&&!fn.call(context,this[i],i,this))return false;} 23return true;};if(!methods.some)methods.some=function(fn,context){for(var i=0,l=this.length>>>0;i<l;i++){if(i in this&&fn.call(context,this[i],i,this))return true;} 24return false;};if(!methods.forEach)methods.forEach=function(fn,context){for(var i=0,l=this.length>>>0;i<l;i++){if(i in this)fn.call(context,this[i],i,this);}};var toString=Object.prototype.toString;array.isArray=Array.isArray||function(self){return toString.call(self)==="[object Array]";};module.exports=array.implement(methods);},"4":function(require,module,exports,global){"use strict";var prime=require("5"),type=require("6");var slice=Array.prototype.slice;var ghost=prime({constructor:function ghost(self){this.valueOf=function(){return self;};this.toString=function(){return self+"";};this.is=function(object){return self===object;};}});var shell=function(self){if(self==null||self instanceof ghost)return self;var g=shell[type(self)];return g?new g(self):self;};var register=function(){var g=prime({inherits:ghost});return prime({constructor:function(self){return new g(self);},define:function(key,descriptor){var method=descriptor.value;this[key]=function(self){return arguments.length>
241?method.apply(self,slice.call(arguments,1)):method.call(self);};g.prototype[key]=function(){return shell(method.apply(this.valueOf(),arguments));};prime.define(this.prototype,key,descriptor);return this;}});};for(var types="string,number,array,object,date,function,regexp".split(","),i=types.length;i--;)shell[types[i]]=register();module.exports=shell;},"5":function(require,module,exports,global){"use strict";var has=function(self,key){return Object.hasOwnProperty.call(self,key);};var each=function(object,method,context){for(var key in object)if(method.call(context,object[key],key,object)===false)break;return object;};if(!{valueOf:0}.propertyIsEnumerable("valueOf")){var buggy="constructor,toString,valueOf,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString".split(",");var proto=Object.prototype;each=function(object,method,context){for(var key in object)if(method.call(context,object[key],key,object)===false)return object;for(var i=0;key=buggy[i];i++){var value=object[key];if((value!==proto[key]||has(object,key))&&method.call(context,value,key,object)===false)break;} 25return object;};} 26var create=Object.create||function(self){var constructor=function(){};constructor.prototype=self;return new constructor();};var getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;var define=Object.defineProperty;try{var obj={a:1};getOwnPropertyDescriptor(obj,"a");define(obj,"a",{value:2});}catch(e){getOwnPropertyDescriptor=function(object,key){return{value:object[key]};};define=function(object,key,descriptor){object[key]=descriptor.value;return object;};} 27var implement=function(proto){each(proto,function(value,key){if(key!=="constructor"&&key!=="define"&&key!=="inherits")this.define(key,getOwnPropertyDescriptor(proto,key)||{writable:true,enumerable:true,configurable:true,value:value});},this);return this;};var prime=function(proto){var superprime=proto.inherits;var constructor=has(proto,"constructor")?proto.constructor:superprime?function(){return superprime.apply(this,arguments);}:function(){};if(superprime){var superproto=superprime.prototype;var cproto=constructor.prototype=create(superproto);constructor.parent=superproto;cproto.constructor=constructor;} 28constructor.define=proto.define||superprime&&superprime.define||function(key,descriptor){define(this.prototype,key,descriptor);return this;};constructor.implement=implement;return constructor.implement(proto);};prime.has=has;prime.each=each;prime.create=create;prime.define=define;module.exports=prime;},"6":function(require,module,exports,global){"use strict";var toString=Object.prototype.toString,types=/number|object|array|string|function|date|regexp|boolean/;var type=function(object){if(object==null)return"null";var string=toString.call(object).slice(8,-1).toLowerCase();if(string==="number"&&isNaN(object))return"null";if(types.test(string))return string;return"object";};module.exports=type;},"7":function(require,module,exports,global){"use strict";var color=require("1"),frame=require("2");var cancelFrame=frame.cancel,requestFrame=frame.request;var prime=require("5"),array=require("3"),string=require("8");var camelize=string.camelize,clean=string.clean,capitalize=string.capitalize;var map=array.map,forEach=array.forEach,indexOf=array.indexOf;var elements=require("a");var fx=require("b");var hyphenated={};var hyphenate=function(self){return hyphenated[self]||(hyphenated[self]=string.hyphenate(self));};var round=function(n){return Math.round(n*1e3)/1e3;};var compute=global.getComputedStyle?function(node){var cts=getComputedStyle(node);return function(property){return cts?cts.getPropertyValue(hyphenate(property)):"";};}:function(node){var cts=node.currentStyle;return function(property){return cts?cts[camelize(property)]:"";};};var test=document.createElement("div");var cssText="border:none;margin:none;padding:none;visibility:hidden;position:absolute;height:0;";var pixelRatio=function(element,u){var parent=element.parentNode,ratio=1;if(parent){test.style.cssText=cssText+("width:100"+u+";");parent.appendChild(test);ratio=test.offsetWidth/100;parent.removeChild(test);} 29return ratio;};var mirror4=function(values){var length=values.length;if(length===1)values.push(values[0],values[0],values[0]);else if(length===2)values.push(values[0],values[1]);else if(length===3)values.push(values[1]);return values;};var sLength="([-.\\d]+)(%|cm|mm|in|px|pt|pc|em|ex|ch|rem|vw|vh|vm)",sLengthNum=sLength+"?",sBorderStyle="none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit";var rgLength=RegExp(sLength,"g"),rLengthNum=RegExp(sLengthNum),rgLengthNum=RegExp(sLengthNum,"g"),rBorderStyle=RegExp(sBorderStyle);var parseString=function(value){return value==null?"":value+"";};var parseOpacity=function(value,normalize){if(value==null||value==="")return normalize?"1":"";return isFinite(value=+value)?value<0?"0":value+"":"1";};try{test.style.color="rgba(0,0,0,0.5)";}catch(e){} 30var rgba=/^rgba/.test(test.style.color);var parseColor=function(value,normalize){var black="rgba(0,0,0,1)",c;if(!value||!(c=color(value,true)))return normalize?black:"";if(normalize)return"rgba("+c+")";var alpha=c[3];if(alpha===0)return"transparent";return!rgba||alpha===1?"rgb("+c.slice(0,3)+")":"rgba("+c+")";};var parseLength=function(value,normalize){if(value==null||value==="")return normalize?"0px":"";var match=string.match(value,rLengthNum);return match?match[1]+(match[2]||"px"):value;};var parseBorderStyle=function(value,normalize){if(value==null||value==="")return normalize?"none":"";var match=value.match(rBorderStyle);return match?value:normalize?"none":"";};var parseBorder=function(value,normalize){var normalized="0px none rgba(0,0,0,1)";if(value==null||value==="")return normalize?normalized:"";if(value===0||value==="none")return normalize?normalized:value+"";var c;value=value.replace(color.x,function(match){c=match;return"";});var s=value.match(rBorderStyle),l=value.match(rgLengthNum);return clean([parseLength(l?l[0]:"",normalize),parseBorderStyle(s?s[0]:"",normalize),parseColor(c,normalize)].join(" "));};var parseShort4=function(value,normalize){if(value==null||value==="")return normalize?"0px 0px 0px 0px":"";return clean(mirror4(map(clean(value).split(" "),function(v){return parseLength(v,normalize);})).join(" "));};var parseShadow=function(value,normalize,len){var transparent="rgba(0,0,0,0)",normalized=len===3?transparent+" 0px 0px 0px":transparent+" 0px 0px 0px 0px";if(value==null||value==="")return normalize?normalized:"";if(value==="none")return normalize?normalized:value;var colors=[],value=clean(value).replace(color.x,function(match){colors.push(match);return"";});return map(value.split(","),function(shadow,i){var c=parseColor(colors[i],normalize),inset=/inset/.test(shadow),lengths=s
30hadow.match(rgLengthNum)||["0px"];lengths=map(lengths,function(m){return parseLength(m,normalize);});while(lengths.length<len)lengths.push("0px");var ret=inset?["inset",c]:[c];return ret.concat(lengths).join(" ");}).join(", ");};var parse=function(value,normalize){if(value==null||value==="")return"";return value.replace(color.x,function(match){return parseColor(match,normalize);}).replace(rgLength,function(match){return parseLength(match,normalize);});};var getters={},setters={},parsers={},aliases={};var getter=function(key){return getters[key]||(getters[key]=function(){var alias=aliases[key]||key,parser=parsers[key]||parse;return function(){return parser(compute(this)(alias),true);};}());};var setter=function(key){return setters[key]||(setters[key]=function(){var alias=aliases[key]||key,parser=parsers[key]||parse;return function(value){this.style[alias]=parser(value,false);};}());};var trbl=["Top","Right","Bottom","Left"],tlbl=["TopLeft","TopRight","BottomRight","BottomLeft"];forEach(trbl,function(d){var bd="border"+d;forEach(["margin"+d,"padding"+d,bd+"Width",d.toLowerCase()],function(n){parsers[n]=parseLength;});parsers[bd+"Color"]=parseColor;parsers[bd+"Style"]=parseBorderStyle;parsers[bd]=parseBorder;getters[bd]=function(){return[getter(bd+"Width").call(this),getter(bd+"Style").call(this),getter(bd+"Color").call(this)].join(" ");};});forEach(tlbl,function(d){parsers["border"+d+"Radius"]=parseLength;});parsers.color=parsers.backgroundColor=parseColor;parsers.width=parsers.height=parsers.minWidth=parsers.minHeight=parsers.maxWidth=parsers.maxHeight=parsers.fontSize=parsers.backgroundSize=parseLength;forEach(["margin","padding"],function(name){parsers[name]=parseShort4;getters[name]=function(){return map(trbl,function(d){return getter(name+d).call(this);},this).join(" ");};});parsers.borderWidth=parseShort4;parsers.borderStyle=function(value,normalize){if(value==null||value==="")return normalize?mirror4(["none"]).join(" "):"";value=clean(value).split(" ");return clean(mirror4(map(value,function(v){parseBorderStyle(v,normalize);})).join(" "));};parsers.borderColor=function(value,normalize){if(!value||!(value=string.match(value,color.x)))return normalize?mirror4(["rgba(0,0,0,1)"]).join(" "):"";return clean(mirror4(map(value,function(v){return parseColor(v,normalize);})).join(" "));};forEach(["Width","Style","Color"],function(name){getters["border"+name]=function(){return map(trbl,function(d){return getter("border"+d+name).call(this);},this).join(" ");};});parsers.borderRadius=parseShort4;getters.borderRadius=function(){return map(tlbl,function(d){return getter("border"+d+"Radius").call(this);},this).join(" ");};parsers.border=parseBorder;getters.border=function(){var pvalue;for(var i=0;i<trbl.length;i++){var value=getter("border"+trbl[i]).call(this);if(pvalue&&value!==pvalue)return null;pvalue=value;} 31return pvalue;};parsers.zIndex=parseString;parsers.opacity=parseOpacity;var filterName=test.style.MsFilter!=null&&"MsFilter"||test.style.filter!=null&&"filter";if(filterName&&test.style.opacity==null){var matchOp=/alpha\(opacity=([\d.]+)\)/i;setters.opacity=function(value){value=(value=parseOpacity(value))==="1"?"":"alpha(opacity="+Math.round(value*100)+")";var filter=compute(this)(filterName);return this.style[filterName]=matchOp.test(filter)?filter.replace(matchOp,value):filter+" "+value;};getters.opacity=function(){var match=compute(this)(filterName).match(matchOp);return(!match?1:match[1]/100)+"";};} 32var parseBoxShadow=parsers.boxShadow=function(value,normalize){return parseShadow(value,normalize,4);};var parseTextShadow=parsers.textShadow=function(value,normalize){return parseShadow(value,normalize,3);};forEach(["Webkit","Moz","ms","O",null],function(prefix){forEach(["transition","transform","transformOrigin","transformStyle","perspective","perspectiveOrigin","backfaceVisibility"],function(style){var cc=prefix?prefix+capitalize(style):style;if(prefix==="ms")hyphenated[cc]="-ms-"+hyphenate(style);if(test.style[cc]!=null)aliases[style]=cc;});});var transitionName=aliases.transition,transformName=aliases.transform;if(transitionName==="OTransition")transitionName=null;var parseTransform2d,Transform2d;if(!transitionName&&transformName)(function(){var unmatrix=require("d");var v="\\s*([-\\d\\w.]+)\\s*";var rMatrix=RegExp("matrix\\("+[v,v,v,v,v,v]+"\\)");var decomposeMatrix=function(matrix){var d=unmatrix.apply(null,matrix.match(rMatrix).slice(1))||[[0,0],0,0,[0,0]];return["translate("+map(d[0],function(v){return round(v)+"px";})+")","rotate("+round(d[1]*180/Math.PI)+"deg)","skewX("+round(d[2]*180/Math.PI)+"deg)","scale("+map(d[3],round)+")"].join(" ");};var def0px=function(value){return value||"0px";},def1=function(value){return value||"1";},def0deg=function(value){return value||"0deg";};var transforms={translate:function(value){if(!value)value="0px,0px";var values=value.split(",");if(!values[1])values[1]="0px";return map(values,clean)+"";},translateX:def0px,translateY:def0px,scale:function(value){if(!value)value="1,1";var values=value.split(",");if(!values[1])values[1]=values[0];return map(values,clean)+"";},scaleX:def1,scaleY:def1,rotate:def0deg,skewX:def0deg,skewY:def0deg};Transform2d=prime({constructor:function(transform){var names=this.names=[];var values=this.values=[];transform.replace(/(\w+)\(([-.\d\s\w,]+)\)/g,function(match,name,value){names.push(name);values.push(value);});},identity:function(){var functions=[];forEach(this.names,function(name){var fn=transforms[name];if(fn)functions.push(name+"("+fn()+")");});return functions.join(" ");},sameType:function(transformObject){return this.names.toString()===transformObject.names.toString();},decompose:function(){var transform=this.toString();test.style.cssText=cssText+hyphenate(transformName)+":"+transform+";";document.body.appendChild(test);var m=compute(test)(transformName);if(!m||m==="none")m="matrix(1, 0, 0, 1, 0, 0)";document.body.removeChild(test);return decomposeMatrix(m);}});Transform2d.prototype.toString=function(clean){var values=this.values,functions=[];forEach(this.names,function(name,i){var fn=transforms[name];if(!fn)return;var value=fn(values[i]);if(!clean||value!==fn())functions.push(name+"("+value+")");});return functions.length?functions.join(" "):"none";};Transform2d.union=function(from,to){if(from===to)return;var fromMap,toMap;if(from==="none"){toMap=new Transform2d(to);to=toMap.toString();from=toMap.identity();fromMap=new Transform2d(from);}else if(to==="none"){fromMap=new Transform2d(from);from=fromMap.toString();to=fromMap.identity();toMap=new Transform2d(to);}else{fromMap=new Transform2d(from);from=fromMap.toString();toMap=new Transform2d(to);to=toMap.toString();} 33if(from===to)return;if(!fromMap.sameType(toMap)){from=fromMap.decompose();to=toMap.decompose();} 34if(from===to)return;return[from,to];};parseTransform2d=parsers.transform=function(transform){if(!transform||transform==="none")return"none";return new Transform2d(rMatrix.test(transform)?decomposeMatrix(transform):transform).toString(true);};getters.transform=function(){var s=this.style;return s[transformName]||(s[transformName]=parseTransform2d(compute(this)(transformName)));};})();var prepare=function(node,property,to){var parser=parsers[property]||parse,from=getter(property).call(node),to=parser(to,true);if(from===to)return;if(parser===parseLength||parser===parseBorder||parser===parseShort4){var toAll=to.match(rgLength),i=0;if(toAll)from=from.replace(rgLength,function(fromFull,fromValue,fromUnit){var toFull=toAll[i++],toMatched=toFull.match(rLengthNum),toUnit=toMatched[2];if(fromUnit!==toUnit){var fromPixels=fromUnit==="px"?fromValue:pixelRatio(node,fromUnit)*fromValue;return round(fromPixels/pixelRatio(node,toUnit))+toUnit;} 35return fromFull;});if(i>0)setter(property).call(node,from);}else if(parser===parseTransform2d){return Transform2d.union(from,to);} 36return from!==to?[from,to]:null;};var BrowserAnimation=prime({inherits:fx,constructor:function BrowserAnimation(node,property){var _getter=getter(property),_setter=setter(property);this.get=function(){return _getter.call(node);};this.set=function(value){return _setter.call(node,value);};BrowserAnimation.parent.constructor.call(this,this.set);this.node=node;this.property=property;}});var JSAnimation;JSAnimation=prime({inherits:BrowserAnimation,constructor:function JSAnimation(){return JSAnimation.parent.constructor.apply(this,arguments);},start:function(to){this.stop();if(this.duration===0){this.cancel(to);return this;} 37var fromTo=prepare(this.node,this.property,to);if(!fromTo){this.cancel(to);return this;} 38JSAnimation.parent.start.apply(this,fromTo);if(!this.cancelStep)return this;var parser=parsers[this.property]||parse;if((parser===parseBoxShadow||parser===parseTextShadow||parser===parse)&&this.templateFrom!==this.templateTo){this.cancelStep();delete this.cancelStep;this.cancel(to);} 39return this;},parseEquation:function(equation){if(typeof equation==="string")return JSAnimation.parent.parseEquation.call(this,equation);}});var remove3=function(value,a,b,c){var index=indexOf(a,value);if(index!==-1){a.splice(index,1);b.splice(index,1);c.splice(index,1);}};var CSSAnimation=prime({inherits:BrowserAnimation,constructor:function CSSAnimation(node,property){CSSAnimation.parent.constructor.call(this,node,property);this.hproperty=hyphenate(aliases[property]||property);var self=this;this.bSetTransitionCSS=function(time){self.setTransitionCSS(time);};this.bSetStyleCSS=function(time){self.setStyleCSS(time);};this.bComplete=function(){self.complete();};},start:function(to){this.stop();if(this.duration===0){this.cancel(to);return this;} 40var fromTo=prepare(this.node,this.property,to);if(!fromTo){this.cancel(to);return this;} 41this.to=fromTo[1];this.cancelSetTransitionCSS=requestFrame(this.bSetTransitionCSS);return this;},setTransitionCSS:function(time){delete this.cancelSetTransitionCSS;this.resetCSS(true);this.cancelSetStyleCSS=requestFrame(this.bSetStyleCSS);},setStyleCSS:function(time){delete this.cancelSetStyleCSS;var duration=this.duration;this.cancelComplete=setTimeout(this.bComplete,duration);this.endTime=time+duration;this.set(this.to);},complete:function(){delete this.cancelComplete;this.resetCSS();this.callback(this.endTime);},stop:function(hard){if(this.cancelExit){this.cancelExit();delete this.cancelExit;}else if(this.cancelSetTransitionCSS){this.cancelSetTransitionCSS();delete this.cancelSetTransitionCSS;}else if(this.cancelSetStyleCSS){this.cancelSetStyleCSS();delete this.cancelSetStyleCSS;if(hard)this.resetCSS();}else if(this.cancelComplete){clearTimeout(this.cancelComplete);delete this.cancelComplete;if(hard){this.resetCSS();this.set(this.get());}} 42return this;},resetCSS:function(inclusive){var rules=compute(this.node),properties=(rules(transitionName+"Property").replace(/\s+/g,"")||"all").split(","),durations=(rules(transitionName+"Duration").replace(/\s+/g,"")||"0s").split(","),equations=(rules(transitionName+"TimingFunction").replace(/\s+/g,"")||"ease").match(/cubic-bezier\([\d-.,]+\)|([a-z-]+)/g);remove3("all",properties,durations,equations);remove3(this.hproperty,properties,durations,equations);if(inclusive){properties.push(this.hproperty);durations.push(this.duration+"ms");equations.push("cubic-bezier("+this.equation+")");} 43var nodeStyle=this.node.style;nodeStyle[transitionName+"Property"]=properties;nodeStyle[transitionName+"Duration"]=durations;nodeStyle[transitionName+"TimingFunction"]=equations;},parseEquation:function(equation){if(typeof equation==="string")return CSSAnimation.parent.parseEquation.call(this,equation,true);}});var BaseAnimation=transitionName?CSSAnimation:JSAnimation;var moofx=function(x,y){return typeof x==="function"?fx(x):elements(x,y);};elements.implement({animate:function(A,B,C){var styles=A,options=B;if(typeof A==="string"){styles={};styles[A]=B;options=C;} 44if(options==null)options={};var type=typeof options;options=type==="function"?{callback:options}:type==="string"||type==="number"?{duration:options}:options;var callback=options.callback||function(){},completed=0,length=0;
44options.callback=function(t){if(++completed===length)callback(t);};for(var property in styles){var value=styles[property],property=camelize(property);this.forEach(function(node){length++;var self=elements(node),anims=self._animations||(self._animations={});var anim=anims[property]||(anims[property]=new BaseAnimation(node,property));anim.setOptions(options).start(value);});} 45return this;},style:function(A,B){var styles=A;if(typeof A==="string"){styles={};styles[A]=B;} 46for(var property in styles){var value=styles[property],set=setter(property=camelize(property));this.forEach(function(node){var self=elements(node),anims=self._animations,anim;if(anims&&(anim=anims[property]))anim.stop(true);set.call(node,value);});} 47return this;},compute:function(property){property=camelize(property);var node=this[0];if(property==="transform"&&parseTransform2d)return compute(node)(transformName);var value=getter(property).call(node);return value!=null?value.replace(rgLength,function(match,value,unit){return unit==="px"?match:pixelRatio(node,unit)*value+"px";}):"";}});moofx.parse=function(property,value,normalize){return(parsers[camelize(property)]||parse)(value,normalize);};module.exports=moofx;},"8":function(require,module,exports,global){"use strict";var string=require("9");string.implement({clean:function(){return string.trim((this+"").replace(/\s+/g," "));},camelize:function(){return(this+"").replace(/-\D/g,function(match){return match.charAt(1).toUpperCase();});},hyphenate:function(){return(this+"").replace(/[A-Z]/g,function(match){return"-"+match.toLowerCase();});},capitalize:function(){return(this+"").replace(/\b[a-z]/g,function(match){return match.toUpperCase();});},escape:function(){return(this+"").replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1");},number:function(){return parseFloat(this);}});if(typeof JSON!=="undefined")string.implement({decode:function(){return JSON.parse(this);}});module.exports=string;},"9":function(require,module,exports,global){"use strict";var string=require("4")["string"];var names=("charAt,charCodeAt,concat,contains,endsWith,indexOf,lastIndexOf,localeCompare,match,replace,search,slice,split"+",startsWith,substr,substring,toLocaleLowerCase,toLocaleUpperCase,toLowerCase,toString,toUpperCase,trim,valueOf").split(",");for(var methods={},i=0,name,method;name=names[i++];)if(method=String.prototype[name])methods[name]=method;if(!methods.trim)methods.trim=function(){return(this+"").replace(/^\s+|\s+$/g,"");};module.exports=string.implement(methods);},a:function(require,module,exports,global){"use strict";var prime=require("5"),array=require("3").prototype;var uniqueIndex=0;var uniqueID=function(n){return n===global?"global":n.uniqueNumber||(n.uniqueNumber="n:"+(uniqueIndex++).toString(36));};var instances={};var $=prime({constructor:function $(n,context){if(n==null)return this&&this.constructor===$?new elements():null;var self=n;if(n.constructor!==elements){self=new elements();var uid;if(typeof n==="string"){if(!self.search)return null;self[self.length++]=context||document;return self.search(n);} 48if(n.nodeType||n===global){self[self.length++]=n;}else if(n.length){var uniques={};for(var i=0,l=n.length;i<l;i++){var nodes=$(n[i],context);if(nodes&&nodes.length)for(var j=0,k=nodes.length;j<k;j++){var node=nodes[j];uid=uniqueID(node);if(!uniques[uid]){self[self.length++]=node;uniques[uid]=true;}}}}} 49if(!self.length)return null;if(self.length===1){uid=uniqueID(self[0]);return instances[uid]||(instances[uid]=self);} 50return self;}});var elements=prime({inherits:$,constructor:function elements(){this.length=0;},unlink:function(){return this.map(function(node,i){delete instances[uniqueID(node)];return node;});},forEach:array.forEach,map:array.map,filter:array.filter,every:array.every,some:array.some});module.exports=$;},b:function(require,module,exports,global){"use strict";var prime=require("5"),requestFrame=require("2").request,bezier=require("c");var map=require("3").map;var sDuration="([\\d.]+)(s|ms)?",sCubicBezier="cubic-bezier\\(([-.\\d]+),([-.\\d]+),([-.\\d]+),([-.\\d]+)\\)";
50var rDuration=RegExp(sDuration),rCubicBezier=RegExp(sCubicBezier),rgCubicBezier=RegExp(sCubicBezier,"g");var equations={"default":"cubic-bezier(0.25, 0.1, 0.25, 1.0)",linear:"cubic-bezier(0, 0, 1, 1)","ease-in":"cubic-bezier(0.42, 0, 1.0, 1.0)","ease-out":"cubic-bezier(0, 0, 0.58, 1.0)","ease-in-out":"cubic-bezier(0.42, 0, 0.58, 1.0)"};equations.ease=equations["default"];var compute=function(from,to,delta){return(to-from)*delta+from;};var divide=function(string){var numbers=[];var template=(string+"").replace(/[-.\d]+/g,function(number){numbers.push(+number);return"@";});return[numbers,template];};var Fx=prime({constructor:function Fx(render,options){this.setOptions(options);this.render=render||function(){};var self=this;this.bStep=function(t){return self.step(t);};this.bExit=function(time){self.exit(time);};},setOptions:function(options){if(options==null)options={};if(!(this.duration=this.parseDuration(options.duration||"500ms")))throw new Error("invalid duration");if(!(this.equation=this.parseEquation(options.equation||"default")))throw new Error("invalid equation");this.callback=options.callback||function(){};return this;},parseDuration:function(duration){if(duration=(duration+"").match(rDuration)){var time=+duration[1],unit=duration[2]||"ms";if(unit==="s")return time*1e3;if(unit==="ms")return time;}},parseEquation:function(equation,array){var type=typeof equation;if(type==="function"){return equation;}else if(type==="string"){equation=equations[equation]||equation;var match=equation.replace(/\s+/g,"").match(rCubicBezier);if(match){equation=map(match.slice(1),function(v){return+v;});if(array)return equation;if(equation.toString()==="0,0,1,1")return function(x){return x;};type="object";}} 51if(type==="object"){return bezier(equation[0],equation[1],equation[2],equation[3],1e3/60/this.duration/4);}},cancel:function(to){this.to=to;this.cancelExit=requestFrame(this.bExit);},exit:function(time){this.render(this.to);delete this.cancelExit;this.callback(time);},start:function(from,to){this.stop();if(this.duration===0){this.cancel(to);return this;} 52this.isArray=false;this.isNumber=false;var fromType=typeof from,toType=typeof to;if(fromType==="object"&&toType==="object"){this.isArray=true;}else if(fromType==="number"&&toType==="number"){this.isNumber=true;} 53var from_=divide(from),to_=divide(to);this.from=from_[0];this.to=to_[0];this.templateFrom=from_[1];this.templateTo=to_[1];if(this.from.length!==this.to.length||this.from.toString()===this.to.toString()){this.cancel(to);return this;} 54delete this.time;this.length=this.from.length;this.cancelStep=requestFrame(this.bStep);return this;},stop:function(){if(this.cancelExit){this.cancelExit();delete this.cancelExit;}else if(this.cancelStep){this.cancelStep();delete this.cancelStep;} 55return this;},step:function(now){this.time||(this.time=now);var factor=(now-this.time)/this.duration;if(factor>1)factor=1;var delta=this.equation(factor),from=this.from,to=this.to,tpl=this.templateTo;for(var i=0,l=this.length;i<l;i++){var f=from[i],t=to[i];tpl=tpl.replace("@",t!==f?compute(f,t,delta):t);} 56this.render(this.isArray?tpl.split(","):this.isNumber?+tpl:tpl,factor);if(factor!==1){this.cancelStep=requestFrame(this.bStep);}else{delete this.cancelStep;this.callback(now);}}});var fx=function(render){var ffx=new Fx(render);return{start:function(from,to,options){var type=typeof options;ffx.setOptions(type==="function"?{callback:options}:type==="string"||type==="number"?{duration:options}:options).start(from,to);return this;},stop:function(){ffx.stop();return this;}};};fx.prototype=Fx.prototype;module.exports=fx;},c:function(require,module,exports,global){module.exports=function(x1,y1,x2,y2,epsilon){var curveX=function(t){var v=1-t;return 3*v*v*t*x1+3*v*t*t*x2+t*t*t;};var curveY=function(t){var v=1-t;return 3*v*v*t*y1+3*v*t*t*y2+t*t*t;};var derivativeCurveX=function(t){var v=1-t;return 3*(2*(t-1)*t+v*v)*x1+3*(-t*t*t+2*v*t)*x2;};return function(t){var x=t,t0,t1,t2,x2,d2,i;for(t2=x,i=0;i<8;i++){x2=curveX(t2)-x;if(Math.abs(x2)<epsilon)return curveY(t2);d2=derivativeCurveX(t2);if(Math.abs(d2)<1e-6)break;t2=t2-x2/d2;} 57t0=0,t1=1,t2=x;if(t2<t0)return curveY(t0);if(t2>
57t1)return curveY(t1);while(t0<t1){x2=curveX(t2);if(Math.abs(x2-x)<epsilon)return curveY(t2);if(x>x2)t0=t2;else t1=t2;t2=(t1-t0)*.5+t0;} 58return curveY(t2);};};},d:function(require,module,exports,global){"use strict";var length=function(a){return Math.sqrt(a[0]*a[0]+a[1]*a[1]);};var normalize=function(a){var l=length(a);return l?[a[0]/l,a[1]/l]:[0,0];};var dot=function(a,b){return a[0]*b[0]+a[1]*b[1];};var atan2=Math.atan2;var combine=function(a,b,ascl,bscl){return[ascl*a[0]+bscl*b[0],ascl*a[1]+bscl*b[1]];};module.exports=function(a,b,c,d,tx,ty){if(a*d-b*c===0)return false;var translate=[tx,ty];var m=[[a,b],[c,d]];var scale=[length(m[0])];m[0]=normalize(m[0]);var skew=dot(m[0],m[1]);m[1]=combine(m[1],m[0],1,-skew);scale[1]=length(m[1]);skew/=scale[1];var rotate=atan2(m[0][1],m[0][0]);return[translate,rotate,skew,scale];};}});}catch(e){console.error('Error in file:/components/com_roksprocket/assets/js/moofx.js; Error:'+e.message);}; 59try{((function(){if(typeof this.RokSprocket=='undefined')this.RokSprocket={};else Object.merge(this.RokSprocket,{Features:null});Element.implement({'styles':function(){var mu=moofx(this),result=mu.style.apply(mu,arguments);if(arguments.length==1&&typeof arguments[0]=='string')return result;return this;},'moofx':function(){var mu=moofx(this);mu.animate.apply(mu,arguments);return this;}});var Features=new Class({Implements:[Options,Events],animations:{},options:{data:'features',settings:{}},initialize:function(options){this.setOptions(options);this.data=this.options.data;this.features=document.getElements('[data-'+this.data+']');this.settings={};this.timers={};this.statuses={};},attach:function(feature,settings){feature=typeOf(feature)=='number'?document.getElements('[data-'+this.data+'='+this.getID(feature)+']'):feature;settings=typeOf(settings)=='string'?JSON.decode(settings):settings;var containers=(feature?new Elements([feature]).flatten():this.features);containers.each(function(container){container.store('roksprocket:'+this.data+':attached',true);this.setSettings(container,settings,'restore');var relay={mouseenter:container.retrieve('roksprocket:'+this.data+':mouseenter',function(event){this.stopTimer.call(this,container);this.pause.call(this,container);}.bind(this)),mouseleave:container.retrieve('roksprocket:'+this.data+':mouseleave',function(event){this.resume.call(this,container);this.startTimer.call(this,container);}.bind(this)),pagination:container.retrieve('roksprocket:'+this.data+':relay',function(event,pane){this.toPane.call(this,event,container,pane);}.bind(this)),next:container.retrieve('roksprocket:'+this.data+':next',function(event,element){this.direction.call(this,event,container,element,'next');}.bind(this)),previous:container.retrieve('roksprocket:'+this.data+':previous',function(event,element){this.direction.call(this,event,container,element,'previous');}.bind(this)),swipe:container.retrieve('roksprocket:'+this.data+':swipe',function(event,element){event.preventDefault();this.direction.call(this,event,container,element,(event.direction=='right'?'previous':'next'));}.bind(this))};['mouseenter','mouseleave'].each(function(type){container.addEvent(type,relay[type]);});['pagination','next','previous'].each(function(dir,i){var query='[data-'+this.data+'-'+dir+']';if(i>0)query+=', [data-'+dir+']';container.addEvent('click:relay('+query+')',relay[dir]);},this);if(Browser.Features.Touch)container.addEvent('swipe',relay['swipe']);if(this.getSettings(container).autoplay&&this.getSettings(container).autoplay.toInt())this.startTimer(container);},this);},detach:function(feature){feature=typeOf(feature)=='number'?document.getElements('[data-'+this.data+'='+this.getID(feature)+']'):feature;var containers=(feature?new Elements([feature]).flatten():this.features);containers.each(function(container){container.store('roksprocket:'+this.data+':attached',false);var relay={mouseenter:container.retrieve('roksprocket:'+this.data+':mouseenter'),mouseleave:container.retrieve('roksprocket:'+this.data+':mouseleave'),pagination:container.retrieve('roksprocket:'+this.data+':relay'),next:container.retrieve('roksprocket:'+this.data+':next'),previous:container.retrieve('roksprocket:'+this.data+':previous')};['mouseenter','mouseleave'].each(function(type){container.removeEvent(type,relay[type]);});['pagination','next','previous'].each(function(dir,i){var query='[data-'+this.data+'-'+dir+']';if(i>0)query+=', [data-'+dir+']';container.removeEvent('click:relay('+query+')',relay[dir]);},this);if(Browser.Features.Touch)container.removeEvent('swipe',relay['swipe']);},this);},setSettings:function(container,settings,restore){var id=this.getID(container),options=Object.clone(this.options.settings);if(!restore||!this.settings['id-'+id]){this.settings['id-'+id]=Object.merge(options,settings||options);}},getSettings:function(container){var id=this.getID(container);return this.settings['id-'+id];},getContainer:function(container){if(!container)container=document.getElements('[data-'+this.data+']');if(typeOf(container)=='number')container=document.getElement('[data-'+this.data+'='+container+']');if(typeOf(container)=='string')container=document.getElement(container);return container;},getID:function(id){if(typeOf(id)=='number')id=document.getElement('[data-'+this.data+'='+id+']');if(typeOf(id)=='string')id=document.getElement(id);return!id?id:id.get('data-'+this.data);},getRandom:function(){var random=Number.random(0,Object.getLength(this.animations)-1),keys=Object.keys(this.animations);return this.animations[keys[random]];},toPosition:function(container,position){container=this.getContainer(container);if(!container.retrieve('roksprocket:'+this.data+':attached'))return;this.stopTimer(container);var features=container.getElements('[data-'+this.data+'-pagination]'),current=container.getElement('[data-'+this.data+'-pagination][class=active]');if(!features.length)return;if(features[position]&&features[position].hasClass('active'))return;if(position>features.length-1)position=0;if(position<0)position=features.length-1;if(features.length){features.removeClass('active');features[position].addClass('active');} 60this.animate(container,current.get('data-'+this.data+'-pagination')-1,position);},toPane:function(event,container,pane){if(event)event.preventDefault();container=this.getContainer(container);if(!container.retrieve('roksprocket:'+this.data+':attached'))return;var features=container.getElements('[data-'+this.data+'-pagination]'),position=pane.get('data-'+this.data+'-pagination')-1;if(position==-1)throw new Error('RokSprocket Feature ['+this.data+']: Instance ID "'+container.get('data-'+this.data)+'", index not found.');this.toPosition(container,position);},direction:function(event,container,element,dir){if(event)event.preventDefault();dir=dir||'next';this[dir](container,element);},next:function(container,element){container=this.getContainer(container);if(!container.retrieve('roksprocket:'+this.data+':attached'))return;if(typeOf(container)=='elements')return this.nextAll(container,element);var pages=container.getElements('[data-'+this.data+'-pagination]');if(!pages.length)return;var active=pages.filter(function(page){return page.hasClass('active');}),position=pages.indexOf(active.length?active[0]:'')||0,next=position+1;if(next>pages.length-1)next=0;this.toPosition(container,next);},nextAll:function(containers,element){containers=this.getContainer(containers
60);if(typeOf(containers)=='element')return this.next(containers,element);containers.each(function(container){this.next(container,element);},this);},previous:function(container,element){container=this.getContainer(container);if(!container.retrieve('roksprocket:'+this.data+':attached'))return;if(typeOf(container)=='elements')return this.previousAll(container,element);var pages=container.getElements('[data-'+this.data+'-pagination]');if(!pages.length)return;var active=pages.filter(function(page){return page.hasClass('active');}),position=pages.indexOf(active.length?active[0]:'')||0,previous=position-1;if(previous<0)previous=pages.length-1;this.toPosition(container,previous);},previousAll:function(containers,element){containers=this.getContainer(containers);if(typeOf(containers)=='element')return this.previous(containers,element);containers.each(function(container){this.previous(container,element);},this);},startTimer:function(container){container=this.getContainer(container);if(!container.retrieve('roksprocket:'+this.data+':attached'))return;var settings=this.getSettings(container),id=this.getID(container),status=this.statuses['id-'+id],autoplay=settings.autoplay.toInt(),delay=(settings.delay.toInt())*1000;clearTimeout(this.timers['id-'+id]);if(autoplay&&status!='pause')this.timers['id-'+id]=this.next.delay(delay,this,container);},stopTimer:function(container){container=this.getContainer(container);var id=this.getID(container);clearTimeout(this.timers['id-'+id]);},pause:function(container){container=this.getContainer(container);var id=this.getID(container);this.statuses['id-'+id]='pause';},resume:function(container){container=this.getContainer(container);var id=this.getID(container);this.statuses['id-'+id]='play';},animate:function(container,from,to){var contents=container.getElements('[data-'+this.data+'-content]'),images=container.getElements('[data-'+this.data+'-image]'),settings=this.getSettings(container),styles={content:{show:{display:'block','z-index':2},hide:{display:'none','z-index':1}},image:{show:{display:'block',position:'relative','z-index':2},hide:{display:'none',position:'absolute','z-index':1}}},current={content:contents[from],image:images[from]},next={content:contents[to],image:images[to]};Object.each(current,function(value,key){current[key].style(styles[key].hide);next[key].style(styles[key].show);},this);if(settings.autoplay&&settings.autoplay.toInt())this.startTimer(container);},addAnimations:function(animations){Object.merge(this.animations,animations);}});Features.prototype.addAnimations({crossfade:{from:{opacity:0}
60,to:{opacity:1}},fromTop:{from:{opacity:0,top:'-50%'},to:{opacity:1,top:'0%'}},fromTopLeft:{from:{opacity:0,top:'-50%',left:'-50%'},to:{opacity:1,top:'0%',left:'0%'}},fromTopRight:{from:{opacity:0,top:'-50%',right:'-50%'},to:{opacity:1,top:'0%',right:'0%'}},fromBottom:{from:{opacity:0,top:'50%'},to:{opacity:1,top:'0%'}},fromBottomLeft:{from:{opacity:0,top:'75%',left:'-75%'},to:{opacity:1,top:'0%',left:'0%'}},fromBottomRight:{from:{opacity:0,right:'-50%',top:'50%'},to:{opacity:1,right:'0%',top:'0%'}},fromLeft:{from:{opacity:0,transform:'translate3d(-50%, 0, 0)'},to:{opacity:1,transform:'translate3d(0, 0, 0)'}},fromRight:{from:{opacity:0,transform:'translate3d(50%, 0, 0)'},to:{opacity:1,transform:'translate3d(0, 0, 0)'}}});this.RokSprocket.Features=Features;})());}catch(e){console.error('Error in file:/components/com_roksprocket/layouts/features/assets/js/features.js; Error:'+e.message);}; 61try{((function(){if(typeof this.RokSprocket=='undefined')this.RokSprocket={};else Object.merge(this.RokSprocket,{Slideshow:null});var Slideshow=new Class({Extends:this.RokSprocket.Features,options:{curve:'cubic-bezier(0.37,0.61,0.59,0.87)',duration:'400ms',data:'slideshow',settings:{animation:'crossfade',autoplay:false,delay:5}},animate:function(container,from,to){var contents=container.getElements('[data-'+this.data+'-content]'),images=container.getElements('[data-'+this.data+'-image]'),settings=this.getSettings(container),animation={content:this.animations.crossfade,image:this.animations[settings.animation]||this.animations.crossfade},current={content:contents[from],image:images[from]},next={content:contents[to],image:images[to]};if(Browser.ie&&Browser.version<8){contents.setStyle('zoom',1);images.setStyle('zoom',1);} 62Object.each(current,function(value,key){var transition=(key=='content')?animation[key]:settings.animation=='random'?this.getRandom():animation[key];if(key=='content')contents.styles(Object.merge({},transition.from,{position:'absolute'}));if(key=='image')images.styles(Object.merge({},transition.from,{position:'absolute'}));current[key].styles(Object.merge({},transition.to,{'z-index':1}));var initialStyles={'z-index':2,'position':'absolute'};if(key=='image'){current[key].styles({position:'relative'});['top','right','bottom','left'].each(function(dir){next[key].style[dir]='';},this);if(transition=='crossfade'){Object.merge(initialStyles,{top:0,left:0});}} 63next[key].styles(Object.merge({},transition.from,initialStyles));if(Browser.ie&&Browser.version<9){next[key].set('morph',{link:'cancel',duration:this.options.duration.toInt(),transition:'quad:in:out',onComplete:function(){if(key=='image'){next[key].styles(Object.merge({},transition.to,{position:'relative'}));current[key].styles(Object.merge({},transition.from,{position:'absolute'}));} 64current[key].styles(transition.from);next[key].get('morph').removeEvents('onComplete');if(settings.autoplay&&settings.autoplay.toInt())this.startTimer(container);}.bind(this)}).morph(transition.to);if(key=='content'){current[key].set('morph',{link:'cancel',duration:this.options.duration.toInt(),transition:'quad:in:out'}).morph(transition.from);}}else{next[key].moofx(transition.to,{duration:this.options.duration,equation:this.options.curve,callback:function(){if(key=='image'){next[key].styles(Object.merge({},transition.to,{position:'relative'}));current[key].styles(Object.merge({},transition.from,{position:'absolute'}));} 65current[key].styles(transition.from);if(settings.autoplay&&settings.autoplay.toInt())this.startTimer(container);}.bind(this)});if(key=='content'){current[key].moofx(transition.from,{duration:this.options.duration,equation:this.options.curve});}}},this);}});this.RokSprocket.Slideshow=Slideshow;})());}catch(e){console.error('Error in file:/components/com_roksprocket/layouts/features/themes/slideshow/slideshow.js; Error:'+e.message);};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.