function onNavi(name) {
	img = eval('document.' + name);
	img.src = 'images/navi/' + name + '_on.gif';
}
function offNavi(name) {
	img = eval('document.' + name);
	img.src = 'images/navi/' + name + '.gif';
}
function onCNavi(name) {
	img = eval('document.' + name + 'I');
	img.src = 'images/pixel_AEC95D.gif';
}
function offCNavi(name) {
	img = eval('document.' + name + 'I');
	img.src = 'images/pixel_A5A5A5.gif';
}
function onTre(name) {
	img = eval('tre_' + name);
	img.src = 'images/navi/tre_' + name + '_on.jpg';
}
function offTre(name) {
	img = eval('tre_' + name);
	img.src = 'images/navi/tre_' + name + '.jpg';
}
function onSpec(name) {
	img = eval('document.' + name);
	img.src = 'images/spec/' + name + '_on.jpg';
}
function offSpec(name) {
	img = eval('document.' + name);
	img.src = 'images/spec/' + name + '.jpg';
}
function onHead(name) {
	img = eval('document.' + name);
	img.src = 'images/head/' + name + '_on.gif';
}
function offHead(name) {
	img = eval('document.' + name);
	img.src = 'images/head/' + name + '.gif';
}
function GalleryImage(width, height, thWidth, thHeight) {
	this.width = width;
	this.height = height;
	this.thWidth = thWidth;
	this.thHeight = thHeight;
};
function popUpImage(sImg, imgID) {
	var features = "width=10, height=10, status=yes";
	popUpWin = window.open("image.html?" + sImg + "&" + imgID, "Vorschau", features);
	popUpWin.focus();
}
function imagesString(iImg) {
	iArray = eval('i' + iImg);
	sImg = "";
	for(i = 0; i < iArray.length; i++) {
		if(i > 0)
			sImg += ','
		sImg += iImg + '_' + (i + 1) + 'x' + iArray[i].width + 'x' + iArray[i].height;
	}
	return sImg;
}

function imagesTag(iImg, from, to) {
	iArray = eval('i' + iImg);
	sImg = imagesString(iImg);
	for(i = from; i <= to; i++)
		document.write('<A HREF="javascript:popUpImage(\'' + sImg + '\', ' + i + ')"><IMG SRC="images/gallery/thumb/' + iImg + '_' + (i + 1) + '.jpg" WIDTH="' + iArray[i].thWidth + '" HEIGHT="' + iArray[i].thHeight + '" ALT="azeigen" BORDER="0"></A>&nbsp;');
}
function popUpAktuell() {
	var winSizeW = 483;
	var winSizeH = 322;
	var features = "width="+winSizeW+",height="+winSizeH+",left="+((screen.width-winSizeW)/2)+",top="+((screen.height-winSizeH-50)/2);
	popUpWin = window.open("akt.html", "Aktion", features);
	popUpWin.focus();

}
function OK() {
	document.cForm.submit();
}
function Delete() {
	document.cForm.reset();
}
isOK = true;
function notOK() {
	isOK = false;
}
function canOK() {
	isOK = true;
}
function enterKey(evt) {
	var evt = (evt) ? evt : event;
	var charCode = (evt.which) ? evt.which : evt.keyCode;
	if (charCode == 13 && isOK)
		OK();
}
function goWellness() {
	window.opener.top.content.location='tre_wel.html';
	window.close();
}
function popUpBegin() {
	var winSizeW = 483;
	var winSizeH = 347;
	var features = "width="+winSizeW+",height="+winSizeH+",left="+((screen.width-winSizeW)/2)+",top="+((screen.height-winSizeH-50)/2);
	popUpWin = window.open("popup_beginn.html", "Beginn", features);
	popUpWin.focus();
}
function popUpEnd() {
	var winSizeW = 465;
	var winSizeH = 330;
	var features = "width="+winSizeW+",height="+winSizeH+",left="+((screen.width-winSizeW)/2)+",top="+((screen.height-winSizeH-50)/2);
	popUpWin = window.open("popup_ende.html", "Ende", features);
	popUpWin.focus();
}
function getGallery(num, count, name, head_after_count_1, head_1, head_after_count_2, head_2) {
	document.write('<DIV CLASS="gallery">');
	for(i = 0; i < count; i++) {
		if(head_after_count_1 != 'undefined' && head_1 != 'undefined' && (head_after_count_1 == i+1))
			document.write('<BR><BR><FONT CLASS="subTre">' + head_1 + '</FONT><BR><BR>');
		if(head_after_count_2 != 'undefined' && head_2 != 'undefined' && (head_after_count_2 == i+1))
			document.write('<BR><BR><FONT CLASS="subTre">' + head_2 + '</FONT><BR><BR>');
		// document.write('<A HREF="images/gallery/'+num+'/'+(i+1)+'.jpg" REL="lightbox[galerie'+num+']" TITLE="'+name+'"><IMG SRC="images/gallery/'+num+'/th/'+(i+1)+'.jpg" ALT="'+name+'" WIDTH="142" HEIGHT="100" BORDER="0"></A>');
		document.write('<A HREF="images/gallery/'+num+'/'+(i+1)+'.jpg" REL="lightbox[galerie'+num+']" TITLE="'+name+'"><IMG SRC="images/gallery/'+num+'/th/'+(i+1)+'.jpg" ALT="'+name+'" BORDER="0"></A>');
	}
	document.write('</DIV>');
}

