// FLASH DYNAMIQUES
function Detect_Screen() {
	//Renvoi la largeur de l'écran lors de l'ouverture du navigateur;
	return screen.width;
}

function Load_Content() {

if(Detect_Screen() < 1024) {
		
	//Changement de la taille globale du site qui est par défaut à 1024;
	var monbody = document.getElementById("globalcontentdiv");
	monbody.className = "div_800";		
	
}
}

function Ecrire_FlashHome(chemin,clicktag,targettag) {

var strMonCodeFlash = "";
strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='650' height='242' id='CA_moments_home.swf'>";
strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_home.swf' />";
strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
strMonCodeFlash = strMonCodeFlash + "<param name='scalemode' value='exactfit' />";
strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
strMonCodeFlash = strMonCodeFlash + "<param name='wmode' value='transparent' />";
strMonCodeFlash = strMonCodeFlash + "<param name='FlashVars' value='chemin=/IMG/xml/&images=/IMG&pageid=1&gotoURL0=rubrique.php3?id_rubrique=48&gotoURL1=rubrique.php3?id_rubrique=49&gotoURL2=rubrique.php3?id_rubrique=50&gotoURL3=rubrique.php3?id_rubrique=51&gotoURL4=rubrique.php3?id_rubrique=68&pubFile=/dev_spec/includes/bandeau_pub_bighome.php?reso=1024&clickTag= " + clicktag + "&targetTag="+ targettag + "' />";
strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_home.swf' quality='high' wmode='transparent' bgcolor='#ffffff'  width='650' height='242' name='CA_moments_home.swf'  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' flashvars='chemin=/IMG/xml/&images=/IMG&pageid=1&gotoURL0=rubrique.php3?id_rubrique=48&gotoURL1=rubrique.php3?id_rubrique=49&gotoURL2=rubrique.php3?id_rubrique=50&gotoURL3=rubrique.php3?id_rubrique=51&gotoURL4=rubrique.php3?id_rubrique=68&pubFile=/dev_spec/includes/bandeau_pub_bighome.php?reso=1024&clickTag= " + clicktag + "&targetTag=" + targettag + "' />";
strMonCodeFlash = strMonCodeFlash + "</object>";

if(Detect_Screen() < 1024) {
	
			//Chargement du flash 800*600
	strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='447' height='242' id='CA_moments_home_800.swf'>";
	strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_home_800.swf' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='wmode' value='transparent' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='FlashVars' value='chemin=/IMG/xml/&images=/IMG&pageid=1&gotoURL0=rubrique.php3?id_rubrique=48&gotoURL1=rubrique.php3?id_rubrique=49&gotoURL2=rubrique.php3?id_rubrique=50&gotoURL3=rubrique.php3?id_rubrique=51&gotoURL4=rubrique.php3?id_rubrique=68&reso=800&pubFile=/dev_spec/includes/bandeau_pub_bighome.php?reso=800&clickTag=" + clicktag + "&targetTag="+ targettag + "' />";
	strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_home_800.swf' quality='high' bgcolor='#ffffff'  width='447' height='242' name='CA_moments_home_800.swf' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' flashvars='chemin=/IMG/xml/&images=/IMG&pageid=1&gotoURL0=rubrique.php3?id_rubrique=48&gotoURL1=rubrique.php3?id_rubrique=49&gotoURL2=rubrique.php3?id_rubrique=50&gotoURL3=rubrique.php3?id_rubrique=51&gotoURL4=rubrique.php3?id_rubrique=68&reso=800&pubFile=/dev_spec/includes/bandeau_pub_bighome.php?reso=800&clickTag=" + clicktag + "&targetTag=" + targettag+ "' />";
	strMonCodeFlash = strMonCodeFlash + "</object>";

}
document.write(strMonCodeFlash);

}

