$(document).ready(function() {
  
  //ImageZoo,
    jQuery.noConflict();
			(function($) { $(document).ready(function(){
		        $(".jqfancybox").fancybox({ "hideOnContentClick": 1, "zoomSpeedIn":500,"zoomSpeedOut":500,"overlayShow":1,"frameWidth":800,"frameHeight":800, "overlayOpacity":0.4});
	     	 });})(jQuery);
	     	 
//AKTUELLES TEASER ------------------------------------------------------------>
	function mycarousel_initCallback(carousel) {
    jQuery('.jcarousel-control a').bind('click', function() {
        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
        return false;
    });

};

jQuery.easing['BounceEaseOut'] = function(p, t, b, c, d) {
	if ((t/=d) < (1/2.75)) {
		return c*(7.5625*t*t) + b;
	} else if (t < (2/2.75)) {
		return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b;
	} else if (t < (2.5/2.75)) {
		return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b;
	} else {
		return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b;
	}
};

// Ride the carousel...
   jQuery("#newsteaser-j").jcarousel({
        scroll: 1,
        initCallback: mycarousel_initCallback,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null,
        easing: 'BounceEaseOut',
        animation: 2000
    });
    
jQuery(".n1").css('text-decoration','underline');

jQuery(".jslink").click(function() {
      document.location.href = this;
	});
	
jQuery(".n1").click(function() {
		for (i=1;i < 4;i++) {
			jQuery(".n"+i).css('text-decoration','none');
		} 
		jQuery(this).css('text-decoration','underline');
	});

jQuery(".n2").click(function() {
		for (i=1;i < 4;i++) {
			jQuery(".n"+i).css('text-decoration','none');
		} 
		jQuery(this).css('text-decoration','underline');
	});	
	
jQuery(".n3").click(function() {
		for (i=1;i < 4;i++) {
			jQuery(".n"+i).css('text-decoration','none');
		} 
		jQuery(this).css('text-decoration','underline');
	});

//AKTUELLES TEASER ------------------------------------------------------------>


	jQuery(".select_branche").change(function(){
       document.location.href = this.options[this.selectedIndex].value;
	});

  
});

