// JavaScript Document
$.fn.backResize= function() {
    var w = $(window).width();
    var h = $(window).height();
    var iw = $(this).attr('width');
    var ih = $(this).attr('height');
    var rw = iw / ih;
    var rh = ih / iw;
    var sc = h * rw;
    if (sc >= w) {
        nh = h;
        nw = sc;
    } else {
        sc = w * rh;
        nh = sc;
        nw = w;
    }

    $(this).css({height: nh, width: nw});
}

$(document).ready(function(){ $('#start-back img').backResize(); });
$(window).resize(function(){ $('#start-back img').backResize(); });
/*
$(window).resize(function(){ 
	$('#back img').backResize();
    //bg_img_resize(); 
    //$('#the-background').css({ 'top' : 0, 'left' : 0 }); 
});
$(window).scroll(function(){ 
    //bg_img_resize(); 
    //$('#the-background').css({ 'top' : 0, 'left' : 0 }); 
});
*/
