var __glb_currentId = 0;

function killEvent(e) {
    e = e || window.event;
    e.preventDefault();
    if (e.stopPropagation)
        e.stopPropagation();
    e.cancelBubble = true;
}

$(function() {
    $(".selectableRow").each(function(i) {
        var $this = $(this);
        var link = $this.find(".selectableRowLink")[0];
        var href = $(link).attr("href");
        $this.hover(function(e) {
            $(this).addClass("hoverBlock");
        }, function() {
            $(this).removeClass("hoverBlock");
        }).
        click(function(e) {
            killEvent(e);
            window.location = href;
        });
    });
    $(".selectableRow a:not(.selectableRowLink)").click(function(e) {
    	killEvent(e);
    	var href = $(this).attr("href");
        window.location = href;
    });
});

