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

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

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

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

//-- Fancy Image Reflection Stack v2.1.2 by Joe Workman --//
/* reflection.js for jQuery v1.1
 * (c) 2006-2011 Christophe Beyls <http://www.digitalia.be>
 * MIT-style license.
 */
(function(a){a.fn.extend({reflect:function(b){b=a.extend({height:1/3,opacity:0.5},b);return this.unreflect().each(function(){var c=this;if(/^img$/i.test(c.tagName)){function d(){var g=c.width,f=c.height,l,i,m,h,k;i=Math.floor((b.height>1)?Math.min(f,b.height):f*b.height);l=a("<canvas />")[0];if(l.getContext){h=l.getContext("2d");try{a(l).attr({width:g,height:i});h.save();h.translate(0,f-1);h.scale(1,-1);h.drawImage(c,0,0,g,f);h.restore();h.globalCompositeOperation="destination-out";k=h.createLinearGradient(0,0,0,i);k.addColorStop(0,"rgba(255, 255, 255, "+(1-b.opacity)+")");k.addColorStop(1,"rgba(255, 255, 255, 1.0)");h.fillStyle=k;h.rect(0,0,g,i);h.fill()}catch(j){return}}else{if(!a.browser.msie){return}l=a("<img />").attr("src",c.src).css({width:g,height:f,marginBottom:i-f,filter:"FlipV progid:DXImageTransform.Microsoft.Alpha(Opacity="+(b.opacity*100)+", FinishOpacity=0, Style=1, StartX=0, StartY=0, FinishX=0, FinishY="+(i/f*100)+")"})[0]}a(l).css({display:"block",border:0});m=a(/^a$/i.test(c.parentNode.tagName)?"<span />":"<div />").insertAfter(c).append([c,l])[0];m.className=c.className;a.data(c,"reflected",m.style.cssText=c.style.cssText);a(m).css({width:g,height:f+i,overflow:"hidden"});c.style.cssText="display: block; border: 0px";c.className="reflected"}if(c.complete){d()}else{a(c).load(d)}}})},unreflect:function(){return this.unbind("load").each(function(){var c=this,b=a.data(this,"reflected"),d;if(b!==undefined){d=c.parentNode;c.className=d.className;c.style.cssText=b;a.removeData(c,"reflected");d.parentNode.replaceChild(c,d)}})}})})(jQuery);

$(document).ready(function(){ 
	$("#stacks_in_10_page84 img").reflect({ height: 0.3, opacity: 0.3 });
});
//-- End Fancy Image Reflection Stack --//

	return stack;
})(stacks.stacks_in_10_page84);


// Javascript for stacks_in_24_page84
// ---------------------------------------------------------------------

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

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

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

//-- Popup Caption Stack v2.0.2 by Joe Workman --//
$(document).ready(function() {
	// Set Border
	var bg_border_style = $('#stacks_in_24_page84').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_24_page84').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_24_page84').css('border-top-width');
		var bg_border_right = $('#stacks_in_24_page84').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_24_page84').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_24_page84').css('border-left-width');
		$('#stacks_in_24_page84').css({'border-width':0});	
		$('#stacks_in_24_page84 .boxgrid').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 box_height = $('#stacks_in_24_page84 .boxgrid img').height();
	var box_width = $('#stacks_in_24_page84 .boxgrid img').width();
	$('#stacks_in_24_page84 .boxgrid').height(box_height);
	$('#stacks_in_24_page84 .boxgrid').width(box_width);
	
	var caption_height = box_height * (35/100);
	var caption_reveal = box_height * (2/100);
	var init_caption = box_height - caption_reveal;
	$('#stacks_in_24_page84 .boxcaption').height(box_height);
	$('#stacks_in_24_page84 .caption_back').height(box_height);
	$('#stacks_in_24_page84 .captionfull .boxcaption').css({top: box_height});
	$('#stacks_in_24_page84 .caption .boxcaption').css({top: init_caption});
	$('#stacks_in_24_page84 .captionfulltop .boxcaption').css({bottom: box_height});
	$('#stacks_in_24_page84 .captiontop .boxcaption').css({bottom: init_caption});
	
	var speed = speed;
	//Caption Sliding (Partially Hidden to Visible)
	$('#stacks_in_24_page84 .boxgrid.caption').hover(function(){
		$(".cover", this).stop().animate({top:(box_height - caption_height)},{queue:false,duration:speed});
	}, function() {
		$(".cover", this).stop().animate({top: init_caption},{queue:false,duration:speed});
	});
	//Caption Sliding Down (Hidden to Visible)
	$('#stacks_in_24_page84 .boxgrid.captiontop').hover(function(){
		$(".cover", this).stop().animate({bottom:(box_height - caption_height)},{queue:false,duration:speed});
	}, function() {
		$(".cover", this).stop().animate({bottom:init_caption},{queue:false,duration:speed});
	});
	
});
//-- End Popup Caption Stack --//

	return stack;
})(stacks.stacks_in_24_page84);


// Javascript for stacks_in_29_page84
// ---------------------------------------------------------------------

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

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

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

//-- Popup Caption Stack v2.0.2 by Joe Workman --//
$(document).ready(function() {
	// Set Border
	var bg_border_style = $('#stacks_in_29_page84').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_29_page84').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_29_page84').css('border-top-width');
		var bg_border_right = $('#stacks_in_29_page84').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_29_page84').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_29_page84').css('border-left-width');
		$('#stacks_in_29_page84').css({'border-width':0});	
		$('#stacks_in_29_page84 .boxgrid').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 box_height = $('#stacks_in_29_page84 .boxgrid img').height();
	var box_width = $('#stacks_in_29_page84 .boxgrid img').width();
	$('#stacks_in_29_page84 .boxgrid').height(box_height);
	$('#stacks_in_29_page84 .boxgrid').width(box_width);
	
	var caption_height = box_height * (30/100);
	var caption_reveal = box_height * (2/100);
	var init_caption = box_height - caption_reveal;
	$('#stacks_in_29_page84 .boxcaption').height(box_height);
	$('#stacks_in_29_page84 .caption_back').height(box_height);
	$('#stacks_in_29_page84 .captionfull .boxcaption').css({top: box_height});
	$('#stacks_in_29_page84 .caption .boxcaption').css({top: init_caption});
	$('#stacks_in_29_page84 .captionfulltop .boxcaption').css({bottom: box_height});
	$('#stacks_in_29_page84 .captiontop .boxcaption').css({bottom: init_caption});
	
	var speed = speed;
	//Caption Sliding (Partially Hidden to Visible)
	$('#stacks_in_29_page84 .boxgrid.caption').hover(function(){
		$(".cover", this).stop().animate({top:(box_height - caption_height)},{queue:false,duration:speed});
	}, function() {
		$(".cover", this).stop().animate({top: init_caption},{queue:false,duration:speed});
	});
	//Caption Sliding Down (Hidden to Visible)
	$('#stacks_in_29_page84 .boxgrid.captiontop').hover(function(){
		$(".cover", this).stop().animate({bottom:(box_height - caption_height)},{queue:false,duration:speed});
	}, function() {
		$(".cover", this).stop().animate({bottom:init_caption},{queue:false,duration:speed});
	});
	
});
//-- End Popup Caption Stack --//

	return stack;
})(stacks.stacks_in_29_page84);



