

function setOpacity( value ) {
  SLIDE.style.opacity = value / 10;
  SLIDE.style.filter = 'alpha(opacity=' + value * 10 + ')';
  }

function HidePopup() {
          for( var i = 0 ; i <= 100 ; i++ ) {
                         setTimeout( 'setOpacity(' + (10 - i / 10) + ')' , 8 * i );
                          }
          setTimeout('document.getElementById("1").style.display = "none"', 800 );
          setTimeout('document.getElementById("2").style.display = "none"', 800 );
          }

function ShowPopup() {
    setOpacity( 0 );
    SLIDE.style.display = "block";
    for( var i = 0 ; i <= 100 ; i++ )
    setTimeout( 'setOpacity(' + (i / 10) + ')' , 8 * i );
    document.getElementById(".popup").style.border = "width:490px;height:370px;display:none;position:absolute;top:0px;left:0px;zoom:1;z-index:5";
   }	

function loadPop1(){SLIDE = document.getElementById("1"); ShowPopup()}
function loadPop2(){SLIDE = document.getElementById("2"); ShowPopup()} 
