

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/spotlight_capture.jpg";
        imgLink[0] = "/Products/Capture.aspx";
        imgUrl[1] = "/images/home/spotlight_workflow.jpg";
        imgLink[1] = "/Products/Workflow.aspx";
        imgUrl[2] = "/images/home/spotlight_cap.jpg";
        imgLink[2] = "/Supporting_Solutions/Customer_Access_Portal.aspx";




// IF RANDOM INITIAL IS DESIRED...
ss_counter = Math.floor(Math.random()*imgUrl.length)

function spotlight_slideshow() {

    document.getElementById('row1Spotlight').style.background='url(' + imgUrl[ss_counter] + ')';
    
    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, 'ScanOnePopupWindow', '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;
    }
}


