jQuery(document).ready(function()
{
	$('.entry', '#content').each(function()
	{
		$('.more', this).appendTo($('p:last', this).append(" "));
	});
	
	$('a[href$=".jpg"] img, a[href$=".JPG"] img').each(
		function()
		{
            var t = $(this);
            t.parent().attr('title', t.attr('title'));
            t.removeAttr('title');
			if($(this).hasClass('ngg-left'))
			{
				$(this).removeClass('ngg-left')
					.parent().addClass('zoomLinkLeft')
				;
			}
			if($(this).hasClass('alignleft'))
			{
				$(this).removeClass('alignleft')
					.parent().addClass('zoomLinkLeft')
				;
			}
            if($(this).hasClass('alignright'))
            {
                $(this).removeClass('alignright')
                    .parent().addClass('zoomLinkRight')
                ;
            }
			if($(this).hasClass('ngg-right'))
			{
				$(this).removeClass('ngg-right')
					.parent().addClass('zoomLinkRight')
				;
			}
			if($(this).hasClass('ngg-singlepic'))
			{
				$(this).removeClass('ngg-singlepic');
			}
		}
	);

	$('a[href$=".jpg"] img, a[href$=".JPG"] img')
		.parent()
			.addClass('group')
			.attr('rel', 'group')
			.fancybox({
				'zoomOpacity': true,
				'overlayShow': true,
				'overlayOpacity': 0.8,
				'zoomSpeedIn': 400,
				'zoomSpeedOut': 250
			})
			.addClass('zoomLink')
	;
});
