jQuery.noConflict();
jQuery(function($) {
		
	//Product Navigation Accordion
	if (document.getElementById('product-nav')) {
		var nav = document.getElementById('product-nav');
		var section = nav.className.substr(nav.className.length - 1);
		var activeItem = $.cookie('nav-active-' + section);
		
		var jNav = $('#product-nav');
		jNav.find('span').each(function(i){
			$(this).click(function(){
				$(this).toggleClass('active');
				$(this).next('ul').slideToggle('normal');
				$(this).parent().siblings('li').find('ul').slideUp('normal').prev('span').removeClass('active');
				$.cookie('nav-active-' + section, i);
				return false;
			});
		}).end().find('ul').hide();
		
		if (jNav.is('.section-' + section)) {
			jNav.find('ul:eq(' + activeItem + ')').show().prev().addClass('active').parents('ul').show();
		}
	}
			
		
	//Filtru
	$('#filtru')
		.find('input:submit').hide().end()
		.find('select').change(function(){
			$(this).next().click();
		});
	
	//Tabele
	$('table tbody tr:even').addClass('even');
});
