$(document).ready(function() {

	// Fixing CSS3 selector support for IE6
	$('#blogLatest li:last-child, #latestComments li:last-child, #postsByCat li:last-child').addClass('lastChild');
	$('#tweets li:first-child').addClass('firstChild')
	
	
	// Add hover class for IE6
	$('#tweets li').hover(function() {
		$(this).addClass('hover');
	}, function() {
		$(this).removeClass('hover');
	});
	
	if ( $('body').css('height') > "600px" && $('body').attr('id') != "home" ) { $('#contact').hide() };
	
	
	$('li.button a').each(function() {
		var text = $(this).text();
		var url = $(this).attr('href');
		$(this).replaceWith('<a class="button button_2" href="' + url + '"><b>&nbsp;</b><span>' + text + '</span><i>&nbsp;</i></a>');
	});

});
