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

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

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

jQuery(document).ready(function($){
	$('#nav ul li').hover(
		function(){
			$('ul:first',this).show();
		},
		function(){
			$('ul:first',this).hide();
		}
	);
});
	return stack;
})(stacks.stacks_in_668_page10);


// Javascript for stacks_in_39_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	

// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// TWEETS STACK BY http://www.doobox.co.uk XXXXXXX
// COPYRIGHT@2010 MR JG SIMPSON, TRADING AS DOOBOX
// ALL RIGHTS RESERVED XXXXXXXXXXXXXXXXXXXXXXXXXXX
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx




// DOCUMENT READY FUNCTIONS
$(document).ready(function() {

   switch ("simbo") { 
        case 'TimelessHotel': 

            break; //end case 

        case 'ParadiseInn': 
   
            break; //end case 

        case 'TetrisHotel': 
 
            break; //end case  

        case 'JamstoneInn': 
   
            break; //end case 
    }




(function($){
	
	$.fn.stacks_in_39_page10twitterfeed = function(username, options) {	
	
		// Set pluign defaults
		var defaults = {
			limit: 1,
			tweeticon: true,
			retweets: false,
			replies: false,
			ssl: false
		};  
		var options = $.extend(defaults, options); 
		
		// Functions
		return this.each(function(i, e) {
			var $e = $(e);
			var s = '';
			
			// Add feed class to user div
			if (!$e.hasClass('stacks_in_39_page10twitterFeed')) $e.addClass('stacks_in_39_page10twitterFeed');
			
			// Check for valid user name
			if (username == null) return false;

			// Check limit does not exceed max
			if (options.limit > 200) options.limit = 200;

			// Check for SSL protocol
			if (options.ssl) s = 's';

			// Reverse replies option
			if (options.replies == true) { options.replies = false; } else { options.replies = true; }

			// Define Twitter feed request
			var url = 'http'+ s +'://api.twitter.com/1/statuses/user_timeline.json?include_rts='+ options.retweets +'&exclude_replies='+ options.replies +'&screen_name='+ username +'&count='+ options.limit;
			var params = {};

			params.count = options.limit;

			// Send request
			jQuery.ajax({
				url: url,
				data: params,
				dataType: 'jsonp',
				success: function (o) {
					_callback(e, o, options);
				}
			});
				
		});
	};
	
	// Callback function to create HTML result
	var _callback = function(e, feeds, options) {
		if (!feeds) {
			return false;
		}
		var html = '';	
		

		// Add body
		html += '<ul>';
		
		// Add feeds
		for (var i=0; i<feeds.length; i++) {
			
			// Get individual feed
			if (feeds[i].retweeted_status) {
				var tweet= feeds[i].retweeted_status;
			} else {
				var tweet= feeds[i];
			}
			var link = '<a href="http://twitter.com/' + tweet.user.screen_name + '/" title="Visit '+ tweet.user.name +' on Twitter">';

			// Add feed row
			html += '<li class="stacks_in_39_page10twitterRow"><div class="stacks_in_39_page10rowinner">';

			// Add user icon if required
			if ("0" == "show") {
				var icon = tweet.user.profile_image_url;

				html += link + '<img src="'+ icon +'" alt="'+ name +'" /></a>';
			}
			
			if ("0" == "custom") {
				html += link + '<img src="files/testimagecontrol_39.png" alt="'+ name +'" /></a>';
			}
		
			
			// Add lapsed time if required
			if ("none" == "top") {
				var lapsedTime = getLapsedTime(tweet.created_at);
				html += '<div class="stacks_in_39_page10tweetTime">'+ lapsedTime +'</div>'
			}
			
			
			html += '<div class="stacks_in_39_page10bodycontainer">';
			
			

			// Add user if required
				var name = tweet.user.name;
				if ("custom" == "username") {
				html += '<div class="stacks_in_39_page10tweetName">'+ link + name +'</a></div>'
				}else if("custom" == "custom"){
				html += '<div class="stacks_in_39_page10tweetName">DERNIÈRES INFOS</div>'
				}else{
				html += ""
				}
			
			
			// Get tweet text and add links (by Yusuke Horie)
			var text = tweet.text
				.replace(/(https?:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)/, function (u) {
					var shortUrl = (u.length > 30) ? u.substr(0, 30) + '…': u;
					return '<a href="' + u + '" title="Click to view this link">' + shortUrl + '</a>';
				})
				.replace(/@([a-zA-Z0-9_]+)/g, '@<a href="http://twitter.com/$1" title="Click to view $1 on Twitter">$1</a>')
				.replace(/(?:^|\s)#([^\s\.\+:!]+)/g, function (a, u) {
					return ' <a href="http://twitter.com/search?q=' + encodeURIComponent(u) + '" title="Click to view this on Twitter">#' + u + '</a>';
			});
			html += '<div class="stacks_in_39_page10tweetmessage">'+ text+'</div>'
			html += '</div>';
			
			// Add lapsed time if required
			if ("none" == "bottom") {
				var lapsedTime = getLapsedTime(tweet.created_at);
				html += '<div class="stacks_in_39_page10tweetTime">'+ lapsedTime +'</div>'
			}
			
			
			html += '<div style="clear:both;"></div></div></li>';
						
		}
		
		html += '</ul>' +
			'</div>'
		
		$(e).html(html);
	};

	function getLapsedTime(strDate) {
		
		// Reformat Twitter date so that IE can convert
		strDate = Date.parse(strDate.replace(/^([a-z]{3})( [a-z]{3} \d\d?)(.*)( \d{4})$/i, '$1,$2$4$3'));

		// Define current time and format tweet date
		var todayDate = new Date();	
		var tweetDate = new Date(strDate)

		// Get lasped time in seconds
		var lapsedTime = Math.round((todayDate.getTime() - tweetDate.getTime())/1000)

		// Return lasped time in seconds, minutes, hours, days and weeks
		if (lapsedTime < 60) {
			return 'JP';
		} else if (lapsedTime < (60*60)) {
			return (Math.round(lapsedTime / 60)) + 'm';
		} else if (lapsedTime < (24*60*60)) {
			return (Math.round(lapsedTime / 3600)) + 'h';  //removed -1 from hour not so sure yet??
		} else if (lapsedTime < (7*24*60*60)) {
			return (Math.round(lapsedTime / 86400)) + 'd';  //removed -1 from day not so sure yet??
		} else {
			return (Math.round(lapsedTime / 604800)) + 'w'; //removed -1 from week not so sure yet??
		}
	};
})(jQuery);



$(document).ready(function () {

	$('.stacks_in_39_page10tweets').stacks_in_39_page10twitterfeed('PMofficiel', {
		limit: 1
	});
	
	var itsIEnine = navigator.userAgent.match(/MSIE 9/i) != null;

	if(itsIEnine){
	$(".stacks_in_39_page10rowinner").css({
    "background" : "#FF0000"
    });
	}
	
});


});





// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
// END DOOBOX TWEETS STACK XXXXXXXXXXXXXXXXXXXX
// xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
	return stack;
})(stacks.stacks_in_39_page10);


// Javascript for stacks_in_26_page10
// ---------------------------------------------------------------------

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

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


// Javascript for stacks_in_31_page10
// ---------------------------------------------------------------------

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

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


// Javascript for stacks_in_88_page10
// ---------------------------------------------------------------------

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

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


// Javascript for stacks_in_154_page10
// ---------------------------------------------------------------------

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

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


// Javascript for stacks_in_148_page10
// ---------------------------------------------------------------------

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

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


// Javascript for stacks_in_61_page10
// ---------------------------------------------------------------------

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

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


// Javascript for stacks_in_6_page10
// ---------------------------------------------------------------------

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

// 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_6_page10 = (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 ('noncompliant' == 'noncompliant') {
    	var img_height = $('#compliant_stacks_in_6_page10 img').height();
    	var img_width = $('#compliant_stacks_in_6_page10 img').width();
    	var image_src = $("#compliant_stacks_in_6_page10 img").attr("src");

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


// Javascript for stacks_in_159_page10
// ---------------------------------------------------------------------

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

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


// Javascript for stacks_in_53_page10
// ---------------------------------------------------------------------

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

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


