

	function fixContentHeight(){
	
		
		var height= $(document).height(); 
		
		setTimeout(function(){ //delay required for heights to event out on load
			$('#wrap-inner').css('height', height+'px');
			
			var contentHeight= $('#content').height();
			$('#navigation').css('height', (contentHeight- 8) + 'px');
		}, 1);
	}

	$(document).ready(function() {
		
		
		$(window).bind('resize', function() {
			fixContentHeight();
		});

		$(window).bind('scroll', function() {
			fixContentHeight();
		});
		
		$('.nav_off').hover(function() {
            $(this).removeClass('nav_off');
            $(this).addClass('nav_over');

		}, function() {
            $(this).removeClass('nav_over');
            $(this).addClass('nav_off');

		});
		
		$('#parlourNavLink').hover(function() {
			$(this).attr({'src':'/images/link_pianoParlour_1.png'});
		},function() {
			$(this).attr({'src': '/images/link_pianoParlour_0.png'});
		});
		

		$('#losersNavLink').hover(function() {
			$(this).attr({'src':'/images/link_losersLounge_1.png'});
		},function() {
			$(this).attr({'src':'/images/link_losersLounge_0.png'});
		});
		
		setTimeout('fixContentHeight()', 1);
		
	});

