(function($) {

$.ajaxSetup({cache: false});

$(document).ready(function() {


$("#foxboro_menu ul li div.slide").each(function(){
	var w = $(this).outerWidth();
	var leftM = (w/2)*-1;

	$(this).css({"margin-left": + leftM +"px"});
});
$("#foxboro_menu ul li.first div.slide").each(function(){
	var w = $(this).outerWidth();
	var leftM = 0;

	$(this).css({"margin-left": + leftM +"px"});
});

//move footerStuff to footer
$.get('/Portals/17478/footerStuff.html', function(data) {
	$('#footer').prepend(data);
});
$("#footer").appendTo("#foxboro_container");

$("a[rel^='prettyPhoto']").prettyPhoto();

// SHOW BLOG NAVIGATION WHEN LOGGED IN
if( $("#hsnavigation").length) {
    $("p.hk_menu").show();
}


});

})(jQuery);
