$(document).ready(function(){
	
	
	/* Navi / Subnavi Mouseover */
	$('img.a').mouseover(function() {
		$('img.a').stop().animate({"opacity": "1"}, "400");
		$(this).stop().animate({"opacity": "0"}, "400");
		},function() {
			$(this).stop().animate({"opacity": "1"}, "400");
		});	
	
	$('a[rel="navibutton"]').mouseover(function() {
		
			$('div.subnav').addClass("hide");			
			var a = this.hash.substr(1);
			
			$('div.subnav').each(function() {
				if(this.id==a) {
					$(this).removeClass("hide");	
				}				
			});		
	});
	
	$('a[rel="navibutton"]').click(function() {
	  	   return false;
	});
	
	/* Ergebnisticker Script */	
	$('a.dropButton').click(function() {

		var box = this.hash.substr(1);
		//$('ul.categoryitems').hide();
		$('ul.categoryitems').each(function() {
			if($(this).attr('id')==box) {
				$(this).toggleClass("hide");	
			}	
		});
		  return false;		
	});
	
	
	/* Profile Tab Script */	
	$('a.tabButton').click(function() {		
		var active = this;
		$('a.tabButton').each(function() {
			
			$(this).removeClass(function() {
				var reg = 'tab_[a-z]+_active';
				var p = new RegExp(reg,["g"]);
	      		var m = p.exec($(this).attr("class"));
	      						
				return m==null ? "" : m[0];
				
			});
			if(this == active) {
				$(this).addClass(function() {
					var newclass = $(this).attr("class").split(" ");
					return newclass[1] + "_active";
				});			
			}			
				
		});
		
		var tabName = this.hash.substr(1);
		$('div.tabContent').addClass("hide");
		$('div.tabContent').each(function() {			
			
			if(this.id == tabName) {
							
				$(this).removeClass("hide");
				
			}	
		});		
		return false;			
		
	});	
	/* Profile Tab End */
	
	
	
	
		
});

/*

$(function () {
			$('#fc_wrapper').anythingSlider({
					easing: "swing",        // Anything other than "linear" or "swing" requires the easing plugin - easeInOutExpo
					autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
					delay: 4000,                    // How long between slide transitions in AutoPlay mode
					startStopped: false,            // If autoPlay is on, this can force it to start stopped
					animationTime: 300,             // How long the slide transition takes
					hashTags: true,                 // Should links change the hashtag in the URL?
					buildNavigation: false,          // If true, builds and list of anchor links to link to each slide
					pauseOnHover: true            // If true, and autoPlay is enabled, the show will pause on hover
					 // navigationFormatter: formatText       // Details at the top of the file on this use (advanced use)
			});   
});
				
function jumpto(id) {
		$('#fc_wrapper').anythingSlider(id);
}
*/		
