$(function() {
	
	$(window).load(function() {
		$('#slider').nivoSlider({
			effect:'sliceDown', //Specify sets like: 'fold,fade,sliceDown'
			slices:15,
			animSpeed:500, //Slide transition speed
			pauseTime:5000,
		});
	});
	

$(document).ready(function() {
    $('#slideshow_container').cycle({
  	   fx:     'fade', 
	    speed:   300, 
	    timeout: 3000, 
	    next:   '#slideshow_container', 
	    pause:   1 
		});
});

	
$(document).ready(function() {
	$('ul#filter a').click(function() {
		$(this).css('outline','none');
		$('ul#filter .current').removeClass('current');
		$(this).parent().addClass('current');
		
		var filterVal = $(this).text().toLowerCase().replace(' ','-');
				
		if(filterVal == 'all') {
			$('ul#portfolio_temp li.hidden').fadeIn('slow').removeClass('hidden');
		} else {
			
			$('ul#portfolio_temp li').each(function() {
				if(!$(this).hasClass(filterVal)) {
					$(this).fadeOut('normal').addClass('hidden');
				} else {
					$(this).fadeIn('slow').removeClass('hidden');
					
				}
			});
		}
		
		return false;
	});
	
	
});



});
