	
	// tab rubrique
	var tabRub = new Array("accueil","recherche","proposition","groupe","engagement","part","contact");
	
	// tab habillage centre et accroche
	var tabCentre = new Array("accueilCentre.jpg","rechercheCentre.jpg","propositionCentre.jpg","groupeCentre.gif","engagementCentre.jpg","partCentre.jpg","contactCentre.jpg");
	var tabAccroche = new Array("accueilAccroche.jpg","accroche.gif","accroche.gif","groupeAccroche.gif","engagementAccroche.gif","partAccroche.gif","contactAccroche.gif");
	
	//--------------------------------------------------
	// lien pop up
	var lienNews ={
		lien:'../../newsletter.php?Langue=fr',
		titre:'NewsLetter',
		prop:'width=568,height=381'
	}

	var lienMentions={
		lien:'../fr/mentions.htm',
		titre:'MentionsLegales',
		prop:'width=568,height=406'
	}
		
	var lienAlertPHA={
		lien:'../../alerte.php?Langue=fr',
		titre:'alertPHA',
		prop:'width=700,height=460'
	}
	
	//--------------------------------------------------
	function ouvPopUp(designPop){
		window.open(eval(designPop).lien,eval(designPop).titre,eval(designPop).prop);
	}
	//window.open(lien,titre,"width=600,height=500,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes");	
	
	//--------------------------------------------------
	// init page
	function initPage(){
		if (rub>0)
			eval('document.'+tabRub[rub]).src = 'images/'+tabRub[rub]+'2.gif';
	}
	
	//--------------------------------------------------
	// Fonction de préchargement des images
	function preChargeimages(){
		var i; 
		for(i=0;i<nomBout.length;i++){
			new Image(i).src = 'pictos/images/'+ nomBout[i] + '2.gif';
		}
	}
	
	//--------------------------------------------------
	// Survol bout avec vérif actif / non actif
	
	function survolBout(numBout,actionBout){
		if (rub != numBout){
				//alert(tabRub[numBout]);
				//document.getElementById(tabRub[numBout]).src = 'images/'+tabRub[numBout]+actionBout+'.gif';
				eval('document.'+tabRub[numBout]).src = 'images/'+tabRub[numBout]+actionBout+'.gif';
		}
	}


// montage graph

function montageHaut(){
	// tab centrage
	document.write('<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" valign="middle" align="center" bgcolor="#1F2F80"><tr><td>');

	document.write('<table width="782" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">'
		+'<tr><td>'
		// bandeau haut
		+'<table width="100%" border="0" cellspacing="0" cellpadding="0">'
		+'<tr><td><img src="images/h1.gif" width="185" height="71"></td>'
		+'<td><img src="images/h2.gif" width="412" height="71"></td>'
		+'<td><a href="accueil_immobilier.htm"><img src="images/hLogo.gif" width="185" height="71" border="0"></a></td></tr>'
		+'</table>'
		
		+'</td></tr><tr><td>'
		// tab centre dbt
		+'<table width="100%" border="0" cellspacing="0" cellpadding="0">'
		+'<tr><td><table width="100%" border="0" cellspacing="0" cellpadding="0">'
		+'<tr><td><img src="images/mg.gif" width="74" height="180"></td></tr>'
		+'<tr><td><img src="images/mg2.gif" width="74" height="50"></td></tr>'
		+'</table></td>'
		+'<td width="100%" background="images/'+tabCentre[rub]+'" height="100%">');
}


