﻿String.prototype.trim = function() {
    return this.replace(/^\s+|\s+$/g, "");
}

jQuery(document).ready(function($) {

function mousedownSignatureProductGroupTracking(e) {

        var clickedOn = $(e.target);
        var zone = $(this);

        // did they click a link or something wrapped in a link? If so, track it.
        if (clickedOn.is('a') || clickedOn.parents('a:first').size() == 1 ) {

            if (typeof (CreateOnClickEvent) != "undefined")
                CreateOnClickEvent('ProductGroup', 33, e.data.section)   // eVar33

            zone.unbind('mousedown');

            // only unbind the parent if an image is clicked
            if (clickedOn.is('img'))
                zone.parents().unbind('mousedown');
        }
    }

    // Click Events to bind    -----------------------------------------------

    // 'div' tag with id 'seeMore'
    $('div#seeMore').bind('mousedown', function() { CreateOnClickEvent("BackToCore", 35, "ProdGroupBottom"); $(this).unbind('mousedown'); });
    $('.coreStoreLink').bind('mousedown', function() { CreateOnClickEvent("BackToCore", 35, "ProdGroupTop"); $(this).unbind('mousedown'); });

});