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

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Image Safe v1.2.0 by Joe Workman
$(document).ready(function() {
	var bg_border_style = $('#stacks_in_10_page3').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_10_page3').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_10_page3').css('border-top-width');
		var bg_border_right = $('#stacks_in_10_page3').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_10_page3').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_10_page3').css('border-left-width');
		$('#stacks_in_10_page3').css({'border-width':0});	
		$('#protected_stacks_in_10_page3').css({'border-style':bg_border_style,
								 'border-color':bg_border_color,
								 'border-top-width':bg_border_top,
								 'border-right-width':bg_border_right,
								 'border-bottom-width':bg_border_bottom,	
								 'border-left-width':bg_border_left
		});	
	}
	var img_height = $('#protected_stacks_in_10_page3 img').height();
	var img_width = $('#protected_stacks_in_10_page3 img').width();
	$('#protected_stacks_in_10_page3').height(img_height);
	$('#protected_stacks_in_10_page3').width(img_width);
	$('#protected_stacks_in_10_page3 a').height(img_height);

	var image_src = $("#protected_stacks_in_10_page3 img").attr("src");
	$("#protected_stacks_in_10_page3").css({'background-image':'url(' + image_src + ')'});
	$("#product_image_stacks_in_10_page3").height($("#protected_stacks_in_10_page3 img").height());
	$("#protected_stacks_in_10_page3").width($("#protected_stacks_in_10_page3 img").width());
	$("#protected_stacks_in_10_page3 img").remove();
	
	if ('none' == 'block') {
        $('img').each(function(index) {
            $(this).hide();
            $(this).wrap('<div id="image_safe_'+ index +'" />');
            $('#image_safe_'+ index ).height($(this).height());
            $('#image_safe_'+ index ).width($(this).width());
            $('#image_safe_'+ index ).css({'background-image':'url(' + $(this).attr('src') + ')'});       
            $('.centered_image #image_safe_'+ index ).css({'margin':'0 auto'});       
            $(this).remove();
        });
	}
});
// End Image Safe
	return stack;
})(stacks.stacks_in_10_page3);


// Javascript for stacks_in_14_page3
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Image Safe v1.2.0 by Joe Workman
$(document).ready(function() {
	var bg_border_style = $('#stacks_in_14_page3').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_14_page3').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_14_page3').css('border-top-width');
		var bg_border_right = $('#stacks_in_14_page3').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_14_page3').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_14_page3').css('border-left-width');
		$('#stacks_in_14_page3').css({'border-width':0});	
		$('#protected_stacks_in_14_page3').css({'border-style':bg_border_style,
								 'border-color':bg_border_color,
								 'border-top-width':bg_border_top,
								 'border-right-width':bg_border_right,
								 'border-bottom-width':bg_border_bottom,	
								 'border-left-width':bg_border_left
		});	
	}
	var img_height = $('#protected_stacks_in_14_page3 img').height();
	var img_width = $('#protected_stacks_in_14_page3 img').width();
	$('#protected_stacks_in_14_page3').height(img_height);
	$('#protected_stacks_in_14_page3').width(img_width);
	$('#protected_stacks_in_14_page3 a').height(img_height);

	var image_src = $("#protected_stacks_in_14_page3 img").attr("src");
	$("#protected_stacks_in_14_page3").css({'background-image':'url(' + image_src + ')'});
	$("#product_image_stacks_in_14_page3").height($("#protected_stacks_in_14_page3 img").height());
	$("#protected_stacks_in_14_page3").width($("#protected_stacks_in_14_page3 img").width());
	$("#protected_stacks_in_14_page3 img").remove();
	
	if ('none' == 'block') {
        $('img').each(function(index) {
            $(this).hide();
            $(this).wrap('<div id="image_safe_'+ index +'" />');
            $('#image_safe_'+ index ).height($(this).height());
            $('#image_safe_'+ index ).width($(this).width());
            $('#image_safe_'+ index ).css({'background-image':'url(' + $(this).attr('src') + ')'});       
            $('.centered_image #image_safe_'+ index ).css({'margin':'0 auto'});       
            $(this).remove();
        });
	}
});
// End Image Safe
	return stack;
})(stacks.stacks_in_14_page3);


