/*
	Description: This is the javascript for the Read Aloud Pop-up and parameters to pass into Read Aloud
	Date: 4/15/09
	Notes: 
*/

	ReadAloud._highlightClass = "highlight"; // this calls the highlighting style in readaloud.css
	//ReadAloud._debug = true; // uncomment to allow debug mode. This will highlight all text that will be read to a lime highlight
	ReadAloud._tag = "font"; // tag which the Read Aloud will wrap around the text
	//ReadAloud.setSpeed('Slow'); // the speed the Read Aloud will begin with
	ReadAloud._postURL = "/student/ReadAloud"; // the cgi location
	ReadAloud._flashPath = "/eeh/flash/As3_js-1.1.swf"; // the swf location

	// Hide and Disable Read Aloud Feature when closed button is pressed		
	function closeToolbar(){
		var readAloudPopUp = document.getElementById("T2SOverLay");
		readAloudPopUp.style.display = "none";
		ReadAloud.disable(); 		
	}
	
	// Shows Popup and loading bar
	function enableBegin()
	{
		    if(ReadAloud._readyState == 2){
		        $("#T2SOverLay").show();
			    $(".loadingMessage").show();			    
			}	
			else if (ReadAloud._readyState == 3){
			$(".loadingMessage").hide();
			    $("#T2SOverLay").show();		 
			    }   
	}

