var caldef2 =
{
	firstday : 1,
	dtype : 'yyyy.MM.dd.',
	width : 250,
	windoww : 280,
	windowh : 160,
	border_width : 0,
	border_color : '#0000d3',
	dn_css : 'clsDayName',
	cd_css : 'clsCurrentDay',
	tw_css:'clsCurrentWeek',
	wd_css : 'clsWorkDay',
	we_css : 'clsWeekEnd',
	wdom_css : 'clsWorkDayOtherMonth',
	weom_css : 'clsWeekEndOtherMonth',	
	highlight_css : 'clsHighLight',	
	imgapply : 'naptar/img/apply.gif', // Image for apply button
	headerstyle :
	{
		type:'buttons',
		css:'clsDayName',
		closebutton: true,
		imgnextm:'naptar/img/right_green.gif',
		imgprevm:'naptar/img/left_green.gif',
		imgnexty:'naptar/img/last_green.gif',
		imgclose:'naptar/img/close_green.gif',
		imgprevy:'naptar/img/previous_green.gif',
		titlenextm:'Következő hónap',
		titleprevm:'Előző hónap',
		titlenexty:'Következő év',
		titleclose:'Naptár bezárása',
		titleprevy:'Előző év'
	},
	monthnames : ["Január", "Február", "Március", "Április", "Május", "Június", "Július", "Augusztus", "Szeptember", "Október", "November", "December"],
	daynames : ["V", "H", "K", "Sze", "Cs", "P", "Szo"],
	txt : ["Előző év", "Előző hónap", "Következő hónap", "Következő év", "Rendben"],

	template_path : '',
	img_path : ''
}; 
var c2 = new CodeThatCalendar(caldef2);
var c1 = new CodeThatCalendar(caldef2);

function showCalendar(cal, caller, dest){
	cal.innerpopup(caller,dest);
	cal.tmpwindowmousedown = window.onmousedown;
	cal.tmpdocmousedown = window.document.onmousedown;
	window.calendarcombo = cal;
	window.onmousedown = hideCalendar;
	window.document.onmousedown = hideCalendar;
}

function hideCalendar() {
	var cal = window.calendarcombo;
	if (cal != undefined) {
		cal.hideifr = true;
		cal.hide();
		window.onmousedown = cal.tmpwindowmousedown;
		window.document.onmousedown = cal.tmpdocmousedown;
	}
}

