$(document).ready(function() {
	
	// dynamically add class to content and right divs so they always remain at equal height
	//$('#content, #right').addClass('eqheight');
	
	// apply rounded corners
	$('#banner ul li a').corner('top');
	$('#content').corner('tl');
	$('#left .leftnav').corner();
	
	// add pseudo-class functionality
	$('#footer-nav ul li:last-child').css('border-right','0');
	$('#left ul li:last-child a').css('border','0');
	
	// add horizontal rules for style-free formatting
	$('#banner, #flash, #left, #right, #content-container').append('<hr />');
	
	// force target="_blank" equivalent
	$('a[rel="external"]').click(function(){
		window.open(this.href);
		return false;
	});
	
	// initilize lightbox images
	$('a[rel="lightbox"]').lightBox();
	
	if($('#tabs').length > 0) {
		$("#tabs").tabs();
	}

});

$(window).load(function(){
	// boxes on homepage remain at equal height
	$('.news-padding, .starport-padding, .links-padding').equalHeights();
});