/****************************************************************************   
Java Scripts used for Deloitte Home page flash functionality.
***************************************************************************/

	function hasScreenReader(bool){
		if(bool){
			//show alternate content
			showAlternativeContent();
		}else{
			killFlash('detectContainer');
			createMain();
			//alert("screen reader = " + bool);
		}
		
	}
	
	function killFlash(container){
		var flash = document.getElementById(container);
		if(navigator.userAgent.indexOf("MSIE")>-1) {
			//Internet Explorer
			flash.innerHTML = "";
		}else{
			flash.style.display = "none";
		}
	}
	
	function showAlternativeContent(){
		killFlash('swfContainer');
		killFlash('detectContainer');
		//Method for showing alternate html content
		//
		//
		alert("Screen Reader is on, Redirect to HTML homepage");
	}