/* Este script fue hecho por Bratta y puede ser usado
gratuitamente siempre que se deje este mensaje intacto. */

        text=new Array('Música','Dansa','Teatre','Maquillatge','Ioga','Massatges','Tutufas')

// numero de textos
        var numText=7
        
// colores:
// el primer colos sera el color del texto cuando hace el zoom
        color=new Array('#666666','#444444','#777777','#909090','#C0C0C0','#FFFFFF')
        
	// numero de colores
			var numColors=6
			
	//tamano del zoom al finalizar
			var endSize=30
	
	//Velocidad del zoom (en milisegundos)
			var Zspeed=110
	
	//Velocidad de cambio en los colores
			var Cspeed=110
	
	//Fuente
			var font='Trebuchet MS'
			
	// Esconder el texto cuando acaba el zoom? (true o false)
			var hide=true
	
	
	var size=7
	var gonum=0
	
	if (document.all) 
	{
					n=0
					ie=1
					zoomText='document.all.zoom.innerText=text[num]'
					zoomSize='document.all.zoom.style.fontSize=size'
					closeIt=""
					fadeColor="document.all.zoom.style.color=color[num]"
	}
	if (document.layers) 
	{
					n=1;ie=0
					zoomText=""
					zoomSize="document.zoom.document.write('<p align=\"center\" style=\"font-family:'+font+'; font-size:'+size+'px; color:'+color[0]+'\">'+text[num]+'</p>')"
					closeIt="document.zoom.document.close()"
					fadeColor="document.zoom.document.write('<p align=\"center\" style=\"font-family:'+font+'; font-size:'+endSize+'px; color:'+color[num]+'\">'+text[numText-1]+'</p>')"
	}
	function zoom(num,fn)
	{
			if (size<endSize)
			{
					eval(zoomText)
					eval(zoomSize)
					eval(closeIt)
					size+=5;
					setTimeout("zoom("+num+",'"+fn+"')",Zspeed)
			}else{
					eval(fn);
			}
	}
	
	function fadeIt(num)
	{
			if (num<numColors)
			{
					eval(fadeColor)
					eval(closeIt)
					num+=1;
					setTimeout("fadeIt("+num+")",Cspeed)
			}
			else{
					hideIt()
			}
	}
	
	function hideIt()
	{
			if(hide)
			{
			        if(ie)document.all.zoom.style.top = 14  	
			        if(ie)document.all.zoom.style.left = 6  
					if(n)document.layers.zoom.visibility="hidden"
			}
	}
	
	function init()
	{
			if(ie)
			{
					document.all.zoom.style.color=color[0]
					document.all.zoom.style.fontFamily=font}
			go(0)   
	
	}
	function go(num)
	{
			gonum+=1
			size=10
			if(num<numText)
			{
					zoom(num,'go('+gonum+')')
			}
			else{
					fadeIt(0)
			}
	}
	
	setTimeout ('init()', 10);