// Javascript for stacks_in_12_page3
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Image Safe v1.2.0 by Joe Workman
$(document).ready(function() {
	var bg_border_style = $('#stacks_in_12_page3').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_12_page3').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_12_page3').css('border-top-width');
		var bg_border_right = $('#stacks_in_12_page3').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_12_page3').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_12_page3').css('border-left-width');
		$('#stacks_in_12_page3').css({'border-width':0});	
		$('#protected_stacks_in_12_page3').css({'border-style':bg_border_style,
								 'border-color':bg_border_color,
								 'border-top-width':bg_border_top,
								 'border-right-width':bg_border_right,
								 'border-bottom-width':bg_border_bottom,	
								 'border-left-width':bg_border_left
		});	
	}
	var img_height = $('#protected_stacks_in_12_page3 img').height();
	var img_width = $('#protected_stacks_in_12_page3 img').width();
	$('#protected_stacks_in_12_page3').height(img_height);
	$('#protected_stacks_in_12_page3').width(img_width);
	$('#protected_stacks_in_12_page3 a').height(img_height);

	var image_src = $("#protected_stacks_in_12_page3 img").attr("src");
	$("#protected_stacks_in_12_page3").css({'background-image':'url(' + image_src + ')'});
	$("#product_image_stacks_in_12_page3").height($("#protected_stacks_in_12_page3 img").height());
	$("#protected_stacks_in_12_page3").width($("#protected_stacks_in_12_page3 img").width());
	$("#protected_stacks_in_12_page3 img").remove();
	
	if ('none' == 'block') {
        $('img').each(function(index) {
            $(this).hide();
            $(this).wrap('<div id="image_safe_'+ index +'" />');
            $('#image_safe_'+ index ).height($(this).height());
            $('#image_safe_'+ index ).width($(this).width());
            $('#image_safe_'+ index ).css({'background-image':'url(' + $(this).attr('src') + ')'});       
            $('.centered_image #image_safe_'+ index ).css({'margin':'0 auto'});       
            $(this).remove();
        });
	}
});
// End Image Safe
	return stack;
})(stacks.stacks_in_12_page3);


// Javascript for stacks_in_18_page3
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Image Safe v1.2.0 by Joe Workman
$(document).ready(function() {
	var bg_border_style = $('#stacks_in_18_page3').css('border-bottom-style');
	if (bg_border_style) { 
		var bg_border_color = $('#stacks_in_18_page3').css('border-bottom-color');
		var bg_border_top = $('#stacks_in_18_page3').css('border-top-width');
		var bg_border_right = $('#stacks_in_18_page3').css('border-right-width');
		var bg_border_bottom = $('#stacks_in_18_page3').css('border-bottom-width');
		var bg_border_left = $('#stacks_in_18_page3').css('border-left-width');
		$('#stacks_in_18_page3').css({'border-width':0});	
		$('#protected_stacks_in_18_page3').css({'border-style':bg_border_style,
								 'border-color':bg_border_color,
								 'border-top-width':bg_border_top,
								 'border-right-width':bg_border_right,
								 'border-bottom-width':bg_border_bottom,	
								 'border-left-width':bg_border_left
		});	
	}
	var img_height = $('#protected_stacks_in_18_page3 img').height();
	var img_width = $('#protected_stacks_in_18_page3 img').width();
	$('#protected_stacks_in_18_page3').height(img_height);
	$('#protected_stacks_in_18_page3').width(img_width);
	$('#protected_stacks_in_18_page3 a').height(img_height);

	var image_src = $("#protected_stacks_in_18_page3 img").attr("src");
	$("#protected_stacks_in_18_page3").css({'background-image':'url(' + image_src + ')'});
	$("#product_image_stacks_in_18_page3").height($("#protected_stacks_in_18_page3 img").height());
	$("#protected_stacks_in_18_page3").width($("#protected_stacks_in_18_page3 img").width());
	$("#protected_stacks_in_18_page3 img").remove();
	
	if ('none' == 'block') {
        $('img').each(function(index) {
            $(this).hide();
            $(this).wrap('<div id="image_safe_'+ index +'" />');
            $('#image_safe_'+ index ).height($(this).height());
            $('#image_safe_'+ index ).width($(this).width());
            $('#image_safe_'+ index ).css({'background-image':'url(' + $(this).attr('src') + ')'});       
            $('.centered_image #image_safe_'+ index ).css({'margin':'0 auto'});       
            $(this).remove();
        });
	}
});
// End Image Safe
	return stack;
})(stacks.stacks_in_18_page3);


// Javascript for stacks_in_261_page3
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
//-- Like It Stack v1.1.0 by Joe Workman --//

/*  Tallest jQuery Plugin
 *	@author	nickf
 *	@date	2009-08-19
 *	@version 1.0 $Id: jquery.tallest.js 100 2009-08-19 00:40:09Z spadgos $
 */
jQuery(function($) {
	$.fn.tallest = function()       { return this._extremities({ 'aspect' : 'height', 'max' : true  })[0] };
	$.fn.tallestSize = function()   { return this._extremities({ 'aspect' : 'height', 'max' : true  })[1] };
	$.fn.shortest = function()      { return this._extremities({ 'aspect' : 'height', 'max' : false })[0] };
	$.fn.shortestSize = function()  { return this._extremities({ 'aspect' : 'height', 'max' : false })[1] };
	$.fn.widest = function()        { return this._extremities({ 'aspect' : 'width',  'max' : true  })[0] };
	$.fn.widestSize = function()    { return this._extremities({ 'aspect' : 'width',  'max' : true  })[1] };
	$.fn.thinnest = function()      { return this._extremities({ 'aspect' : 'width',  'max' : false })[0] };
	$.fn.thinnestSize = function()  { return this._extremities({ 'aspect' : 'width',  'max' : false })[1] };
	$.fn._extremities = function(options) {
		var defaults = {
			aspect : 'height', // or 'width'
			max : true	// or false to find the min
		};
		options = $.extend(defaults, options);
		if (this.length < 2) {
			return [this, this[options.aspect]()];
		}
		var bestIndex = 0,
			bestSize = this.eq(0)[options.aspect](),
			thisSize
		;
		for (var i = 1; i < this.length; ++i) {
			thisSize = this.eq(i)[options.aspect]();
			if ((options.max && thisSize > bestSize) || (!options.max && thisSize < bestSize)) {
				bestSize = thisSize;
				bestIndex = i;
			}
		}
		return [ this.eq(bestIndex), bestSize ];
	};
});
(function($){ 
    $.getScript = function(url, callback, cache){
    	$.ajax({
    			type: "GET",
    			url: url,
    			success: callback,
    			dataType: "script",
    			cache: true
    	});
    };
})(jQuery)

