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 = '
'+popupTitle+'    [x]
'; sunPopup.innerHTML += '
'+ popupText +'
'; //createIframe('sun-popup'); window.scrollTo(0,0); } function showPopupBlockerTest() { locPostDlog = '/misc/popup-blocker-test.jsp'; } // methods that hold the content for the popups var locPostDlog = null; var javaPop = { reco: function(elm) { popupTitle = 'Update Recommended'; popupButtons = ''; popupText = '
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.
Do you want to update your Java plug-in now?

'+popupButtons+'
'; }, none: function(elm) { popupTitle = 'You need to install Java...'; popupButtons = ''; popupText = '
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.
Do you want to install the Java plug-in now?

'+popupButtons+'
'; }, bad: function(elm) { popupTitle = 'You need to update Java...'; popupButtons = ''; popupText = '
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.
Do you want to update your Java plug-in now?

'+popupButtons+'
'; }, good: function(elm) { popupTitle = 'Java Plug-In Test Passed'; popupButtons = '
'; popupText = '
The version of the Java plug-in that is installed on your computer is up-to-date and should be functioning properly.
If you are experiencing technical difficulties, please visit our online help for assistance. A common problem that some players experience is that they are unable to play our games because they have a pop-up blocker installed.
Do you want to test to see if a pop-up blocker is preventing you from playing our games?

'+popupButtons+'
'; }, rsNone: function(elm) { popupTitle = 'You need to install Java...'; popupButtons = ''; popupText = '
Pogo.com games use the Java plug-in. You either do not have Java installed or you have a version that is incompatible with our games. It does not cost you anything to install Java.
Do you want to install the Java plug-in now?

'+popupButtons+'
'; }, rsBad: function(elm) { popupTitle = 'Update Required'; popupButtons = ''; popupText = '
Pogo.com games use the Java plug-in. The version of the Java plug-in that you are using is not compatible with our games and needs to be updated. The update process is fast, easy, and free.
Do you want to update your Java plug-in now?

'+popupButtons+'
'; }, rsReco: function(elm) { popupTitle = 'Update Recommended'; popupButtons = ''; popupText = '
Pogo.com games use the Java plug-in. The version of the Java plug-in that you are using is out-of-date and may not be compatible with all 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.
Do you want to update your Java plug-in now?

'+popupButtons+'
'; }, destroy: function(elm) { obj = document.getElementById('sun-popup'); document.body.removeChild(obj); //removeIframe('sun-popup'); reloadCSSonIE6(); if (locPostDlog != null) { location = locPostDlog; } } }; // this function creates a hidden iframe underneath the // dhtml popup to prevent the applet from showing through function createIframe(pi){ var layer = document.createElement('iframe'); layer.tabIndex = '-1'; layer.src = ''; document.getElementById(pi).parentNode.appendChild(layer); layer.id = 'sun-iframe'; layer.style.position = 'absolute'; layer.style.left = document.getElementById(pi).offsetLeft + 'px'; layer.style.top = document.getElementById(pi).offsetTop + 'px'; layer.style.width = document.getElementById(pi).offsetWidth + 'px'; layer.style.height = document.getElementById(pi).offsetHeight + 'px'; //layer.style.zIndex = document.getElementById(pi).style.zIndex - 1; if(navigator.appVersion.indexOf("MSIE 6.0") == 17){ layer.style.height = document.getElementById(pi).offsetHeight - 20 + 'px'; } } function removeIframe(){ var layers = document.getElementsByTagName('iframe'); while(layers.length > 0){ layers[0].parentNode.removeChild(layers[0]); } } function reloadCSSonIE6() { if(navigator.appVersion.indexOf("MSIE 6.0") == 17){ var i,a,s; a=document.getElementsByTagName('link'); for(i=0; i < a.length; i++){ s = a[i]; if(s.href.toLowerCase().indexOf('header.css') >= 0 && s.href) { var h=s.href;s.href=h;break; } } } }