/**
 * @author Dennis Weggemann
 */
$(document).ready(function(){
	$(".subnavi_title")
	 .css({backgroundPosition:"0px -33px"})
	 .bind("mouseover", function(){
	 $(this).stop().animate({"backgroundPosition": "0px 0px"},{duration: 400}); 
})
	.bind("mouseout", function(){
	 $(this).stop().animate({"backgroundPosition": "0px -33px"},{duration: 400});
});
	
	$("#top").click(function(){
		$("html, body").animate({
		scrollTop: $("#header").offset().top
		},{duration: 600,easing:"easeOutExpo"});
		});
	$(".top").click(function(){
		$("html, body").animate({
		scrollTop: $("#header").offset().top
		},{duration: 600,easing:"easeOutExpo"});
		});
	
});
	//////mouse over  main navigation
	var  main_navi_mouseover =	function(one, two, three, four, five, six){
		$("#mainnavi li:eq(" + one + "), #mainnavi li:eq(" + two + "), #mainnavi li:eq(" + three + "), #mainnavi li:eq(" + four + "), #mainnavi li:eq(" + five + "), ")
		 .css({backgroundPosition:"0px 0px"})
		 .bind("mouseover", function(){
		 $(this).stop().animate({"backgroundPosition": "0px -127px"},{duration: 600})
		 .css("color","#c10016"); 
	})
		.bind("mouseout", function(){
		 $(this).stop().animate({"backgroundPosition": "0px 0px"},{duration: 600})
		 .css("color","#fff"); ;
	});
		$("#mainnavi li:eq(" + six + ")").css({"backgroundPosition":"0px -127px","color":"#c10016"});
	};
	
	
///////////////////
////////mini_info Bewegung((Horizontal)) bei mouse over ÜBER TEAM MITGLIEDER
	
	var mini_info_move = function(t_nummer, left_px, border_color, eq_nummer){
		
		$("#t"+t_nummer+"").stop().bind("mouseover", function(){
			$("#mini_info").stop().animate({"left":""+left_px+""},{duration: 400,easing:"easeOutExpo"})
			.css({"border":"1px solid "+border_color+""});
			$("#mini_info div").stop().animate({"opacity":"0"}, 400)
			.css({"z-index":"1"});
			$("#mini_info div:eq("+eq_nummer+")").stop().animate({"opacity":"1"}, 400)
			.css({"z-index":"2"});
		}).stop().bind("mouseout", function(){
		});
 
	};

	  /* User Agent (Browserkennung) auf einen bestimmten Browsertyp prüfen */  
	
	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ //test for MSIE x.x;
		 var ieversion=new Number(RegExp.$1); // capture x.x portion and store as a number
	}

	
	
    function checkBrowserName(name){  
      var agent = navigator.userAgent.toLowerCase();
      if (agent.indexOf(name.toLowerCase())>-1) {  
        return true;  
      }  
      return false;  
    }  

function impressum(){
	window.document.location.href = 'impressum.php';
}

function groesser(){
	document.getElementById("mainnavi").style.fontSize = "11pt";
	document.body.style.fontSize = "10pt";
	document.getElementById("footer_center").style.fontSize = "9pt";
	document.getElementById("arbeitszeit").style.fontSize = "11pt";
	
}
function normal(){
	document.getElementById("mainnavi").style.fontSize = "10pt";
	document.body.style.fontSize = "9pt";	
	document.getElementById("footer_center").style.fontSize = "8pt";
	document.getElementById("arbeitszeit").style.fontSize = "10pt";
}
function kleiner(){
	document.getElementById("mainnavi").style.fontSize = "9pt";
	document.body.style.fontSize = "8pt";
	document.getElementById("footer_center").style.fontSize = "7pt";
	document.getElementById("arbeitszeit").style.fontSize = "9pt";	
}
