function createSilverlight()
{
	var scene = new Windows_Vista_Volume_Activation_2.Page();
	Silverlight.createObjectEx({
		source: "XAML/Page.xaml",
		parentElement: document.getElementById("divPlayer_0"),
		id: "SilverlightControl",
		properties: {
			width: "765px",
			height: "511px",
			version: "1.0"
		},
		events: {
			onLoad: Silverlight.createDelegate(scene, scene.handleLoad)
		}
	});
}

 
                                        
function testfunction(){
	createSilverlight();
}

if (!window.Silverlight) 
	window.Silverlight = {};

Silverlight.createDelegate = function(instance, method) {
	return function() {
		return method.apply(instance, arguments);
	}
}