/* default template js */
$(document).ready(function()
{
	/* date picker */
	if( $('.date_picker').length )
	{
		$(function(){
			// Datepicker
			$('.date_picker').datepicker({
				inline: true,
				dateFormat: 'yy-mm-dd',
				showOn: 'button', 
				buttonImage: '/_templates/feaweb/img/calendar_icon.gif',
				buttonImageOnly: true,
				showOn: 'both',
				numberOfMonths: 2
			});
					
		});
	}
	
	/* highlight TD */
	$(".content_day_wrapper").mouseover(function()
	{
		$(this).removeClass("content_day_wrapper");
    	$(this).addClass("content_day_wrapper_rollover");
	});	
	$(".content_day_wrapper").mouseout(function()
	{
		$(this).removeClass("content_day_wrapper_rollover");
	   	$(this).addClass("content_day_wrapper");
	});
	
	/* CALENDAR VIEW show event details on mouseover */
	$(".see_event_details").mouseover(function()
	{
		var clicked  = $(this).attr("id");
		$(this).easytooltip("description_"+clicked, {border: "2px solid #0a718b"});
	});
	
	/* LIST VIEW show event details on mouseover */
	$(".see_events_details_2").mouseover(function()
	{
		var clicked  = $(this).attr("id");
		$(this).easytooltip("description_"+clicked, {border: "2px solid #0a718b"});
	});
	
	/* show day details on mouseover */
	$(".see_more_events").mouseover(function()
	{
		var clicked  = $(this).attr("rel");
		$(this).easytooltip(clicked, {border: "2px solid #0a718b"});
	});
	
});