
function createSilverlight()
{

	window.scene = new contentmaster.Scene();
	Silverlight.createObjectEx({
		source: "Scene.xaml",
		parentElement: document.getElementById("SilverlightControlHost"),
		id: "silverlightControl1",
		properties: {
			width: "100%",
			height: "100%",
			isWindowless:'true',
			background:'#00000000',
			version: "0.9"
		},
		events: {
			onLoad: Silverlight.createDelegate(window.scene, window.scene.handleLoad),
			onError: null/*Silverlight.createDelegate(window.scene, window.scene.handleError)*/
		}
	});
	
}


Silverlight.createDelegate = function(instance, method) {
	return function() {
        return method.apply(instance, arguments);
    }
}