/* 
 *@Author CVL info at christophervlapa dot com dot au
 *@Copyright CVL 12/02/11
 *@Require jQuery
*/

// thumbnail scroller
$(function(){
	// menu stuff
	$('#menu li ul').css({
		display: "none",
		left: "auto"
	});
	$('#menu li ul li').hover(function() {
$(this)
.parent()	
.parent()	
		.css({'background-color':'#A0A0A0'});
		}, function(){
			$(this)
.parent()	
.parent()	
		.css('backgroundColor','#000000');
			});
	$('#menu li').hover(function() {
		$(this)
		.find('ul')
		.stop(true,true)
		.slideDown('fast');
		}, function() {
			$(this)
			.find('ul')
			.stop(true,true)
			.fadeOut('fast');
			});
			

	//weddings stuff
	$('#weddings a').click(function(){
		
		})
$('#weddingGallery').gallery({
  interval: 5000,
  height: '500px',
  width: '900px',
  'ratio': '0.20',
  showOverlay: false,
  'thumbWidth': '180',
  'thumbHeight': '100',
  slideshow: true,
});
$('#stopShow').click(function(){

if($('#stopShowA').text() == 'Stop slideshow'){
	$('#stopShowA').text('Start slideshow');
	$('#weddingGallery').gallery({
		slideshow: false,
		showOverlay: false,
		interval: 5000,
		'thumbWidth': '180',
		'thumbHeight': '100'
	});
}else{
	$('#stopShowA').text('Stop slideshow');
	$('#weddingGallery').gallery({
		interval: 5000,
		slideshow: true,
		showOverlay: false,
		'thumbWidth': '180',
		'thumbHeight': '100'
	});
}
});



});


