//$( function() {
//
// var contentH = $('#content').height() + 50;
// var wrapperH = $('#foreground').height();
// var documentH = $(document).height();
// //$('#foreground').css({'height':contentH+'px'});
// //makeScrollingNotBeWeird();
//
// var scrolledY = $(window).scrollTop();
// var titleHeight = (400-scrolledY*.5);
//
// if(titleHeight < 0) {
// titleHeight = 0;
// }
//
// $('.header-image').css('height',titleHeight+'px');
//
// $(window).bind('scroll',function(e){
// parallaxScroll();
// });
// $(window).bind('resize', function(f){
// // makeScrollingNotBeWeird();
// });
//
// $(document).bind('DOMSubtreeModified', function() {
//
// var contentH = $('#content').height() + 50;
// var wrapperH = $('#foreground').height();
// // $('#foreground').css({'height':contentH+'px'});
//
// })
// });
//
// function makeScrollingNotBeWeird() {
//
// var windowHeight = $(window).height();
// var bodyHeight = $('.content_body').height();
//
// if(bodyHeight < windowHeight) {
// $('.content_body').css('height', windowHeight + 'px');
// }
// }
//
// function parallaxScroll() {
//
// var scrolledY = $(window).scrollTop();
// var titleHeight = (400-scrolledY*2);
// var windowHeight = $(window).height();
// var bodyHeight = $('.content_body').height();
//
//
// if(titleHeight < 0) {
// titleHeight = 0;
// }
//
// if(titleHeight + bodyHeight > windowHeight + 20) {
//
// $('.header-image').css('height',titleHeight+'px');
// $('.content_body').css('top', titleHeight + 'px');
// }
//
// $('.foreground').css('top', -scrolledY*.3);
// $('.background').css('top', -scrolledY*.1);
// }