﻿if (!window.Silverlight)
    window.Silverlight = {};

function createSilverlight() {

    Silverlight.createDelegate = function(instance, method) {
        return function() {
            return method.apply(instance, arguments);
        }
    }
    var scene = new LottoLogic.Scene();
    Silverlight.createObject(
                "Scene.xaml",
                content,
                "_mainBoard",
                 {
                     width: '700',
                     height: '500',
                     background: 'White',
                     inplaceInstallPrompt: false,
                     isWindowless: 'false',
                     framerate: '24',
                     version: '0.8'
                 },
                {
                    onLoad: Silverlight.createDelegate(scene, scene.handleLoad)
                },
                null);
}

