// JavaScript Document
function resetvar(){
alias.getElementById('control_header_lod').value = 0;
alias.getElementById('control_editorial_lod').value = 0;

//alias.getElementById('loader').value = "";
loding= '';

//Traitement Spécifique aux Navigateurs
if(BrowserDetect.browser == 'Safari' && BrowserDetect.OS == 'Windows'){
alias.getElementById('page').style.overflowX = 'scroll';
}

//Traitement Spécifique aux Navigateurs
if(BrowserDetect.browser == 'Safari' && BrowserDetect.OS == 'Mac'){
document.location.href = 'index4.php?id_rubrique=525&norelod=yes';
}

}

function display(kalk,opa){
alias.getElementById(kalk).style.opacity = opa;
alias.getElementById(kalk).style.filter = 'alpha(opacity = '+opa+')';
}

function debug(id_nav,id_s_nav){
display('control_header','100');
display('control_editorial','100');

alias.getElementById('id_nav').value = id_nav;
alias.getElementById('id_s_nav').value = id_s_nav;
}

function transp(ifnext,who){
//alias.getElementById('loader').value = "inprogress";
loding= "inprogress";
if(who.in_array('control_header')==true) display('control_header','100');
if(who.in_array('control_editorial')==true) display('control_editorial','100');
loding= ifnext;
return;
}

function getImgRubrique(id_node){
//alert('ric.php?page=imgrubrique&id_node='+id_node);

setTimeout("b2L('ric.php?page=imgrubrique&id_node="+id_node+"','arriere2')",2000);


alias.getElementById('arriere2_lod').value = 1;
}

function getPageHaut(){
if(alias.getElementById('id_nav')) var id_nav = alias.getElementById('id_nav').value;
if(alias.getElementById('id_s_nav')) var id_s_nav = alias.getElementById('id_s_nav').value;
if(alias.getElementById('id_article')) var id_article = alias.getElementById('id_article').value;
if(alias.getElementById('h_pos')) var h_pos = alias.getElementById('h_pos').value;
if(alias.getElementById('526_rech')) var recherche = alias.getElementById('526_rech').value;

b2L('ric.php?page=page_haut&id_nav='+id_nav+'&id_s_nav='+id_s_nav+'&id_article='+id_article+'&h_pos='+h_pos+'&mode='+mode+'&config='+config+'&recherche='+recherche,'page_haut');
alias.getElementById('page_haut_lod').value = 1;
}

function getHaut(){
if(alias.getElementById('id_nav')) var id_nav = alias.getElementById('id_nav').value;
if(alias.getElementById('id_s_nav')) var id_s_nav = alias.getElementById('id_s_nav').value;
if(alias.getElementById('id_article')) var id_article = alias.getElementById('id_article').value;
if(alias.getElementById('h_pos')) var h_pos = alias.getElementById('h_pos').value;
if(alias.getElementById('526_rech')) var recherche = alias.getElementById('526_rech').value;

b2L('ric.php?page=haut&id_nav='+id_nav+'&id_s_nav='+id_s_nav+'&id_article='+id_article+'&h_pos='+h_pos+'&mode='+mode+'&config='+config+'&recherche='+recherche,'control_header');
alias.getElementById('control_header_lod').value = 1;
}

function getBas(){
if(alias.getElementById('id_nav')) var id_nav = alias.getElementById('id_nav').value;
if(alias.getElementById('id_s_nav')) var id_s_nav = alias.getElementById('id_s_nav').value;
if(alias.getElementById('id_article')) var id_article = alias.getElementById('id_article').value;
if(alias.getElementById('h_pos')) var h_pos = alias.getElementById('h_pos').value;
if(alias.getElementById('526_rech')) var recherche = alias.getElementById('526_rech').value;

switch(mode){
case "editorial":
b2L('ric.php?page=bas&id_nav='+id_nav+'&id_s_nav='+id_s_nav+'&id_article='+id_article+'&h_pos='+h_pos+'&mode='+mode+'&config='+config+'&recherche='+recherche,'control_editorial');
break;
case "site":
b2L('ric.php?page=bas&id_node='+id_nav+'&h_pos='+h_pos+'&mode='+mode+'&config='+config+'&recherche='+recherche,'control_editorial');
break;
}

alias.getElementById('control_editorial_lod').value = 1;
}

