
var dhtmlwindow={imagefiles:['/imgs/fenetres_modales/fermer.png','/imgs/fenetres_modales/fermer.png','/imgs/fenetres_modales/fermer.png','/imgs/fenetres_modales/fermer.png'],ajaxbustcache:true,ajaxloadinghtml:'<b>Loading Page. Please wait...</b>',minimizeorder:0,zIndexvalue:100,tobjects:[],lastactivet:{},init:function(t){var domwindow=document.createElement("div")
domwindow.id=t
domwindow.className="dhtmlwindow"
var domwindowdata=''
domwindowdata='<div class="drag-handle">'
domwindowdata+='<div class="drag-controls"></div>'
domwindowdata+='</div>'
domwindowdata+='<div class="drag-contentarea"></div>'
domwindowdata+='<div class="drag-statusarea"><div class="drag-resizearea" style="background: transparent url('+this.imagefiles[3]+') top right no-repeat;">&nbsp;</div></div>'
domwindowdata+='</div>'
domwindow.innerHTML=domwindowdata
document.getElementById("dhtmlwindowholder").appendChild(domwindow)
var t=document.getElementById(t)
var divs=t.getElementsByTagName("div")
for(var i=0;i<divs.length;i++){if(/drag-/.test(divs[i].className))
t[divs[i].className.replace(/drag-/,"")]=divs[i]}
t.handle._parent=t
t.resizearea._parent=t
t.controls._parent=t
t.onclose=function(){return true}
t.onmousedown=function(){dhtmlwindow.setfocus(this)}
t.handle.onmousedown=dhtmlwindow.setupdrag
t.resizearea.onmousedown=dhtmlwindow.setupdrag
t.controls.onclick=dhtmlwindow.enablecontrols
t.show=function(){dhtmlwindow.show(this)}
t.hide=function(){dhtmlwindow.hide(this)}
t.close=function(){dhtmlwindow.close(this)}
t.setSize=function(w,h){dhtmlwindow.setSize(this,w,h)}
t.moveTo=function(x,y){dhtmlwindow.moveTo(this,x,y)}
t.isResize=function(bol){dhtmlwindow.isResize(this,bol)}
t.isScrolling=function(bol){dhtmlwindow.isScrolling(this,bol)}
t.load=function(contenttype,contentsource,title){dhtmlwindow.load(this,contenttype,contentsource,title)}
this.tobjects[this.tobjects.length]=t
return t},open:function(t,contenttype,contentsource,title,attr,recalonload){var d=dhtmlwindow
function getValue(Name){var config=new RegExp(Name+"=([^,]+)","i")
return(config.test(attr))?parseInt(RegExp.$1):0}
if(document.getElementById(t)==null)
t=this.init(t)
else
t=document.getElementById(t)
this.setfocus(t)
t.setSize(getValue(("width")),(getValue("height")))
var xpos=getValue("center")?"middle":getValue("left")
var ypos=getValue("center")?"middle":getValue("top")
if(typeof recalonload!="undefined"&&recalonload=="recal"&&this.scroll_top==0){if(window.attachEvent&&!window.opera)
this.addEvent(window,function(){setTimeout(function(){t.moveTo(xpos,ypos)},400)},"load")
else
this.addEvent(window,function(){t.moveTo(xpos,ypos)},"load")}
t.isResize(getValue("resize"))
t.isScrolling(getValue("scrolling"))
t.style.visibility="visible"
t.style.display="block"
t.contentarea.style.display="block"
t.moveTo(xpos,ypos)
t.load(contenttype,contentsource,title)
if(t.state=="minimized"&&t.controls.firstChild.title=="Restore"){t.controls.firstChild.setAttribute("src",dhtmlwindow.imagefiles[0])
t.controls.firstChild.setAttribute("title","Minimize")
t.state="fullview"}
return t},setSize:function(t,w,h){t.style.width=Math.max(parseInt(w),150)+"px"
t.contentarea.style.height=Math.max(parseInt(h),100)+"px"},moveTo:function(t,x,y){this.getviewpoint()
t.style.left=(x=="middle")?this.scroll_left+(this.docwidth-t.offsetWidth)/2+"px":this.scroll_left+parseInt(x)+"px"
t.style.top=(y=="middle")?this.scroll_top+(this.docheight-t.offsetHeight)/2+"px":this.scroll_top+parseInt(y)+"px"},isResize:function(t,bol){t.statusarea.style.display=(bol)?"block":"none"
t.resizeBool=(bol)?1:0},isScrolling:function(t,bol){t.contentarea.style.overflow=(bol)?"auto":"hidden"},load:function(t,contenttype,contentsource,title){if(t.isClosed){alert("DHTML Window has been closed, so no window to load contents into. Open/Create the window again.")
return}
var contenttype=contenttype.toLowerCase()
if(typeof title!="undefined")
t.handle.firstChild.nodeValue=title
if(contenttype=="inline")
t.contentarea.innerHTML=contentsource
else if(contenttype=="div"){var inlinedivref=document.getElementById(contentsource)
t.contentarea.innerHTML=(inlinedivref.defaultHTML||inlinedivref.innerHTML)
if(!inlinedivref.defaultHTML)
inlinedivref.defaultHTML=inlinedivref.innerHTML
inlinedivref.innerHTML=""
inlinedivref.style.display="none"}
else if(contenttype=="iframe"){t.contentarea.style.overflow="hidden"
if(!t.contentarea.firstChild||t.contentarea.firstChild.tagName!="IFRAME")
t.contentarea.innerHTML='<iframe src="" frameborder="0" border="0" style="border:0; margin:0; padding:0; width:100%; height: 100%" scrolling="no"  name="_iframe-'+t.id+'"></iframe>'
window.frames["_iframe-"+t.id].location.replace(contentsource)}
else if(contenttype=="ajax"){this.ajax_connect(contentsource,t)}
t.contentarea.datatype=contenttype},setupdrag:function(e){var d=dhtmlwindow
var t=this._parent
d.etarget=this
var e=window.event||e
d.initmousex=e.clientX
d.initmousey=e.clientY
d.initx=parseInt(t.offsetLeft)
d.inity=parseInt(t.offsetTop)
d.width=parseInt(t.offsetWidth)
d.contentheight=parseInt(t.contentarea.offsetHeight)
if(t.contentarea.datatype=="iframe"){t.style.backgroundColor="#F8F8F8"
t.contentarea.style.visibility="hidden"}
document.onmousemove=d.getdistance
document.onmouseup=function(){if(t.contentarea.datatype=="iframe"){t.contentarea.style.backgroundColor="white"
t.contentarea.style.visibility="visible"}
d.stop()}
return false},getdistance:function(e){var d=dhtmlwindow
var etarget=d.etarget
var e=window.event||e
d.distancex=e.clientX-d.initmousex
d.distancey=e.clientY-d.initmousey
if(etarget.className=="drag-handle")
d.move(etarget._parent,e)
else if(etarget.className=="drag-resizearea")
d.resize(etarget._parent,e)
return false},getviewpoint:function(){var ie=document.all&&!window.opera
var domclientWidth=document.documentElement&&parseInt(document.documentElement.clientWidth)||100000
this.standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body
this.scroll_top=(ie)?this.standardbody.scrollTop:window.pageYOffset
this.scroll_left=(ie)?this.standardbody.scrollLeft:window.pageXOffset
this.docwidth=(ie)?this.standardbody.clientWidth:(/Safari/i.test(navigator.userAgent))?window.innerWidth:Math.min(domclientWidth,window.innerWidth-16)
this.docheight=(ie)?this.standardbody.clientHeight:window.innerHeight},rememberattrs:function(t){this.getviewpoint()
t.lastx=parseInt((t.style.left||t.offsetLeft))-dhtmlwindow.scroll_left
t.lasty=parseInt((t.style.top||t.offsetTop))-dhtmlwindow.scroll_top
t.lastwidth=parseInt(t.style.width)},move:function(t,e){t.style.left=dhtmlwindow.distancex+dhtmlwindow.initx+"px"
t.style.top=dhtmlwindow.distancey+dhtmlwindow.inity+"px"},resize:function(t,e){t.style.width=Math.max(dhtmlwindow.width+dhtmlwindow.distancex,150)+"px"
t.contentarea.style.height=Math.max(dhtmlwindow.contentheight+dhtmlwindow.distancey,100)+"px"},enablecontrols:function(e){var d=dhtmlwindow
var sourceobj=window.event?window.event.srcElement:e.target
if(/Minimize/i.test(sourceobj.getAttribute("title")))
d.minimize(sourceobj,this._parent)
else if(/Restore/i.test(sourceobj.getAttribute("title")))
d.restore(sourceobj,this._parent)
else if(/Close/i.test(sourceobj.getAttribute("title")))
d.close(this._parent)
return false},minimize:function(button,t){dhtmlwindow.rememberattrs(t)
button.setAttribute("src",dhtmlwindow.imagefiles[2])
button.setAttribute("title","Restore")
t.state="minimized"
t.contentarea.style.display="none"
t.statusarea.style.display="none"
if(typeof t.minimizeorder=="undefined"){dhtmlwindow.minimizeorder++
t.minimizeorder=dhtmlwindow.minimizeorder}
t.style.left="10px"
t.style.width="200px"
var windowspacing=t.minimizeorder*10
t.style.top=dhtmlwindow.scroll_top+dhtmlwindow.docheight-(t.handle.offsetHeight*t.minimizeorder)-windowspacing+"px"},restore:function(button,t){dhtmlwindow.getviewpoint()
button.setAttribute("src",dhtmlwindow.imagefiles[0])
button.setAttribute("title","Minimize")
t.state="fullview"
t.style.display="block"
t.contentarea.style.display="block"
if(t.resizeBool)
t.statusarea.style.display="block"
t.style.left=parseInt(t.lastx)+dhtmlwindow.scroll_left+"px"
t.style.top=parseInt(t.lasty)+dhtmlwindow.scroll_top+"px"
t.style.width=parseInt(t.lastwidth)+"px"},close:function(t){try{var closewinbol=t.onclose()}
catch(err){var closewinbol=true}
finally{if(typeof closewinbol=="undefined"){alert("An error has occured somwhere inside your \"onclose\" event handler")
var closewinbol=true}}
if(closewinbol){if(t.state!="minimized")
dhtmlwindow.rememberattrs(t)
if(window.frames["_iframe-"+t.id])
window.frames["_iframe-"+t.id].location.replace("about:blank")
else
t.contentarea.innerHTML=""
t.style.display="none"
t.isClosed=true}
return closewinbol},setopacity:function(targetobject,value){if(!targetobject)
return
if(targetobject.filters&&targetobject.filters[0]){if(typeof targetobject.filters[0].opacity=="number")
targetobject.filters[0].opacity=value*100
else
targetobject.style.filter="alpha(opacity="+value*100+")"}
else if(typeof targetobject.style.MozOpacity!="undefined")
targetobject.style.MozOpacity=value
else if(typeof targetobject.style.opacity!="undefined")
targetobject.style.opacity=value},setfocus:function(t){this.zIndexvalue++
t.style.zIndex=this.zIndexvalue
t.isClosed=false
this.setopacity(this.lastactivet.handle,0.5)
this.setopacity(t.handle,1)
this.lastactivet=t},show:function(t){if(t.isClosed){alert("DHTML Window has been closed, so nothing to show. Open/Create the window again.")
return}
if(t.lastx)
dhtmlwindow.restore(t.controls.firstChild,t)
else
t.style.display="block"
this.setfocus(t)
t.state="fullview"},hide:function(t){t.style.display="none"},ajax_connect:function(url,t){var page_request=false
var bustcacheparameter=""
if(window.XMLHttpRequest)
page_request=new XMLHttpRequest()
else if(window.ActiveXObject){try{page_request=new ActiveXObject("Msxml2.XMLHTTP")}
catch(e){try{page_request=new ActiveXObject("Microsoft.XMLHTTP")}
catch(e){}}}
else
return false
t.contentarea.innerHTML=this.ajaxloadinghtml
page_request.onreadystatechange=function(){dhtmlwindow.ajax_loadpage(page_request,t)}
if(this.ajaxbustcache)
bustcacheparameter=(url.indexOf("?")!=-1)?"&"+new Date().getTime():"?"+new Date().getTime()
page_request.open('GET',url+bustcacheparameter,true)
page_request.send(null)},ajax_loadpage:function(page_request,t){if(page_request.readyState==4&&(page_request.status==200||window.location.href.indexOf("http")==-1)){t.contentarea.innerHTML=page_request.responseText}},stop:function(){dhtmlwindow.etarget=null
document.onmousemove=null
document.onmouseup=null},addEvent:function(target,functionref,tasktype){var tasktype=(window.addEventListener)?tasktype:"on"+tasktype
if(target.addEventListener)
target.addEventListener(tasktype,functionref,false)
else if(target.attachEvent)
target.attachEvent(tasktype,functionref)},cleanup:function(){for(var i=0;i<dhtmlwindow.tobjects.length;i++){dhtmlwindow.tobjects[i].handle._parent=dhtmlwindow.tobjects[i].resizearea._parent=dhtmlwindow.tobjects[i].controls._parent=null}
window.onload=null}}
document.write('<div id="dhtmlwindowholder"><span style="display:none">.</span></div>')
window.onunload=dhtmlwindow.cleanup

