﻿function createMySilverlightPlugin(isCatalog)
{
    Silverlight.createObject(
        "../ClientBin/MyKleenex.xap",                  // Source property value.
        parentElement,                  // DOM reference to hosting DIV tag.
        "designCanvasSL",         // Unique plug-in ID value.
        {                               // Per-instance properties.
            width:'934',                // Width of rectangular region of 
                                        // plug-in area in pixels.
            height:'581',               // Height of rectangular region of 
                                        // plug-in area in pixels.
            inplaceInstallPrompt:false, // Determines whether to display 
                                        // in-place install prompt if 
                                        // invalid version detected.
            background:'#FFFFFF',       // Background color of plug-in.
            isWindowless:'true',       // Determines whether to display plug-in 
                                        // in Windowless mode.
            framerate:'24',             // MaxFrameRate property value.
            version:'2.0.30523'               // Silverlight version to use.
        },
        {
            onError:null,               // OnError property value -- 
                                        // event handler function name.
            onLoad:null                 // OnLoad property value -- 
                                        // event handler function name.
        },
        isCatalog,
        null);                          // Context value -- event handler function name.
}
