//------------------------MOSTRAR FECHAS---------------------------------
//ESPAÑOL:
function mostrar_fecha_ESP()
{
    var now = new Date()
    var dia = now.getDay()
    var mes = now.getMonth()
    var fecha

    //El día de la semana
    if(dia==0) fecha="Domingo, ";
    else if(dia==1) fecha="Lunes, ";
    else if(dia==2) fecha="Martes, ";
    else if(dia==3) fecha="Miércoles, ";
    else if(dia==4) fecha="Jueves, ";
    else if(dia==5) fecha="Viernes, ";
    else fecha="Sábado, ";

	  fecha = fecha + now.getDate() + " de "
		 
	  //El nombre del mes
	  if(mes==0) fecha=fecha + "Enero";
 	  else if(mes==1) fecha=fecha + "Febrero";
    else if(mes==2) fecha=fecha + "Marzo";
	  else if(mes==3) fecha=fecha + "Abril";
		else if(mes==4) fecha=fecha + "Mayo";
		else if(mes==5) fecha=fecha + "Junio";
		else if(mes==6) fecha=fecha + "Julio";
		else if(mes==7) fecha=fecha + "Agosto";
		else if(mes==8) fecha=fecha + "Septiembre";
		else if(mes==9) fecha=fecha + "Octubre";
		else if(mes==10)fecha=fecha + "Noviembre";
		else fecha=fecha + "Diciembre";

		fecha = fecha + " del " + now.getFullYear()
		
		document.write(fecha);
}

//INGLES:
function mostrar_fecha_ENG()
{
    var now = new Date()
    var dia = now.getDay()
    var mes = now.getMonth()
    var fecha

    //El día de la semana
    if(dia==0) fecha="Sunday, ";
    else if(dia==1) fecha="Monday, ";
    else if(dia==2) fecha="Tuesday, ";
    else if(dia==3) fecha="Wednesday, ";
    else if(dia==4) fecha="Thursday, ";
    else if(dia==5) fecha="Friday, ";
    else fecha="Saturday, ";

	  fecha = fecha + now.getDate() + "  "
		 
	  //El nombre del mes
	  if(mes==0) fecha=fecha + "January";
 	  else if(mes==1) fecha=fecha + "February";
    else if(mes==2) fecha=fecha + "March";
	  else if(mes==3) fecha=fecha + "April";
		else if(mes==4) fecha=fecha + "May";
		else if(mes==5) fecha=fecha + "June";
		else if(mes==6) fecha=fecha + "July";
		else if(mes==7) fecha=fecha + "August";
		else if(mes==8) fecha=fecha + "September";
		else if(mes==9) fecha=fecha + "October";
		else if(mes==10)fecha=fecha + "November";
		else fecha=fecha + "December";

		fecha = fecha + " of " + now.getFullYear()
		
		document.write(fecha);
}

//FRANCES:
function mostrar_fecha_FR()
{
    var now = new Date()
    var dia = now.getDay()
    var mes = now.getMonth()
    var fecha

    //El día de la semana
    if(dia==0) fecha="Dimanche, ";
    else if(dia==1) fecha="Lundi, ";
    else if(dia==2) fecha="Mardi, ";
    else if(dia==3) fecha="Mercredi, ";
    else if(dia==4) fecha="Jeudi, ";
    else if(dia==5) fecha="Vendredi, ";
    else fecha="Samedi, ";

	  fecha = fecha + now.getDate() + "  "
		 
	  //El nombre del mes
	  if(mes==0) fecha=fecha + "Janvier";
 	  else if(mes==1) fecha=fecha + "Février";
    else if(mes==2) fecha=fecha + "Mars";
	  else if(mes==3) fecha=fecha + "Avril";
		else if(mes==4) fecha=fecha + "Mai";
		else if(mes==5) fecha=fecha + "Juin";
		else if(mes==6) fecha=fecha + "Juillet";
		else if(mes==7) fecha=fecha + "Août";
		else if(mes==8) fecha=fecha + "Septembre";
		else if(mes==9) fecha=fecha + "Octobre";
		else if(mes==10)fecha=fecha + "Novembre";
		else fecha=fecha + "Décembre";

		fecha = fecha + "  " + now.getFullYear()
		
		document.write(fecha);
}


















function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}


function MM_changeProp(objName,x,theProp,theValue) { //v6.0
  var obj = MM_findObj(objName);
  if (obj && (theProp.indexOf("style.")==-1 || obj.style)){
    if (theValue == true || theValue == false)
      eval("obj."+theProp+"="+theValue);
    else eval("obj."+theProp+"='"+theValue+"'");
  }
}

function MM_timelinePlay(tmLnName, myID) { //v1.2
  //Copyright 1997, 2000 Macromedia, Inc. All rights reserved.
  var i,j,tmLn,props,keyFrm,sprite,numKeyFr,firstKeyFr,propNum,theObj,firstTime=false;
  if (document.MM_Time == null) MM_initTimelines(); //if *very* 1st time
  tmLn = document.MM_Time[tmLnName];
  if (myID == null) { myID = ++tmLn.ID; firstTime=true;}//if new call, incr ID
  if (myID == tmLn.ID) { //if Im newest
    setTimeout('MM_timelinePlay("'+tmLnName+'",'+myID+')',tmLn.delay);
    fNew = ++tmLn.curFrame;
    for (i=0; i<tmLn.length; i++) {
      sprite = tmLn[i];
      if (sprite.charAt(0) == 's') {
        if (sprite.obj) {
          numKeyFr = sprite.keyFrames.length; firstKeyFr = sprite.keyFrames[0];
          if (fNew >= firstKeyFr && fNew <= sprite.keyFrames[numKeyFr-1]) {//in range
            keyFrm=1;
            for (j=0; j<sprite.values.length; j++) {
              props = sprite.values[j]; 
              if (numKeyFr != props.length) {
                if (props.prop2 == null) sprite.obj[props.prop] = props[fNew-firstKeyFr];
                else        sprite.obj[props.prop2][props.prop] = props[fNew-firstKeyFr];
              } else {
                while (keyFrm<numKeyFr && fNew>=sprite.keyFrames[keyFrm]) keyFrm++;
                if (firstTime || fNew==sprite.keyFrames[keyFrm-1]) {
                  if (props.prop2 == null) sprite.obj[props.prop] = props[keyFrm-1];
                  else        sprite.obj[props.prop2][props.prop] = props[keyFrm-1];
        } } } } }
      } else if (sprite.charAt(0)=='b' && fNew == sprite.frame) eval(sprite.value);
      if (fNew > tmLn.lastFrame) tmLn.ID = 0;
  } }
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}

function MM_initTimelines() { //v4.0
    //MM_initTimelines() Copyright 1997 Macromedia, Inc. All rights reserved.
    var ns = navigator.appName == "Netscape";
    var ns4 = (ns && parseInt(navigator.appVersion) == 4);
    var ns5 = (ns && parseInt(navigator.appVersion) > 4);
    document.MM_Time = new Array(1);
    document.MM_Time[0] = new Array(0);
    document.MM_Time["Timeline1"] = document.MM_Time[0];
    document.MM_Time[0].MM_Name = "Timeline1";
    document.MM_Time[0].fps = 15;
    document.MM_Time[0].lastFrame = 0;
    for (i=0; i<document.MM_Time.length; i++) {
        document.MM_Time[i].ID = null;
        document.MM_Time[i].curFrame = 0;
        document.MM_Time[i].delay = 1000/document.MM_Time[i].fps;
    }
}



