
// 'stacks' is the Stacks global object.
// All of the other Stacks related Javascript will 
// be attatched to it.
var stacks = {};


// this call to jQuery gives us access to the globaal
// jQuery object. 
// 'noConflict' removes the '$' variable.
// 'true' removes the 'jQuery' variable.
// removing these globals reduces conflicts with other 
// jQuery versions that might be running on this page.
stacks.jQuery = jQuery.noConflict(true);

// Javascript for stacks_in_5_page30
// ---------------------------------------------------------------------

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

// A closure is defined and assined to the stack's object.  The object
// is also passed in as 'stack' which gives you a shorthand for refering
// to this object from elsewhere.
stacks.stacks_in_5_page30 = (function(stack) {

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
/*	BuildUp Stack jQuery Code *//* ***********************************************************************************	Copyright (c) 2010, Mauricio Sabene. All rights reserved./* ************************************************************************************/function BuildUp (startDelay){var cum_delay= 0;jQuery('#buildupstacks_in_5_page30 .bu_slide').hide().delay(startDelay);jQuery('#buildupstacks_in_5_page30 .bu_slide').each(function() {var ms_delay= parseInt(jQuery(this).attr('lang'),10);jQuery(this).delay(cum_delay).fadeIn(1200);cum_delay = cum_delay + ms_delay;});}jQuery(document).ready(function(){BuildUp(0000);jQuery('#stacks_in_5_page30 .toggleBuildUp').click(function() {jQuery('#buildupstacks_in_5_page30').toggle('slow');return false;});jQuery('#stacks_in_5_page30 .reloadBuildUp').click(function() {jQuery('#buildupstacks_in_5_page30').show('slow'); BuildUp(1000);return false;});});
	return stack;
})(stacks.stacks_in_5_page30);



