
//IE Fix
document.createElement('header');
document.createElement('nav');
document.createElement('section');
document.createElement('article');
document.createElement('footer');

//Tabs
$(document).ready(function() {
	$(".tab-content").hide(); //Hide all content
	$("ul.tabs li:first").addClass("active").show(); //Activate first tab
	$(".tab-content:first").show(); //Show first tab content
	$("ul.tabs li").click(function() {
		$("ul.tabs li").removeClass("active"); //Remove any "active" class
		$(this).addClass("active"); //Add "active" class to selected tab
	    var activeTab = $(this).find("a").attr("rel"); //Find the rel attribute value to identify the active tab + content
		$(activeTab).fadeIn(); //Fade in the active content
		$(".tab-content:not("+activeTab+")").hide(); //Hide all tab content
		return false;
	});
	$(".gallery li:nth-child(3n)").addClass("non-margin");
	$(".images li:nth-child(3n)").addClass("non-margin");
});

