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

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

// 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_1572_page33 = (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_1572_page33").css("margin" , 0);
var orgonal = $("#stacks_in_1572_page33");
var slidedelay = (3000) ;
var slidespeed = (2000) ;

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

if (cooky == "lzcookyset"){

}

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


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

$(tempClone).fadeIn(2000).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 + 2000 + 2000 + 2000;
setTimeout(function(){ $("#stacks_in_1572_page33").remove(); }, doodelaylz + 1000);
}

});


	return stack;
})(stacks.stacks_in_1572_page33);


// Javascript for stacks_in_1587_page33
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Lightbox v2.1.1 by Joe Workman
$(document).ready(function() {
	if ('compliant' == 'noncompliant') {
    	var img_height = $('#compliant_1 img').height();
    	var img_width = $('#compliant_1 img').width();
    	var image_src = $("#compliant_1 img").attr("src");

    	$('#compliant_1').height(img_height);
    	$('#compliant_1').width(img_width);
    	$('#compliant_1 a').height(img_height);
    	$("#compliant_1").css({'background-image':'url(' + image_src + ')'});
    	$("#compliant_1 div").remove();
	}
});
// End Lightbox
	return stack;
})(stacks.stacks_in_1587_page33);


// Javascript for stacks_in_1597_page33
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Lightbox v2.1.1 by Joe Workman
$(document).ready(function() {
	if ('compliant' == 'noncompliant') {
    	var img_height = $('#compliant_2 img').height();
    	var img_width = $('#compliant_2 img').width();
    	var image_src = $("#compliant_2 img").attr("src");

    	$('#compliant_2').height(img_height);
    	$('#compliant_2').width(img_width);
    	$('#compliant_2 a').height(img_height);
    	$("#compliant_2").css({'background-image':'url(' + image_src + ')'});
    	$("#compliant_2 div").remove();
	}
});
// End Lightbox
	return stack;
})(stacks.stacks_in_1597_page33);



