function javaAlert(option){ var newElem = document.createElement('div'); newElem.setAttribute('id', 'sun-popup'); document.body.appendChild(newElem); var sunPopup = document.getElementById('sun-popup'); switch(option){ case 'reco' : javaPop.reco(); break; case 'none' : javaPop.none(); break; case 'bad' : javaPop.bad(); break; case 'good' : javaPop.good(); break; case 'rsReco' : javaPop.rsReco(); break; case 'rsNone' : javaPop.rsNone(); break; case 'rsBad' : javaPop.rsBad(); break; } sunPopup.innerHTML = '
The version of the Java Plug-in that you are using is out-of-date and may be incompatible with some of our games. You don\'t have to update, but we recommend that you do. It does not cost you anything to update your Java plug-in.
You do not have the Java plug-in installed. You need to install this plug-in before you can play our games. It does not cost you anything to install Java.
The version of Java that you have installed is not compatible with our games and needs to be updated. The update process is fast, easy and free.
The version of the Java plug-in that is installed on your computer is up-to-date and should be functioning properly.