// JavaScript Document

Cufon.replace('h1', {
	textShadow: '#000 1px 0'
});
Cufon.replace('h2', {
	textShadow: '#000 1px 0'
});


$(document).ready(function() {
	$("body").addClass("has-js");

	var imageNum = 0;
	setInterval(
		function() {
		if (imageNum == 0){
			$("#splash-controls").fadeOut("slow").parent().find("#splash-fluid").fadeIn("slow");
			imageNum = 1;
		}else{
			$("#splash-fluid").fadeOut("slow").parent().find("#splash-controls").fadeIn("slow");
			imageNum = 0;
		}
	}, 3000);

	
	$("#fluid").click(function() {
		var goToUrl = $(this).find(".more a").attr("href");
		window.location = goToUrl;
	});
	$("#controls").click(function() {
		var goToUrl = $(this).find(".more a").attr("href");
		window.location = goToUrl;
	});
});


