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

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
/* intitialCap Stack by RWExtras v.1.0.1 *//* Copyright (c) 2011 Mauricio Sabene RWExtras (http://rwextras.com) */jQuery(document).ready(function(){	var $this =  jQuery('#icstacks_in_6_page0');	var $ic_text = $this.text();	$ic_text = jQuery.trim($ic_text);	var $ic_cap = $ic_text.substring(0,1);	var $ic_html = $this.html();	if($ic_html.substring(0,1) === '<')	{ $ic_rest = $ic_html.replace($ic_cap,''); }	else { $ic_rest = $ic_html.substring(1); };	$this.html('<span class="initialcap">' + $ic_cap + '</span>' + '<span class="restoftext">' + $ic_rest + '</span>').fadeIn(1000);});
	return stack;
})(stacks.stacks_in_6_page0);



