anchor.diff:  <% end %>
   doc.write('</body></html>');
   doc.close();
  -getPos = function(oSound, event) { return Math.floor(oSound.duration*event.pageX/<%= @total_imgwidth %>) };
  +
  +getPos = function(oSound, event) {
  +  return Math.floor(oSound.duration*event.pageX/<%= @total_imgwidth %>)
  +};
  +
   doc.body.onmousedown = function(event) {
     scrollMode = true;
  -  jQuery('#iframe').contents().find('#sel').css('visibility', 'hidden');
  +  $('#iframe').contents().find('#sel').css('visibility', 'hidden');
     oSound = pagePlayer.lastSound;
     oSound.startX = event.pageX;
     oSound.startPos = getPos(oSound, event);
     oSound.setPosition(oSound.startPos);
     oSound.stop();
  -  jQuery('#iframe').contents().find('#sel-start').css({'width': '2px', 'height': '216px', 'backgroundColor': 'blue', 'left': event.pageX, 'position': 'absolute'});
  +  var selStartCss = {'width': '2px', 'height': '216px', 'backgroundColor': 'blue',
  +                     'left': event.pageX, 'position': 'absolute'};
  +  $('#iframe').contents().find('#sel-start').css(selStartCss);
     return false;
   };
  +
   doc.body.onmousemove = function(event) {
     if (scrollMode) {
  -    jQuery('#iframe').contents().find('#sel-stop').css({'width': '2px', 'height': '216px', 'backgroundColor': 'blue', 'left': event.pageX, 'position': 'absolute'});
  -    jQuery('#iframe').contents().find('#sel').css({'width': Math.abs(event.pageX-oSound.startX)+'px', 'height': '216px', 'backgroundColor': 'rgba(0, 0, 0, 0.1)', 'left': Math.min(event.pageX, oSound.startX), 'position': 'absolute', 'visibility': 'visible'});
  -  }
  -}
  +    var selStopCss = {'width': '2px', 'height': '216px', 'backgroundColor': 'blue',
  +                      'left': event.pageX, 'position': 'absolute'};
  +    var selCss = {'width': Math.abs(event.pageX-oSound.startX)+'px', 'height': '216px',
  +                  'backgroundColor': 'rgba(0, 0, 0, 0.1)',
  +                  'left': Math.min(event.pageX, oSound.startX), 'position': 'absolute',
  +                  'visibility': 'visible'}
  +    $('#iframe').contents().find('#sel-stop').css(selStopCss);
  +    $('#iframe').contents().find('#sel').css(selCss);
  +  }
  +}
  +
   doc.body.onmouseup = function(event) {
     if (!scrollMode) return true;
     scrollMode = false;
  
positive.code: <meta name="robots" content="noindex" />
  
  <!-- Page player core CSS -->
  <link rel="stylesheet" type="text/css" href="<%= ActionController::Base.helpers.asset_path("rglossa/speech/wfplayer.css") %>" />
  
  <!-- soundManager.useFlashBlock: related CSS -->
  <link rel="stylesheet" type="text/css" href="<%= ActionController::Base.helpers.asset_path("rglossa/speech/wfplayer-flashblock.css") %>" />
  
  
  <style type="text/css">
  ul.playlist li .comment {font-size:0.65em;opacity:0.5}
  </style>
  
  <!-- soundManager API -->
  <script src="<%= ActionController::Base.helpers.asset_path("rglossa/speech/soundmanager2-nodebug-jsmin.js") %>"></script>
  
  <script>
    var total_width = <%= @total_imgwidth %>;
  
negative.code: </script>
  
  <!-- Page player main script -->
  <%= javascript_include_tag ActionController::Base.helpers.asset_path("rglossa/speech/wfplayer.js") %>
  <%= javascript_include_tag ActionController::Base.helpers.asset_path("jquery.min") %>
  
  </head>
  
  