function iloader(imageId){
		image = document.getElementById(imageId);		
		if(image){
		image_true_src = image.src;
		image.src = '';
		image.style.opacity = '0';
		image.style.visibility = "hidden";		
			image.src = image_true_src;
			img = image.src;
			objImage = new Image();
			objImage.src=img;
			objImage.onLoad = im(imageId);
		}
	}
	
	function im(imageId) {
		image = document.getElementById(imageId);
		//isImageOk(img);
		//alert('loaded');
		
		// set visibility
		image.style.opacity = '0';
		image.style.visibility = "hidden";
		setOpacity(image, 0);
		image.style.visibility = "visible";
		fadeIn(imageId,0);
	}
	
	function fadeIn(objId,opacity) {
		if (document.getElementById) {
			obj = document.getElementById(objId);
			if (opacity <= 100) {
				setOpacity(obj, opacity);
				opacity += 10;
				window.setTimeout("fadeIn('"+objId+"',"+opacity+")", 75);
			}
		}
	}
	
	function setOpacity(obj, opacity) {
		opacity = (opacity == 100)?99.999:opacity;
		// IE/Win
		obj.style.filter = "alpha(opacity:"+opacity+")";
		// Safari<1.2, Konqueror
		obj.style.KHTMLOpacity = opacity/100;
		// Older Mozilla and Firefox
		obj.style.MozOpacity = opacity/100;
		// Safari 1.2, newer Firefox and Mozilla, CSS3
		obj.style.opacity = opacity/100;
	}
	
	function load_img(){
		iloader('thephoto');
		iloader('thephoto1');
		iloader('thephoto2');
		iloader('thephoto3');
		iloader('thephoto4');
		iloader('thephoto5');
		iloader('thephoto6');
		iloader('thephoto7');
		iloader('thephoto8');
		iloader('thephoto9');
		iloader('thephoto10');
	}
	window.onload = function() {load_img()}
