
	        var slideShowSpeed = 5000;
	        var crossFadeDuration = 3;
	        var Pic = new Array(); // don't touch this
	        var t;
	        var j = 0;
		var p;
	        var preLoad1 = new Array();
	        var preLoad2 = new Array();
	        var preLoad3 = new Array();

  	        function runSlideShow(){
		    if (document.all){
		        document.images.SlideShow1.style.filter="blendTrans(duration=2)";
			document.images.SlideShow1.style.filter="blendTrans(duration=crossFadeDuration)";
			document.images.SlideShow1.filters.blendTrans.Apply();
			document.images.SlideShow2.style.filter="blendTrans(duration=2)";
			document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration)";
          		document.images.SlideShow2.filters.blendTrans.Apply();
			document.images.SlideShow3.style.filter="blendTrans(duration=2)";
			document.images.SlideShow3.style.filter="blendTrans(duration=crossFadeDuration)";
          		document.images.SlideShow3.filters.blendTrans.Apply();
		    }
		    document.images.SlideShow1.src = preLoad1[j].src;
       		    document.images.SlideShow2.src = preLoad2[j].src;
       		    document.images.SlideShow3.src = preLoad3[j].src;

		    if (document.all){
          	        document.images.SlideShow1.filters.blendTrans.Play();
             	        document.images.SlideShow2.filters.blendTrans.Play();
			document.images.SlideShow3.filters.blendTrans.Play();
       		    }
       		
		    j = j + 1;
	       	    if (j > (p-5)) 
		        j=0;	
       		    t = setTimeout('runSlideShow()', slideShowSpeed);
    		}


		function pictureSlide(pic1,pic2,pic3,pic4,pic5,pic6) {
		    Pic[0] = pic1;
		    Pic[1] = pic2;
		    Pic[2] = pic3;
		    Pic[3] = pic4;
		    Pic[4] = pic5;
		    Pic[5] = pic6;
 	            p = Pic.length;
		    for (i = 0; i < 2; i++){
		        preLoad1[i] = new Image();
			preLoad2[i] = new Image();
			preLoad3[i] = new Image();
		        preLoad1[i].src = Pic[i];
			preLoad2[i].src = Pic[i+2];
			preLoad3[i].src = Pic[i+4];
		    }

       		 }   

 

		function openStdImg(imageName){
			theWindow=window.open('showLargeImg.asp?pic='+imageName,'Photo','width=750,height=750');
			theWindow.focus();
		}


function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
		function validName(name) {
			if (name == "") {
				return false;
			}
			return true;
		}

		function validTel(phone){
			if (phone=="") {
				return false;
			}
			return true;
		}
		
		function validEmail(email) {
			invalidChars = "/:,;"

			if (email=="") {
				return true;
			}

			for (i=0; i<invalidChars.length; i++) {
				badChar = invalidChars.charAt(i)
				if (email.indexOf(badChar,0) > -1) {
					return false;
				}
			}

			atPos = email.indexOf("@",1)
			if (atPos == -1) {
				return false;
			}

			if (email.indexOf("@",atPos+1) != -1) {
				return false;
			}

			periodPos = email.indexOf(".",atPos)
			if (periodPos == -1) {
				return false;
			}
			if (periodPos+3 > email.length) {
				return false;
			}
			return true;
		}

		function submitIt(form) {
			if(!validName(form.name.value)) {
				alert ("Please supply a name or contact person.");
				form.name.focus();
				return false;
			}
			if(!validTel(form.phone.value)) {
				alert ("Please supply at least one contact number.");
				form.phone.focus();
				return false;
			}
			if(!validEmail(form.email.value)) {
				alert ("Please enter a valid e-mail address.");
				form.email.focus();
				return false;
			}

		} 
		
		var menuids=new Array("verticalmenu") //Enter id(s) of UL menus, separated by commas
var submenuoffset=-2 //Offset of submenus from main menu. Default is -2 pixels.

function createcssmenu(){
for (var i=0; i<menuids.length; i++){
  var ultags=document.getElementById(menuids[i]).getElementsByTagName("ul")
    for (var t=0; t<ultags.length; t++){
    var spanref=document.createElement("span")
		spanref.className="arrowdiv"
		spanref.innerHTML="&nbsp;&nbsp;"
		ultags[t].parentNode.getElementsByTagName("a")[0].appendChild(spanref)
    ultags[t].parentNode.onmouseover=function(){
    this.getElementsByTagName("ul")[0].style.left=this.parentNode.offsetWidth+submenuoffset+"px"
    this.getElementsByTagName("ul")[0].style.display="block"
    }
    ultags[t].parentNode.onmouseout=function(){
    this.getElementsByTagName("ul")[0].style.display="none"
    }
    }
  }
}


if (window.addEventListener)
window.addEventListener("load", createcssmenu, false)
else if (window.attachEvent)
window.attachEvent("onload", createcssmenu)
