// JavaScript Document

function remplaceStr(chaine1,chaine2,chaine3)
{
  if ((chaine1 == "") || (chaine2 == "")) return false;
  valeur = chaine1.indexOf(chaine2);
  if (valeur == -1) return chaine1;
  strFinale = "";
  strTmp = chaine1;
  while (valeur != -1)
  {
    strFinale = strFinale.concat(strTmp.substring(0,valeur)).concat(chaine3);
    strTmp = strTmp.substr(valeur+chaine2.length);
    valeur = strTmp.indexOf(chaine2);
  }
  strFinale = strFinale.concat(strTmp);
  return strFinale;
}
function ecritCalque(idCalque,texte)
{
  if (document.all) document.all[idCalque].innerHTML = texte;
  if (document.layers) 
  {
    document.layers[idCalque].document.open();
    document.layers[idCalque].document.write(texte);
    document.layers[idCalque].document.close();
  }
  if (document.getElementById) 
  document.getElementById(idCalque).innerHTML = texte;
}
function styleCalque(idCalque)
{
  if (document.all) calqueStyle = document.all[idCalque].style;
  if (document.layers) calqueStyle = document.layers[idCalque];
  if (document.getElementById) calqueStyle = 
  document.getElementById(idCalque).style;
  return calqueStyle;
}
indScrollH = 0;
function scrollH(idCalque,taille,classe,lg)
{
  strTmp = "";
  while (strTmp.length < taille)
  {
    strTmp = strTmp + " ";
  }
  strFin = strTmp + ScrollTab[lg];
  strAff = strFin.substr(indScrollH,taille);
  if (strAff.length < taille) strAff = strAff + 
  strTmp.substr(0,taille-strAff.length);
  strAff = remplaceStr(strAff," ","&nbsp;");
  strAff = "<SPAN CLASS='" + classe + "'>" + strAff + "</SPAN>";
  ecritCalque(idCalque,strAff);
  if (indScrollH < strFin.length-1) indScrollH++;
  else indScrollH = 0;
  setTimeout("scrollH('"+idCalque+"',"+taille+",'"+classe+"','"+lg+"')",100);
};
ScrollTab=new Array();
ScrollTab['FR']="Colmar au fil de l'eau.....                                    Colmar au fil de l'eau.....";
ScrollTab['EN']="The best view of the Little Venice";
ScrollTab['DE']="Flussfahrt durchs klein Venedig.....                           Flussfahrt durchs klein Venedig.....";
ScrollTab['IT']="Venise.....                           Venise.....";
ScrollTab['ES']="Espagne.....                          Espagne.....";

function Nav(onglet,lang)
{	switch(lang){
	case 'FR':
	switch (onglet){
		case 0 : parent.Frame_Gauche.location.href="../FR/Activite_FR.htm" ; break;
		case 1 : parent.Frame_Gauche.location.href="../FR/Photo_FR.htm" ;break;
		case 2 : parent.Frame_Gauche.location.href="../FR/Video_FR.htm" ;break;
		case 3 : parent.Frame_Gauche.location.href="../FR/Plan_FR.htm" ;break;};break;
	case 'EN':
	switch (onglet){
		case 0 : parent.Frame_Gauche.location.href="../EN/Activite_EN.htm" ; break;
		case 1 : parent.Frame_Gauche.location.href="../EN/Photo_EN.htm" ;break;
		case 2 : parent.Frame_Gauche.location.href="../EN/Video_EN.htm" ;break;
		case 3 : parent.Frame_Gauche.location.href="../EN/Plan_EN.htm" ;break;};break;
	case 'DE':
	switch (onglet){
		case 0 : parent.Frame_Gauche.location.href="../DE/Activite_DE.htm" ; break;
		case 1 : parent.Frame_Gauche.location.href="../DE/Photo_DE.htm" ;break;
		case 2 : parent.Frame_Gauche.location.href="../DE/Video_DE.htm" ;break;
		case 3 : parent.Frame_Gauche.location.href="../DE/Plan_DE.htm" ;break;};break;
	case 'IT':
	switch (onglet){
		case 0 : parent.Frame_Gauche.location.href="../IT/Activite_IT.htm" ; break;
		case 1 : parent.Frame_Gauche.location.href="../IT/Photo_IT.htm" ;break;
		case 2 : parent.Frame_Gauche.location.href="../IT/Video_IT.htm" ;break;
		case 3 : parent.Frame_Gauche.location.href="../IT/Plan_IT.htm" ;break;};break;
	case 'ES':
	switch (onglet){
		case 0 : parent.Frame_Gauche.location.href="../ES/Activite_ES.htm" ; break;
		case 1 : parent.Frame_Gauche.location.href="../ES/Photo_ES.htm" ;break;
		case 2 : parent.Frame_Gauche.location.href="../ES/Video_ES.htm" ;break;
		case 3 : parent.Frame_Gauche.location.href="../ES/Plan_ES.htm" ;break;};break;

	default : break;}
}
	
