﻿if (!window.Salvattore)
	SilverlightSite1 = {};

SilverlightSite1.Page = function() 
{
}

SilverlightSite1.Page.prototype =
{
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;
		
		// Sample event hookup:
		rootElement.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.handleMouseDown));
		rootElement.addEventListener("MouseEnter", Silverlight.createDelegate(this, this.handleMouseEnter));
		rootElement.addEventListener("MouseLeave", Silverlight.createDelegate(this, this.handleMouseLeave));
	},
	
	// Sample event handler
	handleMouseEnter: function(sender, eventArgs) 
	{
		this.control.content.findName("enter").Begin();
	},
	
	handleMouseLeave: function(sender, eventArgs) 
	{
		this.control.content.findName("leave").Begin();
	}
	
}

function hyperlink_MouseLeftButtonDown(sender, args) {
    window.location = "http://www.microsoft.com/brasil/technet/ithero/salvattore";
}