function createAjaxObj(){var httprequest=false
if(window.XMLHttpRequest){httprequest=new XMLHttpRequest()
if(httprequest.overrideMimeType)
httprequest.overrideMimeType('html/javascript')}
else if(window.ActiveXObject){try{httprequest=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e){try{httprequest=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){}}}
return httprequest}
var ajaxpack=new Object()
ajaxpack.basedomain="http://"+window.location.hostname
ajaxpack.ajaxobj=createAjaxObj()
ajaxpack.filetype="txt"
ajaxpack.addrandomnumber=0
ajaxpack.getAjaxRequest=function(url,parameters,callbackfunc,filetype){ajaxpack.ajaxobj=createAjaxObj()
if(ajaxpack.addrandomnumber==1)
var parameters=parameters+"&ajaxcachebust="+new Date().getTime()
if(this.ajaxobj){this.filetype=filetype
this.ajaxobj.onreadystatechange=callbackfunc
this.ajaxobj.open('GET',url+"?"+parameters,true)
this.ajaxobj.send(null)}}
ajaxpack.postAjaxRequest=function(url,parameters,callbackfunc,filetype){ajaxpack.ajaxobj=createAjaxObj()
if(this.ajaxobj){this.filetype=filetype
this.ajaxobj.onreadystatechange=callbackfunc;this.ajaxobj.open('POST',url,true);this.ajaxobj.setRequestHeader("Content-type","application/x-www-form-urlencoded");this.ajaxobj.setRequestHeader("Content-length",parameters.length);this.ajaxobj.setRequestHeader("Connection","close");this.ajaxobj.send(parameters);}}

