﻿// JScript File
function createSilverlightControl()
{  
    
    Silverlight.createObject(
        "agTracker.xaml",               // XAML Source property value.
        agTracker,                      // DOM reference to hosting DIV tag.
        "agTracker",                    // Unique control ID value.
        {                               // Control properties.
            width:'800',                // Width of rectangular region of 
                                        // control in pixels.
            height:'600',               // Height of rectangular region of 
                                        // control in pixels.
            inplaceInstallPrompt:false, // Determines whether to display 
                                        // in-place install prompt if 
                                        // invalid version detected.
            background:'#00D6D6D6',     // Background color of control. (AARRGGBB)
            isWindowless:'true',        // Determines whether to display control 
                                        // in Windowless mode.
            framerate:'24',             // MaxFrameRate property value.
            version:'0.9'               // Control version to use. (0.9 = 1.0 Beta, 0.95 = 1.1 Alpha)
        },
        {
            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.
}
