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

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	

// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// TABBY STACK BY http://www.doobox.co.uk XXXXXXX
// COPYRIGHT@2010 MR JG SIMPSON, TRADING AS DOOBOX
// ALL RIGHTS RESERVED XXXXXXXXXXXXXXXXXXXXXXXXXXX
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

/*
PIE: CSS3 rendering for IE
Version 1.0beta4
http://css3pie.com
Dual-licensed for use under the Apache License Version 2.0 or the General Public License (GPL) Version 2.
*/


$(document).ready(function() {

if(typeof String.prototype.trim !== 'function') {
			String.prototype.trim = function() {
			return this.replace(/^\s+|\s+$/, '');
			}
		}
       
      var stacks_in_5_page64thiscat;
      var stacks_in_5_page64catTrimed;
	$("#stacks_in_5_page64 .stacks_in_5_page64dootabcontainer").each(function() {
		stacks_in_5_page64thiscat = $(".stacks_in_5_page64doocat .stacks_in_5_page64tabname", this).text().trim();
		var stacks_in_5_page64thiscatArray = stacks_in_5_page64thiscat.split(',') 
		var stacks_in_5_page64doothis = $(this);
		
		$.each(stacks_in_5_page64thiscatArray, function(index, catname) {
		stacks_in_5_page64catTrimed = catname.replace(/[^a-z0-9]/gi,"");
		$(stacks_in_5_page64doothis).addClass(stacks_in_5_page64catTrimed);
		var stacks_in_5_page64isCatFound = $("#stacks_in_5_page64tabpicker").html().search(catname);
		if(stacks_in_5_page64isCatFound == -1){
		$("#stacks_in_5_page64tabpicker").append('<a href="#" id="'+stacks_in_5_page64catTrimed+'" class="stacks_in_5_page64doofilter">'+catname+'</a> ');
		}
		});
	});


       

   
   $(".stacks_in_5_page64doofilter").click(function(){
        var thisFilter = $(this).attr("id");
        var filterboxheight = $("#stacks_in_5_page64").height();
        $(".stacks_in_5_page64overalltabcontainer").css("min-height",filterboxheight);
        $(".stacks_in_5_page64dootabcontainer").slideUp();
        $("."+ thisFilter).slideDown('slow', function() {
        	 $(".stacks_in_5_page64overalltabcontainer").animate({"min-height":"10px"},"slow");
 		 });
        $("#stacks_in_5_page64tabpicker a").removeClass("stacks_in_5_page64current");
        $(this).addClass("stacks_in_5_page64current");
        return false;
   });
   

   $("#stacks_in_5_page64tabpicker a:first-child").addClass("stacks_in_5_page64current");


});



// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// END DOOBOX TABBY STACK XXXXXXXXXXXXXXXXXXXX
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	return stack;
})(stacks.stacks_in_5_page64);


// Javascript for stacks_in_10_page64
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Doo Daily Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.
$(document).ready(function() {

var dayname = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday','Friday', 'Saturday'];
	var now = new Date;
    var dow = now.getDay();
    var dooDay = dayname[dow];
    
if (dooDay == 'Saturday'){
$("#stacks_in_10_page64 .dooSat").css('display', 'block');
} 
else if (dooDay == 'Sunday'){
$("#stacks_in_10_page64 .dooSun").css('display', 'block');
} 
else if (dooDay == 'Monday'){
$("#stacks_in_10_page64 .dooMon").css('display', 'block');
} 
else if (dooDay == 'Tuesday'){
$("#stacks_in_10_page64 .dooTue").css('display', 'block'); 
}
else if (dooDay == 'Wednesday'){
$("#stacks_in_10_page64 .dooWed").css('display', 'block');
} 
else if (dooDay == 'Thursday'){
$("#stacks_in_10_page64 .dooThu").css('display', 'block'); 
}
else {
$("#stacks_in_10_page64 .dooFri").css('display', 'block');
}
          
});

// End Doo Daily Stack by http://www.doobox.co.uk



	return stack;
})(stacks.stacks_in_10_page64);



