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

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

// 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_43_page14 = (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 Stack jQuery Code 2.0.0  *//* ***********************************************************************************	Copyright (c) 2010, Mauricio Sabene. All rights reserved./* ************************************************************************************/var allLayers;var animate_comp;function aniMate (start_delay){	var cum_delay= start_delay;	allLayers.each(function(layer) {	var ms_topS = jQuery(this).data('aniMate_topStart');	var ms_leftS = jQuery(this).data('aniMate_leftStart');		var ms_fadeIn = jQuery(this).data('aniMate_transition');	var ms_topE = jQuery(this).data('aniMate_topEnd');	var ms_leftE = jQuery(this).data('aniMate_leftEnd');	var ms_opac = jQuery(this).data('aniMate_opacity')/100;	var ms_holdIn = jQuery(this).data('aniMate_holdIn');	var ms_holdOut = jQuery(this).data('aniMate_holdOut');	var ms_animation = jQuery(this).data('aniMate_animation');	jQuery(this).css({top: ms_topS+'px', left: ms_leftS+'px'}).fadeTo(0,0);	jQuery(this).delay(cum_delay);	jQuery(this).fadeTo(ms_fadeIn, 1);	jQuery(this).delay(ms_holdIn);	jQuery(this).animate({top: ms_topE+'px', left: ms_leftE+'px', opacity: ms_opac}, ms_animation).delay(ms_holdOut);	cum_delay = cum_delay + ms_fadeIn + ms_holdIn + ms_animation + ms_holdOut;	}); return cum_delay;}jQuery(window).load(function() {	allLayers = jQuery('#ms_aniMatestacks_in_43_page14 .stacks_out .stacks_in .aniMate_slide');	allLayers.hide();	jQuery('#aniMateouterstacks_in_43_page14').css({ backgroundImage: 'none'});	jQuery('#ms_aniMatestacks_in_43_page14').css({ visibility: 'visible'});	animate_comp = jQuery('#ms_aniMatestacks_in_43_page14');	var ms_duration = aniMate(0000) + 1000;	for(var i = 1; i < 10; i++) {	setTimeout(function(){aniMate(0);}, 0000 + i * (ms_duration - 0000));	}	jQuery('#aniMateouterstacks_in_43_page14 .toggleaniMate').click(function() {		animate_comp.toggle('slow');		return false;	});	jQuery('#aniMateouterstacks_in_43_page14 .reloadaniMate').click(function() {		if (!allLayers.parent().children().is(':animated')) {		animate_comp.show('slow'); setTimeout(function(){aniMate(1000);}, 1000); }		return false;	});});
	return stack;
})(stacks.stacks_in_43_page14);



