$(document).ready(function(){
						   
	$('.fancybox').fancybox({ 'titlePosition': 'inside' }); 
	
	$('a[href^="http://"]').attr("target", "_blank");
	$('.blank').attr('target','_blank');
	
	$("ul li:first-child").addClass('first');
	$("ul li:last-child").addClass('last');

	$(".alert").animate({ height:'show', opacity:'show' }, 'slow');
	

	/* home li click */
	$("ul.home li").click(function () { 
		var href = $(this).find("a").attr('href');
		window.location = href;
	});

	/* subnav indent on hover */
	$("#subnav a").hover(function(){
		$(this).stop().animate({
			paddingRight: "10px"
		}, 300);
	}, function(){
		$(this).stop().animate({
			paddingRight: "0px"
		}, 300);
	}); 
		
});
