﻿if (!window.windows_mobile)
	windows_mobile = {};

windows_mobile.Page = function() 
{
}

windows_mobile.Page.prototype =
{
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;		
		this.topcall = this.control.content.FindName ("topcall");
		this.topcall.addEventListener("MouseEnter", Silverlight.createDelegate(this, this.button_MouseEnter));
		this.topcall.addEventListener("MouseLeave", Silverlight.createDelegate(this, this.button_MouseLeave));		
		this.topcall.addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.button_MouseDown));		
	},
	
	button_MouseEnter: function(sender, eventArgs)
	{
	},
	
	button_MouseLeave: function(sender, eventArgs)
	{
	},
	
	button_MouseDown: function(sender, eventArgs)
	{
		if (sender.Name.toString() == "topcall")
		{
			window.open("http://go.microsoft.com/?linkid=9654127", "_blank", "");			
		}
	},
	
	button_MouseUp: function(sender, eventArgs)
	{		
	}	
	
}