CSS working in the HTML, but not in Javascript?

CSS Sprites are working in the HTML of the page, but not in Javascript?

I am trying to install http://www.spyka.net/scripts/javascript/easy-social-bookmarks and add CSS Sprites to minimise the server calls.

Here is the main workings of the script which may also affect it:

sites[0] = new Array(‘https://easkme.com/index.php?Action=Blink/addblink.php&Url={url}’, ‘Easkme’, ”);

Here is the main workflow:

<script>
function swgbookmarks()
{
    for(i = 0; i < sites.length; i++)
    {
        var g = sites[i];
        var u = g[0];
        u = u.replace('{url}', escape(window.location.href));
        u = u.replace('{title}', escape(window.document.title));
        var img = (imagepath == '0') ? '' : '<img src="'+g[2]+'" alt="'+g[1]+'" />&nbsp; ';
        var k = '<a href="'+u+'">'+img+g[1]+'</a>&nbsp;';
        window.document.write(html_before+k+html_after);                
    }
}</script>

The social bookmark and image JS code:

sites[0] = new Array(‘https://easkme.com/index.php?Action=Blink/addblink.php&Url={url}’, ‘Blinklist’, ‘socialsprite social blinklist’);

Any ideas or help is very much appreciated.

Thank you.