if (typeof jQuery == 'undefined') {
throw new Error('jQuery is not loaded');
}
$.fn.zabuto_calendar = function (options) {
var opts = $.extend({}, $.fn.zabuto_calendar_defaults(), options);
var languageSettings = $.fn.zabuto_calendar_language(opts.language);
opts = $.extend({}, opts, languageSettings);
this.each(function () {
var $calendarElement = $(this);
$calendarElement.attr('id', "zabuto_calendar_" + Math.floor(Math.random() * 99999).toString(36));
$calendarElement.data('initYear', opts.year);
$calendarElement.data('initMonth', opts.month);
$calendarElement.data('monthLabels', opts.month_labels);
$calendarElement.data('weekStartsOn', opts.weekstartson);
$calendarElement.data('navIcons', opts.nav_icon);
$calendarElement.data('dowLabels', opts.dow_labels);
$calendarElement.data('showToday', opts.today);
$calendarElement.data('showDays', opts.show_days);
$calendarElement.data('showPrevious', opts.show_previous);
$calendarElement.data('showNext', opts.show_next);