﻿if (!window.banner_150x300)
	banner_150x300 = {};

banner_150x300.Page = function() 
{
}

banner_150x300.Page.prototype =
{
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;
		
		// Sample event hookup:	
		this.control.content.findName("main_anim").Begin();
		//rootElement.addEventListener("MouseEnter", Silverlight.createDelegate(this, this.onMouseEnter));
		this.control.content.findName("BTN").addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.onMouseEnter));
	},
	
	// 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();
	},
	
	onMouseEnter: function (sender, eventArgs)
	{
	    window.open("http://www.microsoft.com/malaysia/events/dotnet/", "_blank");
	}
}