    var oc = 90;

    function test(){
        if (navigator.userAgent.indexOf("MSIE") != -1) {
        fadeInMS();
        }
        else {
        fadeInFF();
        }
    }
      function fadeInMS() {
        document.getElementById("java").style.filter="alpha(opacity="+oc+")";
        if(oc != 100) setTimeout('oc++; fadeInMS()',20);
        else setTimeout('fadeOutMS()',3000);
      }

      function fadeOutMS() {
        document.getElementById("java").style.filter="alpha(opacity="+oc+")";
        if(oc != 0) setTimeout('oc--;fadeOutMS()',20);
        else setTimeout('fadeInMS()',50);
      }

      function fadeInFF() {
        document.getElementById("java").style.MozOpacity = oc/100;
        if(oc != 99) setTimeout('oc++; fadeInFF()',20);
        else setTimeout('fadeOutFF()',3000);
      }

      function fadeOutFF() {
        document.getElementById("java").style.MozOpacity = oc/100;
        if(oc != 0) setTimeout('oc--; fadeOutFF()',20);
        else setTimeout('fadeInFF()',50);
      }

