/*****  b2c_dev/include/af_blocs.inc  *****/

/* Gestion du param pour masquer le menu pour les popins */
if (window.location.href.match(/popin=([^&]*)/)) {
	var popin = (RegExp.$1.match(/true/))?true:false;
	if(popin){
		isMenuAffichable = false;
		isBayadereAffichable = false;
		isTracerAffichable = false;
		isFooterAffichable = false;			
	}
}

/* Affichage / masquage des blocs en css */
document.write('<style type="text/css">');
if (!isBayadereAffichable) {
	document.body.className += " contextpart";
        document.write(' #surheader, #headerv6, #menu, #subheader { display:none; } body.contextpart,  body.standard.contextpart {background-color:#ffffff;}');
}
if (!isMenuAffichable) {
	document.body.className += " contextpart";
        document.write(' #surheader, #flyingBlueLogin, #menu, #subheader, #leftColumn { display:none; } body.contextpart,  body.standard.contextpart {background-color:#ffffff;} ');
} 
if (isTracerAffichable) {
        document.write(' .notLk-traceur { display:none; } ');
} 
else {
        document.write(' .lk-traceur { display:none; } ');
} 
if (isFooterAffichable) {
        document.write(' .notFooterContainer { display:none; } ');
} 
else {
        document.write(' .footerContainer, #footer { display:none; } ');
} 
if (isPushAffichable) {
        document.write(' .notPush { display:none; } ');
} 
else {
        document.write(' .push { display:none; } ');
} 
if (isLiensAffichable) {
        document.write(' .notLiensStatic { display:none; } ');
} 
else {
        document.write(' .liensStatic { display:none; } ');
} 
if (isContexteKLM) {
        document.write(' .notContexteKLM { display:none; } ');
} 
else {
        document.write(' .contexteKLM { display:none; } ');
} 
if (isBoutonResaAffichable) {
        document.write(' .notBoutonResa { display:none; } ');
} 
else {
        document.write(' .boutonResa { display:none; } ');
} 
if (isBoutonHorairesAffichable) {
        document.write(' .notBoutonHoraires { display:none; } ');
} 
else {
        document.write(' .boutonHoraires { display:none; } ');
} 
if (isGenerique) {
        document.write(' .notLiensGeneriques { display:none; } ');
} 
else {
        document.write(' .liensGeneriques { display:none; } ');
} 
document.write('</style>');
if(!isContexteKLM && isContexteAZ){
	document.write('<link rel="stylesheet" href="/FR/common/common/css/jsme_az.css" type="text/css"></link>');
} else if(isContexteKLMAZ){
	document.write('<link rel="stylesheet" href="/FR/common/common/css/jsme_az_klm.css" type="text/css"></link>');
}
