$(function() {
	$(".home_recent_project_details").hover(function(){
		$(this).children("img").fadeTo("fast", 0); // This should set the opacity to 0% on hover
		$(this).children(".content").fadeTo("fast", 1.0);
	},function(){
		$(this).children("img").fadeTo("fast", 1.0); // This should set the opacity back to 100% on mouseout
		$(this).children(".content").fadeTo("fast", 0);
	});
	$("#home_featured_project_details").hover(function(){
		$(this).children("img").fadeTo("fast", 0); // This should set the opacity to 0% on hover
		$(this).children(".content").fadeTo("fast", 1.0);
	},function(){
		$(this).children("img").fadeTo("fast", 1.0);
		$(this).children(".content").fadeTo("fast", 0);
	});
	$(".portfolio_thumb").hover(function(){
		$(this).children("img").fadeTo("fast", 0); // This should set the opacity to 0% on hover
		$(this).children(".content").fadeTo("fast", 1.0);
	},function(){
		$(this).children("img").fadeTo("fast", 1.0);
		$(this).children(".content").fadeTo("fast", 0);
	});
// iPhone Behaviour
	$('.iphone_link').click(function(event) {
		event.preventDefault();
		if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
			window.location = "http://www.designcollective.co.nz/iphone";
		} else {
			alert('You must be using an iPhone to visit Design Collective: iPhone Edition');
		}
	});
});