function simulation(){

var hauteur_popup=400;
var H = (screen.height - hauteur_popup) / 2;
var largeur_popup=500;
var L = (screen.width - largeur_popup) / 2;
pop_up = window.open('http://www.azurfinances.fr/simulation.htm',"Popup","status=yes,scrollbars=no,resizable=no,height="+hauteur_popup+",width="+largeur_popup+",top="+H+",left="+L);

}

posYmenu = 50;
bgcolor='#000080';
bgcolor2='#FFFFCF';
needcenter =true;
if(!needcenter)
	posXmenu = 0;
else
	{	if (document.all)
		posXmenu = (document.body.clientWidth/2)-(778/2);
	else
		posXmenu = (window.innerWidth/2)-(778/2);
	}
document.write('<style type="text/css">');
document.write('.popper { POSITION: absolute; VISIBILITY: hidden; z-index:3; }')
document.write('#topgauche { position:absolute; top:'+posYmenu+'px; left:'+posXmenu+'px; z-index:10; }')
document.write('A:hover.ejsmenu {color:#000000; text-decoration:none;}')
document.write('A.ejsmenu {color:#FFFFFF; text-decoration:none;}')
document.write('</style>')
document.write('<DIV class=popper id=topdeck></DIV>');
/*
SCRIPT EDITE SUR L'EDITEUR JAVACSRIPT
http://www.editeurjavascript.com
*/

/*
LIENS
*/

zlien = new Array;
zlien[0] = new Array;
zlien[1] = new Array;
zlien[2] = new Array;
zlien[3] = new Array;
zlien[4] = new Array;
zlien[5] = new Array;
zlien[0][0] = '<A HREF="index.html" CLASS=ejsmenu>Qui sommmes-nous ?</A>';
zlien[0][1] = '<A HREF="partenaires.htm" CLASS=ejsmenu>Nos partenaires</A>';
zlien[0][2] = '<A HREF="plan.htm" CLASS=ejsmenu>Plan du site</A>';
zlien[1][0] = '<A HREF="documentation_1.htm" CLASS=ejsmenu>Acquisition immobilière : quels frais ?</A>';
zlien[1][1] = '<A HREF="documentation_2.htm" CLASS=ejsmenu>Crédit classique : règles de calcul</A>';
zlien[1][2] = '<A HREF="documentation_3.htm" CLASS=ejsmenu>Comment assurer votre emprunt ?</A>';
zlien[1][3] = '<A HREF="documentation_4.htm" CLASS=ejsmenu>Défiscaliser des revenus locatifs</A>';
zlien[1][4] = '<A HREF="documentation_5.htm" CLASS=ejsmenu>Le prêt à taux Zéro</A>';
zlien[1][5] = '<A HREF="documentation_6.htm" CLASS=ejsmenu>Dossier : le pret In Fine</A>';
zlien[2][0] = '<A HREF="taux.htm" CLASS=ejsmenu>Les meilleurs taux</A>';
zlien[2][1] = '<A HREF="pret_immobilier.htm" CLASS=ejsmenu>Prêts immobiliers</A>';
zlien[2][2] = '<A HREF="credit_conso.htm" CLASS=ejsmenu>Crédits Consommation</A>';
zlien[2][3] = '<A HREF="rachat_pret.htm" CLASS=ejsmenu>rachat de crédit(s)</A>';
zlien[3][0] = '<A HREF="assurance_1.htm" CLASS=ejsmenu>Assurance de prêt</A>';
zlien[3][1] = '<A HREF="assurance_2.htm" CLASS=ejsmenu>Assurance habitation</A>';
zlien[3][2] = '<A HREF="assurance_3.htm" CLASS=ejsmenu>Lexique des assurances</A>';
zlien[4][0] = '<A HREF="devis_1.htm" CLASS=ejsmenu>Devis prêt immobilier</A>';
zlien[4][1] = '<A HREF="javascript:simulation()" CLASS=ejsmenu>Simulation prêt immobilier</A>';
zlien[4][2] = '<A HREF="devis_2.htm" CLASS=ejsmenu>Devis crédit consommation</A>';
zlien[4][3] = '<A HREF="devis_3.htm" CLASS=ejsmenu>Devis rachat de crédit(s)</A>';
zlien[4][4] = '<A HREF="devis_4.htm" CLASS=ejsmenu>Devis assurance de prêt</A>';
var nava = (document.layers);
var dom = (document.getElementById);
var iex = (document.all);
if (nava) { skn = document.topdeck }
else if (dom) { skn = document.getElementById("topdeck").style }
else if (iex) { skn = topdeck.style }
skn.top = posYmenu+24;

function pop(msg,pos)
{
skn.visibility = "hidden";
a=true
skn.left = posXmenu+pos;
var content ="<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000 WIDTH=200><TR><TD><TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=1>";
pass = 0
while (pass < msg.length)
	{
	content += "<TR><TD BGCOLOR="+bgcolor+" onMouseOver=\"this.style.background='"+bgcolor2+"'\" onMouseOut=\"this.style.background='"+bgcolor+"'\" HEIGHT=20><FONT SIZE=1 FACE=\"arial\">&nbsp;&nbsp;"+msg[pass]+"</FONT></TD></TR>";
	pass++;
	}
content += "</TABLE></TD></TR></TABLE>";
if (nava)
  {
    skn.document.write(content);
	  skn.document.close();
	  skn.visibility = "visible";
  }
    else if (dom)
  {
	  document.getElementById("topdeck").innerHTML = content;
	  skn.visibility = "visible";
  }
    else if (iex)
  {
	  document.all("topdeck").innerHTML = content;
	  skn.visibility = "visible";
  }
}
function kill()
{
	skn.visibility = "hidden";
}

document.onclick = kill;
document.write('<DIV ID=topgauche><TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 BGCOLOR=#000000 WIDTH=778><TR><TD><TABLE CELLPADING=0 CELLSPACING=1 BORDER=0 WIDTH=100% HEIGHT=25><TR>')
document.write('<TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[0],0)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="pop(zlien[0],100)" href=# CLASS=ejsmenu><FONT SIZE=1 FACE="arial">AZUR FINANCES</FONT></a></TD>')
document.write('<TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[1],130)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="pop(zlien[1],100)" href=# CLASS=ejsmenu><FONT SIZE=1 FACE="arial">Documentation</FONT></a></TD>')
document.write('<TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[2],258)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="pop(zlien[2],200)" href=# CLASS=ejsmenu><FONT SIZE=1 FACE="arial">Crédits</FONT></a></TD>')
document.write('<TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[3],388)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="pop(zlien[3],300)" href=# CLASS=ejsmenu><FONT SIZE=1 FACE="arial">Assurances</FONT></a></TD>')
document.write('<TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\';pop(zlien[4],518)" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="return(false)" onMouseOver="pop(zlien[4],400)" href=# CLASS=ejsmenu><FONT SIZE=1 FACE="arial">Devis en ligne</FONT></a></TD>')
document.write('<TD WIDTH=100 ALIGN=center BGCOLOR='+bgcolor+' onMouseOver="this.style.background=\''+bgcolor2+'\'" onMouseOut="this.style.background=\''+bgcolor+'\'"><A onClick="" onMouseOver="" href="contact.htm" CLASS=ejsmenu><FONT SIZE=1 FACE="arial">contactez nous... </FONT></a></TD>')
document.write('</TR></TABLE></TD></TR></TABLE></DIV>')
