$(document).ready(function(){
	// Suche
	var suchfeldText = "Ihre Suchbegriffe...";
	$(".suchfeld").attr("value",suchfeldText);
	$(".suchfeld").click(function() {
		if($(this).attr("value") == suchfeldText) {
			$(this).attr("value","");
		}
	});
	$(".suchfeld").blur(function() {
		if($(this).attr("value") == "") {
			$(this).attr("value",suchfeldText);
		}
	});

	// Automatische Greybox
	$("a img").parents("a").addClass("keinrahmen");
	$("a[href*='.jpg'] img").parents("a").attr("rel","gb_imageset[bildergalerie]");
	$("a[href*='.gif'] img").parents("a").attr("rel","gb_imageset[bildergalerie]");
	$("a[href*='.png'] img").parents("a").attr("rel","gb_imageset[bildergalerie]");
	$("a[href*='.jpeg'] img").parents("a").attr("rel","gb_imageset[bildergalerie]");
	$("a[href*='.JPG'] img").parents("a").attr("rel","gb_imageset[bildergalerie]");

	// Ungerade Tabellenzellen
	$("table tr:odd").addClass("ungerade");
});
