text: /*! FixedHeader 2.1.2
   * ©2010-2014 SpryMedia Ltd - datatables.net/license
   */
  var FixedHeader;(function(h,f,g){var e=function(a,b){FixedHeader=function(m,n){if(!this instanceof FixedHeader){alert("FixedHeader warning: FixedHeader must be initialised with the 'new' keyword.");return}var d=this;var c={aoCache:[],oSides:{top:true,bottom:false,left:0,right:0},oZIndexes:{top:104,bottom:103,left:102,right:101},oCloneOnDraw:{top:false,bottom:false,left:true,right:true},oMes:{iTableWidth:0,iTableHeight:0,iTableLeft:0,iTableRight:0,iTableTop:0,iTableBottom:0},oOffset:{top:0},nTable:null,bFooter:false,bInitComplete:false};this.fnGetSettings=function(){return c};this.fnUpdate=function(){this._fnUpdateClones();this._fnUpdatePositions()};this.fnPosition=function(){this._fnUpdatePositions()};var l=a.fn.dataTable.Api?new a.fn.dataTable.Api(m).settings()[0]:m.fnSettings();l._oPluginFixedHeader=this;this.fnInit(l,n)};FixedHeader.prototype={fnInit:function(c,l){var k=this.fnGetSettings();var d=this;this.fnInitSettings(k,l);if(c.oScroll.sX!==""||c.oScroll.sY!==""){alert("FixedHeader 2 is not supported with DataTables' scrolling mode at this time");return}k.nTable=c.nTable;c.aoDrawCallback.unshift({fn:function(){FixedHeader.fnMeasure();d._fnUpdateClones.call(d);d._fnUpdatePositions.call(d)},sName:"FixedHeader"});k.bFooter=(a(">tfoot",k.nTable).length>0)?true:false;if(k.oSides.top){k.aoCache.push(d._fnCloneTable("fixedHeader","FixedHeader_Header",d._fnCloneThead))}if(k.oSides.bottom){k.aoCache.push(d._fnCloneTable("fixedFooter","FixedHeader_Footer",d._fnCloneTfoot))}if(k.oSides.left){k.aoCache.push(d._fnCloneTable("fixedLeft","FixedHeader_Left",d._fnCloneTLeft,k.oSides.left))}if(k.oSides.right){k.aoCache.push(d._fnCloneTable("fixedRight","FixedHeader_Right",d._fnCloneTRight,k.oSides.right))}FixedHeader.afnScroll.push(function(){d._fnUpdatePositions.call(d)});a(h).resize(function(){FixedHeader.fnMeasure();d._fnUpdateClones.call(d);d._fnUpdatePositions.call(d)});a(k.nTable).on("column-reorder.dt",function(){FixedHeader.fnMeasure();d._fnUpdateClones(true);d._fnUpdatePositions()}).on("column-visibility.dt",function(){FixedHeader.fnMeasure();d._fnUpdateClones(true);d._fnUpdatePositions()});FixedHeader.fnMeasure();d._fnUpdateClones();d._fnUpdatePositions();k.bInitComplete=true},fnInitSettings:function(c,d){if(d!==g){if(d.top!==g){c.oSides.top=d.top}if(d.bottom!==g){c.oSides.bottom=d.bottom}if(typeof d.left=="boolean"){c.oSides.left=d.left?1:0}else{if(d.left!==g){c.oSides.left=d.left}}if(typeof d.right=="boolean"){c.oSides.right=d.right?1:0}else{if(d.right!==g){c.oSides.right=d.right}}if(d.zTop!==g){c.oZIndexes.top=d.zTop}if(d.zBottom!==g){c.oZIndexes.bottom=d.zBottom}if(d.zLeft!==g){c.oZIndexes.left=d.zLeft}if(d.zRight!==g){c.oZIndexes.right=d.zRight}if(d.offsetTop!==g){c.oOffset.top=d.offsetTop}if(d.alwaysCloneTop!==g){c.oCloneOnDraw.top=d.alwaysCloneTop}if(d.alwaysCloneBottom!==g){c.oCloneOnDraw.bottom=d.alwaysCloneBottom}if(d.alwaysCloneLeft!==g){c.oCloneOnDraw.left=d.alwaysCloneLeft}if(d.alwaysCloneRight!==g){c.oCloneOnDraw.right=d.alwaysCloneRight}}},_fnCloneTable:function(c,d,n,p){var q=this.fnGetSettings();var r;if(a(q.nTable.parentNode).css("position")!="absolute"){q.nTable.parentNode.style.position="relative"}r=q.nTable.cloneNode(false);r.removeAttribute("id");var o=f.createElement("div");o.style.position="absolute";o.style.top="0px";o.style.left="0px";o.className+=" FixedHeader_Cloned "+c+" "+d;if(c=="fixedHeader"){o.style.zIndex=q.oZIndexes.top}if(c=="fixedFooter"){o.style.zIndex=q.oZIndexes.bottom}if(c=="fixedLeft"){o.style.zIndex=q.oZIndexes.left}else{if(c=="fixedRight"){o.style.zIndex=q.oZIndexes.right}}r.style.margin="0";o.appendChild(r);f.body.appendChild(o);return{nNode:r,nWrapper:o,sType:c,sPosition:"",sTop:"",sLeft:"",fnClone:n,iCells:p}},_fnMeasure:function(){var m=this.fnGetSettings(),p=m.oMes,n=a(m.nTable),o=n.offset(),c=this._fnSumScroll(m.nTable.parentNode,"scrollTop"),d=this._fnSumScroll(m.nTable.parentNode,"scrollLeft");p.iTableWidth=n.outerWidth();p.iTableHeight=n.outerHeight();p.iTableLeft=o.left+m.nTable.parentNode.scrollLeft;p.iTableTop=o.top+c;p.iTableRight=p.iTableLeft+p.iTableWidth;p.iTableRight=FixedHeader.oDoc.iWidth-p.iTableLeft-p.iTableWidth;p.iTableBottom=FixedHeader.oDoc.iHeight-p.iTableTop-p.iTableHeight},_fnSumScroll:function(c,d){var i=c[d];while(c=c.parentNode){if(c.nodeName=="HTML"||c.nodeName=="BODY"){break}i=c[d]}return i},_fnUpdatePositions:function(){var c=this.fnGetSettings();this._fnMeasure();for(var d=0,i=c.aoCache.length;d<i;d++){if(c.aoCache[d].sType=="fixedHeader"){this._fnScrollFixedHeader(c.aoCache[d])}else{if(c.aoCache[d].sType=="fixedFooter"){this._fnScrollFixedFooter(c.aoCache[d])}else{if(c.aoCache[d].sType=="fixedLeft"){this._fnScrollHorizontalLeft(c.aoCache[d])}else{this._fnScrollHorizontalRight(c.aoCache[d])}}}}},_fnUpdateClones:function(d){var c=this.fnGetSettings();if(d){c.bInitComplete=false}for(var i=0,l=c.aoCache.length;i<l;i++){c.aoCache[i].fnClone.call(this,c.aoCache[i])}if(d){c.bInitComplete=true}},_fnScrollHorizontalRight:function(c){var n=this.fnGetSettings(),d=n.oMes,q=FixedHeader.oWin,r=FixedHeader.oDoc,o=c.nWrapper,p=a(o).outerWidth();if(q.iScrollRight<d.iTableRight){this._fnUpdateCache(c,"sPosition","absolute","position",o.style);this._fnUpdateCache(c,"sTop",d.iTableTop+"px","top",o.style);this._fnUpdateCache(c,"sLeft",(d.iTableLeft+d.iTableWidth-p)+"px","left",o.style)}else{if(d.iTableLeft<r.iWidth-q.iScrollRight-p){this._fnUpdateCache(c,"sPosition","fixed","position",o.style);this._fnUpdateCache(c,"sTop",(d.iTableTop-q.iScrollTop)+"px","top",o.style);this._fnUpdateCache(c,"sLeft",(q.iWidth-p)+"px","left",o.style)}else{this._fnUpdateCache(c,"sPosition","absolute","position",o.style);this._fnUpdateCache(c,"sTop",d.iTableTop+"px","top",o.style);this._fnUpdateCache(c,"sLeft",d.iTableLeft+"px","left",o.style)}}},_fnScrollHorizontalLeft:function(c){var n=this.fnGetSettings(),d=n.oMes,q=FixedHeader.oWin,r=FixedHeader.oDoc,p=c.nWrapper,o=a(p).outerWidth();if(q.iScrollLeft<d.iTableLeft){this._fnUpdateCache(c,"sPosition","absolute","position",p.style);this._fnUpdateCache(c,"sTop",d.iTableTop+"px","top",p.style);this._fnUpdateCache(c,"sLeft",d.iTableLeft+"px","left",p.style)}else{if(q.iScrollLeft<d.iTableLeft+d.iTableWidth-o){this._fnUpdateCache(c,"sPosition","fixed","position",p.style);this._fnUpdateCache(c,"sTop",(d.iTableTop-q.iScrollTop)+"px","top",p.style);this._fnUpdateCache(c,"sLeft","0px","left",p.style)}else{this._fnUpdateCache(c,"sPosition","absolute","position",p.style);this._fnUpdateCache(c,"sTop",d.iTableTop+"px","top",p.style);this._fnUpdateCache(c,"sLeft",(d.iTableLeft+d.iTableWidth-o)+"px","left",p.style)}}},_fnScrollFixedFooter:function(t){var d=this.fnGetSettings(),c=d.oMes,r=FixedHeader.oWin,s=FixedHeader.oDoc,q=t.nWrapper,o=a("thead",d.nTable).outerHeight(),p=a(q).outerHeight();if(r.iScrollBottom<c.iTableBottom){this._fnUpdateCache(t,"sPosition","absolute","position",q.style);this._fnUpdateCache(t,"sTop",(c.iTableTop+c.iTableHeight-p)+"px","top",q.style);this._fnUpdateCache(t,"sLeft",c.iTableLeft+"px","left",q.style)}else{if(r.iScrollBottom<c.iTableBottom+c.iTableHeight-p-o){this._fnUpdateCache(t,"sPosition","fixed","position",q.style);this._fnUpdateCache(t,"sTop",(r.iHeight-p)+"px","top",q.style);this._fnUpdateCache(t,"sLeft",(c.iTableLeft-r.iScrollLeft)+"px","left",q.style)}else{this._fnUpdateCache(t,"sPosition","absolute","position",q.style);this._fnUpdateCache(t,"sTop",(c.iTableTop+p)+"px","top",q.style);this._fnUpdateCache(t,"sLeft",c.iTableLeft+"px","left",q.style)}}},_fnScrollFixedHeader:function(q){var c=this.fnGetSettings(),t=c.oMes,s=FixedHeader.oWin,d=FixedHeader.oDoc,u=q.nWrapper,i=0,r=c.nTable.getElementsByTagName("tbody");for(var v=0;v<r.length;++v){i+=r[v].offsetHeight}if(t.iTableTop>s.iScrollTop+c.oOffset.top){this._fnUpdateCache(q,"sPosition","absolute","position",u.style);this._fnUpdateCache(q,"sTop",t.iTableTop+"px","top",u.style);this._fnUpdateCache(q,"sLeft",t.iTableLeft+"px","left",u.style)}else{if(s.iScrollTop+c.oOffset.top>t.iTableTop+i){this._fnUpdateCache(q,"sPosition","absolute","position",u.style);this._fnUpdateCache(q,"sTop",(t.iTableTop+i)+"px","top",u.style);this._fnUpdateCache(q,"sLeft",t.iTableLeft+"px","left",u.style)}else{this._fnUpdateCache(q,"sPosition","fixed","position",u.style);this._fnUpdateCache(q,"sTop",c.oOffset.top+"px","top",u.style);this._fnUpdateCache(q,"sLeft",(t.iTableLeft-s.iScrollLeft)+"px","left",u.style)}}},_fnUpdateCache:function(c,l,m,d,n){if(c[l]!=m){n[d]=m;c[l]=m}},_fnClassUpdate:function(c,j){var d=this;if(c.nodeName.toUpperCase()==="TR"||c.nodeName.toUpperCase()==="TH"||c.nodeName.toUpperCase()==="TD"||c.nodeName.toUpperCase()==="SPAN"){j.className=c.className}a(c).children().each(function(i){d._fnClassUpdate(a(c).children()[i],a(j).children()[i])})},_fnCloneThead:function(c){var d=this.fnGetSettings();var p=c.nNode;if(d.bInitComplete&&!d.oCloneOnDraw.top){this._fnClassUpdate(a("thead",d.nTable)[0],a("thead",p)[0]);return}var n=a(d.nTable).outerWidth();c.nWrapper.style.width=n+"px";p.style.width=n+"px";while(p.childNodes.length>0){a("thead th",p).unbind("click");p.removeChild(p.childNodes[0])}var o=a("thead",d.nTable).clone(true)[0];p.appendChild(o);var q=[];var r=[];a("thead>tr th",d.nTable).each(function(i){q.push(a(this).width())});a("thead>tr td",d.nTable).each(function(i){r.push(a(this).width())});a("thead>tr th",d.nTable).each(function(i){a("thead>tr th:eq("+i+")",p).width(q[i]);a(this).width(q[i])});a("thead>tr td",d.nTable).each(function(i){a("thead>tr td:eq("+i+")",p).width(r[i]);a(this).width(r[i])});a("th.sorting, th.sorting_desc, th.sorting_asc",p).bind("click",function(){this.blur()})},_fnCloneTfoot:function(c){var d=this.fnGetSettings();var l=c.nNode;c.nWrapper.style.width=a(d.nTable).outerWidth()+"px";while(l.childNodes.length>0){l.removeChild(l.childNodes[0])}var k=a("tfoot",d.nTable).clone(true)[0];l.appendChild(k);a("tfoot:eq(0)>tr th",d.nTable).each(function(i){a("tfoot:eq(0)>tr th:eq("+i+")",l).width(a(this).width())});a("tfoot:eq(0)>tr td",d.nTable).each(function(i){a("tfoot:eq(0)>tr td:eq("+i+")",l).width(a(this).width())})},_fnCloneTLeft:function(c){var o=this.fnGetSettings();var q=c.nNode;var d=a("tbody",o.nTable)[0];while(q.childNodes.length>0){q.removeChild(q.childNodes[0])}q.appendChild(a("thead",o.nTable).clone(true)[0]);q.appendChild(a("tbody",o.nTable).clone(true)[0]);if(o.bFooter){q.appendChild(a("tfoot",o.nTable).clone(true)[0])}var r="gt("+(c.iCells-1)+")";a("thead tr",q).each(function(j){a("th:"+r,this).remove()});a("tfoot tr",q).each(function(j){a("th:"+r,this).remove()});a("tbody tr",q).each(function(j){a("td:"+r,this).remove()});this.fnEqualiseHeights("thead",d.parentNode,q);this.fnEqualiseHeights("tbody",d.parentNode,q);this.fnEqualiseHeights("tfoot",d.parentNode,q);var i=0;for(var p=0;p<c.iCells;p++){i+=a("thead tr th:eq("+p+")",o.nTable).outerWidth()}q.style.width=i+"px";c.nWrapper.style.width=i+"px"},_fnCloneTRight:function(r){var o=this.fnGetSettings();var c=a("tbody",o.nTable)[0];var q=r.nNode;var d=a("tbody tr:eq(0) td",o.nTable).length;while(q.childNodes.length>0){q.removeChild(q.childNodes[0])}q.appendChild(a("thead",o.nTable).clone(true)[0]);q.appendChild(a("tbody",o.nTable).clone(true)[0]);if(o.bFooter){q.appendChild(a("tfoot",o.nTable).clone(true)[0])}a("thead tr th:lt("+(d-r.iCells)+")",q).remove();a("tfoot tr th:lt("+(d-r.iCells)+")",q).remove();a("tbody tr",q).each(function(j){a("td:lt("+(d-r.iCells)+")",this).remove()});this.fnEqualiseHeights("thead",c.parentNode,q);this.fnEqualiseHeights("tbody",c.parentNode,q);this.fnEqualiseHeights("tfoot",c.parentNode,q);var i=0;for(var p=0;p<r.iCells;p++){i+=a("thead tr th:eq("+(d-1-p)+")",o.nTable).outerWidth()}q.style.width=i+"px";r.nWrapper.style.width=i+"px"},fnEqualiseHeights:function(m,n,c){var d=this;var o=a(m+" tr",n);var p;a(m+" tr",c).each(function(i){p=o.eq(i).css("height");if(navigator.appName=="Microsoft Internet Explorer"){p=parseInt(p,10)+1}a(this).css("height",p);o.eq(i).css("height",p)})}};FixedHeader.oWin={iScrollTop:0,iScrollRight:0,iScrollBottom:0,iScrollLeft:0,iHeight:0,iWidth:0};FixedHeader.oDoc={iHeight:0,iWidth:0};FixedHeader.afnScroll=[];FixedHeader.fnMeasure=function(){var c=a(h),d=a(f),k=FixedHeader.oWin,l=FixedHeader.oDoc;l.iHeight=d.height();l.iWidth=d.width();k.iHeight=c.height();k.iWidth=c.width();k.iScrollTop=c.scrollTop();k.iScrollLeft=c.scrollLeft();k.iScrollRight=l.iWidth-k.iScrollLeft-k.iWidth;k.iScrollBottom=l.iHeight-k.iScrollTop-k.iHeight};FixedHeader.version="2.1.2";a(h).scroll(function(){FixedHeader.fnMeasure();for(var c=0,d=FixedHeader.afnScroll.length;c<d;c++){FixedHeader.afnScroll[c]()}});a.fn.dataTable.FixedHeader=FixedHeader;a.fn.DataTable.FixedHeader=FixedHeader;return FixedHeader};if(typeof define==="function"&&define.amd){define(["jquery","datatables"],e)}else{if(typeof exports==="object"){e(require("jquery"),require("datatables"))}else{if(jQuery&&!jQuery.fn.dataTable.FixedHeader){e(jQuery,jQuery.fn.dataTable)}}}})(window,document);