title: when double-clicking one element, another gets selected
body: <p>I've written an image scroller in html/css/js, a very simple one: right button is clicked, I go through all images inside "holder"-div and change the class of the image after the one with classname="current".</p>
  
  <p>But that's not where the problem lies, I think. Whenever I successively click on the left or the right button, the image in the div gets selected (blue selection box). If I successively click the left button, even the text above it gets selected.</p>
  
  <pre><code>&lt;div class="grid_4 omega image_box"&gt;
      &lt;div id="txt_choose" class="image_txt"&gt;
          this is helpful text
      &lt;/div&gt;
      &lt;div id="alt_spacer"&gt;&lt;/div&gt;
      &lt;div id="image_content" class="image_content" onclick="chooseImageType(this)"&gt;
          &lt;div id="current" class="current"&gt;&lt;img src="images/default1.png" /&gt;&lt;/div&gt;
          &lt;div id="current" class="hidden"&gt;&lt;img src="images/default2.png" /&gt;&lt;/div&gt;
      &lt;/div&gt;
      &lt;!--- left button ---&gt;
      &lt;div class="image_btn_left" onclick="showPrev()"&gt;&lt;/div&gt;
  
      &lt;!--- right button ---&gt;
      &lt;div class="image_btn_right" onclick="showNext()"&gt;&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and this is the css:</p>
  
  <pre><code>.image_btn_right
  {
      width           : 20px;
      height          : 20px;
      position        : relative;
      float           : left;
      margin-top      : -170px;
      margin-left     : 260px;
      z-index         : 4;
      cursor          : pointer;
      background-image: url('../images/right.png');
  }
  .image_btn_left
  {
      width           : 20px;
      height          : 20px;
      position        : relative;
      float           : left;
      margin-top      : -170px;
      margin-left     : 20px;
      z-index         : 4;
      cursor          : pointer;
      background-image: url('../images/left.png');
  }
  .image_content
  {
      height          : 280px;
      background-color: white;
      margin          : 10px;
  }
  </code></pre>
  
  <p>on request, my javascript:</p>
  
  <pre><code>function showNext()
  {
  //vars
  var shown = false;
  var current;
  
  $('#image_content &gt; div').each(function()
  {
      if($(this).attr('class') == "current")
      {
          current = $(this);
          shown   = true;
      }
      else if($(this).attr('class') == "hidden" &amp;&amp; shown == true)
      {
          current.hide();
          current.attr('class', 'prev');
          current.attr('id', '');
          $(this).show();
          $(this).attr('class', 'current');
          $(this).attr('id', 'current');
          shown = false;
      }
  });
  }
  </code></pre>
  
  <p>Is there anyway to stop the image and the text above to be selected like that (without actually making them not selectable)?
  Could it be because of the relative position of the buttons and their z-index..?</p>