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

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
//-- lynx v1.0.0 by Nick Cates Design --//

    jQuery.noConflict();
    jQuery(document).ready(function($){
    
        /********** FUNCTION ***********/
    	
        $('.lynxWrap').mouseenter(function(){
          $(this).stop().animate({opacity:1}, 220);
        }).mouseleave(function(){
          $(this).stop().animate({opacity:0}, 220);
        });
        
        $('.lynxLink').mouseup(function(){
          $(this).removeClass('press');
        }).mousedown(function(){
          $(this).addClass('press');
        });
        
        /********** FORM ***********/
    			
        $('.lynxStack').each(function() {
    	    if (!$(this).find('img').length ) {
                $(this).find('.lynxWrap').after('<div class="noImg">Add Image</div>');
                $('.noImg').animate({opacity:1},1000);
                $(this).find('.lynxWrap').remove();
            }
            if (!$(this).find('.lynxLink a').length ) {
            	$(this).find('.lynxTitle').css('padding-bottom','20px');
            }
        });
        
        $('.lynxText:contains("Description Text"), .lynxTitle:contains("Box Title")').remove();
        $('.lynxStack .lynxText a.hover').after('<br />');
    	$('.lynxLink').each(function() {$(this).has('a').addClass('linked');});
    });
    
//-- End lynx Stack --//
	return stack;
})(stacks.stacks_in_143_page110);


// Javascript for stacks_in_151_page110
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
//-- lynx v1.0.0 by Nick Cates Design --//

    jQuery.noConflict();
    jQuery(document).ready(function($){
    
        /********** FUNCTION ***********/
    	
        $('.lynxWrap').mouseenter(function(){
          $(this).stop().animate({opacity:1}, 220);
        }).mouseleave(function(){
          $(this).stop().animate({opacity:0}, 220);
        });
        
        $('.lynxLink').mouseup(function(){
          $(this).removeClass('press');
        }).mousedown(function(){
          $(this).addClass('press');
        });
        
        /********** FORM ***********/
    			
        $('.lynxStack').each(function() {
    	    if (!$(this).find('img').length ) {
                $(this).find('.lynxWrap').after('<div class="noImg">Add Image</div>');
                $('.noImg').animate({opacity:1},1000);
                $(this).find('.lynxWrap').remove();
            }
            if (!$(this).find('.lynxLink a').length ) {
            	$(this).find('.lynxTitle').css('padding-bottom','20px');
            }
        });
        
        $('.lynxText:contains("Description Text"), .lynxTitle:contains("Box Title")').remove();
        $('.lynxStack .lynxText a.hover').after('<br />');
    	$('.lynxLink').each(function() {$(this).has('a').addClass('linked');});
    });
    
//-- End lynx Stack --//
	return stack;
})(stacks.stacks_in_151_page110);



