$(document).ready(function()
{
 $("#signs li").click(function() {
   show_full_description(this)
 });
 
 $("#closesign").click(function() {
 		$("#sign").empty();
 		$("#sign").hide(); 	
 		/* not work now! think about! */	
 });
 
 $("#more").click(function() {
 		$("div.signs").addClass("opacity");	
 		$("#morediv").html("<img src=\"/i/ajax/loadimg_trans.gif\" alt=\"\" width=\"32\" height=\"32\" style=\"margin:29px 0 0 0\" />");
 		$("#morediv").show();
 		$.getJSON(
 		'/signs',{
 			more_signs: true
		},
 		function(obj) {
 			$("#signs").html(obj.html);
 			$("div.signs").removeClass("opacity");
 			$("#morediv").hide();
		}
	);
 });
}
);

function closesign() {
 			$("#sign").empty();
 			$("#sign").hide(); 	
}

function show_full_description(item) {
	$("#sign").hide();
 	var id = $(item).attr("id");
 	var top = $(item).offset().top - 30;
 	$("#sign").show();
 	$("#sign").html("<div style=\"height:90px\"><img src=\"/i/ajax/loadimg.gif\" alt=\"\" width=\"32\" height=\"32\" style=\"margin:29px 0 0 0\" /></div>");
 	$("#sign").css("top",top+"px");
 	$.getJSON(
 		'/signs',{
 			show_sign: true,
 			id: $(item).attr("id")
		},
 		function(obj) {
 			$("#sign").html(obj.html);
 			$("#sign").show();
		}
	);
}