if(typeof dd_domreadycheck=="undefined")
var dd_domreadycheck=false
var anylinkcssmenu={menusmap:{},preloadimages:[],effects:{delayhide:0,shadow:{enabled:false,opacity:0.3,depth:[5,5]},fade:{enabled:false,duration:500}},dimensions:{},getoffset:function(what,offsettype){return(what.offsetParent)?what[offsettype]+this.getoffset(what.offsetParent,offsettype):what[offsettype]},getoffsetof:function(el){el._offsets={left:this.getoffset(el,"offsetLeft"),top:this.getoffset(el,"offsetTop"),h:el.offsetHeight}},getdimensions:function(menu){this.dimensions={anchorw:menu.anchorobj.offsetWidth,anchorh:menu.anchorobj.offsetHeight,docwidth:(window.innerWidth||this.standardbody.clientWidth)-20,docheight:(window.innerHeight||this.standardbody.clientHeight)-15,docscrollx:window.pageXOffset||this.standardbody.scrollLeft,docscrolly:window.pageYOffset||this.standardbody.scrollTop}
if(!this.dimensions.dropmenuw){this.dimensions.dropmenuw=menu.dropmenu.offsetWidth
this.dimensions.dropmenuh=menu.dropmenu.offsetHeight}},isContained:function(m,e){var e=window.event||e
var c=e.relatedTarget||((e.type=="mouseover")?e.fromElement:e.toElement)
while(c&&c!=m)try{c=c.parentNode}catch(e){c=m}
if(c==m)
return true
else
return false},setopacity:function(el,value){el.style.opacity=value
if(typeof el.style.opacity!="string"){el.style.MozOpacity=value
if(el.filters){el.style.filter="progid:DXImageTransform.Microsoft.alpha(opacity="+value*100+")"}}},showmenu:function(menuid){var menu=anylinkcssmenu.menusmap[menuid]
clearTimeout(menu.hidetimer)
this.getoffsetof(menu.anchorobj)
this.getdimensions(menu)
var posxcorrection=document.all?-1:0;var posx=menu.anchorobj._offsets.left+posxcorrection+menu.posxadjust+(menu.orientation=="lr"?this.dimensions.anchorw:0)
var posy=menu.anchorobj._offsets.top+menu.posyadjust+this.dimensions.anchorh-(menu.orientation=="lr"?this.dimensions.anchorh:0)
if(posx+this.dimensions.dropmenuw+this.effects.shadow.depth[0]>this.dimensions.docscrollx+this.dimensions.docwidth){posx=posx-this.dimensions.dropmenuw+9+(menu.orientation=="lr"?-this.dimensions.anchorw:this.dimensions.anchorw)}
if(this.effects.fade.enabled){this.setopacity(menu.dropmenu,0)
if(this.effects.shadow.enabled)
this.setopacity(menu.shadow,0)}
menu.dropmenu.setcss({left:posx+'px',top:posy+'px',visibility:'visible',display:'inline'})
if(this.effects.shadow.enabled)
menu.shadow.setcss({left:posx+anylinkcssmenu.effects.shadow.depth[0]+'px',top:posy+anylinkcssmenu.effects.shadow.depth[1]+'px',visibility:'visible'})
if(this.effects.fade.enabled){clearInterval(menu.animatetimer)
menu.curanimatedegree=0
menu.starttime=new Date().getTime()
menu.animatetimer=setInterval(function(){anylinkcssmenu.revealmenu(menuid)},20)}},revealmenu:function(menuid){var menu=anylinkcssmenu.menusmap[menuid]
var elapsed=new Date().getTime()-menu.starttime
if(elapsed<this.effects.fade.duration){this.setopacity(menu.dropmenu,menu.curanimatedegree)
if(this.effects.shadow.enabled)
this.setopacity(menu.shadow,menu.curanimatedegree*this.effects.shadow.opacity)}
else{clearInterval(menu.animatetimer)
this.setopacity(menu.dropmenu,1)
menu.dropmenu.style.filter=""}
menu.curanimatedegree=(1-Math.cos((elapsed/this.effects.fade.duration)*Math.PI))/2},setcss:function(param){for(prop in param){this.style[prop]=param[prop]}},setcssclass:function(el,targetclass,action){var needle=new RegExp("(^|\\s+)"+targetclass+"($|\\s+)","ig")
if(action=="check")
return needle.test(el.className)
else if(action=="remove")
el.className=el.className.replace(needle,"")
else if(action=="add"&&!needle.test(el.className))
el.className+=" "+targetclass},hidemenu:function(menuid){var menu=anylinkcssmenu.menusmap[menuid]
clearInterval(menu.animatetimer)
menu.dropmenu.setcss({visibility:'hidden',left:0,top:0})
menu.shadow.setcss({visibility:'hidden',left:0,top:0})},getElementsByClass:function(targetclass){if(document.querySelectorAll)
return document.querySelectorAll("."+targetclass)
else{var classnameRE=new RegExp("(^|\\s+)"+targetclass+"($|\\s+)","i")
var pieces=[]
var alltags=document.all?document.all:document.getElementsByTagName("*")
for(var i=0;i<alltags.length;i++){if(typeof alltags[i].className=="string"&&alltags[i].className.search(classnameRE)!=-1)
pieces[pieces.length]=alltags[i]}
return pieces}},addEvent:function(targetarr,functionref,tasktype){if(targetarr.length>0){var target=targetarr.shift()
if(target.addEventListener)
target.addEventListener(tasktype,functionref,false)
else if(target.attachEvent)
target.attachEvent('on'+tasktype,function(){return functionref.call(target,window.event)})
this.addEvent(targetarr,functionref,tasktype)}},domready:function(functionref){if(dd_domreadycheck){functionref()
return}
if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false)
functionref();dd_domreadycheck=true},false)}
else if(document.attachEvent){if(document.documentElement.doScroll&&window==window.top)(function(){if(dd_domreadycheck)return
try{document.documentElement.doScroll("left")}catch(error){setTimeout(arguments.callee,0)
return;}
functionref();dd_domreadycheck=true})();}
if(document.attachEvent&&parent.length>0)
this.addEvent(window,function(){functionref()},"load");},addState:function(anchorobj,state){if(anchorobj.getAttribute('data-image')){var imgobj=(anchorobj.tagName=="IMG")?anchorobj:anchorobj.getElementsByTagName('img')[0]
if(imgobj){imgobj.src=(state=="add")?anchorobj.getAttribute('data-overimage'):anchorobj.getAttribute('data-image')}}
else
anylinkcssmenu.setcssclass(anchorobj,"selectedanchor",state)},setupmenu:function(targetclass,anchorobj,pos){this.standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body
var relattr=anchorobj.getAttribute("rel")
var dropmenuid=relattr.replace(/\[(\w+)\]/,'')
var menu=this.menusmap[targetclass+pos]={id:targetclass+pos,anchorobj:anchorobj,dropmenu:document.getElementById(dropmenuid),revealtype:(relattr.length!=dropmenuid.length&&RegExp.$1=="click")?"click":"mouseover",orientation:anchorobj.getAttribute("rev")=="lr"?"lr":"ud",posxadjust:anchorobj.getAttribute("posx")?parseInt(anchorobj.getAttribute("posx")):0,posyadjust:anchorobj.getAttribute("posy")?parseInt(anchorobj.getAttribute("posy")):0,shadow:document.createElement("div")}
menu.anchorobj._internalID=targetclass+pos
menu.anchorobj._isanchor=true
menu.dropmenu._internalID=targetclass+pos
menu.shadow._internalID=targetclass+pos
menu.shadow.className="anylinkshadow"
document.body.appendChild(menu.dropmenu)
document.body.appendChild(menu.shadow)
menu.dropmenu.setcss=this.setcss
menu.shadow.setcss=this.setcss
menu.shadow.setcss({width:menu.dropmenu.offsetWidth+"px",height:menu.dropmenu.offsetHeight+"px"})
this.setopacity(menu.shadow,this.effects.shadow.opacity)
this.addEvent([menu.anchorobj,menu.dropmenu,menu.shadow],function(e){var menu=anylinkcssmenu.menusmap[this._internalID]
if(this._isanchor&&menu.revealtype=="mouseover"&&!anylinkcssmenu.isContained(this,e)){anylinkcssmenu.showmenu(menu.id)
anylinkcssmenu.addState(this,"add")}
else if(typeof this._isanchor=="undefined"){clearTimeout(menu.hidetimer)}},"mouseover")
this.addEvent([menu.anchorobj,menu.dropmenu,menu.shadow],function(e){if(!anylinkcssmenu.isContained(this,e)){var menu=anylinkcssmenu.menusmap[this._internalID]
menu.hidetimer=setTimeout(function(){anylinkcssmenu.addState(menu.anchorobj,"remove")
anylinkcssmenu.hidemenu(menu.id)},anylinkcssmenu.effects.delayhide)}},"mouseout")
this.addEvent([menu.anchorobj,menu.dropmenu],function(e){var menu=anylinkcssmenu.menusmap[this._internalID]
if(this._isanchor&&menu.revealtype=="click"){if(menu.dropmenu.style.visibility=="visible")
anylinkcssmenu.hidemenu(menu.id)
else{anylinkcssmenu.addState(this,"add")
anylinkcssmenu.showmenu(menu.id)}
if(e.preventDefault)
e.preventDefault()
return false}
else
menu.hidetimer=setTimeout(function(){anylinkcssmenu.hidemenu(menu.id)},anylinkcssmenu.effects.delayhide)},"click")},init:function(targetclass){this.domready(function(){anylinkcssmenu.trueinit(targetclass)})},trueinit:function(targetclass){var anchors=this.getElementsByClass(targetclass)
var preloadimages=this.preloadimages
for(var i=0;i<anchors.length;i++){if(anchors[i].getAttribute('data-image')){preloadimages[preloadimages.length]=new Image()
preloadimages[preloadimages.length-1].src=anchors[i].getAttribute('data-image')}
if(anchors[i].getAttribute('data-overimage')){preloadimages[preloadimages.length]=new Image()
preloadimages[preloadimages.length-1].src=anchors[i].getAttribute('data-overimage')}
this.setupmenu(targetclass,anchors[i],i)}}}

