/*---------------------START jQuery Ready---------------------------*/
$(document).ready(function() {



<!-- START Navi ie6 hover class  -->
if (document.all) {$("#navigation li").hoverClass ("ieHover");}
<!-- END Navi ie6 hover class  -->

<!-- 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  -->



<!-- START Tooltip  -->
$("#bestellen area").mouseover(function(e){			
$("#fullwidth").before("<span class='tooltip'><strong>&nbsp;</strong></span>")								
$(".tooltip strong").html($(this).attr("alt"));
$(".tooltip").css("left",(e.pageX-15) + "px");
});
$("#bestellen area").mouseout(function(){$(".tooltip").remove();});
$("#bestellen area").mousemove(function(e){$(".tooltip").css("left",(e.pageX-15) + "px");});
<!-- END Tooltip  -->


<!-- START Open/Close Search  -->
if(!show_details) $(".search_detail").hide();
$("a.detail_switch").click(function () { 
if ($(".search_detail").is(":hidden")) { $(this).html("weniger Optionen"); $(".search_detail").slideDown("fast"); document.form_detailsuche.show_details.value='1';}
else { $(this).html("mehr Optionen"); $(".search_detail").slideUp("fast"); document.form_detailsuche.show_details.value='';}
return false;
});
<!-- END Open/Close Search  -->


<!-- START Open/Close Comment  -->
$(".response fieldset").hide();
$(".response h3").click(function () { 
if ($(".response fieldset").is(":hidden")) {$(".response fieldset").slideDown("fast");}
else {$(".response fieldset").slideUp("fast");}
return false;
});
<!-- END Open/Close Comment  -->


<!-- START Open/Close Comment  -->
$("form.kommentar_melden").hide();
$(".melden").click(function () { 
if ($(this).next("form.kommentar_melden").is(":hidden")) {$(this).next("form.kommentar_melden").slideDown("fast");}
else {$(this).next("form.kommentar_melden").slideUp("fast");}
return false;
});
<!-- END Open/Close Comment  -->

});
/*---------------------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(){
startteaserpos ();
});

function startteaserpos () {
var startteaser_pos = $("#startteaser").position().left;
$(".startteaser_nav").css("left",(startteaser_pos+515) + "px");
}