




function processItems(event, caller, containerId) {
	var container = document.getElementById(containerId);
	var itemsArray = container.getElementsByTagName('LI');

	// Reset all class names of list-items
	for (c = 0; c <= itemsArray.length; c++)	{
		if (itemsArray[c]) {
			itemsArray[c].className = '';
		}
	}

	// Set active list item
	caller.parentNode.className = 'active';
}

$(document).ready(function(){
	$('.shop-catalogs li a').each(function (i) {		
		href=$(this).attr('href');
		ar=href.split('/');
		dlin=ar.length;
		dlin_last=ar[dlin-2].length;		
		full_length=href.length-dlin_last-1;
		href1=href.slice(0,full_length);
		$(this).attr('href',href1);		
	});
});


