
// '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_4212_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_4212_page0 = {};

// 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_4212_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;
	
// imagelist Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.



$(document).ready(function() {


if("no" == "yes"){
var thefirstsource = $( "#stacks_in_4212_page0:first-child img" ).attr("src");
$( "#stacks_in_4212_page0 .listIcon .centered_image" ).each(function(){
$(this).html('<img width="128" height="128" src="' + thefirstsource + '" />');
});
}

else{

$("#stacks_in_4212_page0 .listIcon").each(function(){
if(!$(this).find("img").attr("src")){
$(this).html('<img width="128" height="128" src="index_files/imagelistimages/tick.png" />');
}
});

}

$( "#stacks_in_4212_page0 li" ).css("list-style-type", "none");
});

	return stack;
})(stacks.stacks_in_4212_page0);


// Javascript for stacks_in_4216_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_4216_page0 = {};

// 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_4216_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;
	
// imagelist Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.



$(document).ready(function() {


if("no" == "yes"){
var thefirstsource = $( "#stacks_in_4216_page0:first-child img" ).attr("src");
$( "#stacks_in_4216_page0 .listIcon .centered_image" ).each(function(){
$(this).html('<img width="128" height="128" src="' + thefirstsource + '" />');
});
}

else{

$("#stacks_in_4216_page0 .listIcon").each(function(){
if(!$(this).find("img").attr("src")){
$(this).html('<img width="128" height="128" src="index_files/imagelistimages/tick.png" />');
}
});

}

$( "#stacks_in_4216_page0 li" ).css("list-style-type", "none");
});

	return stack;
})(stacks.stacks_in_4216_page0);


// Javascript for stacks_in_4220_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_4220_page0 = {};

// 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_4220_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;
	
// imagelist Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.



$(document).ready(function() {


if("no" == "yes"){
var thefirstsource = $( "#stacks_in_4220_page0:first-child img" ).attr("src");
$( "#stacks_in_4220_page0 .listIcon .centered_image" ).each(function(){
$(this).html('<img width="128" height="128" src="' + thefirstsource + '" />');
});
}

else{

$("#stacks_in_4220_page0 .listIcon").each(function(){
if(!$(this).find("img").attr("src")){
$(this).html('<img width="128" height="128" src="index_files/imagelistimages/tick.png" />');
}
});

}

$( "#stacks_in_4220_page0 li" ).css("list-style-type", "none");
});

	return stack;
})(stacks.stacks_in_4220_page0);


// Javascript for stacks_in_4224_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_4224_page0 = {};

// 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_4224_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;
	
// imagelist Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.



$(document).ready(function() {


if("no" == "yes"){
var thefirstsource = $( "#stacks_in_4224_page0:first-child img" ).attr("src");
$( "#stacks_in_4224_page0 .listIcon .centered_image" ).each(function(){
$(this).html('<img width="128" height="128" src="' + thefirstsource + '" />');
});
}

else{

$("#stacks_in_4224_page0 .listIcon").each(function(){
if(!$(this).find("img").attr("src")){
$(this).html('<img width="128" height="128" src="index_files/imagelistimages/tick.png" />');
}
});

}

$( "#stacks_in_4224_page0 li" ).css("list-style-type", "none");
});

	return stack;
})(stacks.stacks_in_4224_page0);


// Javascript for stacks_in_4243_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_4243_page0 = {};

