$(document).ready(function() {
	$(".tabset").tabset();
	$(".tabnews").tabset({
		"tab":".tab-holder >.tab-inside",
		"tab_control":">ul.tab-control-inside",
		"tab_control_parent":".tab-control-holder"
	});
});
$.fn.tabset = function(o){
	var o = $.extend({
				"tab":">.tab",
				"tab_control":">ul",
				"tab_control_parent":"",
				"tab_control_item":">li",
				"a_class":"active",
				"t_a_class":"active",
				"style": {
					"forActive": {"display":"block"},
					"forInActive": {"display":"none"}
				}
			},o);
	return this.each(function(){
		var tabset=$(this),
			tab=$(o.tab,tabset),
			ctrl_pnt=$(o.tab_control_parent,tabset),
			ctrl=$(o.tab_control,tabset).size() ? $(o.tab_control,tabset):$(o.tab_control,ctrl_pnt),
			ctrl_item=$(o.tab_control_item,ctrl),
			a_class={"name":o.a_class,"selector":"."+o.a_class},
			t_a_class={"name":o.t_a_class,"selector":"."+o.t_a_class},
			style=o.style;
			ctrl_item.click(function(e){
				var index=$(this).index(),
					curTab=tab.filter(t_a_class.selector).size() ? tab.filter(t_a_class.selector):tab.filter(':visible'),
					nextTab=tab.eq(index);
				$(this).parent().find(o.tab_control_item+a_class.selector).removeClass(a_class.name);
				$(this).addClass(a_class.name);
				if(style){
					curTab.css(style.forInActive).removeClass(t_a_class.name);
					nextTab.css(style.forActive).addClass(t_a_class.name);
				}else{
					curTab.removeClass(t_a_class.name);
					nextTab.addClass(t_a_class.name);
				}
				e.preventDefault();
			});
	});
};
function send(){
	var date_start=$("#date_fld").val();
	var date_finish=$("#date_fld_finish").val();
	$.post("../ajax.php",
		{	ID: id,
			DATE_STR:date_start,
			DATE_FNS:date_finish
		} ,
		function(data){
			 $(".event-list").html(data);
		}
	);
};