function getIeVer(dataString) {
		var ie = "MSIE";
		var index = dataString.indexOf(ie);
		if (index == -1) return;
		return parseFloat(dataString.substring(index+ie.length+1));
	}

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 setFooter() {
    if (document.getElementById('outer')) {
        var windowHeight = getWindowHeight();
        if (windowHeight > 0) {
            var contentHeight = document.getElementById('outer').offsetHeight;
            if ((windowHeight - contentHeight) >= 0) {
				document.getElementById('outer').style.height = windowHeight + 'px';
				
            } else {
                document.getElementById('outer').style.height = 'auto';
            }
        }
    }
}

window.onload = function() {
    setFooter();
	
}

window.onresize = function() {
	if(getIeVer(navigator.appVersion) == 6) return false;
    setFooter();	

}

