/**
 * event handler for DOM loaded event
 */
$(document).ready(function() {

	if ($('.linkbutton')) {
		$('.linkbutton').each(function() {
			$('.csc-header:first').prepend($(this));
		});
	}

	if ($('.tx-mediaforslider-pi1').length > 0) {
		//console.log("showcase");
		$("#showcase").awShowcase({
			content_width : 672,
			content_height : 384,
			auto : true,
			interval : 6000,
			continuous : true,
			pauseonover : true,
			stoponclick : true,
			transition : 'fade',
			transition_speed : 500,
			transition_delay : 300,
			show_caption : 'show',
			thumbnails : true,
			thumbnails_position : 'outside-last',
			thumbnails_direction : 'horizontal',
			thumbnails_slidex : 1,
			custom_function : initSlide
		});
	}

	// first call of showcase.custom_function doesnt come...
	initSlide();

	$('#slider1').bxSlider({
		auto : true,
		pause : 6000,
		autoDirection : 'prev',
		autoHover : true,
		displaySlideQty : 4,
		moveSlideQty : 1
	});

	// VideoJS.setup("All", {
	// playerFallbackOrder : [ "html5", "flash", "links" ]
	// });
});
