﻿function dn() {
    // Empty Placeholder Function
}

//alert('galleryImage');

function imgcapSwitch(id) {

    var idLength = id.length;
    var idSection = id.slice(0, idLength - 1);

    var captionName = idSection + "galleryCaption";
    var galleryName = idSection + "galleryImage";
    var myCaption = document.getElementById(captionName);
    myCaption.innerHTML = gallery[id];
    var myImage = document.getElementById(galleryName);
    myImage.src = "/img/photoGallery/" + id + "_l.jpg";

    for (var i = 1; i <= number[idSection]; i++) {
        var j = String(i);
        variableName = idSection + j;
        var thumbImage = document.getElementById(variableName);
        // alert(variableName + ' ' + thumbImage);
        thumbImage.src = "/img/photoGallery/" + variableName + "_n.jpg";
    }

    var myThumb = document.getElementById(id);
    myThumb.src = "/img/photoGallery/" + id + "_r.jpg";

}

function tabSwitch(id) {
    var myFac = document.getElementById('facility');
    myFac.style.display = "none";

    var myPeo = document.getElementById('people');
    myPeo.style.display = "none";

    var myTech = document.getElementById('technology');
    myTech.style.display = "none";

    //  alert(id);

    var myTab = document.getElementById(id);
    myTab.style.display = "block";
}

function switchImg(id) {
    var myImage = document.getElementById('galleryIntro');
    myImage.src = "/img/photoGallery/" + id + ".jpg";
}


var number = new Object;
number["facility"] = 6;
number["people"] = 5;
number["technology"] = 3;


var gallery = new Object;
// Facility Objects
gallery["facility1"] = "<h1>Communal 'Living Room'</h1>Attention to comfort is evident in the infusion bays, where patients are offered the choice of private, semi-private or community therapy areas.";
gallery["facility4"] = "<h1>Unique Design Touches</h1>The Center's thoughtful design extends to the smallest details.";
gallery["facility2"] = "<h1>Boutique</h1>Just off the main lobby, the Boutique, managed by Bevers Pharmacy is a handy resource for gifts or items specific to the needs of the cancer patient, such as breast prostheses.";
gallery["facility5"] = "<h1>Main Lobby Library</h1>A reference library and Internet kiosk in the main lobby provide easy access to information.";
gallery["facility3"] = "<h1>Front of the Building</h1>State-of-the-art cancer care is housed in a warm, inviting building..";
gallery["facility6"] = "<h1>Unique Design Touches</h1>The Center's thoughtful design extends to the smallest details.";
// People Objects
gallery["people1"] = "<h1> Sally Acton, RN, OCN, MSM</h1>Director, Cancer Services. Oncology Nurse since 1986.";
gallery["people2"] = "<h1>Rahul Dewan, DO</h1>Board Certified in Internal Medicine, Radiology and Radiation Oncology, Dr. Dewan attended Texas A&M University College of Medicine and completed his residency at National Cancer Institute and Brooke Army Medical Center. He joined the medical staff at Schneck Medical Center in 1995.";
gallery["people3"] = "<h1>Lynda Richey, RN, BSN, OCN</h1>Breast Health Navigator. Oncology Nurse since 1991.";
gallery["people4"] = "<h1>Dolores C. Olivarez, M.D.</h1>A graduate of Cornell University Medical College with residency at Vanderbilt University School of Medicine. Dr. Olivarez joined the staff of Schneck Medical Center in 1998.";
gallery["people5"] = "<h1>Edwin B. Watkins, M.D.</h1>Board Certified in Radiology and Radiation Oncology, Dr. Watkins attended University of Nebraska College of Medicine and completed his residency at National Cancer Institute. He joined the medical staff at Schneck Medical Center in 1993.";

// Technology Objects
gallery["technology1"] = "<h1>CT Scanner</h1>Treatments are carefully planned using 3-D Computed Tomography (CT) images of the patient to determine the dose intensity pattern and the precise location to be targeted.";
gallery["technology2"] = "<h1>Linear Accelerator</h1>This device uses high-precision radiotherapy to deliver custom-tailored doses of radiation.";
gallery["technology3"] = "<h1>IMRT and 3-D CRT</h1>The Linear Accelerator is used for Intensity Modulated Radiation Therapy (IMRT) and 3-Dimensional Conformal Radiation Therapy (3-D CRT). Both are designed to target affected areas while preserving surrounding healthy tissu";

