
// 'stacks' is the Stacks global object.
// All of the other Stacks related Javascript will 
// be attatched to it.
var stacks = {};


// this call to jQuery gives us access to the globaal
// jQuery object. 
// 'noConflict' removes the '$' variable.
// 'true' removes the 'jQuery' variable.
// removing these globals reduces conflicts with other 
// jQuery versions that might be running on this page.
stacks.jQuery = jQuery.noConflict(true);

// Javascript for stacks_in_49_page0
// ---------------------------------------------------------------------

// Each stack has its own object with its own namespace.  The name of
// that object is the same as the stack's id.
stacks.stacks_in_49_page0 = {};

// A closure is defined and assigned to the stack's object.  The object
// is also passed in as 'stack' which gives you a shorthand for referring
// to this object from elsewhere.
stacks.stacks_in_49_page0 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	

var img = new Image();
img.src = "index_files/fxslider/ajax-loader.gif";

/*
FX Slider Stack 1.1.0 - http://www.weaveraddons.com/stacks/fx-slider for more information
*/

/*
 * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
 *
 * Uses the built in easing capabilities added In jQuery 1.1
 * to offer multiple easing options
 *
 * TERMS OF USE - jQuery Easing
 * 
 * Open source under the BSD License. 
 * 
 * Copyright © 2008 George McGinley Smith
 * All rights reserved.
 * 
 * Redistribution and use in source and binary forms, with or without modification, 
 * are permitted provided that the following conditions are met:
 * 
 * Redistributions of source code must retain the above copyright notice, this list of 
 * conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright notice, this list 
 * of conditions and the following disclaimer in the documentation and/or other materials 
 * provided with the distribution.
 * 
 * Neither the name of the author nor the names of contributors may be used to endorse 
 * or promote products derived from this software without specific prior written permission.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY 
 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
 *  COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
 *  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
 *  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 
 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
 *  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 
 * OF THE POSSIBILITY OF SUCH DAMAGE. 
 *
*/

/**
 * jQuery Skitter Slideshow
 * @name jquery.skitter.js
 * @description Slideshow
 * @author Thiago Silva Ferreira - http://thiagosf.net
 * @version 3.3
 * @date August 04, 2010
 * @update September 19, 2011
 * @copyright (c) 2010 Thiago Silva Ferreira - http://thiagosf.net
 * @license Dual licensed under the MIT or GPL Version 2 licenses
 * @example http://thiagosf.net/projects/jquery/skitter/
 */

jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(c,a,e,f,d){return jQuery.easing[jQuery.easing.def](c,a,e,f,d)},easeInQuad:function(c,a,e,f,d){return f*(a/=d)*a+e},easeOutQuad:function(c,a,e,f,d){return-f*(a/=d)*(a-2)+e},easeInOutQuad:function(c,a,e,f,d){return 1>(a/=d/2)?f/2*a*a+e:-f/2*(--a*(a-2)-1)+e},easeInCubic:function(c,a,e,f,d){return f*(a/=d)*a*a+e},easeOutCubic:function(c,a,e,f,d){return f*((a=a/d-1)*a*a+1)+e},easeInOutCubic:function(c,a,e,f,d){return 1>(a/=d/2)?f/2*a*a*a+e:
f/2*((a-=2)*a*a+2)+e},easeInQuart:function(c,a,e,f,d){return f*(a/=d)*a*a*a+e},easeOutQuart:function(c,a,e,f,d){return-f*((a=a/d-1)*a*a*a-1)+e},easeInOutQuart:function(c,a,e,f,d){return 1>(a/=d/2)?f/2*a*a*a*a+e:-f/2*((a-=2)*a*a*a-2)+e},easeInQuint:function(c,a,e,f,d){return f*(a/=d)*a*a*a*a+e},easeOutQuint:function(c,a,e,f,d){return f*((a=a/d-1)*a*a*a*a+1)+e},easeInOutQuint:function(c,a,e,f,d){return 1>(a/=d/2)?f/2*a*a*a*a*a+e:f/2*((a-=2)*a*a*a*a+2)+e},easeInSine:function(c,a,e,f,d){return-f*Math.cos(a/
d*(Math.PI/2))+f+e},easeOutSine:function(c,a,e,f,d){return f*Math.sin(a/d*(Math.PI/2))+e},easeInOutSine:function(c,a,e,f,d){return-f/2*(Math.cos(Math.PI*a/d)-1)+e},easeInExpo:function(c,a,e,f,d){return 0==a?e:f*Math.pow(2,10*(a/d-1))+e},easeOutExpo:function(c,a,e,f,d){return a==d?e+f:f*(-Math.pow(2,-10*a/d)+1)+e},easeInOutExpo:function(c,a,e,f,d){return 0==a?e:a==d?e+f:1>(a/=d/2)?f/2*Math.pow(2,10*(a-1))+e:f/2*(-Math.pow(2,-10*--a)+2)+e},easeInCirc:function(c,a,e,f,d){return-f*(Math.sqrt(1-(a/=d)*
a)-1)+e},easeOutCirc:function(c,a,e,f,d){return f*Math.sqrt(1-(a=a/d-1)*a)+e},easeInOutCirc:function(c,a,e,f,d){return 1>(a/=d/2)?-f/2*(Math.sqrt(1-a*a)-1)+e:f/2*(Math.sqrt(1-(a-=2)*a)+1)+e},easeInElastic:function(c,a,e,f,d){var c=1.70158,h=0,m=f;if(0==a)return e;if(1==(a/=d))return e+f;h||(h=0.3*d);m<Math.abs(f)?(m=f,c=h/4):c=h/(2*Math.PI)*Math.asin(f/m);return-(m*Math.pow(2,10*(a-=1))*Math.sin((a*d-c)*2*Math.PI/h))+e},easeOutElastic:function(c,a,e,f,d){var c=1.70158,h=0,m=f;if(0==a)return e;if(1==
(a/=d))return e+f;h||(h=0.3*d);m<Math.abs(f)?(m=f,c=h/4):c=h/(2*Math.PI)*Math.asin(f/m);return m*Math.pow(2,-10*a)*Math.sin((a*d-c)*2*Math.PI/h)+f+e},easeInOutElastic:function(c,a,e,f,d){var c=1.70158,h=0,m=f;if(0==a)return e;if(2==(a/=d/2))return e+f;h||(h=d*0.3*1.5);m<Math.abs(f)?(m=f,c=h/4):c=h/(2*Math.PI)*Math.asin(f/m);return 1>a?-0.5*m*Math.pow(2,10*(a-=1))*Math.sin((a*d-c)*2*Math.PI/h)+e:0.5*m*Math.pow(2,-10*(a-=1))*Math.sin((a*d-c)*2*Math.PI/h)+f+e},easeInBack:function(c,a,e,f,d,h){void 0==
h&&(h=1.70158);return f*(a/=d)*a*((h+1)*a-h)+e},easeOutBack:function(c,a,e,f,d,h){void 0==h&&(h=1.70158);return f*((a=a/d-1)*a*((h+1)*a+h)+1)+e},easeInOutBack:function(c,a,e,f,d,h){void 0==h&&(h=1.70158);return 1>(a/=d/2)?f/2*a*a*(((h*=1.525)+1)*a-h)+e:f/2*((a-=2)*a*(((h*=1.525)+1)*a+h)+2)+e},easeInBounce:function(c,a,e,f,d){return f-jQuery.easing.easeOutBounce(c,d-a,0,f,d)+e},easeOutBounce:function(c,a,e,f,d){return(a/=d)<1/2.75?f*7.5625*a*a+e:a<2/2.75?f*(7.5625*(a-=1.5/2.75)*a+0.75)+e:a<2.5/2.75?
f*(7.5625*(a-=2.25/2.75)*a+0.9375)+e:f*(7.5625*(a-=2.625/2.75)*a+0.984375)+e},easeInOutBounce:function(c,a,e,f,d){return a<d/2?0.5*jQuery.easing.easeInBounce(c,2*a,0,f,d)+e:0.5*jQuery.easing.easeOutBounce(c,2*a-d,0,f,d)+0.5*f+e}});
Utils=function(){return{wait:function(c){var c=$.extend({until:function(){return!1},success:function(){},error:function(){Galleria.raise("Could not complete wait function.")},timeout:3E3},c),a=Utils.timestamp(),e,f,d=function(){f=Utils.timestamp();e=f-a;if(c.until(e))return c.success(),!1;if(f>=a+c.timeout)return c.error(),!1;window.setTimeout(d,10)};window.setTimeout(d,10)},timestamp:function(){return(new Date).getTime()},toggleQuality:function(c,a){!(7!==IE&&8!==IE)&&c&&("undefined"===typeof a&&
(a="nearest-neighbor"===c.style.msInterpolationMode),c.style.msInterpolationMode=a?"bicubic":"nearest-neighbor")}}}();
(function(c){var a=0,e=[];c.fn.skitter=function(b){return this.each(function(){c(this).data("skitter_number",a);e.push(new d(this,b,a));++a})};var f={v:1,i:2500,a:"",nr:!0,n:!0,lb:!0,b:null,ti:null,il:null,ia:null,lia:null,laa:null,w:null,h:null,ii:1,ian:!1,ih:!1,ria:null,sr:!1,th:!1,aou:{backgroundColor:"#333",color:"#fff"},ao:{backgroundColor:"#000",color:"#fff"},aa:{backgroundColor:"#cc3333",color:"#fff"},ht:!1,f:!1,x:!1,d:!1,wl:null,o:0.75,iie:300,ioe:500,l:null,is:null,mnh:20,ls:!0,fl:1,ahl:!0,
s:'<a href="#" class="prev_button">prev</a><a href="#" class="next_button">next</a><span class="info_slide"></span><div class="border_skitter"><div class="container_skitter"><div class="image"><a href=""><img class="image_main" /></a><div class="label_skitter"></div></div></div></div>'};c.skitter=function(b,a,k){this.b=c(b);this.timer=null;this.s=c.extend({},f,a||{});this.number_skitter=k;this.ca=0;this.oc=this.at=!1;this.setup()};var d=c.skitter;d.fn=d.prototype={};d.fn.extend=c.extend;d.fn.extend({setup:function(){var b=
this,a=this.s.a.replace(/,/g," ").split(/\s+/);1>=a.length?this.at=!1:(real_at=[],c.each(a,function(b,g){isNaN(g)&&(isNaN(a[b+1])?real_at.push([g,0]):real_at.push([g,a[b+1]]))}),this.at=1>real_at.length?!1:real_at);this.b.append(this.s.s);2<=this.s.v&&(this.s.v=2);0>=this.s.v&&(this.s.v=1);!this.s.nr&&!this.s.th&&!this.s.d&&this.b.find(".info_slide").hide();this.s.lb||this.b.find(".label_skitter").hide();this.s.n||(this.b.find(".prev_button").hide(),this.b.find(".next_button").hide());if(this.s.f)this.s.w=
c(window).width(),this.s.h=c(window).height(),this.b.css({position:"absolute",top:0,left:0,"z-index":1E3}),c("body").css({overflown:"hidden"});else if(!this.s.w||!this.s.h){var k=b.b.find(".skitter_size_info:first"),g=b.b.find("img:first");if(k.length)this.s.w=k.data("width")||k.attr("data-width"),this.s.h=k.data("height")||k.attr("data-height");else if(g.length){if(this.s.w=g.attr("width"),this.s.h=g.attr("height"),!this.s.w||!this.s.h){k=!1;g=g.parent().html();if(k=g.match(/width\s*=\s*["']?([0-9]+)/))this.s.w=
k[1];if(k=g.match(/height\s*=\s*["']?([0-9]+)/))this.s.h=k[1]}}else this.s.w=800,this.s.h=300}this.s.w=parseInt(this.s.w,10);this.s.h=parseInt(this.s.h,10);if(0==this.s.w||0==this.s.h)this.s.w=800,this.s.h=300;this.b.width(this.s.w+2*this.s.bw).height(this.s.h+2*this.s.bw);this.b.find(".container_skitter").width(this.s.w).height(this.s.h);this.s.bw&&this.b.find(".border_skitter").css("border","0px solid #000000");this.s.sbr&&this.b.css({"margin-bottom":this.s.sbr+5+"px",
"margin-top":this.s.sbr+5+"px"});g=this.s.wl?this.s.wl:this.s.w;this.b.find(".label_skitter").width(g);var g=" image_number_select",f=0;this.s.il=[];this.s.x?c.ajax({type:"GET",url:this.s.x,async:!1,dataType:"xml",success:function(a){c("<ul></ul>");c(a).find("skitter slide").each(function(){++f;var a=c(this).find("link").text()?c(this).find("link").text():"#",g=c(this).find("image").text(),k=c(this).find("image").attr("type"),x=c(this).find("label").text();b.s.il.push([g,a,k,x,""])})}}):this.s.json||
this.b.find("ul li").each(function(){++f;if(c(this).find("a").length){var a=c(this).find("a").attr("href"),g=c(this).find("a").attr("target");"external"==c(this).find("a").attr("rel")&&(g="_blank")}else a="#",g="";var k=c(this).find("img").attr("src"),x=c(this).find("img").attr("alt");if(x&&(x.match(/Stacks Image [0-9+]/i)||x.match("/stacks_image/i")))x="";"undefined"!=typeof k&&b.s.il.push([k,a,"",x,g])});if(1<this.s.il.length){this.s.sr&&this.s.il.sort(function(){return Math.random()-0.5});for(i=
0;i<this.s.il.length;i++)this.s.th?(k="",k=this.s.w>this.s.h?'height="100"':'width="100"',this.b.find(".info_slide").append('<span class="image_number'+g+'" rel="'+i+'" id="image_n_'+(i+1)+"_"+this.number_skitter+'"><img src="'+this.s.il[i][0]+'" '+k+" /></span> ")):this.b.find(".info_slide").append('<span class="image_number'+g+'" rel="'+i+'" id="image_n_'+(i+1)+"_"+this.number_skitter+'">'+(i+1)+"</span> "),g=""}if(b.s.th){b.s.aou={opacity:0.5,width:"70px"};b.s.ao={opacity:1,width:"70px"};b.s.aa=
{opacity:1,width:"70px"};b.b.find(".info_slide").addClass("info_slide_thumb");g=55*f+75;b.b.find(".info_slide_thumb").width(g);b.b.css({height:b.b.height()+b.b.find(".info_slide").height()+5});b.s.lb=!1;"top"==b.s.nl?b.b.find(".border_skitter").prepend('<div class="container_thumbs"></div>'):(b.s.nl="bottom",b.b.find(".border_skitter").append('<div class="container_thumbs"></div>'));k=b.b.find(".info_slide").clone();b.b.find(".info_slide").remove();b.b.find(".container_thumbs").width(b.s.w).height(50).append(k);
var y=0,w=this.s.w,j=this.s.h,e=0,d=b.b.find(".info_slide_thumb"),n=b.b.offset().left,h=b.b.offset().top;d.find(".image_number").each(function(){y+=c(this).width()+parseInt(c(this).css("marginLeft"))+parseInt(c(this).css("marginRight"))+parseInt(c(this).css("paddingLeft"))+parseInt(c(this).css("paddingRight"))});d.width(y+"px");e=d.width();width_valor=this.s.w;width_valor=w-100;n+=90;g>b.s.w&&b.b.mousemove(function(a){var g=a.pageX,a=a.pageY,k=0,g=g-n,a=a-h;novo_width=e-width_valor;k=-(novo_width*
g/width_valor);0<k&&(k=0);k<-(e-w-5)&&(k=-(e-w-5));("bottom"==b.s.nl&&a>j||"top"==b.s.nl&&50>a)&&d.css({left:k})});b.b.find(".scroll_thumbs").css({left:10});g<b.s.w&&(b.b.find(".info_slide").width(b.s.w),b.b.find(".box_scroll_thumbs").hide())}else if(b.s.d||b.s.nr){g={};b.s.d?(k=Math.round(1.8*b.s.ds),15>k?k=15:50<k&&(k=45)):k=30;"top"==b.s.nl?(g.top="-"+k+"px",g.bottom="auto",(!this.s.sbr||this.s.sbr<k)&&b.b.css("margin-top",k+"px")):"bottom"==b.s.nl&&(g.bottom="-"+k+"px",g.top="auto",(!this.s.sbr||
this.s.sbr<k)&&b.b.css("margin-bottom",k+"px"));k=b.b.find(".info_slide");if(b.s.d)k.addClass("info_slide_dots").removeClass("info_slide");else if("top"==b.s.nl||"bottom"==b.s.nl)k.addClass("info_slide_numbers"),k.height()>b.s.mnh&&k.hide();"top"==b.s.nl||"bottom"==b.s.nl?g.left=(b.s.w+2*this.s.bw-k.width())/2:(g.top=15+this.s.bw,g.left=15+this.s.bw);k.css(g)}this.b.find("ul").hide();this.s.ia=this.s.il[0][0];this.s.lia=this.s.il[0][1];this.s.laa=this.s.il[0][3];this.s.lit=this.s.il[0][4];1<this.s.il.length&&
(this.b.find(".prev_button").click(function(){var a=b.s.ii-2;0>a&&(a=b.s.il.length+a);b.jumpToImage(a);return!1}),this.b.find(".next_button").click(function(){b.jumpToImage(b.s.ii);return!1}),this.b.find(".next_button, .prev_button").hover(function(){c(this).stop().animate({opacity:1},200)},function(){c(this).stop().animate({opacity:0.75},200)}),this.b.find(".image_number").hover(function(){"image_number image_number_select"!=c(this).attr("class")&&c(this).css(b.s.ao)},function(){"image_number image_number_select"!=
c(this).attr("class")&&c(this).css(b.s.aou)}),this.b.find(".image_number").click(function(){if("image_number image_number_select"!=c(this).attr("class")){var a=c(this).attr("rel");b.jumpToImage(a)}return!1}),this.b.find(".image_number").css(b.s.aou),this.b.find(".image_number:eq(0)").css(b.s.aa));this.s.ht&&this.hideTools();this.loadImages()},loadImages:function(){var b=this;this.b.append(c('<div class="loading">Loading</div>'));var a=this.s.il.length,k=0;c.each(this.s.il,function(){var g=c('<span class="image_loading"></span>');
g.css({position:"absolute",top:"-9999em"});b.b.append(g);g=new Image;c(g).load(function(){++k;k==a&&(b.b.find(".loading").remove(),b.b.find(".image_loading").remove(),b.start())}).error(function(){b.b.find(".loading, .image_loading, .image_number, .next_button, .prev_button").remove();b.b.html('<p style="color:white;background:black;">Error loading images. One or more images were not found.</p>')}).attr("src",this[0])})},start:function(){var b=this;this.setLinkAtual();this.b.find(".image a img").attr({src:this.s.ia});
img_link=this.b.find(".image a");img_link=this.resizeImage(img_link);img_link.find("img").fadeIn(1500);this.setValueBoxText();this.showBoxText();this.stopOnMouseOver();1<this.s.il.length?this.timer=setTimeout(function(){b.nextImage()},this.s.i):this.b.find(".loading, .image_loading, .image_number, .next_button, .prev_button").remove();c.isFunction(this.s.l)&&this.s.l()},jumpToImage:function(b){!1==this.s.ian?(this.b.find(".box_clone").stop(),this.clearTimer(!0),this.s.ii=Math.floor(b),this.b.find(".image a").attr({href:this.s.lia,
target:this.s.lit}),this.b.find(".image_main").attr({src:this.s.ia}),this.b.find(".box_clone").remove(),this.nextImage()):this.oc=b},nextImage:function(){animations_functions="cube,cuberandom,block,cubestop,cubestoprandom,cubehide,cubesize,horizontal,showbars,showbarsrandom,tube,fade,fadefour,paralell,blind,blindheight,blindwidth,directiontop,directionbottom,directionright,directionleft,cubespread,glasscube,glassblock,circles,circlesinside,circlesrotate".split(",");this.at&&!this.s.il[this.s.ii][2]?
(animation_type=this.at[this.ca],this.ca++,this.ca>=this.at.length&&(this.ca=0)):animation_type=this.s.il[this.s.ii][2]?this.s.il[this.s.ii][2]:""==this.s.a?"randomsmart":this.s.a;if(c.isArray(animation_type))var b=parseInt(animation_type[1],10),a=animation_type[0];else b=0,a=animation_type;a=a.toLowerCase();if("randomsmart"==a)this.s.ria||(animations_functions.sort(function(){return 0.5-Math.random()}),this.s.ria=animations_functions),a=this.s.ria[this.s.ii];else if("random"==a)var k=parseInt(Math.random()*
animations_functions.length),a=animations_functions[k];k={};if(a.match(/random/i))a=a.replace(/random/i,""),k.random=!0;else{var g={blindheight:{height:!0},blindwidth:{height:!1,time_animate:400,delay:50},directiontop:{direction:"top"},directionbottom:{direction:"bottom"},directionright:{direction:"right",total:5},directionleft:{direction:"left",total:5}};g[a]&&(k=g[a],a=a.replace(/width|height|top|bottom|left|right/i,""))}k.timeAnimate=b;easing="easeOutQuad";this.s.ian=!0;a="animation"+a.charAt(0).toUpperCase()+
a.slice(1);if(this[a])this[a](k);else this.animationTube({timeAnimate:b})},animationCube:function(b){var a=this;easing="easeOutBack";var k=b.timeAnimate?b.timeAnimate:700/this.s.v;this.setActualLevel();var g=Math.ceil(this.s.w/(this.s.w/8)),c=Math.ceil(this.s.h/(this.s.h/3)),f=g*c,g=Math.ceil(this.s.w/g),w=Math.ceil(this.s.h/c),j=init_left=this.s.h+200,e=0,d=0;for(i=0;i<f;i++){var n=this.getBoxClone();n.hide();var h={left:this.s.w/2,top:this.s.h+50,width:g,height:w};b.random&&(h.left=(0==i%2?init_left:
-init_left)+g*d+50*d+"px",h.top=(0==i%2?j:-j)+w*e+50*e+"px");n.css(h);n.find("img").css({left:-(g*d),top:-(w*e)});this.addBoxClone(n);var h=40*d,o=i==f-1?function(){a.finishAnimation()}:"";n.show().delay(h).animate({top:w*e+"px",left:g*d+"px"},k,easing,o);e++;e==c&&(e=0,d++)}},animationBlock:function(b){var a=this,b=b.timeAnimate?b.timeAnimate:500/this.s.v;this.setActualLevel();var k=Math.ceil(this.s.w/(this.s.w/10)),g=Math.ceil(this.s.w/k),c=this.s.h;for(i=0;i<k;i++){var f=g*i,e=this.getBoxClone();
e.css({left:this.s.w,top:0,width:g,height:c});e.find("img").css({left:-(g*i),top:0});this.addBoxClone(e);var j=i==k-1?function(){a.finishAnimation()}:"";e.delay(80*i).animate({top:0,left:f,opacity:"show"},b,easing,j)}},animationCubestop:function(b){var a=this;easing="easeOutBack";var k=b.timeAnimate?b.timeAnimate:800/this.s.v,g=this.b.find(".image_main").attr("src");this.setActualLevel();this.setLinkAtual();this.b.find(".image_main").attr({src:this.s.ia});var c=Math.ceil(this.s.w/(this.s.w/8)),e=
Math.ceil(this.s.h/(this.s.w/8)),f=c*e,c=Math.ceil(this.s.w/c),j=Math.ceil(this.s.h/e),d=0,l=0,n=0,h=0,o=this.s.w/16;for(i=0;i<f;i++){var d=0==i%2?d:-d,l=0==i%2?l:-l,p=d+j*n,m=l+c*h,s=-(j*n),t=-(c*h),v=p-o,u=m-o,r=this.getBoxClone(g);r.css({left:m+"px",top:p+"px",width:c,height:j});r.find("img").css({left:t,top:s});this.addBoxClone(r);r.show();s=30*i;b.random&&(k=1E3/this.s.v,v=p,u=m,s=30*30*Math.random());p=i==f-1?function(){a.finishAnimation()}:"";r.delay(s).animate({opacity:"hide",top:v+"px",left:u+
"px"},k,easing,p);n++;n==e&&(n=0,h++)}},animationCubehide:function(b){var a=this,b=b.timeAnimate?b.timeAnimate:500/this.s.v,k=this.b.find(".image_main").attr("src");this.setActualLevel();this.setLinkAtual();this.b.find(".image_main").attr({src:this.s.ia});var g=Math.ceil(this.s.w/(this.s.w/8)),c=Math.ceil(this.s.h/(this.s.h/3)),e=g*c,g=Math.ceil(this.s.w/g),f=Math.ceil(this.s.h/c),j=0,d=0,l=0,n=0;for(i=0;i<e;i++){var j=0==i%2?j:-j,d=0==i%2?d:-d,h=j+f*l,o=d+g*n,p=-(f*l),m=-(g*n),s=this.getBoxClone(k);
s.css({left:o+"px",top:h+"px",width:g,height:f});s.find("img").css({left:m,top:p});this.addBoxClone(s);s.show();h=50*i;h=i==e-1?50*e:h;o=i==e-1?function(){a.finishAnimation()}:"";s.delay(h).animate({opacity:"hide"},b,easing,o);l++;l==c&&(l=0,n++)}},animationCubejelly:function(b){var a=this;easing="easeInBack";var b=b.timeAnimate?b.timeAnimate:300/this.s.v,c=this.b.find(".image_main").attr("src");this.setActualLevel();this.setLinkAtual();this.b.find(".image_main").attr({src:this.s.ia});var g=Math.ceil(this.s.w/
(this.s.w/8)),e=Math.ceil(this.s.h/(this.s.h/3)),f=g*e,g=Math.ceil(this.s.w/g),d=Math.ceil(this.s.h/e),j=0,q=0,l=0,h=0,m=-1;for(i=0;i<f;i++){0!=h%2?(0==l&&(m=m+e+1),m--):(0<h&&0==l&&(m+=2),m++);var j=0==i%2?j:-j,q=0==i%2?q:-q,o=j+d*l,p=q+g*h,r=-(d*l),s=-(g*h),t=this.getBoxClone(c);t.css({left:p+"px",top:o+"px",width:g,height:d});t.find("img").css({left:s,top:r});this.addBoxClone(t);t.show();o=i==f-1?function(){a.finishAnimation()}:"";t.delay(50*i).animate({width:"+=100px",height:"+=100px",top:"-=20px",
left:"-=20px",opacity:"hide"},b,easing,o);l++;l==e&&(l=0,h++)}},animationCubesize:function(b){var a=this;easing="easeInOutQuad";var b=b.timeAnimate?b.timeAnimate:600/this.s.v,c=this.b.find(".image_main").attr("src");this.setActualLevel();this.setLinkAtual();this.b.find(".image_main").attr({src:this.s.ia});var g=Math.ceil(this.s.w/(this.s.w/8)),e=Math.ceil(this.s.h/(this.s.h/3)),f=g*e,g=Math.ceil(this.s.w/g),d=Math.ceil(this.s.h/e),j=0,h=0,l=0,n=0;Math.ceil(this.s.w/6);for(i=0;i<f;i++){var j=0==i%
2?j:-j,h=0==i%2?h:-h,m=j+d*l,o=h+g*n,p=-(d*l),r=-(g*n),s=this.getBoxClone(c);s.css({left:o,top:m,width:g,height:d});s.find("img").css({left:r,top:p});this.addBoxClone(s);s.show();p=i==f-1?function(){a.finishAnimation()}:"";s.delay(50*i).animate({opacity:"hide",width:"hide",height:"hide",top:m+1.5*g,left:o+1.5*d},b,easing,p);l++;l==e&&(l=0,n++)}},animationHorizontal:function(b){var a=this;easing="easeOutExpo";b=b.timeAnimate?b.timeAnimate:700/this.s.v;this.setActualLevel();var c=Math.ceil(this.s.w/
(this.s.w/7)),g=this.s.w,e=Math.ceil(this.s.h/c);for(i=0;i<c;i++){var f=(0==i%2?"":"")+g,d=i*e,j=this.getBoxClone();j.css({left:f+"px",top:d+"px",width:g,height:e});j.find("img").css({left:0,top:-d});this.addBoxClone(j);f=i==c-1?function(){a.finishAnimation()}:"";j.delay(70*i).animate({opacity:"show",top:d,left:0},b,easing,f)}},animationShowbars:function(b){var a=this,c=b.timeAnimate?b.timeAnimate:400/this.s.v;this.setActualLevel();var g=Math.ceil(this.s.w/(this.s.w/10)),e=Math.ceil(this.s.w/g),f=
this.s.h;for(i=0;i<g;i++){var d=e*i,j=this.getBoxClone();j.css({left:d,top:-50,width:e,height:f});j.find("img").css({left:-(e*i),top:0});this.addBoxClone(j);if(b.random)var h=50*this.getRandom(g),h=i==g-1?50*g:h;else h=70*i,c-=2*i;var l=i==g-1?function(){a.finishAnimation()}:"";j.delay(h).animate({opacity:"show",top:"0px",left:d+"px"},c,easing,l)}},animationTube:function(b){var a=this;easing="easeOutElastic";b=b.timeAnimate?b.timeAnimate:600/this.s.v;this.setActualLevel();var c=Math.ceil(this.s.w/
(this.s.w/10)),g=Math.ceil(this.s.w/c),e=this.s.h;for(i=0;i<c;i++){var f=e,d=g*i,j=this.getBoxClone();j.css({left:d,top:f,height:e,width:g});j.find("img").css({left:-d});this.addBoxClone(j);f=40*this.getRandom(c);d=i==c-1?function(){a.finishAnimation()}:"";j.show().delay(f).animate({top:0},b,easing,d)}},animationFade:function(b){var a=this,b=b.timeAnimate?b.timeAnimate:800/this.s.v;this.setActualLevel();var c=this.s.w,g=this.s.h;for(i=0;2>i;i++){var e=this.getBoxClone();e.css({left:0,top:0,width:c,
height:g});this.addBoxClone(e);e.animate({opacity:"show",left:0,top:0},b,easing,1==i?function(){a.finishAnimation()}:"")}},animationFadefour:function(b){var a=this,b=b.timeAnimate?b.timeAnimate:500/this.s.v;this.setActualLevel();var c=this.s.w,g=this.s.h;for(i=0;4>i;i++){if(0==i)var e="-100px",f="-100px";else 1==i?(e="-100px",f="100px"):2==i?(e="100px",f="-100px"):3==i&&(f=e="100px");var d=this.getBoxClone();d.css({left:f,top:e,width:c,height:g});this.addBoxClone(d);d.animate({opacity:"show",left:0,
top:0},b,easing,3==i?function(){a.finishAnimation()}:"")}},animationParalell:function(b){var a=this;easing="easeOutCirc";b=b.timeAnimate?b.timeAnimate:400/this.s.v;this.setActualLevel();var c=Math.ceil(this.s.w/(this.s.w/16)),g=Math.ceil(this.s.w/c),e=this.s.h;for(i=0;i<c;i++){var f=g*i,d=this.getBoxClone();d.css({left:f,top:0-this.s.h,width:g,height:e});d.find("img").css({left:-(g*i),top:0});this.addBoxClone(d);var j;i<=c/2-1?j=1400-200*i:i>c/2-1&&(j=200*(i-c/2));j/=2.5;var h=i==c-1?function(){a.finishAnimation()}:
"";d.show().delay(j).animate({top:"0px",left:f+"px"},b,easing,h)}},animationBlind:function(b){var a=this,c=b.timeAnimate?b.timeAnimate:400/this.s.v;this.setActualLevel();var g=Math.ceil(this.s.w/(this.s.w/16)),e=Math.ceil(this.s.w/g),f=this.s.h;for(i=0;i<g;i++){var d=e*i,j=this.getBoxClone();j.css({left:d,top:0,width:e,height:f});j.find("img").css({left:-(e*i),top:0});this.addBoxClone(j);var h;if(b.height)i<=g/2-1?h=200+200*i:i>g/2-1&&(h=200*(g/2-i)+100*g),l=i==g/2?function(){a.finishAnimation()}:
"";else{i<=g/2-1?h=1400-200*i:i>g/2-1&&(h=200*(i-g/2));var l=i==g-1?function(){a.finishAnimation()}:""}h/=2.5;b.height?(c+=2*i,easing="easeOutQuad",j.delay(h).animate({opacity:"show",top:"0px",left:d+"px",height:"show"},c,easing,l)):j.delay(h).animate({opacity:"show",top:"0px",left:d+"px",width:"show"},c,easing,l)}},animationBlinddimension:function(b){var a=this,b=c.extend({},{height:!0,time_animate:500,delay:100},b||{}),e=b.time_animate/this.s.v;this.setActualLevel();var g=Math.ceil(this.s.w/(this.s.w/
16)),f=Math.ceil(this.s.w/g),d=this.s.h;for(i=0;i<g;i++){var h=f*i,j=this.getBoxClone();j.css({left:h,top:0,width:f,height:d});j.find("img").css({left:-(f*i),top:0});this.addBoxClone(j);var q=b.delay*i,l=i==g-1?function(){a.finishAnimation()}:"";b.height?(easing="easeOutQuad",j.delay(q).animate({opacity:"show",top:"0px",left:h+"px",height:"show"},e,easing,l)):j.delay(q).animate({opacity:"show",top:"0px",left:h+"px",width:"show"},e,easing,l)}},animationDirection:function(b){var a=this,b=c.extend({},
{direction:"top",delay_type:"sequence",total:7},b||{});easing="easeInOutExpo";var e=b.timeAnimate?b.timeAnimate:1200/this.s.v,g=this.b.find(".image_main").attr("src");this.setActualLevel();this.setLinkAtual();this.b.find(".image_main").attr({src:this.s.ia});this.b.find(".image_main").hide();var f=b.total;for(i=0;i<f;i++){switch(b.direction){default:case "top":var d=Math.ceil(this.s.w/f),h=this.s.h,j=0,q=d*i,l=-h,n=q,m=h,o=q,p=0,r=q,s=0,t=-q;break;case "bottom":d=Math.ceil(this.s.w/f);h=this.s.h;j=
0;q=d*i;l=h;n=q;m=-h;o=q;p=0;r=q;s=0;t=-q;break;case "right":d=this.s.w;h=Math.ceil(this.s.h/f);j=h*i;q=0;l=j;n=d;m=j;o=-n;p=j;r=0;s=-j;t=0;break;case "left":d=this.s.w,h=Math.ceil(this.s.h/f),j=h*i,q=0,l=j,n=-d,m=j,o=-n,p=j,r=0,s=-j,t=0}switch(b.delay_type){default:var v=0==i%2?0:150;break;case "random":v=30*30*Math.random();break;case "sequence":v=100*i}var u=this.getBoxClone(g);u.find("img").css({left:t,top:s});u.css({top:j,left:q,width:d,height:h});this.addBoxClone(u);u.show();u.delay(v).animate({top:l,
left:n},e,easing);j=this.getBoxClone();j.find("img").css({left:t,top:s});j.css({top:m,left:o,width:d,height:h});this.addBoxClone(j);j.show();d=i==f-1?function(){a.finishAnimation()}:"";j.delay(v).animate({top:p,left:r},e,easing,d)}},animationCubespread:function(b){var a=this;easing="easeInOutQuad";b=b.timeAnimate?b.timeAnimate:700/this.s.v;this.setActualLevel();var c=Math.ceil(this.s.w/(this.s.w/8)),g=Math.ceil(this.s.h/(this.s.w/8)),e=c*g,c=Math.ceil(this.s.w/c),d=Math.ceil(this.s.h/g),f=0,h=0,q=
0,l=0,n=[],m=[];for(i=0;i<e;i++){var f=0==i%2?f:-f,h=0==i%2?h:-h,o=f+d*q,p=h+c*l;n[i]=[o,p];q++;q==g&&(q=0,l++)}for(i=l=q=0;i<e;i++)m[i]=i;m=a.shuffleArray(m);for(i=0;i<e;i++){var f=0==i%2?f:-f,h=0==i%2?h:-h,o=f+d*q,p=h+c*l,r=-(d*q),s=-(c*l),t=o,v=p,o=n[m[i]][0],p=n[m[i]][1],u=this.getBoxClone();u.css({left:p+"px",top:o+"px",width:c,height:d});u.find("img").css({left:s,top:r});this.addBoxClone(u);o=30*30*Math.random();i==e-1&&(o=900);p=i==e-1?function(){a.finishAnimation()}:"";u.delay(o).animate({opacity:"show",
top:t+"px",left:v+"px"},b,easing,p);q++;q==g&&(q=0,l++)}},animationGlasscube:function(b){var a=this;easing="easeOutExpo";b=b.timeAnimate?b.timeAnimate:500/this.s.v;this.setActualLevel();var c=2*Math.ceil(this.s.w/(this.s.w/10)),g=2*Math.ceil(this.s.w/c),e=this.s.h/2,f=0;for(i=0;i<c;i++){mod=0==i%2?!0:!1;var d=g*f,h=mod?-a.s.h:a.s.h,m=g*f,l=mod?0:e,n=-(g*f),r=mod?0:-e,o=120*f,p=this.getBoxClone();p.css({left:d,top:h,width:g,height:e});p.find("img").css({left:n+g/1.5,top:r}).delay(o).animate({left:n,
top:r},1.9*b,"easeOutQuad");this.addBoxClone(p);d=i==c-1?function(){a.finishAnimation()}:"";p.show().delay(o).animate({top:l,left:m},b,easing,d);0!=i%2&&f++}},animationGlassblock:function(b){var a=this;easing="easeOutExpo";b=b.timeAnimate?b.timeAnimate:700/this.s.v;this.setActualLevel();var c=Math.ceil(this.s.w/(this.s.w/10)),g=Math.ceil(this.s.w/c),e=this.s.h;for(i=0;i<c;i++){var f=g*i,d=g*i,h=-(g*i),m=100*i,l=this.getBoxClone();l.css({left:f,top:0,width:g,height:e});l.find("img").css({left:h+g/
1.5,top:0}).delay(m).animate({left:h,top:0},1.1*b,"easeInOutQuad");this.addBoxClone(l);f=i==c-1?function(){a.finishAnimation()}:"";l.delay(m).animate({top:0,left:d,opacity:"show"},b,easing,f)}},animationCircles:function(b){var a=this;easing="easeInQuad";b=b.timeAnimate?b.timeAnimate:500/this.s.v;this.setActualLevel();var c=Math.ceil(this.s.w/(this.s.w/10)),g=100,f=Math.sqrt(Math.pow(this.s.w,2)+Math.pow(this.s.h,2)),f=Math.ceil(f);for(i=0;i<c;i++){var e=a.s.w/2-g/2,d=a.s.h/2-g/2,h=e,m=d,l=this.getBoxClone();
l.css({left:e,top:d,width:g,height:g}).css3({"border-radius":f+"px"});l.find("img").css({left:-e,top:-d});g+=100;this.addBoxClone(l);e=i==c-1?function(){a.finishAnimation()}:"";l.delay(70*i).animate({top:m,left:h,opacity:"show"},b,easing,e)}},animationCirclesinside:function(b){var a=this;easing="easeInQuad";var b=b.timeAnimate?b.timeAnimate:500/this.s.v,c=this.b.find(".image_main").attr("src");this.setActualLevel();this.setLinkAtual();this.b.find(".image_main").attr({src:this.s.ia});var e=Math.ceil(this.s.w/
(this.s.w/10)),f=Math.sqrt(Math.pow(this.s.w,2)+Math.pow(this.s.h,2)),d=f=Math.ceil(f);for(i=0;i<e;i++){var h=a.s.w/2-d/2,j=a.s.h/2-d/2,m=h,l=j,n=this.getBoxClone(c);n.css({left:h,top:j,width:d,height:d}).css3({"border-radius":f+"px"});n.find("img").css({left:-h,top:-j});d-=100;this.addBoxClone(n);n.show();h=i==e-1?function(){a.finishAnimation()}:"";n.delay(70*i).animate({top:l,left:m,opacity:"hide"},b,easing,h)}},animationCirclesrotate:function(b){var a=this,b=b.timeAnimate?b.timeAnimate:500/this.s.v,
c=this.b.find(".image_main").attr("src");this.setActualLevel();this.setLinkAtual();this.b.find(".image_main").attr({src:this.s.ia});var f=Math.ceil(this.s.w/(this.s.w/10)),e=Math.sqrt(Math.pow(this.s.w,2)+Math.pow(this.s.h,2)),d=e=Math.ceil(e);for(i=0;i<f;i++){var h=a.s.w/2-d/2,j=a.s.h/2-d/2,m=h,l=j,n=this.getBoxClone(c);n.css({left:h,top:j,width:d,height:d}).css3({"border-radius":e+"px"});n.find("img").css({left:-h,top:-j});d-=100;this.addBoxClone(n);n.show();h=i==f-1?function(){a.finishAnimation()}:
"";j=0==i%2?"20deg":"-20deg";n.delay(100*i).animate({top:l,left:m,opacity:"hide",rotate:j},b,easing,h)}},finishAnimation:function(){var b=this;this.b.find(".image_main").show();this.showBoxText();this.s.ian=!1;if(!1!==b.oc)b.jumpToImage(b.oc),b.oc=!1;else if((!this.s.poh||!this.s.ih)&&(this.s.ls||this.s.fl))this.timer=setTimeout(function(){b.completeMove()},this.s.i),this.b.find(".image_main").attr({src:this.s.ia}),this.b.find(".image a").attr({href:this.s.lia,target:this.s.lit})},completeMove:function(){var b=
!0;!this.s.ls&&this.s.fl&&(this.s.fl++,this.s.fl>=this.s.il.length&&(b=this.s.fl=!1));this.clearTimer(!0);this.b.find(".box_clone").remove();b&&this.nextImage()},setActualLevel:function(){var b=this;c.isFunction(this.s.is)&&this.s.imageSwitched(this.s.ii,this);var a=this.s.il[this.s.ii][1],d=this.s.il[this.s.ii][3],e=this.s.il[this.s.ii][4];this.s.ia=this.s.il[this.s.ii][0];this.s.lia=a;this.s.laa=d;this.s.lit=e;this.b.find(".image_number_select").css(b.s.aou).removeClass("image_number_select");c("#image_n_"+
(this.s.ii+1)+"_"+b.number_skitter).css(b.s.aa).addClass("image_number_select");this.s.ahl?this.b.find(".label_skitter").slideUp(200,function(){b.setValueBoxText()}):(b.setValueBoxText(),(void 0==this.s.laa||""==this.s.laa)&&this.b.find(".label_skitter").css("display","none"));this.s.ii++;this.s.ii==this.s.il.length&&(this.s.ii=0)},getBoxClone:function(b){b="#"!=this.s.lia?c('<a href="'+this.s.lia+'"'+(this.s.lit?' target="'+this.s.lit+'"':"")+'><img src="'+(b?b:this.s.ia)+'" /></a>'):c('<img src="'+
(b?b:this.s.ia)+'" />');b=this.resizeImage(b);return c('<div class="box_clone"></div>').append(b)},resizeImage:function(b){this.s.f&&b.find("img").height(this.s.h);return b},addBoxClone:function(b){this.b.find(".container_skitter").append(b)},getRandom:function(b){return Math.floor(Math.random()*b)},setValueBoxText:function(){this.b.find(".label_skitter").html("<p>"+this.s.laa+"</p>")},showBoxText:function(){void 0!=this.s.laa&&""!=this.s.laa&&this.s.lb&&(this.s.ahl?this.b.find(".label_skitter").slideDown(400):
this.b.find(".label_skitter").css("display","block"))},stopOnMouseOver:function(){var b=this,a=b.s.o,c=b.s.iie,d=b.s.iie;b.b.hover(function(){b.s.ht&&("top"!=b.s.nl&&"bottom"!=b.s.nl&&b.b.find(".info_slide,.info_slide_dots").show().css({opacity:0}).animate({opacity:a},c),b.s.n&&(b.b.find(".prev_button").show().css({opacity:0}).animate({opacity:a},c),b.b.find(".next_button").show().css({opacity:0}).animate({opacity:a},c)));b.s.poh&&b.clearTimer(!0);b.s.ih=!0},function(){b.s.ht&&("top"!=b.s.nl&&"bottom"!=
b.s.nl&&b.b.find(".info_slide,.info_slide_dots").queue("fx",[]).show().css({opacity:a}).animate({opacity:0},d),b.s.n&&(b.b.find(".prev_button").queue("fx",[]).show().css({opacity:a}).animate({opacity:0},d),b.b.find(".next_button").queue("fx",[]).show().css({opacity:a}).animate({opacity:0},d)));if(b.s.poh&&(b.clearTimer(!0),!b.s.ian&&1<b.s.il.length&&(b.s.fl||b.s.ls)))b.timer=setTimeout(function(){b.timer=setTimeout(function(){b.completeMove()},b.s.i);b.b.find(".image_main").attr({src:b.s.ia});b.b.find(".image a").attr({href:b.s.lia,
target:b.s.lit})},b.s.i);b.s.ih=!1})},clearTimer:function(){clearInterval(this.timer)},setLinkAtual:function(){"#"!=this.s.lia?this.b.find(".image a").attr({href:this.s.lia,target:this.s.lit}):this.b.find(".image a").removeAttr("href")},hideTools:function(){"top"!=this.s.nl&&"bottom"!=this.s.nl&&this.b.find(".info_slide,.info_slide_dots").hide();this.b.find(".prev_button,.next_button,.label_skitter").hide()},shuffleArray:function(a){for(var c=[],d;0<a.length;)d=this.randomUnique(0,a.length-1),c[c.length]=
a[d],a.splice(d,1);return c},randomUnique:function(a,c){var d;do d=Math.random();while(1==d);return d*(c-a+1)+a|0}});c.fn.css3=function(a){var c={},d=["moz","ms","o","webkit"],e;for(e in a){for(var f=0;f<d.length;f++)c["-"+d[f]+"-"+e]=a[e];c[e]=a[e]}this.css(c);return this};var h="deg";c.fn.rotate=function(a){var d=c(this).css("transform")||"none";if("undefined"==typeof a)return d&&(a=d.match(/rotate\(([^)]+)\)/))&&a[1]?a[1]:0;if(a=a.toString().match(/^(-?\d+(\.\d+)?)(.+)?$/))a[3]&&(h=a[3]),c(this).css("transform",
d.replace(/none|rotate\([^)]*\)/,"")+"rotate("+a[1]+h+")");return this};c.fn.scale=function(a){var d=c(this).css("transform");if("undefined"==typeof a)return d&&(a=d.match(/scale\(([^)]+)\)/))&&a[1]?a[1]:1;c(this).css("transform",d.replace(/none|scale\([^)]*\)/,"")+"scale("+a+")");return this};var m=c.fx.prototype.cur;c.fx.prototype.cur=function(){return"rotate"==this.prop?parseFloat(c(this.elem).rotate()):"scale"==this.prop?parseFloat(c(this.elem).scale()):m.apply(this,arguments)};c.fx.step.rotate=
function(a){c(a.elem).rotate(a.now+h)};c.fx.step.scale=function(a){c(a.elem).scale(a.now)};var z=c.fn.animate;c.fn.animate=function(a){if("undefined"!=typeof a.rotate){var c=a.rotate.toString().match(/^(([+-]=)?(-?\d+(\.\d+)?))(.+)?$/);c&&c[5]&&(h=c[5]);a.rotate=c[1]}return z.apply(this,arguments)};var r=null,A=c.fn.css;c.fn.css=function(a,d){null===r&&(r="undefined"!=typeof c.cssProps?c.cssProps:"undefined"!=typeof c.props?c.props:{});if("undefined"==typeof r.transform&&("transform"==a||"object"==
typeof a&&"undefined"!=typeof a.transform)){var e=r,f;a:{f=this.get(0);for(var h=["transform","WebkitTransform","msTransform","MozTransform","OTransform"],m;m=h.shift();)if("undefined"!=typeof f.style[m]){f=m;break a}f="transform"}e.transform=f}if("transform"!=r.transform)if("transform"==a){if(a=r.transform,"undefined"==typeof d&&jQuery.style)return jQuery.style(this.get(0),a)}else"object"==typeof a&&"undefined"!=typeof a.transform&&(a[r.transform]=a.transform,delete a.transform);return A.apply(this,
arguments)}})(jQuery);

$(function(){
	if ($('#stacks_in_49_page0containerwarehouse img').length) {
		if ($('#stacks_in_49_page0images img').length) {
			$('#stacks_in_49_page0images img').appendTo($('#stacks_in_49_page0container'));
		}
		$('#stacks_in_49_page0container').skitter({'a': 'random', 
								 	 'd': ('hidden'.match(/dots/i) != null), 
								 	 'nr': ('hidden'.match(/number/i) != null), 
								 	 'th': ('hidden'.match(/thumb/i) != null),
								 	 'ds': 14,
								 	 'nl': 'bottom', 
								 	 'al': '',
								 	 'sr': true, 
								 	 'i': 4.5*1000, 
								 	 'ls': true,
								     'ht': true,
								 	 'ahl': true,
								 	 'bw': 0, 
								  	 'sbr': 0,
								 	 'v': 10/10,								
								     'aou': {backgroundColor: '#FCFAF8', color: '#FFFFFF'},
								 	 'ao': {backgroundColor: '#305E94', color: '#FFFFFF'},
								 	 'aa': {backgroundColor: '#537FBB', color: '#FFFFFF'}, 
								 	 'poh': true});
	}
});

	return stack;
})(stacks.stacks_in_49_page0);


// Javascript for stacks_in_5411_page0
// ---------------------------------------------------------------------

// Each stack has its own object with its own namespace.  The name of
// that object is the same as the stack's id.
stacks.stacks_in_5411_page0 = {};

// A closure is defined and assigned to the stack's object.  The object
// is also passed in as 'stack' which gives you a shorthand for referring
// to this object from elsewhere.
stacks.stacks_in_5411_page0 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	

//-- Cycler Image Stack v2.5.2 by Joe Workman --//
/*
 * jQuery Cycle Plugin (with Transition Definitions)
 * Examples and documentation at: http://jquery.malsup.com/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version: 2.99 (12-MAR-2011)
 * Dual licensed under the MIT and GPL licenses.
 * http://jquery.malsup.com/license.html
 * Requires: jQuery v1.3.2 or later
 */
(function($){var ver="2.99";if($.support==undefined){$.support={opacity:!($.browser.msie)};}function debug(s){$.fn.cycle.debug&&log(s);}function log(){window.console&&console.log&&console.log("[cycle] "+Array.prototype.join.call(arguments," "));}$.expr[":"].paused=function(el){return el.cyclePause;};$.fn.cycle=function(options,arg2){var o={s:this.selector,c:this.context};if(this.length===0&&options!="stop"){if(!$.isReady&&o.s){log("DOM not ready, queuing slideshow");$(function(){$(o.s,o.c).cycle(options,arg2);});return this;}log("terminating; zero elements found by selector"+($.isReady?"":" (DOM not ready)"));return this;}return this.each(function(){var opts=handleArguments(this,options,arg2);if(opts===false){return;}opts.updateActivePagerLink=opts.updateActivePagerLink||$.fn.cycle.updateActivePagerLink;if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=this.cyclePause=0;var $cont=$(this);var $slides=opts.slideExpr?$(opts.slideExpr,this):$cont.children();var els=$slides.get();if(els.length<2){log("terminating; too few slides: "+els.length);return;}var opts2=buildOptions($cont,$slides,els,opts,o);if(opts2===false){return;}var startTime=opts2.continuous?10:getTimeout(els[opts2.currSlide],els[opts2.nextSlide],opts2,!opts2.backwards);if(startTime){startTime+=(opts2.delay||0);if(startTime<10){startTime=10;}debug("first timeout: "+startTime);this.cycleTimeout=setTimeout(function(){go(els,opts2,0,!opts.backwards);},startTime);}});};function handleArguments(cont,options,arg2){if(cont.cycleStop==undefined){cont.cycleStop=0;}if(options===undefined||options===null){options={};}if(options.constructor==String){switch(options){case"destroy":case"stop":var opts=$(cont).data("cycle.opts");if(!opts){return false;}cont.cycleStop++;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);}cont.cycleTimeout=0;$(cont).removeData("cycle.opts");if(options=="destroy"){destroy(opts);}return false;case"toggle":cont.cyclePause=(cont.cyclePause===1)?0:1;checkInstantResume(cont.cyclePause,arg2,cont);return false;case"pause":cont.cyclePause=1;return false;case"resume":cont.cyclePause=0;checkInstantResume(false,arg2,cont);return false;case"prev":case"next":var opts=$(cont).data("cycle.opts");if(!opts){log('options not found, "prev/next" ignored');return false;}$.fn.cycle[options](opts);return false;default:options={fx:options};}return options;}else{if(options.constructor==Number){var num=options;options=$(cont).data("cycle.opts");if(!options){log("options not found, can not advance slide");return false;}if(num<0||num>=options.elements.length){log("invalid slide index: "+num);return false;}options.nextSlide=num;if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}if(typeof arg2=="string"){options.oneTimeFx=arg2;}go(options.elements,options,1,num>=options.currSlide);return false;}}return options;function checkInstantResume(isPaused,arg2,cont){if(!isPaused&&arg2===true){var options=$(cont).data("cycle.opts");if(!options){log("options not found, can not resume");return false;}if(cont.cycleTimeout){clearTimeout(cont.cycleTimeout);cont.cycleTimeout=0;}go(options.elements,options,1,!options.backwards);}}}function removeFilter(el,opts){if(!$.support.opacity&&opts.cleartype&&el.style.filter){try{el.style.removeAttribute("filter");}catch(smother){}}}function destroy(opts){if(opts.next){$(opts.next).unbind(opts.prevNextEvent);}if(opts.prev){$(opts.prev).unbind(opts.prevNextEvent);}if(opts.pager||opts.pagerAnchorBuilder){$.each(opts.pagerAnchors||[],function(){this.unbind().remove();});}opts.pagerAnchors=null;if(opts.destroy){opts.destroy(opts);}}function buildOptions($cont,$slides,els,options,o){var opts=$.extend({},$.fn.cycle.defaults,options||{},$.metadata?$cont.metadata():$.meta?$cont.data():{});if(opts.autostop){opts.countdown=opts.autostopCount||els.length;}var cont=$cont[0];$cont.data("cycle.opts",opts);opts.$cont=$cont;opts.stopCount=cont.cycleStop;opts.elements=els;opts.before=opts.before?[opts.before]:[];opts.after=opts.after?[opts.after]:[];if(!$.support.opacity&&opts.cleartype){opts.after.push(function(){removeFilter(this,opts);});}if(opts.continuous){opts.after.push(function(){go(els,opts,0,!opts.backwards);});}saveOriginalOpts(opts);if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($slides);}if($cont.css("position")=="static"){$cont.css("position","relative");}if(opts.width){$cont.width(opts.width);}if(opts.height&&opts.height!="auto"){$cont.height(opts.height);}if(opts.startingSlide){opts.startingSlide=parseInt(opts.startingSlide);}else{if(opts.backwards){opts.startingSlide=els.length-1;}}if(opts.random){opts.randomMap=[];for(var i=0;i<els.length;i++){opts.randomMap.push(i);}opts.randomMap.sort(function(a,b){return Math.random()-0.5;});opts.randomIndex=1;opts.startingSlide=opts.randomMap[1];}else{if(opts.startingSlide>=els.length){opts.startingSlide=0;}}opts.currSlide=opts.startingSlide||0;var first=opts.startingSlide;$slides.css({position:"absolute",top:0,left:0}).hide().each(function(i){var z;if(opts.backwards){z=first?i<=first?els.length+(i-first):first-i:els.length-i;}else{z=first?i>=first?els.length-(i-first):first-i:els.length-i;}$(this).css("z-index",z);});$(els[first]).css("opacity",1).show();removeFilter(els[first],opts);if(opts.fit&&opts.width){$slides.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$slides.height(opts.height);}var reshape=opts.containerResize&&!$cont.innerHeight();if(reshape){var maxw=0,maxh=0;for(var j=0;j<els.length;j++){var $e=$(els[j]),e=$e[0],w=$e.outerWidth(),h=$e.outerHeight();if(!w){w=e.offsetWidth||e.width||$e.attr("width");}if(!h){h=e.offsetHeight||e.height||$e.attr("height");}maxw=w>maxw?w:maxw;maxh=h>maxh?h:maxh;}if(maxw>0&&maxh>0){$cont.css({width:maxw+"px",height:maxh+"px"});}}if(opts.pause){$cont.hover(function(){this.cyclePause++;},function(){this.cyclePause--;});}if(supportMultiTransitions(opts)===false){return false;}var requeue=false;options.requeueAttempts=options.requeueAttempts||0;$slides.each(function(){var $el=$(this);this.cycleH=(opts.fit&&opts.height)?opts.height:($el.height()||this.offsetHeight||this.height||$el.attr("height")||0);this.cycleW=(opts.fit&&opts.width)?opts.width:($el.width()||this.offsetWidth||this.width||$el.attr("width")||0);if($el.is("img")){var loadingIE=($.browser.msie&&this.cycleW==28&&this.cycleH==30&&!this.complete);var loadingFF=($.browser.mozilla&&this.cycleW==34&&this.cycleH==19&&!this.complete);var loadingOp=($.browser.opera&&((this.cycleW==42&&this.cycleH==19)||(this.cycleW==37&&this.cycleH==17))&&!this.complete);var loadingOther=(this.cycleH==0&&this.cycleW==0&&!this.complete);if(loadingIE||loadingFF||loadingOp||loadingOther){if(o.s&&opts.requeueOnImageNotLoaded&&++options.requeueAttempts<100){log(options.requeueAttempts," - img slide not loaded, requeuing slideshow: ",this.src,this.cycleW,this.cycleH);setTimeout(function(){$(o.s,o.c).cycle(options);},opts.requeueTimeout);requeue=true;return false;}else{log("could not determine size of image: "+this.src,this.cycleW,this.cycleH);}}}return true;});if(requeue){return false;}opts.cssBefore=opts.cssBefore||{};opts.cssAfter=opts.cssAfter||{};opts.cssFirst=opts.cssFirst||{};opts.animIn=opts.animIn||{};opts.animOut=opts.animOut||{};$slides.not(":eq("+first+")").css(opts.cssBefore);$($slides[first]).css(opts.cssFirst);if(opts.timeout){opts.timeout=parseInt(opts.timeout);if(opts.speed.constructor==String){opts.speed=$.fx.speeds[opts.speed]||parseInt(opts.speed);}if(!opts.sync){opts.speed=opts.speed/2;}var buffer=opts.fx=="none"?0:opts.fx=="shuffle"?500:250;while((opts.timeout-opts.speed)<buffer){opts.timeout+=opts.speed;}}if(opts.easing){opts.easeIn=opts.easeOut=opts.easing;}if(!opts.speedIn){opts.speedIn=opts.speed;}if(!opts.speedOut){opts.speedOut=opts.speed;}opts.slideCount=els.length;opts.currSlide=opts.lastSlide=first;if(opts.random){if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.backwards){opts.nextSlide=opts.startingSlide==0?(els.length-1):opts.startingSlide-1;}else{opts.nextSlide=opts.startingSlide>=(els.length-1)?0:opts.startingSlide+1;}}if(!opts.multiFx){var init=$.fn.cycle.transitions[opts.fx];if($.isFunction(init)){init($cont,$slides,opts);}else{if(opts.fx!="custom"&&!opts.multiFx){log("unknown transition: "+opts.fx,"; slideshow terminating");return false;}}}var e0=$slides[first];if(opts.before.length){opts.before[0].apply(e0,[e0,e0,opts,true]);}if(opts.after.length){opts.after[0].apply(e0,[e0,e0,opts,true]);}if(opts.next){$(opts.next).bind(opts.prevNextEvent,function(){return advance(opts,1);});}if(opts.prev){$(opts.prev).bind(opts.prevNextEvent,function(){return advance(opts,0);});}if(opts.pager||opts.pagerAnchorBuilder){buildPager(els,opts);}exposeAddSlide(opts,els);return opts;}function saveOriginalOpts(opts){opts.original={before:[],after:[]};opts.original.cssBefore=$.extend({},opts.cssBefore);opts.original.cssAfter=$.extend({},opts.cssAfter);opts.original.animIn=$.extend({},opts.animIn);opts.original.animOut=$.extend({},opts.animOut);$.each(opts.before,function(){opts.original.before.push(this);});$.each(opts.after,function(){opts.original.after.push(this);});}function supportMultiTransitions(opts){var i,tx,txs=$.fn.cycle.transitions;if(opts.fx.indexOf(",")>0){opts.multiFx=true;opts.fxs=opts.fx.replace(/\s*/g,"").split(",");for(i=0;i<opts.fxs.length;i++){var fx=opts.fxs[i];tx=txs[fx];if(!tx||!txs.hasOwnProperty(fx)||!$.isFunction(tx)){log("discarding unknown transition: ",fx);opts.fxs.splice(i,1);i--;}}if(!opts.fxs.length){log("No valid transitions named; slideshow terminating.");return false;}}else{if(opts.fx=="all"){opts.multiFx=true;opts.fxs=[];for(p in txs){tx=txs[p];if(txs.hasOwnProperty(p)&&$.isFunction(tx)){opts.fxs.push(p);}}}}if(opts.multiFx&&opts.randomizeEffects){var r1=Math.floor(Math.random()*20)+30;for(i=0;i<r1;i++){var r2=Math.floor(Math.random()*opts.fxs.length);opts.fxs.push(opts.fxs.splice(r2,1)[0]);}debug("randomized fx sequence: ",opts.fxs);}return true;}function exposeAddSlide(opts,els){opts.addSlide=function(newSlide,prepend){var $s=$(newSlide),s=$s[0];if(!opts.autostopCount){opts.countdown++;}els[prepend?"unshift":"push"](s);if(opts.els){opts.els[prepend?"unshift":"push"](s);}opts.slideCount=els.length;$s.css("position","absolute");$s[prepend?"prependTo":"appendTo"](opts.$cont);if(prepend){opts.currSlide++;opts.nextSlide++;}if(!$.support.opacity&&opts.cleartype&&!opts.cleartypeNoBg){clearTypeFix($s);}if(opts.fit&&opts.width){$s.width(opts.width);}if(opts.fit&&opts.height&&opts.height!="auto"){$s.height(opts.height);}s.cycleH=(opts.fit&&opts.height)?opts.height:$s.height();s.cycleW=(opts.fit&&opts.width)?opts.width:$s.width();$s.css(opts.cssBefore);if(opts.pager||opts.pagerAnchorBuilder){$.fn.cycle.createPagerAnchor(els.length-1,s,$(opts.pager),els,opts);}if($.isFunction(opts.onAddSlide)){opts.onAddSlide($s);}else{$s.hide();}};}$.fn.cycle.resetState=function(opts,fx){fx=fx||opts.fx;opts.before=[];opts.after=[];opts.cssBefore=$.extend({},opts.original.cssBefore);opts.cssAfter=$.extend({},opts.original.cssAfter);opts.animIn=$.extend({},opts.original.animIn);opts.animOut=$.extend({},opts.original.animOut);opts.fxFn=null;$.each(opts.original.before,function(){opts.before.push(this);});$.each(opts.original.after,function(){opts.after.push(this);});var init=$.fn.cycle.transitions[fx];if($.isFunction(init)){init(opts.$cont,$(opts.elements),opts);}};function go(els,opts,manual,fwd){if(manual&&opts.busy&&opts.manualTrump){debug("manualTrump in go(), stopping active transition");$(els).stop(true,true);opts.busy=0;}if(opts.busy){debug("transition active, ignoring new tx request");return;}var p=opts.$cont[0],curr=els[opts.currSlide],next=els[opts.nextSlide];if(p.cycleStop!=opts.stopCount||p.cycleTimeout===0&&!manual){return;}if(!manual&&!p.cyclePause&&!opts.bounce&&((opts.autostop&&(--opts.countdown<=0))||(opts.nowrap&&!opts.random&&opts.nextSlide<opts.currSlide))){if(opts.end){opts.end(opts);}return;}var changed=false;if((manual||!p.cyclePause)&&(opts.nextSlide!=opts.currSlide)){changed=true;var fx=opts.fx;curr.cycleH=curr.cycleH||$(curr).height();curr.cycleW=curr.cycleW||$(curr).width();next.cycleH=next.cycleH||$(next).height();next.cycleW=next.cycleW||$(next).width();if(opts.multiFx){if(opts.lastFx==undefined||++opts.lastFx>=opts.fxs.length){opts.lastFx=0;}fx=opts.fxs[opts.lastFx];opts.currFx=fx;}if(opts.oneTimeFx){fx=opts.oneTimeFx;opts.oneTimeFx=null;}$.fn.cycle.resetState(opts,fx);if(opts.before.length){$.each(opts.before,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});}var after=function(){opts.busy=0;$.each(opts.after,function(i,o){if(p.cycleStop!=opts.stopCount){return;}o.apply(next,[curr,next,opts,fwd]);});};debug("tx firing("+fx+"); currSlide: "+opts.currSlide+"; nextSlide: "+opts.nextSlide);opts.busy=1;if(opts.fxFn){opts.fxFn(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{if($.isFunction($.fn.cycle[opts.fx])){$.fn.cycle[opts.fx](curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}else{$.fn.cycle.custom(curr,next,opts,after,fwd,manual&&opts.fastOnEvent);}}}if(changed||opts.nextSlide==opts.currSlide){opts.lastSlide=opts.currSlide;if(opts.random){opts.currSlide=opts.nextSlide;if(++opts.randomIndex==els.length){opts.randomIndex=0;}opts.nextSlide=opts.randomMap[opts.randomIndex];if(opts.nextSlide==opts.currSlide){opts.nextSlide=(opts.currSlide==opts.slideCount-1)?0:opts.currSlide+1;}}else{if(opts.backwards){var roll=(opts.nextSlide-1)<0;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=1;opts.currSlide=0;}else{opts.nextSlide=roll?(els.length-1):opts.nextSlide-1;opts.currSlide=roll?0:opts.nextSlide+1;}}else{var roll=(opts.nextSlide+1)==els.length;if(roll&&opts.bounce){opts.backwards=!opts.backwards;opts.nextSlide=els.length-2;opts.currSlide=els.length-1;}else{opts.nextSlide=roll?0:opts.nextSlide+1;opts.currSlide=roll?els.length-1:opts.nextSlide-1;}}}}if(changed&&opts.pager){opts.updateActivePagerLink(opts.pager,opts.currSlide,opts.activePagerClass);}var ms=0;if(opts.timeout&&!opts.continuous){ms=getTimeout(els[opts.currSlide],els[opts.nextSlide],opts,fwd);}else{if(opts.continuous&&p.cyclePause){ms=10;}}if(ms>0){p.cycleTimeout=setTimeout(function(){go(els,opts,0,!opts.backwards);},ms);}}$.fn.cycle.updateActivePagerLink=function(pager,currSlide,clsName){$(pager).each(function(){$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);});};function getTimeout(curr,next,opts,fwd){if(opts.timeoutFn){var t=opts.timeoutFn.call(curr,curr,next,opts,fwd);while(opts.fx!="none"&&(t-opts.speed)<250){t+=opts.speed;}debug("calculated timeout: "+t+"; speed: "+opts.speed);if(t!==false){return t;}}return opts.timeout;}$.fn.cycle.next=function(opts){advance(opts,1);};$.fn.cycle.prev=function(opts){advance(opts,0);};function advance(opts,moveForward){var val=moveForward?1:-1;var els=opts.elements;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}if(opts.random&&val<0){opts.randomIndex--;if(--opts.randomIndex==-2){opts.randomIndex=els.length-2;}else{if(opts.randomIndex==-1){opts.randomIndex=els.length-1;}}opts.nextSlide=opts.randomMap[opts.randomIndex];}else{if(opts.random){opts.nextSlide=opts.randomMap[opts.randomIndex];}else{opts.nextSlide=opts.currSlide+val;if(opts.nextSlide<0){if(opts.nowrap){return false;}opts.nextSlide=els.length-1;}else{if(opts.nextSlide>=els.length){if(opts.nowrap){return false;}opts.nextSlide=0;}}}}var cb=opts.onPrevNextEvent||opts.prevNextClick;if($.isFunction(cb)){cb(val>0,opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,moveForward);return false;}function buildPager(els,opts){var $p=$(opts.pager);$.each(els,function(i,o){$.fn.cycle.createPagerAnchor(i,o,$p,els,opts);});opts.updateActivePagerLink(opts.pager,opts.startingSlide,opts.activePagerClass);}$.fn.cycle.createPagerAnchor=function(i,el,$p,els,opts){var a;if($.isFunction(opts.pagerAnchorBuilder)){a=opts.pagerAnchorBuilder(i,el);debug("pagerAnchorBuilder("+i+", el) returned: "+a);}else{a='<a href="#">'+(i+1)+"</a>";}if(!a){return;}var $a=$(a);if($a.parents("body").length===0){var arr=[];if($p.length>1){$p.each(function(){var $clone=$a.clone(true);$(this).append($clone);arr.push($clone[0]);});$a=$(arr);}else{$a.appendTo($p);}}opts.pagerAnchors=opts.pagerAnchors||[];opts.pagerAnchors.push($a);$a.bind(opts.pagerEvent,function(e){e.preventDefault();opts.nextSlide=i;var p=opts.$cont[0],timeout=p.cycleTimeout;if(timeout){clearTimeout(timeout);p.cycleTimeout=0;}var cb=opts.onPagerEvent||opts.pagerClick;if($.isFunction(cb)){cb(opts.nextSlide,els[opts.nextSlide]);}go(els,opts,1,opts.currSlide<i);});if(!/^click/.test(opts.pagerEvent)&&!opts.allowPagerClickBubble){$a.bind("click.cycle",function(){return false;});}if(opts.pauseOnPagerHover){$a.hover(function(){opts.$cont[0].cyclePause++;},function(){opts.$cont[0].cyclePause--;});}};$.fn.cycle.hopsFromLast=function(opts,fwd){var hops,l=opts.lastSlide,c=opts.currSlide;if(fwd){hops=c>l?c-l:opts.slideCount-l;}else{hops=c<l?l-c:l+opts.slideCount-c;}return hops;};function clearTypeFix($slides){debug("applying clearType background-color hack");function hex(s){s=parseInt(s).toString(16);return s.length<2?"0"+s:s;}function getBg(e){for(;e&&e.nodeName.toLowerCase()!="html";e=e.parentNode){var v=$.css(e,"background-color");if(v&&v.indexOf("rgb")>=0){var rgb=v.match(/\d+/g);return"#"+hex(rgb[0])+hex(rgb[1])+hex(rgb[2]);}if(v&&v!="transparent"){return v;}}return"#ffffff";}$slides.each(function(){$(this).css("background-color",getBg(this));});}$.fn.cycle.commonReset=function(curr,next,opts,w,h,rev){$(opts.elements).not(curr).hide();if(typeof opts.cssBefore.opacity=="undefined"){opts.cssBefore.opacity=1;}opts.cssBefore.display="block";if(opts.slideResize&&w!==false&&next.cycleW>0){opts.cssBefore.width=next.cycleW;}if(opts.slideResize&&h!==false&&next.cycleH>0){opts.cssBefore.height=next.cycleH;}opts.cssAfter=opts.cssAfter||{};opts.cssAfter.display="none";$(curr).css("zIndex",opts.slideCount+(rev===true?1:0));$(next).css("zIndex",opts.slideCount+(rev===true?0:1));};$.fn.cycle.custom=function(curr,next,opts,cb,fwd,speedOverride){var $l=$(curr),$n=$(next);var speedIn=opts.speedIn,speedOut=opts.speedOut,easeIn=opts.easeIn,easeOut=opts.easeOut;$n.css(opts.cssBefore);if(speedOverride){if(typeof speedOverride=="number"){speedIn=speedOut=speedOverride;}else{speedIn=speedOut=1;}easeIn=easeOut=null;}var fn=function(){$n.animate(opts.animIn,speedIn,easeIn,function(){cb();});};$l.animate(opts.animOut,speedOut,easeOut,function(){$l.css(opts.cssAfter);if(!opts.sync){fn();}});if(opts.sync){fn();}};$.fn.cycle.transitions={fade:function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css("opacity",0);opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.opacity=0;});opts.animIn={opacity:1};opts.animOut={opacity:0};opts.cssBefore={top:0,left:0};}};$.fn.cycle.ver=function(){return ver;};$.fn.cycle.defaults={activePagerClass:"activeSlide",after:null,allowPagerClickBubble:false,animIn:null,animOut:null,autostop:0,autostopCount:0,backwards:false,before:null,cleartype:!$.support.opacity,cleartypeNoBg:false,containerResize:1,continuous:0,cssAfter:null,cssBefore:null,delay:0,easeIn:null,easeOut:null,easing:null,end:null,fastOnEvent:0,fit:0,fx:"fade",fxFn:null,height:"auto",manualTrump:true,next:null,nowrap:0,onPagerEvent:null,onPrevNextEvent:null,pager:null,pagerAnchorBuilder:null,pagerEvent:"click.cycle",pause:0,pauseOnPagerHover:0,prev:null,prevNextEvent:"click.cycle",random:0,randomizeEffects:1,requeueOnImageNotLoaded:true,requeueTimeout:250,rev:0,shuffle:null,slideExpr:null,slideResize:1,speed:1000,speedIn:null,speedOut:null,startingSlide:0,sync:1,timeout:4000,timeoutFn:null,updateActivePagerLink:null};})(jQuery);
/*
 * jQuery Cycle Plugin Transition Definitions
 * This script is a plugin for the jQuery Cycle Plugin
 * Examples and documentation at: http://malsup.com/jquery/cycle/
 * Copyright (c) 2007-2010 M. Alsup
 * Version:	 2.73
 * Dual licensed under the MIT and GPL licenses:
 * http://www.opensource.org/licenses/mit-license.php
 * http://www.gnu.org/licenses/gpl.html
 */
