var keepHover;
var boxInfo;
var parentNode;
function showBubble(id)  {
    var p = jQuery(id);
    keepHover = id.id;
    parentNode = id.parentNode;
    parentNode.className = "active";
    var markerOffset = p.position();
    jQuery(".infoWindow").html(boxInfo);
    jQuery(".infoWindow").show().css({ top:markerOffset.top, left:markerOffset.left + 130});
}
function keepBubble()  {
    parentNode.className = "active";
    jQuery(".infoWindow").show();
}
function hideBubble()  {
    parentNode.className = '';
    var bubble = jQuery('.infoWindow');
    jQuery(bubble).hide();
}
function bubbleHtml(el, link, refine, sub)  {
    boxInfo = "<ul class='options'>";
    boxInfo += "<li><a href='"+refine+"' rel='nofollow'>Refine by this</a></li>";
    boxInfo += "<li><a href='"+link+"' rel='nofollow'>New search with this</a></li>";
    boxInfo += "<li><a href='"+sub+"' rel='nofollow'>Subtract from search</a></li>";
    boxInfo += "</ul>";
}
