// JavaScript Document
//<![CDATA[
//The original javascript came from http://www.sunburnt.com.au/publications/design/javascript-fade-effects
        //I modified it to work with my code

        //set the opacity of the element (between 0.0 and 1.0)       
        function setOpacity(id, level) {            
            var element = document.getElementById(id); 
            element.style.display = 'block';           
            element.style.zoom = 1;
            element.style.opacity = level;
            element.style.MozOpacity = level;
            element.style.KhtmlOpacity = level;
            element.style.filter = "alpha(opacity=" + (level * 100) + ");";
        }

        function fadeIn(id, steps, duration, interval){  
            var fadeInComplete;      
            for (i = 0; i <= 1; i += (1 / steps)) {
              setTimeout("setOpacity('" + id + "', " + i + ")", i * duration); 
              fadeInComplete = i * duration;             
            }
            //set the timeout to start after the fade in time and the interval to display the 
            //message on the screen have both completed            
            //setTimeout("fadeOut('" + id + "', " + fadeOutSteps + ", " + fadeOutDuration + ")", fadeInComplete + interval
			setTimeout("closeThis()", fadeInComplete);
        }
		function closeThis(){
			self.close ();
		}
//]]>
