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

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Styled Stack v1.3.0 by Joe Workman
$(document).ready(function() {	
	var custom_bg_src = $("#custom_bg_stacks_in_17_page20 img").attr("src");
	if (custom_bg_src) { 
	    $("#stacks_in_17_page20").css({'background-image':'url(' + custom_bg_src + ')'});	
	}
	else {
	    var bg_src = 'files/styled-stack-images/stack-bg0.png';
    	if (0 != 0) { $("#stacks_in_17_page20").css({'background-image':'url(' + bg_src + ')'}); }
	}
});
// End Styled Stack

	return stack;
})(stacks.stacks_in_17_page20);


// Javascript for stacks_in_23_page20
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Styled Stack v1.3.0 by Joe Workman
$(document).ready(function() {	
	var custom_bg_src = $("#custom_bg_stacks_in_23_page20 img").attr("src");
	if (custom_bg_src) { 
	    $("#stacks_in_23_page20").css({'background-image':'url(' + custom_bg_src + ')'});	
	}
	else {
	    var bg_src = 'files/styled-stack-images/stack-bg0.png';
    	if (0 != 0) { $("#stacks_in_23_page20").css({'background-image':'url(' + bg_src + ')'}); }
	}
});
// End Styled Stack

	return stack;
})(stacks.stacks_in_23_page20);


// Javascript for stacks_in_1054_page20
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
/* TableBildr Stack by RWExtras v.1.1.0 */
/* Copyright (c) 2011 Mauricio Sabene RWExtras (http://rwextras.com) */
function $addStripes() {$('#stacks_in_1054_page20 table.tablebildr tr:even').addClass("alt")};
function $removeStripes() {$('#stacks_in_1054_page20 table.tablebildr tr').removeClass("alt")};
jQuery(document).ready(function($){
$('<table class="tablebildr"><tbody></tbody></table>').insertBefore('#temptablestacks_in_1054_page20');
var $rowdata = "";var $currbg='';var $currtxt='';
var $index = 0;
var $maxrows = 7;
var $maxcols = 3;
var $cellcontent = "";
var $emptycell = '<p style="text-align:center;">Empty cell: Please add content</p>';
var $cells = $('#temptablestacks_in_1054_page20 > div.stacks_out');
for(var i = 0; i < $maxrows; i++) {
	$rowdata = '<tr class="tb_row'+ i + '">';
	for(var j = 0; j < $maxcols; j++) {
		var $currentcell = $cells.eq($index).html();
		if($currentcell == null) {
		$cellcontent = $emptycell }
		else {
		var $currentID = $cells.eq($index).attr('id');
		$cellcontent = '<div id="' + $currentID +'" class="stacks_out">' + $currentcell + '</div><div class="stacks_clearer"></div>';
		}
		$rowdata = $rowdata + '<td class="tb_row'+ i + ' tb_col'+ j +'">' + $cellcontent + '</td>';
		$index = $index + 1;
		}
	$rowdata = $rowdata + '</tr>';
	$($rowdata).appendTo('#stacks_in_1054_page20 table.tablebildr');
	}
var $cornercell = $('#stacks_in_1054_page20 table.tablebildr tbody tr td.tb_row0.tb_col0 .stacks_in span');
var $headerfontcolor = $cornercell.css('color');
var $headerfontsize = $cornercell.css('font-size');
if ('showheader' == 'showheader'){
	$('#stacks_in_1054_page20 table.tablebildr tbody tr.tb_row0 td').css({'background-color':'#66CCFF', 'font-weight':'bold','text-align':'center','color':$headerfontcolor,'font-size':$headerfontsize});
}
if ('hideheadercol' == 'showheadercol'){
	$('#stacks_in_1054_page20 table.tablebildr tbody td[class$="tb_col0"]').css({'background-color':'#66CCFF', 'font-weight':'bold','text-align':'left','color':$headerfontcolor,'font-size':$headerfontsize});
}
if(true == true) {$addStripes();}
if(true == true) {$('#stacks_in_1054_page20 table.tablebildr tr').hover(function() {$removeStripes(); $(this).addClass('over');}, function() {$(this).removeClass('over'); if(true == true){$addStripes();};});}
if(false == true) {$('#stacks_in_1054_page20 table.tablebildr td').hover(function() {$removeStripes(); var $colx = $(this).attr('class'); $colx = $colx.split(' '); $('#stacks_in_1054_page20 table.tablebildr td.'+$colx[1]).addClass('overc');}, function() {$('#stacks_in_1054_page20 table.tablebildr td').removeClass('overc');if(true == true){$addStripes();}});}
if(false == true) { var $hilitecolor = (true == true || false == true)?'hilite':'hilite2'; $('#stacks_in_1054_page20 table.tablebildr td').hover(function() {$(this).addClass($hilitecolor);}, function() {$(this).removeClass($hilitecolor);});};
$('#temptablestacks_in_1054_page20').remove();
});

	return stack;
})(stacks.stacks_in_1054_page20);