function montageMilieu(){

	document.write('</td>'
		+'<td valign="top">'
		+'<table width="100%" border="0" cellspacing="0" cellpadding="0">'
		
		+'<tr><td><img src="images/md.gif" width="138" height="84"></td></tr>'
		+'<tr><td>'
	// bout groupe
		+'<table width="100%" border="0" cellspacing="0" cellpadding="0">'
		+'<tr><td><img src="images/Ggroupe.gif" width="31" height="43"></td>'
		+'<td><a href="groupe_immobilier.htm" onMouseOver="survolBout(3,2)" onMouseOut="survolBout(3,1)"><img name="groupe" src="images/groupe1.gif" width="107" height="43" border="0"></a></td></tr>'
		+'</table>'
		+'</td></tr>'
	// bout engagements
		+'<tr><td>'
		+'<table width="100%" border="0" cellspacing="0" cellpadding="0">'
		+'<tr><td><img src="images/Geng.gif" width="31" height="53"></td>'
		+'<td><a href="engagements_immobilier.htm" onMouseOver="survolBout(4,2)" onMouseOut="survolBout(4,1)"><img  name="engagement" src="images/engagement1.gif" width="107" height="53" border="0"></a></td></tr>'
		+'</table>'
		+'</td></tr>'
	// bout partenaires
		+'<tr><td><a href="partenaires_immobilier.htm" onMouseOver="survolBout(5,2)" onMouseOut="survolBout(5,1)"><img  name="part" src="images/part1.gif" width="94" height="50" border="0"></a></td></tr>'
            
		+'</table></td></tr>'
		+'</table></td></tr>'
		
	// tab Accroche et bout Contact
		+'<tr><td>'
		+'<table width="100%" border="0" cellspacing="0" cellpadding="0">'
	// accroche
		+'<tr><td><img src="images/'+tabAccroche[rub]+'" width="597" height="44" name="accroche"></td>'
	// bouton contact
		+'<td width="100%"><a href="contact_immobilier.htm" onMouseOver="survolBout(6,2)" onMouseOut="survolBout(6,1)"><img  name="contact" src="images/contact1.gif" width="93" height="44" border="0"></a></td></tr>'
		+'</table>'
		+'</td></tr>'
	
	// tab Bas	
		+'<tr><td>'
		+'<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>'
		+'<td><img src="images/abk.gif" width="15" height="77"></td>'
		+'<td><img src="images/b1.gif" width="17" height="77"></td>'
		+'<td valign="top">'
		
		+'<table width="100%" border="0" cellspacing="0" cellpadding="0">'
		+'<tr><td><img src="images/graphBas.gif" width="565" height="15"></td></tr>'
		+'<tr><td>'
	
	// boutons rechercher + proposer
		+'<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr>'
		+'<td><a href="recherche_immobiliere.htm" onMouseOver="survolBout(1,2)" onMouseOut="survolBout(1,1)"><img  name="recherche" src="images/recherche1.gif" width="218" height="40" border="0"></a></td>'
		+'<td><a href="proposition_immobiliere.htm" onMouseOver="survolBout(2,2)" onMouseOut="survolBout(2,1)"><img  name="proposition" src="images/proposition1.gif" width="232" height="40" border="0"></a></td>'
		+'<td><img  src="images/b2.gif" width="115" height="40"></td></tr>'
		+'</table>'

		+'</td></tr>'
	
	// pied de page libre
		+'<tr><td background="images/graphpied.gif" class="txt1" height="22" align="center">&nbsp;</td></tr>'
		+'</table></td>'
		+'<td width="100%" background="images/fondBasD.gif" class="txt1" align="right">'
	
	// liens annexe
		+'<a href="../uk/home_real_estate.htm" target="_self">English</a> &gt;&gt;&nbsp;&nbsp;<br>'
		+'<a href="#" onClick="ouvPopUp(\'lienNews\')">News letter</a> &gt;&gt;&nbsp;&nbsp;<br>'
		+'<a href="#" onClick="ouvPopUp(\'lienMentions\')">Mentions l&eacute;gales</a> &gt;&gt;&nbsp;&nbsp;<br>'
		+'<a href="javascript:window.external.AddFavorite(\'http://www.patrick-harlow.com\',\'PHA\')">Ajouter &agrave; votre site</a> &gt;&gt;&nbsp;&nbsp;'
		  
	// fin tab graph	  
		+'</td></tr></table>'
		+'</td></tr></table>'
		
	// tab centrage	
		+'</td></tr></table>');
}


