if (!window.RandomSquares)
	window.RandomSquares = {};

RandomSquares.Page = function() 
{
}

RandomSquares.Page.prototype =
{
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;
		rootElement.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown));
	},
	
	handleMouseDown: function(sender, eventArgs) 
	{
    var host = sender.getHost();
    host.content.fullScreen = ! host.content.fullScreen;
	}
}