// JavaScript Document

	function cambiar_color_over(celda){
	//	celda.style.backgroundColor="#66ff33";
		celda.style.color="#252949"
	}
	function cambiar_color_out(celda){
	//	celda.style.backgroundColor="#dddddd"
		celda.style.color="#dddddd"

	}
	
	function cambiaColor(celda, tipo){
		if (tipo=="over"){
			celda.style.color="#003366"
		}
		else{
			celda.style.color="#003366"
		}

	}	
	
function valida(){
 if (document.frmPedidos.nombre.value==""){
	mensaje="Control de Errores\n";
	mensaje+= "--------------------------------------------------";	
	mensaje+= "\nIndique su nombre o en su lugar ponga anónimo.";
	alert(mensaje);
	document.frmPedidos.nombre.focus();
	document.frmPedidos.nombre.value='Anónimo';
	return false;
 }
 else{
 return true;
 }
 
}	
	
// JavaScript Document
// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 3

// Specify the image files
var Pic = new Array() // don't touch this

Pic[0] = 'images/cursoIngles/pic1.jpg'
Pic[1] = 'images/cursoIngles/pic2.jpg'
Pic[2] = 'images/cursoIngles/pic3.jpg'
Pic[3] = 'images/cursoIngles/pic4.jpg'
Pic[4] = 'images/cursoIngles/pic5.jpg'
Pic[5] = 'images/cursoIngles/pic6.jpg'
Pic[6] = 'images/cursoIngles/pic7.jpg'

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}
function runSlideShow(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}	
