/**
 * @version 1.0
 * @author pehret
 */
jQuery(document).ready(function($){
	$('.newsarticletext img, .newsarticlepreviewtext img').each(function(){
		$(this).css('cursor', 'pointer').css('opacity','.5').css('filter',' alpha(opacity=50)').bind('mouseenter', function(e){	
			$(this).stop();
			$(this).css('opacity','.5').css('filter','alpha(opacity=50)');
			$(this).fadeTo(600, 1);
		}).bind('mouseleave', function(e){
			$(this).stop();
			$(this).css('opacity','1').css('filter','alpha(opacity=100)');
			$(this).fadeTo(600, .5);
		});
		if(!$(this).parent().hasClass('gallery')){
			$(this).wrap('<a href="' + $(this).attr('src').replace('thumbs', 'gross') + '" title="' + $(this).attr('alt') + '"></a>').parent().slimbox();
		} else {

		}
	});
});
				jQuery(document).ready(function($){
					var currentGallery = "";
					var n = 0;
					$('.newsarticletext a.gallery, .newsarticlepreviewtext a.gallery').each(function(){
						if (currentGallery != $(this).attr('rel') || n == 0) {
							n = 0;
							$(this).css('text-decoration','none').find('span').css({
								position: 'relative',
								top: '-50px',
								left: '15px',
								display: 'inline',
								'font-size': '10pt'
							});
							currentGallery = $(this).attr('rel');
						} else {
							$(this).css('display','none');
						}
						n++;
					});
				});
