//Images rollover Function
$(
	function()
	{
		
		$("img.rollover").hover(
			function()
			{
				this.src = this.src.replace("_normal","_active");
			},
			function()
			{
				this.src = this.src.replace("_active","_normal");
			}
		);
	}
)

//Hover Arbeiten Navigation
$(document).ready(function(){
    $(".arbeitenUebersicht").hover(
      function () {
       $(this).animate ({ opacity: "0.6" }, 100);
      }, 
      function () {
       $(this).animate ({ opacity: "1" }, 100);
      }
    );
});

//Uebersicht Loader
$(function () {
			$('.arbeitenUebersicht img').hide();//hide all the images on in this div
		});
		
var i = 0;//initialize
var int=0;//Internet Explorer Fix
$(window).bind("load", function() {//The load event will only fire if the entire page or document is fully loaded
	var int = setInterval("doThis(i)",0);
});

function doThis() {
	var imgs = $('img').length;//count the number of images on the page
	if (i >= imgs) {// Loop the images
		clearInterval(int);//When it reaches the last image the loop ends
	}
	$('.arbeitenUebersicht img').fadeIn(100);
	$('.uebersichtLoader').removeClass('uebersichtLoader');
	i++;
}


