﻿if (!window.cubo)
	window.cubo = {};

cubo.Page = function() 
{
}

cubo.Page.prototype =
{
	handleLoad: function(control, userContext, rootElement) 
	{
		this.control = control;
		this.cubo = this.control.content.findName("cubo");
		this.cubo0 = this.control.content.findName("cubo0");	
		this.cubo2 = this.control.content.findName("cubo2");		
		this.cubo4 = this.control.content.findName("cubo4");		
		this.cubo8 = this.control.content.findName("cubo8");		
		this.cubo11 = this.control.content.findName("cubo11");
		this.cubo22 = this.control.content.findName("cubo22");
		this.prima = this.control.content.findName("prima");
		this.seconda = this.control.content.findName("seconda");
		this.terza = this.control.content.findName("terza");
		this.dynamicsWrite = this.control.content.findName("DynamicsWrite");
		this.containerPrima = this.control.content.findName("containerPrima");
		this.containerSeconda = this.control.content.findName("containerSeconda");
		this.ContainerTerza = this.control.content.findName("ContainerTerza");
		
		this.background_dissolvenza = this.control.content.findName("background_dissolvenza");
		this.containerCubo = this.control.content.findName("containerCubo");
			
		
		
		this.background_dissolvenza.begin();	
		
		this.prima.opacity = 0;
		this.terza.opacity = 0;
		this.cubo2.opacity = 0;
		this.cubo4.opacity = 0;	
		this.cubo8.opacity = 0;		
		this.cubo11.opacity = 0;
		this.cubo22.opacity = 0;		
		this.cubo.BeginTime = "0:0:7";
		this.cubo.begin();
		

	//	var plugin = this.prima.getHost();
	//	var downloader = plugin.createObject("downloader");
	//	downloader.addEventListener("Completed", onCompleted);
	//	downloader.open("GET", "segoeuib.TTF");
	//	downloader.send();
		
	//	var plugin2 = this.seconda.getHost();
	//	var downloader2 = plugin.createObject("downloader");
	//	downloader2.addEventListener("Completed", onCompleted2);
	//	downloader2.open("GET", "segoeuib.TTF");
	//	downloader2.send();
		
	//	var plugin3 = this.terza.getHost();
	//	var downloader3 = plugin.createObject("downloader");
	//	downloader3.addEventListener("Completed", onCompleted3);
	//	downloader3.open("GET", "segoeuib.TTF");
	//	downloader3.send();	
		
	//	var plugin4 = this.dynamicsWrite.getHost();
	//	var downloader4 = plugin.createObject("downloader");
	//	downloader4.addEventListener("Completed", onCompleted4);
	//	downloader4.open("GET", "segoeuib.TTF");
	//	downloader4.send();	
		
					
	}	
}


