$(document).ready(function(){
	
	$(document).pngFix();

	jQuery("a[href$='.pdf'], ._blank").click(function(){
		var newwindow = window.open(this.href, '_blank');
		newwindow.focus();
		return false;
	});
	
	$("#top-navigation li").hover(
			function () {
			$(this).addClass("active");
		}, 
	function () {
			$(this).removeClass("active");
		}
	);
	
	$('<img src="http://www.thealabamalawfirm.com/images/li.gif" alt="Bullet" class="li-png" />').prependTo('#top-navigation .sub-nav li');
	
	$('<img src="http://www.thealabamalawfirm.com/images/li.gif" alt="Bullet" class="li-png" />').prependTo('#side-nav ul li, #blogger-nav ul li');
	
	$("#side-nav ul, #top-navigation ul").superfish({
		animation:   {opacity:'show',height:'show'}
	});
	
	
	$('.rounded').corners("");
		
	function getCalendarDate()
		{
		   var months = new Array(13);
		   months[0]  = "January";
		   months[1]  = "February";
		   months[2]  = "March";
		   months[3]  = "April";
		   months[4]  = "May";
		   months[5]  = "June";
		   months[6]  = "July";
		   months[7]  = "August";
		   months[8]  = "September";
		   months[9]  = "October";
		   months[10] = "November";
		   months[11] = "December";
		   var now         = new Date();
		   var monthnumber = now.getMonth();
		   var monthname   = months[monthnumber];
		   var monthday    = now.getDate();
		   var year        = now.getYear();
		   if(year < 2000) { year = year + 1900; }
		   var dateString = monthname +
						' ' +
						monthday +
						', ' +
						year;
		   return dateString;
		} // function getCalendarDate()
	var calendarDate = getCalendarDate();
	$('#date').append(calendarDate);
		
});