$.fn.dataTableExt.oApi.fnSelect=function(a,b){this.find("tr.selected_row").toggleClass("selected_row"),$(b).toggleClass("selected_row")},$.fn.dataTableExt.oApi.fnGetSelectedData=function(){var a=this.find("tr.selected_row");return a.length?this.fnGetData(a[0]):null},$.fn.dataTableExt.oApi.fnSelectRow=function(a,b){this.find("tbody tr").eq(b).addClass("selected_row")},$.fn.dataTableExt.oApi.fnGetSelectedPosition=function(){var a=this.find("tr.selected_row");return a.length?this.fnGetPosition(a[0]):null},$.fn.dataTableExt.oApi.fnMoveSelectedUp=function(){function a(a,b){a.removeClass("selected_row"),b.addClass("selected_row")}function b(a,b){var d=c.fnGetData(a[0]).slice(0),e=c.fnGetData(b[0]).slice(0);c.fnUpdate(e,a[0],0,!1,!1),c.fnUpdate(d,b[0],0,!0,!0)}for(var c=this,d=this.find("tr.selected_row"),e=0;e<d.length;e++){var f=d[e],g=jQuery(f),h=jQuery(f).prev();if(0==h.length)break;b(g,h),a(g,h)}},$.fn.dataTableExt.oApi.fnMoveSelectedDown=function(){function a(a,b){a.removeClass("selected_row"),b.addClass("selected_row")}function b(a,b){var d=c.fnGetData(a[0]).slice(0),e=c.fnGetData(b[0]).slice(0);console.log(d),console.log(e),c.fnUpdate(e,a[0],0,!1,!1),c.fnUpdate(d,b[0],0,!0,!0)}for(var c=this,d=this.find("tr.selected_row"),e=0;e<d.length;e++){var f=d[e],g=jQuery(f),h=jQuery(f).next();if(0==h.length)break;b(g,h),a(g,h)}},$.fn.dataTableExt.oApi.fnDeleteSelected=function(){for(var a=this.find("tr.selected_row"),b=0;b<a.length;b++){var c=$(a[b]).next();this.fnDeleteRow(a[b]),c&&this.fnSelect(c)}};