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

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

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

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

if (cooky == "lzcookyset"){

}

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


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

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

}  // end if cookie exists

$(orgonal).delay(slidedelay).slideUp(slidespeed);;

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



if("$(orgonal).delay(slidedelay).slideUp(slidespeed);" != ""){
var doodelaylz = slidedelay + slidespeed + 1000 + 2000 + 3000;
setTimeout(function(){ $("#stacks_in_1_page63").remove(); }, doodelaylz + 1000);
}

});


	return stack;
})(stacks.stacks_in_1_page63);


// Javascript for stacks_in_9_page63
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
/*	aniMate Pro Stack jQuery Code 3.0.0  *//* ***********************************************************************************	Copyright (c) 2011, Mauricio Sabene. All rights reserved./* ************************************************************************************/(function($) {  $.fn.aniMatePro = function(start_delay, loops) {    var cum_delay = start_delay, $$this = this, callback;    loops = loops ? loops : 1;    this.each(function() {      var $this = $(this),          topS = $this.data('aniMatePro_topStart'),          leftS = $this.data('aniMatePro_leftStart'),          fadeIn = $this.data('aniMatePro_transition'),          topE = $this.data('aniMatePro_topEnd'),          leftE = $this.data('aniMatePro_leftEnd'),          opac = $this.data('aniMatePro_opacity') / 100,          holdIn = $this.data('aniMatePro_holdIn'),          holdOut = $this.data('aniMatePro_holdOut'),          animation = $this.data('aniMatePro_animation'),          topM = $this.data('aniMatePro_topMiddle'),          leftM = $this.data('aniMatePro_leftMiddle'),          holdM = $this.data('aniMatePro_durationMiddle'),          effect = $this.data('aniMatePro_effect');      $this.css({top: topS + 'px', left: leftS + 'px'});      if (effect === 'grow') $this.fadeTo(0,1).hide(0);      else if (effect === 'slide') $this.fadeTo(0,1).slideUp(0);      else $this.fadeTo(0,0);      $this.delay(cum_delay);      if (effect === 'grow') $this.show(fadeIn);      else if (effect === 'slide') $this.slideDown(fadeIn);      else $this.fadeTo(fadeIn,1);      $this.delay(100);      $this.animate({top: topM + 'px', left: leftM + 'px'}, holdM);      $this.delay(holdIn);      $this.animate({top: topE + 'px', left: leftE + 'px', opacity: opac}, animation).delay(holdOut);      cum_delay = cum_delay + fadeIn + 100 + holdM + holdIn + animation + holdOut;    });    callback = function(loops) {      setTimeout(function() {        $$this.aniMatePro(0);        if (loops > 1) callback(loops - 1);      }, cum_delay);    }    if (loops >= 2) callback(loops - 1);    return this;  };$(window).load(function() {    var rwId = 'stacks_in_9_page63',        rwDelay = 0,        rwLoops = 999,        allLayers = $('.aniMatePro_slide', document.getElementById('ms_aniMatePro' + rwId)),        animate_comp = $('#ms_aniMatePro' + rwId),        aniMateProouter = $('#aniMateProouter' + rwId);    allLayers.hide(0);    aniMateProouter.css('background-image', 'none');    animate_comp.css('visibility', 'visible');    allLayers.aniMatePro(rwDelay * 1000, rwLoops);    aniMateProouter.children('.toggleaniMatePro').click(function() {      animate_comp.toggle('slow');      return false;    });    aniMateProouter.children('.reloadaniMatePro').click(function() {      if (!allLayers.parent().children().is(':animated')) {        animate_comp.show('slow');        setTimeout(function() {          allLayers.aniMatePro(1000);        }, 500);      }      return false;    });  });})(jQuery);
	return stack;
})(stacks.stacks_in_9_page63);



