// JavaScript Document

$(document).ready(function(){


	function doTheIEzIndexFix(){	
	
		var zIndexNumber = 10000;
		$('div.dayEventsWrapper').each(function() {
			$(this).css('zIndex', zIndexNumber);
			zIndexNumber -= 1;
		});
	}
	//doTheIEzIndexFix();
	$(".fullCalendarEventLink").live( "mouseover",							  
		function(){
			var thisAnchor = $(this);
			//doTheIEzIndexFix();
			//thisAnchor.parent().next().fadeIn("fast");
			
			thisAnchor.parent().next().show();
			thisAnchor.parent().parent().parent().css('zIndex',"99999");
			thisAnchor.parent().parent().css('zIndex',"99999");
			thisAnchor.parent().next().css('zIndex',"99999");
			thisAnchor.find("img").attr( "src", thisAnchor.find("img").attr("src").replace("_off", "_on") ); 	
			thisAnchor.parent().next().dropShadow({left:2,top:2,blur:1,opacity:0.4});																	  
	}).live("mouseout", 
		function(){
			
			var thisAnchor = $(this);
			thisAnchor.parent().parent().parent().css('zIndex',"1");
			thisAnchor.parent().parent().css('zIndex',"1");
			thisAnchor.parent().next().css('zIndex',"1");
			thisAnchor.parent().next().removeShadow();
			thisAnchor.parent().next().hide();
			thisAnchor.find("img").attr( "src", thisAnchor.find("img").attr("src").replace("_on", "_off")); });						  
});
