<!--for footer position-->

function $adjustFooterPos() {
            var contentBody = $getElem("main_container");

            var screenDimHeight = $getWindowDim().height;

            var footer = $getElem("footer_wrapper");

            var occupiedHeight = contentBody.offsetHeight;

            var availibleHeight = screenDimHeight - occupiedHeight - footer.offsetHeight;

            var spacerDivStyle = $getElem("spacerdiv").style;

            spacerDivStyle.height = Math.max(0, availibleHeight) + "px";
		
		
			
        }
        

$(window).resize(footer)
	
	    
function $getElem(id) { return document.getElementById(id); }
function $getWindowDim() {
            var width = height = 0;


            if (typeof (window.innerWidth) == 'number') {
                //Non-IE
                width = window.innerWidth;
                height = window.innerHeight;
            }

            else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
                //IE 6+ in 'standards compliant mode'
                width = document.documentElement.clientWidth;
                height = document.documentElement.clientHeight;
            }

            else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
                //IE 4 compatible
                width = document.body.clientWidth;
                height = document.body.clientHeight;
            }

            return { width: width, height: height };

        }
		
		
		
		
		
		
		
		
		
		
		
		
		

