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

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
jQuery(document).ready(function(){
	jQuery('body').prepend(jQuery('#pageFlipStackstacks_in_407_page2'));
	var theMSGImageURL=jQuery('.msg_block img').attr('src');
	var theMSGImageHeight=jQuery('.msg_block img').attr('height');
	var theMSGImageWidth=jQuery('.msg_block img').attr('width');
	jQuery('.msg_block').empty().css('backgroundImage', 'url('+theMSGImageURL+')');
	var thePos='right';
	if (thePos=='right') {
		jQuery('#pageFlipStackstacks_in_407_page2 img.flipImage').attr('src','index_files/pageFlip_right.png');
		jQuery('#pageFlipStackstacks_in_407_page2 img.flipImage , .msg_block').css({
			right: 0
		});
		jQuery('.msg_block').css('backgroundPosition', 'top right');
	}
	else {
		jQuery('#pageFlipStackstacks_in_407_page2 img.flipImage').attr('src','index_files/pageFlip_left.png');
		jQuery('#pageFlipStackstacks_in_407_page2 img.flipImage , .msg_block').css({
			left: 0
		});
		jQuery('.msg_block').css('backgroundPosition', 'top left');
	}
	jQuery("#pageFlipStackstacks_in_407_page2").hover(function() {
	 //On hover...
	jQuery("#pageFlipStackstacks_in_407_page2 img.flipImage").stop()
		.animate({ //Animate and expand the image and the msg_block (Width + height)
			width: theMSGImageWidth,
			height: theMSGImageHeight
		}, 500);
	jQuery(".msg_block").stop()
		.animate({ //Animate and expand the image and the msg_block (Width + height)
			width: theMSGImageWidth,
			height: theMSGImageHeight*0.96
		}, 500);
	} , function() {
	jQuery("#pageFlipStackstacks_in_407_page2 img.flipImage").stop() //On hover out, go back to original size 50x52
		.animate({
			width: '50px',
			height: '52px'
		}, 220);
	jQuery(".msg_block").stop() //On hover out, go back to original size 50x50
		.animate({
			width: '50px',
			height: '50px'
		}, 200); //Note this one retracts a bit faster (to prevent glitching in IE)
});

});
	return stack;
})(stacks.stacks_in_407_page2);


// Javascript for stacks_in_426_page2
// ---------------------------------------------------------------------

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

// 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_426_page2 = (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 Hover Stack v2.0.1 by Joe Workman --//
$(document).ready(function() {
	// Set Border
	var bg_border_style = $('#stacks_in_426_page2').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_426_page2').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_426_page2').css('border-top-width');
		var bg_border_right = $('#stacks_in_426_page2').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_426_page2').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_426_page2').css('border-left-width');
		$('#stacks_in_426_page2').css({'border-width':0});	
		$('#stacks_in_426_page2 .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_426_page2 .boxgrid .cover img').height();
	var box_width = $('#stacks_in_426_page2 .boxgrid .cover img').width();
	$('#stacks_in_426_page2 .boxgrid').height(box_height);
	$('#stacks_in_426_page2 .boxgrid').width(box_width);
	$('#stacks_in_426_page2 .back .stacks_in').first().height(box_height);
	
   	//Vertical Sliding
	$('#stacks_in_426_page2 .boxgrid.slidedown').hover(function(){
		$('.cover', this).stop().animate({top: box_height},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px'},{queue:false,duration:300});
	});
	$('#stacks_in_426_page2 .boxgrid.slideup').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px'},{queue:false,duration:300});
	});
	//Horizontal Sliding
	$('#stacks_in_426_page2 .boxgrid.slideright').hover(function(){
		$('.cover', this).stop().animate({left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:'0px'},{queue:false,duration:300});
	});
	$('#stacks_in_426_page2 .boxgrid.slideleft').hover(function(){
		$('.cover', this).stop().animate({left:(box_width*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:'0px'},{queue:false,duration:300});
	});
	//Diagnal Sliding
	$('#stacks_in_426_page2 .boxgrid.slidediag-rb').hover(function(){
		$('.cover', this).stop().animate({top: box_height, left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
	});
	$('#stacks_in_426_page2 .boxgrid.slidediag-rt').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1), left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
	});
	$('#stacks_in_426_page2 .boxgrid.slidediag-lb').hover(function(){
		$('.cover', this).stop().animate({top: box_height, left:(box_width*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
	});
	$('#stacks_in_426_page2 .boxgrid.slidediag-lt').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1), left:(box_width*-1)},{queue:false,duration:300 });
	}, function() {
		$('.cover', this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
	});
	//Partial Sliding (Only show some of background)
	$('#stacks_in_426_page2 .boxgrid.peek').hover(function(){
		$('.cover', this).stop().animate({top:'90px'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px'},{queue:false,duration:300});
	});
	//Fadeout Effect
	$('#stacks_in_426_page2 .boxgrid.fadeout').hover(function(){
		if($.browser.msie){
			$(".cover", this).css("display","none");
		}
		else{
			$(".cover", this).stop().animate({opacity:'0'},{queue:false,duration:300,complete:function(){$(this).hide()} });
		}
	}, function() {
		if($.browser.msie){
			$(".cover", this).css("display","inline");
		}
		else{
			$(".cover", this).show().stop().animate({opacity:'1'},{queue:false,duration:300});	
		}
	});
	
});
//-- End Fancy Image Hover Stack --//

	return stack;
})(stacks.stacks_in_426_page2);


