// JavaScript Document

$(document).ready( function(){
	/*
	var color =  $("#menu-navigation .current-menu-item A, #menu-navigation .current-page-ancestor A").css("color");
	$("#subnav A").css("color", color);														
	*/

	// Cufon
	Cufon.replace('h1, h2, #footer, #sidebar A, #subnav A, .subpageTitle, #comments LABEL, .commentAuthor, .linkBooking', { hover: true });
	
	// Clear Input für Inputfelder aktivieren
	$('.clearInput').clearInput();

	$(".subpageTitle").click( function(){
		$(this).next().slideToggle("fast");
	});

	$(".hideShowNextP").click( function(){
		$(this).next("p").slideToggle("fast");
	});


	$('.jcarousel').jcarousel({
		wrap: 'both',
		animation: 250,
		scroll: 1
	});

});


jQuery.fn.clearInput = function() {
	return this.focus(function() {
		if( this.value == this.defaultValue ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = this.defaultValue;
		}
	});
};

