try {jQuery.extend(jQuery.easing,{easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a}});(function(a){a.fn.extend({panelGallery:function(b){var c={viewDuration:4000,transitionDuration:1000,boxSize:35,boxFadeDuration:1000,boxTransitionDuration:100,panelWidth:40,panelTransitionDuration:100,pauseOnHover:true,FX:new Array()};var b=a.extend(c,b);return this.each(function(){var h=Math.round(Math.random()*100000000);var f=b;var k=a(this);var n=a("div",k).length;var r={width:"100%",height:"100%"};var j=0;var g=new Array();var i=new Array();var p;var d=true;var q=false;a(k).width(r.width).height(r.height).css({overflow:"hidden"});a("div",k).each(function(){g.push(a(this));i.push(a(this).attr("name"));if(!a(this).is(":first-child")){a(this).remove()}});a(k).css({background:'#666 url("/global/images/loading.gif") no-repeat 50% 50%'}).append(g[0]);if(f.pauseOnHover){a(k).mouseenter(function(){q=true;clearTimeout(p);a(this).css({cursor:"wait"})}).mouseleave(function(){q=false;p=setTimeout(function(){if(!d){g.push(g.shift());i.push(i.shift())}a("div",k).remove();l()},f.viewDuration)})}p=setTimeout(function(){l()},f.viewDuration);function m(o,s){if(o=="fade"){a("div",k).remove();a(k).append(g[0]).append(g[1]);a("div:eq(1)",k).css({position:"absolute",top:"0",left:"0"}).hide().fadeIn(f.transitionDuration);e()}}function e(o){o=(!o)?f.transitionDuration:o;setTimeout(function(){if(!q){d=false;a(k).append(g[j+1]);a(".box",k).remove();a(".horizPanel",k).remove();a(".vertPanel",k).remove();p=setTimeout(function(){g.push(g.shift());i.push(i.shift());a("div",k).remove();l()},f.viewDuration)}},o)}function l(){randomFXarray=new Array("fade");var o=Math.floor(Math.random()*randomFXarray.length);if(i[0]){opt=i[0]}else{if(f.FX.length>0){opt=f.FX[0];f.FX.push(f.FX.shift())}else{opt=randomFXarray[o]}}opt1=opt.split(",");bool=(opt1[1]=="true")?true:false;str={name:opt1[0],opt1:bool};m(str.name,str.opt1)}})}})})(jQuery);Array.prototype.shuffle=function(){var a=[];while(this.length){a.push(this.splice(Math.random()*this.length,1))}while(a.length){this.push(a.pop())}return this};}catch(e){}
