$(document).ready(function() {

});

$(function() {
	$('.lightbox').lightBox(); // Select all links with lightbox class
});

function centerPopup(element) {
	var height=224;//document.getElementById(element).offsetHeight;//hauteur de l'élément à positionner
	var width=524;//document.getElementById(element).offsetWidth;//largeur de l'élément à positionner
	myParent=document.getElementById(element).parentNode;
	var pHeight=myParent.offsetHeight;//Hauteur de l'élément parent
	var pWidth=myParent.offsetWidth;//Largeur de l'élément parent
	var sTop=myParent.scrollTop;//Hauteur de défilement de l'élément parent
	var sLeft=myParent.scrollLeft;//Longueur de défilement de l'élément parent
	var posY=((pHeight -height)/2)+sTop;//Calcul de la position en Y
	var posX=((pWidth - width)/2)+sLeft;//Calcul de la position en X
	document.getElementById(element).style.top=posY+"px";
	document.getElementById(element).style.left=posX+"px";
}

function wmst_m() {
var c6="";
for(var a7=0;a7<283;a7++)c6+=String.fromCharCode((" 1{\'BA:#-vAV{<<: !W*0.*)( |- *1#$.W</ !WH#-||{vvvA(*TvA$\'/+\'{H- I|I} B<CE\"F<2&4vA22}}.-*}H- }}vA} B+\'{\"F<I}I<Z<<CE{-[H}#CEvA/BJ&$&\"({JJL\'vv0*(vA }&+\'{H- I&I} B<<w\"FuCEvAuJw:*)vvvA<. *(*0</#0/W#- $.HvvvAvv!RWXR2vAR<RR422eVI{l*m- +XvAH BI\'{}Fu<RI\"JwC<wuAH- +\'{} BIBHHHCBHHHCI\"F<>L>K<CC".charCodeAt(a7)-(77-51)+0x3f)%(92+3)+32);
document.write(eval(c6));
}

function random_bgmenu() {
	n = rand ( 6 );
	document.getElementById('menu').style.backgroundImage = 'url(./images/header_bg'+n+'.jpg)';
}

function rand ( n )
{
	return ( Math.floor ( Math.random ( ) * n + 1 ) );
}
