//#
function rollover(){
		if(document.getElementById || document.all){
			arguments[0].className = 'lhsmenuOn'
		}
	}
function rolloff(){
	if(document.getElementById || document.all){
		arguments[0].className = 'lhsmenu'
		}
	}
function leftmenu(){ 
var menu=new Array();
var lienmenu=new Array();
var bulletmenu=new Array(); 
var ssmenuNom=new Array();
var ssmenuLien=new Array();
var ssmenuBullet=new Array();
menu[0]="Versicherungsbedingungen";
lienmenu[0]="/de/individuals/avb.htm";
bulletmenu[0]=""; 
ssmenuNom[0]=new Array();
ssmenuLien[0]=new Array();
ssmenuBullet[0]=new Array(); 
menu[1]="Schadenhandling";
lienmenu[1]="/de/individuals/schadenhandling.htm";
bulletmenu[1]=""; 
ssmenuNom[1]=new Array();
ssmenuLien[1]=new Array();
ssmenuBullet[1]=new Array(); 
//#
// the bullet image is selected according to the current URL
function highlightCurrentPage(toto){
			var bUnrollSubMenu
		
		if (location.href.toUpperCase().indexOf(toto.toUpperCase()) > 0  && toto != "#" ){
			// cas true pour la bullet
			bullet = '<IMG tcmuri="tcm:102-25508" SRC="/img/switzerland/ch_red_menu_on_tcm102-25508.gif" WIDTH="8" HEIGHT="8"  border="0">';
			return true;
		} else {
			// cas false
			bullet = '<IMG tcmuri="tcm:102-3441" SRC="/img/switzerland/menu_off%5B1%5D_tcm102-3441.gif" WIDTH="8" HEIGHT="8"  border="0">';
			return false;
		}
	}

function highlightCurrentSubPage(toto){
			var bUnrollSubMenu
		
		if (location.href.toUpperCase().indexOf(toto.toUpperCase()) > 0  && toto != "#" ){
			// cas true pour la bullet
			subbullet = '<img src="/img/switzerland/ch_red_menu_on_tcm102-25508.gif" width="7" height="7" border="0">';
			return true;			
		} else {
			// cas false
			subbullet = '<img src="/img/switzerland/menu_off%5B1%5D_tcm102-3441.gif" width="7" height="7" border="0">';
			// gestion des cas particuliers
			if (ExtraElvia(toto) == true)
				{
					subbullet = '<img src="/img/switzerland/ch_red_menu_on_tcm102-25508.gif" width="7" height="7" border="0">';
					return true;
				}
			if (ExtraInfos(toto) == true)
				{
					subbullet = '<img src="/img/mondial_assistance_france_convergence/red_menu_on_tcm82-10316.gif" width="7" height="7" border="0">';
					return true;
				}
		}
	}

function ExtraElvia(tata)
	{
		elviaString1 = "/medfiles/"
		elviaString2 = "/infos/" ;
		elviaString3 = "/info.htm" ;
		
		if (tata.toUpperCase().indexOf(elviaString3.toUpperCase()) > 0   && (location.href.toUpperCase().indexOf(elviaString2.toUpperCase()) > 0 || location.href.toUpperCase().indexOf(elviaString1.toUpperCase()) > 0 ))
			{
				return true;
			}
	}

function ExtraInfos(tata)
	{
		infoString1 = "/tripdetail.htm";
		infoString2 = "/movedetail.htm";
		infoString3 = "/expatriatedetail.htm";
		infoString4 = "/practical_info.htm";
		
		if (tata.toUpperCase().indexOf(infoString4.toUpperCase()) > 0   && (location.href.toUpperCase().indexOf(infoString3.toUpperCase()) > 0 || location.href.toUpperCase().indexOf(infoString2.toUpperCase()) > 0 || location.href.toUpperCase().indexOf(infoString1.toUpperCase()) > 0 ))
			{
				return true;
			}
	}
	
function UnrollSubMenu(toto){

	// Commentaires Bernard :
	
	// attention : pour dérouler le sous-menu, il ne faut regarder que le path
	// sans inclure le nom du fichier
	
	// règles pour le déploiement du sous-menu :
	//	- ne pas être sur la homepage  : location.href.toUpperCase().indexOf("HOMEPAGE.HTM") < 0
	//	- être sur la page d'entrée de rubrique (ex Produits et services) : location.href.toUpperCase().indexOf(sPagePath.toUpperCase()) > 0
	//	- ou être sur une des sous pages (ex : scolarité)
	
	// NOTE : 	le plus difficile est de respecter la seconde règle en même temps que la troisième, car toutes les
	//			pages d'entrées se trouvent dans le même répertoire (on ne peut donc pas utiliser le chemin d'accès
	//			à la page d'entrée comme argument distinctif)
	
	// NOTE bis :	highlightCurrentSubPage(toto) TRUE sert à ne dérouler le sous menu que si l'on est dans la bonne rubrique
	//				et éviter de dérouler tous les sous-menus en même temps
	
	var iFileNamePosition = toto.lastIndexOf("/")
	var sPagePath = toto.substring(0,iFileNamePosition) + "/"
if (location.href.toUpperCase().indexOf(sPagePath.toUpperCase()) > 0  && toto != "#" && location.href.toUpperCase().indexOf("HOMEPAGE.HTM") < 0 && (highlightCurrentSubPage(toto)) ){
			return true
	}
}

//#
		document.write ('<table align="top" cellpadding="0" cellspacing="0" border="0">');
		document.write ('<tr>');
		document.write ('<td width="1"><img src="/img/switzerland/tranny_tcm102-3314.gif" width="1" height="1" border="0"></td>');
		document.write ('<td width="6"><img src="/img/switzerland/tranny_tcm102-3314.gif" width="6" height="1" border="0"></td>');
		document.write ('<td width="181"><p class="lhsmenuheadsimple"><a href="/de/individuals/individuals.htm" target="_self" class="lhsmenuhead">Privatkunden</a></p></td>');
		document.write ('</tr>');
		document.write ('<tr>');
		document.write ('<td width="1" colspan="3"><img src="/img/switzerland/tranny_tcm102-3314.gif" width="1" height="4" border="0"></td>');
		document.write ('<tr>');
		document.write ('</table>');

	for (i = 0 ; i < menu.length; i++)
		{
		highlightCurrentPage(lienmenu[i]);
		document.write ('<table align="top" cellpadding="0" cellspacing="0" cols="5" border="0">');
		document.write ('<tr>');
		document.write ('<td width="1"><img src="/img/switzerland/tranny_tcm102-3314.gif" width="1" height="1" border="0"></td>');
		document.write ('<td width="6"><img src="/img/switzerland/tranny_tcm102-3314.gif" width="6" height="1" border="0"></td>');
		document.write ('<td width="8" valign="middle" align="center">' + bullet + '</td>');
		document.write ('<td width="9"><img src="/img/switzerland/tranny_tcm102-3314.gif" width="9" height="1" border="0"></td>');
		document.write ('<td width="173"><a href="' + lienmenu[i] + '" target="_self" class="lhsmenu" onMouseOver="rollover(this)" onMouseOut="rolloff(this)" title = "' + bulletmenu[i] + '">');
		document.write (menu[i]);
		document.write ('</a></td>');
		document.write ('</tr>');

		var bUnrollAnyWay
		// première boucle pour vérifier si l'on est sur une sous page
			for (z=0; z<ssmenuNom[i].length; z++) {
				if (highlightCurrentSubPage(ssmenuLien[i][z])){
					bUnrollAnyWay = true;
					break;
					} else {
					bUnrollAnyWay = false;
					}
			}
		
		if (UnrollSubMenu(lienmenu[i])||bUnrollAnyWay){
			for (z=0; z<ssmenuNom[i].length; z++) {
			highlightCurrentSubPage(ssmenuLien[i][z]);
			document.write ('<tr>');
			document.write ('<td colspan="5"><table border="0" cellpadding="0" cellspacing="0"><tr><td width="25"><img src="/img/switzerland/tranny_tcm102-3314.gif" width="25" height="11" border="0"></td><td width="17" valign="top">' + subbullet + '<img src="/img/switzerland/tranny_tcm102-3314.gif" width="10" height="11" border="0"></td><td><a href="' + ssmenuLien[i][z] + '" target="_self" class="lhsmenu" onMouseOver="rollover(this)" onMouseOut="rolloff(this)" style="cursor:hand" title = "' + ssmenuBullet[i][z] + '">');
			document.write (ssmenuNom[i][z]);
			document.write ('</a></td></tr></table></td>');
			document.write ('</tr>');
			}
		}
		
		document.write ('<tr>');
		document.write ('<td colspan="5"><img src="/img/switzerland/tranny_tcm102-3314.gif" width="9" height="4" border="0"></td>');
		document.write ('</tr>');
		document.write ('</table>');
		}
}