




// Browser Slide-Show script.
// With image cross fade effect for those browsers that support it.
var slideCache = new Array();
function RunSlideShow(pictureName,imageFiles,displaySecs)
{
var imageSeparator = imageFiles.indexOf(";");
var nextImage = imageFiles.substring(0,imageSeparator);
if (document.all)
{
document.getElementById(pictureName).style.filter="blendTrans(duration=2)";
document.getElementById(pictureName).filters.blendTrans.Apply();
}
document.getElementById(pictureName).src = nextImage;
if (document.all)
{
document.getElementById(pictureName).filters.blendTrans.Play();
}
var futureImages= imageFiles.substring(imageSeparator+1,imageFiles.length)
+ ';' + nextImage;
setTimeout("RunSlideShow('"+pictureName+"','"+futureImages+"',"+displaySecs+")",
displaySecs*1000);
// Cache the next image to improve performance.
imageSeparator = futureImages.indexOf(";");
nextImage = futureImages.substring(0,imageSeparator);
if (slideCache[nextImage] == null) {
slideCache[nextImage] = new Image;
slideCache[nextImage].src = nextImage;
}
}

	// Flooble.com's Animated Text script. Will animate a specified 
	// bit of text (determined by the ID of containing tag) by 
	// highlighting it with specified color one character at a time 
	// in a moving pattern.
	//
	// Summary of use: 
	//     call animate(tagID, color); where "tagID" is the ID 
	//     of the tag that contains text to be animated,
	//     and "color" is the color to use to highlight the text with.
	//
	// For more information, and detailed instructions, see 
	//     http://www.flooble.com/scripts/animate.php
	//
	// Copyright (c) 2002 by Animus Pactum Consulting Inc.
	// This script comes with no warranties whatsoever. 
	// Animus Pactum Consulting will not be responsible
	// for any damages resulting from its use.

        var ie4 = false;
        if(document.all) 
		{
                ie4 = true; 
        }       
        function setContent(name, value) 
		{
                var d;  
                if (ie4) { 
                        d = document.all[name];
                } else {
                        d = document.getElementById(name);
                }       
                d.innerHTML = value;    
        }       

	function getContent(name) {
		var d;
                if (ie4) {
                        d = document.all[name];
                } else {
                        d = document.getElementById(name);
                }
                return d.innerHTML;
	}

        function setColor(name, value) {
                var d;  
                if (ie4) { 
                        d = document.all[name];
                } else {
                        d = document.getElementById(name);
                }
                d.style.color = value;  
        }

	function getColor(name) {
                var d;
                if (ie4) {
                        d = document.all[name];
                } else {
                        d = document.getElementById(name);
                }
                return d.style.color;
        }

        function animate(name, col) {
		var value = getContent(name);
		if (value.indexOf('<span') >= 0) { return; }
		var length = 0;
                var str = '';
		var ch;
		var token = '';
		var htmltag = false;	
                for (i = 0; i < value.length; i++) {
			ch = value.substring(i, i+1);
			if (i < value.length - 1) { nextch = value.substring(i+1, i+2); } else { nextch = ' '; }
			token += ch;
			if (ch == '<' && '/aAbBpPhHiIoOuUlLtT'.indexOf(nextch) >= 0) { htmltag = true; }
			if (ch == '>' && htmltag) { htmltag = false; }
			if (!htmltag && ch.charCodeAt(0) > 30 && ch != ' ' && ch != '\n') {		
                        	str += '<span id="' + name + '_' + length + '">' + token + '</span>';
				token = '';
				length++;
			}
                }
                setContent(name, str);
                command = 'animateloop(\'' + name + '\', ' + length + ', 0, 1, \'' + col + '\')';
                setTimeout(command , 200);
        }

        function animateloop(name, length, ind, delta, col) {
		var next = ind + delta;
		if (next >= length) { delta = delta * -1; next = ind + delta; }
		if (next < 0) { delta = delta * -1; next = ind + delta; }
                setColor(name + '_' + ind, getColor(name + '_' + next));
                setColor(name + '_' + next, col);
                command = 'animateloop(\'' + name + '\', ' + length + ', ' + next + ', ' + delta + ', \'' + col + '\')';
                setTimeout(command , 200);
        }
		
		
<!-- Hiding
/*	Script by Lefteris Haritou	
	Copyright ©1997 	http://www.geocities.com/~lef
	This Script is free as long 	as you keep the above credit !
*/

bname=navigator.appName;
bversion=parseInt(navigator.appVersion)