function getRecette(){
var id_nav = alias.getElementById('id_nav').value;
var id_s_nav = alias.getElementById('id_s_nav').value;
var id_article = alias.getElementById('id_article').value;
var h_pos = alias.getElementById('h_pos').value;
b2L('ric.php?page=recette&id_nav='+id_nav+'&id_s_nav='+id_s_nav+'&id_article='+id_article+'&h_pos='+h_pos+'&mode='+mode+'&config='+config,'bloc_rec_content');
alias.getElementById('bloc_rec_content_lod').value = 1;
}

function chargeImgRubrique(ifnext,autostop){
//alias.getElementById('loader').value = "inprogress";
loding= "inprogress";
if(eval(alias.getElementById('arriere2_lod').value) == 0) getImgRubrique(changefond);
if(eval(alias.getElementById('arriere2_lod').value) < 100){setTimeout("chargeImgRubrique('"+ifnext+"','"+autostop+"')", 33);return;}
alias.getElementById('arriere2_lod').value = 0;
//alias.getElementById('loader').value = ifnext;
loding= ifnext;
}

function chargePageHaut(ifnext,autostop){
//alias.getElementById('loader').value = "inprogress";
loding= "inprogress";
if(eval(alias.getElementById('page_haut_lod').value) == 0) getPageHaut();
if(eval(alias.getElementById('page_haut_lod').value) < 100){setTimeout("chargePageHaut('"+ifnext+"','"+autostop+"')", 33);return;}
alias.getElementById('page_haut_lod').value = 0;
//alias.getElementById('loader').value = ifnext;
loding= ifnext;
}

function chargeHaut(ifnext,autostop){
//alias.getElementById('loader').value = "inprogress";
loding= "inprogress";
if(eval(alias.getElementById('control_header_lod').value) == 0) getHaut();
if(eval(alias.getElementById('control_header_lod').value) < 100){setTimeout("chargeHaut('"+ifnext+"','"+autostop+"')", 33);return;}
alias.getElementById('control_header_lod').value = 0;
//alias.getElementById('loader').value = ifnext;
loding= ifnext;
}

function chargeBas(ifnext,autostop){
//alias.getElementById('loader').value = "inprogress";
loding= "inprogress";
if(eval(alias.getElementById('control_editorial_lod').value) == 0) getBas();
if(eval(alias.getElementById('control_editorial_lod').value) < 100){setTimeout("chargeBas('"+ifnext+"','"+autostop+"')", 33);return;}
alias.getElementById('control_editorial_lod').value = 0;
//alias.getElementById('loader').value = ifnext;
loding= ifnext;
}

function chargeRecette(ifnext,autostop){
//alias.getElementById('loader').value = "inprogress";
loding= "inprogress";
if(eval(alias.getElementById('bloc_rec_content_lod').value) == 0) getRecette();
if(eval(alias.getElementById('bloc_rec_content_lod').value) < 100){setTimeout("chargeRecette('"+ifnext+"','"+autostop+"')", 33);return;}
alias.getElementById('bloc_rec_content_lod').value = 0;
//alias.getElementById('loader').value = ifnext;
loding= ifnext;
}

//function fio_editorial(ifnext){
//if(eval(alias.getElementById('control_header_lod').value) == 0) fade('control_header','100');
//if(eval(alias.getElementById('control_editorial_lod').value) == 0) fade('control_editorial','100');
//if(eval(alias.getElementById('control_header_lod').value) < 100 || eval(alias.getElementById('control_editorial_lod').value) < 100){
//setTimeout("fio_editorial('"+ifnext+"')", 33);
//return;
//}else{
//alias.getElementById('control_header_lod').value = 0;
//alias.getElementById('control_editorial_lod').value = 0;
//alias.getElementById('loader').value = ifnext;
//loding= ifnext;
//return;
//}}

function fio_combo_site(ifnext){

if(eval(alias.getElementById('fond2_decran_lod').value) == 0) fade('fond2_decran','100');
if(eval(alias.getElementById('conteneur_header_lod').value) == 0){fade('conteneur_header','100');}
if(eval(alias.getElementById('conteneur_editorial_lod').value) == 0) fade('conteneur_editorial','100');

if(eval(alias.getElementById('fond2_decran_lod').value) < 100 || eval(alias.getElementById('conteneur_header_lod').value) < 100 || eval(alias.getElementById('conteneur_editorial_lod').value) < 100){
setTimeout("fio_combo_site('"+ifnext+"')", 33);
return;
}else{
alias.getElementById('fond2_decran_lod').value = 0;
alias.getElementById('conteneur_header_lod').value = 0;
alias.getElementById('conteneur_editorial_lod').value = 0;
//alias.getElementById('loader').value = ifnext;
loding= ifnext;
return;
}

}

