
	    //--------------------------------	
		//This set of functions is for the rotation on REFRESH
		//--------------------------------
		
		  function DoXrandRangeA(lowVal,highVal) {
        if(!Math.floor || !Math.random ) return -1;
        return Math.floor(Math.random()*(highVal-lowVal+1))+lowVal;
        }
        
      
        
        
        function setClassSafelyA(element, value) {
        
        var theClassA = element.getAttribute("className");
        
        if (theClassA) {
        element.setAttribute("className", value); 
        
        }
        
        
        else { 
        element.setAttribute("class", value); 
        
        }
        }
        
        //This function is here so the Random Rotation Doc javascript plays nice with other Random Img doc types
        
        function RandDOCaddLoadEventA(func) {
        var oldonloadA = window.onload;
        if (typeof window.onload != 'function') {
        window.onload = func;
        } else {
        window.onload = function() {
        if (oldonloadA) {
        oldonloadA();
        }
        func();
        }
        }
        }
        
        
        function randDocWindowA() {
        
        var randEleNameA =  'refreshRotateId' + randIndexA;  
        var eleA = document.getElementById(randEleNameA);   
        var eleA = document.getElementById(randEleNameA); 
        setClassSafelyA(eleA, "shown-itemA");
        
        
        
        }
        
       