// JScript source code

//contains calls to silverlight.js, examples are below

//setting the alpha-channel in the 'background' parameter drastically affects the cost of rendering

// Client_Resources/SilverlightElements/XAML/Andy_hlavicka.xaml
function createSilverlightEx()
{  
    Silverlight.createObjectEx({
        source: '/Client_Resources/SilverlightElements/xaml_img/blog_hlavicka.xaml',          // Source property value.
        parentElement:parentElement,    // DOM reference to hosting DIV tag.
        id:'Temelios_videoznelka',      // Unique plug-in ID value.
        properties:{                    // Plug-in properties.
            width:'222',               // Width of rectangular region of plug-in, in pixels.
            height:'92',               // Height of rectangular region of plug-in, in pixels.
            inplaceInstallPrompt:false, // Determines whether to display in-place install prompt if invalid version is detected.
            background:'white',         // Background color of plug-in.
            isWindowless:'false',       // Determines whether to display plug-in in windowless mode.
            framerate:'24',             // MaxFrameRate property value.
            version:'1.0'},             // Silverlight version.
        events:{
            onError:null,               // OnError property value -- event-handler function name.
            onLoad:null},               // OnLoad property value -- event-handler function name.
        initParams:null,                // initParams property value -- user-settable string for information passing.
        context:null});                 // Context value -- passed to Silverlight.js onLoad event handlers.
}

