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

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

// 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_52_page10 = (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 setCookie(name,value,days) {
    if (days) {
        var date = new Date();
        date.setTime(date.getTime()+(days*60*60*1000));
        var expires = "; expires="+date.toGMTString();
    }
    else var expires = "";
    document.cookie = name+"="+value+expires ;
}

function getCookie(name) {
    var nameEQ = name + "=";
    var ca = document.cookie.split(';');
    for(var i=0;i < ca.length;i++) {
        var c = ca[i];
        while (c.charAt(0)==' ') c = c.substring(1,c.length);
        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
    }
    return null;
}

function deleteCookie(name) {
    setCookie(name,"");
}


$(document).ready(function() {



// Get lz cookie
var cooky = getCookie('doo_lz_cookie_set');

 // Create the new lz cookie and store it for 1 day
deleteCookie('doo_lz_cookie_set');

$("#stacks_in_52_page10").css("margin" , 0);
var orgonal = $("#stacks_in_52_page10");
var slidedelay = (3000) ;
var slidespeed = (2000) ;

var position = $("#stacks_in_52_page10").offset();

if (cooky == "lzcookyset"){

}

if (cooky != "lzcookyset"){
  
   
$("<div/>", {
  "class": "doosuperoverlay"
})
.prependTo("body")
.delay(2000)
.fadeOut(2000);


var orgStackWidth = $("#stacks_in_52_page10").width();
var tempClone = $("#stacks_in_52_page10").clone();
$(tempClone).css({
"position" : "relative",
"width" : orgStackWidth + "px",
"text-align" : "left"
});

$(tempClone).fadeIn(1000).appendTo(".doosuperoverlay").css(position)
.delay(2000)
.fadeOut(2000);
  // showstack once
var dooremoveoverlaytimer = 2000 + 2000 + 500;
setTimeout(function(){ $('.doosuperoverlay').remove(); }, dooremoveoverlaytimer);

}  // end if cookie exists

;

 
$('.lzeffect').remove();



if("" != ""){
var doodelaylz = slidedelay + slidespeed + 1000 + 2000 + 2000;
setTimeout(function(){ $("#stacks_in_52_page10").remove(); }, doodelaylz + 1000);
}

});


	return stack;
})(stacks.stacks_in_52_page10);


// Javascript for stacks_in_59_page10
// ---------------------------------------------------------------------

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

// 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_59_page10 = (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_59_page10 .dooSat").css('display', 'block');
} 
else if (dooDay == 'Sunday'){
$("#stacks_in_59_page10 .dooSun").css('display', 'block');
} 
else if (dooDay == 'Monday'){
$("#stacks_in_59_page10 .dooMon").css('display', 'block');
} 
else if (dooDay == 'Tuesday'){
$("#stacks_in_59_page10 .dooTue").css('display', 'block'); 
}
else if (dooDay == 'Wednesday'){
$("#stacks_in_59_page10 .dooWed").css('display', 'block');
} 
else if (dooDay == 'Thursday'){
$("#stacks_in_59_page10 .dooThu").css('display', 'block'); 
}
else {
$("#stacks_in_59_page10 .dooFri").css('display', 'block');
}
          
});

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



	return stack;
})(stacks.stacks_in_59_page10);


// Javascript for stacks_in_441_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_441_page10baaafter img").width();
var baaimageheight = $(".stacks_in_441_page10baaafter img").height();

