
function deplace_flash(var_x,var_y){
	obj = document.getElementById('flash');
	new_x = (parseInt(obj.style.left)+parseInt(var_x));
	new_y = (parseInt(obj.style.top)+parseInt(var_y));
	obj.style.left = new_x+"px";
	obj.style.top = new_y +"px";

}

function changeClass (id, valClass){
	var obj = document.getElementById(id);
	obj.className = valClass; 
}

function ouvrir_popup(url,features) {
  new_win = window.open(url,'popup',features);
  new_win.focus();
  }


// test du navigateur
function plateforme(){
  if (navigator.appVersion.indexOf("Win") > -1) {return "Windows";}
  if (navigator.appVersion.indexOf("Macintosh") > -1) {return "Macintosh";}
  if (navigator.appVersion.indexOf("X11") > -1) {return "Unix";}
  if (navigator.appVersion.indexOf("Unix") > -1) {return "Unix";}
  if (navigator.appVersion.indexOf("Linux") > -1) {return "Unix";}
  return "Unknown";
 }
 function navigateur(){
  if (navigator.appName.indexOf("Netscape") > -1) {return "Netscape";}
  if (navigator.appName.indexOf("Explorer") > -1) {return "Explorer";}
  return "Unknown";
 }
 function version(){
    return parseFloat(navigator.appVersion);
}



