jQuery.noConflict();

jQuery(document).ready(function($) {

if ($('#posts td:first').is('.tcat2')) {
$('#posts td:first').removeClass('tcat2');
$('#posts td:first').addClass('tcat');
}

$('#post_ td:first').removeClass('tcat2');
$('#post_ td:first').addClass('tcat');

$('#post_0 td:first').removeClass('tcat2');
$('#post_0 td:first').addClass('tcat');

$('#posts > table:first').addClass('first-table');
$('#posts > table:last').addClass('last-table');

$('#post_').removeClass('tborder2');
$('#post_').addClass('tborder4');

$('#post_0').removeClass('tborder2');
$('#post_0').addClass('tborder4');

$('.home').hover(function() {
	$('.home-button').addClass('home-button-hover');
}, function() {
	$('.home-button').removeClass('home-button-hover');
});

$('.dropdown').click(function() {
	$('.dropdown-menu').slideToggle(300);
	$(this).toggleClass('no-bottom-radius');
	return false;
});

if(jQuery().fancyCollapses){
        $(".tborder  tbody[id$='_e']").fancyCollapses({easing: "easeInOutQuart", speed: "normal"});
		if ($('.thead > .expcolimage').not('.all-radius')) {
		$('.thead > .expcolimage').click(function () {
			$(this).parent().toggleClass('all-radius');
		});
		} else {
			$('.thead > .expcolimage').click(function () {
				$(this).parent().toggleClass('no-radius');
			});
		}
}
});
