<!--

var slideShowSpeed = 6000;
var fadeDuration = 80;

fadeimgarray = new Array(); 
fadeimgarray[0] = 'images/mainimage1.jpg';
fadeimgarray[1] = 'images/mainimage2.jpg';
fadeimgarray[2] = 'images/mainimage3.jpg';
fadeimgarray[3] = 'images/mainimage4.jpg';
fadeimgarray[4] = 'images/mainimage5.jpg';
fadeimgarray[5] = 'images/mainimage6.jpg';
fadeimgarray[6] = 'images/mainimage7.jpg';
fadeimgarray[7] = 'images/mainimage8.jpg';
fadeimgarray[8] = 'images/mainimage9.jpg';
fadeimgarray[9] = 'images/mainimage10.jpg';
fadeimgarray[10] = 'images/mainimage11.jpg';
fadeimgarray[11] = 'images/mainimage12.jpg';
fadeimgarray[12] = 'images/mainimage13.jpg';
fadeimgarray[13] = 'images/mainimage14.jpg';
fadeimgarray[14] = 'images/mainimage15.jpg';
fadeimgarray[15] = 'images/mainimage16.jpg';

var t
var j = 0

var preLoad = new Array()
for (i = 0; i < fadeimgarray.length; i++){
   preLoad[i] = new Image()
   preLoad[i].src = fadeimgarray[i]
}

function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=fadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (fadeimgarray.length-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
//-->

<!--

function checkrequired(which) {

	var pass=true;
	var nameFound=false;

	if (document.images) {
			for (i=0;i<which.length;i++) {
				var tempobj=which.elements[i];
                                if (tempobj.name == "requiredEmailAddress")  {
					 			str=tempobj.value;
								var filter=/@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;
									if (filter.test(str))
									testresults=true;
									else {
									alert("Please make sure you have entered a right email address format (e.g: name@domain.com)");
									return false;
									}
									}
				if (tempobj.name.substring(0,8)=="required") {
					if (((tempobj.type=="text"||tempobj.type=="textarea")&&
						tempobj.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
						tempobj.selectedIndex==0)) {
							pass=false;
							break;
					}
				}
			}
		}	
		if (!pass) {
			shortFieldName=tempobj.name.substring(8,30).toUpperCase();
			alert("Please make sure the "+shortFieldName+" field was properly completed.");
			return false;
		}

		else
			return true;
		}
//-->
