if (!window.Ev8Website) window.Ev8Website = {}; Ev8Website.Scene = function() { } Ev8Website.Scene.prototype = { handleLoad: function(plugIn, userContext, rootElement) { this.plugIn = plugIn; this.SignupButton = rootElement.findName("SignupButton"); this.SignupButton.addEventListener("MouseEnter", Silverlight.createDelegate(this, this.handleMouseEnter)); this.SignupButton.addEventListener("MouseLeave", Silverlight.createDelegate(this, this.handleMouseLeave)); this.SignupButton.addEventListener("MouseLeftButtonUp", Silverlight.createDelegate(this, this.handleMouseLeftButtonUp)); }, handleMouseEnter: function(sender, eventArgs) { button = sender.findName("SignupButton"); button.Source = "images/signup_btn_on.png"; }, handleMouseLeave: function(sender, eventArgs) { button = sender.findName("SignupButton"); button.Source = "images/signup_btn.png"; }, handleMouseLeftButtonUp: function(sender, eventArgs) { var redirectUrl = "https%3A%2F%2Fwww.microsoft.com%2FInfrastructure%2FEvalu08%2Fauth.aspx"; var url = 'https://profile.microsoft.com/RegSysProfileCenter/wizard.aspx?wizid=0a3259a8-7b49-429a-81e3-a19efa0d163c&lcid=1033&brand=Microsoft&lcid=1033&fu=' + redirectUrl; document.location.href = url; } }