if (!window.UntitledProject1)
	UntitledProject1 = {};

UntitledProject1.Page = function() 
{
}

UntitledProject1.Page.prototype =
{
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;
		
		this.Img1 = control.content.findName("r1");
        this.Img1.addEventListener("MouseLeftButtonUp", Silverlight.createDelegate(this, this.handleMouseUp1));
		this.Img2 = control.content.findName("r2");
        this.Img2.addEventListener("MouseLeftButtonUp", Silverlight.createDelegate(this, this.handleMouseUp2));
		this.Img3 = control.content.findName("r3");
        this.Img3.addEventListener("MouseLeftButtonUp", Silverlight.createDelegate(this, this.handleMouseUp3));
		this.Img4 = control.content.findName("r4");
        this.Img4.addEventListener("MouseLeftButtonUp", Silverlight.createDelegate(this, this.handleMouseUp4));
		
		
		// Sample event hookup:	
		rootElement.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown));
	},
	
	// Sample event handler
	handleMouseDown: function(sender, eventArgs) 
	{
		// The following line of code shows how to find an element by name and call a method on it.
		// this.control.content.findName("Storyboard1").Begin();
	},
	handleMouseUp1: function(sender, eventArgs)
    {
       window.location.href = "page/dovody-preco-pri-vyucovani-pouzivat-pocitace.aspx"; 
    },
	handleMouseUp2: function(sender, eventArgs)
    {
       window.location.href = "Videogaleria.aspx"; 
    },
	handleMouseUp3: function(sender, eventArgs)
    {
       window.location.href = "page/ako-to-vidia-ziaci-reakcie-deti.aspx"; 
    },
	handleMouseUp4: function(sender, eventArgs)
    {
       window.location.href = "page/ako-to-prebiehalo.aspx"; 
    }
	
}
