$(document).ready(function(){		

	var cfg = {
			imageLoading:images.loading,
			imageBtnPrev:images.prev,
			imageBtnNext:images.next,
			imageBtnClose:images.close,
			imageBlank:images.blank,
			txtImage: '',
			txtOf: 'von'
		};
	
	$('.images a,.thumbs a:has(img)').lightBox(cfg); 

	if($(".box.second").length > 0)
		$(".box.first").addClass("small");
	
	
	
	$(".newslist tr").click(function(e){
	
		if($(e.target).is('a') || $(e.target).parents('a').length) 
            return true;
		
		window.location.href = $("a:first",this).attr('href');
		
	});
	
	$(".player").each(function(){
		$(this).flash({  
			swf: playerpath,
			width:$(this).width(),
			height:$(this).height(),
			flashvars: {
				file: $(this).attr('href'),
				image: $(this).attr('alt'),
				autostart:"false"
				},
			params:{
					wmode: 			'opaque',
					allowfullscreen: 'true',
					allowscriptaccess: 'always'
				}
		});	
	
		$(this).click(function(){return false;});
		
	});	

	
});
