//<SCRIPT LANGUAGE="javascript">
//<!--
 
// Valeur par défaut

 
var intCount = 0;

            //-Fonction d'ajout d'entrées principales-------------------------
            function DynamicMenu_addParent(strName) {
                var strID = 'ID' + intCount++; 

                var strTemp = '<DIV ID="' + strID + '" CLASS="parent"';
                strTemp += ' onClick="expandCollapse(this);">';
                strTemp += '<IMG SRC="images/left.gif" Height="22">';
                strTemp += '&nbsp;' + strName ;
                strTemp += '<DIV STYLE="display: none" CLASS="child"></DIV>';
                strTemp += '</DIV>';

                this.div.innerHTML += strTemp;
                this.currentChild = document.getElementById(strID);
            }

            //-Fonction d'ajout de liens dans le menu-------------------------
            function DynamicMenu_addChild(strName,strURL) {
                var strTemp = '<A HREF="' + strURL + '"'
                            + ' onClick="cancelBubble(arguments[0]);">' 
                            + strName + '</A><BR>';

                if (document.all) {
                    this.currentChild.children[1].innerHTML += strTemp;
                } else {
                    this.currentChild.childNodes[2].innerHTML += strTemp;
                }
            }

            //-inhibe la cascade d'évènements au DIV conteneur----------------
            function cancelBubble(netEvent) {
                if (document.all) {
                    window.event.cancelBubble = true;
                } else {
                    netEvent.cancelBubble = true;
                }
            }

            //-Contracte ou expanse le menu-----------------------------------
            function expandCollapse(objElement) {
                if (document.all) {
                    var imgIcon = objElement.children[0];
                    objElement = objElement.children[1];
                } else {
                    var imgIcon = objElement.childNodes[0];
                    objElement = objElement.childNodes[2];
                }    

                if (objElement.style.display == "none") {  
                    objElement.style.display = "block" ;
                    imgIcon.src = "images/bottom.gif" ;
                } else {
                    objElement.style.display = "none" ;
                    imgIcon.src = "images/left.gif" ;
                }
            }

            //-Fonction de création de menu dynamique------------------------- 
            function DynamicMenu() {
                var id = "menu" + intCount++;
				//alert('variable menu :' + id ); 

                document.write('<DIV Id="' + id + '"></DIV>');

                this.div = document.getElementById(id);
                this.currentChild = null;

                this.addParent = DynamicMenu_addParent;
                this.addChild = DynamicMenu_addChild;
            }


            function agrandirimage(name,width,height) 
        	{ 
		name.height = height; 
		name.width = width;

		} 

	    function reduireimage(name,width,height) 
		{ 
		name.height = height; 
		name.width = width;
		} 

	


            var menu = new DynamicMenu();

            menu.addParent("A la source");
                menu.addChild("Page d'accueil","index.php");
                

            menu.addParent("Pr&eacute;sentation");
                menu.addChild("L'association","association.htm");
		menu.addChild("L'animatrice","animatrice.htm");

            menu.addParent("Pratiques");
                
                menu.addChild("1.Ateliers Tarot", "cours_de_tarot_de_marseille_a_tours.htm");
                menu.addChild("2.Stages G&eacute;obiologie art du sourcier", "formation_geobiologie_harmonisation_de_l_habitat_a_tours.htm");
		menu.addChild("3.Stage bilan bio&eacute;nerg&egrave;tique", "bilan_bioenergetique.htm");		
		menu.addChild("4.harmonisation de l'habitat", "harmonisation_de_l_habitat.htm");

            menu.addParent("Contact");
                menu.addChild("Inscription","inscription.htm");
                menu.addChild("Liens","page_de_lien.htm");

//Fonction pour faire défiler des images en diaporamma

var tablimage=new Array(8);
var i=0;
var booleen;

tablimage[0]="images/photos/source_geurisseuse_redim_diapo.jpg";
tablimage[1]="images/tarot/arc16.gif";
tablimage[2]="images/tarot/arc17.gif";
tablimage[3]="images/photos/stage geobiologie mai 2009 021_redim.JPG";
tablimage[4]="images/tarot/arc14.gif";
tablimage[5]="images/tarots.jpg";
tablimage[6]="images/tarot/arc05.gif";
tablimage[7]="images/tarot/arc19.gif";

var tablimage2=new Array(22);
var i=0;
var booleen;
tablimage2[0]="images/tarot/arc01.gif";
tablimage2[1]="images/tarot/arc02.gif";
tablimage2[2]="images/tarot/arc03.gif";
tablimage2[3]="images/tarot/arc04.gif";
tablimage2[4]="images/tarot/arc05.gif";
tablimage2[5]="images/tarot/arc06.gif";
tablimage2[6]="images/tarot/arc07.gif";
tablimage2[7]="images/tarot/arc08.gif";
tablimage2[8]="images/tarot/arc09.gif";
tablimage2[9]="images/tarot/arc10.gif";
tablimage2[10]="images/tarot/arc11.gif";
tablimage2[11]="images/tarot/arc12.gif";
tablimage2[12]="images/tarot/arc13.gif";
tablimage2[13]="images/tarot/arc14.gif";
tablimage2[14]="images/tarot/arc15.gif";
tablimage2[15]="images/tarot/arc16.gif";
tablimage2[16]="images/tarot/arc17.gif";
tablimage2[17]="images/tarot/arc18.gif";
tablimage2[18]="images/tarot/arc19.gif";
tablimage2[19]="images/tarot/arc20.gif";
tablimage2[20]="images/tarot/arc21.gif";
tablimage2[21]="images/tarot/arc22.gif";

function ChangeImage()
	{
	
	window.document.diaporama.src=tablimage[i];
	i=(i+1)%8;
	a=window.setTimeout("ChangeImage()",3000);
	booleen=1;
	}

function ChangeImage2()
	{
	window.document.diaporama.src=tablimage2[i];
	i=(i+1)%8;
	a=window.setTimeout("ChangeImage2()",3000);
	booleen=1;
	}

function Timer() 
	{
       	var dt=new Date()
       	window.status=dt.getHours()+":"+dt.getMinutes()+":"+dt.getSeconds();
       	setTimeout("Timer()",1000);
	}
	Timer();

function stopdiapo()
	{
	if (booleen==1)
		{
		window.clearTimeout(a);	
		booleen=0;
		}
		
	else
		{
 	window.setTimeout("ChangeImage()",3000);
		booleen=1;
		}
	
	}

function stopdiapo2()
	{
	if (booleen==1)
		{
		window.clearTimeout(a);	
		booleen=0;
		}
		
	else
		{
 	window.setTimeout("ChangeImage2()",3000);
		booleen=1;
		}
	
	}


function modelesswin(url,mwidth,mheight)
{
if (document.all&&window.print) //if ie5
eval('window.showModelessDialog(url,"","help:0;resizable:1;dialogWidth:'+mwidth+'px;dialogHeight:'+mheight+'px")')
else
eval('window.open(url,"","width='+mwidth+'px,height='+mheight+'px,resizable=1,scrollbars=1")')
}
//CONFIG LARGEUR et HAUTEUR FENETRE (width/height) et NOM DE PAGE

        

//modelesswin("http://votre_site.com/page.htm",300,300);
// -->
//</SCRIPT>