function getCalendar(day,week,month,year,type,lang,width) {
	$("#calendar").html("").css({"background":"url(\"/files/framework/loader.gif\") no-repeat center center"});
	
	$.ajax({
		url: "/ajax/calendar.php",
		
		type: "POST",
		data: {
			day		: day,
			week	: week,
			month	: month,
			year	: year,
			type	: type,
			lang	: lang,
			width	: width
		},
		
		success: function(html){
			var obj='';
			if(obj = $.parseJSON(html)) {
				$("#calendar").html(obj.calendar).css({"background":"none"});
				$("#months .menuGreenBg").html(obj.months);
				$("#weeks .menuBlueBg").html(obj.weeks);
				$("#days .menuYellowBg").html(obj.days);
				$("#years").html(obj.years);
				$("#views").html(obj.views);
				$("#navi").html(obj.navi);
				
				addTooltip();
			} else {
				$("#calendar").css({"background":"none"});
			}
		},
		error: function(xhr, ajaxOptions, thrownError) {
				$("#calendar").css({"background":"none"});
		}
	});
}
