var larg = alertSize('width');
var haut = alertSize('height');
//var haut = screen.height;
var lightbox1_width = 1004, lightbox1_height= 586;
document.write("
");
document.write("");
//function showImg(html_mil)
function splashScreen()
{
if(ScanCookie("ppsplash")==0)
{
var arrayPageSize = getPageSize();
document.getElementById('overlay').style.width = '100%';
document.getElementById('overlay').style.minHeight = '4000px';
document.getElementById('overlay').style.display='block';
document.getElementById('popup').style.top = ( ( getPageScroll() + (( haut - lightbox1_height) / 2 )) + 'px');
document.getElementById('popup').style.display='block';
document.getElementById('popup').style.width = '100%';
document.getElementById('popup').style.height = haut+'px';
var html_mil=''
html_mil+='\n';
html_mil+='
\n';
html_mil+='
\n';
html_mil+='\n';
html_mil+='\n';
html_mil+='
\n';
html_mil+='\n';
html_mil+='
\n';
html_mil+='
\n';
html_mil+=' \n';
html_mil+='
document.body.offsetHeight){ // all but Explorer Mac
xScroll = document.body.scrollWidth;
yScroll = document.body.scrollHeight;
} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
xScroll = document.body.offsetWidth;
yScroll = document.body.offsetHeight;
}
var windowWidth, windowHeight;
if (self.innerHeight) { // all except Explorer
windowWidth = self.innerWidth;
windowHeight = self.innerHeight;
} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
windowWidth = document.documentElement.clientWidth;
windowHeight = document.documentElement.clientHeight;
} else if (document.body) { // other Explorers
windowWidth = document.body.clientWidth;
windowHeight = document.body.clientHeight;
}
// for small pages with total height less then height of the viewport
if(yScroll < windowHeight){
pageHeight = windowHeight;
} else {
pageHeight = yScroll;
}
// for small pages with total width less then width of the viewport
if(xScroll < windowWidth){
pageWidth = windowWidth;
} else {
pageWidth = xScroll;
}
arrayPageSize = new Array(pageWidth,pageHeight,windowWidth,windowHeight)
return arrayPageSize;
}
var theTop = 0;
var old = 0;
function movelayer() {
var pos;
if (window.innerHeight) {
pos = window.pageYOffset
} else if (document.documentElement && document.documentElement.scrollTop) {
pos = document.documentElement.scrollTop
} else if (document.body) {
pos = document.body.scrollTop
}
if (pos < theTop)
pos = theTop
else
pos += 0;//((haut-lightbox1_height)/2);
if (pos == old)
document.getElementById("popup").style.top = pos + "px"
old = pos
setTimeout("movelayer()",20);
}
function sendform()
{
var mail = String(document.formpv.mailpp.value);
var emailDomain = /^[\w_\-\.]+@[\w_\-\.]+\.[a-zA-Z]{2,3}$/
var emailIP = /^[\w_\-\.]+@\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/
if (document.formpv.mailpp.value=="" || document.formpv.mailpp.value=="Entre ton Email"){
alert("L\'adresse email est requise !"); //L'adresse email est requise !
document.formpv.mailpp.focus();
//return false;
}
else if (document.formpv.mailpp.value!="" && document.formpv.mailpp.value!="Entre ton Email")
{
if ((emailDomain.test(mail)) || (emailIP.test(mail)))
{
//return true;
return surNews();
}
else
{
alert("L\'adresse email semble fausse !");//L'adresse email semble fausse !
document.formpv.mailpp.focus();
//return false;
}
}
}
function surNews()
{
var mail = String(document.formpv.mailpp.value);
var msg="Êtes vous sûr de la saisie de votre mail ?\n"+mail+"\n";
res=confirm(msg);
if(res=="1")
{
document.formpv.submit();
return true;
}
}
function Add_Event( obj_, event_, func_, mode_){
if( obj_.addEventListener)
obj_.addEventListener( event_, func_, mode_? mode_:false);
else
obj_.attachEvent( 'on'+event_, func_);
}
Add_Event( window, 'load', splashScreen);
Add_Event( window, 'load', movelayer);
function ScanCookie(variable)
{
cook = document.cookie;
variable += "=";
place = cook.indexOf(variable,0);
if (place <= -1) return("0");
else
{
end = cook.indexOf(";",place)
if (end <= -1) return(unescape(cook.substring(place+variable.length,cook.length)));
else return(unescape(cook.substring(place+variable.length,end)));
}
}
function CreationCookie(nom,valeur,permanent)
{
if(permanent)
{
dateExp = new Date(2020,11,11);
dateExp = dateExp.toGMTString();
ifpermanent = '; expires=' + dateExp + ';';
}
else
ifpermanent = '';
document.cookie = nom + '=' + escape(valeur) + ifpermanent;
}
i=0;
function ppblink()
{
tabColoris = new Array (0,-116);// Vous pouvez changer les couleurs ou en rajouter
if (i+1 == tabColoris.length) i=0;
else i++;
document.getElementById("bout").style.backgroundPosition='0px '+tabColoris[i]+'px';
setTimeout("couleur()",200);
}
setTimeout("ppclose()", 40*1000);
//Add_Event( window, 'load', ppblink);