// Change CSS File Depending on Kategorie (Therapy or Natural Spa)
function changeCSS(file) {
	$.ajax({
		url:file,
		success:function(){ 
			$("<link>").appendTo($('head')).attr({type : 'text/css', rel : 'stylesheet'}).attr('href', file);
		}
	})
}

// Change Header-Image
function changeHeaderImage(selector ,headerImg) {
   $(selector).attr("src", headerImg);
}

// Change Navigation Position 

function swapMenus(elem1, elem2) {
	jQuery.fn.swapWith = function(to) {
		return this.each(function() {
			var copy_to = $(to).clone(true);
			var copy_from = $(this).clone(true);
			$(to).replaceWith(copy_from);
			$(this).replaceWith(copy_to);
		});
	};
	$(elem1).swapWith(elem2);
}
