﻿/// <reference path="../../../../../../jquery-1.4.1-vsdoc.js" />

function printSpecial() {
    var html = '<html><head>';
    if (document.getElementsByTagName != null) {
        var headTags = document.getElementsByTagName("head");
        if (headTags.length > 0)
            html += headTags[0].innerHTML;
    }
    html += '</head><body>';
    var printReadyElem = document.getElementById("pageText");
    if (printReadyElem != null) {
        html += printReadyElem.innerHTML;
    }
    else {
        alert("Could not find the pageText div");
        return;
    }
    html += '</body></html>';
    var printWin = window.open("", "printSpecial");
    printWin.document.open();
    printWin.document.write(html);
    printWin.document.close();
    printWin.print();
}

$(document).ready(function() {
    $("a.iframe").fancybox({
        'type': 'iframe',
        'overlayshow': true,
        'padding': 0,
        'margin': 20,
        'width': 600,
        'height': 355
    });
    $("li.master_leftmenu_toplevel").click(function() {
        $("ul.master_leftmenu_submenu").hide();
        $(this).children("ul").show();
    });
});

