var raven = {
// -------
	init: function() {
		// this.snow();
		this.addCorousel();
	},
// -------
	snow: function() {
		$('.home .columns').snowfall({
			round : true,  
			minSize: 1, 
			maxSize: 8,
			flakeCount: 200
		});	
	},
// -------	
	addCorousel: function() {
		$('.ajax', '.clients')
			.click(function(e) {
				var clientID = this.hash.slice(2);
				$.ajax({
					type: "get",
					url: "wp-content/plugins/raven-projects/get-projects.php",
					data: { id:clientID },
					context: $('.col1'),
					beforeSend: function() {
						$(this).html('<div class="loading"></div>');
					},
					success: function(res) {
						$(this)
							.html(res)
							.introSlideshow();
					}
				});
				e.preventDefault();
			});
	}
// -------
};

$(function() {
	raven.init();
});