(function($){$.fn.cycle.transitions.none=function($cont,$slides,opts){opts.fxFn=function(curr,next,opts,after){$(next).show();$(curr).hide();after();};};$.fn.cycle.transitions.fadeout=function($cont,$slides,opts){$slides.not(":eq("+opts.currSlide+")").css({display:"block",opacity:1});opts.before.push(function(curr,next,opts,w,h,rev){$(curr).css("zIndex",opts.slideCount+(!rev===true?1:0));$(next).css("zIndex",opts.slideCount+(!rev===true?0:1));});opts.animIn.opacity=1;opts.animOut.opacity=0;opts.cssBefore.opacity=1;opts.cssBefore.display="block";opts.cssAfter.zIndex=0;};$.fn.cycle.transitions.scrollUp=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssBefore.top=h;opts.cssBefore.left=0;opts.cssFirst.top=0;opts.animIn.top=0;opts.animOut.top=-h;};$.fn.cycle.transitions.scrollDown=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var h=$cont.height();opts.cssFirst.top=0;opts.cssBefore.top=-h;opts.cssBefore.left=0;opts.animIn.top=0;opts.animOut.top=h;};$.fn.cycle.transitions.scrollLeft=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst.left=0;opts.cssBefore.left=w;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.left=0-w;};$.fn.cycle.transitions.scrollRight=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push($.fn.cycle.commonReset);var w=$cont.width();opts.cssFirst.left=0;opts.cssBefore.left=-w;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.left=w;};$.fn.cycle.transitions.scrollHorz=function($cont,$slides,opts){$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts,fwd){if(opts.rev){fwd=!fwd;}$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.left=fwd?(next.cycleW-1):(1-next.cycleW);opts.animOut.left=fwd?-curr.cycleW:curr.cycleW;});opts.cssFirst.left=0;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.top=0;};$.fn.cycle.transitions.scrollVert=function($cont,$slides,opts){$cont.css("overflow","hidden");opts.before.push(function(curr,next,opts,fwd){if(opts.rev){fwd=!fwd;}$.fn.cycle.commonReset(curr,next,opts);opts.cssBefore.top=fwd?(1-next.cycleH):(next.cycleH-1);opts.animOut.top=fwd?curr.cycleH:-curr.cycleH;});opts.cssFirst.top=0;opts.cssBefore.left=0;opts.animIn.top=0;opts.animOut.left=0;};$.fn.cycle.transitions.slideX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;});opts.cssBefore.left=0;opts.cssBefore.top=0;opts.cssBefore.width=0;opts.animIn.width="show";opts.animOut.width=0;};$.fn.cycle.transitions.slideY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$(opts.elements).not(curr).hide();$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;});opts.cssBefore.left=0;opts.cssBefore.top=0;opts.cssBefore.height=0;opts.animIn.height="show";opts.animOut.height=0;};$.fn.cycle.transitions.shuffle=function($cont,$slides,opts){var i,w=$cont.css("overflow","visible").width();$slides.css({left:0,top:0});opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);});if(!opts.speedAdjusted){opts.speed=opts.speed/2;opts.speedAdjusted=true;}opts.random=0;opts.shuffle=opts.shuffle||{left:-w,top:15};opts.els=[];for(i=0;i<$slides.length;i++){opts.els.push($slides[i]);}for(i=0;i<opts.currSlide;i++){opts.els.push(opts.els.shift());}opts.fxFn=function(curr,next,opts,cb,fwd){if(opts.rev){fwd=!fwd;}var $el=fwd?$(curr):$(next);$(next).css(opts.cssBefore);var count=opts.slideCount;$el.animate(opts.shuffle,opts.speedIn,opts.easeIn,function(){var hops=$.fn.cycle.hopsFromLast(opts,fwd);for(var k=0;k<hops;k++){fwd?opts.els.push(opts.els.shift()):opts.els.unshift(opts.els.pop());}if(fwd){for(var i=0,len=opts.els.length;i<len;i++){$(opts.els[i]).css("z-index",len-i+count);}}else{var z=$(curr).css("z-index");$el.css("z-index",parseInt(z)+1+count);}$el.animate({left:0,top:0},opts.speedOut,opts.easeOut,function(){$(fwd?this:curr).hide();if(cb){cb();}});});};$.extend(opts.cssBefore,{display:"block",opacity:1,top:0,left:0});};$.fn.cycle.transitions.turnUp=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=next.cycleH;opts.animIn.height=next.cycleH;opts.animOut.width=next.cycleW;});opts.cssFirst.top=0;opts.cssBefore.left=0;opts.cssBefore.height=0;opts.animIn.top=0;opts.animOut.height=0;};$.fn.cycle.transitions.turnDown=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssFirst.top=0;opts.cssBefore.left=0;opts.cssBefore.top=0;opts.cssBefore.height=0;opts.animOut.height=0;};$.fn.cycle.transitions.turnLeft=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=next.cycleW;opts.animIn.width=next.cycleW;});opts.cssBefore.top=0;opts.cssBefore.width=0;opts.animIn.left=0;opts.animOut.width=0;};$.fn.cycle.transitions.turnRight=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});$.extend(opts.cssBefore,{top:0,left:0,width:0});opts.animIn.left=0;opts.animOut.width=0;};$.fn.cycle.transitions.zoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false,true);opts.cssBefore.top=next.cycleH/2;opts.cssBefore.left=next.cycleW/2;$.extend(opts.animIn,{top:0,left:0,width:next.cycleW,height:next.cycleH});$.extend(opts.animOut,{width:0,height:0,top:curr.cycleH/2,left:curr.cycleW/2});});opts.cssFirst.top=0;opts.cssFirst.left=0;opts.cssBefore.width=0;opts.cssBefore.height=0;};$.fn.cycle.transitions.fadeZoom=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,false);opts.cssBefore.left=next.cycleW/2;opts.cssBefore.top=next.cycleH/2;$.extend(opts.animIn,{top:0,left:0,width:next.cycleW,height:next.cycleH});});opts.cssBefore.width=0;opts.cssBefore.height=0;opts.animOut.opacity=0;};$.fn.cycle.transitions.blindX=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.width=next.cycleW;opts.animOut.left=curr.cycleW;});opts.cssBefore.left=w;opts.cssBefore.top=0;opts.animIn.left=0;opts.animOut.left=w;};$.fn.cycle.transitions.blindY=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore.top=h;opts.cssBefore.left=0;opts.animIn.top=0;opts.animOut.top=h;};$.fn.cycle.transitions.blindZ=function($cont,$slides,opts){var h=$cont.css("overflow","hidden").height();var w=$cont.width();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH;});opts.cssBefore.top=h;opts.cssBefore.left=w;opts.animIn.top=0;opts.animIn.left=0;opts.animOut.top=h;opts.animOut.left=w;};$.fn.cycle.transitions.growX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true);opts.cssBefore.left=this.cycleW/2;opts.animIn.left=0;opts.animIn.width=this.cycleW;opts.animOut.left=0;});opts.cssBefore.top=0;opts.cssBefore.width=0;};$.fn.cycle.transitions.growY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false);opts.cssBefore.top=this.cycleH/2;opts.animIn.top=0;opts.animIn.height=this.cycleH;opts.animOut.top=0;});opts.cssBefore.height=0;opts.cssBefore.left=0;};$.fn.cycle.transitions.curtainX=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,false,true,true);opts.cssBefore.left=next.cycleW/2;opts.animIn.left=0;opts.animIn.width=this.cycleW;opts.animOut.left=curr.cycleW/2;opts.animOut.width=0;});opts.cssBefore.top=0;opts.cssBefore.width=0;};$.fn.cycle.transitions.curtainY=function($cont,$slides,opts){opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,false,true);opts.cssBefore.top=next.cycleH/2;opts.animIn.top=0;opts.animIn.height=next.cycleH;opts.animOut.top=curr.cycleH/2;opts.animOut.height=0;});opts.cssBefore.height=0;opts.cssBefore.left=0;};$.fn.cycle.transitions.cover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts);if(d=="right"){opts.cssBefore.left=-w;}else{if(d=="up"){opts.cssBefore.top=h;}else{if(d=="down"){opts.cssBefore.top=-h;}else{opts.cssBefore.left=w;}}}});opts.animIn.left=0;opts.animIn.top=0;opts.cssBefore.top=0;opts.cssBefore.left=0;};$.fn.cycle.transitions.uncover=function($cont,$slides,opts){var d=opts.direction||"left";var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(d=="right"){opts.animOut.left=w;}else{if(d=="up"){opts.animOut.top=-h;}else{if(d=="down"){opts.animOut.top=h;}else{opts.animOut.left=-w;}}}});opts.animIn.left=0;opts.animIn.top=0;opts.cssBefore.top=0;opts.cssBefore.left=0;};$.fn.cycle.transitions.toss=function($cont,$slides,opts){var w=$cont.css("overflow","visible").width();var h=$cont.height();opts.before.push(function(curr,next,opts){$.fn.cycle.commonReset(curr,next,opts,true,true,true);if(!opts.animOut.left&&!opts.animOut.top){$.extend(opts.animOut,{left:w*2,top:-h/2,opacity:0});}else{opts.animOut.opacity=0;}});opts.cssBefore.left=0;opts.cssBefore.top=0;opts.animIn.left=0;};$.fn.cycle.transitions.wipe=function($cont,$slides,opts){var w=$cont.css("overflow","hidden").width();var h=$cont.height();opts.cssBefore=opts.cssBefore||{};var clip;if(opts.clip){if(/l2r/.test(opts.clip)){clip="rect(0px 0px "+h+"px 0px)";}else{if(/r2l/.test(opts.clip)){clip="rect(0px "+w+"px "+h+"px "+w+"px)";}else{if(/t2b/.test(opts.clip)){clip="rect(0px "+w+"px 0px 0px)";}else{if(/b2t/.test(opts.clip)){clip="rect("+h+"px "+w+"px "+h+"px 0px)";}else{if(/zoom/.test(opts.clip)){var top=parseInt(h/2);var left=parseInt(w/2);clip="rect("+top+"px "+left+"px "+top+"px "+left+"px)";}}}}}}opts.cssBefore.clip=opts.cssBefore.clip||clip||"rect(0px 0px 0px 0px)";var d=opts.cssBefore.clip.match(/(\d+)/g);var t=parseInt(d[0]),r=parseInt(d[1]),b=parseInt(d[2]),l=parseInt(d[3]);opts.before.push(function(curr,next,opts){if(curr==next){return;}var $curr=$(curr),$next=$(next);$.fn.cycle.commonReset(curr,next,opts,true,true,false);opts.cssAfter.display="block";var step=1,count=parseInt((opts.speedIn/13))-1;(function f(){var tt=t?t-parseInt(step*(t/count)):0;var ll=l?l-parseInt(step*(l/count)):0;var bb=b<h?b+parseInt(step*((h-b)/count||1)):h;var rr=r<w?r+parseInt(step*((w-r)/count||1)):w;$next.css({clip:"rect("+tt+"px "+rr+"px "+bb+"px "+ll+"px)"});(step++<=count)?setTimeout(f,13):$curr.css("display","none");})();});$.extend(opts.cssBefore,{display:"block",opacity:1,top:0,left:0});opts.animIn={left:0};opts.animOut={left:0};};})(jQuery);

