function showSearchForm1()
{
	var fx3 = new Fx.Morph($('cem_list'), {duration:1000, wait:false});
	var fx4 = new Fx.Morph($('grave_search'), {duration:1000, wait:false});
	fx3.start({'height': 0});
	fx4.start({'height': 300});
	$('cem_form_control_button').setProperty('src', '<?=$root?>/templates/images/circ_arr.gif');
	$('search_form_control_button').setProperty('src', '<?=$root?>/templates/images/circ_min.gif');

	$('cem_form_control').removeEvents();
	$('search_form_control').removeEvents();
	$('cem_form_control').addEvent('click', showCemeteryForm);
	$('search_form_control').addEvent('click', showCemeteryForm);
	
	return false;
}
window.addEvent('domready', function(){
	var links = $$(".vac_link");
	if (links)
	{
		links.each(function(link, i) {
			link.addEvent("click", function(event) {
				openBlock(this.id);
			});
		});
	}
});
function openBlock(id)
{
	vac_block = $(id + 'full');
	var fx = new Fx.Morph(vac_block, {duration:1000, wait:false});
	var height = $(id + 'text').getStyle('height').toInt() + 130;
//	alert(height);
	fx.start({'height': height});
	$(id).removeEvents();
	$(id).addEvent("click", function(event) {
		closeBlock(id);
	});
	return false;
}
function closeBlock(id)
{
	vac_block = $(id + 'full');
	var fx = new Fx.Morph(vac_block, {duration:1000, wait:false});
	fx.start('.vac_block');
	$(id).removeEvents();
	$(id).addEvent("click", function(event) {
		openBlock(id);
	});
	return false;
}