// Javascript for stacks_in_67_page10
// ---------------------------------------------------------------------

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

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


// Javascript for stacks_in_97_page10
// ---------------------------------------------------------------------

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

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


// Javascript for stacks_in_670_page10
// ---------------------------------------------------------------------

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

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

	// When jQuery is used it will be available as $ and jQuery but only
	// inside the closure.
	var jQuery = stacks.jQuery;
	var $ = jQuery;
	
// Background Stack by http://www.doobox.co.uk
// Copyright@2010 Mr JG Simpson, trading as Doobox.
// all rights reserved.



$(document).ready(function() {
jQuery.url = function()
{
	var segments = {};
	
	var parsed = {};
	
	/**
    * Options object. Only the URI and strictMode values can be changed via the setters below.
    */
  	var options = {
	
		url : window.location, // default URI is the page in which the script is running
		
		strictMode: false, // 'loose' parsing by default
	
		key: ["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"], // keys available to query 
		
		q: {
			name: "queryKey",
			parser: /(?:^|&)([^&=]*)=?([^&]*)/g
		},
		
		parser: {
			strict: /^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,  //less intuitive, more accurate to the specs
			loose:  /^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/ // more intuitive, fails on relative paths and deviates from specs
		}
		
	};
	
    /**
     * Deals with the parsing of the URI according to the regex above.
 	 * Written by Steven Levithan - see credits at top.
     */		
	var parseUri = function()
	{
		str = decodeURI( options.url );
		
		var m = options.parser[ options.strictMode ? "strict" : "loose" ].exec( str );
		var uri = {};
		var i = 14;

		while ( i-- ) {
			uri[ options.key[i] ] = m[i] || "";
		}

		uri[ options.q.name ] = {};
		uri[ options.key[12] ].replace( options.q.parser, function ( $0, $1, $2 ) {
			if ($1) {
				uri[options.q.name][$1] = $2;
			}
		});

		return uri;
	};

    /**
     * Returns the value of the passed in key from the parsed URI.
  	 * 
	 * @param string key The key whose value is required
     */		
	var key = function( key )
	{
		if ( ! parsed.length )
		{
			setUp(); // if the URI has not been parsed yet then do this first...	
		} 
		if ( key == "base" )
		{
			if ( parsed.port !== null && parsed.port !== "" )
			{
				return parsed.protocol+"://"+parsed.host+":"+parsed.port+"/";	
			}
			else
			{
				return parsed.protocol+"://"+parsed.host+"/";
			}
		}
	
		return ( parsed[key] === "" ) ? null : parsed[key];
	};
	
	/**
     * Returns the value of the required query string parameter.
  	 * 
	 * @param string item The parameter whose value is required
     */		
	var param = function( item )
	{
		if ( ! parsed.length )
		{
			setUp(); // if the URI has not been parsed yet then do this first...	
		}
		return ( parsed.queryKey[item] === null ) ? null : parsed.queryKey[item];
	};

    /**
     * 'Constructor' (not really!) function.
     *  Called whenever the URI changes to kick off re-parsing of the URI and splitting it up into segments. 
     */	
	var setUp = function()
	{
		parsed = parseUri();
		
		getSegments();	
	};
	
    /**
     * Splits up the body of the URI into segments (i.e. sections delimited by '/')
     */
	var getSegments = function()
	{
		var p = parsed.path;
		segments = []; // clear out segments array
		segments = parsed.path.length == 1 ? {} : ( p.charAt( p.length - 1 ) == "/" ? p.substring( 1, p.length - 1 ) : path = p.substring( 1 ) ).split("/");
	};
	
	return {
		
	    /**
	     * Sets the parsing mode - either strict or loose. Set to loose by default.
	     *
	     * @param string mode The mode to set the parser to. Anything apart from a value of 'strict' will set it to loose!
	     */
		setMode : function( mode )
		{
			strictMode = mode == "strict" ? true : false;
			return this;
		},
		
		/**
	     * Sets URI to parse if you don't want to to parse the current page's URI.
		 * Calling the function with no value for newUri resets it to the current page's URI.
	     *
	     * @param string newUri The URI to parse.
	     */		
		setUrl : function( newUri )
		{
			options.url = newUri === undefined ? window.location : newUri;
			setUp();
			return this;
		},		
		
		/**
	     * Returns the value of the specified URI segment. Segments are numbered from 1 to the number of segments.
		 * For example the URI http://test.com/about/company/ segment(1) would return 'about'.
		 *
		 * If no integer is passed into the function it returns the number of segments in the URI.
	     *
	     * @param int pos The position of the segment to return. Can be empty.
	     */	
		segment : function( pos )
		{
			if ( ! parsed.length )
			{
				setUp(); // if the URI has not been parsed yet then do this first...	
			} 
			if ( pos === undefined )
			{
				return segments.length;
			}
			return ( segments[pos] === "" || segments[pos] === undefined ) ? null : segments[pos];
		},
		
		attr : key, // provides public access to private 'key' function - see above
		
		param : param // provides public access to private 'param' function - see above
		
	};
	
}();


var yourfolder = jQuery.url.attr("directory");
if(yourfolder == "/"){yourfolder = ""};


var rptx = "0";
var rpty = "0";
var axisrepeat = "repeat";
var positionlmr = "2";
var positiontmb = "2";




if(rptx == 0 && rpty == 0){
    axisrepeat = "no-repeat";
}
else if(rptx == 0 && rpty == 1){
    axisrepeat = "repeat-y";
}
else if(rptx == 1 && rpty == 0){
    axisrepeat = "repeat-x";
}
else{
    axisrepeat = "repeat";
}



                switch (positiontmb) {
                	case "1":
                        positiontmb = "top";
                        break;
                    case "2":
                        positiontmb = "center";
                        break;
                    case "3":
                        positiontmb = "bottom";
                        break;  
                    default:
                        positiontmb = "center";
                };
                
                switch (positionlmr) {
                	case "1":
                        positionlmr = "left";
                        break;
                    case "2":
                        positionlmr = "center";
                        break;
                    case "3":
                        positionlmr = "right";
                        break;  
                    default:
                        positionlmr = "center";
                };




var bgimage = $("#stacks_in_670_page10 .stacks_in_670_page10bgimage img").attr("src");

var bgcolor = "transparent";
if (bgcolor == "") {var bgcolor = "#000000";}
else {
	var bgcolor = "transparent";
}

var itsIEnine = navigator.userAgent.match(/MSIE 9/i) != null;


if(itsIEnine){
	$("#stacks_in_670_page10 .stacks_in_670_page10bgimagestack").css({
    "background":"url("+bgimage+") " + axisrepeat + " " + bgcolor,
    "background-position": positionlmr + " " + positiontmb,
    "-webkit-border-radius" : "0px",
    "-moz-border-radius" : "0px",
    "border-radius" : "0px"
    });
}
else{
    $("#stacks_in_670_page10 .stacks_in_670_page10bgimagestack").css({
    "background":"url("+bgimage+") " + axisrepeat + " " + bgcolor,
    "background-position": positionlmr + " " + positiontmb,
    "-webkit-border-radius" : "0px",
    "-moz-border-radius" : "0px",
    "border-radius" : "0px",
    "behavior":"url(" + yourfolder + "files/RBPIE.htc)" 
    });
}

     
});

	return stack;
})(stacks.stacks_in_670_page10);



