// JavaScript Document
function hover(obj){
  if(document.all){
    DL = obj.getElementsByTagName('dl');
    if(DL.length > 0){
      sousMenu = DL[0].style;
      if(sousMenu.display == 'none' || sousMenu.display == ''){
        sousMenu.display = 'block';
      }else{
        sousMenu.display = 'none';
      }
    }
  }
}

function setHover(){
  DD = document.getElementById('menu').getElementsByTagName('dd');
  nDD = DD.length;
  for(i=0; i < nDD; i++){
    DD[i].onmouseover = function(){
      hover(this);
    }
    DD[i].onmouseout = function(){
      hover(this);
    }
  }
}

function display(){

document.write("<dl id=\"menu\">");
document.write("<dt>Navegación</dt>");
/*document.write("<dd class=\"ssmenu\"><a href=\"preambule.htm\" style=\"text-align:center;\">Préambule</a></dd>");
document.write("<hr/>");
document.write("<dd class=\"ssmenu\">Le Cristallin</dd>");
document.write("<dd><a href=\"anat1.htm\">Définition</a></dd>");
document.write("<dd><a href=\"anat2.htm\">Historique</a></dd>");
document.write("<dd><a href=\"anat3.htm\">Intérêts</a></dd>");
document.write("<dd><a href=\"anat4.htm\">Embryologie</a></dd>");			
document.write("<dd><a href=\"anat5.htm\">Macroscopie</a></dd>");
document.write("<dd><a href=\"anat6.htm\">Histologie</a></dd>");
document.write("<dd><a href=\"anat7.htm\">Physiologie</a></dd>");
document.write("<dd><a href=\"anat8.htm\">Explorations</a></dd>");			
document.write("<dd><a href=\"anat9.htm\">Voies d'abord</a></dd>");
document.write("<dd><a href=\"anat_fin.htm\">Conclusions</a></dd>");
document.write("<hr/>");
*/
document.write("<dd class=\"ssmenu\">Step by Step Technique</dd>");
document.write("<dd><a href=\"chap1.htm\">¿Por qué?</a></dd>");
document.write("<dd><a href=\"chap2.htm\">Máquina y ajustes</a></dd>");
document.write("<dd><a href=\"chap3.htm\">Instrumentación</a></dd>");
document.write("<dd><a href=\"chap4.htm\">Anestesia</a></dd>");
document.write("<dd><a href=\"chap5.htm\">Microincisiones </a></dd>");
document.write("<dd><a href=\"chap6.htm\">Capsulorhexis</a></dd>");
document.write("<dd><a href=\"chap7.htm\">Hydrodissection</a></dd>");
document.write("<dd><a href=\"chap8.htm\">Nucleofracture</a></dd>");
document.write("<dd><a href=\"chap9.htm\">I/A</a></dd>");
document.write("<dd><a href=\"chap10.htm\">Implantes</a></dd>");
document.write("<dd><a href=\"chap11.htm\">Complicaciones</a></dd>");
document.write("<dd><a href=\"chap12.htm\">Asociaciones</a></dd>");
document.write("<dd><a href=\"chap13.htm\">Transición</a></dd>");
document.write("<dd><a href=\"chap14.htm\">Casos difíciles</a></dd>");
document.write("<dd><a href=\"#\">Resultados</a></dd>");
document.write("<dd><a href=\"#\">15 fuertes puntos</a></dd>");
document.write("<dd><a href=\"#\">15 trampas</a></dd>");
document.write("<dd><a href=\"conclusion.htm\">Conclusión</a></dd>");
document.write("<dd><a href=\"bibliography.htm\">Bibliografía</a></dd>");
document.write("</dl>");
}

function AjoutFavo() {
if ((navigator.appName.indexOf("Microsoft",0)>=0) && (parseInt(navigator.appVersion)>=4))
	{
		window.external.AddFavorite("http://www.phacobimanuelle.net/index.html","El lugar del phaco bimanual");
	}
	else 
	{
		alert("Esta función so'lo se propone para Internet explorar 4 y +")
	}
}

function toggle(id){
if (document.getElementById) { 
    // Navigateur qui supporte DHTML officiel
	// alert("DHTML supporté !");
	if (document.getElementById(id).style.display=="")
		document.getElementById(id).style.display="none";
	else
		document.getElementById(id).style.display="";
	}
}

function EnvoieMail(adr1, adr2, sujet) {
  var l
  l = "mailto" + ":" + adr1 + "@" + adr2
  if ( sujet ) l = l + "?subject=" + sujet
  document.location = l
}