function Ecrire_FlashParticulier(chemin) {

var strMonCodeFlash = "";
strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='650' height='242' id='CA_moments_interieur_9vigns.swf' >";
strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_interieur_9vigns.swf' />";
strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
strMonCodeFlash = strMonCodeFlash + "<param name='FlashVars' value='chemin=/IMG/xml/&images=/IMG&pageid=1&reso=1024' />";
strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_interieur_9vigns.swf' quality='high' bgcolor='#ffffff'  width='650' height='242' name='CA_moments_home.swf'  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' flashvars='chemin=/IMG/xml/&images=/IMG&pageid=1&reso=1024' />";
strMonCodeFlash = strMonCodeFlash + "</object>";

if(Detect_Screen() < 1024) {
	
	//Chargement du flash 800*600
	
	strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='447' height='242' id='CA_moments_interieur_9vigns.swf' >";
strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_interieur_9vigns_800.swf' />";
strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
strMonCodeFlash = strMonCodeFlash + "<param name='FlashVars' value='chemin=/IMG/xml/&images=/IMG&pageid=1&reso=800' />";
strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_interieur_9vigns_800.swf' quality='high' bgcolor='#ffffff'  width='447' height='242' name='CA_moments_home.swf'  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' flashvars='chemin=/IMG/xml/&images=/IMG&pageid=1&reso=800' />";
strMonCodeFlash = strMonCodeFlash + "</object>";

}

document.write(strMonCodeFlash);
}

function Ecrire_FlashAgriculteur(chemin,flashvars) {

var strMonCodeFlash = "";
strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='650' height='242' id='CA_moments_interieur_3vigns_agr.swf' >";
strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_interieur_3vigns_agr.swf' />";
strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
strMonCodeFlash = strMonCodeFlash + "<param name='FlashVars' value='chemin=/IMG/xml/&images=/IMG&pageid=2" + flashvars + "&reso=1024' />";
strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_interieur_3vigns_agr.swf' quality='high' bgcolor='#ffffff'  width='650' height='242' name='CA_moments_interieur_3vigns_agr.swf'  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' flashvars='chemin=/IMG/xml/&images=/IMG&pageid=2" + flashvars + "&reso=1024' />";
strMonCodeFlash = strMonCodeFlash + "</object>";

if(Detect_Screen() < 1024) {
	
	//Chargement du flash 800*600
	
strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='447' height='242' id='CA_moments_interieur_3vigns_agr_800.swf' >";
strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_interieur_3vigns_agr_800.swf' />";
strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
strMonCodeFlash = strMonCodeFlash + "<param name='FlashVars' value='chemin=/IMG/xml/&images=/IMG&pageid=2" + flashvars + "&reso=800' />";
strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_interieur_3vigns_agr_800.swf' quality='high' bgcolor='#ffffff'  width='447' height='242' name='CA_moments_interieur_3vigns_agr_800.swf'  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' flashvars='chemin=/IMG/xml/&images=/IMG&pageid=2" + flashvars + "&reso=800' />";
strMonCodeFlash = strMonCodeFlash + "</object>";

}

document.write(strMonCodeFlash);
}

function Ecrire_FlashProfessionnel(chemin,flashvars) {

var strMonCodeFlash = "";
strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='650' height='242' id='CA_moments_interieur_3vigns_professionnel.swf' >";
strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_interieur_3vigns_professionnel.swf' />";
strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
strMonCodeFlash = strMonCodeFlash + "<param name='FlashVars' value='chemin=/IMG/xml/&images=/IMG&pageid=3" + flashvars + "&reso=1024' />";
strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_interieur_3vigns_professionnel.swf' quality='high' bgcolor='#ffffff'  width='650' height='242' name='CA_moments_interieur_3vigns_professionnel.swf'  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' flashvars='chemin=/IMG/xml/&images=/IMG&pageid=3" + flashvars + "&reso=1024' />";
strMonCodeFlash = strMonCodeFlash + "</object>";

if(Detect_Screen() < 1024) {
	
	//Chargement du flash 800*600

strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='447' height='242' id='CA_moments_interieur_3vigns_professionnel_800.swf' >";
strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_interieur_3vigns_professionnel_800.swf' />";
strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
strMonCodeFlash = strMonCodeFlash + "<param name='FlashVars' value='chemin=/IMG/xml/&images=/IMG&pageid=3" + flashvars + "&reso=800' />";
strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_interieur_3vigns_professionnel.swf' quality='high' bgcolor='#ffffff'  width='447' height='242' name='CA_moments_interieur_3vigns_professionnel_800.swf'  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' flashvars='chemin=/IMG/xml/&images=/IMG&pageid=3" + flashvars + "&reso=800' />";
strMonCodeFlash = strMonCodeFlash + "</object>"

}

document.write(strMonCodeFlash);
}

