(function($) {
	
	var finnFestUI = {
		
			init: function() {
				this.utilMethods();
				this.externalPlugins.init();
			},
			
			utilMethods: function() {
				$("body").addClass("jsEnabled"); // We use this to style non-js
			},
			
			externalPlugins: {
				
				init: function() {
					this.scrollable.init();
					this.prettyPhoto.init();
				},
				
				scrollable: {
					
					options: {
						items: '#galleryItems',
						speed: 500,
						next: '.galleryLeft',
						prev: '.galleryRight',
						activeClass: "active"
					},
					
					init: function(){
						$("#eventPhotosInner").scrollable(this.options);
					}
				},
				
				prettyPhoto: {
					
					options: {
						animationSpeed: 'normal',
						allowresize: false,
						showTitle: false,
						theme: 'light_rounded'
					},
					
					init: function() {
						$("a[rel^='lightbox']").prettyPhoto(this.options);
					}
				
				}
				
			}
			
	}
	
	finnFestUI.init();
	
})(jQuery); 
