
// DOM ready
$(function () {

			// image source
			var images = new Array();
				images[0] = './_images/aufbau_equipment.jpg';
				images[1] = './_images/bohrung.jpg';
				images[2] = './_images/tonnen.jpg';

			// loop through matching element
			$("#mod_images ul li.loading").each(function(index,el){
					// new image object
			        var img = new Image();
					// image onload
			        $(img).load(function () {
						// hide first
			            $(this).css('display','none'); // since .hide() failed in safari
						//
			            $(el).removeClass('loading').append(this);
			            $(this).fadeIn();
			        }).error(function () {
						$(el).remove();
			        }).attr('src', images[index]);
			});

		});