// Javascript for stacks_in_432_page2
// ---------------------------------------------------------------------

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

// 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_432_page2 = (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 Hover Stack v2.0.1 by Joe Workman --//
$(document).ready(function() {
	// Set Border
	var bg_border_style = $('#stacks_in_432_page2').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_432_page2').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_432_page2').css('border-top-width');
		var bg_border_right = $('#stacks_in_432_page2').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_432_page2').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_432_page2').css('border-left-width');
		$('#stacks_in_432_page2').css({'border-width':0});	
		$('#stacks_in_432_page2 .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_432_page2 .boxgrid .cover img').height();
	var box_width = $('#stacks_in_432_page2 .boxgrid .cover img').width();
	$('#stacks_in_432_page2 .boxgrid').height(box_height);
	$('#stacks_in_432_page2 .boxgrid').width(box_width);
	$('#stacks_in_432_page2 .back .stacks_in').first().height(box_height);
	
   	//Vertical Sliding
	$('#stacks_in_432_page2 .boxgrid.slidedown').hover(function(){
		$('.cover', this).stop().animate({top: box_height},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px'},{queue:false,duration:300});
	});
	$('#stacks_in_432_page2 .boxgrid.slideup').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px'},{queue:false,duration:300});
	});
	//Horizontal Sliding
	$('#stacks_in_432_page2 .boxgrid.slideright').hover(function(){
		$('.cover', this).stop().animate({left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:'0px'},{queue:false,duration:300});
	});
	$('#stacks_in_432_page2 .boxgrid.slideleft').hover(function(){
		$('.cover', this).stop().animate({left:(box_width*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:'0px'},{queue:false,duration:300});
	});
	//Diagnal Sliding
	$('#stacks_in_432_page2 .boxgrid.slidediag-rb').hover(function(){
		$('.cover', this).stop().animate({top: box_height, left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
	});
	$('#stacks_in_432_page2 .boxgrid.slidediag-rt').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1), left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
	});
	$('#stacks_in_432_page2 .boxgrid.slidediag-lb').hover(function(){
		$('.cover', this).stop().animate({top: box_height, left:(box_width*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
	});
	$('#stacks_in_432_page2 .boxgrid.slidediag-lt').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1), left:(box_width*-1)},{queue:false,duration:300 });
	}, function() {
		$('.cover', this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
	});
	//Partial Sliding (Only show some of background)
	$('#stacks_in_432_page2 .boxgrid.peek').hover(function(){
		$('.cover', this).stop().animate({top:'90px'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px'},{queue:false,duration:300});
	});
	//Fadeout Effect
	$('#stacks_in_432_page2 .boxgrid.fadeout').hover(function(){
		if($.browser.msie){
			$(".cover", this).css("display","none");
		}
		else{
			$(".cover", this).stop().animate({opacity:'0'},{queue:false,duration:300,complete:function(){$(this).hide()} });
		}
	}, function() {
		if($.browser.msie){
			$(".cover", this).css("display","inline");
		}
		else{
			$(".cover", this).show().stop().animate({opacity:'1'},{queue:false,duration:300});	
		}
	});
	
});
//-- End Fancy Image Hover Stack --//

	return stack;
})(stacks.stacks_in_432_page2);


