﻿
function createSilverlight()
{
    
    Silverlight.createObjectEx({
        source: "interface.xaml",
        parentElement: document.getElementById("SilverlightControlHost"),
        id: "SilverlightControl",
        properties: {
            width: "100%",
            height: "100%",
            background:"#333",
            inplaceInstallPrompt: "true",
            isWindowless: "false",
            framerate:"30",
            version: "1.0"
        },
        events: { //onLoad: handleLoad
        }
    });
}

if (!window.Silverlight) 
	window.Silverlight = {};

Silverlight.createDelegate = function(instance, method) {
	return function() {
		return method.apply(instance, arguments);
	}
}
