$(document).ready(function () {
/*
 * control tabs on homepage
 */
	$('div.tabs ul li h2 a').click(function(){
		$('div.tabs ul li.aktiv').removeClass('aktiv');
		$(this).parents('li').addClass('aktiv');
		return false;
	})
/*
 * Plugin GalleryView for tt_news SINGLE2-view
 */
	$('#galleryview_news_image_1').galleryView({
		gallery_width: 350,
		gallery_height: 350,
		panel_width: 350,
		panel_height: 350,		
		frame_width: 70,
		frame_height: 45,
		filmstrip_size: 5,
		frame_gap: 2,
		pause_on_hover: true,
		transition_speed: 600,
		transition_interval: 9000,
		frame_scale: 'crop',
		show_captions: false,
		overlay_position: 'top',
		overlay_opacity: 0.7,
		border: '1',
		//easing: 'easeInOutBack',
		easing: 'swing',
		nav_theme: 'custom',
		overlay_height: 25,
		filmstrip_position: 'bottom',
		overlay_position: 'bottom'
	});
/*
 * vertical jqueryAccordion for truckoverview
 
	lastBlock = $("#jQaccordionNr1");
    maxWidth = 250;
    minWidth = 100;	

    $("ul.jqueryAccordion li").hover(
      function(){
        $(lastBlock).animate({width: minWidth+"px"}, { queue:false, duration:400 });
	$(this).animate({width: maxWidth+"px"}, { queue:false, duration:400});
	lastBlock = this;
      }
    );
*/
	$('ul.jqueryAccordion').hSlides({
		totalWidth: 653, 
		totalHeight: 300, 
		minPanelWidth: 100, 
		maxPanelWidth: 250,
		eventHandler: 'hover',
		speed: 800,
		activeClass: 'active'
	});

});
