﻿// JScript source code

//contains calls to silverlight.js, examples are below



function createMySilverlightPlugin()
{  
    Silverlight.createObject(
        "xaml/firstup.xaml",                  // Source property value.
        parentElement,                  // DOM reference to hosting DIV tag.
        "mySilverlightPlugin",         // Unique plugin ID value.
        {                               // Per-instance properties.
            width:'360',                // Width of rectangular region of 
                                        // plugin area in pixels.
            height:'280',               // Height of rectangular region of 
                                        // plugin area in pixels.
            inplaceInstallPrompt:false, // Determines whether to display 
                                        // in-place install prompt if 
                                        // invalid version detected.
            background:'#FFFFFF',       // Background color of plugin.
            isWindowless:'false',       // Determines whether to display plugin 
                                        // in Windowless mode.
            framerate:'24',             // MaxFrameRate property value.
            version:'1.0'               // Silverlight version to use.
        },
        {
            onError:null,               // OnError property value -- 
                                        // event handler function name.
            onLoad:null                 // OnLoad property value -- 
                                        // event handler function name.
        },
        null);                          // Context value -- event handler function name.
}