// 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_4243_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;
	

  

  jQuery(document).ready(function($){

function findPlainTextExceptInLinks(element, substring, callback) {
    for (var childi= element.childNodes.length; childi-->0;) {
        var child= element.childNodes[childi];
        if (child.nodeType===1) {
            if (child.tagName.toLowerCase()!=='a')
                findPlainTextExceptInLinks(child, substring, callback);
        } else if (child.nodeType===3) {
            var index= child.data.length;
            while (true) {
                index= child.data.lastIndexOf(substring, index);
                if (index===-1)
                    break;
                callback.call(window, child, index)
            }
        }
    }
}

var substring= 'TeleportMe';
findPlainTextExceptInLinks(document.body, substring, function(node, index) {
    node.splitText(index+substring.length);
    var span= document.createElement('span');
    span.className = "teleportHere";
    span.appendChild(node.splitText(index));
    node.parentNode.insertBefore(span, node.nextSibling);
});


var injectionStack = $("#stacks_in_4243_page0 .teleportMe").html();


$(".teleportHere").replaceWith(injectionStack);
$("#stacks_in_4243_page0 .teleportMe").hide();

});
	return stack;
})(stacks.stacks_in_4243_page0);


// Javascript for stacks_in_4245_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_4245_page0 = {};

// 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_4245_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;
	
var $ic = jQuery.noConflict();
$ic(document).ready(function () {
	
	//Show the caption container permanently if required
	$ic('#imageCaptionBoxstacks_in_4245_page0').show();
	
	//Hide the caption container on load
	//$ic('#imageCaptionBoxstacks_in_4245_page0').hide();
	
	//Make caption background transparent using jQuery
	$ic('#imageCaptionBoxstacks_in_4245_page0').css('opacity', '0.75');
	
	//Fetches the image width to calculate caption width 
	var captionWidth = $ic('#imageCaptionstacks_in_4245_page0 img').width();
	
	//Set width of caption to match image width  
	$ic('#imageCaptionBoxstacks_in_4245_page0').css({'width':captionWidth});
	
	//Centers the caption horizontally, based on image size
	var captionCenter = $('#imageCaptionBoxstacks_in_4245_page0');
	captionCenter.css({'z-index' : '999', position: 'absolute', left: '50%','margin-left': 0 - (captionCenter.width() / 2)
	});
	   
	//$ic('#imageCaptionstacks_in_4245_page0').hover(  
		//function () {  
		//show caption on hover  
		//$ic('#imageCaptionBoxstacks_in_4245_page0', this).fadeIn(800);
		//},   
		//function () {  
		//hide caption again 
		//$ic('#imageCaptionBoxstacks_in_4245_page0', this).fadeOut(300);          
		//}  
	//);  
});
	return stack;
})(stacks.stacks_in_4245_page0);


// Javascript for stacks_in_4250_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_4250_page0 = {};

// 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_4250_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;
	
var $ic = jQuery.noConflict();
$ic(document).ready(function () {
	
	//Show the caption container permanently if required
	$ic('#imageCaptionBoxstacks_in_4250_page0').show();
	
	//Hide the caption container on load
	//$ic('#imageCaptionBoxstacks_in_4250_page0').hide();
	
	//Make caption background transparent using jQuery
	$ic('#imageCaptionBoxstacks_in_4250_page0').css('opacity', '0.75');
	
	//Fetches the image width to calculate caption width 
	var captionWidth = $ic('#imageCaptionstacks_in_4250_page0 img').width();
	
	//Set width of caption to match image width  
	$ic('#imageCaptionBoxstacks_in_4250_page0').css({'width':captionWidth});
	
	//Centers the caption horizontally, based on image size
	var captionCenter = $('#imageCaptionBoxstacks_in_4250_page0');
	captionCenter.css({'z-index' : '999', position: 'absolute', left: '50%','margin-left': 0 - (captionCenter.width() / 2)
	});
	   
	//$ic('#imageCaptionstacks_in_4250_page0').hover(  
		//function () {  
		//show caption on hover  
		//$ic('#imageCaptionBoxstacks_in_4250_page0', this).fadeIn(800);
		//},   
		//function () {  
		//hide caption again 
		//$ic('#imageCaptionBoxstacks_in_4250_page0', this).fadeOut(300);          
		//}  
	//);  
});
	return stack;
})(stacks.stacks_in_4250_page0);


// Javascript for stacks_in_4255_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_4255_page0 = {};

// 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_4255_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;
	
