// JScript source code

//contains calls to silverlight.js, examples are below



function createSilverlight()

{  
    //example calls, please replace with calls that match your site's requirements    
    //Silverlight.createObject("xaml/piano.xml", pe, "AgControl1",
                                 //{width:'1024', height:'530', inplaceInstallPrompt:false, background:'white', isWindowless:'false', framerate:'24', enableFramerateCounter:false, version:'1.0'},
                                 //{onError:null, onLoad:null, onResize:onResize},
                                 //null);
                             
                                 
   //Silverlight.createObjectEx({source: 'xaml/piano.xml', parentElement:pe, id:'AgControl1', properties:{width:'1024', height:'530', background:'white', isWindowless:'false', framerate:'24', enableFramerateCounter:false, version:'1.0'}, events:{onError:null, onLoad:null, onResize:null}, context:null});
    
}


function createSilverlightEx()
{  
    Silverlight.createObjectEx({
        source: '#xamlContent',         // Source property value.
        parentElement:parentElement,    // DOM reference to hosting DIV tag.
        id:'myPlugin',                 // Unique plugin id value.
        properties:{                    // Plugin properties.
            width:'400',                // Width of rectangular region of plugin in pixels.
            height:'400',                // Height of rectangular region of plugin in pixels.
            version:'1.1'},             // Silverlight version.
        events:{
            onLoad:null}});             // OnLoad property value -- event handler function name.
}


