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 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) {
						windowHeight = document.body.clientWidth;
					}
				}
			}
			return windowWidth;
		}		

		function setFooterH() {
			if (document.getElementById) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
					var contentHeight = document.getElementById('content').offsetHeight;
					var footerElement = document.getElementById('footer_cyrano');
					var footerHeight  = footerElement.offsetHeight;
					if (windowHeight - (footerHeight) >= 0) {
						footerElement.style.position = 'fixed';
						footerElement.style.top = (windowHeight - footerHeight) + 'px';
					}
					else {
						footerElement.style.position = 'fixed';
					}
				}
			}
		}
		
		function setFooterW() {
			if (document.getElementById) {
				var windowWidth = getWindowWidth();
				if (windowWidth > 0) {
					var contentWidth = document.getElementById('content').offsetWidth;
					var footerElement = document.getElementById('footer_cyrano');
					var footerWidth  = footerElement.offsetWidth;
					if (windowWidth >= 973) {
						footerElement.style.position = 'fixed';
						footerElement.style.left = (windowWidth/2 - footerWidth - 145) + 'px';
					}
					else {
						footerElement.style.position = 'fixed';
						footerElement.style.left = '0px';
					}
					
				}
			}
		}

		window.onload = function() {
			setFooterH();
			setFooterW();
		}
		window.onresize = function() {
			setFooterH();
			setFooterW();
		}
		window.onscroll = function() {
			setFooterH();
			setFooterW();
		}