///////////////////////////////////////////////////////////////////////////////
//
//  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()

{  
    //example calls, please replace with calls that match your site's requirements    
Silverlight.createObject("xaml/plugin.xaml", 
                                  SilverlightControlHost,  
                                  "wpfobj",
                                  {width:'810', height:'630', inplaceInstallPrompt:false, background:'lightgray', isWindowless:'false', framerate:'36', version:'1.0'},
                                  {onError:null, onLoad:null},
                                  null);


    
}
function createSilverlightMedia()

{  
    //example calls, please replace with calls that match your site's requirements    
Silverlight.createObject("xaml/ReplayInkVideo.xaml", 
                                  ReplayInkHost,  
                                  "wpfobj",
                                  {width:'810', height:'400', inplaceInstallPrompt:false, background:'lightgray', isWindowless:'false', framerate:'24', version:'1.0'},
                                  {onError:null, onLoad:null},
                                  null);


    
}


function createSilverlightDrawOnly()

{  
    //example calls, please replace with calls that match your site's requirements    
Silverlight.createObject("xaml/DrawOnly.xaml", 
                                  DrawOnlyHost,  
                                  "wpfobj",
                                  {width:'400', height:'200', inplaceInstallPrompt:false, background:'lightgray', isWindowless:'false', framerate:'50', version:'1.0'},
                                  {onError:null, onLoad:null},
                                  null);
}

function createSilverlightDrawWithColors()

{  
    //example calls, please replace with calls that match your site's requirements    
Silverlight.createObject("xaml/DrawWithColors.xaml", 
                                  DrawWithColorsHost,  
                                  "wpfobj",
                                  {width:'400', height:'200', inplaceInstallPrompt:false, background:'lightgray', isWindowless:'false', framerate:'50', version:'1.0'},
                                  {onError:null, onLoad:null},
                                  null);

    
}

function createSilverlightGetInk()

{  
    //example calls, please replace with calls that match your site's requirements    
Silverlight.createObject("xaml/GetInk.xaml", 
                                  GetInkHost,  
                                  "wpfobj",
                                  {width:'600', height:'400', inplaceInstallPrompt:false, background:'lightgray', isWindowless:'false', framerate:'50', version:'1.0'},
                                  {onError:null, onLoad:null},
                                  null);

    
}
function createSilverlightSaveInk()

{  
    //example calls, please replace with calls that match your site's requirements    
Silverlight.createObject("xaml/saveInk.xaml", 
                                  SaveInkHost,  
                                  "wpfobj",
                                  {width:'800', height:'400', inplaceInstallPrompt:false, background:'lightgray', isWindowless:'false', framerate:'50', version:'1.0'},
                                  {onError:null, onLoad:null},
                                  null);

    
}

     
function createSilverlightReplayInk()

{  
    //example calls, please replace with calls that match your site's requirements    
Silverlight.createObject("xaml/ReplayInk.xaml", 
                                  ReplayInkHost,  
                                  "wpfobj",
                                  {width:'800', height:'400', inplaceInstallPrompt:false, background:'white', isWindowless:'false', framerate:'24', version:'1.0'},
                                  {onError:null, onLoad:null},
                                  null);

    
}
function createSilverlightReplayInkEnhanced()

{  
    //example calls, please replace with calls that match your site's requirements    
Silverlight.createObject("xaml/ReplayInkEnhanced.xaml", 
                                  ReplayInkHost,  
                                  "wpfobj",
                                  {width:'800', height:'400', inplaceInstallPrompt:false, background:'white', isWindowless:'false', framerate:'24', version:'1.0'},
                                  {onError:null, onLoad:null},
                                  null);

    
}