///////////////////////////////////////////////////////////////////////////////
//
//  createsilverlight.js
//
// 
// © 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
//
///////////////////////////////////////////////////////////////////////////////

function createSilverlight()
{
    Silverlight.createObjectEx({source:'xaml/scene.xaml',
                                    parentElement: document.getElementById('agControlHost1'),
                                    id:'agControl1',
                                    properties: { width:'100%',
                                                  height:'100%',
                                                  background:'#ffffffff',
                                                  isWindowless: 'false',
                                                  framerate:'30',
                                                  version:'0.8' },
                                    events: { onError: 'errorHandle',
                                              onLoad:null },
                                    context:null });
}
