#mask {
  position:absolute;
  left:0;
  top:0;
  z-index:9000;
  background-color:#000;
  display:none;
}
#popup {
  position:absolute;
  left:0;
  top:0;
  width:640px;
  height:500px;
  display:none;
  z-index:9999;
  
  background-color: white;
}
#popupheader{
    width:100%;
    text-align:right;
    height:7%;
    background-color: #9999CC;
}
#popupheader a{
 padding:0px 4px;
 color:black;
 cursor:pointer;
 }
#popupheader a:hover{
   background-color: #99FFFF;
 }
.popupFadeIn {
	opacity:0;
    -webkit-animation:fadeIn ease-in 0.8;
    -moz-animation:fadeIn ease-in 0.8;
    -o-animation:fadeIn ease-in 0.8;
    animation:fadeIn ease-in 0.8;
    -webkit-animation-fill-mode:forwards;
    -moz-animation-fill-mode:forwards;
    -o-animation-fill-mode:forwards;
    animation-fill-mode:forwards;
}
.popupFadeIn-1s {
        -webkit-animation-duration:1s;
        -moz-animation-duration:1s;
        -o-animation-duration:1s;
        animation-duration:1s;
}
@-webkit-keyframes fadeIn { from { opacity:0; } to { opacity:0.8; } }
@-moz-keyframes fadeIn { from { opacity:0; } to { opacity:0.8; } }
@-o-keyframes fadeIn { from { opacity:0; } to { opacity:0.8; } }
@keyframes fadeIn { from { opacity:0; } to { opacity:0.8; } }