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');
		iloader('thephoto11');
		iloader('thephoto12');
		iloader('thephoto13');
		iloader('thephoto14');
		iloader('thephoto15');
		iloader('thephoto16');
		iloader('thephoto17');
		iloader('thephoto18');
		iloader('thephoto19');
		iloader('thephoto20');
		iloader('thephoto21');
		iloader('thephoto22');
		iloader('thephoto23');
		iloader('thephoto24');
		iloader('thephoto25');
	}
	window.onload = function() {load_img()}
	
	
	
	function verify(form)
        {
           var passed = false;
        var blnRetval, intAtSign, intDot, intComma, intSpace, intLastDot, intDomain, intStrLen;
        if (form.Email){
                       intAtSign=form.Email.value.indexOf("@");
                        intDot=form.Email.value.indexOf(".",intAtSign);
                        intComma=form.Email.value.indexOf(",");
                        intSpace=form.Email.value.indexOf(" ");
                        intLastDot=form.Email.value.lastIndexOf(".");
                        intDomain=intDot-intAtSign;
                        intStrLen=form.Email.value.length;
                // *** CHECK FOR BLANK EMAIL VALUE
                   if (form.Email.value == "" )
                   {
                alert("You have not entered an email address.");
                form.Email.focus();
                passed = false;
                }
                // **** CHECK FOR THE  @ SIGN?
                else if (intAtSign == -1)
                {

                alert("Your email address is missing the \"@\".");
                        form.Email.focus();
                passed = false;

                }
                // **** Check for commas ****

                else if (intComma != -1)
                {
                alert("Email address cannot contain a comma.");
                form.Email.focus();
                passed = false;
                }

                // **** Check for a space ****

                else if (intSpace != -1)
                {
                alert("Email address cannot contain spaces.");
                form.Email.focus();
                passed = false;
                }

                // **** Check for char between the @ and dot, chars between dots, and at least 1 char after the last dot ****

                else if ((intDot <= 2) || (intDomain <= 1)  || (intStrLen-(intLastDot+1) < 2))
                {
                alert("Please enter a valid Email address.\n" + form.Email.value + " is invalid.");
                form.Email.focus();
                passed = false;
                }
                else {
                        passed = true;
                }
        }
        else    {
                passed = true;
        }
        return passed;
  }
