﻿     function setCook2(nom,valeur,jours) {
        var expDate = new Date()
        expDate.setTime(expDate.getTime() + (jours * 24 * 3600 * 1000))
        document.cookie = nom + "=" + escape(valeur)
            + ";expires=" + expDate.toGMTString()
        }
		
function SelectLang(){

var divOPl = document.createElement("div");
divOPl.style.position = 'absolute';
divOPl.style.width = '100%';
divOPl.style.height = '950px';
divOPl.style.left = '0px';
divOPl.style.top = '0px';
divOPl.style.zIndex = '2';
divOPl.style.background = "#C63F11";
divOPl.style.opacity =" 1";
divOPl.style.filter = "alpha(opacity=100)";
document.body.appendChild(divOPl);

var divContLangue = document.createElement("div");
divContLangue.style.position = 'absolute';
divContLangue.style.width = '50%';
divContLangue.style.height = '50%';
divContLangue.style.left = '50%';
divContLangue.style.top = '25%';
divContLangue.style.marginLeft = '-25%';
//divContLangue.style.marginTop = '-25%';
divContLangue.style.zIndex = '3';
//divContLangue.style.background = '#FFFFFF';


var imgMTC = document.createElement("img");
imgMTC.style.position = 'absolute';
imgMTC.style.width = '720';
imgMTC.style.height = '202px';
imgMTC.style.left = '50%';
imgMTC.style.marginLeft = '-360px';
imgMTC.src = './images/logo_titre.png';

divContLangue.appendChild(imgMTC);

var spanFR = document.createElement('span');
spanFR.innerHTML = 'Français';
spanFR.style.position = 'absolute';
spanFR.style.left = '50%';
spanFR.style.marginLeft = '-160px';
spanFR.style.fontSize = '1.8em';
spanFR.style.top = '280px';
spanFR.style.color = '#EB860C';
spanFR.style.styleFloat = 'left';
spanFR.style.cssFloat = 'left';
spanFR.style.fontWeight = 'bold';
spanFR.style.zIndex = '15';
spanFR.style.cursor = "pointer";
spanFR.onmouseover = function(){this.style.color = '#DFB225';
//this.style.textDecoration = "underline";
}
spanFR.onmouseout = function(){this.style.color = '#EB860C';
//this.style.textDecoration = "none";
}
spanFR.onclick = function(){setCook2('langue','fr',7);window.location.replace("./index.php?langue=fr");}
divContLangue.appendChild(spanFR);

var spanEN = document.createElement('span');
spanEN.innerHTML = 'English';
spanEN.style.position = 'absolute';
spanEN.style.left = '50%';
spanEN.style.marginLeft = '75px';
spanEN.style.fontSize = '1.8em';
spanEN.style.top = '280px';
spanEN.style.color = '#EB860C';
spanEN.style.styleFloat = 'left';
spanEN.style.cssFloat = 'left';
spanEN.style.fontWeight = 'bold';
spanEN.style.zIndex = '15';
spanEN.style.cursor = "pointer";
spanEN.onmouseover = function(){this.style.color = '#DFB225';
//this.style.textDecoration = "underline";
}
spanEN.onmouseout = function(){this.style.color = '#EB860C';
//this.style.textDecoration = "none";
}
spanEN.onclick = function(){setCook2('langue','en',7);;document.body.removeChild(divContLangue);document.body.removeChild(divOPl);}
divContLangue.appendChild(spanEN);

document.body.appendChild(divContLangue);

}
function $(id) {
	return document.getElementById(id);
}

function fullScreen(){
if($('flash').style.position == ''){

//$('fs').innerHTML='Standard mode';
window.scrollTo(0, 0);
$('zoomIMG').src='images/zoom-.png';
$('flash').style.background='#F35310';
$('flash').style.position='absolute';
$('flash').style.marginLeft='0px';
$('flash').style.left='0px';
$('flash').style.top='0px';
$('flash').style.width='100%';
$('flash').style.height='100%';
document.body.style.overflow = 'hidden';
}else{
			$('flash').style.background='';
			$('flash').style.position='';
			$('flash').style.width='522px';
			$('flash').style.height='354px';
			$('flash').style.marginLeft='190px';
	//		$('fs').innerHTML='Full Screen';
			$('zoomIMG').src='images/zoom+.png';
			document.body.style.overflow = 'visible';
}
}

