///////////////////////////////////////////////////////////////////////////////
//
//  CreateSilverlight.js   version 0.9
//
//  This file is provided by Microsoft as a helper file for websites that
//  incorporate Silverlight Objects. The default parameters below comply with 
//  Silverlight v1.0 Beta, which exposes 0.9 as its version number.     
//  This file is provided as is.
// 
// © 2007 Microsoft Corporation. All Rights Reserved.
//
// This file is licensed as part of the Silverlight 1.0 SDK, for details look here: http://go.microsoft.com/fwlink/?LinkID=89144&clcid=0x409
//
///////////////////////////////////////////////////////////////////////////////


// JScript source code

//contains calls to silverlight.js, examples are below

function createSilverlight(source, destination, width, height, inplaceInstallPrompt, background, isWindowless, framerate, version, onError, onLoad)

{  
    //example calls, please replace with calls that match your site's requirements    
    Sys.Silverlight.createObject(source, destination, "AgControl1",
                                 {width:width, height:height, inplaceInstallPrompt:inplaceInstallPrompt, background:background, isWindowless:isWindowless, framerate:framerate, version:version},
                                 {onError:onError, onLoad:onLoad},
                                 null);
                                 
                                 
    //Sys.Silverlight.createObjectEx({source: 'xaml/piano.xml', parentElement:pe, id:'AgControl1', properties:{width:'1024', height:'530', background:'white', isWindowless:'false', framerate:'24', version:'0.90.0'}, events:{onError:null, onLoad:null}, context:null});
    
}
