function createSilverlight()
{
	var scene = new CollageDisplay.Page();
	Silverlight.createObjectEx(
		{
			source: "content/animation/Page.xaml",
			parentElement: document.getElementById("silverlightControlHost"),
			id: "SilverlightControl",
			properties: {
				width: "500px",
				height: "375px",
				version: "1.0"
			},
			events: {
				onLoad: Silverlight.createDelegate(scene, scene.handleLoad)
			}
		}
	);
}
	
if (!window.Silverlight) 
	Silverlight = {};

	Silverlight.createDelegate = function(instance, method) {
	return function() {
		return method.apply(instance, arguments);
	}
}

