if (!window.animacao)
	animacao = {};

animacao.Page = function() 
{
}

animacao.Page.prototype =
{
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;
		
		// Cliques;	
		this.control.content.findName("logo_visual").addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.logo_visual_click));
		this.control.content.findName("banner_test").addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.banner_test_click));
		this.control.content.findName("banner_architecture").addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.banner_architeture_click));
		this.control.content.findName("banner_development").addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.banner_development_click));
		this.control.content.findName("banner_database").addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.banner_database_click));
		this.control.content.findName("banner_professional").addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.banner_professional_click));
		this.control.content.findName("banner_test_load").addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.banner_test_load_click));
		this.control.content.findName("banner_foundation").addEventListener("MouseLeftButtonDown", Silverlight.createDelegate(this, this.banner_foundation_click));

		// Anima In;	
		this.control.content.findName("logo_visual").addEventListener("MouseEnter", Silverlight.createDelegate(this, this.anima_in));
		this.control.content.findName("banner_test").addEventListener("MouseEnter", Silverlight.createDelegate(this, this.anima_in));
		this.control.content.findName("banner_architecture").addEventListener("MouseEnter", Silverlight.createDelegate(this, this.anima_in));
		this.control.content.findName("banner_development").addEventListener("MouseEnter", Silverlight.createDelegate(this, this.anima_in));
		this.control.content.findName("banner_database").addEventListener("MouseEnter", Silverlight.createDelegate(this, this.anima_in));
		this.control.content.findName("banner_professional").addEventListener("MouseEnter", Silverlight.createDelegate(this, this.anima_in));
		this.control.content.findName("banner_test_load").addEventListener("MouseEnter", Silverlight.createDelegate(this, this.anima_in));
		this.control.content.findName("banner_foundation").addEventListener("MouseEnter", Silverlight.createDelegate(this, this.anima_in));


		// Anima In;	
		this.control.content.findName("logo_visual").addEventListener("MouseLeave", Silverlight.createDelegate(this, this.anima_out));
		this.control.content.findName("banner_test").addEventListener("MouseLeave", Silverlight.createDelegate(this, this.anima_out));
		this.control.content.findName("banner_architecture").addEventListener("MouseLeave", Silverlight.createDelegate(this, this.anima_out));
		this.control.content.findName("banner_development").addEventListener("MouseLeave", Silverlight.createDelegate(this, this.anima_out));
		this.control.content.findName("banner_database").addEventListener("MouseLeave", Silverlight.createDelegate(this, this.anima_out));
		this.control.content.findName("banner_professional").addEventListener("MouseLeave", Silverlight.createDelegate(this, this.anima_out));
		this.control.content.findName("banner_test_load").addEventListener("MouseLeave", Silverlight.createDelegate(this, this.anima_out));
		this.control.content.findName("banner_foundation").addEventListener("MouseLeave", Silverlight.createDelegate(this, this.anima_out));


	}
	,logo_visual_click: function(sender, eventArgs) 
	{
		window.location = "prod_teamsuite.aspx";
	}
	,banner_test_click: function(sender, eventArgs) 
	{
		window.location = "prod_test.aspx";
	}
	,banner_architeture_click: function(sender, eventArgs) 
	{
		window.location = "prod_arch.aspx";
	}
	,banner_development_click: function(sender, eventArgs) 
	{
		window.location = "prod_dev.aspx";
	}
	,banner_database_click: function(sender, eventArgs) 
	{
		window.location = "prod_database.aspx";
	}
	,banner_professional_click: function(sender, eventArgs) 
	{
		window.location = "prod_prof.aspx";
	}
	,banner_test_load_click: function(sender, eventArgs) 
	{
		window.location = "prod_load.aspx";
	}
	,banner_foundation_click: function(sender, eventArgs) 
	{
		window.location = "Prod_Found.aspx";
	},
	anima_in: function(sender, eventArgs)
	{
		//alert(sender.Name.toString() + "_in");
		this.control.content.findName(sender.Name.toString() + "_in").Begin();
	}
	,
	anima_out: function(sender, eventArgs)
	{
		//alert(sender.Name.toString() + "_in");
		this.control.content.findName(sender.Name.toString() + "_out").Begin();
	}
}