$(document).ready(function() {	
	var bg_border_style = $('#stacks_in_5411_page0').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_5411_page0').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_5411_page0').css('border-top-width');
		var bg_border_right = $('#stacks_in_5411_page0').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_5411_page0').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_5411_page0').css('border-left-width');
		$('#stacks_in_5411_page0').css({'border-width':0});	
		$('#stacks_in_5411_page0 .cycler_reel').css({'border-style':bg_border_style,
									'border-color':bg_border_color,
									'border-top-width':bg_border_top,
									'border-right-width':bg_border_right,
									'border-bottom-width':bg_border_bottom,	
									'border-left-width':bg_border_left
		});	
	}
	
	var custom_nav_normal = $("#nav_normal_stacks_in_5411_page0 img").attr("src");
	var custom_nav_active = $("#nav_active_stacks_in_5411_page0 img").attr("src");
    var custom_nav_hover  = $("#nav_hover_stacks_in_5411_page0 img").attr("src");
	
	// invoked after transition
	updateNavigation = function(pager, currSlide, clsName) {
		$(pager).each(function() {
			$(this).children().removeClass(clsName).eq(currSlide).addClass(clsName);
		});	
		var custom_nav_normal = $("#nav_normal_stacks_in_5411_page0 img").attr("src");
		if (custom_nav_normal) { 
	    	var custom_nav_active = $("#nav_active_stacks_in_5411_page0 img").attr("src");
		    $("#stacks_in_5411_page0 .nav_bullet a").css('background-image','url(' + custom_nav_normal + ')');
		    $("#stacks_in_5411_page0 .nav_bullet a.activeSlide").css('background-image','url(' + custom_nav_active + ')');
		}
	};
	
	$('#stacks_in_5411_page0 .cycler_reel').cycle({
				fx:	           'scrollLeft', // name of transition effect (or comma separated names, ex: 'fade,scrollUp,shuffle')
				timeout:	   7825,  // milliseconds between slide transitions (0 to disable auto advance)
				timeoutFn:     null,  // callback for determining per-slide timeout value:  function(currSlideElement, nextSlideElement, options, forwardFlag)
				continuous:	   0,	  // true to start next transition immediately after current one completes
				speed:		   1055,  // speed of the transition (any valid fx speed value)
				speedIn:	   null,  // speed of the 'in' transition
				speedOut:	   null,  // speed of the 'out' transition
				next:		   '#stacks_in_5411_page0 .next_pager',  // selector for element to use as event trigger for next slide
				prev:		   '#stacks_in_5411_page0 .prev_pager',  // selector for element to use as event trigger for previous slide
				onPrevNextEvent: null,  // callback fn for prev/next events: function(isNext, zeroBasedSlideIndex, slideElement)
				prevNextEvent:'click.cycle',// event which drives the manual transition to the previous or next slide
				pager:		   '#cycler_nav_bottom_stacks_in_5411_page0',  // selector for element to use as pager container
				onPagerEvent:  null,  // callback fn for pager events: function(zeroBasedSlideIndex, slideElement)
				pagerEvent:	  'click.cycle', // name of event which drives the pager navigation
				allowPagerClickBubble: false, // allows or prevents click event on pager anchors from bubbling
				pagerAnchorBuilder: null, // callback fn for building anchor links:  function(index, DOMelement)
				before:		   null,  // transition callback (scope set to element to be shown):	 function(currSlideElement, nextSlideElement, options, forwardFlag)
				after:		   null,  // transition callback (scope set to element that was shown):  function(currSlideElement, nextSlideElement, options, forwardFlag)
				end:		   null,  // callback invoked when the slideshow terminates (use with autostop or nowrap options): function(options)
				easing:		   null,  // easing method for both in and out transitions
				easeIn:		   null,  // easing for "in" transition
				easeOut:	   null,  // easing for "out" transition
				shuffle:	   null,  // coords for shuffle animation, ex: { top:15, left: 200 }
				animIn:		   null,  // properties that define how the slide animates in
				animOut:	   null,  // properties that define how the slide animates out
				cssBefore:	   null,  // properties that define the initial state of the slide before transitioning in
				cssAfter:	   null,  // properties that defined the state of the slide after transitioning out
				fxFn:		   null,  // function used to control the transition: function(currSlideElement, nextSlideElement, options, afterCalback, forwardFlag)
				height:		  '260', // container height
				startingSlide: 0,	  // zero-based index of the first slide to be displayed
				sync:		   1,	  // true if in/out transitions should occur simultaneously
				random:		   1,	  // true for random, false for sequence (not applicable to shuffle fx)
				fit:		   0,	  // force slides to fit container
				containerResize: 1,	  // resize container to fit largest slide
				pause:		   1,	  // true to enable "pause on hover"
				pauseOnPagerHover: true, // true to pause when hovering over pager link
				autostop:	   0,	  // true to end slideshow after X transitions (where X == slide count)
				autostopCount: 0,	  // number of transitions (optionally used with autostop to define X)
				delay:		   0,	  // additional delay (in ms) for first transition (hint: can be negative)
				slideExpr:	   null,  // expression for selecting slides (if something other than all children is required)
				cleartype:	   !$.support.opacity,  // true if clearType corrections should be applied (for IE)
				cleartypeNoBg: true, // set to true to disable extra cleartype fixing (leave false to force background color setting on slides)
				nowrap:		   0,	  // true to prevent slideshow from wrapping
				fastOnEvent:   0,	  // force fast transitions when triggered manually (via pager or prev/next); value == time in ms
				randomizeEffects: 1,  // valid when multiple effects are used; true to make the effect sequence random
				rev:		   true,	 // causes animations to transition in reverse
				manualTrump:   true,  // causes manual transition to stop an active transition instead of being ignored
				requeueOnImageNotLoaded: true, // requeue the slideshow if any image slides are not yet loaded
				requeueTimeout: 250,  // ms delay for requeue
				activePagerClass: 'activeSlide', // class name used for the active pager link
				updateActivePagerLink: updateNavigation, // callback fn invoked to update the active pager link (adds/removes activePagerClass style)
				backwards:     false  // true to start slideshow at last slide and move backwards through the stack
	});
	
	var custom_nav_next = $("#nav_next_stacks_in_5411_page0 img").attr("src");
	if (custom_nav_next) { 
	    $("#stacks_in_5411_page0 .next_pager").height($("#nav_next_stacks_in_5411_page0 img").height());
	    $("#stacks_in_5411_page0 .next_pager").width($("#nav_next_stacks_in_5411_page0 img").width());
	    $("#stacks_in_5411_page0 .next_pager").css('background-image','url(' + custom_nav_next + ')');
	}
	var custom_nav_prev = $("#nav_prev_stacks_in_5411_page0 img").attr("src");
	if (custom_nav_prev) { 
	    $("#stacks_in_5411_page0 .prev_pager").height($("#nav_prev_stacks_in_5411_page0 img").height());
	    $("#stacks_in_5411_page0 .prev_pager").width($("#nav_prev_stacks_in_5411_page0 img").width());
	    $("#stacks_in_5411_page0 .prev_pager").css('background-image','url(' + custom_nav_prev + ')');
	}
	
	var custom_nav_normal = $("#nav_normal_stacks_in_5411_page0 img").attr("src");
	if (custom_nav_normal) { 
    	var custom_nav_height = $("#nav_normal_stacks_in_5411_page0 img").height();
    	var custom_nav_width  = $("#nav_normal_stacks_in_5411_page0 img").width();
	    $("#stacks_in_5411_page0 .nav_bullet").height(custom_nav_height);
	    $("#stacks_in_5411_page0 .nav_bullet a").height(custom_nav_height);
	    $("#stacks_in_5411_page0 .nav_bullet a").width(custom_nav_width);

    	var custom_nav_active = $("#nav_active_stacks_in_5411_page0 img").attr("src");
    	var custom_nav_hover  = $("#nav_hover_stacks_in_5411_page0 img").attr("src");
	    $("#stacks_in_5411_page0 .nav_bullet a").css('background-image','url(' + custom_nav_normal + ')');
	    $("#stacks_in_5411_page0 .nav_bullet a.activeSlide").css('background-image','url(' + custom_nav_active + ')');
	    
        if (custom_nav_hover) { 
            $("#stacks_in_5411_page0 .nav_bullet a").hover( function () {
				if ($(this).attr('class') != 'activeSlide') {
	            	$(this).css('background-image','url(' + custom_nav_hover + ')');
				}
            }, function () {
				if ($(this).attr('class') != 'activeSlide') {
	        	    $(this).css('background-image','url(' + custom_nav_normal + ')');
				}
            });
        }
	}
		
});
//-- End Cycler Image Stack --//

	return stack;
})(stacks.stacks_in_5411_page0);