$(".stacks_in_441_page10before, .stacks_in_441_page10baaafter, .stacks_in_441_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_441_page10baacontainer").mouseenter(function() {
		$(".stacks_in_441_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_441_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_441_page10);


// Javascript for stacks_in_511_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_511_page10baaafter img").width();
var baaimageheight = $(".stacks_in_511_page10baaafter img").height();

$(".stacks_in_511_page10before, .stacks_in_511_page10baaafter, .stacks_in_511_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_511_page10baacontainer").mouseenter(function() {
		$(".stacks_in_511_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_511_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_511_page10);


// Javascript for stacks_in_521_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_521_page10baaafter img").width();
var baaimageheight = $(".stacks_in_521_page10baaafter img").height();

$(".stacks_in_521_page10before, .stacks_in_521_page10baaafter, .stacks_in_521_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_521_page10baacontainer").mouseenter(function() {
		$(".stacks_in_521_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_521_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_521_page10);


// Javascript for stacks_in_431_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_431_page10baaafter img").width();
var baaimageheight = $(".stacks_in_431_page10baaafter img").height();

$(".stacks_in_431_page10before, .stacks_in_431_page10baaafter, .stacks_in_431_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_431_page10baacontainer").mouseenter(function() {
		$(".stacks_in_431_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_431_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_431_page10);


// Javascript for stacks_in_531_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_531_page10baaafter img").width();
var baaimageheight = $(".stacks_in_531_page10baaafter img").height();

$(".stacks_in_531_page10before, .stacks_in_531_page10baaafter, .stacks_in_531_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_531_page10baacontainer").mouseenter(function() {
		$(".stacks_in_531_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_531_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_531_page10);


// Javascript for stacks_in_541_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_541_page10baaafter img").width();
var baaimageheight = $(".stacks_in_541_page10baaafter img").height();

$(".stacks_in_541_page10before, .stacks_in_541_page10baaafter, .stacks_in_541_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_541_page10baacontainer").mouseenter(function() {
		$(".stacks_in_541_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_541_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_541_page10);


// Javascript for stacks_in_421_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_421_page10baaafter img").width();
var baaimageheight = $(".stacks_in_421_page10baaafter img").height();

$(".stacks_in_421_page10before, .stacks_in_421_page10baaafter, .stacks_in_421_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_421_page10baacontainer").mouseenter(function() {
		$(".stacks_in_421_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_421_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_421_page10);


// Javascript for stacks_in_551_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_551_page10baaafter img").width();
var baaimageheight = $(".stacks_in_551_page10baaafter img").height();

$(".stacks_in_551_page10before, .stacks_in_551_page10baaafter, .stacks_in_551_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_551_page10baacontainer").mouseenter(function() {
		$(".stacks_in_551_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_551_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_551_page10);


// Javascript for stacks_in_561_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_561_page10baaafter img").width();
var baaimageheight = $(".stacks_in_561_page10baaafter img").height();

$(".stacks_in_561_page10before, .stacks_in_561_page10baaafter, .stacks_in_561_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_561_page10baacontainer").mouseenter(function() {
		$(".stacks_in_561_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_561_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_561_page10);


// Javascript for stacks_in_411_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_411_page10baaafter img").width();
var baaimageheight = $(".stacks_in_411_page10baaafter img").height();

$(".stacks_in_411_page10before, .stacks_in_411_page10baaafter, .stacks_in_411_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_411_page10baacontainer").mouseenter(function() {
		$(".stacks_in_411_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_411_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_411_page10);


// Javascript for stacks_in_491_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_491_page10baaafter img").width();
var baaimageheight = $(".stacks_in_491_page10baaafter img").height();

$(".stacks_in_491_page10before, .stacks_in_491_page10baaafter, .stacks_in_491_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_491_page10baacontainer").mouseenter(function() {
		$(".stacks_in_491_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_491_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_491_page10);


// Javascript for stacks_in_501_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_501_page10baaafter img").width();
var baaimageheight = $(".stacks_in_501_page10baaafter img").height();

$(".stacks_in_501_page10before, .stacks_in_501_page10baaafter, .stacks_in_501_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_501_page10baacontainer").mouseenter(function() {
		$(".stacks_in_501_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_501_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_501_page10);


// Javascript for stacks_in_401_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_401_page10baaafter img").width();
var baaimageheight = $(".stacks_in_401_page10baaafter img").height();

$(".stacks_in_401_page10before, .stacks_in_401_page10baaafter, .stacks_in_401_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_401_page10baacontainer").mouseenter(function() {
		$(".stacks_in_401_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_401_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_401_page10);


// Javascript for stacks_in_471_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_471_page10baaafter img").width();
var baaimageheight = $(".stacks_in_471_page10baaafter img").height();

$(".stacks_in_471_page10before, .stacks_in_471_page10baaafter, .stacks_in_471_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_471_page10baacontainer").mouseenter(function() {
		$(".stacks_in_471_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_471_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_471_page10);


// Javascript for stacks_in_481_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_481_page10baaafter img").width();
var baaimageheight = $(".stacks_in_481_page10baaafter img").height();

$(".stacks_in_481_page10before, .stacks_in_481_page10baaafter, .stacks_in_481_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_481_page10baacontainer").mouseenter(function() {
		$(".stacks_in_481_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_481_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_481_page10);


// Javascript for stacks_in_363_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_363_page10baaafter img").width();
var baaimageheight = $(".stacks_in_363_page10baaafter img").height();

$(".stacks_in_363_page10before, .stacks_in_363_page10baaafter, .stacks_in_363_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_363_page10baacontainer").mouseenter(function() {
		$(".stacks_in_363_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_363_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_363_page10);


// Javascript for stacks_in_451_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_451_page10baaafter img").width();
var baaimageheight = $(".stacks_in_451_page10baaafter img").height();

$(".stacks_in_451_page10before, .stacks_in_451_page10baaafter, .stacks_in_451_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_451_page10baacontainer").mouseenter(function() {
		$(".stacks_in_451_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_451_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_451_page10);


// Javascript for stacks_in_461_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_461_page10baaafter img").width();
var baaimageheight = $(".stacks_in_461_page10baaafter img").height();

$(".stacks_in_461_page10before, .stacks_in_461_page10baaafter, .stacks_in_461_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_461_page10baacontainer").mouseenter(function() {
		$(".stacks_in_461_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_461_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_461_page10);


// Javascript for stacks_in_346_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_346_page10baaafter img").width();
var baaimageheight = $(".stacks_in_346_page10baaafter img").height();

$(".stacks_in_346_page10before, .stacks_in_346_page10baaafter, .stacks_in_346_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_346_page10baacontainer").mouseenter(function() {
		$(".stacks_in_346_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_346_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_346_page10);


// Javascript for stacks_in_366_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_366_page10baaafter img").width();
var baaimageheight = $(".stacks_in_366_page10baaafter img").height();

$(".stacks_in_366_page10before, .stacks_in_366_page10baaafter, .stacks_in_366_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_366_page10baacontainer").mouseenter(function() {
		$(".stacks_in_366_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_366_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_366_page10);


// Javascript for stacks_in_376_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Before & After Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.

$(document).ready(function() {

var baaimagewidth = $(".stacks_in_376_page10baaafter img").width();
var baaimageheight = $(".stacks_in_376_page10baaafter img").height();

$(".stacks_in_376_page10before, .stacks_in_376_page10baaafter, .stacks_in_376_page10baacontainer").css({
"width": baaimagewidth,
"height": baaimageheight
});


	baaimagewidth = baaimagewidth / 2;
	baaimageheight = baaimageheight / 2;



 
 $(".stacks_in_376_page10baacontainer").mouseenter(function() {
		$(".stacks_in_376_page10baaafter").fadeOut();
  }).mouseleave(function(){
		$(".stacks_in_376_page10baaafter").fadeIn();
  });

});













// End Before & After stack


	return stack;
})(stacks.stacks_in_376_page10);


// Javascript for stacks_in_67_page10
// ---------------------------------------------------------------------

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

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

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

    var numItems = $("#stacks_in_67_page10 .spin").length;
   
    var randomNum = Math.ceil(Math.random()*numItems);
    var randomNum = randomNum - 1;
    $("#stacks_in_67_page10 #spin" + randomNum).css({'display' : 'block'});
    
});

	return stack;
})(stacks.stacks_in_67_page10);


// Javascript for stacks_in_337_page10
// ---------------------------------------------------------------------

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

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

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

//-- Elevator Stack v1.0.0 by Joe Workman --//
/* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing  */
jQuery.easing['jswing'] = jQuery.easing['swing'];
jQuery.extend( jQuery.easing, {
	def: 'easeOutQuad',
	swing: function (x, t, b, c, d) {
		//alert(jQuery.easing.default);
		return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
	},
	easeInQuad: function (x, t, b, c, d) {
		return c*(t/=d)*t + b;
	},
	easeOutQuad: function (x, t, b, c, d) {
		return -c *(t/=d)*(t-2) + b;
	},
	easeInOutQuad: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t + b;
		return -c/2 * ((--t)*(t-2) - 1) + b;
	},
	easeInCubic: function (x, t, b, c, d) {
		return c*(t/=d)*t*t + b;
	},
	easeOutCubic: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t + 1) + b;
	},
	easeInOutCubic: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t + b;
		return c/2*((t-=2)*t*t + 2) + b;
	},
	easeInQuart: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t + b;
	},
	easeOutQuart: function (x, t, b, c, d) {
		return -c * ((t=t/d-1)*t*t*t - 1) + b;
	},
	easeInOutQuart: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t + b;
		return -c/2 * ((t-=2)*t*t*t - 2) + b;
	},
	easeInQuint: function (x, t, b, c, d) {
		return c*(t/=d)*t*t*t*t + b;
	},
	easeOutQuint: function (x, t, b, c, d) {
		return c*((t=t/d-1)*t*t*t*t + 1) + b;
	},
	easeInOutQuint: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b;
		return c/2*((t-=2)*t*t*t*t + 2) + b;
	},
	easeInSine: function (x, t, b, c, d) {
		return -c * Math.cos(t/d * (Math.PI/2)) + c + b;
	},
	easeOutSine: function (x, t, b, c, d) {
		return c * Math.sin(t/d * (Math.PI/2)) + b;
	},
	easeInOutSine: function (x, t, b, c, d) {
		return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b;
	},
	easeInExpo: function (x, t, b, c, d) {
		return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b;
	},
	easeOutExpo: function (x, t, b, c, d) {
		return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b;
	},
	easeInOutExpo: function (x, t, b, c, d) {
		if (t==0) return b;
		if (t==d) return b+c;
		if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b;
		return c/2 * (-Math.pow(2, -10 * --t) + 2) + b;
	},
	easeInCirc: function (x, t, b, c, d) {
		return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b;
	},
	easeOutCirc: function (x, t, b, c, d) {
		return c * Math.sqrt(1 - (t=t/d-1)*t) + b;
	},
	easeInOutCirc: function (x, t, b, c, d) {
		if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b;
		return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b;
	},
	easeInElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
	},
	easeOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d)==1) return b+c;  if (!p) p=d*.3;
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b;
	},
	easeInOutElastic: function (x, t, b, c, d) {
		var s=1.70158;var p=0;var a=c;
		if (t==0) return b;  if ((t/=d/2)==2) return b+c;  if (!p) p=d*(.3*1.5);
		if (a < Math.abs(c)) { a=c; var s=p/4; }
		else var s = p/(2*Math.PI) * Math.asin (c/a);
		if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b;
		return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b;
	},
	easeInBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*(t/=d)*t*((s+1)*t - s) + b;
	},
	easeOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158;
		return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b;
	},
	easeInOutBack: function (x, t, b, c, d, s) {
		if (s == undefined) s = 1.70158; 
		if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b;
		return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b;
	},
	easeInBounce: function (x, t, b, c, d) {
		return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b;
	},
	easeOutBounce: function (x, t, b, c, d) {
		if ((t/=d) < (1/2.75)) {
			return c*(7.5625*t*t) + b;
		} else if (t < (2/2.75)) {
			return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
		} else if (t < (2.5/2.75)) {
			return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
		} else {
			return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
		}
	},
	easeInOutBounce: function (x, t, b, c, d) {
		if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b;
		return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b;
	}
});
/* UItoTop jQuery Plugin 1.1 - http://www.mattvarone.com/web-design/uitotop-jquery-plugin */
(function($){
	$.fn.UItoTop = function(options) {

 		var defaults = {
			text: 'To Top',
			min: 200,
			inDelay:600,
			outDelay:400,
  			containerID: 'toTop',
			containerHoverID: 'toTopHover',
			scrollSpeed: 1200,
			easingType: 'linear'
 		};

 		var settings = $.extend(defaults, options);
		var containerIDhash = '#' + settings.containerID;
		var containerHoverIDHash = '#'+settings.containerHoverID;
		
		$('body').append('<a href="#" id="'+settings.containerID+'">'+settings.text+'</a>');
		$(containerIDhash).hide().click(function(){
			$('html, body').animate({scrollTop:0}, settings.scrollSpeed, settings.easingType);
			$('#'+settings.containerHoverID, this).stop().animate({'opacity': 0 }, settings.inDelay, settings.easingType);
			return false;
		})
		.prepend('<span id="'+settings.containerHoverID+'"></span>')
		.hover(function() {
				$(containerHoverIDHash, this).stop().animate({
					'opacity': 1
				}, 600, 'linear');
			}, function() { 
				$(containerHoverIDHash, this).stop().animate({
					'opacity': 0
				}, 700, 'linear');
			});
					
		$(window).scroll(function() {
			var sd = $(window).scrollTop();
			if(typeof document.body.style.maxHeight === "undefined") {
				$(containerIDhash).css({
					'position': 'absolute',
					'top': $(window).scrollTop() + $(window).height() - 50
				});
			}
			if ( sd > settings.min ) 
				$(containerIDhash).fadeIn(settings.inDelay);
			else 
				$(containerIDhash).fadeOut(settings.Outdelay);
		});
};
})(jQuery);

$(document).ready(function() {	
    $().UItoTop({ easingType:'easeOutQuart', scrollSpeed:1200, min:200 });		
});
//-- End Elevator Stack --//

	return stack;
})(stacks.stacks_in_337_page10);