function ShowPopup() {
var newWindow
if ( ! newWindow || newWindow.closed ) {
  	 newWindow = window.open( "", "", "height=250,width=250")
  	 if ( ! window.opener ) {
  	    newWindow.opener = window
  	 }
  }
  var content = "<html><head><title>Pronto...</title></head>\n"
  content = content + "<body background=\"../images/popup.jpg\" style=\"text-align:center\" >\n <div style=\"vertical-align:middle;line-height:100px\"><h4>PRONTO EN LÍNEA...</h4>\n"
  content = content + "<p align=\"center\"><input type=\"button\" value=\"Cerrarse\" name=\"Close\" onClick=\"window.close()\" ></p>\n"
  content = content + "</body></html>\n"
  newWindow.document.write( content )
  newWindow.document.close()
  newWindow.focus()
}

function Welcome() {
var newWindow
if ( ! newWindow || newWindow.closed ) {
  	 newWindow = window.open( "", "", "height=513,width=700")
  	 if ( ! window.opener ) {
  	    newWindow.opener = window
  	 }
  }
  var content = "<html><head><title>Phacobimanuelle.net - Joyeuses Fêtes et bonne année</title></head>\n"
  content = content + "<link rel=\"stylesheet\" type=\"text/css\" href=\"../scripts/noel.css\"/>";
  content = content + "<body>\n";
  content = content + "<div id=\"global\">";
  content = content + "<h1><br/>JOYEUSES  FETES <br/>ET<br/>BONNE ANNEE 2006<br/>sur phacobimanuelle.net</h1>\n";
  content = content + "<p>A l’approche de cette fin d’année, le Rédacteur en chef, le Conseil éditorial et toute l’équipe de <span class=\"gras\">phacobimanuelle.net</span> remercient tous les partenaires et toutes les personnes qui ont soutenu le site en 2005 et leur donnent rendez-vous en 2006.</p>";
  content = content + "<h5>Nous  vous souhaitons à tous de passer de joyeuses fêtes de Noël<br/>et une Très Bonne Année 2006 sur phacobimanuelle.net</h5>";
  content = content + "<p align=\"center\"><input type=\"button\" value=\"Fermer\" name=\"Close\" onClick=\"window.close()\" ></p>\n"
  content = content + "</body></html>\n"
  newWindow.document.write( content )
  newWindow.document.close()
  newWindow.focus()
}

var newWindow;
var titre;
var video;
function ShowVideo(number) 
{
	switch (number)
	{
		case 0 :
		{
			titre = "Irrigación - Aspiración";
			video = "ia.swf"
			break;
		}
		case 1 :
		{
			titre = "Faco-Chop Horizontal";
			video = "chophor.swf"
			break;
		}
		case 2 :
		{
			titre = "Faco-Chop Vertical";
			video = "chopvert.swf"
			break;
		}
		case 3 :
		{
			titre = "Microincisiones";
			video = "incisions.swf"
			break;
		}
		case 4 :
		{
			titre = "Capsulorhexis";
			video = "capsulorhexis.swf"
			break;
		}
		case 5 :
		{
			titre = "Stop and Chop";
			video = "stopchop.swf"
			break;
		}
	}

	if ( ! newWindow || newWindow.closed ) 
	{
		 newWindow = window.open("","", "top=256,left=352,width=320,height=256");
		 if ( ! window.opener ) 
		 {
			newWindow.opener = window
		 }
	 }
var content = "<html><head><title>"+titre+"</title></head>\n";
  content = content + "<body onblur='window.close()' onclick='window.close()' style='margin:\"0\"'>\n";
  content = content + "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"320\" height=\"256\" id=\"stopchop\" align=\"middle\"> \n";
  content = content + "<param name=\"allowScriptAccess\" value=\"sameDomain\" /> \n";
  content = content + "<param name=\"movie\" value='../video/"+video+"' /><param name=\"quality\" value=\"high\" /><param name='bgcolor' value='#ffffff' /><embed src='../video/"+video+"' quality='high' bgcolor='#ffffff' name='"+video+"' width='320' height='256'align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /> \n";
  content = content + "</object>\n";
  content = content + "</body></html>\n"
  newWindow.document.write( content )
  newWindow.document.close()
  newWindow.focus()
}

t1="Bienvenida sobre Phacobimanuelle.net !";
t2="No olvidan visitar a nuestros socios";
var p=1;
function animStatus() {
	status=eval("t"+p);
	setTimeout("animStatus()",2000);
	p++;
	if (p==3) p=1;
}
