﻿if (!window.academy_index_090309)
	academy_index_090309 = {};

academy_index_090309.Page = function() 
{
}

academy_index_090309.Page.prototype =
{
	// Sample event handler
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;
		
		// The following line of code shows how to find an element by name and call a method on it.
		this.control.content.findName("main").Begin();
		this.control.content.findName("hover01").addEventListener("MouseEnter", Silverlight.createDelegate(this, this.handleMouseEnterButton01));
		this.control.content.findName("hover01").addEventListener("MouseLeave", Silverlight.createDelegate(this, this.handleMouseLeaveButton01));
        this.control.content.findName("hover02").addEventListener("MouseEnter", Silverlight.createDelegate(this, this.handleMouseEnterButton02));
		this.control.content.findName("hover02").addEventListener("MouseLeave", Silverlight.createDelegate(this, this.handleMouseLeaveButton02));
		this.control.content.findName("hover03").addEventListener("MouseEnter", Silverlight.createDelegate(this, this.handleMouseEnterButton03));
		this.control.content.findName("hover03").addEventListener("MouseLeave", Silverlight.createDelegate(this, this.handleMouseLeaveButton03));
	},
	
	// Sample event handler
	handleMouseEnterButton01: 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("enterbutton01").Begin();
	},
	
	// Sample event handler
	handleMouseLeaveButton01: 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("leavebutton01").Begin();
	},
	
	// Sample event handler
	handleMouseEnterButton02: 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("enterbutton02").Begin();
	},
	
	// Sample event handler
	handleMouseLeaveButton02: 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("leavebutton02").Begin();
	},		
	
	// Sample event handler
	handleMouseEnterButton03: 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("enterbutton03").Begin();
	},
	
	// Sample event handler
	handleMouseLeaveButton03: 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("leavebutton03").Begin();
	}
}