var params_meteo="type_meteo=terrestre&amp;langue=fr&amp;fond=2E3E47&amp;texte=FFFFFF&amp;saisie=orcival";

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

texte2 = 'Le comité d\'animation des commerçants et amis d\'ORCIVAL vous souhaite la bienvenue... B O N N E   V I S I T E ... - Le comité d\'animation des commerçants et amis d\'ORCIVAL vous souhaitent la bienvenue... B O N N E   V I S I T E ... - ';
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()", 170);
	}
onload = defilStat;

function AfficheHomePage()
	{
	if (document.all && document.getElementById)
		{
		document.write('<A HREF="#" onClick="HomePage(this);return(false);">Notre site en page de démarrage</A><BR>');
		}
	}
function HomePage(obj)
	{
	obj.style.behavior='url(#default#homepage)';
	obj.setHomePage('http://www.associationcommercante-orcival.com');
	}

nav = navigator.appName.substring(0,3);
ver = navigator.appVersion.substring(0,1)
function addFav()
	{
	if (nav == "Mic" && ver >= 4)
		{
		url_site="http://www.associationcommercante-orcival.com";
		titre_site = "COMITE d\'ANIMATION des COMMERCANTS et AMIS d\'ORCIVAL";
		document.write('<A HREF="#" onClick="window.external.AddFavorite(url_site, titre_site);return(false);">Notre site en favoris</A><BR>')
		}
	else
		{
		document.write('Faites CTRL+D pour ajouter ce site &agrave; vos favoris!')
		}
	}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function update_flag(objet){
 	if (objet.value)
	  document.getElementById("img_flags").src = '../images/flags/'+objet.value+'.png';
}
