//Magic Menu V2.1.1 - http://www.ToutJavaScript.com/magicmenu
var main=""; function CREERMAGIC() {
main=new CreerMain(100,15,15);
m1=new CreerMenu("m1",0,"");main.Add("Inde",100,"m1","index.htm");m2=new CreerMenu("m2",1,"");m1.add("Tamil Nadu","tamilna.htm",m2,"");m2.add("Chennai","chennai.htm","","");m2.add("Madurai","madurai.htm","","");m2.add("Tiruchirapalli","tiruchir.htm","","");m2.add("Thanjavur","thanjavu.htm","","");m2.add("Mahabalipuram","mahabali.htm","","");m1.add("Temples du Tamil Nadu","temples1.htm","","");m3=new CreerMenu("m3",1,"");m1.add("Côte sud et sud-ouest (Kerala)","cotesud.htm",m3,"");m3.add("Kanyakumari","kanyakum.htm","","");m3.add("Edava (Varkala)","edava.htm","","");m3.add("Backwaters","backwate.htm","","");m3.add("Nehru Trophy Boat Race","nehrubr1.htm","","");m3.add("Kochi","kochi1.htm","","");m1.add("Ghats occidentaux","munnar1.htm","","");m1.add("Kathakali","kathaka1.htm","","");m4=new CreerMenu("m4",0,"");main.Add("Vietnam",100,"m4","http://www.vietnam.poloziat.fr");m5=new CreerMenu("m5",1,"");m4.add("Villes","http://www.vietnam.poloziat.fr/ville1.htm",m5,"");m5.add("Hanoi","http://www.vietnam.poloziat.fr/ville1.htm","","");m5.add("Hong Gai, Cat Ba","http://www.vietnam.poloziat.fr/ville2.htm","","");m5.add("Cat Ba (suite)","http://www.vietnam.poloziat.fr/ville3.htm","","");m5.add("Cao Bang, Lang Son, Van Don","http://www.vietnam.poloziat.fr/ville4.htm","","");m5.add("Hue, Ho Chi Minh Ville","http://www.vietnam.poloziat.fr/ville5.htm","","");m6=new CreerMenu("m6",1,"");m4.add("Sites","http://www.vietnam.poloziat.fr/site1.htm",m6,"");m6.add("Pagode des Parfums","http://www.vietnam.poloziat.fr/site1.htm","","");m6.add("Hanoi, Baie d'Ha Long","http://www.vietnam.poloziat.fr/site2.htm","","");m6.add("Baie d'Ha Long 2","http://www.vietnam.poloziat.fr/site3.htm","","");m6.add("Hue","http://www.vietnam.poloziat.fr/site4.htm","","");m6.add("Hue 2","http://www.vietnam.poloziat.fr/site5.htm","","");m6.add("Hue 3, Ho Chi Minh Ville","http://www.vietnam.poloziat.fr/site6.htm","","");m7=new CreerMenu("m7",1,"");m4.add("Campagne","http://www.vietnam.poloziat.fr/campag1.htm",m7,"");m7.add("Cat Ba, Bat Trang","http://www.vietnam.poloziat.fr/campag1.htm","","");m7.add("Lac Ba Be, Cho Ra","http://www.vietnam.poloziat.fr/campag2.htm","","");m7.add("Lac Ba Be 2, Ninh Binh","http://www.vietnam.poloziat.fr/campag3.htm","","");m8=new CreerMenu("m8",1,"");m4.add("Marchés","http://www.vietnam.poloziat.fr/marche1.htm",m8,"");m8.add("Cat Ba, Lang Son","http://www.vietnam.poloziat.fr/marche1.htm","","");m8.add("Lang Son 2","http://www.vietnam.poloziat.fr/marche2.htm","","");m8.add("Lang Son 3","http://www.vietnam.poloziat.fr/marche3.htm","","");m4.add("Transport","http://www.vietnam.poloziat.fr/transpo1.htm","","");m9=new CreerMenu("m9",0,"");main.Add("Cambodge",100,"m9","http://www.cambodge.poloziat.fr");m9.add("Itinéraire","http://www.cambodge.poloziat.fr/itiner.htm","","");m10=new CreerMenu("m10",1,"");m9.add("Photos","http://www.cambodge.poloziat.fr/photos.htm",m10,"");m10.add("Phnom Penh et quelques villes","http://www.cambodge.poloziat.fr/villes1.htm","","");m10.add("Angkor","http://www.cambodge.poloziat.fr/phoangk1.htm","","");m10.add("Tonle Sap","http://www.cambodge.poloziat.fr/photonle1.htm","","");m10.add("Mékong","http://www.cambodge.poloziat.fr/phomek1.htm","","");m10.add("Frontière Cambodge/Laos","http://www.cambodge.poloziat.fr/phofron1.htm","","");m9.add("Liens","http://www.poloziat.fr/liens","","");m11=new CreerMenu("m11",0,"");main.Add("Laos",100,"m11","http://www.laos.poloziat.fr");m11.add("Présentation","http://www.laos.poloziat.fr/present.htm","","");m11.add("Itinéraire","http://www.laos.poloziat.fr/itinG.htm","","");m12=new CreerMenu("m12",1,"");m11.add("Photos","http://www.laos.poloziat.fr/sejourG.htm",m12,"");m12.add("Les gens","","","");m12.add("Les monuments","","","");m12.add("Les transports","","","");m12.add("Les villes et villages","","","");m12.add("Quelques paysages","","","");m12.add("Les marchés","","","");m12.add("Le sud du Laos","","","");m11.add("Liens","http://www.laos.poloziat.fr/liensG.htm","","");m11.add("Réactions","http://www.laos.poloziat.fr/reactG.htm","","");m13=new CreerMenu("m13",0,"");main.Add("Myanmar",100,"m13","http://www.myanmar.poloziat.fr");m13.add("Présentation","http://www.myanmar.poloziat.fr/presenta.htm","","");m14=new CreerMenu("m14",1,"");m13.add("Itinéraire et photos","http://www.myanmar.poloziat.fr/periple.htm",m14,"");m14.add("Yangon","","","");m14.add("Lac Inle","","","");m14.add("Meiktila, Mont Popa","","","");m14.add("Bagan","","","");m14.add("Monywa, Po Win Daung","","","");m14.add("Mandalay","","","");m14.add("Hsipaw","","","");m13.add("Liens","http://www.myanmar.poloziat.fr/liens.htm","","");m13.add("Réactions","http://www.myanmar.poloziat.fr/reactg.htm","","");} CREERMAGIC();var font="ms sans serif";var colBarre="#CCCCCC";var colFond="#CCCCCC";var colContour="black";var colOver="navy";var colTextOff="black"; var colTextOn="white";var cssTexte=";font-weight:bold;color:black;font-family:ms sans serif;font-size:12px";var hauteur=15;var nivmax=4;var delai=500;var isout=0;
function CreerMain(X,Y,haut,colFOn,colFOff,colTOn,colTOff) {this.nb=0;this.X=X;this.Y=Y;this.haut=haut;this.Add=AddMain;this.Print=PrintMain;}
function AddMain(txt,larg,mnu,url,target) {var m=new Object; m.txt=txt;m.larg=larg,m.mnu=mnu,m.url=url;m.target=target;this.nb++;this[this.nb]=m;if(mnu!=''){eval(mnu+'.parent="'+txt+'"')};}
function PrintMain() {
var larg=0;	for (i=1;i<=main.nb;i++) {larg+=main[i].larg+1;}
this.X=Math.round((mmgetlarg()-larg)/2);
	X=this.X; Y=this.Y; A="";
	for (var i=1;i<=this.nb;i++) {
 if (this[i].mnu==""){this[i].mnu='0';}
		if ((document.all)||(window.sidebar)) {
         var clic=""; var style=""; if(this[i].url!="") {style="cursor:hand;"; clic=" onclick='window.location=\""+this[i].url+"\"'";}
			A+="<DIV id='main"+i+"' style='position:absolute;left:"+X+";top:"+Y+";"+style+"width:"+this[i].larg+";height:"+this.haut+";background-color:"+colBarre+";"+cssTexte+";text-align:center' onmouseover='start("+i+","+this[i].mnu+","+X+","+(Y+this.haut+1)+")'"+clic+">"+this[i].txt+"</DIV>";
		}
		if (document.layers) {
	var txt=this[i].txt;if(this[i].url!="") {txt="<A href='"+this[i].url+"'>"+txt+"</A>";}
       A+="<LAYER name='main"+i+"' left="+X+" top="+Y+" width="+this[i].larg+" height="+this.haut+" bgcolor="+colBarre+"  onmouseover='start("+i+","+this[i].mnu+","+X+","+(Y+this.haut+1)+")'><CENTER><SPAN style='background-color:"+colBarre+cssTexte+"'>"+txt+"</SPAN></CENTER></LAYER>";
		}
		X+=this[i].larg+1;
	}
	document.write(A);
}
function CreerMenu(nom,niv,target) {this.nb=0; this.X=0;this.Y=0; this.width=1; this.niv=niv; this.parent=""; this.ON=-1;this.nom=nom;this.target=""; if ((target!="")&&(target!=null)) this.target=target;this.add=Add;this.aff=Aff;}
function Add(lib,lnk,mnu,target) {var rub = new Object;	rub.lib=lib; rub.target=target;	rub.lnk=""; if ((lnk!="")&&(lnk!=null)) rub.lnk=lnk; rub.mnu=""; if ((mnu!="")&&(mnu!=null)) {rub.mnu=mnu; mnu.parent=this}	this[this.nb]=rub;	this.nb++;}
function start(i,mnu,x,y) {
	isout=1;hideall(i);isout=0
x=parseInt(GetLeft("main"+i));
	if (mnu!=0){mnu.aff(x,y)};
	BGCalque("main"+i,colOver); FontCalque("main"+i,colTextOn); SizeCalque("fond",mmgetlarg()-x+20);
	MoveCalque("fond",x-50,y+1);
	ShowCalque("fond");
	return false;
}
function onfond() {
	isout=1;
	setTimeout("hideall()",delai);
}
function hideall(i) {
	if (isout==1) {
		for (var i=0;i<nivmax;i++) {HideCalque("niv"+i); HideCalque("fond");}
		for (var i=1;i<=main.nb;i++) {BGCalque("main"+i,colBarre); FontCalque("main"+i,colTextOff);}
	}
}
function hide(mnu) {
	if (mnu.ON>-1) {
		if (mnu[mnu.ON].mnu!="") {
			var nom="niv"+mnu[mnu.ON].mnu.niv;
			HideCalque(nom);
			hide(mnu[mnu.ON].mnu);
		}
	}
	mnu.ON=-1;
}
function over(mnu,i) {
	var nom="niv"+mnu.niv+"n"+i;
	var nomtd=nom+"td";
	isout=0;
	BGCalque(nom,colOver);
	FontCalque(nomtd,colTextOn);
}
function out(mnu,i) {
	var nom="niv"+mnu.niv+"n"+i; 	var nomtd=nom+"td";
	if (mnu[i].lib!="-") {
		BGCalque(nom,colFond);
		FontCalque(nomtd,colTextOff)
	}
}
function clear(mnu) {
	  for (var j=0;j<mnu.nb;j++) {
	   out(mnu,j);
	   hide(mnu);
	}
}
function mmover(mnu,i) {
	clear(mnu);
	over(mnu,i);
	mnu.ON=i;
	if (mnu[i].mnu!="") {
		mnu[i].mnu.aff();
	}
}
function mmclick(mnu) {
	lnk=mnu[mnu.ON].lnk;
	if (lnk!="") {
			if (mnu[mnu.ON].target=="_blank") {window.open(lnk)}
			else {
				if   (mnu[mnu.ON].target=="")	{window.location=lnk;}
				else {parent.frames[mnu[mnu.ON].target].location.href=lnk;}
			}
	}
}
function mmgetlarg() {if (document.layers){return parseInt(document.width)} else {return parseInt(document.body.offsetWidth)}}
var mmlarg=0;
function mmrepos() {
if (mmgetlarg()!=mmlarg){var larg=0;for (i=1;i<=main.nb;i++) {larg+=main[i].larg+1;}
var X=Math.round((mmgetlarg()-larg)/2);	main.X=X;MoveCalque("fond",X-1,main.Y)
for (i=1;i<=main.nb;i++) {MoveCalque("main"+i,X,main.Y);X+=main[i].larg+1;}}
mmlarg=mmgetlarg();	setTimeout("mmrepos()",1000);}
function AFF() {
var n=new Image; n.src="http://perso.numericable.fr/~poloziat/images/fleche.gif";var m=new Image; m.src="http://perso.numericable.fr/~poloziat/images/vide.gif";	if ((document.all)||(window.sidebar)) {
var A="<DIV id='fond' style='position:absolute;top:10;left:100;width:500;height:400;visibility:hidden;font-family:"+font+"' onmouseover='onfond()'></DIV>";A+="<DIV id='niv0' style='position:absolute;top:10;left:100;visibility:visible;font-family:"+font+"'></DIV>";A+="<DIV id='niv1' style='position:absolute;top:10;left:100;visibility:visible;font-family:"+font+"'></DIV>";A+="<DIV id='niv2' style='position:absolute;top:10;left:100;visibility:visible;font-family:"+font+"'></DIV>";A+="<DIV id='niv3' style='position:absolute;top:10;left:100;visibility:visible;font-family:"+font+"'></DIV>";} else {var A="<LAYER name='fond' width=500 height=600 visibility=hide top=100 left=100 onmouseover='onfond()'>&nbsp;</LAYER>";A+="<LAYER name='niv0' top=200 left=200 visibility=show></LAYER>";A+="<LAYER name='niv1' top=200 left=200 visibility=show></LAYER>";A+="<LAYER name='niv2' top=200 left=200 visibility=show></LAYER>";A+="<LAYER name='niv3' top=200 left=200 visibility=show></LAYER>";}	document.write(A);main.Print();
setTimeout("mmrepos()",100);
}
function Aff(x,y) {
var nom=this.nom;	var niv="niv"+this.niv;
if (this.niv==0) {X=x;Y=y;}
else {X=this.parent.X+this.parent.width-2;Y=this.parent.Y+(hauteur+4)*this.parent.ON}if ((document.all)||(window.sidebar)) {
var A=""
A+="<TABLE border=0 cellpadding=0 cellspacing=0 style='border-color:"+colContour+";border-style:solid;border-width:1px'>";
for (var i=0;i<this.nb;i++) {
if (this[i].lib=="-") {
A+="<TR><TD style='background-color:"+colFond+";font-size:10px;border-style:none;margin:0px;height:"+(hauteur-2)+"px' colspan=2><DIV  style='background-color:"+colFond+";height:"+(hauteur+2)+"px'><HR noshade style='color:"+colContour+";height:1px'></DIV></TD></TR>"; 
} else {
var img="http://perso.numericable.fr/~poloziat/images/vide.gif";if (this[i].mnu!="") { img="http://perso.numericable.fr/~poloziat/images/fleche.gif"}
A+="<TR><TD style='cssTexte;border-style:none;margin:0px'><DIV id='"+niv+"n"+i+"' style='cursor:hand;background-color:"+colFond+cssTexte+"'  onmouseover='mmover("+this.nom+","+i+")' onClick='mmclick("+this.nom+")'><TABLE border=0 width=100% cellspacing=0><TR><TD style='font-size:12px;padding-top:3px;padding-bottom:3px;padding-left:3px;'><DIV id='"+niv+"n"+i+"td' style='"+cssTexte+"'>"+this[i].lib+"</DIV></TD><TD width=10 align=right><IMG src='"+img+"' height='"+hauteur+"' width='"+hauteur+"'></TD></TR></TABLE></DIV></TD></TR>";
}
}
A+="</TABLE>"
}else{
var A="<table border=0 cellspacing=0 cellpadding=1><tr><td bgcolor="+colContour+">";
A+="<TABLE border=0 cellpadding=0 cellspacing=0 bgcolor="+colFond+" width=100%>";
for (var i=0;i<this.nb;i++) {
if (this[i].lib=="-") {
A+="<TR><TD><HR width=99% height=1%></TD></TR>";
} else {
var img="http://perso.numericable.fr/~poloziat/images/vide.gif";if (this[i].mnu!="") { img="http://perso.numericable.fr/~poloziat/images/fleche.gif"}
A+="<TR><TD><TABLE border=0 width=100% cellspacing=0><TR><TD><A href='javascript:mmclick("+this.nom+")' onmouseover='mmover("+this.nom+","+i+")'><SPAN style='background-color:"+colFond+cssTexte+"'>"+this[i].lib+"</SPAN></A></TD><TD width=10 align=right><IMG src='"+img+"' height="+hauteur+" width="+hauteur+"></TD></TR></TABLE></TD></TR>";
}
}
A+="</TABLE></TD</TR></TABLE>"
}
if (document.all) {document.all[niv].innerHTML=A+"&nbsp;";document.all[niv].style.top=Y;document.all[niv].style.left=X;document.all[niv].style.visibility="visible";this.X=X;this.Y=Y;this.width=document.all[niv].clientWidth;}
if (window.sidebar) {document.getElementById(niv).innerHTML=A;document.getElementById(niv).style.top=Y;document.getElementById(niv).style.left=X;document.getElementById(niv).style.visibility="visible";this.X=X;this.Y=Y;this.width=document.getElementById(niv).offsetWidth;}
if (document.layers) {document.layers[niv].left=X;document.layers[niv].top=Y;document.layers[niv].document.write(A);document.layers[niv].document.close();document.layers[niv].visibility="show";this.X=X;this.Y=Y;this.width=document.layers[niv].clip.width;}}
function HideCalque(nom) {
if (document.all) {document.all[nom].style.visibility="hidden";}
if (window.sidebar) {document.getElementById(nom).style.visibility="hidden";}
if (document.layers) {document.layers[nom].visibility="hide";}
}
function ShowCalque(nom) {
if (document.all) {document.all[nom].style.visibility="visible";}
if (window.sidebar) {document.getElementById(nom).style.visibility="visible";}
if (document.layers) {document.layers[nom].visibility="show";}
}
function BGCalque(nom,BG) {
if (document.all) {document.all[nom].style.backgroundColor=BG;}
if (window.sidebar) {document.getElementById(nom).style.backgroundColor=BG;}
}
function FontCalque(nom,Font) {
if (document.all) {document.all[nom].style.color=Font;}
if (window.sidebar) {document.getElementById(nom).style.color=Font;}
}
function MoveCalque(nom,X,Y) {
if (document.all) {document.all[nom].style.top=Y;document.all[nom].style.left=X;}
if (window.sidebar) {document.getElementById(nom).style.top=Y;document.getElementById(nom).style.left=X;}
if (document.layers) {document.layers[nom].top=Y;document.layers[nom].left=X;}
}
function GetLeft(nom) {
if (document.all) {return document.all[nom].style.left;}
if (window.sidebar) {return document.getElementById(nom).style.left}
if (document.layers) {return document.layers[nom].left;}
}
function SizeCalque(nom,larg) {
if (document.all) {document.all[nom].style.width=larg;}
if (window.sidebar) {document.getElementById(nom).style.width=larg;}
if (document.layers) {document.layers[nom].width=larg;}
}
// VERSION

