function popup(u,l,h) {
  w=window.open( u ,'popup' ,'width='+l+',height='+h+',resizable=true');
  w.focus();
}
function popupimage(f) {
  w=window.open( 'popup.php?img='+f ,'popup' ,'width=320,height=200,resizable=true');
  w.focus();
}

var sURL = unescape(window.location.pathname);
function refresh() {
    window.location.href = sURL;
}
function getFlash() {
  w=window.open( 'http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&Lang=French&P5_Language=French' ,'popup' ,'');
//  w=window.open( 'http://www.adobe.com' ,'popup' ,'resizable=false');
  w.focus();
}
//getFlash();
function getFlashMovieObject(movieName)
{
  if (window.document[movieName]) 
  {
      return window.document[movieName];
  }
  if (navigator.appName.indexOf("Microsoft Internet")==-1)
  {
    if (document.embeds && document.embeds[movieName])
      return document.embeds[movieName]; 
  }
  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
  {
    return document.getElementById(movieName);
  }
}
function get_div(div_name) {
	if (window.document[div_name]) 
  {
      return window.document[div_name];
  }
  return document.getElementById(div_name);
}
function AjoutFavoris(url, title) {
	//if ( navigator.appName != 'Microsoft Internet Explorer' ) { 
	if(window.sidebar) {
		window.sidebar.addPanel(title,url,""); 
	} else if(window.external) { 
		window.external.AddFavorite(url,title); 
	} else {
		alert("fonction non disponible pour notre navigateur");
	}
}

function ajoutFavorisYahoo(url, title) {
	if (navigator.appName.indexOf("Microsoft Internet")==-1) {
		javascript:void window.open('http://bookmarks.yahoo.com/toolbar/savebm?t='+encodeURIComponent(title)+'&u='+encodeURIComponent(url)+'&opener=bm&ei=UTF-8','popup','width=450px,height=480px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0);
	} else {
		javascript:void window.open('http://bookmarks.yahoo.com/toolbar/savebm?t='+encodeURIComponent(title)+'&u='+encodeURIComponent(url)+'&opener=bm&ei=UTF-8','popup','width=450px,height=480px,status=0,location=0,resizable=1,scrollbars=1,left=100,top=50',0);
	}
		
}
function setTitre(titre) {
	top.document.title=HTMLentities(titre);
}