$(document).ready(function() {	
    
// Twitter Buttons
switch ( 3 ) {
case 1:
	$('#like_twitter1 a').attr('data-count', 'vertical');
    $.getScript('http://platform.twitter.com/widgets.js');
    break;
case 2:
    $('#like_twitter2 a').attr('data-count', 'horizontal');
    $.getScript('http://platform.twitter.com/widgets.js');
    break;
case 3:
    $('#like_twitter3 a').attr('data-count', 'none');
    $.getScript('http://platform.twitter.com/widgets.js');
    break;
default:
    // Do Nothing
}
// Google Buttons
switch ( 5 ) {
case 1:
	$('#like_google1 .like_google').html('<g:plusone size="small" count="false"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 2:
	$('#like_google2 .like_google').html('<g:plusone size="small" count="true"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 3:
	$('#like_google3 .like_google').html('<g:plusone size="medium" count="false"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 4:
	$('#like_google4 .like_google').html('<g:plusone size="medium" count="true"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 5:
	$('#like_google5 .like_google').html('<g:plusone size="standard" count="false"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 6:
	$('#like_google6 .like_google').html('<g:plusone size="standard" count="true"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
case 7:
	$('#like_google7 .like_google').html('<g:plusone size="tall" count="true"></g:plusone>');
    $.getScript('https://apis.google.com/js/plusone.js');
    break;
default:
    // Do Nothing
}

// Facebook Buttons
switch ( 2 ) {
case 1:
    $('#like_facebook1 .like_facebook').html('<fb:like show_faces="false" width="280"></fb:like>');
    break;
case 2:
    $('#like_facebook2 .like_facebook').html('<fb:like layout="button_count" show_faces="false" width="50"></fb:like>');
    break;
case 3:
    $('#like_facebook3 .like_facebook').html('<fb:like layout="box_count" show_faces="false" width="50"></fb:like>');
    break;
case 4:
    $('#like_facebook4 .like_facebook').html('<fb:like show_faces="false" width="450" action="recommend"></fb:like>');
    break;
case 5:
    $('#like_facebook5 .like_facebook').html('<fb:like layout="button_count" show_faces="false" width="50" action="recommend"></fb:like>');
    break;
case 6:
    $('#like_facebook6 .like_facebook').html('<fb:like layout="box_count" show_faces="false" width="50" action="recommend"></fb:like>');
    break;
default:
    // Do Nothing
}
// Digg Buttons
switch ( 0 ) {
case 1:
    $('#like_digg1 a').addClass('DiggWide');
    $.getScript('http://widgets.digg.com/buttons.js');
    break;
case 2:
    $('#like_digg2 a').addClass('DiggMedium');
    $.getScript('http://widgets.digg.com/buttons.js');
    break;
case 3:
    $('#like_digg3 a').addClass('DiggCompact');
    $.getScript('http://widgets.digg.com/buttons.js');
    break;
case 4:
    $('#like_digg4 a').addClass('DiggIcon');
    $.getScript('http://widgets.digg.com/buttons.js');
    break;
default:
    // Do Nothing
}
// LinkedIn Buttons
switch ( 0 ) {
case 1:
    $('#like_linkedin1').html('<script type="in/share" data-counter="top"></script>');
    $.getScript('http://platform.linkedin.com/in.js');
    break;
case 2:
	$('#like_linkedin2').html('<script type="in/share" data-counter="right"></script>');
	$.getScript('http://platform.linkedin.com/in.js');
	break;
case 3:
	$('#like_linkedin3').html('<script type="in/share"></script>');
	$.getScript('http://platform.linkedin.com/in.js');
	break;
default:
    // Do Nothing
}
// Evernote Button
if (0 != 0) {
    $.getScript('http://static.evernote.com/noteit.js');
}
//Email Button
$('.like_email a').attr('href','mailto:?subject=Check out this webpage&body='+location.href);
// Make all buttons have the same height and display it
// $('.like_button_wrapper').height( $('.like_button').tallest().height() );
});

//-- End Like It Stack --//
	return stack;
})(stacks.stacks_in_261_page3);


// Javascript for stacks_in_260_page3
// ---------------------------------------------------------------------

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

// 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_260_page3 = (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_260_page3);



