/*---------------------START jQuery Ready---------------------------*/
$(document).ready(function() {



<!-- START Carousel maximum height  -->
function getmaxheight () {
 highest=0;
 $("#carousel .item").each(function() {
   var newwert = $(this).height();
   if (newwert >=highest) {highest=newwert; $("#carousel .items").css("height",(highest) + "px"); }
  });
};
getmaxheight();
<!-- END Carousel maximum height  -->


<!-- START Carousel redirect  -->
$(".one").click(function(){	
window.location.href = $(this).find("a:first").attr("href");
});
<!-- END Carousel redirect  -->


});
/*---------------------END jQuery Ready---------------------------*/


/* START IE6 Hover Navi */
$.fn.hoverClass = function(classname) {
			return this.each(function(){
				$(this).hover( 
					function() { $(this).addClass(classname);},
					function() { $(this).removeClass(classname);}
				);
			});
		};
/* END IE6 Hover Navi */

$(window).resize(function(){
scrollinhaltepos ();
});

function scrollinhaltepos () {
var scrollinhalte_pos = $("#scrollinhalte").position().left;
$(".scrollinhalte_nav").css("left",(scrollinhalte_pos+265) + "px");
}
