if (!window.BlogMiniDemo)
	window.BlogMiniDemo = {};

BlogMiniDemo.Page = function() 
{
}

BlogMiniDemo.Page.prototype =
{
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;
		
		// Sample event hookup:	
		rootElement.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown));
	},
	
	// Sample event handler
	handleMouseDown: function(sender, eventArgs) 
	{
    var elem = this.control.content.findName("helloWorld");
    if (elem.Text == "Hello world!") {
      elem.Text = "Klik igen!";
    } else {
      elem.Text = "Hello world!";
    }
	}
}
