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

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
/* SymfoniP.com (c) 2010 - Slidey Note Stack Code V1.0 03-Nov-2010
 * modified and derived from SlideNote - A jQuery Plugin for flexible, customizable sliding notifications.
 * Copyright 2010 Tom McFarlin, http://tommcfarlin.com Released under the MIT License
*/
(function(g){var e=0;g.fn.slideNote=function(h){e+=this.length;var i={where:640,corner:"right",url:null,container:"",closeImage:null,_bIsClosed:false};if(h){i=g.extend(i,h)}return this.each(function(){g(this).addClass("symNote"+i.corner);var k=f(this,i);var j=g.browser.msie===true?window:document;if(g(document).height()<=g(window).height()){k.trigger("slideIn")}g(j).scroll(function(){if(g(this).scrollTop()===0){i.bIsClosed=false}if(g(this).scrollTop()>i.where){if(!k.is(":visible")&&!i.bIsClosed){k.trigger("slideIn")}}else{if(g(this).scrollTop()<i.where&&k.queue("fx")[0]!=="inprogress"){if(k.is(":visible")){k.trigger("slideOut")}}}})})};function f(i,h){g(i).toggle().css(h.corner,-1*g(i).outerWidth()).css({position:"fixed",bottom:0}).bind("slideIn",function(j){c(j,i,h)}).bind("slideOut",function(j){d(j,i,h)});b(i,h);a(i,h);return g(i)}function c(h,k,i){var j=i.corner==="right"?{right:0}:{left:0};g(k).show().animate(j,1000,"swing")}function d(h,k,i){var j=i.corner==="right"?{right:-1*g(k).outerWidth()}:{left:-1*g(k).outerWidth()};g(k).animate(j,1000,"swing",function(){if(e===1){g(k).stop(true).hide()}else{g(k).hide()}});if(i.closeImage!==null&&h.target.id===g(k).attr("id")+"_close"){i.bIsClosed=true}}function b(j,i){if(i.url!==null){if(i.container.length!==0&&i.container.indexOf("#")===-1){i.container="#"+i.container}var h=i.container.length===0?i.url:i.url+" "+i.container;g(j).load(h,function(){if(i.closeImage!==null){a(j,i)}})}}function a(j,i){if(i.closeImage!==null){var h=document.createElement("img");g(h).attr("src",i.closeImage).attr("class","close").attr("alt","close").attr("id",g(j).attr("id")+"_close").hover(function(){g(this).css("cursor","pointer")}).click(function(k){k.stopPropagation();g(this).trigger("slideOut")});g(j).prepend(h)}}})(jQuery);
/* Make the Slidey Note go - SymfoniP.com */
jQuery(document).ready(function($) {
	$('#symSlideyNote_stacks_in_16_page1').slideNote({where: 50, closeImage: 'index_files/slideynote/slidenote.close.png', corner: 'right'});
});


	return stack;
})(stacks.stacks_in_16_page1);



