views:

48

answers:

0

I have this in the js file:

vars explained (%id=inject is: @inject) (#%id% is just the wrapper div)

     $(document).ready(function(){

var injectionKey = /%id=inject%/ig;
var injectionStack = $('#%id%').html();

      (function($) {
  var theInjectionPage = $("body");
  theInjectionPage.html(theInjectionPage.html().replace(injectionKey, injectionStack)); 
})(jQuery)


    });

And this in the head of the html:

    <script type="text/javascript">
        Cufon.replace('h1.siteTitle', { fontFamily: 'days' });
    </script>

The site title is replaced by the cufon, but my js is breaking the cufon on the title completely, and i cant figure out why.?