body.modalopen {
  overflow: hidden;
}

.modalformOverlay{width:100%;height:100%;position:fixed;top:0;left:0;/***/z-index:8;/***/background:url('ie.png'); 
	background: -moz-linear-gradient(rgba(11,11,11,0.1), rgba(11,11,11,0.5)) repeat-x rgba(11,11,11,0.2);
	background:-webkit-gradient(linear, 0% 0%, 0% 100%, from(rgba(11,11,11,0.1)), to(rgba(11,11,11,0.5))) repeat-x rgba(11,11,11,0.2);}

.modalformBox{ /*background: #fff;*/
  -webkit-box-shadow: 0 3px 20px rgba(0,0,0,0.6); -moz-box-shadow: 0 3px 20px rgba(0,0,0,0.6);box-shadow: 0 3px 20px rgba(0,0,0,0.6);
  background: -moz-linear-gradient(#fff, #ccc);
  background: -webkit-gradient(linear, right bottom, right top, color-stop(1, rgb(255,255,255)), color-stop(0.57,rgb(230,230,230)));
 /* text-shadow: 0 1px 0 #fff;*/
  color: #444;

}

@media screen and (min-width: 1000px) {
   .modalformBox_small{  
     max-width:974px !important; 
     height:auto !important;  
     position: relative !important;
     margin:10% auto 10% auto; 
     padding: 30px 30px 10px 30px;
     -moz-border-radius: 0px; border-radius: 0px;   /*overflow:hidden;*/
   }
}
@media screen and (max-width: 1000px) {
   .modalformBox_small{  
     position: fixed !important;
     top:95px; left:5px; right:5px; bottom:5px;  
     /*padding: 30px 30px 10px 30px;*/
     -moz-border-radius: 0px; border-radius: 0px;   /*overflow:hidden;*/
   }
}

.modalformBox_full{   
   width: 100% !important;  
   height: 100% !important;
   position: fixed !important; 
   margin:0 !important; 
   top:0 !important;
   left:0 !important; 
   right:0 !important; 
   bottom:0 !important; 
   padding:0 !important;
   -moz-border-radius: 0px; border-radius: 0px;  
 }

.modalformImage{ text-align: center;
  max-width: 800px !important; height:auto !important;  position: relative !important;   margin:1% auto 1% auto; 
}
.modalformImage img{ text-align: center;
  padding: 0px; margin-top: -25%;
  -webkit-box-shadow: 0 3px 20px rgba(0,0,0,0.6); -moz-box-shadow: 0 0px 20px rgba(0,0,0,0.6);box-shadow: 0 3px 20px rgba(0,0,0,0.6);
  /*border: 1px solid #666;*/
  background: -moz-linear-gradient(#fff, #ccc);
  background: -webkit-gradient(linear, right bottom, right top, color-stop(1, rgb(255,255,255)), color-stop(0.57,rgb(230,230,230)));
}

.modalformImage-nobg{  max-width: 800px !important; height:auto !important;  position: relative !important;   margin:1% auto 1% auto; }
.modalformImage-nobg img{ text-align: center;
  padding: 0px; margin-top: -25%;
}


.modalImg{text-align: center; margin: 0 !important; max-width:800px;}

.modalformBox h1,
.modalformBox h2,
.modalformBox h3,
.modalformBox h4 {margin:0 0 5px 0;padding:0px;  line-height: 0.8em; font-size: 1.6em; }

.modalformBox .ajax_container{ min-height: 150px; position:relative; }

@media screen and (max-height: 800px){
.modalformBox .ajax_container{max-height: 300px;  overflow: auto;}
}


.modalformBox .dialog-buttons{ text-align: right;margin:10px 0;padding:0px;}
.modalformBox .dialog-buttons .btn{ margin-left: 5px;}
.modalformBox_full  .dialog-buttons{padding-right:30px;}
.modalformBox       .closelink{position: absolute;top: 10px; right:15px; color:silver; cursor:pointer; font-size: 15px; font-weight:300;line-height:19px; text-decoration: none;display: inherit;}
.modalformBox       .closelink:hover{color: #6666ff;}
.modalformBox_small .fullslink{position: absolute;top: 10px; right:35px; color:silver; cursor:pointer; font-size: 15px; font-weight:300;line-height:19px; text-decoration: none;display: inherit;}
.modalformBox_small .fullslink:hover{color: #6666ff;}
.modalformBox_full  .restslink{position: absolute;top: 10px; right:35px; color:silver; cursor:pointer; font-size: 15px; font-weight:300;line-height:19px; text-decoration: none;display:inherit;}
.modalformBox_full  .restslink:hover{color: #6666ff;}

.modalformBox_full .ajax_container,
.modalformBox_full h4{margin: 30px 30px 10px 30px;}
.modalformBox_full .fullslink{display: none;}
.modalformBox_small .restslink{display: none;}

.modalformBox_small .about{color:silver;}
.modalformBox_full .about{color:silver; position:absolute; left: 30px; bottom: 30px;}

.modalformBox .bar {position:absolute;top:8px; left:8px; right:8px;/**80px**/height:22px; /*outline:0px dotted #dbdbdb;*/ background-color:transparent;
                      -moz-border-radius: 0px; border-radius: 0px;  cursor: hand; cursor: pointer;}
.modalformBox .bar:hover{/*outline:1px dotted #dbdbdb;*/background-color:#efefef;}

.ajax_container pre {max-height:600px;overflow:auto;}

