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) {
				var windowHeight = getWindowHeight();
				if (windowHeight > 0) {
					var contentHeight = document.getElementById('content').offsetHeight;
					var footerElement = document.getElementById('footer');
					var footerHeight  = footerElement.offsetHeight;
					if (windowHeight - (contentHeight + footerHeight) >= 0) {
						footerElement.style.top = (windowHeight - (contentHeight + footerHeight)) + 'px';
					}
					else {
						footerElement.style.top = '0px';
					}
				}
			}
		}


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

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

if (document.images) {

imgAboutIn = new Image;
imgAboutOut = new Image;

imgProjectsIn = new Image;
imgProjectsOut = new Image;

imgFacilitiesIn = new Image;
imgFacilitiesOut = new Image;

imgNewsIn = new Image;
imgNewsOut = new Image;

imgAwardsIn = new Image;
imgAwardsOut = new Image;

imgContactIn = new Image;
imgContactOut = new Image;

imgAboutUsIn = new Image;
imgAboutUsOut = new Image;

imgHistoryIn = new Image;
imgHistoryOut = new Image;

imgTeamIn = new Image;
imgTeamOut = new Image;

imgFacSerIn = new Image;
imgFacSerOut = new Image;

imgServicesIn = new Image;
imgServicesOut = new Image;

imgDistributionIn = new Image;
imgDistributionOut = new Image;

imgAwardsSubIn = new Image;
imgAwardsSubOut = new Image;

imgAffiliationIn = new Image;
imgAffiliationOut = new Image;

imgAboutIn.src = "images/nav/rugoNav_01over.gif";
imgAboutOut.src = "images/nav/rugoNav_01.gif";

imgProjectsIn.src = "images/nav/rugoNav_02over.gif";
imgProjectsOut.src = "images/nav/rugoNav_02.gif";

imgFacilitiesIn.src = "images/nav/rugoNav_04over.gif";
imgFacilitiesOut.src = "images/nav/rugoNav_04.gif";

imgNewsIn.src = "images/nav/rugoNav_05over.gif";
imgNewsOut.src = "images/nav/rugoNav_05.gif";

imgAwardsIn.src = "images/nav/rugoNav_06over.gif";
imgAwardsOut.src = "images/nav/rugoNav_06.gif";

imgContactIn.src = "images/nav/rugoNav_07over.gif";
imgContactOut.src = "images/nav/rugoNav_07.gif";

imgAboutUsIn.src = "images/nav/rugoNavAbout_03over.gif";
imgAboutUsOut.src = "images/nav/rugoNavAbout_03.gif";

imgHistoryIn.src = "images/nav/rugoNavAbout_04over.gif";
imgHistoryOut.src = "images/nav/rugoNavAbout_04.gif";

imgTeamIn.src = "images/nav/rugoNavAbout_05over.gif";
imgTeamOut.src = "images/nav/rugoNavAbout_05.gif";

imgFacSerIn.src = "images/nav/rugoNavFacilities_03over.gif";
imgFacSerOut.src = "images/nav/rugoNavFacilities_03.gif";

imgServicesIn.src = "images/nav/rugoNavFacilities_04over.gif";
imgServicesOut.src = "images/nav/rugoNavFacilities_04.gif";

imgDistributionIn.src = "images/nav/rugoNavFacilities_05over.gif";
imgDistributionOut.src = "images/nav/rugoNavFacilities_05.gif";

imgAwardsSubIn.src = "images/nav/rugoNavAwards_03over.gif";
imgAwardsSubOut.src = "images/nav/rugoNavAwards_03.gif";

imgAffiliationIn.src = "images/nav/rugoNavAwards_04over.gif";
imgAffiliationOut.src = "images/nav/rugoNavAwards_04.gif";

}