function createSilverlight(url) {  

   Silverlight.createHostedObjectEx({  

        source: "/_layouts/images/VideoPlayer/Page.xaml",  

        parentElement: document.getElementById("SilverlightControlHost"),  

        id: "SilverlightControl",  

        properties: {  

            width: "575",  

            height: "350",  

            background:"#000000",  

            isWindowless: "false",  

            framerate:"30",  

            version: "1.0"  

        },  

        events: {  

        },  

        initParams:"streaming:/58703" + url  

    });  

}


if (!window.Silverlight) 
	window.Silverlight = {};

Silverlight.createDelegate = function(instance, method) {
	return function() {
		return method.apply(instance, arguments);
	}
}

function RootCanvasLoaded(sender, eventArgs){
    alert(url);
}