﻿if (!window.test)
	test = {};

test.Page = function() 
{
}

test.Page.prototype =
{
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;
		//this.Btn1 = control.content.findName("ctlButtonCanvas");

		this.control.content.findName("mainAnimation").Begin();
		// Sample event hookup:	
		rootElement.addEventListener("MouseEnter", Silverlight.createDelegate(this, this.handleMouseEnter));
		rootElement.addEventListener("MouseLeave", Silverlight.createDelegate(this, this.handleMouseLeave));
		rootElement.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown));
		
	},
	
	// Sample event handler
	handleMouseEnter: 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("RollOver").Begin();
	},
	handleMouseLeave: function(sender, eventArgs) 
	{
		
		this.control.content.findName("RollOut").Begin();
	},
	handleMouseDown: function(sender, eventArgs) 
	{
		
		
		window.open("http://view.atdmt.com/action/inmsmb_DYNAMICSEDMGetaTrial_1", "_blank");

	}
	


}