	
function isDefined(myProperty) {
  return (typeof property != 'undefined');
}
	
	//Home Page Photo display
			// (C) 2002 www.CodeLifter.com - http://www.codelifter.com - Free for all users, but leave in this header.
			  var mainPicture = new Array(); 
			  var mainCaption = new Array(); 
			
			
			// Specify the image files...
				mainPicture[1]  = "_images/indexImg/10rotate.jpg";
				mainPicture[2]  = "_images/indexImg/02rotate.jpg";
				mainPicture[3]  = "_images/indexImg/03rotate.jpg";
				mainPicture[4]  = "_images/indexImg/04rotate.jpg";
				mainPicture[5]  = "_images/indexImg/05rotate.jpg";
				mainPicture[6]  = "_images/indexImg/06rotate.jpg";
				mainPicture[7]  = "_images/indexImg/07rotate.jpg";
				mainPicture[8]  = "_images/indexImg/08rotate.jpg";
				mainPicture[9]  = "_images/indexImg/09rotate.jpg";
				mainPicture[10] = "_images/indexImg/10rotate.jpg";
			// Specify the Captions...
				mainCaption[1]  = "Astromaterials Home";
				mainCaption[2]  = "Astromaterials Research";
				mainCaption[3]  = "Astromaterials Curation";
				mainCaption[4]  = "Human Exploration Science";
				mainCaption[5]  = "Facilities/Laboratories";
				mainCaption[6]  = "Fellowship Opportunities";
				mainCaption[7]  = "Education & Outreach";
				mainCaption[8]  = "ARES Annual Report";
				mainCaption[9]  = "ARES Brochure";
				mainCaption[10] = "Astromaterials Research and Exploration Science";


			function swapIndexImg(myID){
			if (document.all){
				document.images.PictureBox.style.filter="blendTrans(duration=.4)";
				document.images.PictureBox.filters.blendTrans.Apply();}
			document.images.PictureBox.src = mainPicture[myID];
			if (document.getElementById) document.getElementById("CaptionBox").innerHTML= mainCaption[myID];
			if (document.all) document.images.PictureBox.filters.blendTrans.Play();
			}
			
	//End the Home Page Photo display
	
	//Facility/Lab Photo Display
			// (C) 2002 www.CodeLifter.com - http://www.codelifter.com - Free for all users, but leave in this header.

			// Set the slideshow speed (in milliseconds)
				var SlideShowSpeed = 4000;
			// Set the duration of crossfade (in seconds)
				var CrossFadeDuration = 3;

				
				
			  if(0 == 1)
			  //if (isDefined(Picture[1])) 
			  {
			  	//window.alert("HELLO");
			  } else {
			  var Picture = new Array(); 
			  var Caption = new Array(); 
			// Specify the image files...
				Picture[1]  = "_images/facLab/01rotate.jpg";
				Picture[2]  = "_images/facLab/02rotate.jpg";
				Picture[3]  = "_images/facLab/03rotate.jpg";
				Picture[4]  = "_images/facLab/04rotate.jpg";
				Picture[5]  = "_images/facLab/05rotate.jpg";
				Picture[6]  = "_images/facLab/06rotate.jpg";
				Picture[7]  = "_images/facLab/07rotate.jpg";
				Picture[8]  = "_images/facLab/08rotate.jpg";
				Picture[9]  = "_images/facLab/09rotate.jpg";
				Picture[10] = "_images/facLab/10rotate.jpg";
				Picture[11] = "_images/facLab/11rotate.jpg";
				Picture[12] = "_images/facLab/12rotate.jpg";
				Picture[13] = "_images/facLab/13rotate.jpg";
				Picture[14] = "_images/facLab/14rotate.jpg";
				Picture[15] = "_images/facLab/15rotate.jpg";
			
			// Specify the Captions...
				Caption[1]  = "Electron Microscopy Lab";
				Caption[2]  = "High Pressure Lab";
				Caption[3]  = "Laser Microprobe Lab";
				Caption[4]  = "Laser Scribing Lab";
				Caption[5]  = "Genesis Lab";
				Caption[6]  = "NanoSIMS Lab";
				Caption[7]  = "Nitrogen Tank";
				Caption[8]  = "Petrology Lab";
				Caption[9]  = "Pre-Clean Lab";
				Caption[10] = "Space Exposed Hardware Lab";
				Caption[11] = "TEM Lab";
				Caption[12] = "Thermal Ionization Mass Spectrometer Lab";
				Caption[13] = "Lunar Lab";
				Caption[14] = "Stardust Science Team with sample tray";
				Caption[15] = "Stardust Sample Extraction";
			}

			var tss;
			var iss;
			var jss = 1;
			var pss = Picture.length-1;
			
			var preLoad = new Array();
			for (iss = 1; iss < pss+1; iss++){
			preLoad[iss] = new Image();
			preLoad[iss].src = Picture[iss];}
			
			function runSlideShow(){
			if (document.all){
			document.images.PictureBox.style.filter="blendTrans(duration=2)";
			document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
			document.images.PictureBox.filters.blendTrans.Apply();}
			document.images.PictureBox.src = preLoad[jss].src;
			if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
			if (document.all) document.images.PictureBox.filters.blendTrans.Play();
			jss = jss + 1;
			if (jss > (pss)) jss=1;
			tss = setTimeout('runSlideShow()', SlideShowSpeed);
			}
	//End Facility/Lab Photo Display
	
	//<![CDATA[
	function viewDesc(myDesc)
		{
				
			var currEl;
				var myLoop = document.frmfellowshipSearch.hidCount.value;
					//var myLoop= document.getElementById("hidCount").firstChild.nodeValue;
			for (var i = 0; i < myLoop; i++) 
				{
					currEl = "el"+i;
					document.getElementById(""+currEl+"").style.display = "none";
				}
				document.getElementById(""+myDesc+"").style.display = "block";
			return;
		}
		
	function viewAll(myView)
		{
			var currEl;
			var myLoop = document.frmfellowshipSearch.hidCount.value;
			for (var i = 0; i < myLoop; i++) 
				{
					currEl = "el"+i;
					document.getElementById(""+currEl+"").style.display = myView;
				}
			return;
		}
	//]]>
		