$(function(){
	$('#inner img').each(function(i) {
		if (this.parentNode.tagName == 'A')
			$(this.parentNode).wrap('<div class="image-wrapper"></div>');
		else
			$(this).wrap('<div class="image-wrapper"></div>');
	});
});