var $ic = jQuery.noConflict();
$ic(document).ready(function () {
	
	//Show the caption container permanently if required
	$ic('#imageCaptionBoxstacks_in_4255_page0').show();
	
	//Hide the caption container on load
	//$ic('#imageCaptionBoxstacks_in_4255_page0').hide();
	
	//Make caption background transparent using jQuery
	$ic('#imageCaptionBoxstacks_in_4255_page0').css('opacity', '0.75');
	
	//Fetches the image width to calculate caption width 
	var captionWidth = $ic('#imageCaptionstacks_in_4255_page0 img').width();
	
	//Set width of caption to match image width  
	$ic('#imageCaptionBoxstacks_in_4255_page0').css({'width':captionWidth});
	
	//Centers the caption horizontally, based on image size
	var captionCenter = $('#imageCaptionBoxstacks_in_4255_page0');
	captionCenter.css({'z-index' : '999', position: 'absolute', left: '50%','margin-left': 0 - (captionCenter.width() / 2)
	});
	   
	//$ic('#imageCaptionstacks_in_4255_page0').hover(  
		//function () {  
		//show caption on hover  
		//$ic('#imageCaptionBoxstacks_in_4255_page0', this).fadeIn(800);
		//},   
		//function () {  
		//hide caption again 
		//$ic('#imageCaptionBoxstacks_in_4255_page0', this).fadeOut(300);          
		//}  
	//);  
});
	return stack;
})(stacks.stacks_in_4255_page0);


// Javascript for stacks_in_4260_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_4260_page0 = {};

// 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_4260_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;
	
var $ic = jQuery.noConflict();
$ic(document).ready(function () {
	
	//Show the caption container permanently if required
	$ic('#imageCaptionBoxstacks_in_4260_page0').show();
	
	//Hide the caption container on load
	//$ic('#imageCaptionBoxstacks_in_4260_page0').hide();
	
	//Make caption background transparent using jQuery
	$ic('#imageCaptionBoxstacks_in_4260_page0').css('opacity', '0.75');
	
	//Fetches the image width to calculate caption width 
	var captionWidth = $ic('#imageCaptionstacks_in_4260_page0 img').width();
	
	//Set width of caption to match image width  
	$ic('#imageCaptionBoxstacks_in_4260_page0').css({'width':captionWidth});
	
	//Centers the caption horizontally, based on image size
	var captionCenter = $('#imageCaptionBoxstacks_in_4260_page0');
	captionCenter.css({'z-index' : '999', position: 'absolute', left: '50%','margin-left': 0 - (captionCenter.width() / 2)
	});
	   
	//$ic('#imageCaptionstacks_in_4260_page0').hover(  
		//function () {  
		//show caption on hover  
		//$ic('#imageCaptionBoxstacks_in_4260_page0', this).fadeIn(800);
		//},   
		//function () {  
		//hide caption again 
		//$ic('#imageCaptionBoxstacks_in_4260_page0', this).fadeOut(300);          
		//}  
	//);  
});
	return stack;
})(stacks.stacks_in_4260_page0);


// Javascript for stacks_in_4265_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_4265_page0 = {};

// 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_4265_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;
	
