(function($){$.fn.table_highlight=function(options){return this.each(function(){if(this.__th)return;else this.__th=elecount;var params;if(typeof(options)!="undefined")params=$.extend(true,{},$.fn.table_highlight.defaults,options);else params=$.fn.table_highlight.defaults;H[elecount]={params:params,target:this,col_num:1};$.table_highlight.actions(elecount);elecount++;});}
$.table_highlight={hash:{},actions:function(elecount){var h=H[elecount],active_table=h.target;jQuery(active_table).find(h.params.triggers).hover(function(){$.table_highlight.find_row(elecount,this).not(jQuery(h.params.ignore_highlight)).addClass(h.params.highlight_class);$.table_highlight.find_col(elecount,this).not(jQuery(h.params.ignore_highlight)).addClass(h.params.highlight_class);},function(){jQuery(active_table).find('*').removeClass(h.params.highlight_class);});},find_row:function(elecount,hovered){var h=H[elecount],active_table=h.target;return jQuery(hovered).parent().not(jQuery(h.params.ignore_rows));},find_col:function(elecount,hovered){var h=H[elecount],active_table=h.target;h.col_num=jQuery(hovered).parent().children().index(hovered)+1;return jQuery(active_table).find(h.params.row).children(':nth-child('+h.col_num+')').not(jQuery(h.params.ignore_columns));}};$.fn.table_highlight.defaults={'triggers':'th, td','row':'tr','highlight_class':'active','ignore_highlight':'.image_column','ignore_rows':'.comparision_table_heading_images, .comparison_table_heading_row','ignore_columns':'.column_1'};var elecount=0,H=$.table_highlight.hash;})(jQuery);
