function load_data(id, target)
{
    var str = '#'+ id + '_d';
    var obj = $(str);
  
    if (obj[0].style.display != 'none')
	$(str).slideUp('normal');
    else    
	if ($(str).html() != '')
	    $(str).slideDown('normal');
    
    if ($(str).html() == '')
    {
        $.ajax(
	{
		url: '?id=' + id + '&target=' + target,
                type: 'POST',                
		success: function(data)
		{
		    $(str).html(data);
		    $(str).slideDown('normal');
                } 
	});
  }
}

$(function()
{	      
	$(".list_solutions").click(function(event)
	{
		event = event || window.event;
		event.target.id = event.target.id || event.srcElement.id;
		
		load_data(event.target.id, 'solutions');
		
                return false;
	});
	
	$(".list_features").click(function(event)
	{
		event = event || window.event;
		event.target.id = event.target.id || event.srcElement.id;
		
		load_data(event.target.id, 'features');
		
                return false;
	});
});
