var TableTools;(function(window,document,undefined){var factory=function($,DataTable){"use strict";var ZeroClipboard_TableTools={version:"1.0.4-TableTools2",clients:{},moviePath:'',nextId:1,$:function(thingy){if(typeof(thingy)=='string'){thingy=document.getElementById(thingy);} if(!thingy.addClass){thingy.hide=function(){this.style.display='none';};thingy.show=function(){this.style.display='';};thingy.addClass=function(name){this.removeClass(name);this.className+=' '+ name;};thingy.removeClass=function(name){this.className=this.className.replace(new RegExp("\\s*"+ name+"\\s*")," ").replace(/^\s+/,'').replace(/\s+$/,'');};thingy.hasClass=function(name){return!!this.className.match(new RegExp("\\s*"+ name+"\\s*"));};} return thingy;},setMoviePath:function(path){this.moviePath=path;},dispatch:function(id,eventName,args){var client=this.clients[id];if(client){client.receiveEvent(eventName,args);}},register:function(id,client){this.clients[id]=client;},getDOMObjectPosition:function(obj){var info={left:0,top:0,width:obj.width?obj.width:obj.offsetWidth,height:obj.height?obj.height:obj.offsetHeight};if(obj.style.width!==""){info.width=obj.style.width.replace("px","");} if(obj.style.height!==""){info.height=obj.style.height.replace("px","");} while(obj){info.left+=obj.offsetLeft;info.top+=obj.offsetTop;obj=obj.offsetParent;} return info;},Client:function(elem){this.handlers={};this.id=ZeroClipboard_TableTools.nextId++;this.movieId='ZeroClipboard_TableToolsMovie_'+ this.id;ZeroClipboard_TableTools.register(this.id,this);if(elem){this.glue(elem);}}};ZeroClipboard_TableTools.Client.prototype={id:0,ready:false,movie:null,clipText:'',fileName:'',action:'copy',handCursorEnabled:true,cssEffects:true,handlers:null,sized:false,glue:function(elem,title){this.domElement=ZeroClipboard_TableTools.$(elem);var zIndex=99;if(this.domElement.style.zIndex){zIndex=parseInt(this.domElement.style.zIndex,10)+ 1;} var box=ZeroClipboard_TableTools.getDOMObjectPosition(this.domElement);this.div=document.createElement('div');var style=this.div.style;style.position='absolute';style.left='0px';style.top='0px';style.width=(box.width)+'px';style.height=box.height+'px';style.zIndex=zIndex;if(typeof title!="undefined"&&title!==""){this.div.title=title;} if(box.width!==0&&box.height!==0){this.sized=true;} if(this.domElement){this.domElement.appendChild(this.div);this.div.innerHTML=this.getHTML(box.width,box.height).replace(/&/g,'&');}},positionElement:function(){var box=ZeroClipboard_TableTools.getDOMObjectPosition(this.domElement);var style=this.div.style;style.position='absolute';style.width=box.width+'px';style.height=box.height+'px';if(box.width!==0&&box.height!==0){this.sized=true;}else{return;} var flash=this.div.childNodes[0];flash.width=box.width;flash.height=box.height;},getHTML:function(width,height){var html='';var flashvars='id='+ this.id+'&width='+ width+'&height='+ height;if(navigator.userAgent.match(/MSIE/)){var protocol=location.href.match(/^https/i)?'https://':'http://';html+='';} else{html+='';} return html;},hide:function(){if(this.div){this.div.style.left='-2000px';}},show:function(){this.reposition();},destroy:function(){if(this.domElement&&this.div){this.hide();this.div.innerHTML='';var body=document.getElementsByTagName('body')[0];try{body.removeChild(this.div);}catch(e){} this.domElement=null;this.div=null;}},reposition:function(elem){if(elem){this.domElement=ZeroClipboard_TableTools.$(elem);if(!this.domElement){this.hide();}} if(this.domElement&&this.div){var box=ZeroClipboard_TableTools.getDOMObjectPosition(this.domElement);var style=this.div.style;style.left=''+ box.left+'px';style.top=''+ box.top+'px';}},clearText:function(){this.clipText='';if(this.ready){this.movie.clearText();}},appendText:function(newText){this.clipText+=newText;if(this.ready){this.movie.appendText(newText);}},setText:function(newText){this.clipText=newText;if(this.ready){this.movie.setText(newText);}},setCharSet:function(charSet){this.charSet=charSet;if(this.ready){this.movie.setCharSet(charSet);}},setBomInc:function(bomInc){this.incBom=bomInc;if(this.ready){this.movie.setBomInc(bomInc);}},setFileName:function(newText){this.fileName=newText;if(this.ready){this.movie.setFileName(newText);}},setAction:function(newText){this.action=newText;if(this.ready){this.movie.setAction(newText);}},addEventListener:function(eventName,func){eventName=eventName.toString().toLowerCase().replace(/^on/,'');if(!this.handlers[eventName]){this.handlers[eventName]=[];} this.handlers[eventName].push(func);},setHandCursor:function(enabled){this.handCursorEnabled=enabled;if(this.ready){this.movie.setHandCursor(enabled);}},setCSSEffects:function(enabled){this.cssEffects=!!enabled;},receiveEvent:function(eventName,args){var self;eventName=eventName.toString().toLowerCase().replace(/^on/,'');switch(eventName){case'load':this.movie=document.getElementById(this.movieId);if(!this.movie){self=this;setTimeout(function(){self.receiveEvent('load',null);},1);return;} if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/)){self=this;setTimeout(function(){self.receiveEvent('load',null);},100);this.ready=true;return;} this.ready=true;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':if(this.domElement&&this.cssEffects){if(this.recoverActive){this.domElement.addClass('active');}} break;case'mouseout':if(this.domElement&&this.cssEffects){this.recoverActive=false;if(this.domElement.hasClass('active')){this.domElement.removeClass('active');this.recoverActive=true;}} break;case'mousedown':if(this.domElement&&this.cssEffects){this.domElement.addClass('active');} break;case'mouseup':if(this.domElement&&this.cssEffects){this.domElement.removeClass('active');this.recoverActive=false;} break;} if(this.handlers[eventName]){for(var idx=0,len=this.handlers[eventName].length;idx0) {sTitle=anTitle[0].innerHTML;}} if("\u00A1".toString().length<4){return sTitle.replace(/[^a-zA-Z0-9_\u00A1-\uFFFF\.,\-_ !\(\)]/g,"");}else{return sTitle.replace(/[^a-zA-Z0-9_\.,\-_ !\(\)]/g,"");}},"fnCalcColRatios":function(oConfig) {var aoCols=this.s.dt.aoColumns,aColumnsInc=this._fnColumnTargets(oConfig.mColumns),aColWidths=[],iWidth=0,iTotal=0,i,iLen;for(i=0,iLen=aColumnsInc.length;i').addClass(this.classes.print.info).html(message).appendTo('body');setTimeout(function(){info.fadeOut("normal",function(){info.remove();});},time);},"fnContainer":function(){return this.dom.container;},"_fnConstruct":function(oOpts) {var that=this;this._fnCustomiseSettings(oOpts);this.dom.container=document.createElement(this.s.tags.container);this.dom.container.className=this.classes.container;if(this.s.select.type!='none') {this._fnRowSelectConfig();} this._fnButtonDefinations(this.s.buttonSet,this.dom.container);this.s.dt.aoDestroyCallback.push({"sName":"TableTools","fn":function(){$(that.s.dt.nTBody).off('click.DTTT_Select','tr');$(that.dom.container).empty();var idx=$.inArray(that,TableTools._aInstances);if(idx!==-1){TableTools._aInstances.splice(idx,1);}}});},"_fnCustomiseSettings":function(oOpts) {if(typeof this.s.dt._TableToolsInit=='undefined') {this.s.master=true;this.s.dt._TableToolsInit=true;} this.dom.table=this.s.dt.nTable;this.s.custom=$.extend({},TableTools.DEFAULTS,oOpts);this.s.swfPath=this.s.custom.sSwfPath;if(typeof ZeroClipboard_TableTools!='undefined') {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;if(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(buttonSet,wrapper) {var buttonDef;for(var i=0,iLen=buttonSet.length;iiDocHeight)?iWinHeight:iDocHeight)+"px";nBackground.style.width=((iWinWidth>iDocWidth)?iWinWidth:iDocWidth)+"px";nBackground.className=this.classes.collection.background;$(nBackground).css('opacity',0);document.body.appendChild(nBackground);document.body.appendChild(nHidden);var iDivWidth=$(nHidden).outerWidth();var iDivHeight=$(nHidden).outerHeight();if(iDivX+ iDivWidth>iDocWidth) {nHidden.style.left=(iDocWidth-iDivWidth)+"px";} if(iDivY+ iDivHeight>iDocHeight) {nHidden.style.top=(iDivY-iDivHeight-$(nButton).outerHeight())+"px";} this.dom.collection.collection=nHidden;this.dom.collection.background=nBackground;setTimeout(function(){$(nHidden).animate({"opacity":1},500);$(nBackground).animate({"opacity":0.25},500);},10);this.fnResizeButtons();$(nBackground).click(function(){that._fnCollectionHide.call(that,null,null);});},"_fnCollectionHide":function(nButton,oConfig) {if(oConfig!==null&&oConfig.sExtends=='collection') {return;} if(this.dom.collection.collection!==null) {$(this.dom.collection.collection).animate({"opacity":0},500,function(e){this.style.display="none";});$(this.dom.collection.background).animate({"opacity":0},500,function(e){this.parentNode.removeChild(this);});this.dom.collection.collection=null;this.dom.collection.background=null;}},"_fnRowSelectConfig":function() {if(this.s.master) {var that=this,i,iLen,dt=this.s.dt,aoOpenRows=this.s.dt.aoOpenRows;$(dt.nTable).addClass(this.classes.select.table);if(this.s.select.type==='os'){$(dt.nTBody).on('mousedown.DTTT_Select','tr',function(e){if(e.shiftKey){$(dt.nTBody).css('-moz-user-select','none').one('selectstart.DTTT_Select','tr',function(){return false;});}});$(dt.nTBody).on('mouseup.DTTT_Select','tr',function(e){$(dt.nTBody).css('-moz-user-select','');});} $(dt.nTBody).on('click.DTTT_Select',this.s.custom.sRowSelector,function(e){var row=this.nodeName.toLowerCase()==='tr'?this:$(this).parents('tr')[0];var select=that.s.select;var pos=that.s.dt.oInstance.fnGetPosition(row);if(row.parentNode!=dt.nTBody){return;} if(dt.oInstance.fnGetData(row)===null){return;} if(select.type=='os'){if(e.ctrlKey||e.metaKey){if(that.fnIsSelected(row)){that._fnRowDeselect(row,e);} else{that._fnRowSelect(row,e);}} else if(e.shiftKey){var rowIdxs=that.s.dt.aiDisplay.slice();var idx1=$.inArray(select.lastRow,rowIdxs);var idx2=$.inArray(pos,rowIdxs);if(that.fnGetSelected().length===0||idx1===-1){rowIdxs.splice($.inArray(pos,rowIdxs)+1,rowIdxs.length);} else{if(idx1>idx2){var tmp=idx2;idx2=idx1;idx1=tmp;} rowIdxs.splice(idx2+1,rowIdxs.length);rowIdxs.splice(0,idx1);} if(!that.fnIsSelected(row)){that._fnRowSelect(rowIdxs,e);} else{rowIdxs.splice($.inArray(pos,rowIdxs),1);that._fnRowDeselect(rowIdxs,e);}} else{if(that.fnIsSelected(row)&&that.fnGetSelected().length===1){that._fnRowDeselect(row,e);} else{that.fnSelectNone();that._fnRowSelect(row,e);}}} else if(that.fnIsSelected(row)){that._fnRowDeselect(row,e);} else if(select.type=="single"){that.fnSelectNone();that._fnRowSelect(row,e);} else if(select.type=="multi"){that._fnRowSelect(row,e);} select.lastRow=pos;});dt.oApi._fnCallbackReg(dt,'aoRowCreatedCallback',function(tr,data,index){if(dt.aoData[index]._DTTT_selected){$(tr).addClass(that.classes.select.row);}},'TableTools-SelectAll');}},"_fnRowSelect":function(src,e) {var that=this,data=this._fnSelectData(src),firstTr=data.length===0?null:data[0].nTr,anSelected=[],i,len;for(i=0,len=data.length;i/g,"").replace(/^\s+|\s+$/g,"");sLoopData=this._fnHtmlDecode(sLoopData);aRow.push(this._fnBoundData(sLoopData,oConfig.sFieldBoundary,regex));}} aData.push(aRow.join(oConfig.sFieldSeperator));} var aSelected=this.fnGetSelected();bSelectedOnly=this.s.select.type!=="none"&&bSelectedOnly&&aSelected.length!==0;var api=$.fn.dataTable.Api;var aDataIndex=api?new api(dt).rows(oConfig.oSelectorOpts).indexes().flatten().toArray():dt.oInstance.$('tr',oConfig.oSelectorOpts).map(function(id,row){return bSelectedOnly&&$.inArray(row,aSelected)===-1?null:dt.oInstance.fnGetPosition(row);}).get();for(j=0,jLen=aDataIndex.length;j]+)).*?>/gi,'$1$2$3');sLoopData=sLoopData.replace(/<.*?>/g,"");} else {sLoopData=mTypeData+"";} sLoopData=sLoopData.replace(/^\s+/,'').replace(/\s+$/,'');sLoopData=this._fnHtmlDecode(sLoopData);aRow.push(this._fnBoundData(sLoopData,oConfig.sFieldBoundary,regex));}} aData.push(aRow.join(oConfig.sFieldSeperator));if(oConfig.bOpenRows) {arr=$.grep(dt.aoOpenRows,function(o){return o.nParent===tr;});if(arr.length===1) {sLoopData=this._fnBoundData($('td',arr[0].nTr).html(),oConfig.sFieldBoundary,regex);aData.push(sLoopData);}}} if(oConfig.bFooter&&dt.nTFoot!==null) {aRow=[];for(i=0,iLen=dt.aoColumns.length;i/g,"");sLoopData=this._fnHtmlDecode(sLoopData);aRow.push(this._fnBoundData(sLoopData,oConfig.sFieldBoundary,regex));}} aData.push(aRow.join(oConfig.sFieldSeperator));} var _sLastData=aData.join(this._fnNewline(oConfig));return _sLastData;},"_fnBoundData":function(sData,sBoundary,regex) {if(sBoundary==="") {return sData;} else {return sBoundary+ sData.replace(regex,sBoundary+sBoundary)+ sBoundary;}},"_fnChunkData":function(sData,iSize) {var asReturn=[];var iStrlen=sData.length;for(var i=0;i').addClass(this.classes.print.message).html(oConfig.sMessage).prependTo('body');} this.s.print.saveScroll=$(window).scrollTop();window.scrollTo(0,0);$(document).bind("keydown.DTTT",function(e){if(e.keyCode==27) {e.preventDefault();that._fnPrintEnd.call(that,e);}});},"_fnPrintEnd":function(e) {var that=this;var oSetDT=this.s.dt;var oSetPrint=this.s.print;var oDomPrint=this.dom.print;this._fnPrintShowNodes();if(oSetDT.oScroll.sX!==""||oSetDT.oScroll.sY!=="") {$(this.s.dt.nTable).unbind('draw.DTTT_Print');this._fnPrintScrollEnd();} window.scrollTo(0,oSetPrint.saveScroll);$('div.'+this.classes.print.message).remove();$(document.body).removeClass('DTTT_Print');oSetDT._iDisplayStart=oSetPrint.saveStart;oSetDT._iDisplayLength=oSetPrint.saveLength;if(oSetDT.oApi._fnCalculateEnd){oSetDT.oApi._fnCalculateEnd(oSetDT);} oSetDT.oApi._fnDraw(oSetDT);$(document).unbind("keydown.DTTT");},"_fnPrintScrollStart":function() {var oSetDT=this.s.dt,nScrollHeadInner=oSetDT.nScrollHead.getElementsByTagName('div')[0],nScrollHeadTable=nScrollHeadInner.getElementsByTagName('table')[0],nScrollBody=oSetDT.nTable.parentNode,nTheadSize,nTfootSize;nTheadSize=oSetDT.nTable.getElementsByTagName('thead');if(nTheadSize.length>0) {oSetDT.nTable.removeChild(nTheadSize[0]);} if(oSetDT.nTFoot!==null) {nTfootSize=oSetDT.nTable.getElementsByTagName('tfoot');if(nTfootSize.length>0) {oSetDT.nTable.removeChild(nTfootSize[0]);}} nTheadSize=oSetDT.nTHead.cloneNode(true);oSetDT.nTable.insertBefore(nTheadSize,oSetDT.nTable.childNodes[0]);if(oSetDT.nTFoot!==null) {nTfootSize=oSetDT.nTFoot.cloneNode(true);oSetDT.nTable.insertBefore(nTfootSize,oSetDT.nTable.childNodes[1]);} if(oSetDT.oScroll.sX!=="") {oSetDT.nTable.style.width=$(oSetDT.nTable).outerWidth()+"px";nScrollBody.style.width=$(oSetDT.nTable).outerWidth()+"px";nScrollBody.style.overflow="visible";} if(oSetDT.oScroll.sY!=="") {nScrollBody.style.height=$(oSetDT.nTable).outerHeight()+"px";nScrollBody.style.overflow="visible";}},"_fnPrintScrollEnd":function() {var oSetDT=this.s.dt,nScrollBody=oSetDT.nTable.parentNode;if(oSetDT.oScroll.sX!=="") {nScrollBody.style.width=oSetDT.oApi._fnStringToCss(oSetDT.oScroll.sX);nScrollBody.style.overflow="auto";} if(oSetDT.oScroll.sY!=="") {nScrollBody.style.height=oSetDT.oApi._fnStringToCss(oSetDT.oScroll.sY);nScrollBody.style.overflow="auto";}},"_fnPrintShowNodes":function() {var anHidden=this.dom.print.hidden;for(var i=0,iLen=anHidden.length;iTable copied'+'

Copied '+lines+' row'+plural+' to the clipboard.

',1500);}}),"pdf":$.extend({},TableTools.buttonBase,{"sAction":"flash_pdf","sNewLine":"\n","sFileName":"*.pdf","sButtonClass":"DTTT_button_pdf","sButtonText":"PDF","sPdfOrientation":"portrait","sPdfSize":"A4","sPdfMessage":"","fnClick":function(nButton,oConfig,flash){this.fnSetText(flash,"title:"+ this.fnGetTitle(oConfig)+"\n"+"message:"+ oConfig.sPdfMessage+"\n"+"colWidth:"+ this.fnCalcColRatios(oConfig)+"\n"+"orientation:"+ oConfig.sPdfOrientation+"\n"+"size:"+ oConfig.sPdfSize+"\n"+"--/TableToolsOpts--\n"+ this.fnGetTableData(oConfig));}}),"print":$.extend({},TableTools.buttonBase,{"sInfo":"
Print view

Please use your browser's print function to "+"print this table. Press escape when finished.

","sMessage":null,"bShowAll":true,"sToolTip":"View print view","sButtonClass":"DTTT_button_print","sButtonText":"Print","fnClick":function(nButton,oConfig){this.fnPrint(true,oConfig);}}),"text":$.extend({},TableTools.buttonBase),"select":$.extend({},TableTools.buttonBase,{"sButtonText":"Select button","fnSelect":function(nButton,oConfig){if(this.fnGetSelected().length!==0){$(nButton).removeClass(this.classes.buttons.disabled);}else{$(nButton).addClass(this.classes.buttons.disabled);}},"fnInit":function(nButton,oConfig){$(nButton).addClass(this.classes.buttons.disabled);}}),"select_single":$.extend({},TableTools.buttonBase,{"sButtonText":"Select button","fnSelect":function(nButton,oConfig){var iSelected=this.fnGetSelected().length;if(iSelected==1){$(nButton).removeClass(this.classes.buttons.disabled);}else{$(nButton).addClass(this.classes.buttons.disabled);}},"fnInit":function(nButton,oConfig){$(nButton).addClass(this.classes.buttons.disabled);}}),"select_all":$.extend({},TableTools.buttonBase,{"sButtonText":"Select all","fnClick":function(nButton,oConfig){this.fnSelectAll();},"fnSelect":function(nButton,oConfig){if(this.fnGetSelected().length==this.s.dt.fnRecordsDisplay()){$(nButton).addClass(this.classes.buttons.disabled);}else{$(nButton).removeClass(this.classes.buttons.disabled);}}}),"select_none":$.extend({},TableTools.buttonBase,{"sButtonText":"Deselect all","fnClick":function(nButton,oConfig){this.fnSelectNone();},"fnSelect":function(nButton,oConfig){if(this.fnGetSelected().length!==0){$(nButton).removeClass(this.classes.buttons.disabled);}else{$(nButton).addClass(this.classes.buttons.disabled);}},"fnInit":function(nButton,oConfig){$(nButton).addClass(this.classes.buttons.disabled);}}),"ajax":$.extend({},TableTools.buttonBase,{"sAjaxUrl":"/xhr.php","sButtonText":"Ajax button","fnClick":function(nButton,oConfig){var sData=this.fnGetTableData(oConfig);$.ajax({"url":oConfig.sAjaxUrl,"data":[{"name":"tableData","value":sData}],"success":oConfig.fnAjaxComplete,"dataType":"json","type":"POST","cache":false,"error":function(){alert("Error detected when sending table data to server");}});},"fnAjaxComplete":function(json){alert('Ajax complete');}}),"div":$.extend({},TableTools.buttonBase,{"sAction":"div","sTag":"div","sButtonClass":"DTTT_nonbutton","sButtonText":"Text button"}),"collection":$.extend({},TableTools.buttonBase,{"sAction":"collection","sButtonClass":"DTTT_button_collection","sButtonText":"Collection","fnClick":function(nButton,oConfig){this._fnCollectionShow(nButton,oConfig);}})};TableTools.buttons=TableTools.BUTTONS;TableTools.classes={"container":"DTTT_container","buttons":{"normal":"DTTT_button","disabled":"DTTT_disabled"},"collection":{"container":"DTTT_collection","background":"DTTT_collection_background","buttons":{"normal":"DTTT_button","disabled":"DTTT_disabled"}},"select":{"table":"DTTT_selectable","row":"DTTT_selected selected"},"print":{"body":"DTTT_Print","info":"DTTT_print_info","message":"DTTT_PrintMessage"}};TableTools.classes_themeroller={"container":"DTTT_container ui-buttonset ui-buttonset-multi","buttons":{"normal":"DTTT_button 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","sRowSelector":"tr","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.defaults=TableTools.DEFAULTS;TableTools.prototype.CLASS="TableTools";TableTools.version="2.2.2";if($.fn.dataTable.Api){$.fn.dataTable.Api.register('tabletools()',function(){var tt=null;if(this.context.length>0){tt=TableTools.fnGetInstance(this.context[0].nTable);} return tt;});} if(typeof $.fn.dataTable=="function"&&typeof $.fn.dataTableExt.fnVersionCheck=="function"&&$.fn.dataTableExt.fnVersionCheck('1.9.0')) {$.fn.dataTableExt.aoFeatures.push({"fnInit":function(oDTSettings){var init=oDTSettings.oInit;var opts=init?init.tableTools||init.oTableTools||{}:{};return new TableTools(oDTSettings.oInstance,opts).dom.container;},"cFeature":"T","sFeature":"TableTools"});} else {alert("Warning: TableTools requires DataTables 1.9.0 or newer - www.datatables.net/download");} $.fn.DataTable.TableTools=TableTools;})(jQuery,window,document);if(typeof $.fn.dataTable=="function"&&typeof $.fn.dataTableExt.fnVersionCheck=="function"&&$.fn.dataTableExt.fnVersionCheck('1.9.0')) {$.fn.dataTableExt.aoFeatures.push({"fnInit":function(oDTSettings){var oOpts=typeof oDTSettings.oInit.oTableTools!='undefined'?oDTSettings.oInit.oTableTools:{};var oTT=new TableTools(oDTSettings.oInstance,oOpts);TableTools._aInstances.push(oTT);return oTT.dom.container;},"cFeature":"T","sFeature":"TableTools"});} else {alert("Warning: TableTools 2 requires DataTables 1.9.0 or newer - www.datatables.net/download");} $.fn.dataTable.TableTools=TableTools;$.fn.DataTable.TableTools=TableTools;return TableTools;};if(typeof define==='function'&&define.amd){define(['jquery','datatables'],factory);} else if(typeof exports==='object'){factory(require('jquery'),require('datatables'));} else if(jQuery&&!jQuery.fn.dataTable.TableTools){factory(jQuery,jQuery.fn.dataTable);}})(window,document);