jQuery(function() {

	/**
	 * If we are using a side nav, then make the
	 * side nav and the content just as tall as each other
	 * Note that this has to be run once all of our page
	 * assets are loaded, so we need to bind this to
	 * a load event
	 */
	jQuery(window).load(function() {
		if (jQuery("#nav.sidenav").length > 0) {
			jQuery("#nav.sidenav, #content").equalHeights();
		}
	});

	/**
	 * Mimic the 'placeholder' attribute behavior in browsers
	 * that aren't trying hard enough.
	 *
	 * Uses Mathias Bynens's plugin, found on github:
	 * http://github.com/mathiasbynens/Placeholder-jQuery-Plugin
	 */
	jQuery("#search input[name='terms']").placeholder();

	
	/**
	 * Round corners on all callout buttons (Since IE isn't smart enough to)
	 */
	jQuery('.callout').corner();
	jQuery('#search').corner("bl");
	jQuery('#search').corner("br");
});

