﻿
$(function () {
    $(document).pngFix();
    $("#tools").change(onToolsChange);

    $('.jsocial').jsocial({
        twitter: 'MourantOzannes',
        facebook: 'facebook.com/pages/Mourant-Ozannes/138730152819607',
        linked: 'linkedin.com/company/mourant-ozannes',
        center: true,
        inline: true,
        small: true
    });

    // onload
    //$("iframe.resize").iframeAutoHeight();

    // onclick
    /* $("input.contourButton").click(function () {
    $("iframe.resize").iframeAutoHeight();
    });*/

    // event to trigger from iframe
    $(document).bind("resizeIframes", function (e) {
        $("iframe.resize").iframeAutoHeight();
    });

    // trigger on load
    $(document).trigger("resizeIframes");
});
function onToolsChange() {
    var selected = $("#tools option:selected");
    var value = selected.val();
    if (value) {
        if (value == "print")
            window.print();
        else if (value == "send")
            window.location = "/tools/send-page.aspx";
    }
}


