var className="highlightTable";var rowHighLight="#f2f2f2";var colHighLight="#EBEAE6";if(typeof isReport!="undefined"){rowHighLight="#EFEFEF";colHighLight="#DCF4FB"}var rowHighLightReset="#ffffff";var colHighLightReset="#ffffff";function highlightZuBoxTables(b){var c=b.length;for(var a=0;a<c;a++){highZuBoxWork(b[a],a+99,c)}}function highZuBoxWork(m,d,h){var g=m.rows.length;for(var f=0;f<g;f++){var n=m.rows[f];if(n.className.indexOf("no-highlighting")>0){continue}if(n.id=="no-highlighting-new-table"){i++;h=h+1;continue}i=d;n.id="tb_"+(i+1)+"_row_"+(f+1)+"_";var c=n.cells.length;for(var e=0;e<n.cells.length;e++){var l=n.cells[e];if(l.getAttribute("colspan")!=null){c=c+(l.getAttribute("colspan")-1)}}var b=0;for(e=0;e<n.cells.length;e++){l=n.cells[e];if(l.getAttribute("scope")==2){l.id="tb_"+(i+1)+"_row_"+(f+1)+"_col_"+((e+1)+b)+"_ tb_"+(i+1)+"_row_"+(f+1)+"_col_"+(((e+1)+b)+1)+"_";l.onmouseover=new Function("highlightMore('"+(f+1)+"','"+((e+1)+b)+"','"+(i+1)+"','"+(g)+"','"+(c)+"','2');return false");l.onmouseout=new Function("highlightMoreReset('"+(f+1)+"','"+((e+1)+b)+"','"+(i+1)+"','"+(g)+"','"+(c)+"','2');return false")}else{if(l.getAttribute("colspan")!=null){var a="";colspaner=l.getAttribute("colspan");if(l.getAttribute("colspan")==null){colspaner=1}for(z=0;z<colspaner;z++){a=a+" tb_"+(i+1)+"_row_"+(f+1)+"_col_"+(((e+1)+b)+z)+"_"}l.id=a;l.onmouseover=new Function("highlightMore('"+(f+1)+"','"+((e+1)+b)+"','"+(i+1)+"','"+(g)+"','"+(c)+"','"+colspaner+"');return false");l.onmouseout=new Function("highlightMoreReset('"+(f+1)+"','"+((e+1)+b)+"','"+(i+1)+"','"+(g)+"','"+(c)+"','"+colspaner+"');return false")}else{l.id="tb_"+(i+1)+"_row_"+(f+1)+"_col_"+((e+1)+b)+"_";l.onmouseover=new Function("highlight('"+(f+1)+"','"+((e+1)+b)+"','"+(i+1)+"','"+(g)+"','"+(c)+"');return false");l.onmouseout=new Function("highlightReset('"+(f+1)+"','"+((e+1)+b)+"','"+(i+1)+"','"+(g)+"','"+(c)+"');return false")}}if(l.getAttribute("colspan")!=null){b=b+(l.getAttribute("colspan")-1)}}}}function highlightTables(){if(!document.getElementsByTagName){return}var m=getElementsByClass(className,document,"table");var h=m.length;for(var f=0;f<h;f++){var n=m[f-(h-m.length)];var g=n.rows.length;for(var e=0;e<g;e++){var o=n.rows[e];if(o.className.indexOf("no-highlighting")>=0){continue}if(o.id=="no-highlighting-new-table"){f++;h=h+1;continue}o.id="tb_"+(f+1)+"_row_"+(e+1)+"_";var c=o.cells.length;for(var d=0;d<o.cells.length;d++){var l=o.cells[d];if(l.getAttribute("colspan")!=null){c=c+(l.getAttribute("colspan")-1)}}var b=0;for(d=0;d<o.cells.length;d++){l=o.cells[d];if(l.getAttribute("scope")==2){l.id="tb_"+(f+1)+"_row_"+(e+1)+"_col_"+((d+1)+b)+"_ tb_"+(f+1)+"_row_"+(e+1)+"_col_"+(((d+1)+b)+1)+"_";l.onmouseover=new Function("highlightMore('"+(e+1)+"','"+((d+1)+b)+"','"+(f+1)+"','"+(g)+"','"+(c)+"','2');return false");l.onmouseout=new Function("highlightMoreReset('"+(e+1)+"','"+((d+1)+b)+"','"+(f+1)+"','"+(g)+"','"+(c)+"','2');return false")}else{if(l.getAttribute("colspan")!=null){var a="";colspaner=l.getAttribute("colspan");if(l.getAttribute("colspan")==null){colspaner=1}for(z=0;z<colspaner;z++){a=a+" tb_"+(f+1)+"_row_"+(e+1)+"_col_"+(((d+1)+b)+z)+"_"}l.id=a;l.onmouseover=new Function("highlightMore('"+(e+1)+"','"+((d+1)+b)+"','"+(f+1)+"','"+(g)+"','"+(c)+"','"+colspaner+"');return false");l.onmouseout=new Function("highlightMoreReset('"+(e+1)+"','"+((d+1)+b)+"','"+(f+1)+"','"+(g)+"','"+(c)+"','"+colspaner+"');return false")}else{l.id="tb_"+(f+1)+"_row_"+(e+1)+"_col_"+((d+1)+b)+"_";l.onmouseover=new Function("highlight('"+(e+1)+"','"+((d+1)+b)+"','"+(f+1)+"','"+(g)+"','"+(c)+"');return false");l.onmouseout=new Function("highlightReset('"+(e+1)+"','"+((d+1)+b)+"','"+(f+1)+"','"+(g)+"','"+(c)+"');return false")}}if(l.getAttribute("colspan")!=null){b=b+(l.getAttribute("colspan")-1)}}}}}function highlightMore(c,b,g,a,d,f,e){for(x=0;x<parseInt(f);x++){c_id=parseInt(b)+x;highlight(c,c_id,g,a,d)}}function highlightMoreReset(c,b,g,a,d,f,e){for(x=0;x<parseInt(f);x++){c_id=parseInt(b)+x;highlightReset(c,c_id,g,a,d)}}function highlight(c,b,f,a,d){var e="";if(f){e="tb_"+f+"_"}temp_row=document.getElementById(e+"row_"+c+"_");for(i=1;i<=d;i++){for(z=0;z<temp_row.cells.length;z++){if(temp_row.cells[z].id.search(e+"row_"+c+"_col_"+i+"_")!=-1){temp_row.cells[z].style.backgroundColor=rowHighLight}}}for(i=1;i<=a;i++){if(i!=c){temp_row=document.getElementById(e+"row_"+i+"_");if(temp_row!=null){for(z=0;z<temp_row.cells.length;z++){if(temp_row.cells[z].id.search(e+"row_"+i+"_col_"+b+"_")!=-1){temp_row.cells[z].style.backgroundColor=colHighLight}}}}}}function highlightReset(c,b,f,a,d){var e="";if(f){e="tb_"+f+"_"}temp_row=document.getElementById(e+"row_"+c+"_");for(i=1;i<=d;i++){for(z=0;z<temp_row.cells.length;z++){if(temp_row.cells[z].id.search(e+"row_"+c+"_col_"+i+"_")!=-1){temp_row.cells[z].style.backgroundColor=rowHighLightReset}}}for(i=1;i<=a;i++){if(i!=c){temp_row=document.getElementById(e+"row_"+i+"_");if(temp_row!=null){for(z=0;z<temp_row.cells.length;z++){if(temp_row.cells[z].id.search(e+"row_"+i+"_col_"+b+"_")!=-1){temp_row.cells[z].style.backgroundColor=colHighLightReset}}}}}}function getElementsByClass(g,e,a){var d=new Array();var c=e.getElementsByTagName(a);var b=c.length;var f=new RegExp("(^|\\s)"+g+"(\\s|$)");for(i=0,j=0;i<b;i++){if(f.test(c[i].className)){d[j]=c[i];j++}}return d}function setRowHighlightColor(a){rowHighLight=a}function setColHighlightColor(a){colHighLight=a}function highlightCell(d,a,b,c){cell=document.getElementById("tb_"+d+"_row_"+a+"_col_"+b+"_");if(cell){if(c=="column"){colour=colHighLight}else{if(c=="reset_row"){colour=rowHighLightReset}else{if(c=="reset_column"){colour=colHighLightReset}else{colour=rowHighLight}}}cell.style.backgroundColor=colour}}highlightTables();
