// JavaScript Document

function fixHeight(){
	//alet size in different browser
    var myHeight = 0;
	var myWdith =0;
	document.getElementById("footer").style.bottom="0";
	if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
	myHeight = window.innerHeight;
	myWidth = window.innerWidth;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
   myHeight = document.documentElement.clientHeight;
   myWidth = document.documentElement.clientWidth;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
	 myHeight = document.body.clientHeight;
	 myWidth = document.body.clientWidth;
  }
  
  if(myWidth<1024&&myHeight <900){
   document.getElementById("footer").style.width= "1024px";
    document.getElementById("footer").style.bottom= (myHeight-900-15)+'px';
	 myHeight = 900;
	  myWidth = 1024;
  }
  
 if(myWidth<1024){
	 document.getElementById("footer").style.width= "1024px";
	 
	 
	 if(myHeight <900){
	 document.getElementById("footer").style.bottom= (myHeight-900)+'px';
	 }
	 document.getElementById("footer").style.bottom= "0";
      myWidth = 1024;
   }
   
  if(myHeight <900){
  document.getElementById("footer").style.bottom= (myHeight-900)+'px';
 
  if(myWidth<1024){
   document.getElementById("footer").style.width= "1024px";
  }
   document.getElementById("footer").style.width= "100%";
  myHeight = 900;
  myWidth = myWidth - 15;
 
  }
  
  var divHeight = document.getElementById("maparea");
  var wholeHeight = document.getElementById("wrapper");
  var divWidth = document.getElementById("wrapper");
 var regiHeight = document.getElementById("register");
  
  wholeHeight.style.height = myHeight +'px';
  divHeight.style.height = (myHeight-145) + 'px';
  divWidth.style.width= myWidth + 'px';
 regiHeight.style.height = (myHeight-145) + 'px';

}
window.onresize = function() {
		fixHeight();
	}
	
   window.onload = function () {
  
	  fixHeight(); 
	  
	  }