           if d.cid == current_id
             item.selectAll(".link_label").transition().style("opacity", 1)
           else
-            item.transition().duration(200).style("opacity", 0.2)
+            item.transition().duration(200).style("opacity", unselectedLinkOpacity)
 
     # this method is called every time we're updating the chart
     refresh: =>

      {left: 'electricity',      right: 'exported_electricity', gquery: 'electricity_to_exported_electricity_in_sankey_ufp', color: 'black'},
    ]


  # In this chart most positioning is calculated by us. The D3 sankey plugin is
  # cool but not flexible enough
  Node: class extends Backbone.Model

D3.sankey =
  data :
    nodes: [

      {id: 'coal_and_derivatives',     column: 0, label: "coal", color: 'yellow'},
      {id: 'oil_and_derivatives',        column: 0, label: "oil"},
      #{id: 'useful_demand',         column: 0},