// Javascript for stacks_in_438_page2
// ---------------------------------------------------------------------

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

// 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_438_page2 = (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 Hover Stack v2.0.1 by Joe Workman --//
$(document).ready(function() {
	// Set Border
	var bg_border_style = $('#stacks_in_438_page2').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_438_page2').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_438_page2').css('border-top-width');
		var bg_border_right = $('#stacks_in_438_page2').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_438_page2').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_438_page2').css('border-left-width');
		$('#stacks_in_438_page2').css({'border-width':0});	
		$('#stacks_in_438_page2 .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_438_page2 .boxgrid .cover img').height();
	var box_width = $('#stacks_in_438_page2 .boxgrid .cover img').width();
	$('#stacks_in_438_page2 .boxgrid').height(box_height);
	$('#stacks_in_438_page2 .boxgrid').width(box_width);
	$('#stacks_in_438_page2 .back .stacks_in').first().height(box_height);
	
   	//Vertical Sliding
	$('#stacks_in_438_page2 .boxgrid.slidedown').hover(function(){
		$('.cover', this).stop().animate({top: box_height},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px'},{queue:false,duration:300});
	});
	$('#stacks_in_438_page2 .boxgrid.slideup').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px'},{queue:false,duration:300});
	});
	//Horizontal Sliding
	$('#stacks_in_438_page2 .boxgrid.slideright').hover(function(){
		$('.cover', this).stop().animate({left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:'0px'},{queue:false,duration:300});
	});
	$('#stacks_in_438_page2 .boxgrid.slideleft').hover(function(){
		$('.cover', this).stop().animate({left:(box_width*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:'0px'},{queue:false,duration:300});
	});
	//Diagnal Sliding
	$('#stacks_in_438_page2 .boxgrid.slidediag-rb').hover(function(){
		$('.cover', this).stop().animate({top: box_height, left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
	});
	$('#stacks_in_438_page2 .boxgrid.slidediag-rt').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1), left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
	});
	$('#stacks_in_438_page2 .boxgrid.slidediag-lb').hover(function(){
		$('.cover', this).stop().animate({top: box_height, left:(box_width*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
	});
	$('#stacks_in_438_page2 .boxgrid.slidediag-lt').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1), left:(box_width*-1)},{queue:false,duration:300 });
	}, function() {
		$('.cover', this).stop().animate({top:'0px', left:'0px'},{queue:false,duration:300});
	});
	//Partial Sliding (Only show some of background)
	$('#stacks_in_438_page2 .boxgrid.peek').hover(function(){
		$('.cover', this).stop().animate({top:'90px'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:'0px'},{queue:false,duration:300});
	});
	//Fadeout Effect
	$('#stacks_in_438_page2 .boxgrid.fadeout').hover(function(){
		if($.browser.msie){
			$(".cover", this).css("display","none");
		}
		else{
			$(".cover", this).stop().animate({opacity:'0'},{queue:false,duration:300,complete:function(){$(this).hide()} });
		}
	}, function() {
		if($.browser.msie){
			$(".cover", this).css("display","inline");
		}
		else{
			$(".cover", this).show().stop().animate({opacity:'1'},{queue:false,duration:300});	
		}
	});
	
});
//-- End Fancy Image Hover Stack --//

	return stack;
})(stacks.stacks_in_438_page2);



