﻿function addPDFViewer(container, fileName) {
    var flashvars = {
        SwfFile: escape(fileName),
        ProgressiveLoading: false,
        PrintEnabled: true,
        FullScreenAsMaxWindow: false,
        Scale: "0.75"
    }

    var attributes = {};
    attributes.id = "FlexPaperViewer";
    attributes.name = "FlexPaperViewer";

    var params = {};
    params.quality = "high";
    params.bgcolor = "#ffffff";
    params.allowscriptaccess = "sameDomain";
    params.allowfullscreen = "true";
    params.wmode = "opaque";
    swfobject.embedSWF("/Static/ElectronicViewer/FlexPaperViewer.swf", container, "570", "450", "10.0.0", "/Static/ElectronicViewer/expressInstall.swf", flashvars, params, attributes);
}
