$(window).resize(function(){
	adjustWithWindow();
});

function adjustWithWindow()
{
	if($(window).width() <= $("#navContainer").width())
	{
		$("#bodyContent").width($("#navContainer").width());
	}
	else
	{
		$("#bodyContent").width("100%");
	}
}

$(document).ready(function() {
	/* ADJUSTS LINKS FOR STAGING. COMMENT WHEN POSTING LIVE */
//	$.each($("div#navContainer ul li").children("a"), function(k,v){
//		var theHref = $(v).attr("href");
//		var newHref = "/blackforddev.com" + theHref;
//		
//		$(v).attr("href", newHref);
//	});
	
	
	$("div#navContainer ul li").children("a").hover(
		function(){
			$(this).children(".normal").css("display","none");
			$(this).children(".hovered").css("display","inline");
		},
		function(){
			$(this).children(".hovered").css("display","none");
			$(this).children(".normal").css("display","inline");
		}
	);
	
	// FIX LINKS FOR IOS USERS
	$("a").live("touchend", function() {
	    window.location = $(this).attr("href");
	});
});

function comingSoon() {
    alert("Coming Soon!");
}


