
// '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_68_page11
// ---------------------------------------------------------------------

// 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_68_page11 = {};

// 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_68_page11 = (function(stack) {

jQuery(document).ready(function($){
	$('#nav ul li').hover(
		function(){
			$('ul:first',this).show();
		},
		function(){
			$('ul:first',this).hide();
		}
	);
});
	return stack;
})(stacks.stacks_in_68_page11);


// Javascript for stacks_in_71_page11
// ---------------------------------------------------------------------

// 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_71_page11 = {};

// 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_71_page11 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	

/*
FX Slider Stack 1.0.1 - 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. 
 *
*/

/*
 Dual licensed under the MIT or GPL Version 2 licenses
 @example http://thiagosf.net/projects/jquery/skitter/
*/

var img=new Image;img.src="rw_common/plugins/stacks/fxslider/ajax-loader.gif";jQuery.easing.jswing=jQuery.easing.swing;
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(c,a,d,b,e){return jQuery.easing[jQuery.easing.def](c,a,d,b,e)},easeInQuad:function(c,a,d,b,e){return b*(a/=e)*a+d},easeOutQuad:function(c,a,d,b,e){return-b*(a/=e)*(a-2)+d},easeInOutQuad:function(c,a,d,b,e){return(a/=e/2)<1?b/2*a*a+d:-b/2*(--a*(a-2)-1)+d},easeInCubic:function(c,a,d,b,e){return b*(a/=e)*a*a+d},easeOutCubic:function(c,a,d,b,e){return b*((a=a/e-1)*a*a+1)+d},easeInOutCubic:function(c,a,d,b,e){return(a/=e/2)<1?b/2*a*a*a+d:b/
2*((a-=2)*a*a+2)+d},easeInQuart:function(c,a,d,b,e){return b*(a/=e)*a*a*a+d},easeOutQuart:function(c,a,d,b,e){return-b*((a=a/e-1)*a*a*a-1)+d},easeInOutQuart:function(c,a,d,b,e){return(a/=e/2)<1?b/2*a*a*a*a+d:-b/2*((a-=2)*a*a*a-2)+d},easeInQuint:function(c,a,d,b,e){return b*(a/=e)*a*a*a*a+d},easeOutQuint:function(c,a,d,b,e){return b*((a=a/e-1)*a*a*a*a+1)+d},easeInOutQuint:function(c,a,d,b,e){return(a/=e/2)<1?b/2*a*a*a*a*a+d:b/2*((a-=2)*a*a*a*a+2)+d},easeInSine:function(c,a,d,b,e){return-b*Math.cos(a/
e*(Math.PI/2))+b+d},easeOutSine:function(c,a,d,b,e){return b*Math.sin(a/e*(Math.PI/2))+d},easeInOutSine:function(c,a,d,b,e){return-b/2*(Math.cos(Math.PI*a/e)-1)+d},easeInExpo:function(c,a,d,b,e){return a==0?d:b*Math.pow(2,10*(a/e-1))+d},easeOutExpo:function(c,a,d,b,e){return a==e?d+b:b*(-Math.pow(2,-10*a/e)+1)+d},easeInOutExpo:function(c,a,d,b,e){return a==0?d:a==e?d+b:(a/=e/2)<1?b/2*Math.pow(2,10*(a-1))+d:b/2*(-Math.pow(2,-10*--a)+2)+d},easeInCirc:function(c,a,d,b,e){return-b*(Math.sqrt(1-(a/=e)*
a)-1)+d},easeOutCirc:function(c,a,d,b,e){return b*Math.sqrt(1-(a=a/e-1)*a)+d},easeInOutCirc:function(c,a,d,b,e){return(a/=e/2)<1?-b/2*(Math.sqrt(1-a*a)-1)+d:b/2*(Math.sqrt(1-(a-=2)*a)+1)+d},easeInElastic:function(c,a,d,b,e){var c=1.70158,f=0,m=b;if(a==0)return d;if((a/=e)==1)return d+b;f||(f=e*0.3);m<Math.abs(b)?(m=b,c=f/4):c=f/(2*Math.PI)*Math.asin(b/m);return-(m*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/f))+d},easeOutElastic:function(c,a,d,b,e){var c=1.70158,f=0,m=b;if(a==0)return d;if((a/=
e)==1)return d+b;f||(f=e*0.3);m<Math.abs(b)?(m=b,c=f/4):c=f/(2*Math.PI)*Math.asin(b/m);return m*Math.pow(2,-10*a)*Math.sin((a*e-c)*2*Math.PI/f)+b+d},easeInOutElastic:function(c,a,d,b,e){var c=1.70158,f=0,m=b;if(a==0)return d;if((a/=e/2)==2)return d+b;f||(f=e*0.3*1.5);m<Math.abs(b)?(m=b,c=f/4):c=f/(2*Math.PI)*Math.asin(b/m);return a<1?-0.5*m*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/f)+d:m*Math.pow(2,-10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/f)*0.5+b+d},easeInBack:function(c,a,d,b,e,f){f==void 0&&
(f=1.70158);return b*(a/=e)*a*((f+1)*a-f)+d},easeOutBack:function(c,a,d,b,e,f){f==void 0&&(f=1.70158);return b*((a=a/e-1)*a*((f+1)*a+f)+1)+d},easeInOutBack:function(c,a,d,b,e,f){f==void 0&&(f=1.70158);return(a/=e/2)<1?b/2*a*a*(((f*=1.525)+1)*a-f)+d:b/2*((a-=2)*a*(((f*=1.525)+1)*a+f)+2)+d},easeInBounce:function(c,a,d,b,e){return b-jQuery.easing.easeOutBounce(c,e-a,0,b,e)+d},easeOutBounce:function(c,a,d,b,e){return(a/=e)<1/2.75?b*7.5625*a*a+d:a<2/2.75?b*(7.5625*(a-=1.5/2.75)*a+0.75)+d:a<2.5/2.75?b*
(7.5625*(a-=2.25/2.75)*a+0.9375)+d:b*(7.5625*(a-=2.625/2.75)*a+0.984375)+d},easeInOutBounce:function(c,a,d,b,e){return a<e/2?jQuery.easing.easeInBounce(c,a*2,0,b,e)*0.5+d:jQuery.easing.easeOutBounce(c,a*2-e,0,b,e)*0.5+b*0.5+d}});
Utils=function(){return{wait:function(c){var c=$.extend({until:function(){return false},success:function(){},error:function(){Galleria.raise("Could not complete wait function.")},timeout:3E3},c),a=Utils.timestamp(),d,b,e=function(){b=Utils.timestamp();d=b-a;if(c.until(d))return c.success(),false;if(b>=a+c.timeout)return c.error(),false;window.setTimeout(e,10)};window.setTimeout(e,10)},timestamp:function(){return(new Date).getTime()},toggleQuality:function(c,a){if(!(IE!==7&&IE!==8)&&c)typeof a==="undefined"&&
(a=c.style.msInterpolationMode==="nearest-neighbor"),c.style.msInterpolationMode=a?"bicubic":"nearest-neighbor"}}}();
(function(c){var a=0,d=[];c.fn.skitter=function(h){return this.each(function(){c(this).data("skitter_number",a);d.push(new e(this,h,a));++a})};var b={v:1,i:2500,a:"",nr:true,n:true,lb:true,b:null,ti:null,il:null,ia:null,lia:null,laa:null,w:null,h:null,ii:1,ian:false,ih:false,ria:null,sr:false,th:false,aou:{backgroundColor:"#333",color:"#fff"},ao:{backgroundColor:"#000",color:"#fff"},aa:{backgroundColor:"#cc3333",color:"#fff"},ht:false,f:false,x:false,d:false,wl:null,o:0.75,iie:300,ioe:500,l:null,
is:null,mnh:20,ls:true,fl:1,ahl:true,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(h,a,o){this.b=c(h);this.timer=null;this.s=c.extend({},b,a||{});this.number_skitter=o;this.ca=0;this.oc=this.at=false;this.setup()};var e=c.skitter;e.fn=e.prototype=
{};e.fn.extend=c.extend;e.fn.extend({setup:function(){var h=this;this.at=this.s.a.replace(/,/g," ").split(/\s+/);if(this.at.length<=1)this.at=false;this.b.append(this.s.s);if(this.s.v>=2)this.s.v=1.3;if(this.s.v<=0)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 a=h.b.find(".skitter_size_info:first"),o=h.b.find("img:first");if(a.length)this.s.w=a.data("width")||a.attr("data-width"),this.s.h=a.data("height")||a.attr("data-height");else if(o.length){if(this.s.w=o.attr("width"),this.s.h=o.attr("height"),!this.s.w||!this.s.h){a=false;o=o.parent().html();if(a=o.match(/width\s*=\s*["']?([0-9]+)/))this.s.w=a[1];if(a=o.match(/height\s*=\s*["']?([0-9]+)/))this.s.h=a[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(this.s.w==0||this.s.h==0)this.s.w=800,this.s.h=300;this.b.width(this.s.w+this.s.bw*2).height(this.s.h+this.s.bw*2);this.b.find(".container_skitter").width(this.s.w).height(this.s.h);this.s.bw&&this.b.find(".border_skitter").css("border","1px solid #333333");this.s.sbr&&this.b.css({"margin-bottom":this.s.sbr+5+"px","margin-top":this.s.sbr+5+"px"});o=this.s.wl?this.s.wl:this.s.w;this.b.find(".label_skitter").width(o);
var o=" image_number_select",k=0;this.s.il=[];this.s.x?c.ajax({type:"GET",url:this.s.x,async:false,dataType:"xml",success:function(a){c("<ul></ul>");c(a).find("skitter slide").each(function(){++k;var a=c(this).find("link").text()?c(this).find("link").text():"#",o=c(this).find("image").text(),g=c(this).find("image").attr("type"),b=c(this).find("label").text();h.s.il.push([o,a,g,b])})}}):this.s.json||this.b.find("ul li").each(function(){++k;var a=c(this).find("a").length?c(this).find("a").attr("href"):
"#",o=c(this).find("img").attr("src"),g=c(this).find("img").attr("alt");g&&g.match(/Stacks Image [0-9+]/i)&&(g="");typeof o!="undefined"&&h.s.il.push([o,a,"",g])});if(this.s.il.length>1){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?(a="",a=this.s.w>this.s.h?'height="100"':'width="100"',this.b.find(".info_slide").append('<span class="image_number'+o+'" rel="'+i+'" id="image_n_'+(i+1)+"_"+this.number_skitter+'"><img src="'+this.s.il[i][0]+
'" '+a+" /></span> ")):this.b.find(".info_slide").append('<span class="image_number'+o+'" rel="'+i+'" id="image_n_'+(i+1)+"_"+this.number_skitter+'">'+(i+1)+"</span> "),o=""}if(h.s.th){h.s.aou={opacity:0.5,width:"70px"};h.s.ao={opacity:1,width:"70px"};h.s.aa={opacity:1,width:"70px"};h.b.find(".info_slide").addClass("info_slide_thumb");o=k*55+75;h.b.find(".info_slide_thumb").width(o);h.b.css({height:h.b.height()+h.b.find(".info_slide").height()+5});h.s.lb=false;h.s.nl=="top"?h.b.find(".border_skitter").prepend('<div class="container_thumbs"></div>'):
(h.s.nl="bottom",h.b.find(".border_skitter").append('<div class="container_thumbs"></div>'));a=h.b.find(".info_slide").clone();h.b.find(".info_slide").remove();h.b.find(".container_thumbs").width(h.s.w).height(50).append(a);var b=0,u=this.s.w,j=this.s.h,g=0,d=h.b.find(".info_slide_thumb"),e=h.b.offset().left,n=h.b.offset().top;d.find(".image_number").each(function(){b+=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(b+"px");g=d.width();width_valor=this.s.w;width_valor=u-100;e+=90;o>h.s.w&&h.b.mousemove(function(a){var c=a.pageX,a=a.pageY,k=0;c-=e;a-=n;novo_width=g-width_valor;k=-(novo_width*c/width_valor);k>0&&(k=0);k<-(g-u-5)&&(k=-(g-u-5));(h.s.nl=="bottom"&&a>j||h.s.nl=="top"&&a<50)&&d.css({left:k})});h.b.find(".scroll_thumbs").css({left:10});o<h.s.w&&(h.b.find(".info_slide").width(h.s.w),h.b.find(".box_scroll_thumbs").hide())}else if(h.s.d||h.s.nr){o={};h.s.d?(a=Math.round(h.s.ds*1.8),a<15?a=15:a>
50&&(a=45)):a=30;if(h.s.nl=="top")o.top="-"+a+"px",o.bottom="auto",(!this.s.sbr||this.s.sbr<a)&&h.b.css("margin-top",a+"px");else if(h.s.nl=="bottom")o.bottom="-"+a+"px",o.top="auto",(!this.s.sbr||this.s.sbr<a)&&h.b.css("margin-bottom",a+"px");a=h.b.find(".info_slide");if(h.s.d)a.addClass("info_slide_dots").removeClass("info_slide");else if(h.s.nl=="top"||h.s.nl=="bottom")a.addClass("info_slide_numbers"),a.height()>h.s.mnh&&a.hide();h.s.nl=="top"||h.s.nl=="bottom"?o.left=(h.s.w+this.s.bw*2-a.width())/
2:(o.top=15+this.s.bw,o.left=15+this.s.bw);a.css(o)}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.il.length>1&&(this.b.find(".prev_button").click(function(){var a=h.s.ii-2;a<0&&(a=h.s.il.length+a);h.jumpToImage(a);return false}),this.b.find(".next_button").click(function(){h.jumpToImage(h.s.ii);return false}),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(){c(this).attr("class")!="image_number image_number_select"&&c(this).css(h.s.ao)},function(){c(this).attr("class")!="image_number image_number_select"&&c(this).css(h.s.aou)}),this.b.find(".image_number").click(function(){if(c(this).attr("class")!="image_number image_number_select"){var a=c(this).attr("rel");h.jumpToImage(a)}return false}),this.b.find(".image_number").css(h.s.aou),this.b.find(".image_number:eq(0)").css(h.s.aa));this.s.ht&&this.hideTools();
this.loadImages()},loadImages:function(){var h=this;this.b.append(c('<div class="loading">Loading</div>'));var a=this.s.il.length,o=0;c.each(this.s.il,function(){var k=c('<span class="image_loading"></span>');k.css({position:"absolute",top:"-9999em"});h.b.append(k);k=new Image;c(k).load(function(){++o;o==a&&(h.b.find(".loading").remove(),h.b.find(".image_loading").remove(),h.start())}).error(function(){h.b.find(".loading, .image_loading, .image_number, .next_button, .prev_button").remove();h.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 h=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();this.s.il.length>1?this.timer=setTimeout(function(){h.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(h){this.s.ian==
false?(this.b.find(".box_clone").stop(),this.clearTimer(true),this.s.ii=Math.floor(h),this.b.find(".image a").attr({href:this.s.lia}),this.b.find(".image_main").attr({src:this.s.ia}),this.b.find(".box_clone").remove(),this.nextImage()):this.oc=h},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(",");
if(this.at&&!this.s.il[this.s.ii][2]){if(animation_type=this.at[this.ca],this.ca++,this.ca>=this.at.length)this.ca=0}else animation_type=this.s.il[this.s.ii][2]?this.s.il[this.s.ii][2]:this.s.a==""?"randomsmart":this.s.a;if(animation_type=="randomsmart"){if(!this.s.ria)animations_functions.sort(function(){return 0.5-Math.random()}),this.s.ria=animations_functions;animation_type=this.s.ria[this.s.ii]}else if(animation_type=="random"){var h=parseInt(Math.random()*animations_functions.length);animation_type=
animations_functions[h]}animation_type=animation_type.toLowerCase();h={};if(animation_type.match(/random/i))animation_type=animation_type.replace(/random/i,""),h.random=true;else{var a={blindheight:{height:true},blindwidth:{height:false,time_animate:400,delay:50},directiontop:{direction:"top"},directionbottom:{direction:"bottom"},directionright:{direction:"right",total:5},directionleft:{direction:"left",total:5}};a[animation_type]&&(h=a[animation_type],animation_type=animation_type.replace(/width|height|top|bottom|left|right/i,
""))}easing="easeOutQuad";this.s.ian=true;a="animation"+animation_type.charAt(0).toUpperCase()+animation_type.slice(1);if(this[a])this[a](h);else this.animationTube()},animationCube:function(h){var a=this;easing="easeOutBack";var c=700/this.s.v;this.setActualLevel();var k=Math.ceil(this.s.w/(this.s.w/8)),b=Math.ceil(this.s.h/(this.s.h/3)),u=k*b,k=Math.ceil(this.s.w/k),j=Math.ceil(this.s.h/b),g=init_left=this.s.h+200,d=0,e=0;for(i=0;i<u;i++){var n=this.getBoxClone();n.hide();var f={left:this.s.w/2,
top:this.s.h+50,width:k,height:j};if(h.random)f.left=(i%2==0?init_left:-init_left)+k*e+e*50+"px",f.top=(i%2==0?g:-g)+j*d+d*50+"px";n.css(f);n.find("img").css({left:-(k*e),top:-(j*d)});this.addBoxClone(n);var f=40*e,p=i==u-1?function(){a.finishAnimation()}:"";n.show().delay(f).animate({top:j*d+"px",left:k*e+"px"},c,easing,p);d++;d==b&&(d=0,e++)}},animationBlock:function(){var h=this,a=500/this.s.v;this.setActualLevel();var c=Math.ceil(this.s.w/(this.s.w/10)),k=Math.ceil(this.s.w/c),b=this.s.h;for(i=
0;i<c;i++){var d=k*i,j=this.getBoxClone();j.css({left:this.s.w,top:0,width:k,height:b});j.find("img").css({left:-(k*i),top:0});this.addBoxClone(j);var g=i==c-1?function(){h.finishAnimation()}:"";j.delay(80*i).animate({top:0,left:d,opacity:"show"},a,easing,g)}},animationCubestop:function(h){var a=this;easing="easeOutBack";var c=800/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 b=Math.ceil(this.s.w/(this.s.w/
8)),d=Math.ceil(this.s.h/(this.s.w/8)),j=b*d,b=Math.ceil(this.s.w/b),g=Math.ceil(this.s.h/d),e=0,l=0,n=0,f=0,p=this.s.w/16;for(i=0;i<j;i++){var e=i%2==0?e:-e,l=i%2==0?l:-l,q=e+g*n,m=l+b*f,t=-(g*n),v=-(b*f),x=q-p,w=m-p,s=this.getBoxClone(k);s.css({left:m+"px",top:q+"px",width:b,height:g});s.find("img").css({left:v,top:t});this.addBoxClone(s);s.show();t=30*i;h.random&&(c=1E3/this.s.v,x=q,w=m,t=30*Math.random()*30);q=i==j-1?function(){a.finishAnimation()}:"";s.delay(t).animate({opacity:"hide",top:x+
"px",left:w+"px"},c,easing,q);n++;n==d&&(n=0,f++)}},animationCubehide:function(){var h=this,a=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 k=Math.ceil(this.s.w/(this.s.w/8)),b=Math.ceil(this.s.h/(this.s.h/3)),d=k*b,k=Math.ceil(this.s.w/k),j=Math.ceil(this.s.h/b),g=0,e=0,l=0,n=0;for(i=0;i<d;i++){var g=i%2==0?g:-g,e=i%2==0?e:-e,f=g+j*l,p=e+k*n,q=-(j*l),m=-(k*n),t=this.getBoxClone(c);t.css({left:p+
"px",top:f+"px",width:k,height:j});t.find("img").css({left:m,top:q});this.addBoxClone(t);t.show();f=50*i;f=i==d-1?d*50:f;p=i==d-1?function(){h.finishAnimation()}:"";t.delay(f).animate({opacity:"hide"},a,easing,p);l++;l==b&&(l=0,n++)}},animationCubejelly:function(){var h=this;easing="easeInBack";var a=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 k=Math.ceil(this.s.w/(this.s.w/8)),b=Math.ceil(this.s.h/
(this.s.h/3)),d=k*b,k=Math.ceil(this.s.w/k),e=Math.ceil(this.s.h/b),g=0,r=0,l=0,f=0,m=-1;for(i=0;i<d;i++){f%2!=0?(l==0&&(m=m+b+1),m--):(f>0&&l==0&&(m+=2),m++);var g=i%2==0?g:-g,r=i%2==0?r:-r,p=g+e*l,q=r+k*f,s=-(e*l),t=-(k*f),v=this.getBoxClone(c);v.css({left:q+"px",top:p+"px",width:k,height:e});v.find("img").css({left:t,top:s});this.addBoxClone(v);v.show();p=i==d-1?function(){h.finishAnimation()}:"";v.delay(50*i).animate({width:"+=100px",height:"+=100px",top:"-=20px",left:"-=20px",opacity:"hide"},
a,easing,p);l++;l==b&&(l=0,f++)}},animationCubesize:function(){var h=this;easing="easeInOutQuad";var a=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 k=Math.ceil(this.s.w/(this.s.w/8)),b=Math.ceil(this.s.h/(this.s.h/3)),d=k*b,k=Math.ceil(this.s.w/k),e=Math.ceil(this.s.h/b),g=0,f=0,l=0,n=0;Math.ceil(this.s.w/6);for(i=0;i<d;i++){var g=i%2==0?g:-g,f=i%2==0?f:-f,m=g+e*l,p=f+k*n,q=-(e*l),s=-(k*n),t=this.getBoxClone(c);
t.css({left:p,top:m,width:k,height:e});t.find("img").css({left:s,top:q});this.addBoxClone(t);t.show();q=i==d-1?function(){h.finishAnimation()}:"";t.delay(50*i).animate({opacity:"hide",width:"hide",height:"hide",top:m+k*1.5,left:p+e*1.5},a,easing,q);l++;l==b&&(l=0,n++)}},animationHorizontal:function(){var h=this;easing="easeOutExpo";var a=700/this.s.v;this.setActualLevel();var c=Math.ceil(this.s.w/(this.s.w/7)),k=this.s.w,b=Math.ceil(this.s.h/c);for(i=0;i<c;i++){var d=(i%2==0?"":"")+k,e=i*b,g=this.getBoxClone();
g.css({left:d+"px",top:e+"px",width:k,height:b});g.find("img").css({left:0,top:-e});this.addBoxClone(g);d=i==c-1?function(){h.finishAnimation()}:"";g.delay(70*i).animate({opacity:"show",top:e,left:0},a,easing,d)}},animationShowbars:function(h){var a=this,c=400/this.s.v;this.setActualLevel();var k=Math.ceil(this.s.w/(this.s.w/10)),b=Math.ceil(this.s.w/k),d=this.s.h;for(i=0;i<k;i++){var e=b*i,g=this.getBoxClone();g.css({left:e,top:-50,width:b,height:d});g.find("img").css({left:-(b*i),top:0});this.addBoxClone(g);
if(h.random)var f=50*this.getRandom(k),f=i==k-1?50*k:f;else f=70*i,c-=i*2;var l=i==k-1?function(){a.finishAnimation()}:"";g.delay(f).animate({opacity:"show",top:"0px",left:e+"px"},c,easing,l)}},animationTube:function(){var h=this;easing="easeOutElastic";var a=600/this.s.v;this.setActualLevel();var c=Math.ceil(this.s.w/(this.s.w/10)),b=Math.ceil(this.s.w/c),d=this.s.h;for(i=0;i<c;i++){var e=d,j=b*i,g=this.getBoxClone();g.css({left:j,top:e,height:d,width:b});g.find("img").css({left:-j});this.addBoxClone(g);
e=40*this.getRandom(c);j=i==c-1?function(){h.finishAnimation()}:"";g.show().delay(e).animate({top:0},a,easing,j)}},animationFade:function(){var h=this,a=800/this.s.v;this.setActualLevel();var c=this.s.w,b=this.s.h;for(i=0;i<2;i++){var d=this.getBoxClone();d.css({left:0,top:0,width:c,height:b});this.addBoxClone(d);d.animate({opacity:"show",left:0,top:0},a,easing,i==1?function(){h.finishAnimation()}:"")}},animationFadefour:function(){var h=this,a=500/this.s.v;this.setActualLevel();var c=this.s.w,b=
this.s.h;for(i=0;i<4;i++){if(i==0)var d="-100px",e="-100px";else i==1?(d="-100px",e="100px"):i==2?(d="100px",e="-100px"):i==3&&(e=d="100px");var j=this.getBoxClone();j.css({left:e,top:d,width:c,height:b});this.addBoxClone(j);j.animate({opacity:"show",left:0,top:0},a,easing,i==3?function(){h.finishAnimation()}:"")}},animationParalell:function(){var h=this;easing="easeOutCirc";var a=400/this.s.v;this.setActualLevel();var c=Math.ceil(this.s.w/(this.s.w/16)),b=Math.ceil(this.s.w/c),d=this.s.h;for(i=0;i<
c;i++){var e=b*i,j=this.getBoxClone();j.css({left:e,top:0-this.s.h,width:b,height:d});j.find("img").css({left:-(b*i),top:0});this.addBoxClone(j);var g;i<=c/2-1?g=1400-i*200:i>c/2-1&&(g=(i-c/2)*200);g/=2.5;var f=i==c-1?function(){h.finishAnimation()}:"";j.show().delay(g).animate({top:"0px",left:e+"px"},a,easing,f)}},animationBlind:function(h){var a=this,c=400/this.s.v;this.setActualLevel();var b=Math.ceil(this.s.w/(this.s.w/16)),d=Math.ceil(this.s.w/b),e=this.s.h;for(i=0;i<b;i++){var j=d*i,g=this.getBoxClone();
g.css({left:j,top:0,width:d,height:e});g.find("img").css({left:-(d*i),top:0});this.addBoxClone(g);var f;if(h.height)i<=b/2-1?f=200+i*200:i>b/2-1&&(f=(b/2-i)*200+b*100),l=i==b/2?function(){a.finishAnimation()}:"";else{i<=b/2-1?f=1400-i*200:i>b/2-1&&(f=(i-b/2)*200);var l=i==b-1?function(){a.finishAnimation()}:""}f/=2.5;h.height?(c+=i*2,easing="easeOutQuad",g.delay(f).animate({opacity:"show",top:"0px",left:j+"px",height:"show"},c,easing,l)):g.delay(f).animate({opacity:"show",top:"0px",left:j+"px",width:"show"},
c,easing,l)}},animationBlinddimension:function(a){var b=this,a=c.extend({},{height:true,time_animate:500,delay:100},a||{}),d=a.time_animate/this.s.v;this.setActualLevel();var e=Math.ceil(this.s.w/(this.s.w/16)),f=Math.ceil(this.s.w/e),u=this.s.h;for(i=0;i<e;i++){var j=f*i,g=this.getBoxClone();g.css({left:j,top:0,width:f,height:u});g.find("img").css({left:-(f*i),top:0});this.addBoxClone(g);var r=a.delay*i,l=i==e-1?function(){b.finishAnimation()}:"";a.height?(easing="easeOutQuad",g.delay(r).animate({opacity:"show",
top:"0px",left:j+"px",height:"show"},d,easing,l)):g.delay(r).animate({opacity:"show",top:"0px",left:j+"px",width:"show"},d,easing,l)}},animationDirection:function(a){var b=this,a=c.extend({},{direction:"top",delay_type:"sequence",total:7},a||{});easing="easeInOutExpo";var d=1200/this.s.v,e=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=a.total;for(i=0;i<f;i++){switch(a.direction){default:case "top":var u=
Math.ceil(this.s.w/f),j=this.s.h,g=0,r=u*i,l=-j,n=r,m=j,p=r,q=0,s=r,t=0,v=-r;break;case "bottom":u=Math.ceil(this.s.w/f);j=this.s.h;g=0;r=u*i;l=j;n=r;m=-j;p=r;q=0;s=r;t=0;v=-r;break;case "right":u=this.s.w;j=Math.ceil(this.s.h/f);g=j*i;r=0;l=g;n=u;m=g;p=-n;q=g;s=0;t=-g;v=0;break;case "left":u=this.s.w,j=Math.ceil(this.s.h/f),g=j*i,r=0,l=g,n=-u,m=g,p=-n,q=g,s=0,t=-g,v=0}switch(a.delay_type){default:var x=i%2==0?0:150;break;case "random":x=30*Math.random()*30;break;case "sequence":x=i*100}var w=this.getBoxClone(e);
w.find("img").css({left:v,top:t});w.css({top:g,left:r,width:u,height:j});this.addBoxClone(w);w.show();w.delay(x).animate({top:l,left:n},d,easing);g=this.getBoxClone();g.find("img").css({left:v,top:t});g.css({top:m,left:p,width:u,height:j});this.addBoxClone(g);g.show();u=i==f-1?function(){b.finishAnimation()}:"";g.delay(x).animate({top:q,left:s},d,easing,u)}},animationCubespread:function(){var a=this;easing="easeInOutQuad";var c=700/this.s.v;this.setActualLevel();var b=Math.ceil(this.s.w/(this.s.w/
8)),d=Math.ceil(this.s.h/(this.s.w/8)),e=b*d,b=Math.ceil(this.s.w/b),f=Math.ceil(this.s.h/d),j=0,g=0,r=0,l=0,n=[],m=[];for(i=0;i<e;i++){var j=i%2==0?j:-j,g=i%2==0?g:-g,p=j+f*r,q=g+b*l;n[i]=[p,q];r++;r==d&&(r=0,l++)}for(i=l=r=0;i<e;i++)m[i]=i;m=a.shuffleArray(m);for(i=0;i<e;i++){var j=i%2==0?j:-j,g=i%2==0?g:-g,p=j+f*r,q=g+b*l,s=-(f*r),t=-(b*l),v=p,x=q,p=n[m[i]][0],q=n[m[i]][1],w=this.getBoxClone();w.css({left:q+"px",top:p+"px",width:b,height:f});w.find("img").css({left:t,top:s});this.addBoxClone(w);
p=30*Math.random()*30;i==e-1&&(p=900);q=i==e-1?function(){a.finishAnimation()}:"";w.delay(p).animate({opacity:"show",top:v+"px",left:x+"px"},c,easing,q);r++;r==d&&(r=0,l++)}},animationGlasscube:function(){var a=this;easing="easeOutExpo";var c=500/this.s.v;this.setActualLevel();var b=Math.ceil(this.s.w/(this.s.w/10))*2,d=Math.ceil(this.s.w/b)*2,e=this.s.h/2,f=0;for(i=0;i<b;i++){mod=i%2==0?true:false;var j=d*f,g=mod?-a.s.h:a.s.h,m=d*f,l=mod?0:e,n=-(d*f),s=mod?0:-e,p=120*f,q=this.getBoxClone();q.css({left:j,
top:g,width:d,height:e});q.find("img").css({left:n+d/1.5,top:s}).delay(p).animate({left:n,top:s},c*1.9,"easeOutQuad");this.addBoxClone(q);j=i==b-1?function(){a.finishAnimation()}:"";q.show().delay(p).animate({top:l,left:m},c,easing,j);i%2!=0&&f++}},animationGlassblock:function(){var a=this;easing="easeOutExpo";var c=700/this.s.v;this.setActualLevel();var b=Math.ceil(this.s.w/(this.s.w/10)),d=Math.ceil(this.s.w/b),e=this.s.h;for(i=0;i<b;i++){var f=d*i,j=d*i,g=-(d*i),m=100*i,l=this.getBoxClone();l.css({left:f,
top:0,width:d,height:e});l.find("img").css({left:g+d/1.5,top:0}).delay(m).animate({left:g,top:0},c*1.1,"easeInOutQuad");this.addBoxClone(l);f=i==b-1?function(){a.finishAnimation()}:"";l.delay(m).animate({top:0,left:j,opacity:"show"},c,easing,f)}},animationCircles:function(){var a=this;easing="easeInQuad";var c=500/this.s.v;this.setActualLevel();var b=Math.ceil(this.s.w/(this.s.w/10)),d=100,e=Math.sqrt(Math.pow(this.s.w,2)+Math.pow(this.s.h,2)),e=Math.ceil(e);for(i=0;i<b;i++){var f=a.s.w/2-d/2,j=a.s.h/
2-d/2,g=f,m=j,l=this.getBoxClone();l.css({left:f,top:j,width:d,height:d}).css3({"border-radius":e+"px"});l.find("img").css({left:-f,top:-j});d+=100;this.addBoxClone(l);f=i==b-1?function(){a.finishAnimation()}:"";l.delay(70*i).animate({top:m,left:g,opacity:"show"},c,easing,f)}},animationCirclesinside:function(){var a=this;easing="easeInQuad";var c=500/this.s.v,b=this.b.find(".image_main").attr("src");this.setActualLevel();this.setLinkAtual();this.b.find(".image_main").attr({src:this.s.ia});var d=Math.ceil(this.s.w/
(this.s.w/10)),e=Math.sqrt(Math.pow(this.s.w,2)+Math.pow(this.s.h,2)),f=e=Math.ceil(e);for(i=0;i<d;i++){var j=a.s.w/2-f/2,g=a.s.h/2-f/2,m=j,l=g,n=this.getBoxClone(b);n.css({left:j,top:g,width:f,height:f}).css3({"border-radius":e+"px"});n.find("img").css({left:-j,top:-g});f-=100;this.addBoxClone(n);n.show();j=i==d-1?function(){a.finishAnimation()}:"";n.delay(70*i).animate({top:l,left:m,opacity:"hide"},c,easing,j)}},animationCirclesrotate:function(){var a=this,c=500/this.s.v,b=this.b.find(".image_main").attr("src");
this.setActualLevel();this.setLinkAtual();this.b.find(".image_main").attr({src:this.s.ia});var d=Math.ceil(this.s.w/(this.s.w/10)),e=Math.sqrt(Math.pow(this.s.w,2)+Math.pow(this.s.h,2)),f=e=Math.ceil(e);for(i=0;i<d;i++){var j=a.s.w/2-f/2,g=a.s.h/2-f/2,m=j,l=g,n=this.getBoxClone(b);n.css({left:j,top:g,width:f,height:f}).css3({"border-radius":e+"px"});n.find("img").css({left:-j,top:-g});f-=100;this.addBoxClone(n);n.show();j=i==d-1?function(){a.finishAnimation()}:"";g=i%2==0?"20deg":"-20deg";n.delay(100*
i).animate({top:l,left:m,opacity:"hide",rotate:g},c,easing,j)}},finishAnimation:function(){var a=this;this.b.find(".image_main").show();this.showBoxText();this.s.ian=false;if(a.oc!==false)a.jumpToImage(a.oc),a.oc=false;else if((!this.s.poh||!this.s.ih)&&(this.s.ls||this.s.fl))this.timer=setTimeout(function(){a.completeMove()},this.s.i),this.b.find(".image_main").attr({src:this.s.ia}),this.b.find(".image a").attr({href:this.s.lia})},completeMove:function(){var a=true;if(!this.s.ls&&this.s.fl&&(this.s.fl++,
this.s.fl>=this.s.il.length))a=this.s.fl=false;this.clearTimer(true);this.b.find(".box_clone").remove();a&&this.nextImage()},setActualLevel:function(){var a=this;c.isFunction(this.s.is)&&this.s.imageSwitched(this.s.ii,this);var b=this.s.il[this.s.ii][1],d=this.s.il[this.s.ii][3];this.s.ia=this.s.il[this.s.ii][0];this.s.lia=b;this.s.laa=d;this.b.find(".image_number_select").css(a.s.aou).removeClass("image_number_select");c("#image_n_"+(this.s.ii+1)+"_"+a.number_skitter).css(a.s.aa).addClass("image_number_select");
this.s.ahl?this.b.find(".label_skitter").slideUp(200,function(){a.setValueBoxText()}):(a.setValueBoxText(),(this.s.laa==void 0||this.s.laa=="")&&this.b.find(".label_skitter").css("display","none"));this.s.ii++;if(this.s.ii==this.s.il.length)this.s.ii=0},getBoxClone:function(a){a=this.s.lia!="#"?c('<a href="'+this.s.lia+'"><img src="'+(a?a:this.s.ia)+'" /></a>'):c('<img src="'+(a?a:this.s.ia)+'" />');a=this.resizeImage(a);return c('<div class="box_clone"></div>').append(a)},resizeImage:function(a){this.s.f&&
a.find("img").height(this.s.h);return a},addBoxClone:function(a){this.b.find(".container_skitter").append(a)},getRandom:function(a){return Math.floor(Math.random()*a)},setValueBoxText:function(){this.b.find(".label_skitter").html("<p>"+this.s.laa+"</p>")},showBoxText:function(){this.s.laa!=void 0&&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 a=this,c=a.s.o,b=a.s.iie,d=a.s.iie;
a.b.hover(function(){a.s.ht&&(a.s.nl!="top"&&a.s.nl!="bottom"&&a.b.find(".info_slide,.info_slide_dots").show().css({opacity:0}).animate({opacity:c},b),a.s.n&&(a.b.find(".prev_button").show().css({opacity:0}).animate({opacity:c},b),a.b.find(".next_button").show().css({opacity:0}).animate({opacity:c},b)));a.s.poh&&a.clearTimer(true);a.s.ih=true},function(){a.s.ht&&(a.s.nl!="top"&&a.s.nl!="bottom"&&a.b.find(".info_slide,.info_slide_dots").queue("fx",[]).show().css({opacity:c}).animate({opacity:0},d),
a.s.n&&(a.b.find(".prev_button").queue("fx",[]).show().css({opacity:c}).animate({opacity:0},d),a.b.find(".next_button").queue("fx",[]).show().css({opacity:c}).animate({opacity:0},d)));if(a.s.poh&&(a.clearTimer(true),!a.s.ian&&a.s.il.length>1&&(a.s.fl||a.s.ls)))a.timer=setTimeout(function(){a.timer=setTimeout(function(){a.completeMove()},a.s.i);a.b.find(".image_main").attr({src:a.s.ia});a.b.find(".image a").attr({href:a.s.lia})},a.s.i);a.s.ih=false})},clearTimer:function(){clearInterval(this.timer)},
setLinkAtual:function(){this.s.lia!="#"?this.b.find(".image a").attr({href:this.s.lia}):this.b.find(".image a").removeAttr("href")},hideTools:function(){this.s.nl!="top"&&this.s.nl!="bottom"&&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=[],b;a.length>0;)b=this.randomUnique(0,a.length-1),c[c.length]=a[b],a.splice(b,1);return c},randomUnique:function(a,c){var b;do b=Math.random();while(b==1);return b*
(c-a+1)+a|0}});c.fn.css3=function(a){var c={},b=["moz","ms","o","webkit"],d;for(d in a){for(var e=0;e<b.length;e++)c["-"+b[e]+"-"+d]=a[d];c[d]=a[d]}this.css(c);return this};var f="deg";c.fn.rotate=function(a){var b=c(this).css("transform")||"none";if(typeof a=="undefined")return b&&(a=b.match(/rotate\(([^)]+)\)/))&&a[1]?a[1]:0;if(a=a.toString().match(/^(-?\d+(\.\d+)?)(.+)?$/))a[3]&&(f=a[3]),c(this).css("transform",b.replace(/none|rotate\([^)]*\)/,"")+"rotate("+a[1]+f+")");return this};c.fn.scale=
function(a){var b=c(this).css("transform");if(typeof a=="undefined")return b&&(a=b.match(/scale\(([^)]+)\)/))&&a[1]?a[1]:1;c(this).css("transform",b.replace(/none|scale\([^)]*\)/,"")+"scale("+a+")");return this};var m=c.fx.prototype.cur;c.fx.prototype.cur=function(){if(this.prop=="rotate")return parseFloat(c(this.elem).rotate());else if(this.prop=="scale")return parseFloat(c(this.elem).scale());return m.apply(this,arguments)};c.fx.step.rotate=function(a){c(a.elem).rotate(a.now+f)};c.fx.step.scale=
function(a){c(a.elem).scale(a.now)};var y=c.fn.animate;c.fn.animate=function(a){if(typeof a.rotate!="undefined"){var b=a.rotate.toString().match(/^(([+-]=)?(-?\d+(\.\d+)?))(.+)?$/);b&&b[5]&&(f=b[5]);a.rotate=b[1]}return y.apply(this,arguments)};var s=null,z=c.fn.css;c.fn.css=function(a,b){s===null&&(s=typeof c.cssProps!="undefined"?c.cssProps:typeof c.props!="undefined"?c.props:{});if(typeof s.transform=="undefined"&&(a=="transform"||typeof a=="object"&&typeof a.transform!="undefined")){var d=s,e;
a:{e=this.get(0);for(var f=["transform","WebkitTransform","msTransform","MozTransform","OTransform"],m;m=f.shift();)if(typeof e.style[m]!="undefined"){e=m;break a}e="transform"}d.transform=e}if(s.transform!="transform")if(a=="transform"){if(a=s.transform,typeof b=="undefined"&&jQuery.style)return jQuery.style(this.get(0),a)}else if(typeof a=="object"&&typeof a.transform!="undefined")a[s.transform]=a.transform,delete a.transform;return z.apply(this,arguments)}})(jQuery);


$(function(){
	$('#stacks_in_71_page11images img').appendTo($('#stacks_in_71_page11container'));
	$('#stacks_in_71_page11container').skitter({'a': 'showBars', 
								 'd': ('thumbs'.match(/dots/i) != null), 
								 'nr': ('thumbs'.match(/number/i) != null), 
								 'th': ('thumbs'.match(/thumb/i) != null),
								 'ds': 15,
								 'nl': 'bottom', 
								 'al': '',
								 'sr': false, 
								 'i': 3.0*1000, 
								 'ls': true,
								 'ht': true,
								 'ahl': false,
								 'bw': 1, 
								 'sbr': 6,								
								 'aou': {backgroundColor: '#000000', color: '#FFFFFF'},
								 'ao': {backgroundColor: '#CCCCCC', color: '#FFFFFF'},
								 'aa': {backgroundColor: '#FFFFFF', color: '#FFFFFF'}, 
								 'poh': true});
});

	return stack;
})(stacks.stacks_in_71_page11);


// Javascript for stacks_in_87_page11
// ---------------------------------------------------------------------

// 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_87_page11 = {};

// 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_87_page11 = (function(stack) {

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

// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// My Product stack
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



$(document).ready(function() {
jQuery.url = function()
{
	var segments = {};
	
	var parsed = {};
	
	/**
    * Options object. Only the URI and strictMode values can be changed via the setters below.
    */
  	var options = {
	
		url : window.location, // default URI is the page in which the script is running
		
		strictMode: false, // 'loose' parsing by default
	
		key: ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"], // keys available to query 
		
		q: {
			name: "queryKey",
			parser: /(?:^|&)([^&=]*)=?([^&]*)/g
		},
		
		parser: {
			strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,  //less intuitive, more accurate to the specs
			loose:  /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ // more intuitive, fails on relative paths and deviates from specs
		}
		
	};
	
    /**
     * Deals with the parsing of the URI according to the regex above.
 	 * Written by Steven Levithan - see credits at top.
     */		
	var parseUri = function()
	{
		str = decodeURI( options.url );
		
		var m = options.parser[ options.strictMode ? "strict" : "loose" ].exec( str );
		var uri = {};
		var i = 14;

		while ( i-- ) {
			uri[ options.key[i] ] = m[i] || "";
		}

		uri[ options.q.name ] = {};
		uri[ options.key[12] ].replace( options.q.parser, function ( $0, $1, $2 ) {
			if ($1) {
				uri[options.q.name][$1] = $2;
			}
		});

		return uri;
	};

    /**
     * Returns the value of the passed in key from the parsed URI.
  	 * 
	 * @param string key The key whose value is required
     */		
	var key = function( key )
	{
		if ( ! parsed.length )
		{
			setUp(); // if the URI has not been parsed yet then do this first...	
		} 
		if ( key == "base" )
		{
			if ( parsed.port !== null && parsed.port !== "" )
			{
				return parsed.protocol+"://"+parsed.host+":"+parsed.port+"/";	
			}
			else
			{
				return parsed.protocol+"://"+parsed.host+"/";
			}
		}
	
		return ( parsed[key] === "" ) ? null : parsed[key];
	};
	
	/**
     * Returns the value of the required query string parameter.
  	 * 
	 * @param string item The parameter whose value is required
     */		
	var param = function( item )
	{
		if ( ! parsed.length )
		{
			setUp(); // if the URI has not been parsed yet then do this first...	
		}
		return ( parsed.queryKey[item] === null ) ? null : parsed.queryKey[item];
	};

    /**
     * 'Constructor' (not really!) function.
     *  Called whenever the URI changes to kick off re-parsing of the URI and splitting it up into segments. 
     */	
	var setUp = function()
	{
		parsed = parseUri();
		
		getSegments();	
	};
	
    /**
     * Splits up the body of the URI into segments (i.e. sections delimited by '/')
     */
	var getSegments = function()
	{
		var p = parsed.path;
		segments = []; // clear out segments array
		segments = parsed.path.length == 1 ? {} : ( p.charAt( p.length - 1 ) == "/" ? p.substring( 1, p.length - 1 ) : path = p.substring( 1 ) ).split("/");
	};
	
	return {
		
	    /**
	     * Sets the parsing mode - either strict or loose. Set to loose by default.
	     *
	     * @param string mode The mode to set the parser to. Anything apart from a value of 'strict' will set it to loose!
	     */
		setMode : function( mode )
		{
			strictMode = mode == "strict" ? true : false;
			return this;
		},
		
		/**
	     * Sets URI to parse if you don't want to to parse the current page's URI.
		 * Calling the function with no value for newUri resets it to the current page's URI.
	     *
	     * @param string newUri The URI to parse.
	     */		
		setUrl : function( newUri )
		{
			options.url = newUri === undefined ? window.location : newUri;
			setUp();
			return this;
		},		
		
		/**
	     * Returns the value of the specified URI segment. Segments are numbered from 1 to the number of segments.
		 * For example the URI http://test.com/about/company/ segment(1) would return 'about'.
		 *
		 * If no integer is passed into the function it returns the number of segments in the URI.
	     *
	     * @param int pos The position of the segment to return. Can be empty.
	     */	
		segment : function( pos )
		{
			if ( ! parsed.length )
			{
				setUp(); // if the URI has not been parsed yet then do this first...	
			} 
			if ( pos === undefined )
			{
				return segments.length;
			}
			return ( segments[pos] === "" || segments[pos] === undefined ) ? null : segments[pos];
		},
		
		attr : key, // provides public access to private 'key' function - see above
		
		param : param // provides public access to private 'param' function - see above
		
	};
	
}();


var yourfolder = jQuery.url.attr("directory");
if(yourfolder == "/"){yourfolder = ""};







var dooabuttonlink;
var dooabuttontarget;

$("#stacks_in_87_page11 .stacks_in_87_page11buttoncontainer").each(function() {
dooabuttonlink = $("a", this).attr("href");
dooabuttonrel = $("a", this).attr("rel");
dooabuttonclass = $("a", this).attr("class");
		$(this).wrap('<a href="'+ dooabuttonlink +'" class="stacks_in_87_page11link '+ dooabuttonclass +'" rel="'+ dooabuttonrel +'"  />');
	});
	

$("#stacks_in_87_page11 .stacks_in_87_page11link").hover(
  function () {
    $("a", this).css("color","#666666");
  }, 
  function () {
    $("a", this).css("color","#333333");
  }
);


var itsIE = navigator.userAgent.match(/MSIE 8/i) || navigator.userAgent.match(/MSIE 7/i) != null;

if(itsIE){
$("#stacks_in_87_page11 .outershadow").css({
	"box-shadow": "none", 
    "behavior":"url(" + yourfolder + "index_files/IPIE.htc)" 
    });
$("#stacks_in_87_page11 .stacks_in_87_page11link:first-child .stacks_in_87_page11buttoncontainer").css({
	"border-radius": "10px 0px 0px 10px",
    "behavior":"url(" + yourfolder + "index_files/IPIE.htc)" 
    });
$("#stacks_in_87_page11 .stacks_in_87_page11link:last-child .stacks_in_87_page11buttoncontainer").css({
	"border-radius": "0px 10px 10px 0px",
    "behavior":"url(" + yourfolder + "index_files/IPIE.htc)" 
    });
}    


});



// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// End my producet stack
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	return stack;
})(stacks.stacks_in_87_page11);


// Javascript for stacks_in_92_page11
// ---------------------------------------------------------------------

// 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_92_page11 = {};

// 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_92_page11 = (function(stack) {

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

// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// My Product stack
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx



$(document).ready(function() {
jQuery.url = function()
{
	var segments = {};
	
	var parsed = {};
	
	/**
    * Options object. Only the URI and strictMode values can be changed via the setters below.
    */
  	var options = {
	
		url : window.location, // default URI is the page in which the script is running
		
		strictMode: false, // 'loose' parsing by default
	
		key: ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"], // keys available to query 
		
		q: {
			name: "queryKey",
			parser: /(?:^|&)([^&=]*)=?([^&]*)/g
		},
		
		parser: {
			strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,  //less intuitive, more accurate to the specs
			loose:  /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ // more intuitive, fails on relative paths and deviates from specs
		}
		
	};
	
    /**
     * Deals with the parsing of the URI according to the regex above.
 	 * Written by Steven Levithan - see credits at top.
     */		
	var parseUri = function()
	{
		str = decodeURI( options.url );
		
		var m = options.parser[ options.strictMode ? "strict" : "loose" ].exec( str );
		var uri = {};
		var i = 14;

		while ( i-- ) {
			uri[ options.key[i] ] = m[i] || "";
		}

		uri[ options.q.name ] = {};
		uri[ options.key[12] ].replace( options.q.parser, function ( $0, $1, $2 ) {
			if ($1) {
				uri[options.q.name][$1] = $2;
			}
		});

		return uri;
	};

    /**
     * Returns the value of the passed in key from the parsed URI.
  	 * 
	 * @param string key The key whose value is required
     */		
	var key = function( key )
	{
		if ( ! parsed.length )
		{
			setUp(); // if the URI has not been parsed yet then do this first...	
		} 
		if ( key == "base" )
		{
			if ( parsed.port !== null && parsed.port !== "" )
			{
				return parsed.protocol+"://"+parsed.host+":"+parsed.port+"/";	
			}
			else
			{
				return parsed.protocol+"://"+parsed.host+"/";
			}
		}
	
		return ( parsed[key] === "" ) ? null : parsed[key];
	};
	
	/**
     * Returns the value of the required query string parameter.
  	 * 
	 * @param string item The parameter whose value is required
     */		
	var param = function( item )
	{
		if ( ! parsed.length )
		{
			setUp(); // if the URI has not been parsed yet then do this first...	
		}
		return ( parsed.queryKey[item] === null ) ? null : parsed.queryKey[item];
	};

    /**
     * 'Constructor' (not really!) function.
     *  Called whenever the URI changes to kick off re-parsing of the URI and splitting it up into segments. 
     */	
	var setUp = function()
	{
		parsed = parseUri();
		
		getSegments();	
	};
	
    /**
     * Splits up the body of the URI into segments (i.e. sections delimited by '/')
     */
	var getSegments = function()
	{
		var p = parsed.path;
		segments = []; // clear out segments array
		segments = parsed.path.length == 1 ? {} : ( p.charAt( p.length - 1 ) == "/" ? p.substring( 1, p.length - 1 ) : path = p.substring( 1 ) ).split("/");
	};
	
	return {
		
	    /**
	     * Sets the parsing mode - either strict or loose. Set to loose by default.
	     *
	     * @param string mode The mode to set the parser to. Anything apart from a value of 'strict' will set it to loose!
	     */
		setMode : function( mode )
		{
			strictMode = mode == "strict" ? true : false;
			return this;
		},
		
		/**
	     * Sets URI to parse if you don't want to to parse the current page's URI.
		 * Calling the function with no value for newUri resets it to the current page's URI.
	     *
	     * @param string newUri The URI to parse.
	     */		
		setUrl : function( newUri )
		{
			options.url = newUri === undefined ? window.location : newUri;
			setUp();
			return this;
		},		
		
		/**
	     * Returns the value of the specified URI segment. Segments are numbered from 1 to the number of segments.
		 * For example the URI http://test.com/about/company/ segment(1) would return 'about'.
		 *
		 * If no integer is passed into the function it returns the number of segments in the URI.
	     *
	     * @param int pos The position of the segment to return. Can be empty.
	     */	
		segment : function( pos )
		{
			if ( ! parsed.length )
			{
				setUp(); // if the URI has not been parsed yet then do this first...	
			} 
			if ( pos === undefined )
			{
				return segments.length;
			}
			return ( segments[pos] === "" || segments[pos] === undefined ) ? null : segments[pos];
		},
		
		attr : key, // provides public access to private 'key' function - see above
		
		param : param // provides public access to private 'param' function - see above
		
	};
	
}();


var yourfolder = jQuery.url.attr("directory");
if(yourfolder == "/"){yourfolder = ""};







var dooabuttonlink;
var dooabuttontarget;

$("#stacks_in_92_page11 .stacks_in_92_page11buttoncontainer").each(function() {
dooabuttonlink = $("a", this).attr("href");
dooabuttonrel = $("a", this).attr("rel");
dooabuttonclass = $("a", this).attr("class");
		$(this).wrap('<a href="'+ dooabuttonlink +'" class="stacks_in_92_page11link '+ dooabuttonclass +'" rel="'+ dooabuttonrel +'"  />');
	});
	

$("#stacks_in_92_page11 .stacks_in_92_page11link").hover(
  function () {
    $("a", this).css("color","#666666");
  }, 
  function () {
    $("a", this).css("color","#333333");
  }
);


var itsIE = navigator.userAgent.match(/MSIE 8/i) || navigator.userAgent.match(/MSIE 7/i) != null;

if(itsIE){
$("#stacks_in_92_page11 .outershadow").css({
	"box-shadow": "none", 
    "behavior":"url(" + yourfolder + "index_files/IPIE.htc)" 
    });
$("#stacks_in_92_page11 .stacks_in_92_page11link:first-child .stacks_in_92_page11buttoncontainer").css({
	"border-radius": "10px 0px 0px 10px",
    "behavior":"url(" + yourfolder + "index_files/IPIE.htc)" 
    });
$("#stacks_in_92_page11 .stacks_in_92_page11link:last-child .stacks_in_92_page11buttoncontainer").css({
	"border-radius": "0px 10px 10px 0px",
    "behavior":"url(" + yourfolder + "index_files/IPIE.htc)" 
    });
}    


});



// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// End my producet stack
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	return stack;
})(stacks.stacks_in_92_page11);


// Javascript for stacks_in_96_page11
// ---------------------------------------------------------------------

// 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_96_page11 = {};

// 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_96_page11 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
//-- Like It Stack v1.1.0 by Joe Workman --//

/*  Tallest jQuery Plugin
 *	@author	nickf
 *	@date	2009-08-19
 *	@version 1.0 $Id: jquery.tallest.js 100 2009-08-19 00:40:09Z spadgos $
 */
jQuery(function($) {
	$.fn.tallest = function()       { return this._extremities({ 'aspect' : 'height', 'max' : true  })[0] };
	$.fn.tallestSize = function()   { return this._extremities({ 'aspect' : 'height', 'max' : true  })[1] };
	$.fn.shortest = function()      { return this._extremities({ 'aspect' : 'height', 'max' : false })[0] };
	$.fn.shortestSize = function()  { return this._extremities({ 'aspect' : 'height', 'max' : false })[1] };
	$.fn.widest = function()        { return this._extremities({ 'aspect' : 'width',  'max' : true  })[0] };
	$.fn.widestSize = function()    { return this._extremities({ 'aspect' : 'width',  'max' : true  })[1] };
	$.fn.thinnest = function()      { return this._extremities({ 'aspect' : 'width',  'max' : false })[0] };
	$.fn.thinnestSize = function()  { return this._extremities({ 'aspect' : 'width',  'max' : false })[1] };
	$.fn._extremities = function(options) {
		var defaults = {
			aspect : 'height', // or 'width'
			max : true	// or false to find the min
		};
		options = $.extend(defaults, options);
		if (this.length < 2) {
			return [this, this[options.aspect]()];
		}
		var bestIndex = 0,
			bestSize = this.eq(0)[options.aspect](),
			thisSize
		;
		for (var i = 1; i < this.length; ++i) {
			thisSize = this.eq(i)[options.aspect]();
			if ((options.max && thisSize > bestSize) || (!options.max && thisSize < bestSize)) {
				bestSize = thisSize;
				bestIndex = i;
			}
		}
		return [ this.eq(bestIndex), bestSize ];
	};
});
(function($){ 
    $.getScript = function(url, callback, cache){
    	$.ajax({
    			type: "GET",
    			url: url,
    			success: callback,
    			dataType: "script",
    			cache: true
    	});
    };
})(jQuery)

$(document).ready(function() {	
    
// Twitter Buttons
switch ( 2 ) {
case 1:
	$('#like_twitter1 a').attr('data-count', 'vertical');
    $.getScript('http://platform.twitter.com/widgets.js');
    break;
case 2:
    $('#like_twitter2 a').attr('data-count', 'horizontal');
    $.getScript('http://platform.twitter.com/widgets.js');
    break;
case 3:
    $('#like_twitter3 a').attr('data-count', 'none');
    $.getScript('http://platform.twitter.com/widgets.js');
    break;
default:
    // Do Nothing
}
// Google Buttons
switch ( 4 ) {
case 1:
	$('#like_google1 .like_google').html('<g:plusone size="small" count="false"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 2:
	$('#like_google2 .like_google').html('<g:plusone size="small" count="true"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 3:
	$('#like_google3 .like_google').html('<g:plusone size="medium" count="false"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 4:
	$('#like_google4 .like_google').html('<g:plusone size="medium" count="true"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 5:
	$('#like_google5 .like_google').html('<g:plusone size="standard" count="false"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 6:
	$('#like_google6 .like_google').html('<g:plusone size="standard" count="true"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 7:
	$('#like_google7 .like_google').html('<g:plusone size="tall" count="true"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
default:
    // Do Nothing
}

// Facebook Buttons
switch ( 2 ) {
case 1:
    $('#like_facebook1 .like_facebook').html('<fb:like show_faces="false" width="280"></fb:like>');
    break;
case 2:
    $('#like_facebook2 .like_facebook').html('<fb:like layout="button_count" show_faces="false" width="50"></fb:like>');
    break;
case 3:
    $('#like_facebook3 .like_facebook').html('<fb:like layout="box_count" show_faces="false" width="50"></fb:like>');
    break;
case 4:
    $('#like_facebook4 .like_facebook').html('<fb:like show_faces="false" width="450" action="recommend"></fb:like>');
    break;
case 5:
    $('#like_facebook5 .like_facebook').html('<fb:like layout="button_count" show_faces="false" width="50" action="recommend"></fb:like>');
    break;
case 6:
    $('#like_facebook6 .like_facebook').html('<fb:like layout="box_count" show_faces="false" width="50" action="recommend"></fb:like>');
    break;
default:
    // Do Nothing
}
// Digg Buttons
switch ( 0 ) {
case 1:
    $('#like_digg1 a').addClass('DiggWide');
    $.getScript('http://widgets.digg.com/buttons.js');
    break;
case 2:
    $('#like_digg2 a').addClass('DiggMedium');
    $.getScript('http://widgets.digg.com/buttons.js');
    break;
case 3:
    $('#like_digg3 a').addClass('DiggCompact');
    $.getScript('http://widgets.digg.com/buttons.js');
    break;
case 4:
    $('#like_digg4 a').addClass('DiggIcon');
    $.getScript('http://widgets.digg.com/buttons.js');
    break;
default:
    // Do Nothing
}
// LinkedIn Buttons
switch ( 0 ) {
case 1:
    $('#like_linkedin1').html('<script type="in/share" data-counter="top"></script>');
    $.getScript('http://platform.linkedin.com/in.js');
    break;
case 2:
	$('#like_linkedin2').html('<script type="in/share" data-counter="right"></script>');
	$.getScript('http://platform.linkedin.com/in.js');
	break;
case 3:
	$('#like_linkedin3').html('<script type="in/share"></script>');
	$.getScript('http://platform.linkedin.com/in.js');
	break;
default:
    // Do Nothing
}
// Evernote Button
if (0 != 0) {
    $.getScript('http://static.evernote.com/noteit.js');
}
//Email Button
$('.like_email a').attr('href','mailto:?subject=Check out this webpage&body='+location.href);
// Make all buttons have the same height and display it
// $('.like_button_wrapper').height( $('.like_button').tallest().height() );
});

//-- End Like It Stack --//
	return stack;
})(stacks.stacks_in_96_page11);


// Javascript for stacks_in_104_page11
// ---------------------------------------------------------------------

// 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_104_page11 = {};

// 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_104_page11 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
//-- lynx v1.0.0 by Nick Cates Design --//

    jQuery.noConflict();
    jQuery(document).ready(function($){
    
        /********** FUNCTION ***********/
    	
        $('.lynxWrap').mouseenter(function(){
          $(this).stop().animate({opacity:1}, 300);
        }).mouseleave(function(){
          $(this).stop().animate({opacity:0}, 300);
        });
        
        $('.lynxLink').mouseup(function(){
          $(this).removeClass('press');
        }).mousedown(function(){
          $(this).addClass('press');
        });
        
        /********** FORM ***********/
    			
        $('.lynxStack').each(function() {
    	    if (!$(this).find('img').length ) {
                $(this).find('.lynxWrap').after('<div class="noImg">Add Image</div>');
                $('.noImg').animate({opacity:1},1000);
                $(this).find('.lynxWrap').remove();
            }
            if (!$(this).find('.lynxLink a').length ) {
            	$(this).find('.lynxTitle').css('padding-bottom','20px');
            }
        });
        
        $('.lynxText:contains("Description Text"), .lynxTitle:contains("Box Title")').remove();
        $('.lynxStack .lynxText a.hover').after('<br />');
    	$('.lynxLink').each(function() {$(this).has('a').addClass('linked');});
    });
    
//-- End lynx Stack --//
	return stack;
})(stacks.stacks_in_104_page11);


// Javascript for stacks_in_121_page11
// ---------------------------------------------------------------------

// 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_121_page11 = {};

// 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_121_page11 = (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_121_page11').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_121_page11').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_121_page11').css('border-top-width');
		var bg_border_right = $('#stacks_in_121_page11').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_121_page11').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_121_page11').css('border-left-width');
		$('#stacks_in_121_page11').css({'border-width':0});	
		$('#stacks_in_121_page11 .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_121_page11 img").attr("src");
	var custom_nav_active = $("#nav_active_stacks_in_121_page11 img").attr("src");
    var custom_nav_hover  = $("#nav_hover_stacks_in_121_page11 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_121_page11 img").attr("src");
		if (custom_nav_normal) { 
	    	var custom_nav_active = $("#nav_active_stacks_in_121_page11 img").attr("src");
		    $("#stacks_in_121_page11 .nav_bullet a").css('background-image','url(' + custom_nav_normal + ')');
		    $("#stacks_in_121_page11 .nav_bullet a.activeSlide").css('background-image','url(' + custom_nav_active + ')');
		}
	};
	
	$('#stacks_in_121_page11 .cycler_reel').cycle({
				fx:	           'fade', // name of transition effect (or comma separated names, ex: 'fade,scrollUp,shuffle')
				timeout:	   4000,  // 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:		   1500,  // 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_121_page11 .next_pager',  // selector for element to use as event trigger for next slide
				prev:		   '#stacks_in_121_page11 .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_121_page11',  // 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:		  'auto', // 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:		   0,	  // 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_121_page11 img").attr("src");
	if (custom_nav_next) { 
	    $("#stacks_in_121_page11 .next_pager").height($("#nav_next_stacks_in_121_page11 img").height());
	    $("#stacks_in_121_page11 .next_pager").width($("#nav_next_stacks_in_121_page11 img").width());
	    $("#stacks_in_121_page11 .next_pager").css('background-image','url(' + custom_nav_next + ')');
	}
	var custom_nav_prev = $("#nav_prev_stacks_in_121_page11 img").attr("src");
	if (custom_nav_prev) { 
	    $("#stacks_in_121_page11 .prev_pager").height($("#nav_prev_stacks_in_121_page11 img").height());
	    $("#stacks_in_121_page11 .prev_pager").width($("#nav_prev_stacks_in_121_page11 img").width());
	    $("#stacks_in_121_page11 .prev_pager").css('background-image','url(' + custom_nav_prev + ')');
	}
	
	var custom_nav_normal = $("#nav_normal_stacks_in_121_page11 img").attr("src");
	if (custom_nav_normal) { 
    	var custom_nav_height = $("#nav_normal_stacks_in_121_page11 img").height();
    	var custom_nav_width  = $("#nav_normal_stacks_in_121_page11 img").width();
	    $("#stacks_in_121_page11 .nav_bullet").height(custom_nav_height);
	    $("#stacks_in_121_page11 .nav_bullet a").height(custom_nav_height);
	    $("#stacks_in_121_page11 .nav_bullet a").width(custom_nav_width);

    	var custom_nav_active = $("#nav_active_stacks_in_121_page11 img").attr("src");
    	var custom_nav_hover  = $("#nav_hover_stacks_in_121_page11 img").attr("src");
	    $("#stacks_in_121_page11 .nav_bullet a").css('background-image','url(' + custom_nav_normal + ')');
	    $("#stacks_in_121_page11 .nav_bullet a.activeSlide").css('background-image','url(' + custom_nav_active + ')');
	    
        if (custom_nav_hover) { 
            $("#stacks_in_121_page11 .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_121_page11);


// Javascript for stacks_in_175_page11
// ---------------------------------------------------------------------

// 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_175_page11 = {};

// 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_175_page11 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Background Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.



$(document).ready(function() {
jQuery.url = function()
{
	var segments = {};
	
	var parsed = {};
	
	/**
    * Options object. Only the URI and strictMode values can be changed via the setters below.
    */
  	var options = {
	
		url : window.location, // default URI is the page in which the script is running
		
		strictMode: false, // 'loose' parsing by default
	
		key: ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"], // keys available to query 
		
		q: {
			name: "queryKey",
			parser: /(?:^|&)([^&=]*)=?([^&]*)/g
		},
		
		parser: {
			strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,  //less intuitive, more accurate to the specs
			loose:  /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ // more intuitive, fails on relative paths and deviates from specs
		}
		
	};
	
    /**
     * Deals with the parsing of the URI according to the regex above.
 	 * Written by Steven Levithan - see credits at top.
     */		
	var parseUri = function()
	{
		str = decodeURI( options.url );
		
		var m = options.parser[ options.strictMode ? "strict" : "loose" ].exec( str );
		var uri = {};
		var i = 14;

		while ( i-- ) {
			uri[ options.key[i] ] = m[i] || "";
		}

		uri[ options.q.name ] = {};
		uri[ options.key[12] ].replace( options.q.parser, function ( $0, $1, $2 ) {
			if ($1) {
				uri[options.q.name][$1] = $2;
			}
		});

		return uri;
	};

    /**
     * Returns the value of the passed in key from the parsed URI.
  	 * 
	 * @param string key The key whose value is required
     */		
	var key = function( key )
	{
		if ( ! parsed.length )
		{
			setUp(); // if the URI has not been parsed yet then do this first...	
		} 
		if ( key == "base" )
		{
			if ( parsed.port !== null && parsed.port !== "" )
			{
				return parsed.protocol+"://"+parsed.host+":"+parsed.port+"/";	
			}
			else
			{
				return parsed.protocol+"://"+parsed.host+"/";
			}
		}
	
		return ( parsed[key] === "" ) ? null : parsed[key];
	};
	
	/**
     * Returns the value of the required query string parameter.
  	 * 
	 * @param string item The parameter whose value is required
     */		
	var param = function( item )
	{
		if ( ! parsed.length )
		{
			setUp(); // if the URI has not been parsed yet then do this first...	
		}
		return ( parsed.queryKey[item] === null ) ? null : parsed.queryKey[item];
	};

    /**
     * 'Constructor' (not really!) function.
     *  Called whenever the URI changes to kick off re-parsing of the URI and splitting it up into segments. 
     */	
	var setUp = function()
	{
		parsed = parseUri();
		
		getSegments();	
	};
	
    /**
     * Splits up the body of the URI into segments (i.e. sections delimited by '/')
     */
	var getSegments = function()
	{
		var p = parsed.path;
		segments = []; // clear out segments array
		segments = parsed.path.length == 1 ? {} : ( p.charAt( p.length - 1 ) == "/" ? p.substring( 1, p.length - 1 ) : path = p.substring( 1 ) ).split("/");
	};
	
	return {
		
	    /**
	     * Sets the parsing mode - either strict or loose. Set to loose by default.
	     *
	     * @param string mode The mode to set the parser to. Anything apart from a value of 'strict' will set it to loose!
	     */
		setMode : function( mode )
		{
			strictMode = mode == "strict" ? true : false;
			return this;
		},
		
		/**
	     * Sets URI to parse if you don't want to to parse the current page's URI.
		 * Calling the function with no value for newUri resets it to the current page's URI.
	     *
	     * @param string newUri The URI to parse.
	     */		
		setUrl : function( newUri )
		{
			options.url = newUri === undefined ? window.location : newUri;
			setUp();
			return this;
		},		
		
		/**
	     * Returns the value of the specified URI segment. Segments are numbered from 1 to the number of segments.
		 * For example the URI http://test.com/about/company/ segment(1) would return 'about'.
		 *
		 * If no integer is passed into the function it returns the number of segments in the URI.
	     *
	     * @param int pos The position of the segment to return. Can be empty.
	     */	
		segment : function( pos )
		{
			if ( ! parsed.length )
			{
				setUp(); // if the URI has not been parsed yet then do this first...	
			} 
			if ( pos === undefined )
			{
				return segments.length;
			}
			return ( segments[pos] === "" || segments[pos] === undefined ) ? null : segments[pos];
		},
		
		attr : key, // provides public access to private 'key' function - see above
		
		param : param // provides public access to private 'param' function - see above
		
	};
	
}();


var yourfolder = jQuery.url.attr("directory");
if(yourfolder == "/"){yourfolder = ""};


var rptx = "0";
var rpty = "0";
var axisrepeat = "repeat";
var positionlmr = "2";
var positiontmb = "2";




if(rptx == 0 && rpty == 0){
    axisrepeat = "no-repeat";
}
else if(rptx == 0 && rpty == 1){
    axisrepeat = "repeat-y";
}
else if(rptx == 1 && rpty == 0){
    axisrepeat = "repeat-x";
}
else{
    axisrepeat = "repeat";
}



                switch (positiontmb) {
                	case "1":
                        positiontmb = "top";
                        break;
                    case "2":
                        positiontmb = "center";
                        break;
                    case "3":
                        positiontmb = "bottom";
                        break;  
                    default:
                        positiontmb = "center";
                };
                
                switch (positionlmr) {
                	case "1":
                        positionlmr = "left";
                        break;
                    case "2":
                        positionlmr = "center";
                        break;
                    case "3":
                        positionlmr = "right";
                        break;  
                    default:
                        positionlmr = "center";
                };




var bgimage = $("#stacks_in_175_page11 .stacks_in_175_page11bgimage img").attr("src");

var bgcolor = "";
if (bgcolor == "") {var bgcolor = "#333333";}
else {
	var bgcolor = "";
}

var itsIEnine = navigator.userAgent.match(/MSIE 9/i) != null;


if(itsIEnine){
	$("#stacks_in_175_page11 .stacks_in_175_page11bgimagestack").css({
    "background":"url("+bgimage+") " + axisrepeat + " " + bgcolor,
    "background-position": positionlmr + " " + positiontmb,
    "-webkit-border-radius" : "10px",
    "-moz-border-radius" : "10px",
    "border-radius" : "10px"
    });
}
else{
    $("#stacks_in_175_page11 .stacks_in_175_page11bgimagestack").css({
    "background":"url("+bgimage+") " + axisrepeat + " " + bgcolor,
    "background-position": positionlmr + " " + positiontmb,
    "-webkit-border-radius" : "10px",
    "-moz-border-radius" : "10px",
    "border-radius" : "10px",
    "behavior":"url(" + yourfolder + "index_files/RBPIE.htc)" 
    });
}

     
});

	return stack;
})(stacks.stacks_in_175_page11);


// Javascript for stacks_in_194_page11
// ---------------------------------------------------------------------

// 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_194_page11 = {};

// 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_194_page11 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Background Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.



$(document).ready(function() {
jQuery.url = function()
{
	var segments = {};
	
	var parsed = {};
	
	/**
    * Options object. Only the URI and strictMode values can be changed via the setters below.
    */
  	var options = {
	
		url : window.location, // default URI is the page in which the script is running
		
		strictMode: false, // 'loose' parsing by default
	
		key: ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"], // keys available to query 
		
		q: {
			name: "queryKey",
			parser: /(?:^|&)([^&=]*)=?([^&]*)/g
		},
		
		parser: {
			strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,  //less intuitive, more accurate to the specs
			loose:  /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ // more intuitive, fails on relative paths and deviates from specs
		}
		
	};
	
    /**
     * Deals with the parsing of the URI according to the regex above.
 	 * Written by Steven Levithan - see credits at top.
     */		
	var parseUri = function()
	{
		str = decodeURI( options.url );
		
		var m = options.parser[ options.strictMode ? "strict" : "loose" ].exec( str );
		var uri = {};
		var i = 14;

		while ( i-- ) {
			uri[ options.key[i] ] = m[i] || "";
		}

		uri[ options.q.name ] = {};
		uri[ options.key[12] ].replace( options.q.parser, function ( $0, $1, $2 ) {
			if ($1) {
				uri[options.q.name][$1] = $2;
			}
		});

		return uri;
	};

    /**
     * Returns the value of the passed in key from the parsed URI.
  	 * 
	 * @param string key The key whose value is required
     */		
	var key = function( key )
	{
		if ( ! parsed.length )
		{
			setUp(); // if the URI has not been parsed yet then do this first...	
		} 
		if ( key == "base" )
		{
			if ( parsed.port !== null && parsed.port !== "" )
			{
				return parsed.protocol+"://"+parsed.host+":"+parsed.port+"/";	
			}
			else
			{
				return parsed.protocol+"://"+parsed.host+"/";
			}
		}
	
		return ( parsed[key] === "" ) ? null : parsed[key];
	};
	
	/**
     * Returns the value of the required query string parameter.
  	 * 
	 * @param string item The parameter whose value is required
     */		
	var param = function( item )
	{
		if ( ! parsed.length )
		{
			setUp(); // if the URI has not been parsed yet then do this first...	
		}
		return ( parsed.queryKey[item] === null ) ? null : parsed.queryKey[item];
	};

    /**
     * 'Constructor' (not really!) function.
     *  Called whenever the URI changes to kick off re-parsing of the URI and splitting it up into segments. 
     */	
	var setUp = function()
	{
		parsed = parseUri();
		
		getSegments();	
	};
	
    /**
     * Splits up the body of the URI into segments (i.e. sections delimited by '/')
     */
	var getSegments = function()
	{
		var p = parsed.path;
		segments = []; // clear out segments array
		segments = parsed.path.length == 1 ? {} : ( p.charAt( p.length - 1 ) == "/" ? p.substring( 1, p.length - 1 ) : path = p.substring( 1 ) ).split("/");
	};
	
	return {
		
	    /**
	     * Sets the parsing mode - either strict or loose. Set to loose by default.
	     *
	     * @param string mode The mode to set the parser to. Anything apart from a value of 'strict' will set it to loose!
	     */
		setMode : function( mode )
		{
			strictMode = mode == "strict" ? true : false;
			return this;
		},
		
		/**
	     * Sets URI to parse if you don't want to to parse the current page's URI.
		 * Calling the function with no value for newUri resets it to the current page's URI.
	     *
	     * @param string newUri The URI to parse.
	     */		
		setUrl : function( newUri )
		{
			options.url = newUri === undefined ? window.location : newUri;
			setUp();
			return this;
		},		
		
		/**
	     * Returns the value of the specified URI segment. Segments are numbered from 1 to the number of segments.
		 * For example the URI http://test.com/about/company/ segment(1) would return 'about'.
		 *
		 * If no integer is passed into the function it returns the number of segments in the URI.
	     *
	     * @param int pos The position of the segment to return. Can be empty.
	     */	
		segment : function( pos )
		{
			if ( ! parsed.length )
			{
				setUp(); // if the URI has not been parsed yet then do this first...	
			} 
			if ( pos === undefined )
			{
				return segments.length;
			}
			return ( segments[pos] === "" || segments[pos] === undefined ) ? null : segments[pos];
		},
		
		attr : key, // provides public access to private 'key' function - see above
		
		param : param // provides public access to private 'param' function - see above
		
	};
	
}();


var yourfolder = jQuery.url.attr("directory");
if(yourfolder == "/"){yourfolder = ""};


var rptx = "0";
var rpty = "0";
var axisrepeat = "repeat";
var positionlmr = "2";
var positiontmb = "2";




if(rptx == 0 && rpty == 0){
    axisrepeat = "no-repeat";
}
else if(rptx == 0 && rpty == 1){
    axisrepeat = "repeat-y";
}
else if(rptx == 1 && rpty == 0){
    axisrepeat = "repeat-x";
}
else{
    axisrepeat = "repeat";
}



                switch (positiontmb) {
                	case "1":
                        positiontmb = "top";
                        break;
                    case "2":
                        positiontmb = "center";
                        break;
                    case "3":
                        positiontmb = "bottom";
                        break;  
                    default:
                        positiontmb = "center";
                };
                
                switch (positionlmr) {
                	case "1":
                        positionlmr = "left";
                        break;
                    case "2":
                        positionlmr = "center";
                        break;
                    case "3":
                        positionlmr = "right";
                        break;  
                    default:
                        positionlmr = "center";
                };




var bgimage = $("#stacks_in_194_page11 .stacks_in_194_page11bgimage img").attr("src");

var bgcolor = "";
if (bgcolor == "") {var bgcolor = "#CCCCCC";}
else {
	var bgcolor = "";
}

var itsIEnine = navigator.userAgent.match(/MSIE 9/i) != null;


if(itsIEnine){
	$("#stacks_in_194_page11 .stacks_in_194_page11bgimagestack").css({
    "background":"url("+bgimage+") " + axisrepeat + " " + bgcolor,
    "background-position": positionlmr + " " + positiontmb,
    "-webkit-border-radius" : "10px",
    "-moz-border-radius" : "10px",
    "border-radius" : "10px"
    });
}
else{
    $("#stacks_in_194_page11 .stacks_in_194_page11bgimagestack").css({
    "background":"url("+bgimage+") " + axisrepeat + " " + bgcolor,
    "background-position": positionlmr + " " + positiontmb,
    "-webkit-border-radius" : "10px",
    "-moz-border-radius" : "10px",
    "border-radius" : "10px",
    "behavior":"url(" + yourfolder + "index_files/RBPIE.htc)" 
    });
}

     
});

	return stack;
})(stacks.stacks_in_194_page11);


// Javascript for stacks_in_201_page11
// ---------------------------------------------------------------------

// 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_201_page11 = {};

// 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_201_page11 = (function(stack) {

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

                    
                    
                    
                    $(document).ready(function() {
                    


// <!--([A-Z][A-Z0-9]*)\b[^>]*>(.*?)</\1-->
(function($) {

  $.fn.expander = function(options) {

    var opts = $.extend({}, $.fn.expander.defaults, options);
    var delayedCollapse;
    return this.each(function() {
      var $this = $(this);
      var o = $.meta ? $.extend({}, opts, $this.data()) : opts;
     	var cleanedTag, startTags, endTags;	
     	var allText = $this.html().replace(/<!--[^>]*>/g,"");
     	var startText = allText.slice(0, o.slicePoint).replace(/\w+$/,'');
     	startTags = startText.match(/<\w[^>]*>/g);
   	  if (startTags) {startText = allText.slice(0,o.slicePoint + startTags.join('').length).replace(/\w+$/,'');}
   	  
     	if (startText.lastIndexOf('<') > startText.lastIndexOf('>') ) {
     	  startText = startText.slice(0,startText.lastIndexOf('<'));
     	}
     	var endText = allText.slice(startText.length);    	  
     	// create necessary expand/collapse elements if they don't already exist
     	var endText = endText.replace(/^\s+|\s+$/g,"");
   	  if (!$('span.details', this).length && endText.length > 0) {
        // end script if text length isn't long enough.
       	if ( endText.replace(/\s+$/,'').split(' ').length < o.widow ) { return; }
       	// otherwise, continue...    
       	if (endText.indexOf('</') > -1) {
         	endTags = endText.match(/<(\/)?[^>]*>/g);
          for (var i=0; i < endTags.length; i++) {

            if (endTags[i].indexOf('</') > -1) {
              var startTag, startTagExists = false;
              for (var j=0; j < i; j++) {
                startTag = endTags[j].slice(0, endTags[j].indexOf(' ')).replace(/(\w)$/,'$1>');
                if (startTag == rSlash(endTags[i])) {
                  startTagExists = true;
                }
              }              
              if (!startTagExists) {
                startText = startText + endTags[i];
                var matched = false;
                for (var s=startTags.length - 1; s >= 0; s--) {
                  if (startTags[s].slice(0, startTags[s].indexOf(' ')).replace(/(\w)$/,'$1>') == rSlash(endTags[i]) 
                  && matched == false) {
                    cleanedTag = cleanedTag ? startTags[s] + cleanedTag : startTags[s];
                    matched = true;
                  }
                };
              }
            }
          }

          endText = cleanedTag && cleanedTag + endText || endText;
        }
     	  $this.html([
     		startText,
     		'<span class="read-more">',
     		o.expandPrefix,
       		'<a href="#">',
       		  o.expandText,
       		'</a>',
        '</span>',
     		'<span class="details">',
     		  endText,
     		'</span>'
     		].join('')
     	  );
      }
      var $thisDetails = $('span.details', this),
        $readMore = $('span.read-more', this);
   	  $thisDetails.hide();
 	    $readMore.find('a').click(function() {
 	      $readMore.hide();

 	      if (o.expandEffect === 'show' && !o.expandSpeed) {
          o.beforeExpand($this);
 	        $thisDetails.show();
          o.afterExpand($this);
          delayCollapse(o, $thisDetails);
 	      } else {
          o.beforeExpand($this);
 	        $thisDetails[o.expandEffect](o.expandSpeed, function() {
            $thisDetails.css({zoom: ''});
            o.afterExpand($this);
            delayCollapse(o, $thisDetails);
 	        });
 	      }
        return false;
 	    });
      if (o.userCollapse) {
        $this
        .find('span.details').append('<span class="re-collapse">' + o.userCollapsePrefix + '<a href="#">' + o.userCollapseText + '</a></span>');
        $this.find('span.re-collapse a').click(function() {

          clearTimeout(delayedCollapse);
          var $detailsCollapsed = $(this).parents('span.details');
          reCollapse($detailsCollapsed);
          o.onCollapse($this, true);
          return false;
        });
      }
    });
    function reCollapse(el) {
       el.hide()
        .prev('span.read-more').show();
    }
    function delayCollapse(option, $collapseEl) {
      if (option.collapseTimer) {
        delayedCollapse = setTimeout(function() {  
          reCollapse($collapseEl);
          option.onCollapse($collapseEl.parent(), false);
          },
          option.collapseTimer
        );
      }
    }
    function rSlash(rString) {
      return rString.replace(/\//,'');
    }    
  };
    // plugin defaults
    var length = 26;
                    // var minTrail = 10;
                    var moreText = "[Read More]";
                    var lessText = "[Close]";
                    var ellipsisText = "...";
                    var dooOpenSpeed = "";
                    var dooCloseSpeed = "";
                    
                    
  $.fn.expander.defaults = {
    slicePoint:       26,  // the number of characters at which the contents will be sliced into two parts. 
                            // Note: any tag names in the HTML that appear inside the sliced element before 
                            // the slicePoint will be counted along with the text characters.
    widow:            1,  // a threshold of sorts for whether to initially hide/collapse part of the element's contents. 
                          // If after slicing the contents in two there are fewer words in the second part than 
                          // the value set by widow, we won't bother hiding/collapsing anything.
    expandText:       "[Read More]", // text displayed in a link instead of the hidden part of the element. 
                                      // clicking this will expand/show the hidden/collapsed text
    expandPrefix:     "... ",
    collapseTimer:    0, // number of milliseconds after text has been expanded at which to collapse the text again
    expandEffect:     'fadeIn',
    expandSpeed:      'slow',   // speed in milliseconds of the animation effect for expanding the text
    userCollapse:     true, // allow the user to re-collapse the expanded text.
    userCollapseText: "[Close]",  // text to use for the link to re-collapse the text
    userCollapsePrefix: ' ',
    beforeExpand: function($thisEl) {},
    afterExpand: function($thisEl) {},
    onCollapse: function($thisEl, byUser) {}
  };
  
  $('#stacks_in_201_page11 .trunky').expander();

})(jQuery);
                    
                    
                    
                    
                    
                    
                    });
                    
                    
                    
                    
                    
                    
                      
	return stack;
})(stacks.stacks_in_201_page11);



