igCalendar.getItems=function($trigger,igCalendar2){var items={},multiItems={},free=$trigger.data("free");if(free>0){for(i=1;i<=free;i++)multiItems[i]={name:i,callback:function(key,opt){var command=igCalendar2.getCommandElement("Ajax","reservationCreate",$trigger);igCalendar2.callCommandWithArgs(command,$("#timeslot-"+command.args.calendar+"-"+command.args.date+"-"+command.args.timeslot),{multi:key})}};items.frontenduser={name:"Buchen als Benutzer",callback:function(key,opt){var command=igCalendar2.getCommandElement("Ajax","frontendUserForm",$trigger);igCalendar2.fancyboxOpenAjaxCommand(command)}},items.guest={name:"Buchen als Gast",callback:function(key,opt){var command=igCalendar2.getCommandElement("Ajax","guestForm",$trigger);igCalendar2.fancyboxOpenAjaxCommand(command)}},items.multi={name:"Mehrere Buchen",items:multiItems},items.sep1="---------"}return items.show={name:"Details anzeigen",callback:function(key,opt){var command=igCalendar2.getCommandElement("Ajax","eventShow",$trigger);igCalendar2.fancyboxOpenAjaxCommand(command)}},items};
