jQuery(document).ready(function($) {
	// suckerfish dropdown fixes for IE
	$('#navigation li, #all-categories li').mouseover(function() {
		$(this).addClass('hover');
	});
	$('#navigation li, #all-categories li').mouseout(function() {
		$(this).removeClass('hover');
	});
	// :first-child fix for IE
	$('#navigation li li:first-child, #all-categories li li:first-child').addClass('first');
	// :hover fix for full articles in IE
	$('.full').mouseover(function() {
		$(this).addClass('hover');
	});
	$('.full').mouseout(function() {
		$(this).removeClass('hover');
	});
	$('#navigation li a, #all-categories li a').removeAttr('title'); // Fix for firefox
	
	// Create shadow div for viewers
	$('.viewer .view a').append('<span class="shadow"></span>');
	
	// Rounded corners
	$('.round-b-l').wrapInner('<div class="round-corner-b-l" />');
	$('.round-b-r').wrapInner('<div class="round-corner-b-r" />');
	$('.round-t-l').wrapInner('<div class="round-corner-t-l" />');
	$('.round-t-r').wrapInner('<div class="round-corner-t-r" />');
	$('.round').wrapInner('<div class="round-corner-t-l"><div class="round-corner-t-r"><div class="round-corner-b-l"><div class="round-corner-b-r"></div></div></div></div>');
});