// JavaScript Document
$.noConflict();
jQuery(document).ready(function(){


if (jQuery('#galerie-start').length>0) {
	jQuery('#galerie-start').innerfade({
			speed: 1500,
			timeout: 5000,
			type: 'sequence',
			containerheight: '250px'
		});
}

if (jQuery('#galerie-start-wellness').length>0) {
	jQuery('#galerie-start-wellness').innerfade({
			speed: 1000,
			timeout: 3000,
			type: 'sequence',
			containerheight: '220px'
		});
}


if (jQuery('#myGallery').length>0) {
	jQuery('#myGallery').innerfade({
			speed: 1500,
			timeout: 5000,
			type: 'sequence',
			containerheight: '345px'
		});
}

	
	jQuery(function($){
	$.datepicker.regional['de'] = {
		closeText: 'schlie�en',
		prevText: '&#x3c;zur�ck',
		nextText: 'Vor&#x3e;',
		currentText: 'heute',
		monthNames: ['Januar','Februar','M�rz','April','Mai','Juni',
		'Juli','August','September','Oktober','November','Dezember'],
		monthNamesShort: ['Jan','Feb','M�r','Apr','Mai','Jun',
		'Jul','Aug','Sep','Okt','Nov','Dez'],
		dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
		dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
		dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'],
		dateFormat: 'dd.mm.yy', firstDay: 1,
		isRTL: false};
	$.datepicker.setDefaults($.datepicker.regional['de']);
});

	jQuery(function() {
		jQuery('#von').datepicker({
			numberOfMonths: 2,
			duration: 'slow',
			showButtonPanel: false
		});
		
		jQuery('#bis').datepicker({
			numberOfMonths: 2,
			duration: 'slow',
			showButtonPanel: false
		});
	});
	
	
	jQuery('a').each(function() {
	   var a = new RegExp('/' + window.location.host + '/');
	   if(!a.test(this.href)) {
		   jQuery(this).click(function(event) {
			   event.preventDefault();
			   event.stopPropagation();
			   window.open(this.href, '_blank');
		   });
	   }
	});	
	
	
	

});

/* EMAIL SCRAMBLER ******************************************/
function e(a){var b,c;c='';for(b=0;b<a.length;b++){c=String.fromCharCode(a.charCodeAt(b)^1)+c;}return c;}
function f(a){var b=e(a);document.write(e(';numh`l#<gdsi!`=')+b+e('?#')+b+e('?`.='));}


/* TARGET FIX FOR _BLANK WINDOWS ***************************/
/*
window.onload = function() {
    var links = document.getElementsByTagName('a');
    for (var i=0;i < links.length;i++) {
        if (links[i].className == 'new-window') {
            links[i].onclick = function() {
                window.open(this.href);
                return false;
            };
        }
    }
};
*/

/* BILDPOPUP **********************************************/

function popupImage(sPicURL,swidth,sheight) { 
	window.open(""+sPicURL, "", "resizable=0,HEIGHT="+sheight+",WIDTH="+swidth+"");
}	


