function desaturateImg(id) {
	if (document.getElementById(id)) {
		$("#"+id).pixastic("desaturate");
		// set mouseenter / mouseleave triggers
    $("#"+id+"-box").mouseenter(function(){
    	Pixastic.revert(document.getElementById(id));	
    }).mouseleave(function(){
    	$("#"+id).pixastic("desaturate");
    });
  }
}
function desaturateAll(jq_class) {
	// if not able to capture the movement of the mouse over the object
	$(jq_class).mouseleave(function(){
		$(jq_class + " img").pixastic("desaturate");
	});
}