if ((bname=="Netscape" && bversion>=4) || (bname=="Microsoft Internet Explorer" && bversion>=4)){
if (bname=="Netscape")
	brows=true
else
	brows=false

var z=0;
var msg=0;
var rgb=0;

var value=0;
var timer1;
var timer2;
var convert = new Array()
var hexbase= new Array("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F");

// Put here your own messages. Add as many as you wan't (Do not edit anything else in the Script except the lines below)
// estas variables las especifico en la pagina html
var bgcolor="#EFB93A"; //Color of background
var color="#999999";  //Color of the Letters
var message= new Array();
message[0]='Presentacion <br> El Carpio Flamenco <br> 2006';
message[1]='Pagina WEB<br>';
message[2]='Esto es una prueba<br>';
message[3]='espero que <br>funcione ok';
message[4]='o no se si <br>funcionara';
message[5]='2006 anno <br>domini';
message[6]='xxxxxxx<br>xxxxxxxxY';


// Put here your own messages. Add as many as you wan't (Do not edit anything else in the Script except the lines above)


for (x=0; x<16; x++){
	for (y=0; y<16; y++){
	convert[value]= hexbase[x] + hexbase[y];
	value++;
	}
}

redx=color.substring(1,3);
greenx=color.substring(3,5);
bluex=color.substring(5,7);
hred=eval(parseInt(redx,16));
hgreen=eval(parseInt(greenx,16));
hblue=eval(parseInt(bluex,16));
eredx=bgcolor.substring(1,3);
egreenx=bgcolor.substring(3,5);
ebluex=bgcolor.substring(5,7);
ered=eval(parseInt(eredx,16));
egreen=eval(parseInt(egreenx,16));
eblue=eval(parseInt(ebluex,16));
red=ered;
green=egreen;
blue=eblue;



function start(){

if (brows)

res=document.layers['textanim'].top

else

res=textanim.style.top

timer1=window.setInterval('up()',100)

}



function stopf(){

window.clearInterval(timer1);

window.clearInterval(timer2);

for (x=0; x<2000; x++){}

}



function up(){

if (red<hred){

if ((red+15)<hred){

red+=15;

redx = convert[red]

}

else{

red=hred

redx = convert[red]

}

}



if (red>hred){

if ((red-15)>hred){

red-=15;

redx = convert[red]

}

else{

red=hred

redx = convert[red]

}

}



if (green<hgreen){

if ((green+15)<hgreen){

green+=15;

greenx = convert[green]

}

else{

green=hgreen

greenx = convert[green]

}

}



if (green>hgreen){

if ((green-15)>hgreen){

green-=15;

greenx = convert[green]

}

else{

green=hgreen

greenx = convert[green]

}

}



if (blue<hblue){

if ((blue+15)<hblue){

blue+=15;

bluex = convert[blue]

}

else{

blue=hblue

bluex = convert[blue]

}

}



if (blue>hblue){

if ((blue-15)>hblue){

blue-=15;

bluex = convert[blue]

}

else{

blue=hblue

bluex = convert[blue]

}

}



rgb = "#"+redx+greenx+bluex;

if (brows){

document.layers['textanim'].document.linkColor=rgb;

document.layers['textanim'].document.vlinkColor=rgb;

//document.layers['textanim'].document.writeln('<Pre><P Class="main" Align="Center"><font color="'+rgb+'">'+message[msg]+'</font></P></Pre>')
document.layers['textanim'].document.writeln('<Pre><P class="txtNovedades" Align="Center"><font color="'+rgb+'">'+message[msg]+'</font></P></Pre>')
document.layers['textanim'].document.close();

}

else
textanim.innerHTML='<Pre><P class="txtNovedades" Align="Center"><font color="'+rgb+'">'+message[msg]+'</font></P></Pre>'
//textanim.innerHTML='<Pre><P Class="main" Align="Center"><font color="'+rgb+'">'+message[msg]+'</font></P></Pre>'



if (z<19){
/*
if (brows)

document.layers['textanim'].top-=2

else

textanim.style.posTop-=2
*/
z++

}

else

{

window.clearInterval(timer1);

timer2=window.setInterval('down()',100)

}

}





function down(){

if (red<ered){

if ((red+15)<ered){

red+=15;

redx = convert[red]

}

else{

red=ered

redx = convert[red]

}

}



if (red>ered){

if ((red-15)>ered){

red-=15;

redx = convert[red]

}

else{

red=ered

redx = convert[red]

}

}



if (green<egreen){

if ((green+15)<egreen){

green+=15;

greenx = convert[green]

}

else{

green=egreen

greenx = convert[green]

}

}



if (green>egreen){

if ((green-15)>egreen){

green-=15;

greenx = convert[green]

}

else{

green=egreen

greenx = convert[green]

}

}



if (blue<eblue){

if ((blue+15)<eblue){

blue+=15;

bluex = convert[blue]

}

else{

blue=eblue

bluex = convert[blue]

}

}



if (blue>eblue){

if ((blue-15)>eblue){

blue-=15;

bluex = convert[blue]

}

else{

blue=eblue

bluex = convert[blue]

}

}



rgb = "#"+redx+greenx+bluex;

if (brows){

document.layers['textanim'].document.linkColor=rgb;

document.layers['textanim'].document.vlinkColor=rgb;

//document.layers['textanim'].document.writeln('<Pre><P Class="main" Align="Center"><font color="'+rgb+'">'+message[msg]+'</font></P></Pre>')
document.layers['textanim'].document.writeln('<Pre><P class="txtNovedades"  Align="Center"><font color="'+rgb+'">'+message[msg]+'</font></P></Pre>')
document.layers['textanim'].document.close();

}

else
textanim.innerHTML='<Pre><P class="txtNovedades" Align="Center"><font color="'+rgb+'">'+message[msg]+'</font></P></Pre>'
//textanim.innerHTML='<Pre><P Class="main" Align="Center"><font color="'+rgb+'">'+message[msg]+'</font></P></Pre>'



if (z<38){
/*
if (brows)

document.layers['textanim'].top-=2

else

textanim.style.posTop-=2
*/
z++

}

else

{

if (brows){

document.layers['textanim'].document.writeln('')

document.layers['textanim'].document.close();

}

else

textanim.innerHTML='';

window.clearInterval(timer2);

if(msg<message.length-1){

msg++;

z=0;

if (brows)

document.layers['textanim'].top=res;

else

textanim.style.top=res;

window.setTimeout('start()',100);

}

else

{

msg=0;

z=0;

if (brows)

document.layers['textanim'].top=res;

else

textanim.style.top=res;

window.setTimeout('start()',200);

}

}

}

}
// done hiding -->

