$j = jQuery.noConflict();

$j(document).ready(function() {
	$j('.banner').fitted({ title: true });
	$j('.frontitem').fitted({ title: true });
	$j('#splash').fitted({ title: true });
	$j('#nav li').fitted({ title: true });
	
	// set shadow on navigation
	var $w = $j('#nav').width()+18;
	if( $w > 1000 )
	{
		// safari sometimes misses this and gets it as an infinite width
		var $w = $j('#nav').width()+18;
	}
	// width can't be bigger than site
	if( $w < 1000 )
	{
		// ie 6 & 7 needs some help
		if( jQuery.browser.msie && parseInt(jQuery.browser.version) >= 6 && parseInt(jQuery.browser.version) <= 7 )
		{
			$j('#nav').css( 'marginRight', 0-$w );
		}
		$j('#shadow_nav').width($w);
		$j('#shadow_nav').css('display','block');
	}
});