function fio_editorial(ifnext){

if(changefond != ""){

if(eval(alias.getElementById('fond2_decran_lod').value) == 0) fade('fond2_decran','100');
if(eval(alias.getElementById('conteneur_header_lod').value) == 0){fade('conteneur_header','100');}
if(eval(alias.getElementById('conteneur_editorial_lod').value) == 0) fade('conteneur_editorial','100');

if(eval(alias.getElementById('fond2_decran_lod').value) < 100 || eval(alias.getElementById('conteneur_header_lod').value) < 100 || eval(alias.getElementById('conteneur_editorial_lod').value) < 100){
setTimeout("fio_editorial('"+ifnext+"')", 33);
return;
}else{
alias.getElementById('fond2_decran_lod').value = 0;
alias.getElementById('conteneur_header_lod').value = 0;
alias.getElementById('conteneur_editorial_lod').value = 0;
//alias.getElementById('loader').value = ifnext;
loding= ifnext;
return;
}

}else{

if(eval(alias.getElementById('conteneur_header_lod').value) == 0) fade('conteneur_header','100');
if(eval(alias.getElementById('conteneur_editorial_lod').value) == 0) fade('conteneur_editorial','100');

if(eval(alias.getElementById('conteneur_header_lod').value) < 100 || eval(alias.getElementById('conteneur_editorial_lod').value) < 100){
setTimeout("fio_editorial('"+ifnext+"')", 33);
return;
}else{
alias.getElementById('conteneur_header_lod').value = 0;
alias.getElementById('conteneur_editorial_lod').value = 0;
//alias.getElementById('loader').value = ifnext;
loding= ifnext;
return;
}

}}

function fio_image_rubrique(ifnext){
if(eval(alias.getElementById('fond2_decran_lod').value) == 0) fade('fond2_decran','100');
if(eval(alias.getElementById('fond2_decran_lod').value) < 100){
setTimeout("fio_image_rubrique('"+ifnext+"')", 33);
return;
}else{alias.getElementById('fond2_decran_lod').value = 0;
//alias.getElementById('loader').value = ifnext;
loding= ifnext;
return;}}

function fio_haut(ifnext){
if(eval(alias.getElementById('conteneur_header_lod').value) == 0) fade('conteneur_header','100');
if(eval(alias.getElementById('conteneur_header_lod').value) < 100){
setTimeout("fio_haut('"+ifnext+"')", 33);
return;
}else{alias.getElementById('conteneur_header_lod').value = 0;
//alias.getElementById('loader').value = ifnext;
loding= ifnext;
return;}}

function fio_bas(ifnext){
if(eval(alias.getElementById('conteneur_editorial_lod').value) == 0) fade('conteneur_editorial','100');
if(eval(alias.getElementById('conteneur_editorial_lod').value) < 100){
setTimeout("fio_bas('"+ifnext+"')", 33);
return;
}else{alias.getElementById('conteneur_editorial_lod').value = 0;
//alias.getElementById('loader').value = ifnext;
loding= ifnext;
return;}}

function fio_recette(ifnext){
if(eval(alias.getElementById('bloc_rec_lod').value) == 0) fade('bloc_rec','100');
if(eval(alias.getElementById('bloc_rec_lod').value) < 100){
setTimeout("fio_recette('"+ifnext+"')", 33);
return;
}else{alias.getElementById('bloc_rec_lod').value = 0;

if(afi_bloc_rec == 1){afi_bloc_rec = 0;}else{afi_bloc_rec = 1;}
//alias.getElementById('loader').value = ifnext;
loding= ifnext;
return;}}

