$(document).ready(function() {
	if($().cycle) {
		if ($('#home_slideshow').length != 0) {
			$('#home_slideshow').cycle({
				fx: 'fade',
				speed: 500,
				timeout: 5250,
				cleartype: true,
				next:   '#next', 
				prev:   '#prev'
			});
		}
	}
if($()) {
	$(function(){
	$("#slider").corner()
	$("#left_title_one").corner()
	$("#lower_left_title_two").corner()
	$("#lower_right_title_two").corner()
	$("#right_title_one").corner()
	$("#physical_date").corner()
	$("#physical_date2").corner()
	$("#physical_date3").corner()
	$(".home_slide").corner()
	$("#home_slideshow").corner()
	$("#home_slideshow_container").corner()
	});
}
	
//removes the subnav if it isn't present
	if ($("#subnav ul li.on").children("ul").length == 0) {
	    $("#subnav_area").remove();
	}
	
	//changes the page width on pages w/o a subnav area
	if ($("#subnav_area").children().size() == 0) {					
	    $("#main_content").css({
			"width": "auto",
	    	"padding-left": "20px",
	    	"padding-right": "20px",
	    	"float": "none"
	    });
	}

});