function Ecrire_FlashEntreprise(chemin,flashvars) {

var strMonCodeFlash = "";
strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='650' height='242' id='CA_moments_interieur_3vigns_entreprise.swf' >";
strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_interieur_3vigns_entreprise.swf' />";
strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
strMonCodeFlash = strMonCodeFlash + "<param name='FlashVars' value='chemin=/IMG/xml/&images=/IMG&pageid=4" + flashvars + "&reso=1024' />";
strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_interieur_3vigns_entreprise.swf' quality='high' bgcolor='#ffffff'  width='650' height='242' name='CA_moments_interieur_3vigns_entreprise.swf'  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' flashvars='chemin=/IMG/xml/&images=/IMG&pageid=4" + flashvars + "&reso=1024' />";
strMonCodeFlash = strMonCodeFlash + "</object>";

if(Detect_Screen() < 1024) {
	
	//Chargement du flash 800*600
	
strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='447' height='242' id='CA_moments_interieur_3vigns_entreprise_800.swf' >";
strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_interieur_3vigns_entreprise_800.swf' />";
strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
strMonCodeFlash = strMonCodeFlash + "<param name='FlashVars' value='chemin=/IMG/xml/&images=/IMG&pageid=4" + flashvars + "&reso=800' />";
strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "/medias/swf/ca_moments_dynamiques/CA_moments_interieur_3vigns_entreprise_800.swf' quality='high' bgcolor='#ffffff'  width='447' height='242' name='CA_moments_interieur_3vigns_entreprise_800.swf'  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' flashvars='chemin=/IMG/xml/&images=/IMG&pageid=4" + flashvars + "&reso=800' />";
strMonCodeFlash = strMonCodeFlash + "</object>";

}

document.write(strMonCodeFlash);
}


function Ecrire_FlashCorpo(chemin) {

if (LoadFlash) {
	
var strMonCodeFlash = "";
strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='650' height='147' id='CA_flash_corpo.swf' >";
strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "/medias/swf/corpo/CA_flash_corpo.swf' />";
strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "/medias/swf/corpo/CA_flash_corpo.swf' quality='high' bgcolor='#ffffff'  width='650' height='147' name='CA_flash_corpo.swf'  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
strMonCodeFlash = strMonCodeFlash + "</object>";

		if(Detect_Screen() < 1024) {
			
			//Chargement du flash 800*600
			
		strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='446' height='147' id='CA_flash_corpo_800.swf' >";
		strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
		strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "/medias/swf/corpo/CA_flash_corpo_800.swf' />";
		strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
		strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
		strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "/medias/swf/corpo/CA_flash_corpo_800.swf' quality='high' bgcolor='#ffffff'  width='446' height='147' name='CA_flash_corpo_800.swf'  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
		strMonCodeFlash = strMonCodeFlash + "</object>";
		
		}
}
else {
	strMonCodeFlash = "<img src='" + chemin + "/medias/swf/corpo/CA_flash_corpo.jpg' width='650' height='147'>";
	if(Detect_Screen() < 1024) {strMonCodeFlash = "<img src='" + chemin + "/medias/swf/corpo/CA_flash_corpo_800.jpg' width='446' height='147'>";}
}

document.write(strMonCodeFlash);
}