function transition_loader(lod){

if(lod != ""){loding= lod;}//else{var loader = alias.getElementById('loader').value;}
switch(loding){
case 'fond2_decran_lod' :
fio_image_rubrique('');
setTimeout("transition_loader('fio_haut')", 33);
return;
//case 'fio_bas' :
//fio_bas('');
//setTimeout("transition_loader('fio_haut')", 33);
//return;
case 'fio_haut' :
fio_haut('');
setTimeout("transition_loader('')", 33);
return;
break;
case 'inprogress':
setTimeout("transition_loader('')", 33);
return;
break;
}

alias.ecran.elements["fload"].value = "";
alias.getElementById('anticlic').style.display = 'none'; 
if(alias.getElementById('bloc_mor')) alias.getElementById('bloc_mor').style.position = 'relative';
if(alias.getElementById('bloc_fic')) alias.getElementById('bloc_fic').style.position = 'relative';
if(alias.getElementById('bloc_ver')) alias.getElementById('bloc_ver').style.position = 'relative';
if(alias.getElementById('bloc_ori')) alias.getElementById('bloc_ori').style.position = 'relative';
if(alias.getElementById('bloc_his')) alias.getElementById('bloc_his').style.position = 'relative';
if(alias.getElementById('bloc_lcr')) alias.getElementById('bloc_lcr').style.position = 'relative';
if(alias.getElementById('bloc_rec')) alias.getElementById('bloc_rec').style.position = 'relative';
if(alias.getElementById('tra_rec')) alias.getElementById('tra_rec').style.position = 'relative';
}

function transition_recette(lod){
//if(lod != ""){loader = lod;}else{var loader = alias.getElementById('loader').value;}
if(lod != ""){loding= lod;}//else{var loader = alias.getElementById('loader').value;}

//switch(loader){
switch(loding){
case 'recette_unlod' :
fio_recette('chargeRecette');
setTimeout("transition_recette('')", 33);
return;
break;

case 'chargeRecette' :
chargeRecette('recette_lod','');
setTimeout("transition_recette('')", 33);
return;
break;

case 'recette_lod' :
fio_recette('');
setTimeout("transition_recette('')", 33);
return;
break;

case 'inprogress':
setTimeout("transition_recette('')", 33);
return;
break;
}
alias.ecran.elements["fload"].value = "";
alias.getElementById('anticlic').style.display = 'none'; 

//alert(alias.getElementById('tra_rec').style.position);
if(alias.getElementById('tra_rec')) alias.getElementById('tra_rec').style.position = 'relative';
}

function transition_editorial(lod){
//if(lod != ""){loader = lod;}else{var loader = alias.getElementById('loader').value;}
if(lod != ""){loding= lod;}//else{var loader = alias.getElementById('loader').value;}

switch(changefond){
	case '' :
switch(loding){
case 'editorial_unlod' :
fio_editorial('chargeHaut');
setTimeout("transition_editorial('')", 33);
return;
break;

case 'chargeHaut' :
chargeHaut('chargeBas','');
setTimeout("transition_editorial('')", 33);
return;
break;

case 'chargeBas' :
chargeBas('editorial_lod','');
setTimeout("transition_editorial('')", 33);
return;
break;

case 'editorial_lod' :
fio_editorial('');
setTimeout("transition_editorial('')", 33);
return;
break;

case 'inprogress':
setTimeout("transition_editorial('')", 33);
return;
break;
}
	break;
	default :
switch(loding){
case 'editorial_unlod' :
fio_editorial('chargeHaut');
setTimeout("transition_editorial('')", 33);
return;
break;

case 'chargeHaut' :
chargeHaut('chargeBas','');
setTimeout("transition_editorial('')", 33);
return;
break;

case 'chargeBas' :
chargeBas('chargeImgRubrique','');
setTimeout("transition_editorial('')", 33);
return;
break;

case 'chargeImgRubrique' :
chargeImgRubrique('editorial_lod','');
setTimeout("transition_editorial('')", 33);
return;
break;

case 'editorial_lod' :
fio_editorial('');
setTimeout("transition_editorial('')", 33);
return;
break;

case 'inprogress':
setTimeout("transition_editorial('')", 33);
return;
break;
}
	break;
}
alias.ecran.elements["fload"].value = "";
alias.getElementById('anticlic').style.display = 'none'; 
if(alias.getElementById('bloc_mor')) alias.getElementById('bloc_mor').style.position = 'relative';
if(alias.getElementById('bloc_fic')) alias.getElementById('bloc_fic').style.position = 'relative';
if(alias.getElementById('bloc_ver')) alias.getElementById('bloc_ver').style.position = 'relative';
if(alias.getElementById('bloc_ori')) alias.getElementById('bloc_ori').style.position = 'relative';
if(alias.getElementById('bloc_his')) alias.getElementById('bloc_his').style.position = 'relative';
if(alias.getElementById('bloc_lcr')) alias.getElementById('bloc_lcr').style.position = 'relative';
if(alias.getElementById('bloc_rec')) alias.getElementById('bloc_rec').style.position = 'relative';
if(alias.getElementById('tra_rec')) alias.getElementById('tra_rec').style.position = 'relative';
}

