//function for jQuery date picker 
$(function()
{
	Date.format = 'yyyy-mm-dd';
	$('.date-pick').datePicker({clickInput:true})
	$('#pickcheckin430').bind(
		'dpClosed',
		function(e, selectedDates)
		{
			var d = selectedDates[0];
			if (d) {
				d = new Date(d);
				$('#pickcheckout430').dpSetStartDate(d.addDays(1).asString());
			}
		}
	);
	$('#pickcheckout430').bind(
		'dpClosed',
		function(e, selectedDates)
		{
			var d = selectedDates[0];
			if (d) {
				d = new Date(d);
				$('#pickcheckin430').dpSetEndDate(d.addDays(-1).asString());
			}
		}
	);
});

$(document).ready(function() {
	//create scroller for each element with "horizontal_scroller" class...
	$('#horizontal_scroller').SetScroller({	velocity: 	 60,
											direction: 	 'horizontal',
											startfrom: 	 'right',
											loop:		 'infinite',
											movetype: 	 'linear',
											onmouseover: 'pause',
											onmouseout:  'play',
											onstartup: 	 'play',
											cursor: 	 'pointer'
										});
	
	$("#mp3").jmp3({
		filepath: "concerto.mp3",
		backcolor: "a6bcd7",
		forecolor: "034695",
		width: 103
	});	
});