function Ecrire_FlashCAetVous(chemin) {

if (LoadFlash) {
	
var strMonCodeFlash = "";
strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='652' height='148' id='CA_flash_vous.swf' >";
strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "/medias/swf/corpo/CA_flash_vous.swf' />";
strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "/medias/swf/corpo/CA_flash_vous.swf' quality='high' bgcolor='#ffffff'  width='652' height='148' name='CA_flash_corpo.swf'  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
strMonCodeFlash = strMonCodeFlash + "</object>";

		if(Detect_Screen() < 1024) {
			
		//Chargement du flash 800*600
		strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='446' height='147' id='CA_flash_vous_800.swf' >";
		strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
		strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "/medias/swf/corpo/CA_flash_vous_800.swf' />";
		strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
		strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
		strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "/medias/swf/corpo/CA_flash_vous_800.swf' quality='high' bgcolor='#ffffff'  width='446' height='147' name='CA_flash_vous_800.swf'  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
		strMonCodeFlash = strMonCodeFlash + "</object>";
		
		}
}
else {
	strMonCodeFlash = "<img src='" + chemin + "/medias/swf/corpo/CA_flash_vous.jpg' width='652' height='148'>";
	if(Detect_Screen() < 1024) {strMonCodeFlash = "<img src='" + chemin + "/medias/swf/corpo/CA_flash_vous_800.jpg' width='446' height='147'>";}
}

document.write(strMonCodeFlash);
}

function Ecrire_FlashCarte(chemin) {

var strMonCodeFlash = "";
strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='650' height='420'>";
strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "medias/swf/carte/CA_flash_carte.swf' />";
strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
strMonCodeFlash = strMonCodeFlash + "<param name='FlashVars' value='chemin=" + chemin + "medias/swf/carte/xml&redir=/dev_spec/system/process/rebonds_commerciaux.php?dept_id=' />";
strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "medias/swf/carte/CA_flash_carte.swf' width='650' height='420'  quality='high' bgcolor='#ffffff' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' flashvars='chemin=" + chemin + "medias/swf/carte/xml&redir=/dev_spec/system/process/rebonds_commerciaux.php?dept_id=' />";
strMonCodeFlash = strMonCodeFlash + "</object>";

if(Detect_Screen() < 1024) {
	
//Chargement du flash 800*600
strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='446' height='303'>";
strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "medias/swf/carte/CA_flash_carte_800.swf' />";
strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
strMonCodeFlash = strMonCodeFlash + "<param name='FlashVars' value='chemin=" + chemin + "medias/swf/carte/xml&redir=/dev_spec/system/process/rebonds_commerciaux.php?dept_id=' />";
strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "medias/swf/carte/CA_flash_carte_800.swf' width='446' height='303'  quality='high' bgcolor='#ffffff' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' flashvars='chemin=" + chemin + "medias/swf/carte/xml&redir=/dev_spec/system/process/rebonds_commerciaux.php?dept_id=' />";
strMonCodeFlash = strMonCodeFlash + "</object>";

}

document.write(strMonCodeFlash);
}


function Ecrire_PubCentre(urle,fichier,alt,extension) {
	
if (LoadFlash) {
	
var strMonCodeFlash = "";
strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='650' height='66' id='' >";
strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='/pub/" + fichier + extension + "?clickTAG=" + urle + "&targetTAG=_blank' />";
strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
strMonCodeFlash = strMonCodeFlash + "<embed src='/pub/" + fichier + extension + "?clickTAG=" + urle + "&targetTAG=_blank' quality='high' bgcolor='#ffffff'  width='650' height='66' name=''  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
strMonCodeFlash = strMonCodeFlash + "</object>";

		if(Detect_Screen() < 1024) {
			
			//Chargement du flash 800*600
		strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='446' height='66' id='' >";
		strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
		strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='/pub/" + fichier + "_800" + extension + "?clickTAG=" + urle + "&targetTAG=_blank' />";
		strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
		strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
		strMonCodeFlash = strMonCodeFlash + "<embed src='/pub/"+ fichier + "_800" + extension +  "?clickTAG=" + urle + "&targetTAG=_blank' quality='high' bgcolor='#ffffff'  width='446' height='66' name=''  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
		strMonCodeFlash = strMonCodeFlash + "</object>";
				
		}
}
else {
	strMonCodeFlash = "<a href='" + urle + "' target='_blank'><img src='/pub/" + fichier + ".gif' width='650' height='66' border='0'></a>";
	if(Detect_Screen() < 1024) {strMonCodeFlash = "<a href='" + urle + "' target='_blank'><img src='/pub/" + fichier + "_800' width='650' height='66' border='0'></a>";}
}

document.write(strMonCodeFlash);
}


