function nedstat(countername)
{
    nedstat(countername, '');
}

function nedstat(countername, customparams)
{
    if(countername != "")
    {
        // Finally replace problem characters
        countername = countername.replace(/\&amp\;/g, "and");
        countername = countername.replace(/\&lt\;/g, "");
        countername = countername.replace(/\&gt\;/g, "");
        countername = countername.replace(/ /g, "_");
        countername = countername.replace(/[\/\&]/g, "and");
        countername = countername.replace(/[\%\,\'\=\\\<\>\+\(]/g, "");
        countername = countername.toLowerCase();

        function sitestat(ns_l)
        {
            ns_l += '&amp;ns__t='+(new Date()).getTime();
            ns_pixelUrl = ns_l; 
            ns_0 = document.referrer; 
            ns_0 = (ns_0.lastIndexOf('/') == ns_0.length - 1) ? ns_0.substring(ns_0.lastIndexOf('/'), 0) : ns_0;
            ns_l += customparams
            if(ns_0.length > 0)
                ns_l += '&amp;ns_referrer=' + escape(ns_0); 
            if(document.images)
            {
                ns_1 = new Image();
                ns_1.src=ns_l;
            }
            else
                document.write('<img src="'+ns_l+'" width="1" height="1" alt="">');
        }
        
        sitestat("http" + (window.location.protocol.indexOf('https:') == 0 ? 's' : '') + "://uk.sitestat.com/morrisons/morrisons/s?" + countername);
    }
    // Sitestat4 end timing code for Home page only
    ns_loadingtime2=(new Date()).getTime()
    //-->
}

//&amp;wm_counter=homepage&amp;wm_colour=red&amp;wm_price=9.99&amp;wm_country=spain&amp;wm_grape=graciano
