

var imgUrl = new Array();
var imgLink = new Array();
var ss_counter = 0;
var ss_currentlink = "";
var ss_dummy = 0; 
var ss_interval = 5000; // milliseconds between slides

// ADD/MODIFY AS NECESSARY
// special cases:



        imgUrl[0] = "/images/home/homepage_spotlight_medicarereporting.jpg";
        imgLink[0] = "/medicare/";
        imgUrl[1] = "/images/home/homepage_spotlight_247.jpg";
        imgLink[1] = "/constituents/employers/advocacy_services.aspx";
        imgUrl[2] = "/images/home/homepage_spotlight_claims.jpg";
        imgLink[2] = "/constituents/employers/workers_comp_services.aspx";
        imgUrl[3] = "/images/home/homepage_spotlight_ppoapp.jpg";
        imgLink[3] = "/provider_lookup/app/PPO_App.aspx";
        imgUrl[4] = "/images/home/homepage_spotlight_physicaltherapy.jpg";
        imgLink[4] = "/constituents/employers/physical_occupational_therapy_network.aspx";
        imgUrl[5] = "/images/home/homepage_spotlight_clinical_modeling.jpg";
        imgLink[5] = "/constituents/employers/clinical_modeling.aspx";






// IF RANDOM INITIAL IS DESIRED...
ss_counter = Math.floor(Math.random()*imgUrl.length)

function spotlight_slideshow() {

    
    var spotlightDiv = document.getElementById('home_spotlight');


    if (spotlightDiv.filters && spotlightDiv.filters.length > 0) {
        spotlightDiv.filters[0].apply()
    }

    spotlightDiv.style.background='url(' + imgUrl[ss_counter] + ')';

    if (spotlightDiv.filters && spotlightDiv.filters.length > 0) {
        spotlightDiv.filters[0].play(1);
    }


    ss_currentlink = imgLink[ss_counter];
    ss_counter++;
    if (ss_counter == imgUrl.length) {
        ss_counter = 0;
    }
    ss_dummy = setTimeout("spotlight_slideshow()", ss_interval);
}

function spotlight_click() {
    if (ss_currentlink.substring(0,4) == "http") {
        window.open(ss_currentlink, 'CorvelPopupWindow', 'left=10,top=10,width=750,height=550,resizable=yes,scrollbars=yes,toolbar=yes,location=yes,status=yes,menubar=yes');
    } else {
        top.location = ss_currentlink;
    }
}


