$(function() {

$('.list1.infolist').each(
		function()
		{
		
		if ( false == $(this).hasClass('.eventlist') )
		{
			$( this ).accordion(
					{
						header:	'> li > div > h4',
						autoHeight: false,
						icons:	{
									header: 		'',
									headerSelected:	''
								}
					}
				);		
			
			}
		}
);

$('.list1.eventlist').each(
		function()
		{
		$( this ).accordion(
				{
					header:	'> li > div > h4',
					autoHeight: false,
					icons:	{
								header: 		'',
								headerSelected:	''
							},
					alwaysOpen:  false,
					active:  false
				}
			);		
		
		}
);

$('.beschr_wrapper').each(
		function()
		{
			if ( parseInt($(this).find('.scrollWrap').attr('scrollHeight')) <= parseInt($(this).height()) )
			{
				$(this).find('.scroll_up').hide();
				$(this).find('.scroll_down').hide();
			}
		}
);

});


$(function()
		{
			$('#termin_info_modul').jScrollPane({showArrows: true});
			$('.scrollWrap').each(
				function()
				{
					$(this).jScrollPane({showArrows: true});
				}
			);
		});


/**
 * 
 */
/*
jQuery.fn.extend({
    scrollTo : function(speed, easing, val) {
        return this.each(function() {
            var targetOffset = $(this).scrollTop() + val;
            $(this).animate({
                scrollTop: targetOffset
            }, speed, easing);
        });
    }
});*/
