function makeVideo(flv,img,noflash,div,time,lien,width,height,autostart){
	if(autostart!=null || autostart!='undefined' || autostart!=''){
		autostart=autostart;
	}else{
		autostart=false;
	}
	if(width==null || width=='undefined' || width=='')width=240;
	if(height==null || height=='undefined' || height=='')height=200;
	var s1 = new SWFObject("http://www.immo-les-palmiers.com/flash-agence-immobiliere/flvplayer.swf?time="+time,"single",width,height,"7",autostart);//212
	s1.addParam("allowfullscreen","true");
	if(lien!="" && lien!='undefined' && lien!=null){
		s1.addVariable("linkfromdisplay","true");
		s1.addVariable("link",lien);
		s1.addVariable("linktarget","_blank");
	}
	s1.addVariable("file",flv); // -- LE CHEMIN EST RELATIF PAR RAPPORT AU PLAYER 
	s1.addVariable("image",img);// -- LE CHEMIN EST RELATIF PAR RAPPPRT A LA PAGE QUI APPEL LE SCRIPT
	s1.addVariable("lightcolor","0x2E3C69");
	s1.addVariable("backcolor","0x9EAFE7");
	s1.addVariable("frontcolor","0xffffff");
	s1.addVariable("showstop","true");
	s1.addVariable("streamscript","http://www.immo-les-palmiers.com/stream.php");
	s1.addVariable("aboutlnk","http://www.1max2web.com/fr/contact-devis-site-internet-39.html");
	s1.addVariable("abouttxt","About 1max2web ...");
	if (autostart) s1.addVariable("autostart","true"); 
	s1.addVariable("width", width);
	s1.addVariable("height", height);
	s1.addVariable("displayheight", height-20);
	s1.addVariable("overstretch", "fit");
	s1.addVariable('javascriptid','jstest');
	s1.addVariable('enablejs','true');
	s1.write(div);
	var version = deconcept.SWFObjectUtil.getPlayerVersion();
	//alert(version["major"]);
	if (document.getElementById && version["major"] <= 8) {
		document.getElementById(div).innerHTML = '<a href="http://www.macromedia.com/go/getflash/" target="_blank"><img src="'+noflash+'" alt="Agence immobilière Les Palmiers" title="Agence immobilière Les Palmiers" /></a>';
	}
}
function sendEvent(swf,typ,prm) { 
  thisMovie(swf).sendEvent(typ,prm); 
};
function getUpdate(typ,pr1,pr2,swf) {
  if(typ == 'state') { 
  	if(pr1>0){
		if(diapoImg && diapoImg!='undefined' && diapoImg!=''){diapoImg.stopDiap();}
  	}else if(pr1==0){
		if(diapoImg && diapoImg!='undefined' && diapoImg!=''){diapoImg.startDiap();}
  	}
  }
};
function thisMovie(swf) {
  if(navigator.appName.indexOf("Microsoft") != -1) {
    return window[swf];
  } else {
    return document[swf];
  }
};