// Javascript for stacks_in_5248_page0
// ---------------------------------------------------------------------

// Each stack has its own object with its own namespace.  The name of
// that object is the same as the stack's id.
stacks.stacks_in_5248_page0 = {};

// A closure is defined and assigned to the stack's object.  The object
// is also passed in as 'stack' which gives you a shorthand for referring
// to this object from elsewhere.
stacks.stacks_in_5248_page0 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	

//-- Expose Stack v1.1.0 by Joe Workman --//
/* jQuery Tools Overlay 1.2.5 - The missing UI library for the Web */
(function(a){function t(d,b){var c=this,j=d.add(c),o=a(window),k,f,m,g=a.tools.expose&&(b.mask||b.expose),n=Math.random().toString().slice(10);if(g){if(typeof g=="string")g={color:g};g.closeOnClick=g.closeOnEsc=false}var p=b.target||d.attr("rel");f=p?a(p):d;if(!f.length)throw"Could not find Overlay: "+p;d&&d.index(f)==-1&&d.click(function(e){c.load(e);return e.preventDefault()});a.extend(c,{load:function(e){if(c.isOpened())return c;var h=q[b.effect];if(!h)throw'Overlay: cannot find effect : "'+b.effect+
'"';b.oneInstance&&a.each(s,function(){this.close(e)});e=e||a.Event();e.type="onBeforeLoad";j.trigger(e);if(e.isDefaultPrevented())return c;m=true;g&&a(f).expose(g);var i=b.top,r=b.left,u=f.outerWidth({margin:true}),v=f.outerHeight({margin:true});if(typeof i=="string")i=i=="center"?Math.max((o.height()-v)/2,0):parseInt(i,10)/100*o.height();if(r=="center")r=Math.max((o.width()-u)/2,0);h[0].call(c,{top:i,left:r},function(){if(m){e.type="onLoad";j.trigger(e)}});g&&b.closeOnClick&&a.mask.getMask().one("click",
c.close);b.closeOnClick&&a(document).bind("click."+n,function(l){a(l.target).parents(f).length||c.close(l)});b.closeOnEsc&&a(document).bind("keydown."+n,function(l){l.keyCode==27&&c.close(l)});return c},close:function(e){if(!c.isOpened())return c;e=e||a.Event();e.type="onBeforeClose";j.trigger(e);if(!e.isDefaultPrevented()){m=false;q[b.effect][1].call(c,function(){e.type="onClose";j.trigger(e)});a(document).unbind("click."+n).unbind("keydown."+n);g&&a.mask.close();return c}},getOverlay:function(){return f},
getTrigger:function(){return d},getClosers:function(){return k},isOpened:function(){return m},getConf:function(){return b}});a.each("onBeforeLoad,onStart,onLoad,onBeforeClose,onClose".split(","),function(e,h){a.isFunction(b[h])&&a(c).bind(h,b[h]);c[h]=function(i){i&&a(c).bind(h,i);return c}});k=f.find(b.close||".close");if(!k.length&&!b.close){k=a('<a class="close"></a>');f.prepend(k)}k.click(function(e){c.close(e)});b.load&&c.load()}a.tools=a.tools||{version:"1.2.5"};a.tools.overlay={addEffect:function(d,
b,c){q[d]=[b,c]},conf:{close:null,closeOnClick:true,closeOnEsc:true,closeSpeed:"fast",effect:"default",fixed:!a.browser.msie||a.browser.version>6,left:"center",load:false,mask:null,oneInstance:true,speed:"normal",target:null,top:"10%"}};var s=[],q={};a.tools.overlay.addEffect("default",function(d,b){var c=this.getConf(),j=a(window);if(!c.fixed){d.top+=j.scrollTop();d.left+=j.scrollLeft()}d.position=c.fixed?"fixed":"absolute";this.getOverlay().css(d).fadeIn(c.speed,b)},function(d){this.getOverlay().fadeOut(this.getConf().closeSpeed,
d)});a.fn.overlay=function(d){var b=this.data("overlay");if(b)return b;if(a.isFunction(d))d={onBeforeLoad:d};d=a.extend(true,{},a.tools.overlay.conf,d);this.each(function(){b=new t(a(this),d);s.push(b);a(this).data("overlay",b)});return d.api?b:this}})(jQuery);
(function(b){function k(){if(b.browser.msie){var a=b(document).height(),d=b(window).height();return[window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a-d<20?d:a]}return[b(document).width(),b(document).height()]}function h(a){if(a)return a.call(b.mask)}b.tools=b.tools||{version:"1.2.5"};var l;l=b.tools.expose={conf:{maskId:"exposeMask",loadSpeed:"slow",closeSpeed:"fast",closeOnClick:true,closeOnEsc:true,zIndex:99998,opacity:0.8,startOpacity:0,color:"#fff",onLoad:null,
onClose:null}};var c,i,e,g,j;b.mask={load:function(a,d){if(e)return this;if(typeof a=="string")a={color:a};a=a||g;g=a=b.extend(b.extend({},l.conf),a);c=b("#"+a.maskId);if(!c.length){c=b("<div/>").attr("id",a.maskId);b("body").append(c)}var m=k();c.css({position:"absolute",top:0,left:0,width:m[0],height:m[1],display:"none",opacity:a.startOpacity,zIndex:a.zIndex});a.color&&c.css("backgroundColor",a.color);if(h(a.onBeforeLoad)===false)return this;a.closeOnEsc&&b(document).bind("keydown.mask",function(f){f.keyCode==
27&&b.mask.close(f)});a.closeOnClick&&c.bind("click.mask",function(f){b.mask.close(f)});b(window).bind("resize.mask",function(){b.mask.fit()});if(d&&d.length){j=d.eq(0).css("zIndex");b.each(d,function(){var f=b(this);/relative|absolute|fixed/i.test(f.css("position"))||f.css("position","relative")});i=d.css({zIndex:Math.max(a.zIndex+1,j=="auto"?0:j)})}c.css({display:"block"}).fadeTo(a.loadSpeed,a.opacity,function(){b.mask.fit();h(a.onLoad);e="full"});e=true;return this},close:function(){if(e){if(h(g.onBeforeClose)===
false)return this;c.fadeOut(g.closeSpeed,function(){h(g.onClose);i&&i.css({zIndex:j});e=false});b(document).unbind("keydown.mask");c.unbind("click.mask");b(window).unbind("resize.mask")}return this},fit:function(){if(e){var a=k();c.css({width:a[0],height:a[1]})}},getMask:function(){return c},isLoaded:function(a){return a?e=="full":e},getConf:function(){return g},getExposed:function(){return i}};b.fn.mask=function(a){b.mask.load(a);return this};b.fn.expose=function(a){b.mask.load(a,this);return this}})(jQuery);

