$(document).ready(
	
	function () {
		
		// +-------------------+
		// | Browser Bug Fixes |
		// +-------------------+
		
		// [[IE]]
		// Prevents smiley groups from being overlapped by other smileys
		// The code is from the following page, modified for use with the Katbox forums:
		// "Fixing IE7 Z-Index Issues with jQuery"
		// [ http://www.vancelucas.com/article/fixing-ie7-z-index-issues-with-jquery/ ]
		
		if ($.browser.msie) {
			
			$(function () {
				
				var zIndexNumber = 1000;
				
				$(".blocks li").each(function () {
					
					$(this).css("zIndex", zIndexNumber);
					
					zIndexNumber -= 10;
					
				});
				
			});
			
		}
		
		// [[Firefox 2]]
		// Prevents smileys from being in their own rows, due to a lack of support for the "display:
		// inline-block;" CSS property; also fixes positioning and sizing issues with some elements
		
		if ($(".artwork .blocks li").css("display") === "list-item") {
			
			$(".artwork .blocks li").css("display", "inline");
			
			$(".artwork .blocks li").css("border", "0");
			
		}
		
	});