function createSiteHeader()
{
	var scene = new CH9SiteHeader.Page();
	Silverlight.createObjectEx({
		source: "/themes/default/common/SiteHeader/Header.xaml",
		parentElement: document.getElementById("SilverlightControlHost"),
		id: "SilverlightControl",
		properties: {
			width: "100%",
			height: "100%",
			version: "1.0"
		},
		events: {
			onLoad: Silverlight.createDelegate(scene, scene.handleLoad)
		}
	});
}


if (!window.Silverlight) 
	window.Silverlight = {};

Silverlight.createDelegate = function(instance, method) {
	return function() {
		return method.apply(instance, arguments);
	}
}


function StartPlayer_Header(parentId) {
    this._hostname = EePlayer.Player._getUniqueName("xamlHost");
    Silverlight.createObjectEx( {   source: '/themes/default/common/siteheader/header.xaml', 
                                        parentElement: $get(parentId ||"divPlayer_Header"), 
                                        id:this._hostname, 
                                        properties:{ width:'100%', height:'100%', version:'1.0', background:document.body.style.backgroundColor, isWindowless:'false' }, 
                                        events:{ onLoad:Function.createDelegate(this, this._handleLoad) } } );
}
StartPlayer_Header.prototype= {
    _handleLoad: function() {
    }
}
