/* This script contains the functions for the navigation between pages and into the pages */


//-------------------------------------------------------------------------------------------------------------------------	
//---- NAVEGACION:  
function HighLightBack()    	{ document.getElementById('BACKBUTTON').src="Elementos/BlurMetalLi5.gif";}
function HighLightNorBack() 	{ document.getElementById('BACKBUTTON').src="Elementos/BlurMetalLb5.gif";}
function HighLightNext()   	{ document.getElementById('NEXTBUTTON').src="Elementos/BlurMetalLj5.gif";}
function HighLightNorNext() 	{ document.getElementById('NEXTBUTTON').src="Elementos/BlurMetalLc5.gif";}
function HighLightHome()    	{ document.getElementById('HOMEBUTTON').src="Elementos/BlurMetalLl5.gif";}
function HighLightNorHome() 	{ document.getElementById('HOMEBUTTON').src="Elementos/BlurMetalLe5.gif";}
function HighLightHome0()    	{ document.getElementById('HOMEBUTTON').src="Elementos/BlurMetalLl5.gif";}
function HighLightNorHome0() 	{ document.getElementById('HOMEBUTTON').src="Elementos/BlurMetalLe5.gif";}

//-------------------------------------------------------------------------------------------------------------------------
//---- Correo:
function HLIGHT()    { document.getElementById('EMAIL').src="Elementos/BlurMetalLk5.gif";}
function NORMLIGHT() { document.getElementById('EMAIL').src="Elementos/BlurMetalLd5.gif";}

//-------------------------------------------------------------------------------------------------------------------------
//---- Main Entry:
function MAINENTRY()    { document.getElementById('MENTRY').src="Elementos/neweb_EnterGalleryB&WOnMouse.gif";}
function NORMAINENTRY() { document.getElementById('MENTRY').src="Elementos/neweb_EnterGalleryB&W.gif";}
function MAINENTRYCOL()    { document.getElementById('MENTRYCOL').src="Elementos/neweb_EnterGalleryOnMouseCol.gif";}
function NORMAINENTRYCOL() { document.getElementById('MENTRYCOL').src="Elementos/neweb_EnterGalleryCol.gif";}
//-------------------------------------------------------------------------------------------------------------------------
//---- POPUP MENU:
function Piloto_ON(ELMID)  { document.getElementById(ELMID).src="Elementos/PilotoON.gif";}
function Piloto_OFF(ELMID) { document.getElementById(ELMID).src="Elementos/PilotoOFF.gif";}

//-------------------------------------------------------------------------------------------------------------------------
function menu_action(  numHeaders, numItems, Ypos , action , MenuId)
{
 
 var TotalPixel = 6 + 30 * (numHeaders + numItems) + 2 * (numHeaders + numItems) ; 	
 var testDiv = document.getElementById(MenuId);
 
 for ( var i=0; i< TotalPixel; i++) { 

   if ( action == "down" ) {
	testDiv.style.position = "absolute";
	testDiv.style.height = TotalPixel;
	//testDiv.style.width = wpos;
	testDiv.style.left = Ypos;
	testDiv.style.top = ((-1) * TotalPixel) + i;
        }
   else {
	testDiv.style.position = "absolute";
	testDiv.style.height = TotalPixel;
	//testDiv.style.width = wpos;
	testDiv.style.left = Ypos;
	testDiv.style.top = (-1) * i;
        }
     }

}


//-------------------------------------------------------------------------------------------------------------------------
function OVER_MENU(MenuId) {

 document.getElementById( MenuId ).style.top = -1;

}

//-------------------------------------------------------------------------------------------------------------------------
function OUT_MENU(MenuId) {

  document.getElementById(MenuId).style.top = - 165 ;
 
}

//-------------------------------------------------------------------------------------------------------------------------

//-- Funciónes para las hojas de Textos:

function HighLightINDEX( ThisButtom )    { document.getElementById( ThisButtom ).src= "Elementos/BlurMetalLm0.gif";}
function HighLightNorINDEX( ThisButtom ) { document.getElementById( ThisButtom ).src= "Elementos/BlurMetalLg0.gif";}
//-------------------------------------------------------------------------------------------------------------------------



//----------------------------------------------------------ANIMACION DE PORTADA: ------------------------------------------

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->


function SetOngoing() {
	window.setInterval("showImage()", 5000);
	}

function StopOngoing() {
	window.clearInterval( window.setInterval("showImage()", 2000) );
	}

function showImage(){

	// Set up the image files to be used.
	var theImages = new Array() // do not change this
	// To add more image files, continue with the
	// pattern below, adding to the array.

	theImages[0] = 'Fotos/Galeria_2/Picture_011.jpg';	
	theImages[1] = 'Fotos/Galeria_2/Picture_012.jpg';	
	theImages[2] = 'Fotos/Galeria_2/Picture_013.jpg';	
	theImages[3] = 'Fotos/Galeria_2/Picture_014.jpg';	
	theImages[4] = 'Fotos/Galeria_2/Picture_015.jpg';	
	theImages[5] = 'Fotos/Galeria_2/Picture_016.jpg';	
	theImages[6] = 'Fotos/Galeria_2/Picture_017.jpg';	
	theImages[7] = 'Fotos/Galeria_2/Picture_018.jpg';
	theImages[8] = 'Fotos/Galeria_2/Picture_019.jpg';	
	theImages[9] = 'Fotos/Galeria_2/Picture_010.jpg';	

	theImages[10] = 'Fotos/Galeria_2/Picture_011.jpg';	
	theImages[11] = 'Fotos/Galeria_2/Picture_012.jpg';	
	theImages[12] = 'Fotos/Galeria_2/Picture_013.jpg';	
	theImages[13] = 'Fotos/Galeria_2/Picture_014.jpg';	
	theImages[14] = 'Fotos/Galeria_2/Picture_015.jpg';	
	theImages[15] = 'Fotos/Galeria_2/Picture_016.jpg';	
	theImages[16] = 'Fotos/Galeria_2/Picture_017.jpg';	
	theImages[17] = 'Fotos/Galeria_2/Picture_018.jpg';
	theImages[18] = 'Fotos/Galeria_2/Picture_019.jpg';	
	theImages[19] = 'Fotos/Galeria_2/Picture_020.jpg';
	
	// do not edit anything below this line

	var j = 0
	var p = theImages.length;
	var preBuffer = new Array()
	for (i = 0; i < p; i++){
   		preBuffer[i] = new Image()
   		preBuffer[i].src = theImages[i]
		}
	var whichImage = Math.round(Math.random()*(p-1));

	var Line = '<img src=\"'+theImages[whichImage]+'\" STYLE=\"border:5px solid silver;\">';
   	document.getElementById('RNDPHOTO').innerHTML = Line;
	}




//----------------------------------------------------------------------------------------------------------------------



	  	