function transition_cat(lod){
//if(lod != ""){loader = lod;}else{var loader = alias.getElementById('loader').value;}
if(lod != ""){loding= lod;}//else{var loader = alias.getElementById('loader').value;}

switch(loding){
case 'site_unlod' :
fio_combo_site('chargeImgRubrique');
animate();
setTimeout("transition_cat('')", 33);
return;
break;

case 'chargeImgRubrique' :
chargeImgRubrique('chargeBas','');
setTimeout("transition_cat('')", 33);
return;
break;

case 'chargeBas' :
chargeBas('chargePageHaut','');
setTimeout("transition_cat('')", 33);
return;
break;

case 'chargePageHaut' :
chargePageHaut('site_lod','');
setTimeout("transition_cat('')", 33);
return;
break;

case 'site_lod' :
fio_combo_site('');
setTimeout("transition_cat('')", 33);
return;
break;

case 'inprogress':
setTimeout("transition_cat('')", 33);
return;
break;
}

alias.ecran.elements["fload"].value = "";
alias.getElementById('anticlic').style.display = 'none'; 
if(alias.getElementById('bloc_mor')) alias.getElementById('bloc_mor').style.position = 'relative';
if(alias.getElementById('bloc_fic')) alias.getElementById('bloc_fic').style.position = 'relative';
if(alias.getElementById('bloc_ver')) alias.getElementById('bloc_ver').style.position = 'relative';
if(alias.getElementById('bloc_ori')) alias.getElementById('bloc_ori').style.position = 'relative';
if(alias.getElementById('bloc_his')) alias.getElementById('bloc_his').style.position = 'relative';
if(alias.getElementById('bloc_lcr')) alias.getElementById('bloc_lcr').style.position = 'relative';
if(alias.getElementById('bloc_rec')) alias.getElementById('bloc_rec').style.position = 'relative';
if(alias.getElementById('tra_rec')) alias.getElementById('tra_rec').style.position = 'relative';
}

function setLoader(id){
if(alias.ecran.elements["fload"].value == "1"){return;}
alias.ecran.elements["fload"].value = "1";
alias.getElementById('anticlic').style.display = 'block'; 

transition_loader('fond2_decran_lod');
}

function setCat(id,abso,heig){
if(alias.ecran.elements["fload"].value == "1"){return;}
alias.ecran.elements["fload"].value = "1";
alias.getElementById('anticlic').style.display = 'block'; 

alias.getElementById('526_rech').value = '';

alias.getElementById('abs').value = abso;
if(alias.getElementById('page_haut_c')) alias.getElementById('page_haut_c').style.display = 'none';

mode = "site";

if(id == "526_rech"){
	alias.getElementById('526_rech').value = alias.getElementById('rech').value;
	id="526";}

switch(id){
case "526":
alias.getElementById('s_horiz').style.visibility = 'visible';
alias.getElementById('s_horiz').style.display = '';

if(alias.getElementById('haut_bloc1')) alias.getElementById('haut_bloc1').style.visibility = 'hidden';
alias.getElementById('haut_bloc2').style.visibility = 'hidden';
break;
default :
alias.getElementById('s_horiz').style.visibility = 'hidden';
alias.getElementById('s_horiz').style.display = 'none';

if(alias.getElementById('haut_bloc1')) alias.getElementById('haut_bloc1').style.visibility = 'hidden';
alias.getElementById('haut_bloc2').style.visibility = 'hidden';
break;
}


if(heig < 280){
config = 'bas';
alias.getElementById('page').style.overflow = 'auto';


alias.getElementById('conteneur').style.backgroundColor = '';
alias.getElementById('conteneur_editorial').style.backgroundColor = '';
	}else{
config = 'haut';
alias.getElementById('page').style.overflow = 'hidden';


alias.getElementById('conteneur').style.backgroundColor = '';
alias.getElementById('conteneur_editorial').style.backgroundColor = '';
	}

//alert(config);

if(id == 526) alias.getElementById('conteneur').style.backgroundColor = '#FFFFFF';

if(alias.getElementById('bloc_mor')) alias.getElementById('bloc_mor').style.position = '';
if(alias.getElementById('bloc_fic')) alias.getElementById('bloc_fic').style.position = '';
if(alias.getElementById('bloc_ver')) alias.getElementById('bloc_ver').style.position = '';
if(alias.getElementById('bloc_ori')) alias.getElementById('bloc_ori').style.position = '';
if(alias.getElementById('bloc_his')) alias.getElementById('bloc_his').style.position = '';
if(alias.getElementById('bloc_lcr')) alias.getElementById('bloc_lcr').style.position = '';
if(alias.getElementById('bloc_rec')) alias.getElementById('bloc_rec').style.position = '';
if(alias.getElementById('tra_rec')) alias.getElementById('tra_rec').style.position = '';

alias.getElementById('id_nav').value = id;
changefond = id;

transition_cat('site_unlod');
}

