$(document).ready(function(){
	// Adds a class of "lastchild" to the last <li> in a list
	$("li:last-child")
		.addClass("lastchild");

	// Adds a class to odd rows in every <table class="striped">
	/*$(".striped tr:nth-child(odd)")
		.addClass("oddrow");

	// Places the <label> from <form id="searchform"> inside the text input and makes it show/hide on blur/focus
	$("#searchform label").each(function() {
		var label = $(this);
		var input = $('#' + label.attr('for'));
		var initial = label.hide().text().replace(':', '');
		input.focus(function() {
			input.css('color', '#000');
			if (input.val() == initial) {
				input.val('');
			}
		}).blur(function() {
			if (input.val() == '') {
				input.val(initial).css('color', '#000');
			}
		}).css('color', '#000').val(initial);
	});
	
	// Accordion (expand/collapse) effect for <dl class="faq">
	$(".faq dd").hide();
	$(".faq dt").hover(
		function(){ $(this).addClass("on"); },
		function(){ $(this).removeClass("on"); }
	);
	$(".faq dt").click(function() {
		var $nextDd = $(this).next();
		var $visibleSiblings = $nextDd.siblings('dd:visible');
		
		if ($visibleSiblings.length ) {
			$visibleSiblings.slideUp('fast', function() {
				$nextDd.slideToggle('fast');
			});
		} else {
			$nextDd.slideToggle('fast');
		}
	});
	
	// Suckerfish dropdown menus - For more options, go here: http://users.tpg.com.au/j_birch/plugins/superfish/#options
	$('#nav').supersubs({
		minWidth:    12,	// minimum width of sub-menus in em units 
		maxWidth:    27,	// maximum width of sub-menus in em units 
		extraWidth:  1		// extra width can ensure lines don't sometimes turn over
							// due to slight rounding differences and font-family
	}).superfish({
		delay:       500,								// half-second delay on mouseout 
		animation:   {height:'show'},					// fade-in and slide-down animation 
		speed:       'fast',							// faster animation speed 
		autoArrows:  false,								// disable generation of arrow mark-up 
		dropShadows: false,								// disable drop shadows
		disableHI:   false              				// set to true to disable hoverIntent detection
	}).find('ul').bgIframe({opacity:false});

	// Flashembed (an alternative to SWFObject) - http://www.flowplayer.org/tools/flash-embed.html
	$("#splash").flashembed("media/splash.swf");

	// Initialize Shadowbox
	Shadowbox.init();
	
	// Curvy corners - http://www.atblabs.com/jquery.corners.html
	$('.rounded').corners("10px");*/
});