var nCity;
var winMap;

function scrollB()
{
	if(screen.width>800)
	{
		document.body.style.overflowX="hidden";
	}
	return;
}

function map(city)
{
	if(!winMap || winMap.closed)
	{
		nCity=city;
		winMap=open("flash/carte.html","carte","width=489,height=489,toolbar=no,directories=no,status=no,scrollbars=no,		resize=no,menubar=no,location=no,copyhistory=no");
	}
	else
	{
		winMap.carte.setVariable("nCity",city);
		winMap.carte.GotoFrame(0);
		winMap.focus();
	}
	
	return;
}

function closeMap()
{
	winMap.close();
}


function popup(url) 
{
 var width  = 410;
 var height = 310;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=yes';
 params += ', scrollbars=no';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open(url,'windowname5', params);
 if (window.focus) {newwin.focus()}
 return false;
}

function popform(url) 
{
 var width  = 580;
 var height = 700;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=yes';
 params += ', scrollbars=no';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open(url,'windowname5', params);
 if (window.focus) {newwin.focus()}
 return false;
}
