function backgroundLoaded(){
	$background = $( "div#background" )
	if( $background.find( 'img' ).length > 0 && $background.find( 'img' ).is( ':visible' )){
		$background.backgroundFill({
			imgKnownWidth  : 1024,  //The width of the image used to make sure the image is fully loaded
			imgKnownHeight : 768  //The height of the image used to make sure the image is fully loaded
		});
	} else {
		setTimeout( 
			function(){
				backgroundLoaded();
			},
			250
		);
	}
}
$( document ).ready( function(){
	backgroundLoaded();
});

