/*
 *	-----------
 *	formatTable v1.0
 *	-----------
 *  zalozeno na knihovne jQuery.
 *  Pro NetDirect s.r.o. vytvoril Tomas Musiol (tomas.musiol@netdirect.cz).
 * 
 */

jQuery.fn.ndFormatTable = function(ndFormatTableOptions){
		
	var settings = {	
	}
		
	var opts = $.extend(settings, ndFormatTableOptions);	
	
	$(this).find("tbody tr:even").addClass("even");		

	// hover nad radky
	$(this).find("tr").hover(
		function(){ $(this).find("td").toggleClass("hover"); },
		function(){ $(this).find("td").toggleClass("hover"); }
	);
	
	var selectedCount = 0;		
			
	// chci porovnavat polozky
	if( $(this).hasClass("compare") ){
	
		$(this).find("tr").click(function(e){ 				
			$(this).toggleClass("active");
			selectedCount = $(".active").size(); // kolik je vybranych polozek																								
		});
											
	}
				
}

