function cssPopup(){
	if(document.getElementById){
		document.getElementById("popup").style.display="none"; 
		return false; 
	}
	else 
	return true;
}
function cssErrorFlash(){
	if(document.getElementById){
		document.getElementById("no_flash_embedded_error").style.display="none"; 
		return false; 
	}
	else 
	return true;
}
// Function checking the flash player plugin    

    // stays false is there is no flash function
    var checkFunction = "false";
    //checks if there is the right version of flash player
    function checkFlash(){
        //the versions which are checked
        var requiredMajorVersion = 8;
        var requiredMinorVersion = 0;
        var requiredRevision = 0;
    
        // Version check based upon the values entered above in "Globals"
        var hasReqestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
        
        	//checks if there is the writeFlash function available
        	if(checkFunction=="true"){            	
        		// if an acceptable version is detected 
        		// embed the Flash Content when all tests are passed
				
        		if (hasReqestedVersion) { 
	        		writeFlash();   
					if(!(document.getElementById("flash_banner"))){
						if(document.getElementById("non_flash_banner")){
							document.getElementById("non_flash_banner").style.display = "inline";
						}

					}                 
          	}else {  
								//for Banner Flash display the div with a static banner
								if(document.getElementById("non_flash_banner")){
									document.getElementById("non_flash_banner").style.display = "inline";
								}
								//for embedded videos show a static image and the hint with possibility to download the player
								if(document.getElementById("no_flash_video")){
               						document.getElementById("no_flash_video").style.display = "inline";
                				}
                				else if(document.getElementById("ilearning")){       
                					alert('ilearning');         	
               						openWindow("/2007/de/config_checker.html", 500, 500, "yes");
                				}                
        		}        
        	}
        	if(checkFunction=="false"){
								if(document.getElementById("non_flash_banner")){										
									document.getElementById("non_flash_banner").style.display = "inline";
								}        	
								else if(document.getElementById("no_flash_video")){
               		document.getElementById("no_flash_video").style.display = "inline";
           	}
        }
        
    }        
