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

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
//-- 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 ( 0 ) {
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 ( 5 ) {
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 ( 0 ) {
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_1_page0);


// Javascript for stacks_in_4_page0
// ---------------------------------------------------------------------

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

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

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

//-- Mask Stack v1.0.5 by Joe Workman --//
$(document).ready(function() {    
	// Set Border
	var bg_border_style = $('#stacks_in_4_page0').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_4_page0').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_4_page0').css('border-top-width');
		var bg_border_right = $('#stacks_in_4_page0').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_4_page0').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_4_page0').css('border-left-width');
		$('#stacks_in_4_page0').css({'border-width':0});	
		$('#stacks_in_4_page0 .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
		});	
	}
	//Set Backgrounds
	var back_bg_color = $('#stacks_in_4_page0 .back .stacks_in').css('background-color');
	if (back_bg_color) { 
		$('#stacks_in_4_page0 .back .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_4_page0 .back').css({'background-color': back_bg_color });	
	}
	var cover_bg_color = $('#stacks_in_4_page0 .cover .stacks_in').css('background-color');
	if (cover_bg_color) { 
		$('#stacks_in_4_page0 .cover .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_4_page0 .cover').css({'background-color': cover_bg_color });	
	}
	
	// Make Everything the same height
	var back_height = $('#stacks_in_4_page0 .boxgrid .back').height();
	var cover_height = $('#stacks_in_4_page0 .boxgrid .cover').height();
    var box_height = back_height;
    if ('auto' == 'auto') {        
    	if (back_height > cover_height) {
    		$('#stacks_in_4_page0 .boxgrid .cover').height(back_height);
    		$('#stacks_in_4_page0 .boxgrid').height(back_height);
    	}
    	else {
    	    box_height = cover_height;
    		$('#stacks_in_4_page0 .boxgrid .back').height(cover_height);
    		$('#stacks_in_4_page0 .boxgrid').height(cover_height);
    	}
    }
	// Make Everything the same width
    var box_width;
	var back_width = $('#stacks_in_4_page0 .boxgrid .back').width();
	var cover_width = $('#stacks_in_4_page0 .boxgrid .cover').width();
	if (back_width > cover_width) {
	    box_width = back_width;
		$('#stacks_in_4_page0 .boxgrid .cover').width(back_width);
		$('#stacks_in_4_page0 .boxgrid').width(back_width);
	}
	else {
	    box_width = cover_width;
		$('#stacks_in_4_page0 .boxgrid .back').width(cover_width);
		$('#stacks_in_4_page0 .boxgrid').width(cover_width);
	}
		
   	//Vertical Sliding
	$('#stacks_in_4_page0 .boxgrid.slidedown').hover(function(){
	    console.log('Height: '+ box_height);
		$('.cover', this).stop().animate({top: box_height},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_4_page0 .boxgrid.slideup').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Horizontal Sliding
	$('#stacks_in_4_page0 .boxgrid.slideright').hover(function(){
		$('.cover', this).stop().animate({left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	$('#stacks_in_4_page0 .boxgrid.slideleft').hover(function(){
		$('.cover', this).stop().animate({left:(box_width*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	//Diagnal Sliding
	$('#stacks_in_4_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_4_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_4_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_4_page0 .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:0, left:0},{queue:false,duration:300});
	});
	//Partial Sliding (Only show some of background)
	$('#stacks_in_4_page0 .boxgrid.peekdown').hover(function(){
		$('.cover', this).stop().animate({top:'90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_4_page0 .boxgrid.peekup').hover(function(){
		$('.cover', this).stop().animate({top:'-90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Fadeout Effect
	$('#stacks_in_4_page0 .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.0'},{queue:false,duration:300});			
		}
	});
});
//-- End Mask Stack --//

	return stack;
})(stacks.stacks_in_4_page0);


// Javascript for stacks_in_23_page0
// ---------------------------------------------------------------------

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

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

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

//-- Mask Stack v1.0.5 by Joe Workman --//
$(document).ready(function() {    
	// Set Border
	var bg_border_style = $('#stacks_in_23_page0').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_23_page0').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_23_page0').css('border-top-width');
		var bg_border_right = $('#stacks_in_23_page0').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_23_page0').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_23_page0').css('border-left-width');
		$('#stacks_in_23_page0').css({'border-width':0});	
		$('#stacks_in_23_page0 .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
		});	
	}
	//Set Backgrounds
	var back_bg_color = $('#stacks_in_23_page0 .back .stacks_in').css('background-color');
	if (back_bg_color) { 
		$('#stacks_in_23_page0 .back .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_23_page0 .back').css({'background-color': back_bg_color });	
	}
	var cover_bg_color = $('#stacks_in_23_page0 .cover .stacks_in').css('background-color');
	if (cover_bg_color) { 
		$('#stacks_in_23_page0 .cover .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_23_page0 .cover').css({'background-color': cover_bg_color });	
	}
	
	// Make Everything the same height
	var back_height = $('#stacks_in_23_page0 .boxgrid .back').height();
	var cover_height = $('#stacks_in_23_page0 .boxgrid .cover').height();
    var box_height = back_height;
    if ('auto' == 'auto') {        
    	if (back_height > cover_height) {
    		$('#stacks_in_23_page0 .boxgrid .cover').height(back_height);
    		$('#stacks_in_23_page0 .boxgrid').height(back_height);
    	}
    	else {
    	    box_height = cover_height;
    		$('#stacks_in_23_page0 .boxgrid .back').height(cover_height);
    		$('#stacks_in_23_page0 .boxgrid').height(cover_height);
    	}
    }
	// Make Everything the same width
    var box_width;
	var back_width = $('#stacks_in_23_page0 .boxgrid .back').width();
	var cover_width = $('#stacks_in_23_page0 .boxgrid .cover').width();
	if (back_width > cover_width) {
	    box_width = back_width;
		$('#stacks_in_23_page0 .boxgrid .cover').width(back_width);
		$('#stacks_in_23_page0 .boxgrid').width(back_width);
	}
	else {
	    box_width = cover_width;
		$('#stacks_in_23_page0 .boxgrid .back').width(cover_width);
		$('#stacks_in_23_page0 .boxgrid').width(cover_width);
	}
		
   	//Vertical Sliding
	$('#stacks_in_23_page0 .boxgrid.slidedown').hover(function(){
	    console.log('Height: '+ box_height);
		$('.cover', this).stop().animate({top: box_height},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_23_page0 .boxgrid.slideup').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Horizontal Sliding
	$('#stacks_in_23_page0 .boxgrid.slideright').hover(function(){
		$('.cover', this).stop().animate({left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	$('#stacks_in_23_page0 .boxgrid.slideleft').hover(function(){
		$('.cover', this).stop().animate({left:(box_width*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	//Diagnal Sliding
	$('#stacks_in_23_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_23_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_23_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_23_page0 .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:0, left:0},{queue:false,duration:300});
	});
	//Partial Sliding (Only show some of background)
	$('#stacks_in_23_page0 .boxgrid.peekdown').hover(function(){
		$('.cover', this).stop().animate({top:'90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_23_page0 .boxgrid.peekup').hover(function(){
		$('.cover', this).stop().animate({top:'-90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Fadeout Effect
	$('#stacks_in_23_page0 .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.0'},{queue:false,duration:300});			
		}
	});
});
//-- End Mask Stack --//

	return stack;
})(stacks.stacks_in_23_page0);


// Javascript for stacks_in_34_page0
// ---------------------------------------------------------------------

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

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

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

//-- Mask Stack v1.0.5 by Joe Workman --//
$(document).ready(function() {    
	// Set Border
	var bg_border_style = $('#stacks_in_34_page0').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_34_page0').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_34_page0').css('border-top-width');
		var bg_border_right = $('#stacks_in_34_page0').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_34_page0').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_34_page0').css('border-left-width');
		$('#stacks_in_34_page0').css({'border-width':0});	
		$('#stacks_in_34_page0 .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
		});	
	}
	//Set Backgrounds
	var back_bg_color = $('#stacks_in_34_page0 .back .stacks_in').css('background-color');
	if (back_bg_color) { 
		$('#stacks_in_34_page0 .back .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_34_page0 .back').css({'background-color': back_bg_color });	
	}
	var cover_bg_color = $('#stacks_in_34_page0 .cover .stacks_in').css('background-color');
	if (cover_bg_color) { 
		$('#stacks_in_34_page0 .cover .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_34_page0 .cover').css({'background-color': cover_bg_color });	
	}
	
	// Make Everything the same height
	var back_height = $('#stacks_in_34_page0 .boxgrid .back').height();
	var cover_height = $('#stacks_in_34_page0 .boxgrid .cover').height();
    var box_height = back_height;
    if ('auto' == 'auto') {        
    	if (back_height > cover_height) {
    		$('#stacks_in_34_page0 .boxgrid .cover').height(back_height);
    		$('#stacks_in_34_page0 .boxgrid').height(back_height);
    	}
    	else {
    	    box_height = cover_height;
    		$('#stacks_in_34_page0 .boxgrid .back').height(cover_height);
    		$('#stacks_in_34_page0 .boxgrid').height(cover_height);
    	}
    }
	// Make Everything the same width
    var box_width;
	var back_width = $('#stacks_in_34_page0 .boxgrid .back').width();
	var cover_width = $('#stacks_in_34_page0 .boxgrid .cover').width();
	if (back_width > cover_width) {
	    box_width = back_width;
		$('#stacks_in_34_page0 .boxgrid .cover').width(back_width);
		$('#stacks_in_34_page0 .boxgrid').width(back_width);
	}
	else {
	    box_width = cover_width;
		$('#stacks_in_34_page0 .boxgrid .back').width(cover_width);
		$('#stacks_in_34_page0 .boxgrid').width(cover_width);
	}
		
   	//Vertical Sliding
	$('#stacks_in_34_page0 .boxgrid.slidedown').hover(function(){
	    console.log('Height: '+ box_height);
		$('.cover', this).stop().animate({top: box_height},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_34_page0 .boxgrid.slideup').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Horizontal Sliding
	$('#stacks_in_34_page0 .boxgrid.slideright').hover(function(){
		$('.cover', this).stop().animate({left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	$('#stacks_in_34_page0 .boxgrid.slideleft').hover(function(){
		$('.cover', this).stop().animate({left:(box_width*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	//Diagnal Sliding
	$('#stacks_in_34_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_34_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_34_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_34_page0 .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:0, left:0},{queue:false,duration:300});
	});
	//Partial Sliding (Only show some of background)
	$('#stacks_in_34_page0 .boxgrid.peekdown').hover(function(){
		$('.cover', this).stop().animate({top:'90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_34_page0 .boxgrid.peekup').hover(function(){
		$('.cover', this).stop().animate({top:'-90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Fadeout Effect
	$('#stacks_in_34_page0 .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.0'},{queue:false,duration:300});			
		}
	});
});
//-- End Mask Stack --//

	return stack;
})(stacks.stacks_in_34_page0);


// Javascript for stacks_in_48_page0
// ---------------------------------------------------------------------

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

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

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

//-- Mask Stack v1.0.5 by Joe Workman --//
$(document).ready(function() {    
	// Set Border
	var bg_border_style = $('#stacks_in_48_page0').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_48_page0').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_48_page0').css('border-top-width');
		var bg_border_right = $('#stacks_in_48_page0').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_48_page0').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_48_page0').css('border-left-width');
		$('#stacks_in_48_page0').css({'border-width':0});	
		$('#stacks_in_48_page0 .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
		});	
	}
	//Set Backgrounds
	var back_bg_color = $('#stacks_in_48_page0 .back .stacks_in').css('background-color');
	if (back_bg_color) { 
		$('#stacks_in_48_page0 .back .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_48_page0 .back').css({'background-color': back_bg_color });	
	}
	var cover_bg_color = $('#stacks_in_48_page0 .cover .stacks_in').css('background-color');
	if (cover_bg_color) { 
		$('#stacks_in_48_page0 .cover .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_48_page0 .cover').css({'background-color': cover_bg_color });	
	}
	
	// Make Everything the same height
	var back_height = $('#stacks_in_48_page0 .boxgrid .back').height();
	var cover_height = $('#stacks_in_48_page0 .boxgrid .cover').height();
    var box_height = back_height;
    if ('auto' == 'auto') {        
    	if (back_height > cover_height) {
    		$('#stacks_in_48_page0 .boxgrid .cover').height(back_height);
    		$('#stacks_in_48_page0 .boxgrid').height(back_height);
    	}
    	else {
    	    box_height = cover_height;
    		$('#stacks_in_48_page0 .boxgrid .back').height(cover_height);
    		$('#stacks_in_48_page0 .boxgrid').height(cover_height);
    	}
    }
	// Make Everything the same width
    var box_width;
	var back_width = $('#stacks_in_48_page0 .boxgrid .back').width();
	var cover_width = $('#stacks_in_48_page0 .boxgrid .cover').width();
	if (back_width > cover_width) {
	    box_width = back_width;
		$('#stacks_in_48_page0 .boxgrid .cover').width(back_width);
		$('#stacks_in_48_page0 .boxgrid').width(back_width);
	}
	else {
	    box_width = cover_width;
		$('#stacks_in_48_page0 .boxgrid .back').width(cover_width);
		$('#stacks_in_48_page0 .boxgrid').width(cover_width);
	}
		
   	//Vertical Sliding
	$('#stacks_in_48_page0 .boxgrid.slidedown').hover(function(){
	    console.log('Height: '+ box_height);
		$('.cover', this).stop().animate({top: box_height},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_48_page0 .boxgrid.slideup').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Horizontal Sliding
	$('#stacks_in_48_page0 .boxgrid.slideright').hover(function(){
		$('.cover', this).stop().animate({left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	$('#stacks_in_48_page0 .boxgrid.slideleft').hover(function(){
		$('.cover', this).stop().animate({left:(box_width*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	//Diagnal Sliding
	$('#stacks_in_48_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_48_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_48_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_48_page0 .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:0, left:0},{queue:false,duration:300});
	});
	//Partial Sliding (Only show some of background)
	$('#stacks_in_48_page0 .boxgrid.peekdown').hover(function(){
		$('.cover', this).stop().animate({top:'90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_48_page0 .boxgrid.peekup').hover(function(){
		$('.cover', this).stop().animate({top:'-90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Fadeout Effect
	$('#stacks_in_48_page0 .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.0'},{queue:false,duration:300});			
		}
	});
});
//-- End Mask Stack --//

	return stack;
})(stacks.stacks_in_48_page0);


// Javascript for stacks_in_56_page0
// ---------------------------------------------------------------------

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

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

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

//-- Mask Stack v1.0.5 by Joe Workman --//
$(document).ready(function() {    
	// Set Border
	var bg_border_style = $('#stacks_in_56_page0').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_56_page0').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_56_page0').css('border-top-width');
		var bg_border_right = $('#stacks_in_56_page0').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_56_page0').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_56_page0').css('border-left-width');
		$('#stacks_in_56_page0').css({'border-width':0});	
		$('#stacks_in_56_page0 .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
		});	
	}
	//Set Backgrounds
	var back_bg_color = $('#stacks_in_56_page0 .back .stacks_in').css('background-color');
	if (back_bg_color) { 
		$('#stacks_in_56_page0 .back .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_56_page0 .back').css({'background-color': back_bg_color });	
	}
	var cover_bg_color = $('#stacks_in_56_page0 .cover .stacks_in').css('background-color');
	if (cover_bg_color) { 
		$('#stacks_in_56_page0 .cover .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_56_page0 .cover').css({'background-color': cover_bg_color });	
	}
	
	// Make Everything the same height
	var back_height = $('#stacks_in_56_page0 .boxgrid .back').height();
	var cover_height = $('#stacks_in_56_page0 .boxgrid .cover').height();
    var box_height = back_height;
    if ('auto' == 'auto') {        
    	if (back_height > cover_height) {
    		$('#stacks_in_56_page0 .boxgrid .cover').height(back_height);
    		$('#stacks_in_56_page0 .boxgrid').height(back_height);
    	}
    	else {
    	    box_height = cover_height;
    		$('#stacks_in_56_page0 .boxgrid .back').height(cover_height);
    		$('#stacks_in_56_page0 .boxgrid').height(cover_height);
    	}
    }
	// Make Everything the same width
    var box_width;
	var back_width = $('#stacks_in_56_page0 .boxgrid .back').width();
	var cover_width = $('#stacks_in_56_page0 .boxgrid .cover').width();
	if (back_width > cover_width) {
	    box_width = back_width;
		$('#stacks_in_56_page0 .boxgrid .cover').width(back_width);
		$('#stacks_in_56_page0 .boxgrid').width(back_width);
	}
	else {
	    box_width = cover_width;
		$('#stacks_in_56_page0 .boxgrid .back').width(cover_width);
		$('#stacks_in_56_page0 .boxgrid').width(cover_width);
	}
		
   	//Vertical Sliding
	$('#stacks_in_56_page0 .boxgrid.slidedown').hover(function(){
	    console.log('Height: '+ box_height);
		$('.cover', this).stop().animate({top: box_height},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_56_page0 .boxgrid.slideup').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Horizontal Sliding
	$('#stacks_in_56_page0 .boxgrid.slideright').hover(function(){
		$('.cover', this).stop().animate({left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	$('#stacks_in_56_page0 .boxgrid.slideleft').hover(function(){
		$('.cover', this).stop().animate({left:(box_width*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	//Diagnal Sliding
	$('#stacks_in_56_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_56_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_56_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_56_page0 .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:0, left:0},{queue:false,duration:300});
	});
	//Partial Sliding (Only show some of background)
	$('#stacks_in_56_page0 .boxgrid.peekdown').hover(function(){
		$('.cover', this).stop().animate({top:'90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_56_page0 .boxgrid.peekup').hover(function(){
		$('.cover', this).stop().animate({top:'-90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Fadeout Effect
	$('#stacks_in_56_page0 .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.0'},{queue:false,duration:300});			
		}
	});
});
//-- End Mask Stack --//

	return stack;
})(stacks.stacks_in_56_page0);


// Javascript for stacks_in_64_page0
// ---------------------------------------------------------------------

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

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

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

//-- Mask Stack v1.0.5 by Joe Workman --//
$(document).ready(function() {    
	// Set Border
	var bg_border_style = $('#stacks_in_64_page0').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_64_page0').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_64_page0').css('border-top-width');
		var bg_border_right = $('#stacks_in_64_page0').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_64_page0').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_64_page0').css('border-left-width');
		$('#stacks_in_64_page0').css({'border-width':0});	
		$('#stacks_in_64_page0 .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
		});	
	}
	//Set Backgrounds
	var back_bg_color = $('#stacks_in_64_page0 .back .stacks_in').css('background-color');
	if (back_bg_color) { 
		$('#stacks_in_64_page0 .back .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_64_page0 .back').css({'background-color': back_bg_color });	
	}
	var cover_bg_color = $('#stacks_in_64_page0 .cover .stacks_in').css('background-color');
	if (cover_bg_color) { 
		$('#stacks_in_64_page0 .cover .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_64_page0 .cover').css({'background-color': cover_bg_color });	
	}
	
	// Make Everything the same height
	var back_height = $('#stacks_in_64_page0 .boxgrid .back').height();
	var cover_height = $('#stacks_in_64_page0 .boxgrid .cover').height();
    var box_height = back_height;
    if ('auto' == 'auto') {        
    	if (back_height > cover_height) {
    		$('#stacks_in_64_page0 .boxgrid .cover').height(back_height);
    		$('#stacks_in_64_page0 .boxgrid').height(back_height);
    	}
    	else {
    	    box_height = cover_height;
    		$('#stacks_in_64_page0 .boxgrid .back').height(cover_height);
    		$('#stacks_in_64_page0 .boxgrid').height(cover_height);
    	}
    }
	// Make Everything the same width
    var box_width;
	var back_width = $('#stacks_in_64_page0 .boxgrid .back').width();
	var cover_width = $('#stacks_in_64_page0 .boxgrid .cover').width();
	if (back_width > cover_width) {
	    box_width = back_width;
		$('#stacks_in_64_page0 .boxgrid .cover').width(back_width);
		$('#stacks_in_64_page0 .boxgrid').width(back_width);
	}
	else {
	    box_width = cover_width;
		$('#stacks_in_64_page0 .boxgrid .back').width(cover_width);
		$('#stacks_in_64_page0 .boxgrid').width(cover_width);
	}
		
   	//Vertical Sliding
	$('#stacks_in_64_page0 .boxgrid.slidedown').hover(function(){
	    console.log('Height: '+ box_height);
		$('.cover', this).stop().animate({top: box_height},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_64_page0 .boxgrid.slideup').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Horizontal Sliding
	$('#stacks_in_64_page0 .boxgrid.slideright').hover(function(){
		$('.cover', this).stop().animate({left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	$('#stacks_in_64_page0 .boxgrid.slideleft').hover(function(){
		$('.cover', this).stop().animate({left:(box_width*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	//Diagnal Sliding
	$('#stacks_in_64_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_64_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_64_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_64_page0 .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:0, left:0},{queue:false,duration:300});
	});
	//Partial Sliding (Only show some of background)
	$('#stacks_in_64_page0 .boxgrid.peekdown').hover(function(){
		$('.cover', this).stop().animate({top:'90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_64_page0 .boxgrid.peekup').hover(function(){
		$('.cover', this).stop().animate({top:'-90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Fadeout Effect
	$('#stacks_in_64_page0 .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.0'},{queue:false,duration:300});			
		}
	});
});
//-- End Mask Stack --//

	return stack;
})(stacks.stacks_in_64_page0);


// Javascript for stacks_in_73_page0
// ---------------------------------------------------------------------

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

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

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

//-- Mask Stack v1.0.5 by Joe Workman --//
$(document).ready(function() {    
	// Set Border
	var bg_border_style = $('#stacks_in_73_page0').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_73_page0').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_73_page0').css('border-top-width');
		var bg_border_right = $('#stacks_in_73_page0').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_73_page0').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_73_page0').css('border-left-width');
		$('#stacks_in_73_page0').css({'border-width':0});	
		$('#stacks_in_73_page0 .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
		});	
	}
	//Set Backgrounds
	var back_bg_color = $('#stacks_in_73_page0 .back .stacks_in').css('background-color');
	if (back_bg_color) { 
		$('#stacks_in_73_page0 .back .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_73_page0 .back').css({'background-color': back_bg_color });	
	}
	var cover_bg_color = $('#stacks_in_73_page0 .cover .stacks_in').css('background-color');
	if (cover_bg_color) { 
		$('#stacks_in_73_page0 .cover .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_73_page0 .cover').css({'background-color': cover_bg_color });	
	}
	
	// Make Everything the same height
	var back_height = $('#stacks_in_73_page0 .boxgrid .back').height();
	var cover_height = $('#stacks_in_73_page0 .boxgrid .cover').height();
    var box_height = back_height;
    if ('auto' == 'auto') {        
    	if (back_height > cover_height) {
    		$('#stacks_in_73_page0 .boxgrid .cover').height(back_height);
    		$('#stacks_in_73_page0 .boxgrid').height(back_height);
    	}
    	else {
    	    box_height = cover_height;
    		$('#stacks_in_73_page0 .boxgrid .back').height(cover_height);
    		$('#stacks_in_73_page0 .boxgrid').height(cover_height);
    	}
    }
	// Make Everything the same width
    var box_width;
	var back_width = $('#stacks_in_73_page0 .boxgrid .back').width();
	var cover_width = $('#stacks_in_73_page0 .boxgrid .cover').width();
	if (back_width > cover_width) {
	    box_width = back_width;
		$('#stacks_in_73_page0 .boxgrid .cover').width(back_width);
		$('#stacks_in_73_page0 .boxgrid').width(back_width);
	}
	else {
	    box_width = cover_width;
		$('#stacks_in_73_page0 .boxgrid .back').width(cover_width);
		$('#stacks_in_73_page0 .boxgrid').width(cover_width);
	}
		
   	//Vertical Sliding
	$('#stacks_in_73_page0 .boxgrid.slidedown').hover(function(){
	    console.log('Height: '+ box_height);
		$('.cover', this).stop().animate({top: box_height},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_73_page0 .boxgrid.slideup').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Horizontal Sliding
	$('#stacks_in_73_page0 .boxgrid.slideright').hover(function(){
		$('.cover', this).stop().animate({left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	$('#stacks_in_73_page0 .boxgrid.slideleft').hover(function(){
		$('.cover', this).stop().animate({left:(box_width*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	//Diagnal Sliding
	$('#stacks_in_73_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_73_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_73_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_73_page0 .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:0, left:0},{queue:false,duration:300});
	});
	//Partial Sliding (Only show some of background)
	$('#stacks_in_73_page0 .boxgrid.peekdown').hover(function(){
		$('.cover', this).stop().animate({top:'90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_73_page0 .boxgrid.peekup').hover(function(){
		$('.cover', this).stop().animate({top:'-90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Fadeout Effect
	$('#stacks_in_73_page0 .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.0'},{queue:false,duration:300});			
		}
	});
});
//-- End Mask Stack --//

	return stack;
})(stacks.stacks_in_73_page0);


// Javascript for stacks_in_81_page0
// ---------------------------------------------------------------------

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

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

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

//-- Mask Stack v1.0.5 by Joe Workman --//
$(document).ready(function() {    
	// Set Border
	var bg_border_style = $('#stacks_in_81_page0').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_81_page0').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_81_page0').css('border-top-width');
		var bg_border_right = $('#stacks_in_81_page0').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_81_page0').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_81_page0').css('border-left-width');
		$('#stacks_in_81_page0').css({'border-width':0});	
		$('#stacks_in_81_page0 .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
		});	
	}
	//Set Backgrounds
	var back_bg_color = $('#stacks_in_81_page0 .back .stacks_in').css('background-color');
	if (back_bg_color) { 
		$('#stacks_in_81_page0 .back .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_81_page0 .back').css({'background-color': back_bg_color });	
	}
	var cover_bg_color = $('#stacks_in_81_page0 .cover .stacks_in').css('background-color');
	if (cover_bg_color) { 
		$('#stacks_in_81_page0 .cover .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_81_page0 .cover').css({'background-color': cover_bg_color });	
	}
	
	// Make Everything the same height
	var back_height = $('#stacks_in_81_page0 .boxgrid .back').height();
	var cover_height = $('#stacks_in_81_page0 .boxgrid .cover').height();
    var box_height = back_height;
    if ('auto' == 'auto') {        
    	if (back_height > cover_height) {
    		$('#stacks_in_81_page0 .boxgrid .cover').height(back_height);
    		$('#stacks_in_81_page0 .boxgrid').height(back_height);
    	}
    	else {
    	    box_height = cover_height;
    		$('#stacks_in_81_page0 .boxgrid .back').height(cover_height);
    		$('#stacks_in_81_page0 .boxgrid').height(cover_height);
    	}
    }
	// Make Everything the same width
    var box_width;
	var back_width = $('#stacks_in_81_page0 .boxgrid .back').width();
	var cover_width = $('#stacks_in_81_page0 .boxgrid .cover').width();
	if (back_width > cover_width) {
	    box_width = back_width;
		$('#stacks_in_81_page0 .boxgrid .cover').width(back_width);
		$('#stacks_in_81_page0 .boxgrid').width(back_width);
	}
	else {
	    box_width = cover_width;
		$('#stacks_in_81_page0 .boxgrid .back').width(cover_width);
		$('#stacks_in_81_page0 .boxgrid').width(cover_width);
	}
		
   	//Vertical Sliding
	$('#stacks_in_81_page0 .boxgrid.slidedown').hover(function(){
	    console.log('Height: '+ box_height);
		$('.cover', this).stop().animate({top: box_height},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_81_page0 .boxgrid.slideup').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Horizontal Sliding
	$('#stacks_in_81_page0 .boxgrid.slideright').hover(function(){
		$('.cover', this).stop().animate({left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	$('#stacks_in_81_page0 .boxgrid.slideleft').hover(function(){
		$('.cover', this).stop().animate({left:(box_width*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	//Diagnal Sliding
	$('#stacks_in_81_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_81_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_81_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_81_page0 .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:0, left:0},{queue:false,duration:300});
	});
	//Partial Sliding (Only show some of background)
	$('#stacks_in_81_page0 .boxgrid.peekdown').hover(function(){
		$('.cover', this).stop().animate({top:'90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_81_page0 .boxgrid.peekup').hover(function(){
		$('.cover', this).stop().animate({top:'-90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Fadeout Effect
	$('#stacks_in_81_page0 .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.0'},{queue:false,duration:300});			
		}
	});
});
//-- End Mask Stack --//

	return stack;
})(stacks.stacks_in_81_page0);


// Javascript for stacks_in_89_page0
// ---------------------------------------------------------------------

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

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

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

//-- Mask Stack v1.0.5 by Joe Workman --//
$(document).ready(function() {    
	// Set Border
	var bg_border_style = $('#stacks_in_89_page0').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_89_page0').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_89_page0').css('border-top-width');
		var bg_border_right = $('#stacks_in_89_page0').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_89_page0').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_89_page0').css('border-left-width');
		$('#stacks_in_89_page0').css({'border-width':0});	
		$('#stacks_in_89_page0 .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
		});	
	}
	//Set Backgrounds
	var back_bg_color = $('#stacks_in_89_page0 .back .stacks_in').css('background-color');
	if (back_bg_color) { 
		$('#stacks_in_89_page0 .back .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_89_page0 .back').css({'background-color': back_bg_color });	
	}
	var cover_bg_color = $('#stacks_in_89_page0 .cover .stacks_in').css('background-color');
	if (cover_bg_color) { 
		$('#stacks_in_89_page0 .cover .stacks_in').css({'background-color': 'transparent'});	
		$('#stacks_in_89_page0 .cover').css({'background-color': cover_bg_color });	
	}
	
	// Make Everything the same height
	var back_height = $('#stacks_in_89_page0 .boxgrid .back').height();
	var cover_height = $('#stacks_in_89_page0 .boxgrid .cover').height();
    var box_height = back_height;
    if ('auto' == 'auto') {        
    	if (back_height > cover_height) {
    		$('#stacks_in_89_page0 .boxgrid .cover').height(back_height);
    		$('#stacks_in_89_page0 .boxgrid').height(back_height);
    	}
    	else {
    	    box_height = cover_height;
    		$('#stacks_in_89_page0 .boxgrid .back').height(cover_height);
    		$('#stacks_in_89_page0 .boxgrid').height(cover_height);
    	}
    }
	// Make Everything the same width
    var box_width;
	var back_width = $('#stacks_in_89_page0 .boxgrid .back').width();
	var cover_width = $('#stacks_in_89_page0 .boxgrid .cover').width();
	if (back_width > cover_width) {
	    box_width = back_width;
		$('#stacks_in_89_page0 .boxgrid .cover').width(back_width);
		$('#stacks_in_89_page0 .boxgrid').width(back_width);
	}
	else {
	    box_width = cover_width;
		$('#stacks_in_89_page0 .boxgrid .back').width(cover_width);
		$('#stacks_in_89_page0 .boxgrid').width(cover_width);
	}
		
   	//Vertical Sliding
	$('#stacks_in_89_page0 .boxgrid.slidedown').hover(function(){
	    console.log('Height: '+ box_height);
		$('.cover', this).stop().animate({top: box_height},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_89_page0 .boxgrid.slideup').hover(function(){
		$('.cover', this).stop().animate({top: (box_height*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Horizontal Sliding
	$('#stacks_in_89_page0 .boxgrid.slideright').hover(function(){
		$('.cover', this).stop().animate({left:box_width},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	$('#stacks_in_89_page0 .boxgrid.slideleft').hover(function(){
		$('.cover', this).stop().animate({left:(box_width*-1)},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({left:0},{queue:false,duration:300});
	});
	//Diagnal Sliding
	$('#stacks_in_89_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_89_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_89_page0 .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:0, left:0},{queue:false,duration:300});
	});
	$('#stacks_in_89_page0 .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:0, left:0},{queue:false,duration:300});
	});
	//Partial Sliding (Only show some of background)
	$('#stacks_in_89_page0 .boxgrid.peekdown').hover(function(){
		$('.cover', this).stop().animate({top:'90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	$('#stacks_in_89_page0 .boxgrid.peekup').hover(function(){
		$('.cover', this).stop().animate({top:'-90'},{queue:false,duration:300});
	}, function() {
		$('.cover', this).stop().animate({top:0},{queue:false,duration:300});
	});
	//Fadeout Effect
	$('#stacks_in_89_page0 .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.0'},{queue:false,duration:300});			
		}
	});
});
//-- End Mask Stack --//

	return stack;
})(stacks.stacks_in_89_page0);



