var count;

function ShowCat(cat)
{
    for (var x = 0; x < count; x++)
    {
        var item = document.getElementById(x);
        item.style.display = 'none';
    }
    
	var category = document.getElementById(cat);
	
	if (category.style.display == '')
	{
		category.style.display = 'block';
	}
	if (category.style.display == 'block')
	{
		category.style.display = 'none';
	}
	else
	{
		category.style.display = 'block';
	}		
}

function ShowItem(cat)
{
	var category = document.getElementById(cat);
	
	if (category.style.display == '')
	{
		category.style.display = 'block';
	}
	if (category.style.display == 'block')
	{
		category.style.display = 'none';
	}
	else
	{
		category.style.display = 'block';
	}		
}



function SetCount(c)
{
    count = c;
}