window.onload=function(){tabView=new YAHOO.widget.TabView("menu");tabView2=new YAHOO.widget.TabView("onglet")};function Viewer(d){iViewerWidth=617;iViewerPosition=0;var b=0;var c=document.getElementById("pictures"+d);YAHOO.util.Event.on("gotonext"+d,"click",function(){b++;if(iViewerPosition+iViewerWidth>=c.scrollWidth){b=0;iViewerPosition=-iViewerWidth}var e=new YAHOO.util.Scroll("visus"+d,{scroll:{to:[iViewerPosition+iViewerWidth,0]}},0.2,YAHOO.util.Easing.easeBoth);e.animate();iViewerPosition+=iViewerWidth});YAHOO.util.Event.on("gotoprev"+d,"click",function(){var e=new YAHOO.util.Scroll("visus"+d,{scroll:{to:[iViewerPosition-iViewerWidth,0]}},0.2,YAHOO.util.Easing.easeBoth);e.animate();if(iViewerPosition>0){b--;iViewerPosition-=iViewerWidth}});var a=YAHOO.util.Dom.getElementsBy(function(){return true},"a","pictures"+d);YAHOO.util.Event.on("see","click",function(){Shadowbox.open({content:a[b].href,gallery:"group",player:"img"})})}if(document.getElementById("pictures1")){YAHOO.util.Event.onDOMReady(function(){Viewer("1");Viewer("2");Viewer("3");Viewer("4")})}function ShowPop(f){var b=document.getElementById("infobulle");var e=document.getElementById("mid_content");var c=window.innerWidth;var a=e.offsetWidth;var d=(c-a)/2;if(navigator.appName!="Microsoft Internet Explorer"){b.style.left=f.pageX-d-60+"px";b.style.top=f.pageY-110+"px";b.getElementsByTagName("span")[0].innerHTML="<h3>"+f.currentTarget.getAttribute("title")+"</h3>";b.getElementsByTagName("span")[1].innerHTML=document.getElementById("couv_infos_"+f.currentTarget.id.substring(5)).innerHTML}else{if(document.documentElement.clientWidth>0){b.style.left=f.x+document.documentElement.scrollLeft-50+"px";b.style.top=f.y+document.body.scrollTop+455+"px"}else{b.style.left=f.x+document.body.scrollLeft+"px";b.style.top=f.y+document.body.scrollTop+"px"}b.getElementsByTagName("span")[0].innerHTML="<h3>"+f.srcElement.getAttribute("title")+"</h3>";b.getElementsByTagName("span")[1].innerHTML=document.getElementById("couv_infos_"+f.srcElement.id.substring(5)).innerHTML}b.style.display="block"}function ShowPop2(){popup=document.getElementById("infobulle");popup.style.display="block"}function HidePop(){popup=document.getElementById("infobulle");popup.style.display="none"};