//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)
 };
        //need to set the actual interval after, since it uses 
        //an object property
         _proxy_jslib_assign('', TAROT_DIVSPOT, ('Interval'), '=', (  _proxy_jslib_handle(window, 'setInterval', '', 1, 0)(tarotDivSpotTimerHook,  _proxy_jslib_handle(TAROT_DIVSPOT, ('delay'), 0, 0))));                        

        function tarotShowDivSpot(theNumber) {
            //clear the existing interval whenever someone clicks
            //on a button so the timer is reset
            clearInterval( _proxy_jslib_handle(TAROT_DIVSPOT, ('Interval'), 0, 0));
            
            //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( _proxy_jslib_handle(document, 'getElementById', '', 1, 0)( _proxy_jslib_handle(TAROT_DIVSPOT, ('divIdPrefix'), 0, 0)+i)){
                     _proxy_jslib_handle(document, 'getElementById', '', 1, 0)( _proxy_jslib_handle(TAROT_DIVSPOT, ('divIdPrefix'), 0, 0)+i).style.display = 'none';


                }
            }



            //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 =  _proxy_jslib_handle( _proxy_jslib_handle(document, 'getElementById', '', 1, 0)('tarot_ds_imagename_'+theNumber), 'value', '', 0, 0);
            if(imgName != 'set'){
                 _proxy_jslib_assign('',  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)('tarot_ds_imagetag_'+theNumber), 'src', '=', ( imgName));
                 _proxy_jslib_assign('',  _proxy_jslib_handle(document, 'getElementById', '', 1, 0)('tarot_ds_imagename_'+theNumber), 'value', '=', ( 'set'));
            }
            //show the passed in div spot
             _proxy_jslib_handle(document, 'getElementById', '', 1, 0)( _proxy_jslib_handle(TAROT_DIVSPOT, ('divIdPrefix'), 0, 0)+theNumber).style.display = 'block';
            
             _proxy_jslib_assign('', TAROT_DIVSPOT, ('currentSpot'), '=', ( theNumber));

            //start the interval backup again 
             _proxy_jslib_assign('', TAROT_DIVSPOT, ('Interval'), '=', (  _proxy_jslib_handle(window, 'setInterval', '', 1, 0)(tarotDivSpotTimerHook,  _proxy_jslib_handle(TAROT_DIVSPOT, ('delay'), 0, 0))));
        }
      
        function tarotDivSpotTimerHook() {
            if(! _proxy_jslib_handle(TAROT_DIVSPOT, ('isPaused'), 0, 0)){
                 _proxy_jslib_assign('', TAROT_DIVSPOT, ('currentSpot'), '++', '');
                //check if the div exists, if not, reset to "1"
                if(! _proxy_jslib_handle(document, 'getElementById', '', 1, 0)( _proxy_jslib_handle(TAROT_DIVSPOT, ('divIdPrefix'), 0, 0)+ _proxy_jslib_handle(TAROT_DIVSPOT, ('currentSpot'), 0, 0))){
                     _proxy_jslib_assign('', TAROT_DIVSPOT, ('currentSpot'), '=', ( 1));
                }
                if( _proxy_jslib_handle(document, 'getElementById', '', 1, 0)('tarot_ds_imagename_'+ _proxy_jslib_handle(TAROT_DIVSPOT, ('currentSpot'), 0, 0)))
                {
                    tarotShowDivSpot( _proxy_jslib_handle(TAROT_DIVSPOT, ('currentSpot'), 0, 0));
                }
            }
        }
       
		// I'm going to mod this to toggle the paused state, sicne the normal divspots don't have a "play" button. 
        function tarotDivSpotPause() {
			 _proxy_jslib_assign('', TAROT_DIVSPOT, ('isPaused'), '=', (  _proxy_jslib_handle(TAROT_DIVSPOT, ('isPaused'), 0, 0) == true ? false : true));
        }


 ;
_proxy_jslib_flush_write_buffers() ;