
// '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_9_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_9_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_9_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;
	
(function($) {
    $.fn.wait = function(option, options) {
        milli = 1000; 
        if (option && (typeof option == 'function' || isNaN(option)) ) { 
            options = option;
        } else if (option) { 
            milli = option;
        }
        // set defaults
        var defaults = {
            msec: milli,
            onEnd: options
        },
        settings = $.extend({},defaults, options);

        if(typeof settings.onEnd == 'function') {
            this.each(function() {
                setTimeout(settings.onEnd, settings.msec);
            });
            return this;
        } else {
            return this.queue('fx',
            function() {
                var self = this;
                setTimeout(function() { $.dequeue(self); },settings.msec);
            });
        }

    }
})(jQuery);

jQuery(document).ready(function(){
	var theRIFX='bottom';
	var theRIOffset;
	if ((theRIFX=='top') || (theRIFX=='bottom')) {
		theRIOffset=-180+'px';
	}
	else {
		theRIOffset=-240+'px';
		jQuery('#slideImgstacks_in_9_page30 div.overlay').css('top', 0);
	}
	jQuery('#slideImgstacks_in_9_page30 div.overlay').each(function() {
		jQuery(this).css({
			'bottom': theRIOffset,
			width: 240-10+'px',
			height: 180-10+'px'
			});
	});
	jQuery('#slideImgstacks_in_9_page30').hover(
			function() {
				jQuery(this).find('div.overlay').stop().animate({'bottom': 0}, 500);
			}, function() {
				jQuery(this).find('div.overlay').stop().wait(1000).animate({'bottom':theRIOffset}, 500);
			});
});
	return stack;
})(stacks.stacks_in_9_page30);


// Javascript for stacks_in_13_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_13_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_13_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;
	
(function($) {
    $.fn.wait = function(option, options) {
        milli = 1000; 
        if (option && (typeof option == 'function' || isNaN(option)) ) { 
            options = option;
        } else if (option) { 
            milli = option;
        }
        // set defaults
        var defaults = {
            msec: milli,
            onEnd: options
        },
        settings = $.extend({},defaults, options);

        if(typeof settings.onEnd == 'function') {
            this.each(function() {
                setTimeout(settings.onEnd, settings.msec);
            });
            return this;
        } else {
            return this.queue('fx',
            function() {
                var self = this;
                setTimeout(function() { $.dequeue(self); },settings.msec);
            });
        }

    }
})(jQuery);

jQuery(document).ready(function(){
	var theRIFX='bottom';
	var theRIOffset;
	if ((theRIFX=='top') || (theRIFX=='bottom')) {
		theRIOffset=-180+'px';
	}
	else {
		theRIOffset=-240+'px';
		jQuery('#slideImgstacks_in_13_page30 div.overlay').css('top', 0);
	}
	jQuery('#slideImgstacks_in_13_page30 div.overlay').each(function() {
		jQuery(this).css({
			'bottom': theRIOffset,
			width: 240-10+'px',
			height: 180-10+'px'
			});
	});
	jQuery('#slideImgstacks_in_13_page30').hover(
			function() {
				jQuery(this).find('div.overlay').stop().animate({'bottom': 0}, 500);
			}, function() {
				jQuery(this).find('div.overlay').stop().wait(1000).animate({'bottom':theRIOffset}, 500);
			});
});
	return stack;
})(stacks.stacks_in_13_page30);


// Javascript for stacks_in_20_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_20_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_20_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;
	
(function($) {
    $.fn.wait = function(option, options) {
        milli = 1000; 
        if (option && (typeof option == 'function' || isNaN(option)) ) { 
            options = option;
        } else if (option) { 
            milli = option;
        }
        // set defaults
        var defaults = {
            msec: milli,
            onEnd: options
        },
        settings = $.extend({},defaults, options);

        if(typeof settings.onEnd == 'function') {
            this.each(function() {
                setTimeout(settings.onEnd, settings.msec);
            });
            return this;
        } else {
            return this.queue('fx',
            function() {
                var self = this;
                setTimeout(function() { $.dequeue(self); },settings.msec);
            });
        }

    }
})(jQuery);

jQuery(document).ready(function(){
	var theRIFX='bottom';
	var theRIOffset;
	if ((theRIFX=='top') || (theRIFX=='bottom')) {
		theRIOffset=-180+'px';
	}
	else {
		theRIOffset=-241+'px';
		jQuery('#slideImgstacks_in_20_page30 div.overlay').css('top', 0);
	}
	jQuery('#slideImgstacks_in_20_page30 div.overlay').each(function() {
		jQuery(this).css({
			'bottom': theRIOffset,
			width: 241-10+'px',
			height: 180-10+'px'
			});
	});
	jQuery('#slideImgstacks_in_20_page30').hover(
			function() {
				jQuery(this).find('div.overlay').stop().animate({'bottom': 0}, 500);
			}, function() {
				jQuery(this).find('div.overlay').stop().wait(1000).animate({'bottom':theRIOffset}, 500);
			});
});
	return stack;
})(stacks.stacks_in_20_page30);


// Javascript for stacks_in_24_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_24_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_24_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;
	
(function($) {
    $.fn.wait = function(option, options) {
        milli = 1000; 
        if (option && (typeof option == 'function' || isNaN(option)) ) { 
            options = option;
        } else if (option) { 
            milli = option;
        }
        // set defaults
        var defaults = {
            msec: milli,
            onEnd: options
        },
        settings = $.extend({},defaults, options);

        if(typeof settings.onEnd == 'function') {
            this.each(function() {
                setTimeout(settings.onEnd, settings.msec);
            });
            return this;
        } else {
            return this.queue('fx',
            function() {
                var self = this;
                setTimeout(function() { $.dequeue(self); },settings.msec);
            });
        }

    }
})(jQuery);

jQuery(document).ready(function(){
	var theRIFX='bottom';
	var theRIOffset;
	if ((theRIFX=='top') || (theRIFX=='bottom')) {
		theRIOffset=-180+'px';
	}
	else {
		theRIOffset=-241+'px';
		jQuery('#slideImgstacks_in_24_page30 div.overlay').css('top', 0);
	}
	jQuery('#slideImgstacks_in_24_page30 div.overlay').each(function() {
		jQuery(this).css({
			'bottom': theRIOffset,
			width: 241-10+'px',
			height: 180-10+'px'
			});
	});
	jQuery('#slideImgstacks_in_24_page30').hover(
			function() {
				jQuery(this).find('div.overlay').stop().animate({'bottom': 0}, 500);
			}, function() {
				jQuery(this).find('div.overlay').stop().wait(1000).animate({'bottom':theRIOffset}, 500);
			});
});
	return stack;
})(stacks.stacks_in_24_page30);



