var $j = jQuery.noConflict();

$j(document).ready(function() {
		
	$j('.carousel').jcarousel({
     scroll: 4
  });
	
	var path = location.pathname.substring(1);
  if ( path ) {
    $j('.menu div ul li a[@href$="' + path + '"]').attr('class', 'active');
		
		path = location.pathname;
    var poziceLom = path.lastIndexOf('/');
		
    path = path.substring(0,poziceLom+1);
	    $j('.menu div ul li a[@href$="' + path + '"]').attr('class', 'active');
	
	  path = location.pathname;
      $j('#sidebar2 ul li a[@href$="' + path + '"]').attr('class', 'selected');
  }
	
});
