jQuery(function( $ ){
	/**
	 * Most jQuery.localScroll's settings, actually belong to jQuery.ScrollTo, check it's demo for an example of each option.
	 * @see http://flesler.demos.com/jquery/scrollTo/
	 * You can use EVERY single setting of jQuery.ScrollTo, in the settings hash you send to jQuery.LocalScroll.
	 */
	
	// The default axis is 'y', but in this demo, I want to scroll both
	// You can modify any default like this
	$.localScroll.defaults.axis = 'y';
	
	// Scroll initially if there's a hash (#something) in the url 
	$.localScroll.hash({
		queue:true,
		duration:0
	});
	
	/**
	 * NOTE: I use $.localScroll instead of $('#navigation').localScroll() so I
	 * also affect the >> and << links. I want every link in the page to scroll.
	 */
	$.localScroll({
		queue:true,
		duration:1000,
		hash:true,
		onBefore:function( e, anchor, $target ){
			// The 'this' is the settings object, can be modified
		},
		onAfter:function( anchor, settings ){
			// The 'this' contains the scrolled element (#content)
		}
	});
});

jQuery(function($) {
$.fn.search = function() {
	return this.focus(function() {
		if( this.value == "Suchbegriff" ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = "Suchbegriff";
		}
	});
};
$("#Suchfeld_oben").search();

$.fn.search_NL = function() {
	return this.focus(function() {
		if( this.value == "zoekterm" ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = "zoekterm";
		}
	});
};
$("#Suchfeld_oben_NL").search_NL();

$.fn.search3 = function() {
	return this.focus(function() {
		if( this.value == "Suchbegriff" ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = "Suchbegriff";
		}
	});
};
$("#Suchfeld").search3();



$.fn.search3_NL = function() {
	return this.focus(function() {
		if( this.value == "zoekterm" ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = "zoekterm";
		}
	});
};
$("#Suchfeld_NL").search3_NL();




$.fn.namefunk = function() {
	return this.focus(function() {
		if( this.value == "Ihren Namen hier eingeben" ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = "Ihren Namen hier eingeben";
		}
	});
};
$("#kontaktName").namefunk();
$("#fehlerName").namefunk();

$.fn.namefunk_NL = function() {
	return this.focus(function() {
		if( this.value == "Uw naam hier intypen" ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = "Uw naam hier intypen";
		}
	});
};
$("#kontaktName_NL").namefunk_NL();
$("#fehlerName_NL").namefunk_NL();

$.fn.mailfunk = function() {
	return this.focus(function() {
		if( this.value == "Ihre E-Mail-Adresse hier eingeben" ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = "Ihre E-Mail-Adresse hier eingeben";
		}
	});
};


$("#kontaktMail").mailfunk();
$("#fehlerMail").mailfunk();

$.fn.mailfunk_NL = function() {
	return this.focus(function() {
		if( this.value == "Uw emailadres hier intypen" ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = "Uw emailadres hier intypen";
		}
	});
};


$("#kontaktMail_NL").mailfunk_NL();
$("#fehlerMail_NL").mailfunk_NL();


$.fn.textfunk = function() {
	return this.focus(function() {
		if( this.value == "Ihre Nachricht hier eingeben" ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = "Ihre Nachricht hier eingeben";
		}
	});
};


$("#kontaktText").textfunk();
$("#fehlerText").textfunk();


$.fn.textfunk_NL = function() {
	return this.focus(function() {
		if( this.value == "Uw bericht hier intypen" ) {
			this.value = "";
		}
	}).blur(function() {
		if( !this.value.length ) {
			this.value = "Uw bericht hier intypen";
		}
	});
};


$("#kontaktText_NL").textfunk_NL();
$("#fehlerText_NL").textfunk_NL();
});
