//------------------------------------------------------------------
function createSilverlight(w, h, object, xaml, repertoire, idString)
{
	repAnim = repertoire;

	Silverlight.createObjectEx({
		source: "" + repertoire + xaml,
		parentElement: document.getElementById(idString),
		id: idString + "_objectSilverlight",
		properties: {
			width: w,
			height: h,
			version: "1.0",
			background:'#00000000',
			isWindowless:'true'
		},
		events: {
			onLoad: Silverlight.createDelegate(object, object.handleLoad)
		}
	});
}




if (!window.Sys)
	window.Sys = {};
	
if (!window.Silverlight) 
	window.Silverlight = {};

Silverlight.createDelegate = function(instance, method) {
	return function() {
        return method.apply(instance, arguments);
    }
}