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

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
/*	aniMate Pro Stack jQuery Code 3.0.0  *//* ***********************************************************************************	Copyright (c) 2011, Mauricio Sabene. All rights reserved./* ************************************************************************************/(function($) {  $.fn.aniMatePro = function(start_delay, loops) {    var cum_delay = start_delay, $$this = this, callback;    loops = loops ? loops : 1;    this.each(function() {      var $this = $(this),	topS = $this.data('animatepro_topstart'),	leftS = $this.data('animatepro_leftstart'),	fadeIn = $this.data('animatepro_transition'),	topE = $this.data('animatepro_topend'),	leftE = $this.data('animatepro_leftend'),	opac = $this.data('animatepro_opacity') / 100,	holdIn = $this.data('animatepro_holdin'),	holdOut = $this.data('animatepro_holdout'),	animation = $this.data('animatepro_animation'),	topM = $this.data('animatepro_topmiddle'),	leftM = $this.data('animatepro_leftmiddle'),	holdM = $this.data('animatepro_durationmiddle'),	effect = $this.data('animatepro_effect');      $this.css({top: topS + 'px', left: leftS + 'px'});      if (effect === 'grow') $this.fadeTo(0,1).hide(0);      else if (effect === 'slide') $this.fadeTo(0,1).slideUp(0);      else $this.fadeTo(0,0);      $this.delay(cum_delay);      if (effect === 'grow') $this.show(fadeIn);      else if (effect === 'slide') $this.slideDown(fadeIn);      else $this.fadeTo(fadeIn,1);      $this.delay(100);      $this.animate({top: topM + 'px', left: leftM + 'px'}, holdM);      $this.delay(holdIn);      $this.animate({top: topE + 'px', left: leftE + 'px', opacity: opac}, animation).delay(holdOut);      cum_delay = cum_delay + fadeIn + 100 + holdM + holdIn + animation + holdOut;    });    callback = function(loops) {      setTimeout(function() {        $$this.aniMatePro(0);        if (loops > 1) callback(loops - 1);      }, cum_delay);    }    if (loops >= 2) callback(loops - 1);    return this;  };$(window).load(function() {    var rwId = 'stacks_in_1_page9',        rwDelay = 0,        rwLoops = 1,        allLayers = $('.aniMatePro_slide', document.getElementById('ms_aniMatePro' + rwId)),        animate_comp = $('#ms_aniMatePro' + rwId),        aniMateProouter = $('#aniMateProouter' + rwId);    allLayers.hide(0);    aniMateProouter.css('background-image', 'none');    animate_comp.css('visibility', 'visible');    allLayers.aniMatePro(rwDelay * 1000, rwLoops);    aniMateProouter.children('.toggleaniMatePro').click(function() {      animate_comp.toggle('slow');      return false;    });    aniMateProouter.children('.reloadaniMatePro').click(function() {      if (!allLayers.parent().children().is(':animated')) {        animate_comp.show('slow');        setTimeout(function() {          allLayers.aniMatePro(1000);        }, 500);      }      return false;    });  });})(jQuery);
	return stack;
})(stacks.stacks_in_1_page9);


// Javascript for stacks_in_47_page9
// ---------------------------------------------------------------------

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

// 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_47_page9 = (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_47_page9').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_47_page9').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_47_page9').css('border-top-width');
		var bg_border_right = $('#stacks_in_47_page9').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_47_page9').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_47_page9').css('border-left-width');
		$('#stacks_in_47_page9').css({'border-width':0});	
		$('#stacks_in_47_page9 .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_47_page9 .boxgrid .cover img').height();
	var box_width = $('#stacks_in_47_page9 .boxgrid .cover img').width();
	$('#stacks_in_47_page9 .boxgrid').height(box_height);
	$('#stacks_in_47_page9 .boxgrid').width(box_width);
	$('#stacks_in_47_page9 .back .stacks_in').first().height(box_height);
	
   	//Vertical Sliding
	$('#stacks_in_47_page9 .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_47_page9 .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_47_page9 .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_47_page9 .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_47_page9 .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_47_page9 .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_47_page9 .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_47_page9 .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_47_page9 .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_47_page9 .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_47_page9);


// Javascript for stacks_in_55_page9
// ---------------------------------------------------------------------

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

// 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_55_page9 = (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_55_page9').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_55_page9').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_55_page9').css('border-top-width');
		var bg_border_right = $('#stacks_in_55_page9').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_55_page9').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_55_page9').css('border-left-width');
		$('#stacks_in_55_page9').css({'border-width':0});	
		$('#stacks_in_55_page9 .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_55_page9 .boxgrid .cover img').height();
	var box_width = $('#stacks_in_55_page9 .boxgrid .cover img').width();
	$('#stacks_in_55_page9 .boxgrid').height(box_height);
	$('#stacks_in_55_page9 .boxgrid').width(box_width);
	$('#stacks_in_55_page9 .back .stacks_in').first().height(box_height);
	
   	//Vertical Sliding
	$('#stacks_in_55_page9 .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_55_page9 .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_55_page9 .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_55_page9 .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_55_page9 .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_55_page9 .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_55_page9 .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_55_page9 .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_55_page9 .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_55_page9 .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_55_page9);


// Javascript for stacks_in_61_page9
// ---------------------------------------------------------------------

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

// 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_61_page9 = (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_61_page9').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_61_page9').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_61_page9').css('border-top-width');
		var bg_border_right = $('#stacks_in_61_page9').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_61_page9').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_61_page9').css('border-left-width');
		$('#stacks_in_61_page9').css({'border-width':0});	
		$('#stacks_in_61_page9 .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_61_page9 .boxgrid .cover img').height();
	var box_width = $('#stacks_in_61_page9 .boxgrid .cover img').width();
	$('#stacks_in_61_page9 .boxgrid').height(box_height);
	$('#stacks_in_61_page9 .boxgrid').width(box_width);
	$('#stacks_in_61_page9 .back .stacks_in').first().height(box_height);
	
   	//Vertical Sliding
	$('#stacks_in_61_page9 .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_61_page9 .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_61_page9 .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_61_page9 .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_61_page9 .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_61_page9 .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_61_page9 .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_61_page9 .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_61_page9 .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_61_page9 .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_61_page9);


// Javascript for stacks_in_68_page9
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Styled Stack v1.3.0 by Joe Workman
$(document).ready(function() {	
	var custom_bg_src = $("#custom_bg_stacks_in_68_page9 img").attr("src");
	if (custom_bg_src) { 
	    $("#stacks_in_68_page9").css({'background-image':'url(' + custom_bg_src + ')'});	
	}
	else {
	    var bg_src = 'index_files/styled-stack-images/stack-bg0.png';
    	if (0 != 0) { $("#stacks_in_68_page9").css({'background-image':'url(' + bg_src + ')'}); }
	}
});
// End Styled Stack

	return stack;
})(stacks.stacks_in_68_page9);



