$(function() {
	$(".class table[border=1]").addClass("colored").each(function() {
		$("tr", $(this)).each(function(i) {
			if (!(i % 2)) $(this).addClass("table_row2")
		})
	})	

	$(".grayscale").mouseover(function() {
		grayscale($(this));
	}).mouseout(function() {
		grayscale.reset($(this));
	})

	$(".ingrayscale").mouseover(function() {
		grayscale.reset($(this));
	}).mouseout(function() {
		grayscale($(this));
	}).each(function() {
		grayscale($(this));
	});	
	
	
/*	
	$(".online").each(function() {
		$(this).mouseout(function() {
			$(this).pixastic("desaturate").mouseover(function() {
				Pixastic.revert(this);
			});
		}).triggerHandler("mouseout");
	});

	$(".partner_block td").live("mouseover", function() {
		$("img", this).css({
			filter : ""
		});
	});
	
	$(".partner_block td").live("mouseout", function() {
		$("img", this).css({
			filter : "gray"
		});
	});
		
	$(".partner_block td img").css({
		filter : "gray"
	});
*/
	
	$("ol").each(function() {
		var start = parseInt($(this).attr("start"));
		if (!start || start == -1) start = 1;
		
		var i = start;
		$(this).children().each(function() {			
			$(this).prepend("<span class='sq'>" + i + "</span> ");
			i++;
		});
	})

	$(".rightimg ul li").each(function() {
		var zakaz = $(this).text();				
		if ((zakaz == "Заказ услуг") && $(".rightimg canvas")) { 
			$(this).css("display", "none");
		}
	});

	$('a[rel=lightbox]').lightBox(); 
});

