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

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

// 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_5_page90 = (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_5_page90').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_5_page90').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_5_page90').css('border-top-width');
		var bg_border_right = $('#stacks_in_5_page90').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_5_page90').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_5_page90').css('border-left-width');
		$('#stacks_in_5_page90').css({'border-width':0});	
		$('#stacks_in_5_page90 .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_5_page90 .boxgrid img').height();
	var box_width = $('#stacks_in_5_page90 .boxgrid img').width();
	$('#stacks_in_5_page90 .boxgrid').height(box_height);
	$('#stacks_in_5_page90 .boxgrid').width(box_width);
	
	var caption_height = box_height * (100/100);
	var caption_reveal = box_height * (0/100);
	var init_caption = box_height - caption_reveal;
	$('#stacks_in_5_page90 .boxcaption').height(box_height);
	$('#stacks_in_5_page90 .caption_back').height(box_height);
	$('#stacks_in_5_page90 .captionfull .boxcaption').css({top: box_height});
	$('#stacks_in_5_page90 .caption .boxcaption').css({top: init_caption});
	$('#stacks_in_5_page90 .captionfulltop .boxcaption').css({bottom: box_height});
	$('#stacks_in_5_page90 .captiontop .boxcaption').css({bottom: init_caption});
	
	var speed = speed;
	//Caption Sliding (Partially Hidden to Visible)
	$('#stacks_in_5_page90 .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_5_page90 .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_5_page90);


// Javascript for stacks_in_11_page90
// ---------------------------------------------------------------------

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

// 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_11_page90 = (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_11_page90').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_11_page90').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_11_page90').css('border-top-width');
		var bg_border_right = $('#stacks_in_11_page90').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_11_page90').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_11_page90').css('border-left-width');
		$('#stacks_in_11_page90').css({'border-width':0});	
		$('#stacks_in_11_page90 .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_11_page90 .boxgrid img').height();
	var box_width = $('#stacks_in_11_page90 .boxgrid img').width();
	$('#stacks_in_11_page90 .boxgrid').height(box_height);
	$('#stacks_in_11_page90 .boxgrid').width(box_width);
	
	var caption_height = box_height * (100/100);
	var caption_reveal = box_height * (0/100);
	var init_caption = box_height - caption_reveal;
	$('#stacks_in_11_page90 .boxcaption').height(box_height);
	$('#stacks_in_11_page90 .caption_back').height(box_height);
	$('#stacks_in_11_page90 .captionfull .boxcaption').css({top: box_height});
	$('#stacks_in_11_page90 .caption .boxcaption').css({top: init_caption});
	$('#stacks_in_11_page90 .captionfulltop .boxcaption').css({bottom: box_height});
	$('#stacks_in_11_page90 .captiontop .boxcaption').css({bottom: init_caption});
	
	var speed = speed;
	//Caption Sliding (Partially Hidden to Visible)
	$('#stacks_in_11_page90 .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_11_page90 .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_11_page90);


// Javascript for stacks_in_17_page90
// ---------------------------------------------------------------------

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

// 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_17_page90 = (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_17_page90').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_17_page90').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_17_page90').css('border-top-width');
		var bg_border_right = $('#stacks_in_17_page90').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_17_page90').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_17_page90').css('border-left-width');
		$('#stacks_in_17_page90').css({'border-width':0});	
		$('#stacks_in_17_page90 .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_17_page90 .boxgrid img').height();
	var box_width = $('#stacks_in_17_page90 .boxgrid img').width();
	$('#stacks_in_17_page90 .boxgrid').height(box_height);
	$('#stacks_in_17_page90 .boxgrid').width(box_width);
	
	var caption_height = box_height * (100/100);
	var caption_reveal = box_height * (0/100);
	var init_caption = box_height - caption_reveal;
	$('#stacks_in_17_page90 .boxcaption').height(box_height);
	$('#stacks_in_17_page90 .caption_back').height(box_height);
	$('#stacks_in_17_page90 .captionfull .boxcaption').css({top: box_height});
	$('#stacks_in_17_page90 .caption .boxcaption').css({top: init_caption});
	$('#stacks_in_17_page90 .captionfulltop .boxcaption').css({bottom: box_height});
	$('#stacks_in_17_page90 .captiontop .boxcaption').css({bottom: init_caption});
	
	var speed = speed;
	//Caption Sliding (Partially Hidden to Visible)
	$('#stacks_in_17_page90 .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_17_page90 .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_17_page90);



