///////////////////////////////////////////////////////////////////////////////
//
//  clock.xaml.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()
{
    var scene = new Clock();
    Sys.Silverlight.createObjectEx({
        source:'xaml/clock.xml',
        parentElement: AgControl1Host,
        id:'AgControl1',
        properties: {
            width:'350',
            height:'350',
            background:'#00000000',
            isWindowless: 'true',
            framerate:'30',
            version:'0.8' },
        events: { 
            onLoad: Sys.Silverlight.createDelegate(scene, scene.handleLoad) 
        },
        context:null });
}
if (!window.Sys)
	window.Sys = {};
	
if (!window.Silverlight) 
	window.Silverlight = {};

Sys.Silverlight.createDelegate = function(instance, method) {
	return function() {
        return method.apply(instance, arguments);
    }
}
