﻿$(document).ready(function() {
    $(".popup-opener").click(function(e) {
        e.preventDefault();
        var popup = window.open($(this).attr("href"), "", "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=300,height=300");
        try {
            $(popup.document).ready(function() {
                var width = popup.document.activeElement.children[0].width + 15;
                var height = popup.document.activeElement.children[0].height + 50;
                popup.resizeTo(width, height);
            });
        }
        catch (exc) { }
    });

    $(".hidden-note-start").click(function() {
        var id = $(this).attr("id").replace("-start", "");
        $("#" + id).slideToggle();
    });
});
