﻿$(document).ready(function(){
    DogProd.showTip('.pinHover');
});

//Dog Product Namespace
var DogProd = {};
DogProd.tipTimer;

DogProd.showTip = function(el) {
    var next = $(el).next();
    $(el).mouseenter(function(e) {
        clearTimeout(DogProd.tipTimer);
        next.show();
    });
    $(el).mouseleave(function(e) {
        DogProd.showTipTimer(next);
    });
};

DogProd.showTipTimer = function(el) {
    clearTimeout(DogProd.tipTimer);
    DogProd.tipTimer = setTimeout(function() {
        el.hide();
    }, 5000);
};
