
$(document).ready(function(){
	
	$(".jobbox").equalHeights(100,450);
	
  $.preloadCssImages();

$('#zurueck').click(function(){   
	$("#content").removeClass("loader");
});	
$('#weiter').click(function(){   
	$("#content").removeClass("loader");
});	
$('#image_nav a').click(function(){   
	$("#content").removeClass("loader");
});	

}); 

$(document).ready(function(){
//Fade-Effekt der Bilder
$(function(){
   $count = $(".slide > img").size();
   $anzahl = (($count)-1)
   var anzahl = $anzahl;
});


$(function() {

$('.slide').cycle('destroy');	
						
$('.slide')
.cycle({ 
    fx:     'fade', 
    speed:  1200, 
    timeout: 0, 
	
    next:   '#weiter', 
    prev:   '#zurueck', 
pager:  '#image_nav',


	 // Anker in Liste umwandeln
   pagerAnchorBuilder: function(idx, slide) { 
    if (idx == 0) { 
      return '<a href="#" id="firstSlide">' + $(slide).attr('alt') + '</a>'; 
	} else  if (idx == $anzahl) { 
	 return '<a href="#" id="lastSlide">' + $(slide).attr('alt') + '</a>'; 
	} else  if (idx != 99) { 
	 return '<a href="#">' + $(slide).attr('alt') + '</a>'; 
    } 
   }
   
});

 
});

//Pfeile für Bildernavigation > Weiter
$(document).ready(function(){

	$("#weiter").append("<div></div>");

	$("#weiter").hover(function() {
	  $(this).find("div").animate({opacity: "show"}, "slow");
	  var hoverText = $(this).attr("title");
	  $(this).find("div").text(hoverText);
	}, function() {
	  $(this).find("div").animate({opacity: "hide"}, "slow");
	});

});

//Pfeile für Bildernavigation > Zurueck
$(document).ready(function(){

	$("#zurueck").append("<div></div>");

	$("#zurueck").hover(function() {
	  $(this).find("div").animate({opacity: "show"}, "slow");
	  var hoverText = $(this).attr("title");
	  $(this).find("div").text(hoverText);
	}, function() {
	  $(this).find("div").animate({opacity: "hide"}, "slow");
	});

});
}); 




