$(function()
	{
		$(".mast").jCarouselLite({btnNext:".mast_right", btnPrev:".mast_left", visible:1, easing:"easeinout", speed:500, auto:10000});
		$("#inline").colorbox({width:"300px", inline:true, href:"#inline_box", title:"The Austin Hospitality Assocation"});
		$("a[href='http://www.austinhospitalityassociation.com/forum/']").colorbox({width:"90%", height:"90%", iframe:true});
		$("a[href='Calendar.aspx']").colorbox({ width:"870", height:"570", iframe:true });
	});

$().ready(function() {
	var options = {
		height: 500,
		width: 800,
		navHeight: 25,
		labelHeight: 25,
		onMonthChanging: function(dateIn) {
			//this could be an Ajax call to the backend to get this months events
			//var events = [ 	{ "EventID": 7, "StartDate": new Date(2009, 1, 1), "Title": "10:00 pm - EventTitle1", "URL": "#", "Description": "This is a sample event description", "CssClass": "Birthday" },
			//				{ "EventID": 8, "StartDate": new Date(2009, 1, 2), "Title": "9:30 pm - this is a much longer title", "URL": "#", "Description": "This is a sample event description", "CssClass": "Meeting" }
			//];
			//$.jMonthCalendar.ReplaceEventCollection(events);
			return true;
		},
		onEventLinkClick: function(event) { 
			alert("event link click");
			return true; 
		},
		onEventBlockClick: function(event) { 
			alert("block clicked");
			return true; 
		},
		onEventBlockOver: function(event) {
			//alert(event.Title + " - " + event.Description);
			return true;
		},
		onEventBlockOut: function(event) {
			return true;
		},
		onDayLinkClick: function(date) { 
			alert(date.toLocaleDateString());
			return true; 
		},
		onDayCellClick: function(date) { 
			alert(date.toLocaleDateString());
			return true; 
		}
	};
	
	
	var events = [ 	{ "EventID": 1, "Date": new Date(2009, 3, 1), "Title": "10:00 pm - EventTitle1", "URL": "#", "Description": "This is a sample event description", "CssClass": "Birthday" },
					{ "EventID": 1, "StartDateTime": "new Date(2009, 3, 12)", "Title": "10:00 pm - EventTitle1", "URL": "#", "Description": "This is a sample event description", "CssClass": "Birthday" },
					{ "EventID": 2, "Date": "2009-04-28T00:00:00.0000000", "Title": "9:30 pm - this is a much longer title", "URL": "#", "Description": "This is a sample event description", "CssClass": "Meeting" },
					{ "EventID": 3, "StartDateTime": "new Date(2009, 3, 20)", "Title": "9:30 pm - this is a much longer title", "URL": "#", "Description": "This is a sample event description", "CssClass": "Meeting" },
					{ "EventID": 4, "StartDateTime": "2009-04-14", "Title": "9:30 pm - this is a much longer title", "URL": "#", "Description": "This is a sample event description", "CssClass": "Meeting" }
	];
	
	var newoptions = { };
	var newevents = [ ];
	//$.jMonthCalendar.Initialize(newoptions, newevents);

	
	$.jMonthCalendar.Initialize(options, events);
});

$(document).ready(function(){
       $("a.l_1").click(function(event){$("div.t_1").slideDown("slow")});
       $("a.l_1_close").click(function(event){$("div.t_1").hide()});
       $("a.l_2").click(function(event){$("div.t_2").slideDown("slow")});
       $("a.l_2_close").click(function(event){$("div.t_2").hide()});
     });

