/*---------------------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  -->


});
/*---------------------END jQuery Ready---------------------------*/

/* toggle eines ID-Elements */
function toggle(element) {
	if($("#"+element).is(":hidden"))
		$("#"+element).slideDown("fast");
	else
		$("#"+element).slideUp("fast");
}

/* 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 () {
	if($("#startteaser").length > 0) {
		var startteaser_pos = $("#startteaser").position().left;
		$(".startteaser_nav").css("left",(startteaser_pos+515) + "px");
	}
}
