$(function(){
	var galleries = $('.ad-gallery').adGallery({
		loader_image: "/wp-content/themes/NorthWest/css/ad-gallery/images/loader.gif",
		width: 556, // Width of the image, set to false and it will read the CSS width
		height: 370, // Height of the image, set to false and it will read the CSS height
		thumb_opacity: 0.7, // Opacity that the thumbs fades to/from, (1 removes fade effect)
						  // Note that this effect combined with other effects might be resource intensive
						  // and make animations lag
		start_at_index: 0, // Which image should be displayed at first? 0 is the first imagee than on top of the image
		animate_first_image: true, // Should first image just be displayed, or animated in?
		animation_speed: 2000, // Which ever effect is used to switch images, how long should it take?
		display_next_and_prev: false, // Can you navigate by clicking on the left/right on the image?
		display_back_and_forward: false, // Are you allowed to scroll the thumb list?
		description_wrapper: false,
		effect: 'fade',
		slideshow: {
			enable: true,
			autostart: true,
			speed: 5000

		},
		circle: true
	});
	
	$('#s').focus(function(){
		if( $(this).val() == "search" )
			$(this).val('');
	}).blur(function(){
		if( $(this).val() == "" )
			$(this).val('search');
	});
});
