/* jquery-wehmueller-blog.js */

$(function() {
			$('a:has(img)')
				.not($("p.valid a"))
				.addClass('imageLink')
				.colorbox({ transition: 'elastic', speed: 500, scrolling: false, opacity: 0.85, current: '[{current}/{total}]'});

			$('.storycontent p:has(img)').css('padding-left', 0);
			
			// hack for cross-browser support of CSS 3 pseudo-class selector
			$(".storycontent img:last-child").css("margin", 0);
			$(".storycontent a.imageLink:last-child").css("margin", 0);
			$(".storycontent .smallImg:last-child").css("margin", 0);
});