// JavaScript Document
function scribe(){
document.write("<img border='0' src='pages/slides-head/head-slides-00.jpg' width='679' height='99' id='Fotos'>");
document.write("<script language='JavaScript'>");
document.write("RunSlideShow('Fotos','pages/slides-head/head-slides-00.jpg;pages/slides-head/head-slides-01.jpg;pages/slides-head/head-slides-02.jpg;pages/slides-head/head-slides-03.jpg;pages/slides-head/head-slides-04.jpg;pages/slides-head/head-slides-05.jpg;pages/slides-head/head-slides-06.jpg',6);");
document.write("</script>");
}
slideCache = new Array();
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;
}
}
function viewinvita(){
  window.open('pages/cfc-invitacion.html','cinvita',  "top=150,left=250,width=380,height=300,scrollbars=NO,location=no,menubar=no,resizable=no,scrollbars=yes,toolbar=no");return false;
}

function viewtecnis(){
  window.open('pages/capacitacion-tecnica.html','ctecnis',  "top=150,left=250,width=600,height=450,scrollbars=NO,location=no,menubar=no,resizable=no,scrollbars=yes,toolbar=no");return false;
}

function click() { 
if (event.button==2) { 
alert ('! © 2010. CENFROCAFE !') 
}
} 
document.onmousedown=click; 

var texto_estado = "                      Bienvenidos a la Cooperativa de Servicios Múltiples - CENFROCAFE"
  var posicion = 0
  function mueve_texto(){
      if (posicion < texto_estado.length) 
         posicion ++;
      else
         posicion = 1;
      string_actual = texto_estado.substring(posicion) + texto_estado.substring(0,posicion)
      window.status = string_actual
      setTimeout("mueve_texto()",150)
   }
   mueve_texto();

