﻿
/*
$(document).ready(function() {
    handleEqualHeight($(".column"));
    handleEmails();
    handleSubNav();
    handleStatsTables();
    handleLinks();
});


function handleEqualHeight(group) {
    tallest = 0;
    group.each(function() {
        thisHeight = $(this).height();
        if (thisHeight > tallest) {
            tallest = thisHeight;
        }
    });
    if ($.browser.msie && $.browser.version.substr(0, 1) < 7) {
        group.css("height", tallest);
    } else {
        group.css("min-height", tallest);
    }
}
function handleLinks() {
    $('a').click(function() {
        $(this).blur();
    });
}
function handleStatsTables() {
    if ($(".stats-table")) {
        if ($.browser.msie && $.browser.version.substr(0, 1) < 7) {
            $(".stats-table tbody tr").mouseover(function() {
                $(this).addClass("hover");
            }).mouseout(function() {
                $(this).removeClass("hover");
            })
        }
        $(".stats-table tbody tr").click(function() {
            window.location.href = 'stats-publication.htm';
        });
    }
}
function handleSubNav() {
    if ($("#subnav .expandable")) {
        $("#subnav .open").next().show();
        $("#subnav .expandable").click(function(e) {
            e.preventDefault();
            if ($(this).hasClass("closed")) {
                $(this).addClass("open").removeClass("closed").next().show("slow");
            } else {
                $(this).addClass("closed").removeClass("open").next().hide();
            }
        });
    }
}
function handleEmails() {
    $("#hcard-Peter-Djurup a").click(function(e) {
        e.preventDefault();
        sendEmail('pd/fdim.dk');
    });
    $("#hcard-Mette-Bentow a").click(function(e) {
        e.preventDefault();
        sendEmail('mb/fdim.dk');
    });
    function sendEmail(sEmail) {
        tempmail = sEmail;
        sNyEmail = tempmail.replace('/', '@');
        location = 'mailto:' + sNyEmail;
    }
}*/
