function fixcontact(){
   height = document.body.clientHeight ?
                 document.body.clientHeight :
                 window.innerHeight;
   width = document.body.clientWidth ?
               document.body.clientWidth :
               window.innerWidth;
   if(height < 390){
       contact = document.getElementById('headerwrap');
       contact.style.position = 'relative';
       contact.style.top = '140px';
       contact.style.bottom = '';
   }
}




	<!--
				function getWindowWidth() {
			var windowWidth = 0;
			  if (typeof(window.innerWidth) == 'number') {
        windowWidth = window.innerWidth;
    }
			else {
				if (document.documentElement && document.documentElement.clientWidth) {
					windowWidth = document.documentElement.clientWidth;
				}
				else {
					if (document.body && document.body.clientWidth) {
						windowWidth = document.body.clientWidth;
					}
				}
			}
			return windowWidth;
		}
		function Removewhensmall(id) {
			if (document.getElementById) {
				var windowWidth = getWindowWidth();
				if (windowWidth > 0) {
				
					
				  var contentElement = document.getElementById(id);
				//	var contentWidth = contentElement.offsetWidth;
					
					if (windowWidth < 920) {
						contentElement.style.visibility = 'hidden';
					
					
					}
					else if
					(windowWidth > 920) {
						contentElement.style.visibility = 'visible';
											
					
					}
				
						
				}
			}
		}
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		function getWindowHeight() {
			var windowHeight = 0;
			if (typeof(window.innerHeight) == 'number') {
				windowHeight = window.innerHeight;
			}
			else {
				if (document.documentElement && document.documentElement.clientHeight) {
					windowHeight = document.documentElement.clientHeight;
				}
				else {
					if (document.body && document.body.clientHeight) {
						windowHeight = document.body.clientHeight;
					}
				}
			}
			return windowHeight;
		}
		function centerElementWithId(id) {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
				
					
				  var contentElement = document.getElementById(id);
					var contentHeight = contentElement.offsetHeight;
					
					 if (windowHeight > 570) {
						contentElement.style.position = 'absolute';
						contentElement.style.top = '50%';
						contentElement.style.marginTop = '-250px';
							contentElement.style.left = '50%';
						contentElement.style.marginLeft = '-400px';
					} 
					
						else {
						contentElement.style.position = 'absolute';
						contentElement.style.top = '40px';
						contentElement.style.marginTop = '0px';
							contentElement.style.left = '50%';
						contentElement.style.marginLeft = '-400px';
					}
					}
					else {
						contentElement.style.position = 'absolute';
						contentElement.style.top = '40px';
						contentElement.style.marginTop = '0px';
							contentElement.style.left = '50%';
						contentElement.style.marginLeft = '-400px';
					}

				
			}
		}
		
		//TEst test test
		
				function centerElementWithId2(id) {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
				
					
				  var contentElement = document.getElementById(id);
					var contentHeight = contentElement.offsetHeight;
					
					if (windowHeight > 570) {
						contentElement.style.position = 'absolute';
						contentElement.style.top = '50%';
						contentElement.style.marginTop = '-250px';
						
					}
			
					
					else {
					
						if (windowHeight < 570) {
						contentElement.style.position = 'absolute';
						contentElement.style.top = '40px';
						contentElement.style.marginTop = '0px';
					
					}

					}
					
					
					
					
				}
			}
		}
		
		
		
		
		

		function Removewhensmall2(id) {
			if (document.getElementById) {
				var windowWidth = getWindowWidth();
				if (windowWidth > 0) {
				
					
				  var contentElement = document.getElementById(id);
				//	var contentWidth = contentElement.offsetWidth;
					
					 if (windowWidth > 900) {
						contentElement.style.position = 'absolute';
			
							contentElement.style.left = '50%';
						contentElement.style.marginLeft = '-400px';
					} 
					
						else {
						contentElement.style.position = 'absolute';
				
							contentElement.style.left = '40px';
						contentElement.style.marginLeft = '0px';
					}
					}
					else {
						contentElement.style.position = 'absolute';
					
							contentElement.style.left = '40px';
						contentElement.style.marginLeft = '0px';
					}
				
						
				}
			}
		
		
		
		
		function showContent(){
     //hide loading status...
     document.getElementById("loading").style.display='none';
 
     //show content
     document.getElementById("content").style.display='block';
  }
  
  	
		
		
		window.onload = function() {
			
		centerElementWithId('outer');
		Removewhensmall2('outer');
	Removewhensmall('rightwrap');
		Removewhensmall('leftwrap2');
				Removewhensmall('leftwrap');
centerElementWithId2('leftwrap2');

centerElementWithId2('rightwrap');
 showContent();

 	//



		}
		window.onresize = function() {
			centerElementWithId('outer');
				Removewhensmall('rightwrap');
		Removewhensmall('leftwrap2');
				Removewhensmall('leftwrap');
centerElementWithId2('leftwrap2');
//centerElementWithId2('outer');
		Removewhensmall2('outer');

centerElementWithId2('rightwrap');
		}
		
		
	
		//-->
