jQuery(document).ready(function($) {
	// Main navigation - jQuery Superfish plugin
	$('#nav ul.sf-menu').supersubs({
		minWidth: 13,
		maxWidth: 17,
		extraWidth: 1
	}).superfish({
		speed: 'fast',
		dropShadows: false,
		delay: 500,
	});
		
	// jQuery shims
	$("ul li:first-child").addClass("first");
	$("ul li:last-child").addClass("last");
	$("#nav ul ul li:first-child").removeclass("first");
	
	// rounded corners
	$("#nav ul li.first a").corner("tl bl");
	$("#nav ul li.last a").corner("tl bl");
	$("#home-splash").corner("tl tr");
});


//	Rounded corners, gradients, and drop shadows all
//	handled by the Liquid Canvas jQuery plugin - does
//	not work with document ready
jQuery(window).load(function() {
	jQuery(".section").liquidCanvas("[shadow{width:1; color:#1C2038; shift:1;} gradient{from:rgba(255, 255, 255, 1); to:#ebebeb;} border{width:1; color:#fff;}] => roundedRect{radius:10}");
	jQuery("#nav").liquidCanvas("[shadow{width:1; color:#1C2038; shift:1;} gradient{from:rgba(0, 0, 0, 1); to:#212642;} border{width:1; color:#000;}] => roundedRect{radius:10}");
});
