function createSilverlight()
{
	var scene = new Bingo();
	Silverlight.createObjectEx({
		
			source: 'xaml/main.xaml',
			parentElement: document.getElementById("mySilverlightPluginHost"),
			id:'mySilverlightPlugin',
			properties:{
				width:'100%',
				height:'100%',
				background:'black',
				isWindowless:'true',
				framerate:'24',
				enableFramerateCounter:'false',
				version:'1.0'
			},
			events:{
				onError:null,
				onLoad:Silverlight.createDelegate(scene, scene.handleLoad)
			}, context:null
	});
}

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