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

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
/*	LayerUp Stack jQuery Code 3.0.0  *//* ***********************************************************************************	Copyright (c) 2011, Mauricio Sabene. All rights reserved./* ************************************************************************************/(function($) {  $.fn.BuildUp = 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('layerup_top'),          leftS = $this.data('layerup_left'),          delayS = $this.data('layerup_duration');      $this.css({top: topS + 'px', left: leftS + 'px'});      $this.fadeTo(0,0);      $this.delay(cum_delay);      $this.fadeTo(1000,1);      cum_delay = cum_delay + delayS + 1000;    });    callback = function(loops) {      setTimeout(function() {        $$this.BuildUp(0);        if (loops > 1) callback(loops - 1);      }, cum_delay);    }    if (loops >= 2) callback(loops - 1);    return this;  };$(window).load(function() {    var rwId = 'stacks_in_2095_page8',        rwDelay = 0,        rwLoops = 1,        allLayers = $('.bu_slide', document.getElementById('buildup' + rwId)),        layerup_comp = $('#buildup' + rwId),        layerupouter = $('#bu_' + rwId);    allLayers.hide(0);    layerupouter.css('background-image', 'none');    layerup_comp.css('visibility', 'visible');    allLayers.BuildUp(rwDelay * 1000, rwLoops);    layerupouter.children('.toggleBuildUp').click(function() {      layerup_comp.toggle('slow');      return false;    });    layerupouter.children('.reloadBuildUp').click(function() {      if (!allLayers.parent().children().is(':animated')) {        layerup_comp.show('slow');        setTimeout(function() {          allLayers.BuildUp(1000);        }, 500);      }      return false;    });  });})(jQuery);
	return stack;
})(stacks.stacks_in_2095_page8);



