function resetTransparency() {
 var viewportwidth; 
 var viewportheight;   
 if (typeof window.innerWidth != 'undefined')  {   
 viewportwidth = window.scrollWidth;  
 viewportheight = window.scrollHeight 
 }  else if (typeof document.documentElement != 'undefined' && typeof document.documentElement.scrollWidth != 'undefined' && document.documentElement.scrollWidth != 0)     {        viewportwidth = document.documentElement.scrollWidth;            
 viewportheight = document.documentElement.scrollHeight }              // older versions of IE               
 else { viewportwidth = document.getElementsByTagName('body')[0].scrollWidth;                    
 viewportheight = document.getElementsByTagName('body')[0].scrollHeight;                       }                       
 var  width= viewportwidth;                    
 var height=viewportheight;                   
 document.getElementById("PopUp").style.width =width              
 document.getElementById("PopUp").style.height = height 

 // document.getElementById("PopUp").style.min-height = 100+"%";
}
function resetTransparency2() {
	 document.getElementById("PopUp").style.height = document.body.scrollHeight;
	 document.getElementById("PopUp").style.minHeight = document.body.scrollHeight;
	  document.getElementById("PopUp").style.width = document.body.scrollWidth;
}
function resetTransparency3() {
	if (window.innerWidth) {
		var scrollSize = window.getScrollSize(); 
	var intElemScrollHeight = document.body.parentNode.clientHeight; 
	var intElemScrollWidth = document.body.parentNode.clientWidth; 
	 document.getElementById("PopUp").style.height =  scrollSize.y;// intElemScrollHeight+"px";//intElemScrollHeight;document.getElementById("wrap").style.height
	 document.getElementById("PopUp").style.minHeight = scrollSize.y; //  intElemScrollHeight+"px";
	 document.getElementById("PopUp").style.width = scrollSize.x // intElemScrollWidth+"px" ;
	} else if (document.all) {
	document.getElementById("PopUp").style.height = document.body.scrollHeight;
	 document.getElementById("PopUp").style.minHeight = document.body.scrollHeight;
	  document.getElementById("PopUp").style.width = document.body.scrollWidth;
	}
	 //document.getElementById("PopUp").style.minHeight = document.body.scrollHeight;
	  //document.getElementById("PopUp").style.width = document.getElementById("body").style.width
}
function resetTransparency4() {
	var newHeight;
	var newWidth;
//if Mozilla
if (window.innerWidth) {
 var scrollSize = window.getScrollSize();        
document.getElementById("PopUp").style.height = scrollSize.y;
document.getElementById("PopUp").style.minHeight = scrollSize.y;
document.getElementById("PopUp").style.width = scrollSize.x;
document.getElementById("PopUp").style.position = 'fixed';
}
}
//else IE
//else if (document.all)
//document.write("IE: document is "+document.body.scrollHeight+" and client window is "+document.body.clientHeight);
//newHeight = document.body.scrollHeight
//document.getElementById("PopUp").style.height = newHeight
//}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
