jQuery(document).ready(function(){
		
	///////////////////////////////////////////////////////////////////////////////////////////////////////
	//	Scroll
	///////////////////////////////////////////////////////////////////////////////////////////////////////
	
	  $("div.scrollable").scrollable({
			size: 3,
			items: '#thumbs',  
			hoverClass: 'hover',
			clickable: false
	});
	
	if ($("div#thumbs div").length <= 3 )
	{
		$("div.slider a.next").hide();
	}
	
	///////////////////////////////////////////////////////////////////////////////////////////////////////
	//	Scroll Gallery
	///////////////////////////////////////////////////////////////////////////////////////////////////////
	
	$("div.scrollableGallery").scrollable({
			size: 4,
			items: '#thumbsGallery',  
			hoverClass: 'hover',
			clickable: false
	});
	
	if ($("div#thumbsGallery div").length <= 4 )
	{
		$("div.sliderGallery a.next").hide();
	}

	///////////////////////////////////////////////////////////////////////////////////////////////////////
	//	Lightbox
	///////////////////////////////////////////////////////////////////////////////////////////////////////
	
	   $('a.lightbox').lightBox({
				overlayBgColor: '#000',
				overlayOpacity: 0.8, 
				imageLoading: 'images/lightbox-ico-loading.gif',
				imageBtnClose: 'images/lightbox-btn-close.gif',
				imageBtnPrev: 'images/lightbox-btn-prev.gif',
				imageBtnNext: 'images/lightbox-btn-next.gif',
				containerResizeSpeed: 350,
				txtImage: 'Photo',
				txtOf: 'of'
		});
	   
	  }); 
	   
	 ///////////////////////////////////////////////////////////////////////////////////////////////////////
	//	DW
	///////////////////////////////////////////////////////////////////////////////////////////////////////

	function MM_openBrWindow(theURL,winName,features) { //v2.0
		  window.open(theURL,winName,features);
		}
		
	function MM_goToURL() { //v3.0
		  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
		  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
		}
	
	