var offsetfromcursorX=0
var offsetfromcursorY=10
var offsetdivfrompointerX=10
var offsetdivfrompointerY=14
document.write('<div id="dhtmltooltip"><div id="bubbleTop"></div><div id="bubbleCenter"></div><div id="bubbleBottom"></div></div>')
var ie=document.all
var ns6=document.getElementById&&!document.all
var enabletip=false
if(ie||ns6)
var tipobj=document.all?document.all["dhtmltooltip"]:document.getElementById?document.getElementById("dhtmltooltip"):""
var tipcontentobj=document.all?document.all["bubbleCenter"]:document.getElementById?document.getElementById("bubbleCenter"):""
function ietruebody(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}
function ddrivetip(thetext,theimage,noborder){if(typeof(noborder)=='undefined')
{document.getElementById(theimage).style.border="4px solid #0082f0"}
else if(noborder=='thin')
{document.getElementById(theimage).style.border="3px solid #0082f0"}
if(ns6||ie){tipcontentobj.innerHTML=thetext
enabletip=true
return false}}
function positiontip(e){if(enabletip){var nondefaultpos=false
var curX=(ns6)?e.pageX:event.clientX+ietruebody().scrollLeft;var curY=(ns6)?e.pageY:event.clientY+ietruebody().scrollTop;var winwidth=ie&&!window.opera?ietruebody().clientWidth:window.innerWidth-20
var winheight=ie&&!window.opera?ietruebody().clientHeight:window.innerHeight-20
var rightedge=ie&&!window.opera?winwidth-event.clientX-offsetfromcursorX:winwidth-e.clientX-offsetfromcursorX
var bottomedge=ie&&!window.opera?winheight-event.clientY-offsetfromcursorY:winheight-e.clientY-offsetfromcursorY
var leftedge=(offsetfromcursorX<0)?offsetfromcursorX*(-1):-1000
if(rightedge<tipobj.offsetWidth){tipobj.style.left=curX-tipobj.offsetWidth+"px"
nondefaultpos=true}
else if(curX<leftedge)
tipobj.style.left="5px"
else{tipobj.style.left=curX+offsetfromcursorX-offsetdivfrompointerX+"px"}
if(bottomedge<tipobj.offsetHeight){tipobj.style.top=curY-tipobj.offsetHeight-offsetfromcursorY+"px"
nondefaultpos=true}
else{tipobj.style.top=curY+offsetfromcursorY+offsetdivfrompointerY+"px"}
tipobj.style.visibility="visible"}}
function hideddrivetip(theimage,noborder){if(typeof(noborder)=='undefined')
{document.getElementById(theimage).style.border="4px solid transparent"}
else if(noborder=='thin')
{document.getElementById(theimage).style.border="3px solid transparent"}
if(ns6||ie){enabletip=false
tipobj.style.visibility="hidden"
tipobj.style.left="-1000px"
tipobj.style.backgroundColor=''
tipobj.style.width=''}}
document.onmousemove=positiontip

