﻿if (!window.logo)
	logo = {};

logo.Page = function() 
{
}

logo.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) 
	{
		// 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();
	}
}



function ButtonMouseEnter(sender, eventArgs)
{  
    if(sender.name == "btn")
    {
		sender.findName("anim_2").begin();
    }
}

function ButtonMouseClick(sender, eventArgs)
{  
    if(sender.name == "btn")
    {
		window.open("index.html","_self");
    }
}