function setEditorial(id,id2){
//BUG PLAYER VIDEO FIREFOX
if(BrowserDetect.browser == 'Firefox' && BrowserDetect.OS == 'Windows'){
alias.getElementById('page').style.overflow = 'auto' ;
}

if(alias.ecran.elements["fload"].value == "1"){return;}
alias.ecran.elements["fload"].value = "1";
alias.getElementById('anticlic').style.display = 'block';

alias.getElementById('526_rech').value = '';
mode = "editorial";

if(alias.getElementById('bloc_mor')) alias.getElementById('bloc_mor').style.position = '';
if(alias.getElementById('support_mor')) alias.getElementById('support_mor').style.visibility = 'hidden';
if(alias.getElementById('elv_mor')) alias.getElementById('elv_mor').style.visibility = 'hidden';
if(alias.getElementById('support_ver')) alias.getElementById('support_ver').style.visibility = 'hidden';
if(alias.getElementById('elv_ver')) alias.getElementById('elv_ver').style.visibility = 'hidden';
if(alias.getElementById('support_his')) alias.getElementById('support_his').style.visibility = 'hidden';
if(alias.getElementById('elv_his')) alias.getElementById('elv_his').style.visibility = 'hidden';
if(alias.getElementById('support_ori')) alias.getElementById('support_ori').style.visibility = 'hidden';
if(alias.getElementById('elv_ori')) alias.getElementById('elv_ori').style.visibility = 'hidden';

if(alias.getElementById('bloc_fic')) alias.getElementById('bloc_fic').style.position = '';
if(alias.getElementById('bloc_ver')) alias.getElementById('bloc_ver').style.position = '';
if(alias.getElementById('bloc_ori')) alias.getElementById('bloc_ori').style.position = '';
if(alias.getElementById('bloc_his')) alias.getElementById('bloc_his').style.position = '';
if(alias.getElementById('bloc_lcr')) alias.getElementById('bloc_lcr').style.position = '';
if(alias.getElementById('bloc_rec')) alias.getElementById('bloc_rec').style.position = '';
if(alias.getElementById('tra_rec')) alias.getElementById('tra_rec').style.position = '';

alias.getElementById('id_s_nav').value = id;

if(id2 != alias.getElementById('id_cat').value){changefond = id2;}else{changefond = "";}
transition_editorial('editorial_unlod');
}

function setRecette(id){
//BUG PLAYER VIDEO FIREFOX WINDOWS
if(BrowserDetect.browser == 'Firefox' && BrowserDetect.OS == 'Windows'){
alias.getElementById('page').style.overflow = 'auto';
}

if(alias.ecran.elements["fload"].value == "1"){return;}
alias.ecran.elements["fload"].value = "1";
alias.getElementById('anticlic').style.display = 'block'; 

alias.getElementById('526_rech').value = '';

if(alias.getElementById('bloc_rec')) alias.getElementById('bloc_rec').style.position = '';
if(alias.getElementById('tra_rec')) alias.getElementById('tra_rec').style.position = '';

alias.getElementById('id_article').value = id;

transition_recette('recette_unlod');
}

