$(window).load(function () {
	$('#loading').fadeOut('slow');
});



function makeScrollable(wrapper, scrollable){
	// Get jQuery elements
	var loading = $('<div class="loading">Loading...</div>').appendTo(wrapper);

	// Set function that will check if all images are loaded
	var interval = setInterval(function(){
		var images = scrollable.find('img');
		var completed = 0;

		// Counts number of images that are succesfully loaded
		images.each(function(){
			if (this.complete) completed++;
		});

		if (completed == images.length){
			clearInterval(interval);
			// Timeout added to fix problem with Chrome
			setTimeout(function(){

				loading.hide();
				// Remove scrollbars
				

			}, 1000);
		}
	}, 100);


	}




/*]]>*/



