
jQuery(document).ready(
	function () {
		// Scriptabhaengige Bereiche ein-, bzw. ausblenden
		jQuery(".script").show();
		jQuery(".noscript").hide();
		
		// Opera betreffend
		//if (browser != "opera") {
		//	$(".operaOnly").hide();
		//}
		
		
	}
);

var sectionInUrl = 	function(section) {
	var s = location.href.split("#");
	if (s[1] && s[1] == section) return true;
	return false;
};


(function($) {
	/**
	Focus- und Focusout-Event auf Input - loescht/setzt den Standardwert
	*/
	$.fn.handleInputValue = function(options) {
		var defaults = {
			value: '',
			setValueIfEmpty: false
		};
		var c = $.extend(defaults, options);
		var obj, val, btnObj;
		this.each(function() {
				obj = $(this);
				if (!c.value) return;
				if (!obj.val() && c.setValueIfEmpty) obj.val(c.value);
				obj.focus(function () { if (obj.val() == c.value) obj.val(""); })
				obj.focusout(function () { if (obj.val() == "") obj.val(c.value); })
		});
		return this;
	};

	
})(jQuery);