if(typeof dhtmlwindow=="undefined")
alert('ERROR: Modal Window script requires all files from "DHTML Window widget" in order to work!')
var dhtmlmodal={veilstack:0,open:function(t,contenttype,contentsource,title,attr,recalonload){var d=dhtmlwindow
this.interVeil=document.getElementById("interVeil")
this.veilstack++
this.loadveil()
if(recalonload=="recal"&&d.scroll_top==0)
d.addEvent(window,function(){dhtmlmodal.adjustveil()},"load")
var t=d.open(t,contenttype,contentsource,title,attr,recalonload)
t.controls.onclick=function(){dhtmlmodal.close(this._parent,true)}
t.show=function(){dhtmlmodal.show(this)}
t.close=function(){dhtmlmodal.close(this)}
t.hide=function(){dhtmlmodal.close(this)}
return t},loadveil:function(){var d=dhtmlwindow
d.getviewpoint()
this.docheightcomplete=(d.standardbody.offsetHeight>d.standardbody.scrollHeight)?d.standardbody.offsetHeight:d.standardbody.scrollHeight
this.interVeil.style.width=d.docwidth+"px"
this.interVeil.style.height=this.docheightcomplete+"px"
this.interVeil.style.left=0
this.interVeil.style.top=0
this.interVeil.style.visibility="visible"
this.interVeil.style.display="block"},adjustveil:function(){if(this.interVeil&&this.interVeil.style.display=="block")
this.loadveil()},closeveil:function(){this.veilstack--
if(this.veilstack==0)
this.interVeil.style.display="none"},close:function(t,forceclose){t.contentDoc=(t.contentarea.datatype=="iframe")?window.frames["_iframe-"+t.id].document:t.contentarea
if(typeof forceclose!="undefined")
t.onclose=function(){return true}
if(dhtmlwindow.close(t))
this.closeveil()},show:function(t){dhtmlmodal.veilstack++
dhtmlmodal.loadveil()
dhtmlwindow.show(t)}}
document.write('<div id="interVeil"></div>')
dhtmlwindow.addEvent(window,function(){if(typeof dhtmlmodal!="undefined")dhtmlmodal.adjustveil()},"resize")

