
        //put all the needed globals into the TAROT_DIVSPOT
        //to avoid potential global namespace conflicts.  
        //should do this with function too...baby steps
        var TAROT_DIVSPOT = {

            'divIdPrefix':'tarot_div_spot_',
            'currentSpot':1,
            'isPaused':false,
            'delay':(1000*10),
            'forward': true
        };
        //need to set the actual interval after, since it uses 
        //an object property
        TAROT_DIVSPOT['Interval'] = window.setInterval(tarotDivSpotTimerHook, TAROT_DIVSPOT['delay']);                        
        function tarotShowDivSpot(theNumber){
            //clear the existing interval whenever someone clicks
            //on a button so the timer is reset
            clearInterval(TAROT_DIVSPOT['Interval']);
            
            //hide *all* the div spots
            for(var i=1;i<6;i++){
                //since all 4 spots won't always be there,
                //check that the spot exists before hiding it.
                if(document.getElementById(TAROT_DIVSPOT['divIdPrefix']+i)){
                    document.getElementById(TAROT_DIVSPOT['divIdPrefix']+i).style.display = 'none';
                    document.getElementById("spot"+i).src="http://gfx.tarot.com/images/homepage/spotlight/off"+i+".png";


                }
            }

            document.getElementById("spot"+theNumber).src="http://gfx.tarot.com/images/homepage/spotlight/on"+theNumber+".png";


            //change the src if we havn't already.
            //version of IE will *always* fetch an image if you
            //set it's src by the DOM, we we need to make sure 
            //we only set things once

            var imgName = document.getElementById('tarot_ds_imagename_'+theNumber).value;
            if(imgName != 'set'){
                document.getElementById('tarot_ds_imagetag_'+theNumber).src = imgName;
                document.getElementById('tarot_ds_imagename_'+theNumber).value = 'set';
            }
            //show the passed in div spot
            document.getElementById(TAROT_DIVSPOT['divIdPrefix']+theNumber).style.display = 'block';
            
            TAROT_DIVSPOT['currentSpot'] = theNumber;

            //start the interval backup again 
            TAROT_DIVSPOT['Interval']       = window.setInterval(tarotDivSpotTimerHook, TAROT_DIVSPOT['delay']);
        }
        
        function tarotDivSpotTimerHook(){
            if(!TAROT_DIVSPOT['isPaused']){

                if(TAROT_DIVSPOT['forward']){
                    TAROT_DIVSPOT['currentSpot']++;
                    //check if the div exists, if not, reset to "1"
                    if(!document.getElementById(TAROT_DIVSPOT['divIdPrefix']+TAROT_DIVSPOT['currentSpot'])){
                        TAROT_DIVSPOT['currentSpot'] = 1;
                    }
                    if(document.getElementById('tarot_ds_imagename_'+TAROT_DIVSPOT['currentSpot']))
                    {
                        tarotShowDivSpot(TAROT_DIVSPOT['currentSpot']);
                    }
                }
                else
                {
                    TAROT_DIVSPOT['currentSpot']--;
                    //check if the div exists, if not, reset to "1"
                    if(!document.getElementById(TAROT_DIVSPOT['divIdPrefix']+TAROT_DIVSPOT['currentSpot'])){
                        TAROT_DIVSPOT['currentSpot'] = 4;
                    }
                    if(document.getElementById('tarot_ds_imagename_'+TAROT_DIVSPOT['currentSpot']))
                    {
                        tarotShowDivSpot(TAROT_DIVSPOT['currentSpot']);
                    }


                }
            }
        }
        
        function tarotDivSpotPause(){
            
            if(TAROT_DIVSPOT['isPaused'] == true)
            {
              TAROT_DIVSPOT['isPaused'] = false;
              document.getElementById("pausebtn").src = "http://gfx.tarot.com/images/homepage/spotlight/off-pause.png";
            }
            else
            {
                TAROT_DIVSPOT['isPaused'] = true;
                document.getElementById("pausebtn").src = "http://gfx.tarot.com/images/homepage/spotlight/on-pause.png";
            }
        }

        function tarotDivSpotPlay(){
            TAROT_DIVSPOT['isPaused'] = false;
            TAROT_DIVSPOT['forward'] = true;
            document.getElementById("pausebtn").src = "http://gfx.tarot.com/images/homepage/spotlight/off-pause.png";
        
        }

        function tarotDivSpotPrev(){
            TAROT_DIVSPOT['isPaused'] = false;
            TAROT_DIVSPOT['forward'] = false;
            document.getElementById("pausebtn").src = "http://gfx.tarot.com/images/homepage/spotlight/off-pause.png";

        }

