// JavaScript Document

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') {
   

   num_of_slides = 12;    // Declare the number of slides in your show
   slide_num = 1;        // Which slide loads ups first

   // Description of each slide
   heading1 = "Main Entrance";
   heading2 = "Lobby";
   heading3 = "Children's Play Area";
   heading4 = "Pediatric Exam Room";
   heading5 = "Adult Exam Room";
   heading6 = "Tribute Wall";
   heading7 = "Nursing Station";
   heading8 = "PET/CT Scan Room";
   heading9 = "Anesthesia Room";
   heading10 = "Control Room";
   heading11 = "Stationary Proton Beam Room";
   heading12 = "Gantry Proton Beam Room";
   
   desc1 = "The IU Health Proton Therapy Center is located in the wooded, rolling hills of Bloomington, Ind. It is a quiet and peaceful setting for our state-of-the-art proton therapy center.<br /><br />As you open the door to our facility, know that we're here for you with advanced, precise cancer treatment, one-on-one attention, and ongoing support.";
   desc2 = "As you step through the door of the IU Health Proton Therapy Center, you will be welcomed at the front desk by our receptionist. Whether you have arrived for a tour or to begin the admission process, you will find the IU Health Proton Therapy Center a warm and friendly place with caring and compassionate staff.<br /><br />After you have been greeted by our receptionist, you can relax in our lobby, which is designed to be comfortable and inviting. You can choose from a selection of reading materials and enjoy refreshments. We are available to answer questions, offer information and insight, and help you with the admissions process.";
   desc3 = "Because of the particular benefits that proton therapy can offer pediatric patients, our clinic is specifically designed to be child friendly. Our children&#39;s playroom is filled with toys, books, stuffed animals and games to put your child at ease.<br /><br />At the IU Health Proton Therapy Center, we are dedicated to the practice of family-centered care, and we encourage parents to be involved in every aspect of your child&#39;s treatment.<br /><br />Many <a href=\"http://www.mpri.org/patients/prospective-patients/bloomington-community/things-to-do\">family-oriented activities and parks</a> are also available throughout the Bloomington community.";
   desc4 = "At the IU Health Proton Therapy Center, we understand how important it is for our pediatric patients to receive both high-quality clinical care and emotional support. That&#39;s why our pediatric exam/consultation room was created to have a comfortable, child-friendly atmosphere. Personal touches, like a colorful hand-painted mural generously donated by local artist Ruth Hester, Cheryl Kerr, and Cindi Lewis, make the space cheerful and inviting.";
   desc5 = "Initial consultations and physical examinations take place in our comfortable, private exam rooms. Rooms are designed to preserve patients&#39; privacy while providing the highest quality clinical care.";
   desc6 = "As you walk through the halls at the IU Health Proton Therapy Center, you&#39;ll pass by a stone wall decorated with photos and inspirational letters from our patients. Our &quot;tribute wall&quot; is very meaningful to our staff as well as our patients. Every day, it reminds all of us that we fulfill our mission by touching one life at a time in a positive, supportive environment.";
   desc7 = "Our nursing station was designed to make treatment as efficient as possible. It is centrally located near all our treatment rooms, so nursing staff can attend to our patients swiftly and access their computers easily.";
   desc8 = "In the PET/CT Scan room, the patient&#39;s mold for positioning will be constructed. Utilizing the  Scanning equipment and the mold the patient&#39;s tumor site is scanned. After precise measurements are obtained, the Radiation therapist will transfer this information to our treatment planning staff in the Medical Dosimetry Department. Using the PET/CT and three dimensional computer software the Radiation Oncologist and the Medical Dosimetrists will create the best individualized treatment plan.<br /><br />Our Radiation Oncologists, Radiation Therapists, Nurses, Medical Dosimetry and Medical Physics staff continually discuss and review patient treatment plans, which allows each of these staff members to be familiar with all aspects of our patient&#39;s treatment and progress.";
   desc9 = "The IU Health Proton Therapy Center utilizes local, board-certified anesthesiologists to precisely administer anesthesia in cases when adult or pediatric patients require it to facilitate treatment.";
   desc10 = "The proton beam is received in the IU Health Proton Therapy Center treatment rooms from the <a href=\"http://www.iucf.indiana.edu/\" target=\"_blank\">Indiana University Cyclotron Operations</a>. Treatments are provided by the clinical staff at the IU Health Proton Therapy Center, which directs and guides the beam to the precise location where it is needed to target the patient&#39;s tumor with pinpoint accuracy.";
   desc11 = "Depending on the treatment plan developed by the IU Health Proton Therapy Center physicians, the patient will receive treatment in either a Stationary Proton Beam Room or a Gantry Proton Beam Room.<br /><br />In the Stationary Proton Beam Room, the proton beam angle remains stationary (does not move). It is often used to treat diseases of the eye, head, and other areas of the body that are easily accessible to the proton beam.";
   desc12 = "Depending on the treatment plan developed by the IU Health Proton Therapy Center physicians, the patient may receive treatment in the Gantry Proton Beam Room. In this room, a gantry is used to rotate the proton beam &quot;nozzle&quot; 360 degrees around the treatment target. This enables the beam to pinpoint tumors in difficult to reach locations throughout the body.";
   }

   //  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 = 5;
     changeslide();
   }
   
   function changeslide(){        
     eval('document.picbox.src = "http://iuhealthprotontherapy.org/images/virtual-tour/" + "pic' + slide_num + '.jpg"');
     eval('document.getElementById("descbox").innerHTML = desc' + slide_num);
	 eval('document.getElementById("heading").innerHTML = heading' + slide_num);
	
	switch (slide_num){
		case 1:
			document.getElementById("pic1").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up_01.jpg";
			document.getElementById("pic2").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up2.jpg";
			document.getElementById("pic3").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up3.jpg";
			document.getElementById("pic4").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up4.jpg";
			document.getElementById("pic5").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up5.jpg";
			document.getElementById("pic6").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up6.jpg";
			document.getElementById("pic7").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up7.jpg";
			document.getElementById("pic8").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up8.jpg";
			document.getElementById("pic9").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up9.jpg";
			document.getElementById("pic10").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up10.jpg";
			document.getElementById("pic11").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up11.jpg";
			document.getElementById("pic12").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up12.jpg";
			break;
		
		case 2:
			document.getElementById("pic1").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up_01.jpg";
			document.getElementById("pic2").src = "http://iuhealthprotontherapy.org/images/virtual-tour/roll2.jpg";
			document.getElementById("pic3").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up3.jpg";
			document.getElementById("pic4").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up4.jpg";
			document.getElementById("pic5").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up5.jpg";
			document.getElementById("pic6").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up6.jpg";
			document.getElementById("pic7").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up7.jpg";
			document.getElementById("pic8").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up8.jpg";
			document.getElementById("pic9").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up9.jpg";
			document.getElementById("pic10").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up10.jpg";
			document.getElementById("pic11").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up11.jpg";
			document.getElementById("pic12").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up12.jpg";
			break;
	
		case 3:
			document.getElementById("pic1").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up_01.jpg";
			document.getElementById("pic2").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up2.jpg";
			document.getElementById("pic3").src = "http://iuhealthprotontherapy.org/images/virtual-tour/roll3.jpg";
			document.getElementById("pic4").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up4.jpg";
			document.getElementById("pic5").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up5.jpg";
			document.getElementById("pic6").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up6.jpg";
			document.getElementById("pic7").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up7.jpg";
			document.getElementById("pic8").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up8.jpg";
			document.getElementById("pic9").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up9.jpg";
			document.getElementById("pic10").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up10.jpg";
			document.getElementById("pic11").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up11.jpg";
			document.getElementById("pic12").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up12.jpg";
			break;
			
		case 4:
			document.getElementById("pic1").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up_01.jpg";
			document.getElementById("pic2").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up2.jpg";
			document.getElementById("pic3").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up3.jpg";
			document.getElementById("pic4").src = "http://iuhealthprotontherapy.org/images/virtual-tour/roll4.jpg";
			document.getElementById("pic5").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up5.jpg";
			document.getElementById("pic6").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up6.jpg";
			document.getElementById("pic7").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up7.jpg";
			document.getElementById("pic8").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up8.jpg";
			document.getElementById("pic9").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up9.jpg";
			document.getElementById("pic10").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up10.jpg";
			document.getElementById("pic11").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up11.jpg";
			document.getElementById("pic12").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up12.jpg";
			break;
			
		case 5:
			document.getElementById("pic1").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up_01.jpg";
			document.getElementById("pic2").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up2.jpg";
			document.getElementById("pic3").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up3.jpg";
			document.getElementById("pic4").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up4.jpg";
			document.getElementById("pic5").src = "http://iuhealthprotontherapy.org/images/virtual-tour/roll5.jpg";
			document.getElementById("pic6").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up6.jpg";
			document.getElementById("pic7").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up7.jpg";
			document.getElementById("pic8").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up8.jpg";
			document.getElementById("pic9").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up9.jpg";
			document.getElementById("pic10").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up10.jpg";
			document.getElementById("pic11").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up11.jpg";
			document.getElementById("pic12").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up12.jpg";
			break;
			
		case 6:
			document.getElementById("pic1").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up_01.jpg";
			document.getElementById("pic2").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up2.jpg";
			document.getElementById("pic3").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up3.jpg";
			document.getElementById("pic4").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up4.jpg";
			document.getElementById("pic5").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up5.jpg";
			document.getElementById("pic6").src = "http://iuhealthprotontherapy.org/images/virtual-tour/roll6.jpg";
			document.getElementById("pic7").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up7.jpg";
			document.getElementById("pic8").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up8.jpg";
			document.getElementById("pic9").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up9.jpg";
			document.getElementById("pic10").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up10.jpg";
			document.getElementById("pic11").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up11.jpg";
			document.getElementById("pic12").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up12.jpg";
			break;
			
		case 7:
			document.getElementById("pic1").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up_01.jpg";
			document.getElementById("pic2").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up2.jpg";
			document.getElementById("pic3").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up3.jpg";
			document.getElementById("pic4").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up4.jpg";
			document.getElementById("pic5").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up5.jpg";
			document.getElementById("pic6").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up6.jpg";
			document.getElementById("pic7").src = "http://iuhealthprotontherapy.org/images/virtual-tour/roll7.jpg";
			document.getElementById("pic8").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up8.jpg";
			document.getElementById("pic9").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up9.jpg";
			document.getElementById("pic10").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up10.jpg";
			document.getElementById("pic11").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up11.jpg";
			document.getElementById("pic12").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up12.jpg";
			break;
			
		case 8:
			document.getElementById("pic1").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up_01.jpg";
			document.getElementById("pic2").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up2.jpg";
			document.getElementById("pic3").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up3.jpg";
			document.getElementById("pic4").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up4.jpg";
			document.getElementById("pic5").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up5.jpg";
			document.getElementById("pic6").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up6.jpg";
			document.getElementById("pic7").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up7.jpg";
			document.getElementById("pic8").src = "http://iuhealthprotontherapy.org/images/virtual-tour/roll8.jpg";
			document.getElementById("pic9").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up9.jpg";
			document.getElementById("pic10").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up10.jpg";
			document.getElementById("pic11").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up11.jpg";
			document.getElementById("pic12").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up12.jpg";
			break;
			
		case 9:
			document.getElementById("pic1").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up_01.jpg";
			document.getElementById("pic2").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up2.jpg";
			document.getElementById("pic3").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up3.jpg";
			document.getElementById("pic4").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up4.jpg";
			document.getElementById("pic5").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up5.jpg";
			document.getElementById("pic6").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up6.jpg";
			document.getElementById("pic7").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up7.jpg";
			document.getElementById("pic8").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up8.jpg";
			document.getElementById("pic9").src = "http://iuhealthprotontherapy.org/images/virtual-tour/roll9.jpg";
			document.getElementById("pic10").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up10.jpg";
			document.getElementById("pic11").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up11.jpg";
			document.getElementById("pic12").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up12.jpg";
			break;
			
		case 10:
			document.getElementById("pic1").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up_01.jpg";
			document.getElementById("pic2").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up2.jpg";
			document.getElementById("pic3").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up3.jpg";
			document.getElementById("pic4").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up4.jpg";
			document.getElementById("pic5").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up5.jpg";
			document.getElementById("pic6").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up6.jpg";
			document.getElementById("pic7").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up7.jpg";
			document.getElementById("pic8").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up8.jpg";
			document.getElementById("pic9").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up9.jpg";
			document.getElementById("pic10").src = "http://iuhealthprotontherapy.org/images/virtual-tour/roll10.jpg";
			document.getElementById("pic11").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up11.jpg";
			document.getElementById("pic12").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up12.jpg";
			break;
			
		case 11:
			document.getElementById("pic1").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up_01.jpg";
			document.getElementById("pic2").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up2.jpg";
			document.getElementById("pic3").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up3.jpg";
			document.getElementById("pic4").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up4.jpg";
			document.getElementById("pic5").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up5.jpg";
			document.getElementById("pic6").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up6.jpg";
			document.getElementById("pic7").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up7.jpg";
			document.getElementById("pic8").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up8.jpg";
			document.getElementById("pic9").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up9.jpg";
			document.getElementById("pic10").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up10.jpg";
			document.getElementById("pic11").src = "http://iuhealthprotontherapy.org/images/virtual-tour/roll11.jpg";
			document.getElementById("pic12").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up12.jpg";
			break;
			
		case 12:
			document.getElementById("pic1").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up_01.jpg";
			document.getElementById("pic2").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up2.jpg";
			document.getElementById("pic3").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up3.jpg";
			document.getElementById("pic4").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up4.jpg";
			document.getElementById("pic5").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up5.jpg";
			document.getElementById("pic6").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up6.jpg";
			document.getElementById("pic7").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up7.jpg";
			document.getElementById("pic8").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up8.jpg";
			document.getElementById("pic9").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up9.jpg";
			document.getElementById("pic10").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up10.jpg";
			document.getElementById("pic11").src = "http://iuhealthprotontherapy.org/images/virtual-tour/up11.jpg";
			document.getElementById("pic12").src = "http://iuhealthprotontherapy.org/images/virtual-tour/roll12.jpg";
			break;
	}	 
   }
   
   function setSlideNum(arg){
	   slide_num = arg;
	   changeslide();
   }

