var page = 0;

function changeContentUp(){
        page++;
        
        if (page==1){
            document.getElementById('leftlink').innerHTML = "<a href='javascript:changeContentDown();'><IMG id=leftarrow border=0></a>";
            document.getElementById('leftarrow').src = '/admin/phpDFB/images/bottomborder2.jpg';
            document.getElementById('mainimage').src = '/admin/phpDFB/images/P9170972nurseandpatient.jpg';
            document.getElementById('header').innerHTML = 'Meeting With Your Nurse';
            document.getElementById('content').innerHTML = 'Your nurse will become a familiar face during treatment. On your first day and once a week thereafter, your nurse will meet with you to explain the radiation therapy process, answer questions, and provide information on skin care, dietary needs, and managing side effects.';
        }
        
        if (page==2){
            document.getElementById('mainimage').src = '/admin/phpDFB/images/P9170975doctorandpatient.jpg';
            document.getElementById('header').innerHTML = 'Working With Your Physician';
            document.getElementById('content').innerHTML = 'You will meet your physician at the initial appointment to discuss your care and treatment options. During the treatment process, your physician will meet with you once a week to monitor your progress and care.';
        }
        
        if (page==3){
            document.getElementById('mainimage').src = '/admin/phpDFB/images/P9170970simulator.jpg';
            document.getElementById('header').innerHTML = 'How Simulation Works';
            document.getElementById('content').innerHTML = 'Once it has been decided you will have radiation treatment, you will be scheduled for a simulation. The simulator takes X-rays that are used to position and map out your treatment area. Immobilization devices, such as face masks or vac loks (special braces made to stabilize and prevent movement ), may also be constructed at this time to ensure correct body position for daily treatments.';
        }
        
        if (page==4){
            document.getElementById('mainimage').src = '/admin/phpDFB/images/P9170954treatmentplanning.jpg';
            document.getElementById('header').innerHTML = 'Planning Your Treatment';
            document.getElementById('content').innerHTML = 'The physician, along with the dosimetrist, will use a special computer to plan your treatment and calculate effective radiation doses for your treatment.';
        }
        
        if (page==5){
            document.getElementById('rightlink').innerHTML = "<IMG id=rightarrow border=0>";
            document.getElementById('rightarrow').src = '/admin/phpDFB/images/bottomborder3blank.jpg';
            document.getElementById('mainimage').src = '/admin/phpDFB/images/P9170980patienttreatment.jpg';
            document.getElementById('header').innerHTML = 'What Happens At Your Treatment Session';
            document.getElementById('content').innerHTML = 'Once your treatment plan is prepared, you will begin treatment. The therapist will place you in the same position used during simulation. Therapists use laser lights and measurements to verify your position. The use of X-rays, ultrasound, and cone beam may also be used to verify position.';
        }
}

function changeContentDown(){
        page--;
        
        if (page==0){
            document.getElementById('leftlink').innerHTML = "<IMG id=leftarrow border=0>";
            document.getElementById('leftarrow').src = '/admin/phpDFB/images/bottomborder2blank.jpg';
            document.getElementById('mainimage').src = '/admin/phpDFB/images/P9170976secretaryandpatient.jpg';
            document.getElementById('header').innerHTML = 'Welcome to your radiation <br />therapy center';
            document.getElementById('content').innerHTML = 'On your first visit to the radiation therapy center, you will check in at the front desk. The medical secretary will copy your insurance card and have you fill out some paperwork.';
        }
        
        if (page==1){
            document.getElementById('mainimage').src = '/admin/phpDFB/images/P9170972nurseandpatient.jpg';
            document.getElementById('header').innerHTML = 'Meeting With Your Nurse';
            document.getElementById('content').innerHTML = 'Your nurse will become a familiar face during treatment. On your first day and once a week thereafter, your nurse will meet with you to explain the radiation therapy process, answer questions, and provide information on skin care, dietary needs, and managing side effects.';
        }
        
        if (page==2){
            document.getElementById('mainimage').src = '/admin/phpDFB/images/P9170975doctorandpatient.jpg';
            document.getElementById('header').innerHTML = 'Working With Your Physician';
            document.getElementById('content').innerHTML = 'You will meet your physician at the initial appointment to discuss your care and treatment options. During the treatment process, your physician will meet with you once a week to monitor your progress and care.';
        }
        
        if (page==3){
            document.getElementById('mainimage').src = '/admin/phpDFB/images/P9170970simulator.jpg';
            document.getElementById('header').innerHTML = 'How Simulation Works';
            document.getElementById('content').innerHTML = 'Once it has been decided you will have radiation treatment, you will be scheduled for a simulation. The simulator takes X-rays that are used to position and map out your treatment area. Immobilization devices, such as face masks or vac loks (special braces made to stabilize and prevent movement ), may also be constructed at this time to ensure correct body position for daily treatments.';
        }
        
        if (page==4){
            document.getElementById('rightlink').innerHTML = "<a href='javascript:changeContentUp();'><IMG id=rightarrow border=0></a>";
            document.getElementById('rightarrow').src = '/admin/phpDFB/images/bottomborder3.jpg';
            document.getElementById('mainimage').src = '/admin/phpDFB/images/P9170954treatmentplanning.jpg';
            document.getElementById('header').innerHTML = 'Planning Your Treatment';
            document.getElementById('content').innerHTML = 'The physician, along with the dosimetrist, will use a special computer to plan your treatment and calculate effective radiation doses for your treatment.';
        }
}