function toggleNav(id, el)
{
	var cli = $(el).up('li');
	if(!cli || cli == null)
		return false;
	
	if(cli.hasClassName('active'))
		cli.removeClassName('active');
	else
		cli.addClassName('active');
	
	new Effect.toggle(id, 'slide');
}

function winLoad()
{
	// set opacity to lists
	// working only for FF
	var a = $$('li[rel="opaque"]');
	a.each(function(el){
		$(el).setOpacity(0.6);
		$(el).onmouseover = function(){ $(this).setOpacity(1); };
		$(el).onmouseout  = function(){ $(this).setOpacity(0.6); };
	});
	
	// rounder corners in products pics
	if(Prototype.Browser.Gecko)
	{
		$$('.box-prod').each(function(el){ $(el).addClassName('sb') });		
		var border = RUZEE.ShadedBorder.create({ corner:20, border:1 });
		border.render($$('.box-prod'));	
	}
	else
	{
		$$('.box-prod').each(function(el){ $(el).addClassName('sq') });		
	}
}

Event.observe(window, 'load', winLoad);