function popAlertWindow(action,content)
{alertModalWindowVar=dhtmlmodal.open("alertModalWindow","ajax","/fenetres_modales/alert.php?action="+action+"&content="+UrlEncoding.encode(content),"Alerte","width=503px,height=365px,resize=0,scrolling=0,center=1");}
function popCPPWindow(prepaidCardGroupId,lastShoppingCartItemId)
{CPPModalWindowVar=dhtmlmodal.open("CPPModalWindow","ajax","/fenetres_modales/cpp.php?prepaidCardGroupId="+prepaidCardGroupId+"&lastShoppingCartItemId="+lastShoppingCartItemId,"Carte prépayée","width=540px,height=600px,resize=0,scrolling=0,center=1");}
function popLoginWindow(action)
{loginModalWindowVar=dhtmlmodal.open("loginModalWindow","ajax","/fenetres_modales/login.php?action="+action,"Identification","width=503px,height=304px,resize=0,scrolling=0,center=1");}
function popPasswordWindow(action)
{passwordModalWindowVar=dhtmlmodal.open("passwordModalWindow","ajax","/fenetres_modales/mot_de_passe_oublie.php?action="+action,"Mot de Passe oublié","width=503px,height=304px,resize=0,scrolling=0,center=1")}
function popCreateAccountWindow(action)
{createAccountModalWindowVar=dhtmlmodal.open("createAccountModalWindow","ajax","/fenetres_modales/inscription.php?action="+action,"Inscription","width=502px,height=453px,resize=0,scrolling=0,center=1")}
function popCommentWindow(id)
{commentModalWindowVar=dhtmlmodal.open("commentModalWindow","ajax","/fenetres_modales/commentaire.php?movie="+id,"Commentaire","width=503px,height=550px,resize=0,scrolling=0,center=1");}
function popRequestLoginWindow()
{requestLoginModalWindowVar=dhtmlmodal.open("requestLoginModalWindow","ajax","/fenetres_modales/request_login.php","Identification nécessaire","width=503px,height=365px,resize=0,scrolling=0,center=1");}
function popNotationWindow(id)
{notationModalWindowVar=dhtmlmodal.open("notationModalWindow","ajax","/fenetres_modales/note.php?movie="+id,"Donner une note","width=503px,height=365px,resize=0,scrolling=0,center=1");}
function popRecommendWindow(id)
{recommendModalWindowVar=dhtmlmodal.open("recommendModalWindow","ajax","/fenetres_modales/recommander.php?movie="+id,"Recommander","width=503px,height=500px,resize=0,scrolling=0,center=1")}
function popContactWindow(typeContact,height,displayInfosTechniques,sujet)
{contactModalWindowVar=dhtmlmodal.open("contactModalWindow","ajax","/fenetres_modales/contacter.php?type="+typeContact+"&displayInfosTechniques="+displayInfosTechniques+"&sujet="+sujet,"Contacter","width=503px,height="+height+"px,resize=0,scrolling=0,center=1")}
function popCreateNewsletterSubscriptionWindow(action)
{newsletterSubscriptionModalWindowVar=dhtmlmodal.open("newsletterSubscriptionModalWindow","ajax","/fenetres_modales/newsletter_subscription.php?action="+action,"Inscription à la newsletter","width=503px,height=310px,resize=0,scrolling=0,center=1")}
function popModalWindow(type,source,title,attributes)
{modalWindowVar = dhtmlmodal.open("modalWindow", type, source, title, attributes);}
function loadModalWindow(type, source, title)
{modalWindowVar.load(type, source, title)}
function isLoggedDo(yes,no)
{ajaxpack.postAjaxRequest('/ajax/isLogged.php','yes='+yes+"&no="+no,processAjaxEval,'txt');}
var UrlEncoding={encode:function(string){return escape(this._utf8_encode(string));},decode:function(string){return this._utf8_decode(unescape(string));},_utf8_encode:function(string){string=string.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n<string.length;n++){var c=string.charCodeAt(n);if(c<128){utftext+=String.fromCharCode(c);}
else if((c>127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128);}
else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128);}}
return utftext;},_utf8_decode:function(utftext){var string="";var i=0;var c=c1=c2=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++;}
else if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}
else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}
return string;}}
function modal_inscription_createPostInscriptionData(action)
{var myPostString="inscription_nom="+UrlEncoding.encode(document.getElementById("inscription_nom").value);myPostString+="&inscription_prenom="+UrlEncoding.encode(document.getElementById("inscription_prenom").value);var civilite="";for(var i=0;i<3;i++)
{if(document.createAccountForm.inscription_civilite[i].checked)
{civilite=document.createAccountForm.inscription_civilite[i].value;}}
myPostString+="&inscription_civilite="+civilite;myPostString+="&inscription_email="+UrlEncoding.encode(document.getElementById("inscription_email").value);myPostString+="&inscription_password="+UrlEncoding.encode(document.getElementById("inscription_password").value);myPostString+="&inscription_password_confirmation="+UrlEncoding.encode(document.getElementById("inscription_password_confirmation").value);myPostString+="&inscription_cgv="+((document.getElementById("inscription_cgv").checked==true)?"1":"0");myPostString+="&inscription_newsletter_1="+((document.getElementById("inscription_newsletter_1").checked==true)?"1":"0");myPostString+="&inscription_newsletter_2="+((document.getElementById("inscription_newsletter_2").checked==true)?"1":"0");myPostString+="&inscription_newsletter_3="+((document.getElementById("inscription_newsletter_3").checked==true)?"1":"0");myPostString+="&action="+action;return myPostString;}
function modal_inscription_resetError()
{var borderStyle="1px solid #a8b1bb";document.getElementById("inscription_nom").style.border=borderStyle;document.getElementById("inscription_prenom").style.border=borderStyle;document.getElementById("inscription_password").style.border=borderStyle;document.getElementById("inscription_password_confirmation").style.border=borderStyle;document.getElementById("inscription_email").style.border=borderStyle;document.getElementById("inscription_cgv_span").style.color="#a8b1bb";document.getElementById("inscriptionError").style.visibility="hidden";}
function modal_stars_over(num)
{for(i=1;i<=num;i++)
{document.getElementById("star"+i).src="/imgs/etoilep_big.png";}
for(i=num+1;i<=5;i++)
{document.getElementById("star"+i).src="/imgs/etoilev_big.png";}
document.getElementById("note").value=parseInt(num);}
function modal_comment_createPostCommentData()
{var myPostString="note="+UrlEncoding.encode(document.getElementById("note").value);myPostString+="&movie="+UrlEncoding.encode(document.getElementById("movie").value);myPostString+="&sujet="+UrlEncoding.encode(document.getElementById("sujet").value);myPostString+="&texte="+UrlEncoding.encode(document.getElementById("texte").value);myPostString+="&signature="+UrlEncoding.encode(document.getElementById("pseudo").value);myPostString+="&pseudo="+UrlEncoding.encode(document.getElementById("pseudo").value);myPostString+="&region="+UrlEncoding.encode(document.getElementById("region").value);return myPostString;}
function modal_notation_createPostNotationData()
{var myPostString="note="+UrlEncoding.encode(document.getElementById("note").value);myPostString+="&movie="+UrlEncoding.encode(document.getElementById("movie").value);return myPostString;}
function modal_recommend_createPostRecommendData()
{var myPostString="email_ami="+UrlEncoding.encode(document.getElementById("email_ami").value);myPostString+="&email="+UrlEncoding.encode(document.getElementById("email").value);myPostString+="&movie="+UrlEncoding.encode(document.getElementById("movie").value);myPostString+="&message="+UrlEncoding.encode(document.getElementById("message").value);return myPostString;}
function modal_contact_createPostContactData()
{var myPostString="sujet="+UrlEncoding.encode(document.getElementById("sujet").value);myPostString+="&email="+UrlEncoding.encode(document.getElementById("email").value);myPostString+="&typeContact="+UrlEncoding.encode(document.getElementById("typeContact").value);myPostString+="&message="+UrlEncoding.encode(document.getElementById("message").value);if(document.getElementById("typeContact").value=='client' && document.getElementById("sujet").value==1 && document.getElementById("displayInfosTechniques").value==1){myPostString+="&systemeExploitation="+UrlEncoding.encode(document.getElementById("systemeExploitation").value);myPostString+="&messageErreur="+UrlEncoding.encode(document.getElementById("messageErreur").value);myPostString+="&logicielSecurite="+UrlEncoding.encode(document.getElementById("logicielSecurite").value);myPostString+="&navigateurInternet="+UrlEncoding.encode(document.getElementById("navigateurInternet").value);};return myPostString;}
function modal_newsletter_createPostNewsletterSubscriptionData(action)
{var myPostString="newsletter_email="+UrlEncoding.encode(document.getElementById("newsletter_email").value);myPostString+="&action="+action;return myPostString;}
function modal_newsletter_resetError()
{var borderStyle="1px solid #a8b1bb";document.getElementById("newsletter_email").style.border=borderStyle;document.getElementById("newsletterSubscriptionError").style.visibility="hidden";}

