function createSilverlight()
{
    
    Silverlight.createObjectEx({
        source: "interface.xaml",
        parentElement: document.getElementById("SilverlightControlHost"),
        id: "SilverlightControl",
        properties: {
            width: "600",
            height: "400",
            background:"#333",
            isWindowless: "false",
            framerate:"30",
            version: "1.0"
        },
        events: {
           // onError: 'errorHandle', onLoad: Silverlight.createDelegate(scene, scene.handleLoad)
        }
    });
}


Silverlight.createDelegate = function(instance, method) {
	return function() {
        return method.apply(instance, arguments);
    }
}