function Load_TableFlash() {

if(Detect_Screen() < 1024) {
		
	//Changement de la taille du bas du flash
	 var mondiv = document.getElementById("divflash");
	 mondiv.className = "form_prod_800";	
	 
	
}
}




function Ecrire_PubCentrale(urle,fichier,fichier800,alt,targ,largeur,hauteur,largeur800,hauteur800,format) {

if (format == 1)	{
	
	if (LoadFlash) {
		
	var strMonCodeFlash = "";
	strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='"+ largeur +"' height='"+ hauteur +"' id='' >";
	strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='/pub/" + fichier + "?clickTAG=" + urle + "&targetTAG=" + targ + "' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
	strMonCodeFlash = strMonCodeFlash + "<embed src='/pub/" + fichier + "?clickTAG=" + urle + "&targetTAG="+ targ + "' quality='high' bgcolor='#ffffff'  width='" + largeur + "' height='" + hauteur + "' name=''  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	strMonCodeFlash = strMonCodeFlash + "</object>";
	
		if(Detect_Screen() < 1024) {
		//Chargement du flash 800*600
		strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='" + largeur800 + "' height='"+ hauteur800 +"' id='' >";
		strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
		strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='/pub/" + fichier800 + "?clickTAG=" + urle + "&targetTAG=" + targ + "' />";
		strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
		strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
		strMonCodeFlash = strMonCodeFlash + "<embed src='/pub/"+ fichier800 +  "?clickTAG=" + urle + "&targetTAG=" + targ + "' quality='high' bgcolor='#ffffff'  width='" + largeur800 + "' height='" + hauteur800 + "' name=''  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
		strMonCodeFlash = strMonCodeFlash + "</object>";
		}
		
		document.write(strMonCodeFlash);
	}
}

else {

			var strMonCodeImg = "<a href='" + urle + "' target = '" + targ + "'>";
			
			if(Detect_Screen() < 1024) {
				strMonCodeImg = strMonCodeImg + "<img src='/pub/'" + fichier800 + " width='" + largeur800 + "' height='" + hauteur800 + "' border=0 alt='" + alt + "'>";
			}
			else {
				strMonCodeImg = strMonCodeImg + "<img src='/pub/'" + fichier + " width='" + largeur + "' height='" + hauteur + "' border=0 alt='" + alt + "'>";
			}
			
			strMonCodeImg = strMonCodeImg + "</a>";
			document.write(strMonCodeImg);

}


}


