$.extend(!0,$.fn.dataTable.defaults,{aaSorting:[],aoColumnDefs:[{bSortable: false,aTargets:[-1]}],sDom:"<'row-fluid'<'span6'l><'span6'f>r>t<'row-fluid'<'span6'i><'span6'p>>",dom:'T<"clear">lfrtip<"clear spacer">T',sPaginationType:"bootstrap",oLanguage:{sLengthMenu:"_MENU_ enrégistrement par page",oPaginate:{sFirst:"Prémier",sLast:"Dernier",sNext:"Suivant",sPrevious:"Précédent"},sEmptyTable:"Pas de donnée disponible dans la table",sInfo:"Affichage de _START_ à _END_ sur _TOTAL_ éléments",sInfoEmpty:"Affichage de 0 à 0 sur 0 éléments",sInfoFiltered:"(filtré à partir de _MAX_ total éléments)",sInfoPostFix:"",sInfoThousands:",",sLengthMenu:"Affichage de _MENU_ éléments",sLoadingRecords:"Chargement...",sProcessing:"Traitement...",sSearch:"Recherche:",sUrl:"",sZeroRecords:"Aucun enrégistrement trouvé",oAria:{sSortAscending:": Trier de A-Z",sSortDescending:": Trier de Z-A"},tableTools:{aButtons:["copy","print"]}}}),$.extend($.fn.dataTableExt.oStdClasses,{sWrapper:"dataTables_wrapper form-inline"}),$.fn.dataTableExt.oApi.fnPagingInfo=function(t){return{iStart:t._iDisplayStart,iEnd:t.fnDisplayEnd(),iLength:t._iDisplayLength,iTotal:t.fnRecordsTotal(),iFilteredTotal:t.fnRecordsDisplay(),iPage:-1===t._iDisplayLength?0:Math.ceil(t._iDisplayStart/t._iDisplayLength),iTotalPages:-1===t._iDisplayLength?0:Math.ceil(t.fnRecordsDisplay()/t._iDisplayLength)}},$.extend($.fn.dataTableExt.oPagination,{bootstrap:{fnInit:function(t,e,s){var n=t.oLanguage.oPaginate,o=function(e){e.preventDefault(),t.oApi._fnPageChange(t,e.data.action)&&s(t)};$(e).append('");var i=$("a",e);$(i[0]).bind("click.DT",{action:"previous"},o),$(i[1]).bind("click.DT",{action:"next"},o)},fnUpdate:function(t,e){var s,n,o,i,l,a,r=5,c=t.oInstance.fnPagingInfo(),d=t.aanFeatures.p,h=Math.floor(r/2);for(c.iTotalPages=c.iTotalPages-h?(l=c.iTotalPages-r+1,a=c.iTotalPages):(l=c.iPage-h+1,a=l+r-1),s=0,n=d.length;n>s;s++){for($("li:gt(0)",d[s]).filter(":not(:last)").remove(),o=l;a>=o;o++)i=o==c.iPage+1?'class="active"':"",$("
  • '+o+"
  • ").insertBefore($("li:last",d[s])[0]).bind("click",function(s){s.preventDefault(),t._iDisplayStart=(parseInt($("a",this).text(),10)-1)*c.iLength,e(t)});0===c.iPage?$("li:first",d[s]).addClass("disabled"):$("li:first",d[s]).removeClass("disabled"),c.iPage===c.iTotalPages-1||0===c.iTotalPages?$("li:last",d[s]).addClass("disabled"):$("li:last",d[s]).removeClass("disabled")}}}}),$.fn.DataTable.TableTools&&($.extend(!0,$.fn.DataTable.TableTools.classes,{container:"DTTT btn-group",buttons:{normal:"btn",disabled:"disabled"},collection:{container:"DTTT_dropdown dropdown-menu",buttons:{normal:"",disabled:"disabled"}},print:{info:"DTTT_print_info modal"},select:{row:"active"}}),$.extend(!0,$.fn.DataTable.TableTools.DEFAULTS.oTags,{collection:{container:"ul",button:"li",liner:"a"}}));var ZeroClipboard_TableTools={version:"1.0.4-TableTools2",clients:{},moviePath:"",nextId:1,$:function(t){return"string"==typeof t&&(t=document.getElementById(t)),t.addClass||(t.hide=function(){this.style.display="none"},t.show=function(){this.style.display=""},t.addClass=function(t){this.removeClass(t),this.className+=" "+t},t.removeClass=function(t){this.className=this.className.replace(RegExp("\\s*"+t+"\\s*")," ").replace(/^\s+/,"").replace(/\s+$/,"")},t.hasClass=function(t){return!!this.className.match(RegExp("\\s*"+t+"\\s*"))}),t},setMoviePath:function(t){this.moviePath=t},dispatch:function(t,e,s){(t=this.clients[t])&&t.receiveEvent(e,s)},register:function(t,e){this.clients[t]=e},getDOMObjectPosition:function(t){var e={left:0,top:0,width:t.width?t.width:t.offsetWidth,height:t.height?t.height:t.offsetHeight};for(""!=t.style.width&&(e.width=t.style.width.replace("px","")),""!=t.style.height&&(e.height=t.style.height.replace("px",""));t;)e.left+=t.offsetLeft,e.top+=t.offsetTop,t=t.offsetParent;return e},Client:function(t){this.handlers={},this.id=ZeroClipboard_TableTools.nextId++,this.movieId="ZeroClipboard_TableToolsMovie_"+this.id,ZeroClipboard_TableTools.register(this.id,this),t&&this.glue(t)}};ZeroClipboard_TableTools.Client.prototype={id:0,ready:!1,movie:null,clipText:"",fileName:"",action:"copy",handCursorEnabled:!0,cssEffects:!0,handlers:null,sized:!1,glue:function(t,e){this.domElement=ZeroClipboard_TableTools.$(t);var s=99;this.domElement.style.zIndex&&(s=parseInt(this.domElement.style.zIndex)+1);var n=ZeroClipboard_TableTools.getDOMObjectPosition(this.domElement);this.div=document.createElement("div");var o=this.div.style;o.position="absolute",o.left="0px",o.top="0px",o.width=n.width+"px",o.height=n.height+"px",o.zIndex=s,"undefined"!=typeof e&&""!=e&&(this.div.title=e),0!=n.width&&0!=n.height&&(this.sized=!0),this.domElement&&(this.domElement.appendChild(this.div),this.div.innerHTML=this.getHTML(n.width,n.height))},positionElement:function(){var t=ZeroClipboard_TableTools.getDOMObjectPosition(this.domElement),e=this.div.style;e.position="absolute",e.width=t.width+"px",e.height=t.height+"px",0!=t.width&&0!=t.height&&(this.sized=!0,e=this.div.childNodes[0],e.width=t.width,e.height=t.height)},getHTML:function(t,e){var s="",n="id="+this.id+"&width="+t+"&height="+e;if(navigator.userAgent.match(/MSIE/))var o=location.href.match(/^https/i)?"https://":"http://",s=s+('');else s+='';return s},hide:function(){this.div&&(this.div.style.left="-2000px")},show:function(){this.reposition()},destroy:function(){if(this.domElement&&this.div){this.hide(),this.div.innerHTML="";var t=document.getElementsByTagName("body")[0];try{t.removeChild(this.div)}catch(e){}this.div=this.domElement=null}},reposition:function(t){if(t&&((this.domElement=ZeroClipboard_TableTools.$(t))||this.hide()),this.domElement&&this.div){var t=ZeroClipboard_TableTools.getDOMObjectPosition(this.domElement),e=this.div.style;e.left=""+t.left+"px",e.top=""+t.top+"px"}},clearText:function(){this.clipText="",this.ready&&this.movie.clearText()},appendText:function(t){this.clipText+=t,this.ready&&this.movie.appendText(t)},setText:function(t){this.clipText=t,this.ready&&this.movie.setText(t)},setCharSet:function(t){this.charSet=t,this.ready&&this.movie.setCharSet(t)},setBomInc:function(t){this.incBom=t,this.ready&&this.movie.setBomInc(t)},setFileName:function(t){this.fileName=t,this.ready&&this.movie.setFileName(t)},setAction:function(t){this.action=t,this.ready&&this.movie.setAction(t)},addEventListener:function(t,e){t=t.toString().toLowerCase().replace(/^on/,""),this.handlers[t]||(this.handlers[t]=[]),this.handlers[t].push(e)},setHandCursor:function(t){this.handCursorEnabled=t,this.ready&&this.movie.setHandCursor(t)},setCSSEffects:function(t){this.cssEffects=!!t},receiveEvent:function(t,e){switch(t=t.toString().toLowerCase().replace(/^on/,"")){case"load":if(this.movie=document.getElementById(this.movieId),!this.movie){var s=this;return void setTimeout(function(){s.receiveEvent("load",null)},1)}if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/))return s=this,setTimeout(function(){s.receiveEvent("load",null)},100),void(this.ready=!0);this.ready=!0,this.movie.clearText(),this.movie.appendText(this.clipText),this.movie.setFileName(this.fileName),this.movie.setAction(this.action),this.movie.setCharSet(this.charSet),this.movie.setBomInc(this.incBom),this.movie.setHandCursor(this.handCursorEnabled);break;case"mouseover":this.domElement&&this.cssEffects&&this.recoverActive&&this.domElement.addClass("active");break;case"mouseout":this.domElement&&this.cssEffects&&(this.recoverActive=!1,this.domElement.hasClass("active")&&(this.domElement.removeClass("active"),this.recoverActive=!0));break;case"mousedown":this.domElement&&this.cssEffects&&this.domElement.addClass("active");break;case"mouseup":this.domElement&&this.cssEffects&&(this.domElement.removeClass("active"),this.recoverActive=!1)}if(this.handlers[t])for(var n=0,o=this.handlers[t].length;o>n;n++){var i=this.handlers[t][n];"function"==typeof i?i(this,e):"object"==typeof i&&2==i.length?i[0][i[1]](this,e):"string"==typeof i&&window[i](this,e)}}};var TableTools;!function(t,e,s){TableTools=function(e,s){return!this instanceof TableTools&&alert("Warning: TableTools must be initialised with the keyword 'new'"),this.s={that:this,dt:e.fnSettings(),print:{saveStart:-1,saveLength:-1,saveScroll:-1,funcEnd:function(){}},buttonCounter:0,select:{type:"",selected:[],preRowSelect:null,postSelected:null,postDeselected:null,all:!1,selectedClass:""},custom:{},swfPath:"",buttonSet:[],master:!1,tags:{}},this.dom={container:null,table:null,print:{hidden:[],message:null},collection:{collection:null,background:null}},this.classes=t.extend(!0,{},TableTools.classes),this.s.dt.bJUI&&t.extend(!0,this.classes,TableTools.classes_themeroller),this.fnSettings=function(){return this.s},"undefined"==typeof s&&(s={}),this._fnConstruct(s),this},TableTools.prototype={fnGetSelected:function(t){var e,s=[],n=this.s.dt.aoData,o=this.s.dt.aiDisplay;if(t)for(t=0,e=o.length;e>t;t++)n[o[t]]._DTTT_selected&&s.push(n[o[t]].nTr);else for(t=0,e=n.length;e>t;t++)n[t]._DTTT_selected&&s.push(n[t].nTr);return s},fnGetSelectedData:function(){var t,e,s=[],n=this.s.dt.aoData;for(t=0,e=n.length;e>t;t++)n[t]._DTTT_selected&&s.push(this.s.dt.oInstance.fnGetData(t));return s},fnIsSelected:function(t){return t=this.s.dt.oInstance.fnGetPosition(t),!0===this.s.dt.aoData[t]._DTTT_selected?!0:!1},fnSelectAll:function(t){var e=this._fnGetMasterSettings();this._fnRowSelect(!0===t?e.dt.aiDisplay:e.dt.aoData)},fnSelectNone:function(t){this._fnGetMasterSettings(),this._fnRowDeselect(this.fnGetSelected(t))},fnSelect:function(t){"single"==this.s.select.type?(this.fnSelectNone(),this._fnRowSelect(t)):"multi"==this.s.select.type&&this._fnRowSelect(t)},fnDeselect:function(t){this._fnRowDeselect(t)},fnGetTitle:function(t){var e="";return"undefined"!=typeof t.sTitle&&""!==t.sTitle?e=t.sTitle:(t=s.getElementsByTagName("title"),0"¡".toString().length?e.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g,""):e.replace(/[^a-zA-Z0-9_\.,\-_ !\(\)]/g,"")},fnCalcColRatios:function(t){var e,s,n=this.s.dt.aoColumns,t=this._fnColumnTargets(t.mColumns),o=[],i=0,l=0;for(e=0,s=t.length;s>e;e++)t[e]&&(i=n[e].nTh.offsetWidth,l+=i,o.push(i));for(e=0,s=o.length;s>e;e++)o[e]/=l;return o.join(" ")},fnGetTableData:function(t){return this.s.dt?this._fnGetDataTablesData(t):void 0},fnSetText:function(t,e){this._fnFlashSetText(t,e)},fnResizeButtons:function(){for(var t in ZeroClipboard_TableTools.clients)if(t){var e=ZeroClipboard_TableTools.clients[t];"undefined"!=typeof e.domElement&&e.domElement.parentNode&&e.positionElement()}},fnResizeRequired:function(){for(var t in ZeroClipboard_TableTools.clients)if(t){var e=ZeroClipboard_TableTools.clients[t];if("undefined"!=typeof e.domElement&&e.domElement.parentNode==this.dom.container&&!1===e.sized)return!0}return!1},fnPrint:function(t,e){void 0===e&&(e={}),void 0===t||t?this._fnPrintStart(e):this._fnPrintEnd()},fnInfo:function(e,n){var o=s.createElement("div");o.className=this.classes.print.info,o.innerHTML=e,s.body.appendChild(o),setTimeout(function(){t(o).fadeOut("normal",function(){s.body.removeChild(o)})},n)},_fnConstruct:function(e){var n=this;this._fnCustomiseSettings(e),this.dom.container=s.createElement(this.s.tags.container),this.dom.container.className=this.classes.container,"none"!=this.s.select.type&&this._fnRowSelectConfig(),this._fnButtonDefinations(this.s.buttonSet,this.dom.container),this.s.dt.aoDestroyCallback.push({sName:"TableTools",fn:function(){t(n.s.dt.nTBody).off("click.DTTT_Select","tr"),t(n.dom.container).empty()}})},_fnCustomiseSettings:function(e){"undefined"==typeof this.s.dt._TableToolsInit&&(this.s.master=!0,this.s.dt._TableToolsInit=!0),this.dom.table=this.s.dt.nTable,this.s.custom=t.extend({},TableTools.DEFAULTS,e),this.s.swfPath=this.s.custom.sSwfPath,"undefined"!=typeof ZeroClipboard_TableTools&&(ZeroClipboard_TableTools.moviePath=this.s.swfPath),this.s.select.type=this.s.custom.sRowSelect,this.s.select.preRowSelect=this.s.custom.fnPreRowSelect,this.s.select.postSelected=this.s.custom.fnRowSelected,this.s.select.postDeselected=this.s.custom.fnRowDeselected,this.s.custom.sSelectedClass&&(this.classes.select.row=this.s.custom.sSelectedClass),this.s.tags=this.s.custom.oTags,this.s.buttonSet=this.s.custom.aButtons},_fnButtonDefinations:function(e,s){for(var n,o=0,i=e.length;i>o;o++){if("string"==typeof e[o]){if("undefined"==typeof TableTools.BUTTONS[e[o]]){alert("TableTools: Warning - unknown button type: "+e[o]);continue}n=t.extend({},TableTools.BUTTONS[e[o]],!0)}else{if("undefined"==typeof TableTools.BUTTONS[e[o].sExtends]){alert("TableTools: Warning - unknown button type: "+e[o].sExtends);continue}n=t.extend({},TableTools.BUTTONS[e[o].sExtends],!0),n=t.extend(n,e[o],!0)}s.appendChild(this._fnCreateButton(n,t(s).hasClass(this.classes.collection.container)))}},_fnCreateButton:function(t,e){var s=this._fnButtonBase(t,e);return t.sAction.match(/flash/)?this._fnFlashConfig(s,t):"text"==t.sAction?this._fnTextConfig(s,t):"div"==t.sAction?this._fnTextConfig(s,t):"collection"==t.sAction&&(this._fnTextConfig(s,t),this._fnCollectionConfig(s,t)),s},_fnButtonBase:function(t,e){var n,o,i;e?(n="default"!==t.sTag?t.sTag:this.s.tags.collection.button,o="default"!==t.sLinerTag?t.sLiner:this.s.tags.collection.liner,i=this.classes.collection.buttons.normal):(n="default"!==t.sTag?t.sTag:this.s.tags.button,o="default"!==t.sLinerTag?t.sLiner:this.s.tags.liner,i=this.classes.buttons.normal),n=s.createElement(n),o=s.createElement(o);var l=this._fnGetMasterSettings();return n.className=i+" "+t.sButtonClass,n.setAttribute("id","ToolTables_"+this.s.dt.sInstance+"_"+l.buttonCounter),n.appendChild(o),o.innerHTML=t.sButtonText,l.buttonCounter++,n},_fnGetMasterSettings:function(){if(this.s.master)return this.s;for(var t=TableTools._aInstances,e=0,s=t.length;s>e;e++)if(this.dom.table==t[e].s.dt.nTable)return t[e].s},_fnCollectionConfig:function(t,e){var n=s.createElement(this.s.tags.collection.container);n.style.display="none",n.className=this.classes.collection.container,e._collection=n,s.body.appendChild(n),this._fnButtonDefinations(e.aButtons,n)},_fnCollectionShow:function(n,o){var i=this,l=t(n).offset(),a=o._collection,r=l.left,l=l.top+t(n).outerHeight(),c=t(e).height(),d=t(s).height(),h=t(e).width(),u=t(s).width();a.style.position="absolute",a.style.left=r+"px",a.style.top=l+"px",a.style.display="block",t(a).css("opacity",0);var f=s.createElement("div");f.style.position="absolute",f.style.left="0px",f.style.top="0px",f.style.height=(c>d?c:d)+"px",f.style.width=(h>u?h:u)+"px",f.className=this.classes.collection.background,t(f).css("opacity",0),s.body.appendChild(f),s.body.appendChild(a),c=t(a).outerWidth(),h=t(a).outerHeight(),r+c>u&&(a.style.left=u-c+"px"),l+h>d&&(a.style.top=l-h-t(n).outerHeight()+"px"),this.dom.collection.collection=a,this.dom.collection.background=f,setTimeout(function(){t(a).animate({opacity:1},500),t(f).animate({opacity:.25},500)},10),this.fnResizeButtons(),t(f).click(function(){i._fnCollectionHide.call(i,null,null)})},_fnCollectionHide:function(e,s){!(null!==s&&"collection"==s.sExtends)&&null!==this.dom.collection.collection&&(t(this.dom.collection.collection).animate({opacity:0},500,function(){this.style.display="none"}),t(this.dom.collection.background).animate({opacity:0},500,function(){this.parentNode.removeChild(this)}),this.dom.collection.collection=null,this.dom.collection.background=null)},_fnRowSelectConfig:function(){if(this.s.master){var e=this,s=this.s.dt;t(s.nTable).addClass(this.classes.select.table),t(s.nTBody).on("click.DTTT_Select","tr",function(t){this.parentNode==s.nTBody&&null!==s.oInstance.fnGetData(this)&&(e.fnIsSelected(this)?e._fnRowDeselect(this,t):"single"==e.s.select.type?(e.fnSelectNone(),e._fnRowSelect(this,t)):"multi"==e.s.select.type&&e._fnRowSelect(this,t))}),s.oApi._fnCallbackReg(s,"aoRowCreatedCallback",function(n,o,i){s.aoData[i]._DTTT_selected&&t(n).addClass(e.classes.select.row)},"TableTools-SelectAll")}},_fnRowSelect:function(e,s){var n,o,i=this._fnSelectData(e),l=[];for(n=0,o=i.length;o>n;n++)i[n].nTr&&l.push(i[n].nTr);if(null===this.s.select.preRowSelect||this.s.select.preRowSelect.call(this,s,l,!0)){for(n=0,o=i.length;o>n;n++)i[n]._DTTT_selected=!0,i[n].nTr&&t(i[n].nTr).addClass(this.classes.select.row);null!==this.s.select.postSelected&&this.s.select.postSelected.call(this,l),TableTools._fnEventDispatch(this,"select",l,!0)}},_fnRowDeselect:function(e,s){var n,o,i=this._fnSelectData(e),l=[];for(n=0,o=i.length;o>n;n++)i[n].nTr&&l.push(i[n].nTr);if(null===this.s.select.preRowSelect||this.s.select.preRowSelect.call(this,s,l,!1)){for(n=0,o=i.length;o>n;n++)i[n]._DTTT_selected=!1,i[n].nTr&&t(i[n].nTr).removeClass(this.classes.select.row);null!==this.s.select.postDeselected&&this.s.select.postDeselected.call(this,l),TableTools._fnEventDispatch(this,"select",l,!1)}},_fnSelectData:function(t){var e,s,n,o=[];if(t.nodeName)e=this.s.dt.oInstance.fnGetPosition(t),o.push(this.s.dt.aoData[e]);else if("undefined"!=typeof t.length)for(s=0,n=t.length;n>s;s++)t[s].nodeName?(e=this.s.dt.oInstance.fnGetPosition(t[s]),o.push(this.s.dt.aoData[e])):o.push("number"==typeof t[s]?this.s.dt.aoData[t[s]]:t[s]);else o.push(t);return o},_fnTextConfig:function(e,s){var n=this;null!==s.fnInit&&s.fnInit.call(this,e,s),""!==s.sToolTip&&(e.title=s.sToolTip),t(e).hover(function(){null!==s.fnMouseover&&s.fnMouseover.call(this,e,s,null)},function(){null!==s.fnMouseout&&s.fnMouseout.call(this,e,s,null)}),null!==s.fnSelect&&TableTools._fnEventListen(this,"select",function(t){s.fnSelect.call(n,e,s,t)}),t(e).click(function(t){null!==s.fnClick&&s.fnClick.call(n,e,s,null,t),null!==s.fnComplete&&s.fnComplete.call(n,e,s,null,null),n._fnCollectionHide(e,s)})},_fnFlashConfig:function(t,e){var s=this,n=new ZeroClipboard_TableTools.Client;null!==e.fnInit&&e.fnInit.call(this,t,e),n.setHandCursor(!0),"flash_save"==e.sAction?(n.setAction("save"),n.setCharSet("utf16le"==e.sCharSet?"UTF16LE":"UTF8"),n.setBomInc(e.bBomInc),n.setFileName(e.sFileName.replace("*",this.fnGetTitle(e)))):"flash_pdf"==e.sAction?(n.setAction("pdf"),n.setFileName(e.sFileName.replace("*",this.fnGetTitle(e)))):n.setAction("copy"),n.addEventListener("mouseOver",function(){null!==e.fnMouseover&&e.fnMouseover.call(s,t,e,n)}),n.addEventListener("mouseOut",function(){null!==e.fnMouseout&&e.fnMouseout.call(s,t,e,n)}),n.addEventListener("mouseDown",function(){null!==e.fnClick&&e.fnClick.call(s,t,e,n)}),n.addEventListener("complete",function(o,i){null!==e.fnComplete&&e.fnComplete.call(s,t,e,n,i),s._fnCollectionHide(t,e)}),this._fnFlashGlue(n,t,e.sToolTip)},_fnFlashGlue:function(t,e,n){var o=this,i=e.getAttribute("id");s.getElementById(i)?t.glue(e,n):setTimeout(function(){o._fnFlashGlue(t,e,n)},100)},_fnFlashSetText:function(t,e){var s=this._fnChunkData(e,8192);t.clearText();for(var n=0,o=s.length;o>n;n++)t.appendText(s[n])},_fnColumnTargets:function(t){var e=[],s=this.s.dt;if("object"==typeof t){for(i=0,iLen=s.aoColumns.length;iLen>i;i++)e.push(!1);for(i=0,iLen=t.length;iLen>i;i++)e[t[i]]=!0}else if("visible"==t)for(i=0,iLen=s.aoColumns.length;iLen>i;i++)e.push(s.aoColumns[i].bVisible?!0:!1);else if("hidden"==t)for(i=0,iLen=s.aoColumns.length;iLen>i;i++)e.push(s.aoColumns[i].bVisible?!1:!0);else if("sortable"==t)for(i=0,iLen=s.aoColumns.length;iLen>i;i++)e.push(s.aoColumns[i].bSortable?!0:!1);else for(i=0,iLen=s.aoColumns.length;iLen>i;i++)e.push(!0);return e},_fnNewline:function(t){return"auto"==t.sNewLine?navigator.userAgent.match(/Windows/)?"\r\n":"\n":t.sNewLine},_fnGetDataTablesData:function(e){var s,n,o,i,l,a,r=[],c="",d=this.s.dt,h=RegExp(e.sFieldBoundary,"g"),u=this._fnColumnTargets(e.mColumns);if(o="undefined"!=typeof e.bSelectedOnly?e.bSelectedOnly:!1,e.bHeader){for(l=[],s=0,n=d.aoColumns.length;n>s;s++)u[s]&&(c=d.aoColumns[s].sTitle.replace(/\n/g," ").replace(/<.*?>/g,"").replace(/^\s+|\s+$/g,""),c=this._fnHtmlDecode(c),l.push(this._fnBoundData(c,e.sFieldBoundary,h)));r.push(l.join(e.sFieldSeperator))}var f=d.aiDisplay;if(i=this.fnGetSelected(),"none"!==this.s.select.type&&o&&0!==i.length)for(f=[],s=0,n=i.length;n>s;s++)f.push(d.oInstance.fnGetPosition(i[s]));for(o=0,i=f.length;i>o;o++){for(a=d.aoData[f[o]].nTr,l=[],s=0,n=d.aoColumns.length;n>s;s++)u[s]&&(c=d.oApi._fnGetCellData(d,f[o],s,"display"),e.fnCellRender?c=e.fnCellRender(c,s,a,f[o])+"":"string"==typeof c?(c=c.replace(/\n/g," "),c=c.replace(/]+)).*?>/gi,"$1$2$3"),c=c.replace(/<.*?>/g,"")):c+="",c=c.replace(/^\s+/,"").replace(/\s+$/,""),c=this._fnHtmlDecode(c),l.push(this._fnBoundData(c,e.sFieldBoundary,h)));r.push(l.join(e.sFieldSeperator)),e.bOpenRows&&(s=t.grep(d.aoOpenRows,function(t){return t.nParent===a}),1===s.length&&(c=this._fnBoundData(t("td",s[0].nTr).html(),e.sFieldBoundary,h),r.push(c)))}if(e.bFooter&&null!==d.nTFoot){for(l=[],s=0,n=d.aoColumns.length;n>s;s++)u[s]&&null!==d.aoColumns[s].nTf&&(c=d.aoColumns[s].nTf.innerHTML.replace(/\n/g," ").replace(/<.*?>/g,""),c=this._fnHtmlDecode(c),l.push(this._fnBoundData(c,e.sFieldBoundary,h)));r.push(l.join(e.sFieldSeperator))}return _sLastData=r.join(this._fnNewline(e))},_fnBoundData:function(t,e,s){return""===e?t:e+t.replace(s,e+e)+e},_fnChunkData:function(t,e){for(var s=[],n=t.length,o=0;n>o;o+=e)s.push(n>o+e?t.substring(o,o+e):t.substring(o,n));return s},_fnHtmlDecode:function(t){if(-1===t.indexOf("&"))return t;var e=s.createElement("div");return t.replace(/&([^\s]*);/g,function(t,s){return"#"===t.substr(1,1)?String.fromCharCode(Number(s.substr(1))):(e.innerHTML=t,e.childNodes[0].nodeValue)})},_fnPrintStart:function(n){var o=this,i=this.s.dt;this._fnPrintHideNodes(i.nTable),this.s.print.saveStart=i._iDisplayStart,this.s.print.saveLength=i._iDisplayLength,n.bShowAll&&(i._iDisplayStart=0,i._iDisplayLength=-1,i.oApi._fnCalculateEnd(i),i.oApi._fnDraw(i)),(""!==i.oScroll.sX||""!==i.oScroll.sY)&&(this._fnPrintScrollStart(i),t(this.s.dt.nTable).bind("draw.DTTT_Print",function(){o._fnPrintScrollStart(i)}));var l,a=i.aanFeatures;for(l in a)if("i"!=l&&"t"!=l&&1==l.length)for(var r=0,c=a[l].length;c>r;r++)this.dom.print.hidden.push({node:a[l][r],display:"block"}),a[l][r].style.display="none";t(s.body).addClass(this.classes.print.body),""!==n.sInfo&&this.fnInfo(n.sInfo,3e3),n.sMessage&&(this.dom.print.message=s.createElement("div"),this.dom.print.message.className=this.classes.print.message,this.dom.print.message.innerHTML=n.sMessage,s.body.insertBefore(this.dom.print.message,s.body.childNodes[0])),this.s.print.saveScroll=t(e).scrollTop(),e.scrollTo(0,0),t(s).bind("keydown.DTTT",function(t){27==t.keyCode&&(t.preventDefault(),o._fnPrintEnd.call(o,t))})},_fnPrintEnd:function(){var n=this.s.dt,o=this.s.print,i=this.dom.print;this._fnPrintShowNodes(),(""!==n.oScroll.sX||""!==n.oScroll.sY)&&(t(this.s.dt.nTable).unbind("draw.DTTT_Print"),this._fnPrintScrollEnd()),e.scrollTo(0,o.saveScroll),null!==i.message&&(s.body.removeChild(i.message),i.message=null),t(s.body).removeClass("DTTT_Print"),n._iDisplayStart=o.saveStart,n._iDisplayLength=o.saveLength,n.oApi._fnCalculateEnd(n),n.oApi._fnDraw(n),t(s).unbind("keydown.DTTT")},_fnPrintScrollStart:function(){var e=this.s.dt;e.nScrollHead.getElementsByTagName("div")[0].getElementsByTagName("table");var s=e.nTable.parentNode,n=e.nTable.getElementsByTagName("thead");0e;e++)t[e].node.style.display=t[e].display;t.splice(0,t.length)},_fnPrintHideNodes:function(e){for(var s=this.dom.print.hidden,n=e.parentNode,o=n.childNodes,i=0,l=o.length;l>i;i++)if(o[i]!=e&&1==o[i].nodeType){var a=t(o[i]).css("display");"none"!=a&&(s.push({node:o[i],display:a}),o[i].style.display="none")}"BODY"!=n.nodeName&&this._fnPrintHideNodes(n)}},TableTools._aInstances=[],TableTools._aListeners=[],TableTools.fnGetMasters=function(){for(var t=[],e=0,s=TableTools._aInstances.length;s>e;e++)TableTools._aInstances[e].s.master&&t.push(TableTools._aInstances[e]);return t},TableTools.fnGetInstance=function(t){"object"!=typeof t&&(t=s.getElementById(t));for(var e=0,n=TableTools._aInstances.length;n>e;e++)if(TableTools._aInstances[e].s.master&&TableTools._aInstances[e].dom.table==t)return TableTools._aInstances[e];return null},TableTools._fnEventListen=function(t,e,s){TableTools._aListeners.push({that:t,type:e,fn:s})},TableTools._fnEventDispatch=function(t,e,s,n){for(var o=TableTools._aListeners,i=0,l=o.length;l>i;i++)t.dom.table==o[i].that.dom.table&&o[i].type==e&&o[i].fn(s,n)},TableTools.buttonBase={sAction:"text",sTag:"default",sLinerTag:"default",sButtonClass:"DTTT_button_text",sButtonText:"Button text",sTitle:"",sToolTip:"Exporter",sCharSet:"utf8",bBomInc:!1,sFileName:"*.csv",sFieldBoundary:"",sFieldSeperator:" ",sNewLine:"auto",mColumns:"all",bHeader:!0,bFooter:!0,bOpenRows:!1,bSelectedOnly:!1,fnMouseover:null,fnMouseout:null,fnClick:null,fnSelect:null,fnComplete:null,fnInit:null,fnCellRender:null},TableTools.BUTTONS={csv:t.extend({},TableTools.buttonBase,{sAction:"flash_save",sButtonClass:"DTTT_button_csv",sButtonText:"CSV",sFieldBoundary:'"',sFieldSeperator:",",fnClick:function(t,e,s){this.fnSetText(s,this.fnGetTableData(e))}}),xls:t.extend({},TableTools.buttonBase,{sAction:"flash_save",sCharSet:"utf16le",bBomInc:!0,sButtonClass:"DTTT_button_xls",sButtonText:"Excel",fnClick:function(t,e,s){this.fnSetText(s,this.fnGetTableData(e))}}),copy:t.extend({},TableTools.buttonBase,{sAction:"flash_copy",sButtonClass:"DTTT_button_copy",sButtonText:"Copier",fnClick:function(t,e,s){this.fnSetText(s,this.fnGetTableData(e))},fnComplete:function(t,e,s,n){t=n.split("\n").length,t=null===this.s.dt.nTFoot?t-1:t-2,this.fnInfo("
    Tableau copié

    Copie de "+t+" row"+(1==t?"":"s")+" dans le presse-papiers.

    ",1500)}}),pdf:t.extend({},TableTools.buttonBase,{sAction:"flash_pdf",sNewLine:"\n",sFileName:"*.pdf",sButtonClass:"DTTT_button_pdf",sButtonText:"PDF",sPdfOrientation:"portrait",sPdfSize:"A4",sPdfMessage:"",fnClick:function(t,e,s){this.fnSetText(s,"title:"+this.fnGetTitle(e)+"\nmessage:"+e.sPdfMessage+"\ncolWidth:"+this.fnCalcColRatios(e)+"\norientation:"+e.sPdfOrientation+"\nsize:"+e.sPdfSize+"\n--/TableToolsOpts--\n"+this.fnGetTableData(e))}}),print:t.extend({},TableTools.buttonBase,{sInfo:"
    Aperçu avant impression

    S'il vous plaît utiliser la fonction d'impression de votre navigateur pour imprimer ce tableau. Appuyez sur Echap lorsque vous avez terminé.",sMessage:null,bShowAll:!0,sToolTip:"Vue d'impression",sButtonClass:"DTTT_button_print",sButtonText:"Imprimer",fnClick:function(t,e){this.fnPrint(!0,e)}}),text:t.extend({},TableTools.buttonBase),select:t.extend({},TableTools.buttonBase,{sButtonText:"Select button",fnSelect:function(e){0!==this.fnGetSelected().length?t(e).removeClass(this.classes.buttons.disabled):t(e).addClass(this.classes.buttons.disabled)},fnInit:function(e){t(e).addClass(this.classes.buttons.disabled)}}),select_single:t.extend({},TableTools.buttonBase,{sButtonText:"Select button",fnSelect:function(e){1==this.fnGetSelected().length?t(e).removeClass(this.classes.buttons.disabled):t(e).addClass(this.classes.buttons.disabled)},fnInit:function(e){t(e).addClass(this.classes.buttons.disabled)}}),select_all:t.extend({},TableTools.buttonBase,{sButtonText:"Tous selectionnez",fnClick:function(){this.fnSelectAll()},fnSelect:function(e){this.fnGetSelected().length==this.s.dt.fnRecordsDisplay()?t(e).addClass(this.classes.buttons.disabled):t(e).removeClass(this.classes.buttons.disabled)}}),select_none:t.extend({},TableTools.buttonBase,{sButtonText:"Deselect all",fnClick:function(){this.fnSelectNone()},fnSelect:function(e){0!==this.fnGetSelected().length?t(e).removeClass(this.classes.buttons.disabled):t(e).addClass(this.classes.buttons.disabled)},fnInit:function(e){t(e).addClass(this.classes.buttons.disabled)}}),ajax:t.extend({},TableTools.buttonBase,{sAjaxUrl:"/xhr.php",sButtonText:"Ajax button",fnClick:function(e,s){var n=this.fnGetTableData(s);t.ajax({url:s.sAjaxUrl,async:!0,data:[{name:"tableData",value:n}],success:s.fnAjaxComplete,dataType:"json",type:"POST",cache:!1,error:function(){alert("Error detected when sending table data to server")}})},fnAjaxComplete:function(){alert("Ajax complete")}}),div:t.extend({},TableTools.buttonBase,{sAction:"div",sTag:"div",sButtonClass:"DTTT_nonbutton",sButtonText:"Text button"}),collection:t.extend({},TableTools.buttonBase,{sAction:"collection",sButtonClass:"DTTT_button_collection",sButtonText:"Collection",fnClick:function(t,e){this._fnCollectionShow(t,e)}})},TableTools.classes={container:"DTTT btn-group",buttons:{normal:"btn",disabled:"DTTT_disabled"},collection:{container:"DTTT_collection",background:"DTTT_collection_background",buttons:{normal:"btn",disabled:"DTTT_disabled"}},select:{table:"DTTT_selectable",row:"DTTT_selected"},print:{body:"DTTT_Print",info:"DTTT_print_info",message:"DTTT_PrintMessage"}},TableTools.classes_themeroller={container:"DTTT btn-group ui-buttonset ui-buttonset-multi",buttons:{normal:"btn ui-button ui-state-default"},collection:{container:"DTTT_collection ui-buttonset ui-buttonset-multi"}},TableTools.DEFAULTS={sSwfPath:"./swf/copy_csv_xls_pdf.swf",sRowSelect:"none",sSelectedClass:null,fnPreRowSelect:null,fnRowSelected:null,fnRowDeselected:null,aButtons:["copy","csv","xls","pdf","print"],oTags:{container:"div",button:"a",liner:"span",collection:{container:"div",button:"a",liner:"span"}}},TableTools.prototype.CLASS="TableTools",TableTools.VERSION="2.1.5",TableTools.prototype.VERSION=TableTools.VERSION,"function"==typeof t.fn.dataTable&&"function"==typeof t.fn.dataTableExt.fnVersionCheck&&t.fn.dataTableExt.fnVersionCheck("1.9.0")?t.fn.dataTableExt.aoFeatures.push({fnInit:function(t){return t=new TableTools(t.oInstance,"undefined"!=typeof t.oInit.oTableTools?t.oInit.oTableTools:{}),TableTools._aInstances.push(t),t.dom.container},cFeature:"T",sFeature:"TableTools"}):alert("Warning: TableTools 2 requires DataTables 1.9.0 or newer - www.datatables.net/download"),t.fn.DataTable.TableTools=TableTools}(jQuery,window,document),function(t){ColVis=function(t,e){return(!this.CLASS||"ColVis"!=this.CLASS)&&alert("Warning: ColVis must be initialised with the keyword 'new'"),"undefined"==typeof e&&(e={}),this.s={dt:null,oInit:e,fnStateChange:null,activate:"click",sAlign:"left",buttonText:"Colonnes ",hidden:!0,aiExclude:[],abOriginal:[],bShowAll:!0,sShowAll:"Tout afficher",bRestore:!1,sRestore:"Ré-initialiser",iOverlayFade:500,fnLabel:null,sSize:"auto",bCssPosition:!1},this.dom={wrapper:null,button:null,collection:null,background:null,catcher:null,buttons:[],restore:null},ColVis.aInstances.push(this),this.s.dt=t,this._fnConstruct(),this },ColVis.prototype={fnRebuild:function(){for(var t=this.dom.buttons.length-1;t>=0;t--)null!==this.dom.buttons[t]&&this.dom.collection.removeChild(this.dom.buttons[t]);this.dom.buttons.splice(0,this.dom.buttons.length),this.dom.restore&&this.dom.restore.parentNode(this.dom.restore),this._fnAddButtons(),this._fnDrawCallback()},_fnConstruct:function(){this._fnApplyCustomisation();var e,s,n=this;for(this.dom.wrapper=document.createElement("div"),this.dom.wrapper.className="ColVis TableTools",this.dom.button=this._fnDomBaseButton(this.s.buttonText),this.dom.button.className+=" ColVis_MasterButton",this.dom.wrapper.appendChild(this.dom.button),this.dom.catcher=this._fnDomCatcher(),this.dom.collection=this._fnDomCollection(),this.dom.background=this._fnDomBackground(),this._fnAddButtons(),e=0,s=this.s.dt.aoColumns.length;s>e;e++)this.s.abOriginal.push(this.s.dt.aoColumns[e].bVisible);this.s.dt.aoDrawCallback.push({fn:function(){n._fnDrawCallback.call(n)},sName:"ColVis"}),t(this.s.dt.oInstance).bind("column-reorder",function(t,o,i){for(e=0,s=n.s.aiExclude.length;s>e;e++)n.s.aiExclude[e]=i.aiInvertMapping[n.s.aiExclude[e]];t=n.s.abOriginal.splice(i.iFrom,1)[0],n.s.abOriginal.splice(i.iTo,0,t),n.fnRebuild()})},_fnApplyCustomisation:function(){var t=this.s.oInit;"undefined"!=typeof t.activate&&(this.s.activate=t.activate),"undefined"!=typeof t.buttonText&&(this.s.buttonText=t.buttonText),"undefined"!=typeof t.aiExclude&&(this.s.aiExclude=t.aiExclude),"undefined"!=typeof t.bRestore&&(this.s.bRestore=t.bRestore),"undefined"!=typeof t.sRestore&&(this.s.sRestore=t.sRestore),"undefined"!=typeof t.bShowAll&&(this.s.bShowAll=t.bShowAll),"undefined"!=typeof t.sShowAll&&(this.s.sShowAll=t.sShowAll),"undefined"!=typeof t.sAlign&&(this.s.sAlign=t.sAlign),"undefined"!=typeof t.fnStateChange&&(this.s.fnStateChange=t.fnStateChange),"undefined"!=typeof t.iOverlayFade&&(this.s.iOverlayFade=t.iOverlayFade),"undefined"!=typeof t.fnLabel&&(this.s.fnLabel=t.fnLabel),"undefined"!=typeof t.sSize&&(this.s.sSize=t.sSize),"undefined"!=typeof t.bCssPosition&&(this.s.bCssPosition=t.bCssPosition)},_fnDrawCallback:function(){for(var e=this.s.dt.aoColumns,s=0,n=e.length;n>s;s++)null!==this.dom.buttons[s]&&(e[s].bVisible?t("input",this.dom.buttons[s]).attr("checked","checked"):t("input",this.dom.buttons[s]).removeAttr("checked"))},_fnAddButtons:function(){for(var t,e=","+this.s.aiExclude.join(",")+",",s=0,n=this.s.dt.aoColumns.length;n>s;s++)-1==e.indexOf(","+s+",")?(t=this._fnDomColumnButton(s),this.dom.buttons.push(t),this.dom.collection.appendChild(t)):this.dom.buttons.push(null);this.s.bRestore&&(t=this._fnDomRestoreButton(),t.className+=" ColVis_Restore",this.dom.buttons.push(t),this.dom.collection.appendChild(t)),this.s.bShowAll&&(t=this._fnDomShowAllButton(),t.className+=" ColVis_ShowAll",this.dom.buttons.push(t),this.dom.collection.appendChild(t))},_fnDomRestoreButton:function(){var e=this,s=document.createElement("button"),n=document.createElement("span");return s.className=this.s.dt.bJUI?"ColVis_Button TableTools_Button ui-button ui-state-default":"ColVis_Button TableTools_Button",s.appendChild(n),t(n).html(''+this.s.sRestore+""),t(s).click(function(){for(var t=0,s=e.s.abOriginal.length;s>t;t++)e.s.dt.oInstance.fnSetColumnVis(t,e.s.abOriginal[t],!1);e._fnAdjustOpenRows(),e.s.dt.oInstance.fnAdjustColumnSizing(!1),e.s.dt.oInstance.fnDraw(!1)}),s},_fnDomShowAllButton:function(){var e=this,s=document.createElement("button"),n=document.createElement("span");return s.className=this.s.dt.bJUI?"ColVis_Button TableTools_Button ui-button ui-state-default":"ColVis_Button TableTools_Button",s.appendChild(n),t(n).html(''+this.s.sShowAll+""),t(s).click(function(){for(var t=0,s=e.s.abOriginal.length;s>t;t++)-1===e.s.aiExclude.indexOf(t)&&e.s.dt.oInstance.fnSetColumnVis(t,!0,!1);e._fnAdjustOpenRows(),e.s.dt.oInstance.fnAdjustColumnSizing(!1),e.s.dt.oInstance.fnDraw(!1)}),s},_fnDomColumnButton:function(e){var s=this,n=this.s.dt.aoColumns[e],o=document.createElement("button"),i=document.createElement("span"),l=this.s.dt;return o.className=l.bJUI?"ColVis_Button TableTools_Button ui-button ui-state-default":"ColVis_Button TableTools_Button",o.appendChild(i),n=null===this.s.fnLabel?n.sTitle:this.s.fnLabel(e,n.sTitle,n.nTh),t(i).html(''+n+""),t(o).click(function(n){var o=!t("input",this).is(":checked");"input"==n.target.nodeName.toLowerCase()&&(o=t("input",this).is(":checked")),n=t.fn.dataTableExt.iApiIndex,t.fn.dataTableExt.iApiIndex=s._fnDataTablesApiIndex.call(s),!l.oFeatures.bServerSide||""===l.oScroll.sX&&""===l.oScroll.sY?s.s.dt.oInstance.fnSetColumnVis(e,o):(s.s.dt.oInstance.fnSetColumnVis(e,o,!1),s.s.dt.oInstance.fnAdjustColumnSizing(!1),s.s.dt.oInstance.oApi._fnScrollDraw(s.s.dt),s._fnDrawCallback()),t.fn.dataTableExt.iApiIndex=n,null!==s.s.fnStateChange&&s.s.fnStateChange.call(s,e,o)}),o},_fnDataTablesApiIndex:function(){for(var t=0,e=this.s.dt.oInstance.length;e>t;t++)if(this.s.dt.oInstance[t]==this.s.dt.nTable)return t;return 0},_fnDomBaseButton:function(e){var s=this,n=document.createElement("button"),o=document.createElement("span"),i="mouseover"==this.s.activate?"mouseover":"click";return n.className=this.s.dt.bJUI?"ColVis_Button TableTools_Button ui-button ui-state-default":"ColVis_Button TableTools_Button",n.appendChild(o),o.innerHTML=e,t(n).bind(i,function(t){s._fnCollectionShow(),t.preventDefault()}),n},_fnDomCollection:function(){var e=document.createElement("div");return e.style.display="none",e.className=this.s.dt.bJUI?"ColVis_collection TableTools_collection ui-buttonset ui-buttonset-multi":"ColVis_collection TableTools_collection",this.s.bCssPosition||(e.style.position="absolute"),t(e).css("opacity",0),e},_fnDomCatcher:function(){var e=this,s=document.createElement("div");return s.className="ColVis_catcher TableTools_catcher",t(s).click(function(){e._fnCollectionHide.call(e,null,null)}),s},_fnDomBackground:function(){var e=this,s=document.createElement("div");return s.style.position="absolute",s.style.left="0px",s.style.top="0px",s.className="ColVis_collectionBackground TableTools_collectionBackground",t(s).css("opacity",0),t(s).click(function(){e._fnCollectionHide.call(e,null,null)}),"mouseover"==this.s.activate&&t(s).mouseover(function(){e.s.overcollection=!1,e._fnCollectionHide.call(e,null,null)}),s},_fnCollectionShow:function(){var e,s,n=this;e=t(this.dom.button).offset();var o=this.dom.collection,i=this.dom.background,l=parseInt(e.left,10),a=parseInt(e.top+t(this.dom.button).outerHeight(),10);this.s.bCssPosition||(o.style.top=a+"px",o.style.left=l+"px"),o.style.display="block",t(o).css("opacity",0),s=t(window).height();var r=t(document).height(),c=t(window).width(),a=t(document).width();if(i.style.height=(s>r?s:r)+"px",i.style.width=(a>c?c:a)+"px",s=this.dom.catcher.style,s.height=t(this.dom.button).outerHeight()+"px",s.width=t(this.dom.button).outerWidth()+"px",s.top=e.top+"px",s.left=l+"px",document.body.appendChild(i),document.body.appendChild(o),document.body.appendChild(this.dom.catcher),"auto"==this.s.sSize){for(r=[],this.dom.collection.style.width="auto",e=0,s=this.dom.buttons.length;s>e;e++)null!==this.dom.buttons[e]&&(this.dom.buttons[e].style.width="auto",r.push(t(this.dom.buttons[e]).outerWidth()));for(iMax=Math.max.apply(window,r),e=0,s=this.dom.buttons.length;s>e;e++)null!==this.dom.buttons[e]&&(this.dom.buttons[e].style.width=iMax+"px");this.dom.collection.style.width=iMax+"px"}this.s.bCssPosition||(o.style.left="left"==this.s.sAlign?l+"px":l-t(o).outerWidth()+t(this.dom.button).outerWidth()+"px",e=t(o).outerWidth(),t(o).outerHeight(),l+e>a&&(o.style.left=a-e+"px")),setTimeout(function(){t(o).animate({opacity:1},n.s.iOverlayFade),t(i).animate({opacity:.1},n.s.iOverlayFade,"linear",function(){jQuery.browser.msie&&"6.0"==jQuery.browser.version&&n._fnDrawCallback()})},10),this.s.hidden=!1},_fnCollectionHide:function(){var e=this;!this.s.hidden&&null!==this.dom.collection&&(this.s.hidden=!0,t(this.dom.collection).animate({opacity:0},e.s.iOverlayFade,function(){this.style.display="none"}),t(this.dom.background).animate({opacity:0},e.s.iOverlayFade,function(){document.body.removeChild(e.dom.background),document.body.removeChild(e.dom.catcher)}))},_fnAdjustOpenRows:function(){for(var t=this.s.dt.aoOpenRows,e=this.s.dt.oApi._fnVisbleColumns(this.s.dt),s=0,n=t.length;n>s;s++)t[s].nTr.getElementsByTagName("td")[0].colSpan=e}},ColVis.fnRebuild=function(t){var e=null;"undefined"!=typeof t&&(e=t.fnSettings().nTable);for(var s=0,n=ColVis.aInstances.length;n>s;s++)("undefined"==typeof t||e==ColVis.aInstances[s].s.dt.nTable)&&ColVis.aInstances[s].fnRebuild()},ColVis.aInstances=[],ColVis.prototype.CLASS="ColVis",ColVis.VERSION="1.0.8",ColVis.prototype.VERSION=ColVis.VERSION,"function"==typeof t.fn.dataTable&&"function"==typeof t.fn.dataTableExt.fnVersionCheck&&t.fn.dataTableExt.fnVersionCheck("1.7.0")?t.fn.dataTableExt.aoFeatures.push({fnInit:function(t){return new ColVis(t,"undefined"==typeof t.oInit.oColVis?{}:t.oInit.oColVis).dom.wrapper},cFeature:"C",sFeature:"ColVis"}):alert("Warning: ColVis requires DataTables 1.7 or greater - www.datatables.net/download")}(jQuery);