$(document).ready(function(){
    //Externe Url's im neuem Fenster
    jQuery(".link-url").attr('target', '_blank');
    jQuery(".link-url-img").attr('target', '_blank');

    //ImageZoom
    jQuery.noConflict();
		(function($) { $(document).ready(function(){
			$(".jqfancybox").fancybox({ "hideOnContentClick": 1, "zoomSpeedIn":500,"zoomSpeedOut":500,"overlayShow":1,"frameWidth":800,"frameHeight":800, "overlayOpacity":0.4});
		});})(jQuery);


    jQuery("#content-left-nav ul ul li a").prepend("&raquo;&nbsp;");
    
    function mycarousel_initCallback(carousel) {  
    jQuery('img.vor').bind('click', function() {
        carousel.next();
        return false;
    });

    jQuery('img.back').bind('click', function() {
        carousel.prev();
        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,
        auto: 5,
        wrap: 'last',
        initCallback: mycarousel_initCallback,
        // This tells jCarousel NOT to autobuild prev/next buttons
        buttonNextHTML: null,
        buttonPrevHTML: null,
		easing: 'BounceEaseOut',
        animation: 2000
    });
    
});

function openWindow(t3name,winName) {
	var theWindow = window.open('index.php?id='+t3name,winName,'width=533,height=303,status=no,menubar=no,resizable=no,toolbar=no');
	if (theWindow)	{theWindow.focus();}
	return false;
}

jQuery(function() {
    jQuery('#container-1').tabs();
});