/************* EN ************************/
function Ecrire_FlashCorpoEN(chemin) {

if (LoadFlash) {
	
var strMonCodeFlash = "";
strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='650' height='147' id='CA_flash_corpo_EN.swf' >";
strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "/medias/swf/corpo/CA_flash_corpo_EN.swf' />";
strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "/medias/swf/corpo/CA_flash_corpo_EN.swf' quality='high' bgcolor='#ffffff'  width='650' height='147' name='CA_flash_corpo.swf'  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
strMonCodeFlash = strMonCodeFlash + "</object>";

		if(Detect_Screen() < 1024) {
			
			//Chargement du flash 800*600
			
		strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='446' height='147' id='CA_flash_corpo_800_EN.swf' >";
		strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
		strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + chemin + "/medias/swf/corpo/CA_flash_corpo_800.swf' />";
		strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
		strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
		strMonCodeFlash = strMonCodeFlash + "<embed src='" + chemin + "/medias/swf/corpo/CA_flash_corpo_800_EN.swf' quality='high' bgcolor='#ffffff'  width='446' height='147' name='CA_flash_corpo_800.swf'  allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
		strMonCodeFlash = strMonCodeFlash + "</object>";
		
		}
}
else {
	strMonCodeFlash = "<img src='" + chemin + "/medias/swf/corpo/CA_flash_corpo_EN.jpg' width='650' height='147'>";
	if(Detect_Screen() < 1024) {strMonCodeFlash = "<img src='" + chemin + "/medias/swf/corpo/CA_flash_corpo_800_EN.jpg' width='446' height='147'>";}
}

document.write(strMonCodeFlash);
}

//#################### -- Function Afficher un flash sinon l'alternatif ######################### 

function Afficher_Pub(swf,width,height,alt,img,lien,target) {
	
var strMonCodeFlash = "";
	
if ((LoadFlash)&&(swf != "")) {
	
	strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='" + width + "' height='" + height + "'>";
	strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='/pub/" + swf +"?clickTAG=" + lien + "&targetTAG=" + target + "' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffffff' />";
	strMonCodeFlash = strMonCodeFlash + "<embed src='/pub/" + swf +"?clickTAG=" + lien + "&targetTAG=" + target + "' quality='high' bgcolor='#ffffff'  width='" + width + "' height='" + height + "' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	strMonCodeFlash = strMonCodeFlash + "</object>";

		
}
else {
	if (img != "") {
		strMonCodeFlash = "<a href='" + lien + "' target='" + target + "'><img src='/pub/" + img + "' width='" + width + "' height='" + height + "' border='0' ></a>";
	}
}

document.write(strMonCodeFlash);
}

/////////////////// Flash Kiosque ECO
function Ecrire_FlashCommun(swfUrl,w,h,flashVars) {
	var strMonCodeFlash = "";
	strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"+w+"' height='"+h+"' data='" + swfUrl+"'>";
	strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + swfUrl+"' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='play' value='true' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffFFFF' />";
	//strMonCodeFlash = strMonCodeFlash + "<param name='FlashVars' value='"+flashVars+"' />";
	strMonCodeFlash = strMonCodeFlash + "<embed src='" + swfUrl + "' width='"+w+"' height='"+h+"' FlashVars='"+flashVars+"' quality='high' bgcolor='#ffffff' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />";
	strMonCodeFlash = strMonCodeFlash + "</object>";
	//alert(strMonCodeFlash)
	document.write(strMonCodeFlash);
}

/////////////////// Flash Kiosque ECO
function Ecrire_FlashCommun_https(swfUrl,w,h,flashVars) {
	var strMonCodeFlash = "";
	strMonCodeFlash = "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='https://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='"+w+"' height='"+h+"' data='" + swfUrl+"'>";
	strMonCodeFlash = strMonCodeFlash + "<param name='allowScriptAccess' value='sameDomain' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='movie' value='" + swfUrl+"' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='play' value='true' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='quality' value='high' />";
	strMonCodeFlash = strMonCodeFlash + "<param name='bgcolor' value='#ffFFFF' />";
	//strMonCodeFlash = strMonCodeFlash + "<param name='FlashVars' value='"+flashVars+"' />";
	strMonCodeFlash = strMonCodeFlash + "<embed src='" + swfUrl + "' width='"+w+"' height='"+h+"' FlashVars='"+flashVars+"' quality='high' bgcolor='#ffffff' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='https://www.macromedia.com/go/getflashplayer' />";
	strMonCodeFlash = strMonCodeFlash + "</object>";
	//alert(strMonCodeFlash)
	document.write(strMonCodeFlash);
}