﻿function createMySilverlightIntro()
{  
    Silverlight.createObject(
        "banner.xaml",                  // Source property value.
        parentElement,                  // DOM reference to hosting DIV tag.
        "myIntroPlugin",         // Unique plug-in ID value.
        {                               // Per-instance properties.
            width:'745',                // Width of rectangular region of 
                                        // plug-in area in pixels.
            height:'150',               // 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:'black',       // 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 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.
}


function createMySilverlightIntro2()
{  
    Silverlight.createObject(
        "banner2.xaml",                  // Source property value.
        parentElement,                  // DOM reference to hosting DIV tag.
        "myIntroPlugin",         // Unique plug-in ID value.
        {                               // Per-instance properties.
            width:'745',                // Width of rectangular region of 
                                        // plug-in area in pixels.
            height:'150',               // 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:'black',       // 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 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.
}



function createEclickticAnimation()
{  
    Silverlight.createObject(
        "eclicktic.xaml",                  // Source property value.
        parentElement,                  // DOM reference to hosting DIV tag.
        "myIntroPlugin",         // Unique plug-in ID value.
        {                               // Per-instance properties.
            width:'745',                // Width of rectangular region of 
                                        // plug-in area in pixels.
            height:'400',               // 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:'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 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.
}