function affic_vid(){
//BUG PLAYER VIDEO FIREFOX WINDOWS
if(BrowserDetect.browser == 'Firefox' && BrowserDetect.OS == 'Windows'){
alias.getElementById('page').style.overflow = 'hidden';
}

if(alias.getElementById('ong_rec')) alias.getElementById('ong_rec').style.display = 'none';
if(alias.getElementById('ong_pre')) alias.getElementById('ong_pre').style.display = 'none';
if(alias.getElementById('ong_pap')) alias.getElementById('ong_pap').style.display = 'none';
if(alias.getElementById('bou_rec')) alias.getElementById('bou_rec').style.display = 'block';
if(alias.getElementById('bou_pap')) alias.getElementById('bou_pap').style.display = 'block';

alias.getElementById('bou_vid').style.display = 'none';
//alias.getElementById('ong_vid').style.display = 'block';

if(alias["FLVPlayer"]){
alias["FLVPlayer"].style.width = '345px';
alias["FLVPlayer"].style.height = '276px';
alias.getElementById('FLVPlayer').style.width = '345px';
alias.getElementById('FLVPlayer').style.height = '276px';
}}

function affic_pap(){
//BUG PLAYER VIDEO FIREFOX WINDOWS
if(BrowserDetect.browser == 'Firefox' && BrowserDetect.OS == 'Windows'){
alias.getElementById('page').style.overflow = 'auto';
}

if(alias.getElementById('ong_rec')) alias.getElementById('ong_rec').style.display = 'none';
if(alias.getElementById('ong_pre')) alias.getElementById('ong_pre').style.display = 'none';
//if(alias.getElementById('ong_vid')) alias.getElementById('ong_vid').style.display = 'none';

if(alias["FLVPlayer"]){
alias["FLVPlayer"].style.width = '0px';
alias["FLVPlayer"].style.height = '0px';
alias.getElementById('FLVPlayer').style.width = '0px';
alias.getElementById('FLVPlayer').style.height = '0px';
}

if(alias.getElementById('bou_rec')) alias.getElementById('bou_rec').style.display = 'block';
if(alias.getElementById('bou_vid')) alias.getElementById('bou_vid').style.display = 'block';

alias.getElementById('bou_pap').style.display = 'none';
alias.getElementById('ong_pap').style.display = 'block';
	
}

function affic_rec(){
//BUG PLAYER VIDEO FIREFOX WINDOWS
if(BrowserDetect.browser == 'Firefox' && BrowserDetect.OS == 'Windows'){
alias.getElementById('page').style.overflow = 'auto';
}

if(alias.getElementById('ong_pap')) alias.getElementById('ong_pap').style.display = 'none';
if(alias.getElementById('ong_pre')) alias.getElementById('ong_pre').style.display = 'none';
//if(alias.getElementById('ong_vid')) alias.getElementById('ong_vid').style.display = 'none';

if(alias["FLVPlayer"]){
alias["FLVPlayer"].style.width = '0px';
alias["FLVPlayer"].style.height = '0px';
alias.getElementById('FLVPlayer').style.width = '0px';
alias.getElementById('FLVPlayer').style.height = '0px';
}

if(alias.getElementById('bou_pap')) alias.getElementById('bou_pap').style.display = 'block';
if(alias.getElementById('bou_vid')) alias.getElementById('bou_vid').style.display = 'block';

alias.getElementById('bou_rec').style.display = 'none';
alias.getElementById('ong_rec').style.display = 'block';
	
}

function gotoPg(pg){
if(alias.getElementById('pg_1')) alias.getElementById('pg_1').style.visibility = 'hidden';
if(alias.getElementById('pg_2')) alias.getElementById('pg_2').style.visibility = 'hidden';
if(alias.getElementById('pg_3')) alias.getElementById('pg_3').style.visibility = 'hidden';
if(alias.getElementById('pg_4')) alias.getElementById('pg_4').style.visibility = 'hidden';
if(alias.getElementById('pg_5')) alias.getElementById('pg_5').style.visibility = 'hidden';

if(alias.getElementById('pg_'+pg)) alias.getElementById('pg_'+pg).style.visibility = 'visible';

}

function send_rec(msg){
alias.ecran.action = 'push.php';
alias.ecran.submit();
alert(msg);
}

function test(){
//BUG PLAYER VIDEO FIREFOX WINDOWS
if(BrowserDetect.browser == 'Firefox' && BrowserDetect.OS == 'Windows'){
alias.getElementById('page').style.overflow = 'hidden';
}

if(alias.getElementById('ong_pre')) alias.getElementById('ong_pre').style.display = 'none';
if(alias.getElementById('ong_pap')) alias.getElementById('ong_pap').style.display = 'none';
if(alias.getElementById('bou_pap')) alias.getElementById('bou_pap').style.display = 'block';

//alias.getElementById('bou_vid').style.display = 'none';
alias.getElementById('ong_vid').style.display = 'block';
}