function processAjaxEval(){var myajax=ajaxpack.ajaxobj
var myfiletype=ajaxpack.filetype
if(myajax.readyState==4){if(myajax.status==200||window.location.href.indexOf("http")==-1){eval(myajax.responseText);}}}
function processAjaxLogin(){processAjaxEval();}
function processAjaxPassword(){processAjaxEval();}
function processAjaxInscription(){processAjaxEval();}
function processPromotionalCode(){processAjaxEval();}
function processAjaxComment(){processAjaxEval();}
function processAjaxNotation(){processAjaxEval();}
function processAjaxRecommend(){processAjaxEval();}
function processAjaxMonCompte(){processAjaxEval();}
function processAjaxContact(){processAjaxEval();}

var searchType=new Array();searchType[1]="";searchType[2]="adulte";function selectSearchArea(divId,zone)
{document.getElementById(zone+"SearchSelectAnchor").innerHTML=document.getElementById(zone+"SearchSelectLink"+divId).innerHTML;document.getElementById(zone+"SearchSelectDivLink"+divId).style.display='none';document.getElementById(zone+"SearchArea").value=searchType[divId];for(i=1;i<=2;i++)
{if(i!=divId)
{document.getElementById(zone+"SearchSelectDivLink"+i).style.display='inline';}}}