// Javascript for stacks_in_82_page20
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
/* TableBildr Stack by RWExtras v.1.1.0 */
/* Copyright (c) 2011 Mauricio Sabene RWExtras (http://rwextras.com) */
function $addStripes() {$('#stacks_in_82_page20 table.tablebildr tr:even').addClass("alt")};
function $removeStripes() {$('#stacks_in_82_page20 table.tablebildr tr').removeClass("alt")};
jQuery(document).ready(function($){
$('<table class="tablebildr"><tbody></tbody></table>').insertBefore('#temptablestacks_in_82_page20');
var $rowdata = "";var $currbg='';var $currtxt='';
var $index = 0;
var $maxrows = 7;
var $maxcols = 3;
var $cellcontent = "";
var $emptycell = '<p style="text-align:center;">Empty cell: Please add content</p>';
var $cells = $('#temptablestacks_in_82_page20 > div.stacks_out');
for(var i = 0; i < $maxrows; i++) {
	$rowdata = '<tr class="tb_row'+ i + '">';
	for(var j = 0; j < $maxcols; j++) {
		var $currentcell = $cells.eq($index).html();
		if($currentcell == null) {
		$cellcontent = $emptycell }
		else {
		var $currentID = $cells.eq($index).attr('id');
		$cellcontent = '<div id="' + $currentID +'" class="stacks_out">' + $currentcell + '</div><div class="stacks_clearer"></div>';
		}
		$rowdata = $rowdata + '<td class="tb_row'+ i + ' tb_col'+ j +'">' + $cellcontent + '</td>';
		$index = $index + 1;
		}
	$rowdata = $rowdata + '</tr>';
	$($rowdata).appendTo('#stacks_in_82_page20 table.tablebildr');
	}
var $cornercell = $('#stacks_in_82_page20 table.tablebildr tbody tr td.tb_row0.tb_col0 .stacks_in span');
var $headerfontcolor = $cornercell.css('color');
var $headerfontsize = $cornercell.css('font-size');
if ('showheader' == 'showheader'){
	$('#stacks_in_82_page20 table.tablebildr tbody tr.tb_row0 td').css({'background-color':'#66CCFF', 'font-weight':'bold','text-align':'center','color':$headerfontcolor,'font-size':$headerfontsize});
}
if ('hideheadercol' == 'showheadercol'){
	$('#stacks_in_82_page20 table.tablebildr tbody td[class$="tb_col0"]').css({'background-color':'#66CCFF', 'font-weight':'bold','text-align':'left','color':$headerfontcolor,'font-size':$headerfontsize});
}
if(true == true) {$addStripes();}
if(true == true) {$('#stacks_in_82_page20 table.tablebildr tr').hover(function() {$removeStripes(); $(this).addClass('over');}, function() {$(this).removeClass('over'); if(true == true){$addStripes();};});}
if(false == true) {$('#stacks_in_82_page20 table.tablebildr td').hover(function() {$removeStripes(); var $colx = $(this).attr('class'); $colx = $colx.split(' '); $('#stacks_in_82_page20 table.tablebildr td.'+$colx[1]).addClass('overc');}, function() {$('#stacks_in_82_page20 table.tablebildr td').removeClass('overc');if(true == true){$addStripes();}});}
if(false == true) { var $hilitecolor = (true == true || false == true)?'hilite':'hilite2'; $('#stacks_in_82_page20 table.tablebildr td').hover(function() {$(this).addClass($hilitecolor);}, function() {$(this).removeClass($hilitecolor);});};
$('#temptablestacks_in_82_page20').remove();
});

	return stack;
})(stacks.stacks_in_82_page20);



