// JavaScript Document
$(document).ready(function(){
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){
function getWindowHeight() {
	        var currentHeight = ($(window).height()) ;
            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;
     }
    }
   }
   if(currentHeight < 900)
        {
            
			f=document.getElementById("background_img");
			f.style.height = 824 + 'px';
			
		}
		else
		{
            
			f=document.getElementById("background_img");
			f.style.height = 100 + '%';
			
         }
		    return windowHeight;
		 }
         window.onload = function() {
			 getWindowHeight(); 
	     }
			window.onresize = function() { 
			getWindowHeight();
	     }

}
else
{

	function getWindowWidth() {
		var currentHeight = ($(window).height()) ;
		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;
		}
		}
		}
		if(currentHeight < 900)
        {
			
           	f=document.getElementById("background_img");
			f.style.height = 861 + 'px';
		}
		else
		{
           	f=document.getElementById("background_img");
			f.style.height = 100 + '%';
         }
		    return windowWidth;
	     }
		    window.onload = function() {
			getWindowWidth(); 
	     }
			window.onresize = function() { 
			getWindowWidth();
	     }

}
});	





	



									
							
		 
		 
