function resize() {
   var w_newWidth,w_newHeight;
   var w_maxWidth=995, w_maxHeight=600;
   if (navigator.appName.indexOf("Microsoft") != -1) {
	   w_newWidth=document.body.clientWidth;
	   w_newHeight=document.body.clientHeight;
   }else{
	   w_newWidth=window.innerWidth;
				   w_newHeight=window.innerHeight;
			   }			
			   if (w_newWidth>w_maxWidth){
				   document.ALE.width = "100%";
				   if (w_newHeight>w_maxHeight){
					   document.ALE.height = w_newHeight;
				   } else {
					   document.ALE.height = w_maxHeight;
				   }
			   } else {
				   document.ALE.width = w_maxWidth;
				   if (w_newHeight>w_maxHeight){
					   document.ALE.height = w_newHeight;
				   } else {
					   document.ALE.height = w_maxHeight;
				   }
			   }
			}
			function startresize(){
				resize();
				resize();
			}
			//
		   window.onresize = resize;
		   window.onload = startresize;
		   //