jQuery.fn.exists = function(){return jQuery(this).length>0;}

$(document).ready(function() {
	var bg_color = $('#stacks_in_5248_page0').css('background-color');
	if (bg_color) { 
		$('#stacks_in_5248_page0').css({'background-color': 'transparent'});	
		$('#expose_sedevent').css({'background-color': bg_color });	
	}

	var bg_border_style = $('#stacks_in_5248_page0').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color  = $('#stacks_in_5248_page0').css('border-bottom-color');
		var bg_border_top 	 = $('#stacks_in_5248_page0').css('border-top-width');
		var bg_border_right  = $('#stacks_in_5248_page0').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_5248_page0').css('border-bottom-width');
		var bg_border_left 	 = $('#stacks_in_5248_page0').css('border-left-width');
		$('#stacks_in_5248_page0').css({'border-width':0});	
		$('#expose_sedevent').css({	'border-style':bg_border_style,
							 		'border-color':bg_border_color,
									'border-top-width':bg_border_top,
									'border-right-width':bg_border_right,
									'border-bottom-width':bg_border_bottom,	
									'border-left-width':bg_border_left
		});	
	}
	var custom_bg_src = $("#custom_bg_stacks_in_5248_page0 img").attr("src");
	if (custom_bg_src) { 
	    $("#expose_sedevent").css({'background-image':'url(' + custom_bg_src + ')'});
	    var repeat_x = true;
	    var repeat_y = true;
	    
	    if (repeat_x && repeat_y) {
		    var bg_repeat = 'repeat';
	    }
	    else if (repeat_y) {
		    var bg_repeat = 'repeat-y';
	    }
	    else {
		    var bg_repeat = 'repeat-x';
	    }
	    $("#expose_sedevent").css({'background-repeat':bg_repeat});
	}

	// Need to append this to body to fix issues with some themes hiding it behind overlay
	$('#expose_sedevent').appendTo('body');

    // Build the Expose Lightbox
    $(".expose_sedevent").overlay({	
    		mask: {color:'#000000', zIndex:999998, opacity:0.7},
			target:'#expose_sedevent',
			closeOnClick: false,
			closeOnEsc: true,
			effect:	'default',
			load: false,
			fixed: true,
			oneInstance: false,
			left: 'center',
			top: 'center',
			onLoad: function() {
				if ( $('#expose_sedevent iframe.vimeo_player').exists()) {
				    var player = $f($('#expose_sedevent .vimeo_player')[0])
				    player.api('play');
  				}
				if ( $('#expose_sedevent div.youtube_player').exists()) {
				    $('#expose_sedevent div.youtube_player').tubeplayer("play");
  				}
				if ( $('#expose_sedevent video.html5video').exists()) {
				    $('#expose_sedevent video.html5video').get(0).play();
  				}
				if ( $('#expose_sedevent audio.html5audio').exists()) {
				    $('#expose_sedevent audio.html5audio').get(0).play();
  				}
				if ( $('#expose_sedevent .html5audio object').exists()) {
				    $('#expose_sedevent .html5audio').flowplayer(0).play();
  				}
				if ( $('#expose_sedevent .html5video object').exists()) {
				    $('#expose_sedevent .html5video').flowplayer(0).play();
  				}
			},
			onClose: function() {
				if ( $('#expose_sedevent iframe.vimeo_player').exists()) {
				    var player = $f($('#expose_sedevent .vimeo_player')[0])
				    player.api('pause');
  				}
				if ( $('#expose_sedevent div.youtube_player').exists()) {
				    $('#expose_sedevent div.youtube_player').tubeplayer("pause");
  				}
				if ( $('#expose_sedevent video.html5video').exists()) {
				    $('#expose_sedevent video.html5video').get(0).pause();
  				}
				if ( $('#expose_sedevent audio.html5audio').exists()) {
				    $('#expose_sedevent audio.html5audio').get(0).pause();
  				}
				if ( $('#expose_sedevent .html5audio object').exists()) {
				    $('#expose_sedevent .html5audio').flowplayer(0).pause();
  				}
				if ( $('#expose_sedevent .html5video object').exists()) {
				    $('#expose_sedevent .html5video').flowplayer(0).pause();
  				}
			}
    });    
});
//-- End Expose Stack --//

	return stack;
})(stacks.stacks_in_5248_page0);


