﻿if(typeof(jQuery)!=='undefined'&&window.jQuery){
	jQuery(function($){
		var $ul = $('#csCategorySummary ul');
		if($ul.length>0){
			$ul.find('li:first-child')
				.addClass('first-child')
				.end()
				.find('li:last-child')
				.addClass('last-child')
				.end()
				.filter(
					function(i){
						return ((i)%4===0);	
					})
				.addClass('new-row')
				.before('<div class="clear"></div>')
		}
		if(typeof(CANVAS)!=='undefined'&&window.CANVAS){
			CANVAS.UI.Helpers.EqualizeWidths($('#activeAttributes div.attributeBox'));
			CANVAS.UI.Helpers.EqualizeHeights($('#activeAttributes div.attributeBox'));
		}
	});
}