function determine_lang(LG)
{var idpage;idpage=parent.Frame_Gauche.document.getElementById("page").value;
	switch(LG){
	case 'FR':document.location.href="../FR/Menu_FR.htm";parent.Frame_Droite.location.href="../FR/Liens_FR.htm";
		switch(idpage){
		case 'Activite'	: parent.Frame_Gauche.location.href="../FR/Activite_FR.htm";break;
		case 'Photo'	: parent.Frame_Gauche.location.href="../FR/Photo_FR.htm";break;
		case 'Video'	: parent.Frame_Gauche.location.href="../FR/Video_FR.htm";break;
		case 'Plan'		: parent.Frame_Gauche.location.href="../FR/Plan_FR.htm";break;
		default : break;};break;
	case 'EN':document.location.href="../EN/Menu_EN.htm";parent.Frame_Droite.location.href="../EN/Liens_EN.htm";
		switch(idpage){
		case 'Activite'	: parent.Frame_Gauche.location.href="../EN/Activite_EN.htm";break;
		case 'Photo'	: parent.Frame_Gauche.location.href="../EN/Photo_EN.htm";break;
		case 'Video'	: parent.Frame_Gauche.location.href="../EN/Video_EN.htm";break;
		case 'Plan'		: parent.Frame_Gauche.location.href="../EN/Plan_EN.htm";break;
		default : break;};break;
	case 'DE':document.location.href="../DE/Menu_DE.htm";parent.Frame_Droite.location.href="../DE/Liens_DE.htm";
		switch(idpage){ 
		case 'Activite'	: parent.Frame_Gauche.location.href="../DE/Activite_DE.htm";break;
		case 'Photo'	: parent.Frame_Gauche.location.href="../DE/Photo_DE.htm";break;
		case 'Video'	: parent.Frame_Gauche.location.href="../DE/Video_DE.htm";break;
		case 'Plan'		: parent.Frame_Gauche.location.href="../DE/Plan_DE.htm";break;
		default : break;};break;
	case 'IT':document.location.href="../IT/Menu_IT.htm";parent.Frame_Droite.location.href="../IT/Liens_IT.htm";
		switch(idpage){ 
		case 'Activite'	: parent.Frame_Gauche.location.href="../IT/Activite_IT.htm";break;
		case 'Photo'	: parent.Frame_Gauche.location.href="../IT/Photo_IT.htm";break;
		case 'Video'	: parent.Frame_Gauche.location.href="../IT/Video_IT.htm";break;
		case 'Plan'		: parent.Frame_Gauche.location.href="../IT/Plan_IT.htm";break;
		default : break;};break;
	case 'ES':document.location.href="../ES/Menu_ES.htm";parent.Frame_Droite.location.href="../ES/Liens_ES.htm";
		switch(idpage){ 
		case 'Activite'	: parent.Frame_Gauche.location.href="../ES/Activite_ES.htm";break;
		case 'Photo'	: parent.Frame_Gauche.location.href="../ES/Photo_ES.htm";break;
		case 'Video'	: parent.Frame_Gauche.location.href="../ES/Video_ES.htm";break;
		case 'Plan'		: parent.Frame_Gauche.location.href="../ES/Plan_ES.htm";break;
		default : break;};break;
	}
}

<!-- Gestion des onglets -->
function TabClick( nTab ){
    <!--Col = parent.Frame_Haut.document.getElementsByName("tabs");-->
    for (i = 0; i < parent.Frame_Haut.document.getElementsByName("tabs").length; i++) 
        {
        parent.Frame_Haut.document.getElementsByName("tabs")[i].className = "TabBorderBottom TabCommon TabOff";
		<!--        document.getElementsByName("Content")[i].style.display = "none"; -->
        } ;
 <!--  document.getElementsByName("Content")[nTab].style.display = "block";     -->
 
    parent.Frame_Haut.document.getElementsByName("tabs")[nTab].className = "TabCommon TabOn TabActiveBackground TabActiveBorderLeftRight";
	<!-- permet de fignoler les onglets -->
	if(nTab!=0){parent.Frame_Haut.document.getElementsByName("tabs")[0].style.borderLeftWidth = "0px"};
	if(nTab==0){parent.Frame_Haut.document.getElementsByName("tabs")[0].style.borderLeftWidth = "1px"};
} 