// Javascript for stacks_in_5408_page0
// ---------------------------------------------------------------------

// Each stack has its own object with its own namespace.  The name of
// that object is the same as the stack's id.
stacks.stacks_in_5408_page0 = {};

// A closure is defined and assigned to the stack's object.  The object
// is also passed in as 'stack' which gives you a shorthand for referring
// to this object from elsewhere.
stacks.stacks_in_5408_page0 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	

//-- YouTube HTML5 v1.7.0 by Joe Workman --//
/* jQuery YouTube 1.0.3 - https://github.com/nirvanatikku/jQuery-TubePlayer-Plugin */
(function(g){var d={};d.ytplayers={};d.inits=[];d.iframeScriptInited=false;d.inited=false;g.tubeplayer={};g.tubeplayer.defaults={afterReady:function(){},stateChange:function(a){var b=this.onPlayer;return function(c){if(typeof c=="object")c=c.data;switch(c){case -1:return b.unstarted[a]();case 0:return b.ended[a]();case 1:return b.playing[a]();case 2:return b.paused[a]();case 3:return b.buffering[a]();case 5:return b.cued[a]();default:return null}}},onError:function(a){var b=this.onErr;return function(c){if(typeof c==
"object")c=c.data;switch(c){case 2:return b.invalidParameter[a]();case 100:return b.notFound[a]();case 101:case 150:return b.notEmbeddable[a]();default:return null}}},qualityChange:function(a){var b=this;return function(c){if(typeof c=="object")c=c.data;return b.onQualityChange[a](c)}},onQualityChange:{},onPlayer:{unstarted:{},ended:{},playing:{},paused:{},buffering:{},cued:{}},onErr:{notFound:{},notEmbeddable:{},invalidParameter:{}}};var j={width:425,height:355,allowFullScreen:"true",initialVideo:"DkoeNLuMbcI",
start:0,preferredQuality:"default",showControls:true,showRelated:false,autoPlay:false,autoHide:true,theme:"dark",color:"red",showinfo:false,modestbranding:true,wmode:"transparent",swfobjectURL:"http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js",loadSWFObject:true,allowScriptAccess:"always",playerID:"tubeplayer-player-container",iframed:true,onPlay:function(){},onPause:function(){},onStop:function(){},onSeek:function(){},onMute:function(){},onUnMute:function(){},onPlayerUnstarted:function(){},
onPlayerEnded:function(){},onPlayerPlaying:function(){},onPlayerPaused:function(){},onPlayerBuffering:function(){},onPlayerCued:function(){},onQualityChange:function(){},onErrorNotFound:function(){},onErrorNotEmbeddable:function(){},onErrorInvalidParameter:function(){}};g.fn.tubeplayer=function(a,b){var c=g(this),f=typeof a;if(arguments.length==0||f=="object")return c.each(function(){d.init(g(this),a)});else if(f=="string")return c.triggerHandler(a+".tubeplayer",b||null)};var h=function(a){return function(b,
c){var f=d.getPkg(b);if(f.ytplayer){b=a(b,c,f);if(typeof b=="undefined")b=f.$player;return b}return f.$player}};g.tubeplayer.getPlayers=function(){return d.ytplayers};d.init=function(a,b){if(a.hasClass("jquery-youtube-tubeplayer"))return a;b=g.extend({},j,b);b.playerID+=(new Date).valueOf();a.addClass("jquery-youtube-tubeplayer").data("opts.tubeplayer",b);for(e in i)a.bind(e+".tubeplayer",a,i[e]);d.initDefaults(g.tubeplayer.defaults,b);jQuery("<div></div>").attr("id",b.playerID).appendTo(a);d.initPlayer(a,
b);return a};d.getPkg=function(a){a=a.data;var b=a.data("opts.tubeplayer");return{$player:a,opts:b,ytplayer:d.ytplayers[b.playerID]}};d.iframeReady=function(a){d.inits.push(function(){new YT.Player(a.playerID,{videoId:a.initialVideo,width:a.width,height:a.height,playerVars:{autoplay:a.autoPlay?1:0,autohide:a.autoHide?1:0,controls:a.showControls?1:0,rel:a.showRelated?1:0,fs:a.allowFullScreen?1:0,wmode:a.wmode,showinfo:a.showinfo?1:0,modestbranding:a.modestbranding?1:0,start:a.start,theme:a.theme,color:a.color},
events:{onReady:function(b){d.ytplayers[a.playerID]=b.target;b=g(b.target).parents(".jquery-youtube-tubeplayer");g.tubeplayer.defaults.afterReady(b)},onPlaybackQualityChange:g.tubeplayer.defaults.qualityChange(a.playerID),onStateChange:g.tubeplayer.defaults.stateChange(a.playerID),onError:g.tubeplayer.defaults.onError(a.playerID)}})});if(d.inits.length>=1&&!d.inited)return function(){for(var b=0;b<d.inits.length;b++)d.inits[b]();d.inited=true};d.inited&&d.inits.pop()();return onYouTubePlayerAPIReady};
d.supportsHTML5=function(){return!!document.createElement("video").canPlayType};d.initDefaults=function(a,b){var c=b.playerID,f=a.onPlayer;f.unstarted[c]=b.onPlayerUnstarted;f.ended[c]=b.onPlayerEnded;f.playing[c]=b.onPlayerPlaying;f.paused[c]=b.onPlayerPaused;f.buffering[c]=b.onPlayerBuffering;f.cued[c]=b.onPlayerCued;a.onQualityChange[c]=b.onQualityChange;a=a.onErr;a.notFound[c]=b.onErrorNotFound;a.notEmbeddable[c]=b.onErrorNotEmbeddable;a.invalidParameter[c]=b.onErrorInvalidParameter};d.initPlayer=
function(a,b){b.iframed&&d.supportsHTML5()?d.initIframePlayer(a,b):d.initFlashPlayer(a,b)};d.initIframePlayer=function(a,b){if(!d.iframeScriptInited){a=document.createElement("script");a.src="http://www.youtube.com/player_api";var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(a,c);d.iframeScriptInited=true}onYouTubePlayerAPIReady=d.iframeReady(b)};d.initFlashPlayer=function(a,b){b.loadSWFObject?g.getScript(b.swfobjectURL,d.initFlashPlayerFN(b)):d.initFlashPlayerFN(b)()};d.initFlashPlayerFN=
function(a){return function(){var b=["//www.youtube.com/v/"];b.push(a.initialVideo);b.push("?fs="+(a.allowFullScreen?1:0));b.push("&enablejsapi=1&version=3");b.push("&playerapiid="+a.playerID);b.push("&rel= "+(a.showRelated?1:0));b.push("&autoplay="+(a.autoPlay?1:0));b.push("&autohide="+(a.autoHide?1:0));b.push("&controls="+(a.showControls?1:0));b.push("&showinfo="+(a.showinfo?1:0));b.push("&modestbranding="+(a.modestbranding?1:0));b.push("&start="+a.start);b.push("&theme="+a.theme);b.push("&color="+
a.color);swfobject.embedSWF(b.join(""),a.playerID,a.width,a.height,"8",null,null,{allowScriptAccess:a.allowScriptAccess,wmode:a.wmode,allowFullScreen:a.allowFullScreen},{id:a.playerID});onYouTubePlayerReady=function(c){var f=document.getElementById(c);d.ytplayers[c]=f;f.addEventListener("onStateChange","$.tubeplayer.defaults.stateChange('"+c+"')");f.addEventListener("onError","$.tubeplayer.defaults.onError('"+c+"')");f.addEventListener("onPlaybackQualityChange","$.tubeplayer.defaults.qualityChange('"+
c+"')");c=g(f).parents(".jquery-youtube-tubeplayer");g.tubeplayer.defaults.afterReady(c)}}};d.getVideoIDFromURL=function(a){var b=a.indexOf("youtube.com/watch?v=")+20,c=a.indexOf("&",b)||a.length;if(b>c)return"";return a.substring(b,c)};var i={cue:h(function(a,b,c){c.ytplayer.cueVideoById(b,c.opts.preferredQuality)}),play:h(function(a,b,c){if(typeof b=="object")c.ytplayer.loadVideoById(b.id,b.time,c.opts.preferredQuality);else b?c.ytplayer.loadVideoById(b,0,c.opts.preferredQuality):c.ytplayer.playVideo();
c.opts.onPlay(b)}),pause:h(function(a,b,c){c.ytplayer.pauseVideo();c.opts.onPause()}),stop:h(function(a,b,c){c.ytplayer.stopVideo();c.opts.onStop()}),seek:h(function(a,b,c){c.ytplayer.seekTo(b,true);c.opts.onSeek(b)}),mute:h(function(a,b,c){c.$player.attr("data-prev-mute-volume",c.ytplayer.getVolume());c.ytplayer.mute();c.opts.onMute()}),unmute:h(function(a,b,c){c.ytplayer.unMute();c.ytplayer.setVolume(c.$player.attr("data-prev-mute-volume")||50);c.opts.onUnMute()}),isMuted:h(function(a,b,c){return c.ytplayer.isMuted()}),
volume:h(function(a,b,c){if(b){c.ytplayer.setVolume(b);c.$player.attr("data-prev-mute-volume",c.ytplayer.getVolume())}else return c.ytplayer.getVolume()||0}),quality:h(function(a,b,c){if(b)c.ytplayer.setPlaybackQuality(b);else return c.ytplayer.getPlaybackQuality()}),data:h(function(a,b,c){a={};c=c.ytplayer;a.bytesLoaded=c.getVideoBytesLoaded();a.bytesTotal=c.getVideoBytesTotal();a.startBytes=c.getVideoStartBytes();a.state=c.getPlayerState();a.currentTime=c.getCurrentTime();a.availableQualityLevels=
c.getAvailableQualityLevels();a.duration=c.getDuration();a.videoURL=c.getVideoUrl();a.getVideoEmbedCode=c.getVideoEmbedCode();a.videoID=d.getVideoIDFromURL(a.videoURL);return a}),videoId:h(function(a,b,c){return d.getVideoIDFromURL(c.ytplayer.getVideoUrl())}),size:h(function(a,b,c){if(b.width&&b.height){c.ytplayer.setSize(b.width,b.height);g(c.ytplayer).css(b)}}),destroy:h(function(a,b,c){c.$player.removeClass("jquery-youtube-tubeplayer").data("opts.tubeplayer",null).unbind(".tubeplayer").html("");
delete d.ytplayers[c.opts.playerID];g(c.ytplayer).remove();return null}),player:h(function(a,b,c){return c.ytplayer})}})(jQuery);

$(document).ready(function() {
	$("#youtube_stacks_in_5408_page0").tubeplayer({
		width: 853, // the width of the player
		height: 480, // the height of the player
		allowFullScreen: true, 
		initialVideo: "PcAs6sTL6EQ", 
		preferredQuality: "large",// preferred quality: default, small, medium, large, hd720
		showControls: true,
		showRelated: false,
		autoPlay: false,
		autoHide: true,
		theme: 'dark', // 'dark' or 'light'
		color: 'red', // 'red' or 'white'
		showinfo: false,
		modestbranding: false,
		wmode: 'transparent' // use 'window' when optimizing for mobile devices
	});
});
//-- End YouTube HTML5 Stack --//

	return stack;
})(stacks.stacks_in_5408_page0);



