var seconds = 15;
var status  = false;

function load() {
	window.setTimeout("start()", 1000);
}

function start() {
	window.focus();
	window.setTimeout("animate()", seconds*1000);
}

function highlightGIF(img,status) {
	if (document.images) {
		var i,s;
		for (i = 0;i < document.images.length;i++) { 
			if (document.images[i].name == img) {
				s = document.images[i].src;
				s = s.substr(0, s.length-5);
				s = s + (status == false ? "a.gif" : "b.gif");
				document.images[i].src = s;
				return;
			}
		}
	}
}

function highlightJPG(img,status) {
	if (document.images) {
		var i,s;
		for (i = 0;i < document.images.length;i++) { 
			if (document.images[i].name == img) {
				s = document.images[i].src;
				s = s.substr(0, s.length-5);
				s = s + (status == false ? "a.jpg" : "b.jpg");
				document.images[i].src = s;
				return;
			}
		}
	}
}

function animate() {
	status = !status;
	highlightJPG("header",status);	

	window.setTimeout("animate()",seconds*1000);
}

/************************************************************************************************************************
*																														*																														*
*	CHECK_DISCLAIMER																									*
*	Prüft die Auswahl und Anerkennung der AGBS																			*
*																														*
*************************************************************************************************************************/

function check_disclaimer(lang, href) {
	if (document.forms[0].elements[0].checked == false) {
		if (lang == "DE") {
			alert("Bitte lesen Sie unseren Haftungsausschluß sorgfältig\ndurch, und bestätigen Sie diesen durch das Anklicken der Checkbox!");
		}
		if (lang == "EN") {
			alert("Please read the disclaimer carefully and accept it by\nplacing a checkmark in the checkbox in order to proceed!");
		}
		if (lang == "ES") {
			alert("Leer por favor la negación cuidadosamente y aceptarla\ncolocando un checkmark en el checkbox para proceder!");
		}
		if (lang == "FR") {
			alert("Veuillez lire le déni soigneusement et l'accepter en plaçant\nun trait de repère dans le checkbox afin de procéder!");
		}
		return;
	
	} else {
		document.location.href = href; 
	}
}