var $ic = jQuery.noConflict();
$ic(document).ready(function () {
	
	//Show the caption container permanently if required
	$ic('#imageCaptionBoxstacks_in_4265_page0').show();
	
	//Hide the caption container on load
	//$ic('#imageCaptionBoxstacks_in_4265_page0').hide();
	
	//Make caption background transparent using jQuery
	$ic('#imageCaptionBoxstacks_in_4265_page0').css('opacity', '0.75');
	
	//Fetches the image width to calculate caption width 
	var captionWidth = $ic('#imageCaptionstacks_in_4265_page0 img').width();
	
	//Set width of caption to match image width  
	$ic('#imageCaptionBoxstacks_in_4265_page0').css({'width':captionWidth});
	
	//Centers the caption horizontally, based on image size
	var captionCenter = $('#imageCaptionBoxstacks_in_4265_page0');
	captionCenter.css({'z-index' : '999', position: 'absolute', left: '50%','margin-left': 0 - (captionCenter.width() / 2)
	});
	   
	//$ic('#imageCaptionstacks_in_4265_page0').hover(  
		//function () {  
		//show caption on hover  
		//$ic('#imageCaptionBoxstacks_in_4265_page0', this).fadeIn(800);
		//},   
		//function () {  
		//hide caption again 
		//$ic('#imageCaptionBoxstacks_in_4265_page0', this).fadeOut(300);          
		//}  
	//);  
});
	return stack;
})(stacks.stacks_in_4265_page0);


// Javascript for stacks_in_4270_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_4270_page0 = {};

// 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_4270_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;
	
var $ic = jQuery.noConflict();
$ic(document).ready(function () {
	
	//Show the caption container permanently if required
	$ic('#imageCaptionBoxstacks_in_4270_page0').show();
	
	//Hide the caption container on load
	//$ic('#imageCaptionBoxstacks_in_4270_page0').hide();
	
	//Make caption background transparent using jQuery
	$ic('#imageCaptionBoxstacks_in_4270_page0').css('opacity', '0.75');
	
	//Fetches the image width to calculate caption width 
	var captionWidth = $ic('#imageCaptionstacks_in_4270_page0 img').width();
	
	//Set width of caption to match image width  
	$ic('#imageCaptionBoxstacks_in_4270_page0').css({'width':captionWidth});
	
	//Centers the caption horizontally, based on image size
	var captionCenter = $('#imageCaptionBoxstacks_in_4270_page0');
	captionCenter.css({'z-index' : '999', position: 'absolute', left: '50%','margin-left': 0 - (captionCenter.width() / 2)
	});
	   
	//$ic('#imageCaptionstacks_in_4270_page0').hover(  
		//function () {  
		//show caption on hover  
		//$ic('#imageCaptionBoxstacks_in_4270_page0', this).fadeIn(800);
		//},   
		//function () {  
		//hide caption again 
		//$ic('#imageCaptionBoxstacks_in_4270_page0', this).fadeOut(300);          
		//}  
	//);  
});
	return stack;
})(stacks.stacks_in_4270_page0);


// Javascript for stacks_in_4275_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_4275_page0 = {};

// 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_4275_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;
	
var $ic = jQuery.noConflict();
$ic(document).ready(function () {
	
	//Show the caption container permanently if required
	$ic('#imageCaptionBoxstacks_in_4275_page0').show();
	
	//Hide the caption container on load
	//$ic('#imageCaptionBoxstacks_in_4275_page0').hide();
	
	//Make caption background transparent using jQuery
	$ic('#imageCaptionBoxstacks_in_4275_page0').css('opacity', '0.75');
	
	//Fetches the image width to calculate caption width 
	var captionWidth = $ic('#imageCaptionstacks_in_4275_page0 img').width();
	
	//Set width of caption to match image width  
	$ic('#imageCaptionBoxstacks_in_4275_page0').css({'width':captionWidth});
	
	//Centers the caption horizontally, based on image size
	var captionCenter = $('#imageCaptionBoxstacks_in_4275_page0');
	captionCenter.css({'z-index' : '999', position: 'absolute', left: '50%','margin-left': 0 - (captionCenter.width() / 2)
	});
	   
	//$ic('#imageCaptionstacks_in_4275_page0').hover(  
		//function () {  
		//show caption on hover  
		//$ic('#imageCaptionBoxstacks_in_4275_page0', this).fadeIn(800);
		//},   
		//function () {  
		//hide caption again 
		//$ic('#imageCaptionBoxstacks_in_4275_page0', this).fadeOut(300);          
		//}  
	//);  
});
	return stack;
})(stacks.stacks_in_4275_page0);



