<!--

var msg = "Neu ab sofort unter Angebote/Offers  -   Festtags-Angebote   -   Übernachtungen ab 3 und mehr Nächten   -   Pauschalangebote   -   Weihnachts-/Silvester Menüs   -   Festtags-Angebote   -   ";

function ticker(delay) {
	if (document.forms['FormSearch'].ticker_input) {
		document.forms['FormSearch'].ticker_input.value = msg;
	}
	if (document.forms['ticker_form']) {
		document.forms['ticker_form'].ticker_input.value = msg;
	}
	msg = msg.substring(1, msg.length) + msg.substring(0, 1);
	setTimeout("ticker(" + String(delay) + ")", delay);
}

function popup_win(PageUrl, PageParas, WinName, WinFeatures, WinWidth, WinHeight, WinAlign, WinValign) {
	if (window.screen) {
		if (WinAlign != '' && WinWidth != '') {
			WinFeatures += (WinFeatures != '') ? ',' : '';
			switch (WinAlign) {
				case 'left':
					WinFeatures += 'left=0';
					WinFeatures += 'screenX=0';
				case 'center':
					WinFeatures += 'left=' + ((screen.availWidth - WinWidth - 10) / 2);
					WinFeatures += 'screenX=' + ((screen.availWidth - WinWidth - 10) / 2);
				case 'right':
					WinFeatures += 'left=' + (screen.availWidth - WinWidth - 10);
					WinFeatures += 'screenX=' + (screen.availWidth - WinWidth - 10);
			}
		}
		if (WinValign != '' && WinHeight != '') {
			WinFeatures += (WinFeatures != '') ? ',' : '';
			switch (WinValign) {
				case 'top':
					WinFeatures += 'top=0';
					WinFeatures += 'screenY=0';
				case 'middle':
					WinFeatures += 'top=' + ((screen.availHeight - WinHeight - 30) / 2);
					WinFeatures += 'screenY=' + ((screen.availHeight - WinHeight - 30) / 2);
				case 'bottom':
					WinFeatures += 'top=' + (screen.availHeight - WinHeight - 30);
					WinFeatures += 'screenY=' + (screen.availHeight - WinHeight - 30);
			}
		}
	}
	WinFeatures += (WinFeatures != '') ? ',' : '' + 'width=' + WinWidth + ',height=' + WinHeight;
	PageUrl = (PageParas != '') ? PageUrl + '?' + PageParas.replace(/, */g, '&') : PageUrl;
	window.open(PageUrl, WinName, WinFeatures + 'width=' + WinWidth + ',height=' + WinHeight).focus();
}

function updateMainWindow() {
	if (window.opener) {
		if (window.opener.closed != true) {
			if (window.opener.document.location.href.indexOf('website.asp') > 0) {
				window.opener.document.location.reload();
			}
		}
	}
}

function swop_img(image) {
	if (document.images) {
		if (document['image_right_' + image].src == document['image_right_' + image + '_1'].src) {
			document['image_right_' + image].src = document['image_right_' + image + '_2'].src;
		}
		else if (document['image_right_' + image].src == document['image_right_' + image + '_2'].src) {
			document['image_right_' + image].src = document['image_right_' + image + '_1'].src
		}
	}
}

function OpenCurrency(converter_url) {
	window.open(converter_url,'Converter','status=yes,scrollbars=no,resizable=no,width=580,height=600,screenX=10,screenY=10,top=10,left=10');
}

function browseTo(AbsolutePage) {
	//resetHiddenTags();
	document.forms['FormSearch'].submit();	
}

function resetHiddenTags() {
	var clear_newsletter_guid_pk = true;
	document.forms['FormSearch'].target = '_self';
	if (document.forms['FormSearch'].register_publish) {
		document.forms['FormSearch'].register_publish.value = '0';
	}
	if (document.forms['FormSearch'].register_print) {
		document.forms['FormSearch'].register_print.value = '0';
	}
	if (document.forms['FormSearch'].register_export) {
		document.forms['FormSearch'].register_export.value = '0';
	}
	if (document.forms['FormSearch'].query_mode) {
		if (document.forms['FormSearch'].query_mode.length > 3) {
			for (var n = 0; n < document.forms['FormSearch'].query_mode.length; n ++) {
				if (document.forms['FormSearch'].query_mode[n].value == '3') {
					clear_newsletter_guid_pk = false;
				}
			}
		}
	}
	if (clear_newsletter_guid_pk == true) {
		document.forms['FormSearch'].newsletter_guid_pk.value = '';
	}
	if (document.forms['FormSearch'].credit_print) {
		document.forms['FormSearch'].credit_print.value = '0';
	}
	if (document.forms['FormSearch'].commission_print) {
		document.forms['FormSearch'].commission_print.value = '0';
	}
}

function doNothing() {
}

function changeRowSC(theRow, theStyleClass) {
	var theCells = null;
	var rowCellsCnt;
	var domDetect
	var c = null;
	if (typeof(theRow.className) == 'undefined') {
		return false;
	}
	if (typeof(document.getElementsByTagName) != 'undefined') {
		theCells = theRow.getElementsByTagName('td');
	}
	else if (typeof(theRow.cells) != 'undefined') {
		theCells = theRow.cells;
	}
	else {
		return false;
	}
	rowCellsCnt  = theCells.length;
	if (typeof(window.opera) == 'undefined' && typeof(theCells[0].className) != 'undefined') {
		domDetect = true;
	}
	else {
		domDetect = false;
	}
	if (domDetect) {
		for (c = 0; c < rowCellsCnt; c++) {
			theCells[c].className = theStyleClass;
		}
	}
	return true;
}

function changeCellSC(theCell, theStyleClass) {
	var theCells = null;
	var rowCellsCnt;
	var domDetect
	var c = null;
	if (typeof(theCell.className) == 'undefined') {
		return false;
	}
	if (typeof(window.opera) == 'undefined' && typeof(theCell.className) != 'undefined') {
		domDetect = true;
	}
	else {
		domDetect = false;
	}
	if (domDetect) {
		theCell.className = theStyleClass;
	}
	return true;
}

//-->