$(function(){
	var basecolor = '#86a2bb';
	$('div.block').each(function(){
		var bordercolor = $(this).css('borderLeftColor');
		if ($.compareColor(basecolor, bordercolor)) {
			$(this).prepend('<b class="nw"><\/b><b class="ne"><\/b><b class="se"><\/b><b class="sw"><\/b>').css('position', 'relative');
			if ($.browser.ie6) {
				if ($(this).innerHeight() % 2) {
					$(this).find('b.sw, b.se').css('marginBottom', '-1px');
				}
				if ($(this).innerWidth() % 2) {
					$(this).find('b.ne, b.se').css('marginRight', '-1px');
				}
			}
		}
	}).find('div.title').each(function(){
		var bgcolor = $(this).css('backgroundColor');
		if ($.compareColor(basecolor, bgcolor)) {
			$(this).append('<b class="nw"><\/b><b class="ne"><\/b>').css('position', 'relative');
			if ($.browser.ie6) {
				if ($(this).innerWidth() % 2) {
					$(this).find('.ne').css('marginRight', '-1px');
				}
			}
		}
	});

	$('.corner').each(function(){
		$(this).prepend('<b class="nw"><\/b><b class="ne"><\/b><b class="se"><\/b><b class="sw"><\/b>').css('position', 'relative');
		if ($.browser.ie6) {
			if ($(this).innerHeight() % 2) {
				$(this).find('.sw, .se').css('marginBottom', '-1px');
			}
			if ($(this).innerWidth() % 2) {
				$(this).find('.ne, .se').css('marginRight', '-1px');
			}
		}
	});
});