/* Code licensed from Rick Nunn http://ricknunn.com. This code is not free and use is only authorised to owners of this plugin */

		lrbGallery = function(){
					var galleryWidth = 0;
					var tot=0;
					$('#resize_gallery p')
						.height($(window).height()).children('img').each(function(){
							galleryWidth = galleryWidth + $(this).width();
						}); 
						$('#resize_gallery p')
						.children('img').each(function(){
							tot++;
						}); 
						
						tot=(tot-1)*10;
						galleryWidth=tot + galleryWidth;
						$('#resize_gallery p').width(galleryWidth);
							
				}
				
				$(document).ready(function() { 	
								
					$('#resize_gallery p img').hide().load(function(){
                        $(this).show()
                        lrbGallery();
                    }).trigger('load');
					$(window).resize(lrbGallery);
					$('.infoWrap').hover(function (){
						$(this).find('.info').stop().fadeTo('normal', 1);
					}, function () {
						$(this).find('.info').stop().fadeTo('normal', 0);
					});
					$('#resize_gallery p img:last').css('padding-right','0px'); 
					});
				
