jQuery(document).ready(function() {
	equalHeight(jQuery(".item p"));
	jQuery(".home_widgets .widget:first").css("margin-left", "0");
	jQuery(".footernav  li:last").css("border-right", "0");
	jQuery(".navigation .alignleft:empty").hide();
	jQuery(".navigation .alignright:empty").hide();
	jQuery(".comment-nav .alignright:empty").hide();
	jQuery(".comment-nav .alignleft:empty").hide();
	jQuery(".navigation:empty").hide();
	jQuery(".comment-nav:empty").hide();
	jQuery('ul.sf-menu').superfish();
});

DD_roundies.addRule('.container, .qbutton a, blockquote,.comment-reply-link', '10px', true);
DD_roundies.addRule('#sidebarsearch div, .navigation a, .comment-nav a', '20px', true);
DD_roundies.addRule('.wp-caption,.portfnav a', '5px', true);
DD_roundies.addRule('.commentlist li', '10px', true);
Cufon.replace('#pagenav a', {
	textShadow: '1px 1px #ffffff'
});

Cufon.replace('h1');
Cufon.replace('h2');
Cufon.replace('h3');
Cufon.replace('h4');
Cufon.replace('h5');

function equalHeight(group) {
	if (group==null) return;
	tallest = 0;
	group.each(function() {
		thisHeight = jQuery(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}
