function appendShadow(t) {
	$(t).css('position', 'relative');
	$(t).css('z-index', '1');
	$(t).prepend('<em class="shadow"">' + $(t).html().replace(/<\/?[^>]+>/gi, '') + '</em>');
}

function appendBorderRadius(t,v) {
	$(t).css({
		WebkitBorderRadius: v, 
		MozBorderRadius: v, 
		BorderRadius: v });
}

$(window).ready(function(){

	// Append shadows
	$('div.content-section h1').each(function(){
		appendShadow(this);
	});

	// Append border radius
	appendBorderRadius('#top-search input.query', 3);
	appendBorderRadius('#top-search select.select', 3);

	// Append hover effect on gallery thumbs
	$('div.gallery div.gallery-thumb').each(function() {
		$(this).hover(
			function() {
				$(this).attr('class', 'gallery-thumb-hl');
			},
			function() {
				$(this).attr('class', 'gallery-thumb');
			}
		);	
	});

});

