title: Calling javascript from sifr replaced anchor tags?
body: <p>I'm using sIFR to replace my navigation text with a new font:</p>
  
  <pre><code>&lt;ul&gt;
      &lt;li&gt;&lt;a href="#"&gt;about&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;reel&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;contact&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;archive&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;login&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <hr>
  
  <pre><code>sIFR.replace(futura, {
      css: [
          '.sIFR-root { background-color:transparent; color: #999999; cursor:pointer; font-size:26px; text-transform:uppercase; }',
          'a { color: #999999; text-decoration:none; }',
          'a:hover { color: #CCCCCC; text-decoration:none; }'
      ],
      fitExactly:true,
      forceClear:true,
      forceSingleLine:true,
      selector: '#navigation ul li',
      transparent:true
  });
  </code></pre>
  
  <p>That works just fine. I'm then trying to add some actions to the navigation using jQuery:</p>
  
  <pre><code>$(document).ready(function(){
      $("#navigation ul li a").click(function(event){
          event.preventDefault();
          alert("nav clicked");
      });
  });
  </code></pre>
  
  <p>These actions don't seem to be working though because the anchor tags are hidden by sIFR when the content is replaced. How does one add some jQuery code to replaced tags? I'd rather not do something like the following (and let javascript be called from Flash) as it sort of defeats the whole purpose of unobtrusive javascript:</p>
  
  <pre><code>&lt;a href="javascript:gotoSection('about');"&gt;about&lt;/a&gt;
  </code></pre>
  
  <hr>
  
  <p><strong>Edit (generated HTML)</strong>:</p>
  
  <pre><code>&lt;ul&gt;
      &lt;li style="" class="sIFR-replaced"&gt;&lt;object width="88" height="37" class="sIFR-flash" type="application/x-shockwave-flash" id="sIFR_replacement_0" name="sIFR_replacement_0" data="/swf/bfuturah.swf" style=""&gt;&lt;param name="flashvars" value="id=sIFR_replacement_0&amp;amp;content=%253Ca%2520href%253D%2522/home/about%2522%2520target%253D%2522%2522%253EABOUT%253C/a%253E&amp;amp;width=55&amp;amp;renderheight=37&amp;amp;link=/home/about&amp;amp;target=&amp;amp;size=26&amp;amp;css=.sIFR-root%257Bcolor%253A%2523999999%253B%257Da%257Bcolor%253A%2523999999%253Btext-decoration%253Anone%253B%257Da%253Ahover%257Bcolor%253A%2523CCCCCC%253Btext-decoration%253Anone%253B%257D&amp;amp;cursor=pointer&amp;amp;tunewidth=0&amp;amp;tuneheight=0&amp;amp;offsetleft=&amp;amp;offsettop=&amp;amp;fitexactly=true&amp;amp;preventwrap=false&amp;amp;forcesingleline=true&amp;amp;antialiastype=&amp;amp;thickness=&amp;amp;sharpness=&amp;amp;kerning=&amp;amp;gridfittype=pixel&amp;amp;flashfilters=&amp;amp;opacity=100&amp;amp;blendmode=&amp;amp;selectable=true&amp;amp;fixhover=true&amp;amp;events=false&amp;amp;delayrun=false&amp;amp;version=436"/&gt;&lt;param name="wmode" value="transparent"/&gt;&lt;param name="bgcolor" value="transparent"/&gt;&lt;param name="allowScriptAccess" value="always"/&gt;&lt;param name="quality" value="best"/&gt;&lt;/object&gt;&lt;span class="sIFR-alternate" id="sIFR_replacement_0_alternate"&gt;&lt;a href="/home/about"&gt;about&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
      &lt;li style="" class="sIFR-replaced"&gt;&lt;object width="58" height="37" class="sIFR-flash" type="application/x-shockwave-flash" id="sIFR_replacement_1" name="sIFR_replacement_1" data="/swf/bfuturah.swf" style=""&gt;&lt;param name="flashvars" value="id=sIFR_replacement_1&amp;amp;content=%253Ca%2520href%253D%2522/home/reel%2522%2520target%253D%2522%2522%253EREEL%253C/a%253E&amp;amp;width=42&amp;amp;renderheight=37&amp;amp;link=/home/reel&amp;amp;target=&amp;amp;size=26&amp;amp;css=.sIFR-root%257Bcolor%253A%2523999999%253B%257Da%257Bcolor%253A%2523999999%253Btext-decoration%253Anone%253B%257Da%253Ahover%257Bcolor%253A%2523CCCCCC%253Btext-decoration%253Anone%253B%257D&amp;amp;cursor=pointer&amp;amp;tunewidth=0&amp;amp;tuneheight=0&amp;amp;offsetleft=&amp;amp;offsettop=&amp;amp;fitexactly=true&amp;amp;preventwrap=false&amp;amp;forcesingleline=true&amp;amp;antialiastype=&amp;amp;thickness=&amp;amp;sharpness=&amp;amp;kerning=&amp;amp;gridfittype=pixel&amp;amp;flashfilters=&amp;amp;opacity=100&amp;amp;blendmode=&amp;amp;selectable=true&amp;amp;fixhover=true&amp;amp;events=false&amp;amp;delayrun=false&amp;amp;version=436"/&gt;&lt;param name="wmode" value="transparent"/&gt;&lt;param name="bgcolor" value="transparent"/&gt;&lt;param name="allowScriptAccess" value="always"/&gt;&lt;param name="quality" value="best"/&gt;&lt;/object&gt;&lt;span class="sIFR-alternate" id="sIFR_replacement_1_alternate"&gt;&lt;a href="/home/reel"&gt;reel&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
      &lt;li style="" class="sIFR-replaced"&gt;&lt;object width="116" height="37" class="sIFR-flash" type="application/x-shockwave-flash" id="sIFR_replacement_2" name="sIFR_replacement_2" data="/swf/bfuturah.swf" style=""&gt;&lt;param name="flashvars" value="id=sIFR_replacement_2&amp;amp;content=%253Ca%2520href%253D%2522/home/contact%2522%2520target%253D%2522%2522%253ECONTACT%253C/a%253E&amp;amp;width=76&amp;amp;renderheight=37&amp;amp;link=/home/contact&amp;amp;target=&amp;amp;size=26&amp;amp;css=.sIFR-root%257Bcolor%253A%2523999999%253B%257Da%257Bcolor%253A%2523999999%253Btext-decoration%253Anone%253B%257Da%253Ahover%257Bcolor%253A%2523CCCCCC%253Btext-decoration%253Anone%253B%257D&amp;amp;cursor=pointer&amp;amp;tunewidth=0&amp;amp;tuneheight=0&amp;amp;offsetleft=&amp;amp;offsettop=&amp;amp;fitexactly=true&amp;amp;preventwrap=false&amp;amp;forcesingleline=true&amp;amp;antialiastype=&amp;amp;thickness=&amp;amp;sharpness=&amp;amp;kerning=&amp;amp;gridfittype=pixel&amp;amp;flashfilters=&amp;amp;opacity=100&amp;amp;blendmode=&amp;amp;selectable=true&amp;amp;fixhover=true&amp;amp;events=false&amp;amp;delayrun=false&amp;amp;version=436"/&gt;&lt;param name="wmode" value="transparent"/&gt;&lt;param name="bgcolor" value="transparent"/&gt;&lt;param name="allowScriptAccess" value="always"/&gt;&lt;param name="quality" value="best"/&gt;&lt;/object&gt;&lt;span class="sIFR-alternate" id="sIFR_replacement_2_alternate"&gt;&lt;a href="/home/contact"&gt;contact&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
      &lt;li style="" class="sIFR-replaced"&gt;&lt;object width="110" height="37" class="sIFR-flash" type="application/x-shockwave-flash" id="sIFR_replacement_3" name="sIFR_replacement_3" data="/swf/bfuturah.swf" style=""&gt;&lt;param name="flashvars" value="id=sIFR_replacement_3&amp;amp;content=%253Ca%2520href%253D%2522/archive%2522%2520target%253D%2522%2522%253EARCHIVE%253C/a%253E&amp;amp;width=72&amp;amp;renderheight=37&amp;amp;link=/archive&amp;amp;target=&amp;amp;size=26&amp;amp;css=.sIFR-root%257Bcolor%253A%2523999999%253B%257Da%257Bcolor%253A%2523999999%253Btext-decoration%253Anone%253B%257Da%253Ahover%257Bcolor%253A%2523CCCCCC%253Btext-decoration%253Anone%253B%257D&amp;amp;cursor=pointer&amp;amp;tunewidth=0&amp;amp;tuneheight=0&amp;amp;offsetleft=&amp;amp;offsettop=&amp;amp;fitexactly=true&amp;amp;preventwrap=false&amp;amp;forcesingleline=true&amp;amp;antialiastype=&amp;amp;thickness=&amp;amp;sharpness=&amp;amp;kerning=&amp;amp;gridfittype=pixel&amp;amp;flashfilters=&amp;amp;opacity=100&amp;amp;blendmode=&amp;amp;selectable=true&amp;amp;fixhover=true&amp;amp;events=false&amp;amp;delayrun=false&amp;amp;version=436"/&gt;&lt;param name="wmode" value="transparent"/&gt;&lt;param name="bgcolor" value="transparent"/&gt;&lt;param name="allowScriptAccess" value="always"/&gt;&lt;param name="quality" value="best"/&gt;&lt;/object&gt;&lt;span class="sIFR-alternate" id="sIFR_replacement_3_alternate"&gt;&lt;a href="/archive"&gt;archive&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
  &lt;a href="/archive"&gt;    &lt;/a&gt;&lt;li style="" class="sIFR-replaced"&gt;&lt;object width="80" height="37" class="sIFR-flash" type="application/x-shockwave-flash" id="sIFR_replacement_4" name="sIFR_replacement_4" data="/swf/bfuturah.swf" style=""&gt;&lt;param name="flashvars" value="id=sIFR_replacement_4&amp;amp;content=%253Ca%2520href%253D%2522/login%2522%2520target%253D%2522%2522%253ELOGIN%253C/a%253E&amp;amp;width=50&amp;amp;renderheight=37&amp;amp;link=/login&amp;amp;target=&amp;amp;size=26&amp;amp;css=.sIFR-root%257Bcolor%253A%2523999999%253B%257Da%257Bcolor%253A%2523999999%253Btext-decoration%253Anone%253B%257Da%253Ahover%257Bcolor%253A%2523CCCCCC%253Btext-decoration%253Anone%253B%257D&amp;amp;cursor=pointer&amp;amp;tunewidth=0&amp;amp;tuneheight=0&amp;amp;offsetleft=&amp;amp;offsettop=&amp;amp;fitexactly=true&amp;amp;preventwrap=false&amp;amp;forcesingleline=true&amp;amp;antialiastype=&amp;amp;thickness=&amp;amp;sharpness=&amp;amp;kerning=&amp;amp;gridfittype=pixel&amp;amp;flashfilters=&amp;amp;opacity=100&amp;amp;blendmode=&amp;amp;selectable=true&amp;amp;fixhover=true&amp;amp;events=false&amp;amp;delayrun=false&amp;amp;version=436"/&gt;&lt;param name="wmode" value="transparent"/&gt;&lt;param name="bgcolor" value="transparent"/&gt;&lt;param name="allowScriptAccess" value="always"/&gt;&lt;param name="quality" value="best"/&gt;&lt;/object&gt;&lt;span class="sIFR-alternate" id="sIFR_replacement_4_alternate"&gt;&lt;a href="/login"&gt;login&lt;/a&gt;&lt;/span&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>