function getCities(parish_id)
{
	var url = '/ajax/get_cities';
	var pars = '&parish_id=' + parish_id;

	var target = 'row_' + parish_id;

	if ($(target).style.display == 'none')
	{
		var myAjax = new Ajax.Updater(target, url, {
			method: 'post',	
			parameters: pars, 
			evalScripts: true,
			onCreate: function() {},
			onComplete: function() {
				new Effect.toggle($(target),'blind', {duration: .5})
				}
			});
	}
	else
	{
		new Effect.toggle($(target),'blind', {duration: .5})
	}
}

function moreText(city_id, type)
{
	//$('show_' + type + '_' + city_id).style.display = 'inline';

	new Effect.Appear($('show_' + type + '_' + city_id), {duration: .5});

	$('more_' + type + '_' + city_id).style.display = 'none';
}

function lessText(city_id, type)
{
	//$('show_' + type + '_' + city_id).style.display = 'none';

	new Effect.Fade($('show_' + type + '_' + city_id), {duration: .5});

	$('more_' + type + '_' + city_id).style.display = 'inline';
}

function flip_cover(book)
{
	str = $('directory_cover').src;
	
	if (str.substr(str.length-9, 9) == '_back.png')
	{
		$('directory_cover').src = '/images/' + book + '.png';
		$('directory_cover_cont').style.background = 'url("/images/book_bg.gif")';
	}
	else
	{
		$('directory_cover').src = '/images/' + book + '_back.png';
		$('directory_cover_cont').style.background = 'url("/images/book_back_bg.gif")';
	}
}