<!--

// ----------------------- SETTING THE DISCLAIMER (only for IE5 on MAC and Safari because they do interpret the bottom-property in a different way)
function setDisclaimer() {
	if(is.comp && is.mac && (is.ie4comp || is.isSafari)){
		var contentHeight = document.getElementById('content').offsetHeight;
		var disclaimerHeight = document.getElementById('disclaimer').offsetHeight;
		var windowHeight = getWindowHeight();
		
		if(windowHeight > (contentHeight + disclaimerHeight)){
			document.getElementById('disclaimer').style.top = (windowHeight - disclaimerHeight) + "px";
		} else {
			document.getElementById('disclaimer').style.top = contentHeight + "px";		
		}
	}
}

// ----------------------- SETTING THE BACKGROUND (only for IE5 on MAC and Opera because they do interpret the background-position in a different way)

function setBgImage() {
	if(is.comp && ((is.mac && is.ie4comp) || (Opera))){
		var windowWidth = getWindowWidth();
		var windowHeight = getWindowHeight();
		if(windowHeight < 670){
			if(windowWidth < 975){
				document.getElementById('index').style.background = "#fff url(../img/bg/bg_home_under.jpg) 200px 310px no-repeat";
			} else {
				document.getElementById('index').style.background = "#fff url(../img/bg/bg_home_under.jpg) 100% 310px no-repeat";
			}
		} else {
			if(windowWidth < 975){
				document.getElementById('index').style.background = "#fff url(../img/bg/bg_home_under.jpg) 200px 100% no-repeat";
			} else {
				document.getElementById('index').style.background = "#fff url(../img/bg/bg_home_under.jpg) 100% 100% no-repeat";
			}
		}
	}
}



window.onload = function() {
	setDisclaimer(); 
	setBgImage(); 
}
window.onresize = function() {
	setDisclaimer(); 
	setBgImage(); 
}

//-->
