function createSilverlight()
{
	var scene = new PageTurn(50);  //maxPages
	
	Silverlight.createObjectEx({
		source: "xaml/Scene.xaml",
		parentElement: document.getElementById("SilverlightControlHost"),
		id: "SilverlightControl",
		properties: {
			width: "1004",
			height: "740",
			version: "1.0",
			isWindowless:'true',
			background: "#303F9A"
			
		},
		events: {
			onLoad: Silverlight.createDelegate(scene, scene.handleLoad)
		}
	});
}

/*if (!window.Sys)
	window.Sys = {};*/
	
if (!window.Silverlight) 
	window.Silverlight = {};

Silverlight.createDelegate = function(instance, method)
{
	return function() {
        return method.apply(instance, arguments);
    }
}
