/**
 * Margins are used to position blocks within a columnblock
 * next to each other. IE6 does not calculate margins by
 * percentage correctly so manually override this process.
 */
(function($) {
	$(document).ready(function() {
		if ($.browser.msie && parseInt($.browser.version) == 6) {
			$('div.eview-block.columns').each(function() {
				var col = this;
				var cols = $('div.single-column', this);
				cols.each(function() {
					var perc = parseInt($(this).css('width'));
					var correctedWith = parseInt(parseInt($(col).width()) / 100 * perc);
					var correctedMargin = parseInt(parseInt($(this).css('margin-left')) / 100 * perc);

					$(this)
						.width(correctedWith)
						.css('margin-left', correctedMargin);
				});
			});
		}
	});
})(jQuery);
