texte2 = 'Inter-Brasseries.com ';
x = texte2.length-1;
place = 0;
//----------------------------------------------------------------------------------------------------------
function defilStat()
{
	if (place == texte2.length)
		place = 0;
	if (place <= x)
	{
		texteDef = texte2.substring((texte2.length-(x-place)),texte2.length) + texte2.substring(0,place);
		place++;
	}
	window.status = texteDef;
	tempo22 = setTimeout("defilStat()", 150);
}
onload = defilStat;
//----------------------------------------------------------------------------------------------------------
function NoError()
{
	return true;
}
window.onerror=NoError;
//----------------------------------------------------------------------------------------------------------
function ouvreFenetre()
{
	//this.open('http://127.0.0.1/Logiciel%20Immobilier/','','toolbar=no,location=no,directories=no,menuBar=no,scrollbars=yes,resizable=no,status=no');
}
//----------------------------------------------------------------------------------------------------------
function ouvreFenetre(page, largeur, hauteur) 
{
	window.open(page, "Aide", "toolbar=no,location=no,directories=no,menuBar=no,scrollbars=yes,resizable=no,status=no,width=" + largeur + ",height=" + hauteur);
}
//----------------------------------------------------------------------------------------------------------
function printdiv(id)
{
	if(document.getElementById)
	{
		var col=document.getElementsByTagName('div');
		var max=col.length;
		for(var i=0;i<max;i++){col.item.(i).className="cache";}
		document.getElementById(id).className="printdiv";
	}
} 
//----------------------------------------------------------------------------------------------------------
bienvenue1 = new Image;
bienvenue1.src = "images/accueil1.jpg";
bienvenue2 = new Image;
bienvenue2.src = "images/accueil2.jpg";
bienvenue3 = new Image;
bienvenue3.src = "images/accueil3.jpg";
quisommesnous1 = new Image;
quisommesnous1.src = "images/qui1.jpg";
quisommesnous2 = new Image;
quisommesnous2.src = "images/qui2.jpg";
quisommesnous3 = new Image;
quisommesnous3.src = "images/qui3.jpg";
recherche1 = new Image;
recherche1.src = "images/NosBiens1.jpg";
recherche2 = new Image;
recherche2.src = "images/NosBiens2.jpg";
recherche3 = new Image;
recherche3.src = "images/NosBiens3.jpg";
vendre1 = new Image;
vendre1.src = "images/Vendre1.jpg";
vendre2 = new Image;
vendre2.src = "images/Vendre2.jpg";
vendre3 = new Image;
vendre3.src = "images/Vendre3.jpg";
contact1 = new Image;
contact1.src = "images/Contact1.jpg";
contact2 = new Image;
contact2.src = "images/Contact2.jpg";
contact3 = new Image;
contact3.src = "images/Contact3.jpg";
partenaire1 = new Image;
partenaire1.src = "images/Partenaires1.jpg";
partenaire2 = new Image;
partenaire2.src = "images/Partenaires2.jpg";
partenaire3 = new Image;
partenaire3.src = "images/Partenaires3.jpg";
//----------------------------------------------------------------------------------------------------------
function checksize()
{
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' )
	{
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	}
	else if
	( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
	{
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	}
	else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
	{
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	//Redimensionne le centre du site en fonction de la taille de la fenetre
	document.getElementById('centre').style.height=(myHeight-150)+'px';
	if(myWidth<800)
	{
		window.resizeTo(800,600);
	}
}
//----------------------------------------------------------------------------------------------------------
function afficheVignette(cheminVignette,cheminMaxi)
{
	document.write('<A HREF="javascript:afficheMaxi(\''+cheminMaxi+'\')"><IMG SRC="'+cheminVignette+'" HSPACE=0 VSPACE=0 BORDER=0 ALT="Cliquez ici pour agrandir l\'image"></A>');
}
//----------------------------------------------------------------------------------------------------------
function afficheMaxi(chemin)
{
	i1 = new Image;
	i1.src = chemin;
	html = '<HTML><HEAD><TITLE>E-mmo</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><CENTER><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+32)"></CENTER></BODY></HTML>';
	popupImage = window.open('','_blank','toolbar=no,location=no,directories=no,menuBar=no,scrollbars=no,resizable=no,status=no');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
};