
   <!--
   //  sIMPLE sLIDE sHOW with Description sCRIPT by
   //  Chetan M Soni(csoni@email.com), 8/1999.
   //
   //  NOTICE: To my knowledge this script works with
   //  Netscape 3.0+ and Internet Explorer 4.0+.  By 
   //  using this script you agree that I am not     
   //  responsible for any type of damage it causes. 
   //  To use this script freely, you must leave this
   //  comment intact.
   //
   //  If you need help using the script, email me at 
   //  csoni@email.com, and I'll be happy to help.
   // Assign name to the window
 
 	
   //  Browser checker
   Browser_Name = navigator.appName;
   Browser_Ver  = parseInt(navigator.appVersion);
   if((Browser_Name == "Netscape" && Browser_Ver >= 3) || (Browser_Name == "Microsoft Internet Explorer" && Browser_Ver >= 4)) Browser_Gen = ">=3rd";
   else Browser_Gen = "<3rd";

   if (Browser_Gen == '>=3rd') {

   
// Declare the number of slides in your show
   num_of_slides = 5;    
   slide_num = 1;
   
//takes string parameter from URL to link to a particular slide in the show from another page
      
   	var sURL = window.document.URL.toString();

	if (sURL.indexOf("?") > 0)
	{
		var arrParams = sURL.split("?");
		var myParameters = arrParams[1].split("=");
		
		var strparName = myParameters[0];
		var strparValue = myParameters[1];		
		
		if(strparName != "")
		{
			slide_num = parseInt(strparValue);
		}

	}
	

	
   
// Description of each slide
//desc1 = "Any Text can go here";

//Image Properties
//width and height for each image
//*Added by: Edgar Soto
}

   //  These functions alter the slide_num accordingly
   function firstslide(){
     slide_num = 1;
     changeslide();
   }
   function prevslide(){
     slide_num = slide_num - 1;
     if(slide_num < 1){
       slide_num = num_of_slides;
     }
     changeslide();
   }
   function nextslide(){
     slide_num = slide_num + 1;
     if(slide_num > num_of_slides){
       slide_num = 1
     }
     changeslide();
   }
   function lastslide(){
     slide_num = num_of_slides;
     changeslide();
   }



   //  This function changes the slide and the description box according to the slide_num
   function changeslide(){ 

     //  Changes the slide
     eval('document.picbox.src = "images/featuredProject/2007unitedtoserve/2007unitedPic' + slide_num + '.jpg"');

     //  Changes the description box
     //eval('document.descform.descbox.value = "Slide ' + slide_num + ': ' + eval('desc' + slide_num) + '"');
	 
	 //Changes the image dimensions for each image *Added by: Edgar Soto
	 //document.picbox.width = eval('w' + slide_num);
	 //document.picbox.height = eval('h' + slide_num);
	 
	 //Changes the Alt Attribute for each image *Added by: Edgar Soto
	 var altTextPrefix = "Make a Difference Day";
	 document.picbox.alt = altTextPrefix + " - Slide " + slide_num;
	 
   }
   // end hiding contents -->