$(document).ready(function() {	
		$('div#header div#categories_block_left ul.tree li').hover(
	function(){
		$(this).find('ul').css('display','block')
		},
	function(){
		$(this).find('ul').css({display:'none'})
	}
	)
	$('div#header div#categories_block_left ul.tree li ul').hover(
	function(){
		$(this).css('display','block')
		}
	)
		
		
})

jQuery.expr[':'].step = function(node,index,meta){
  var $index = index;
  var $meta = meta[3].toString().split(',');
  var $step = parseInt($meta[0]);  
  var $start = ($meta.length > 1) ? $meta[1] : 0;
  if ($start != 0) $start -= 1;
  return ( ( ($index-$start) / $step ) == Math.floor( ( ($index-$start) / $step ) ) && ( ($index-$start) >= 0 ) );  
};

$('ul#one li:step(3)').css('backgroundColor','#000');
	
	

