$(document).ready(function(){
	$("#add_comment").hide();
	
	$(".add_comment").click(function(){
		$("#comment").hide();
		$("#add_comment").show();
	});	
	
	$(".show_comment").click(function(){
		$("#comment").show();
		$("#add_comment").hide();
	});	
	
	$(".clear-text").click(function(){
		$(this).html('');
	});
});
	
function hover(elem) {
	elem.className='bgs-hover';
}

function over(elem) {
	elem.className='bgs';
}

function link(a) {
	window.location = a;
}

function ShowBlock(id) {
	elem=document.getElementById(id);
	elem.style.display='block';
	map=document.getElementById('map');
	map.style.display='none';			
}

var prev_comment = 0;

function cr(comment_id)
{
	if (prev_comment && prev_comment != comment_id)
	{
		document.getElementById(prev_comment).style.display = 'none';
	}

	var div = document.getElementById(comment_id);
	
	if (div.style.display != 'block')
	{
		div.style.display = 'block';
	}
	else
	{
		div.style.display = 'none';
	}

	prev_comment = comment_id;
}

		
	
