$(document).ready(function(){
	if ($().cycle){
		$('#head_slideshow').cycle({
			fx: 'fade',
			speed: 1000,
			random: true,
			timeout: 3000
		});
	}	
	
 	//removes divider from the last element of the nav
	$('#nav ul.nav1>li:last-child').css('border-right' , 'none');
	
 	 //removes divider from the last element of the nav
	$('#nav ul.nav1>li:last-child a').css('border-right' , 'none');
	
 	//cernter the nav
		var Margin = (820 - $('#nav ul.nav1').width())/2
		$('#nav ul.nav1').css('margin-left', Margin);
 	 	
 	//cernter the nav
		var Margin = (800 - $('#nav.ole ul.nav1').width())/2
		$('#nav.ole ul.nav1').css('margin-left', Margin); 	
 	 	
 	//removes divider and extra padding on the footer_nav
	$('#footer_nav ul>li:last-child').css({
	    'border-right': 'none',
	    'padding-right' : 0
	});
	
	$('#footer_nav ul>li:first-child').css('padding-left' , 0);

	
	    	  
	
	/*
	//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",
	    	"float": "none"
	    });
	}
	*/
});
