(function($){var locationWrapper={put:function(hash,win){(win||window).location.hash=this.encoder(hash)},get:function(win){var hash=((win||window).location.hash).replace(/^#/,'');try{return $.browser.mozilla?hash:decodeURIComponent(hash)}catch(error){return hash}},encoder:encodeURIComponent};var iframeWrapper={id:"__jQuery_history",init:function(){var html='<iframe id="'+this.id+'" style="display:none" src="javascript:false;" />';$("body").prepend(html);return this},_document:function(){return $("#"+this.id)[0].contentWindow.document},put:function(hash){var doc=this._document();doc.open();doc.close();locationWrapper.put(hash,doc)},get:function(){return locationWrapper.get(this._document())}};function initObjects(options){options=$.extend({unescape:false},options||{});locationWrapper.encoder=encoder(options.unescape);function encoder(unescape_){if(unescape_===true){return function(hash){return hash}}if(typeof unescape_=="string"&&(unescape_=partialDecoder(unescape_.split("")))||typeof unescape_=="function"){return function(hash){return unescape_(encodeURIComponent(hash))}}return encodeURIComponent}function partialDecoder(chars){var re=new RegExp($.map(chars,encodeURIComponent).join("|"),"ig");return function(enc){return enc.replace(re,decodeURIComponent)}}}var implementations={};implementations.base={callback:undefined,type:undefined,check:function(){},load:function(hash){},init:function(callback,options){initObjects(options);self.callback=callback;self._options=options;self._init()},_init:function(){},_options:{}};implementations.timer={_appState:undefined,_init:function(){var current_hash=locationWrapper.get();self._appState=current_hash;self.callback(current_hash);setInterval(self.check,100)},check:function(){var current_hash=locationWrapper.get();if(current_hash!=self._appState){self._appState=current_hash;self.callback(current_hash)}},load:function(hash){if(hash!=self._appState){locationWrapper.put(hash);self._appState=hash;self.callback(hash)}}};implementations.iframeTimer={_appState:undefined,_init:function(){var current_hash=locationWrapper.get();self._appState=current_hash;iframeWrapper.init().put(current_hash);self.callback(current_hash);setInterval(self.check,100)},check:function(){var iframe_hash=iframeWrapper.get(),location_hash=locationWrapper.get();if(location_hash!=iframe_hash){if(location_hash==self._appState){self._appState=iframe_hash;locationWrapper.put(iframe_hash);self.callback(iframe_hash)}else{self._appState=location_hash;iframeWrapper.put(location_hash);self.callback(location_hash)}}},load:function(hash){if(hash!=self._appState){locationWrapper.put(hash);iframeWrapper.put(hash);self._appState=hash;self.callback(hash)}}};implementations.hashchangeEvent={_init:function(){self.callback(locationWrapper.get());$(window).bind('hashchange',self.check)},check:function(){self.callback(locationWrapper.get())},load:function(hash){locationWrapper.put(hash)}};var self=$.extend({},implementations.base);if($.browser.msie&&($.browser.version<8||document.documentMode<8)){self.type='iframeTimer'}else if("onhashchange"in window){self.type='hashchangeEvent'}else{self.type='timer'}$.extend(self,implementations[self.type]);$.history=self})(jQuery);function inscriptionNom(){var OAjax;document.getElementById('inscr').style.display='block';if(window.XMLHttpRequest)OAjax=new XMLHttpRequest();else if(window.ActiveXObject)OAjax=new ActiveXObject('Microsoft.XMLHTTP');OAjax.open('POST',"inscrireNom.php",true);OAjax.onreadystatechange=function(){if(OAjax.readyState==4&&OAjax.status==200){if(document.getElementById){if(OAjax.responseText=='true'){document.getElementById('inscriptNom').innerHTML=OAjax.responseText;document.getElementById('inscr').style.display='none'}else{document.getElementById('inscriptNom').innerHTML=OAjax.responseText;document.getElementById('inscr').style.display='none'}}}};OAjax.setRequestHeader('Content-type','application/x-www-form-urlencoded');OAjax.send('nom='+document.getElementById('ri_nom').value+'&prenom='+document.getElementById('ri_prenom').value+'&email='+document.getElementById('ri_email').value)}function sendData(prod){var OAjax;document.getElementById('imloadingsup').style.display='block';document.getElementById('loadedsup').style.display='none';document.getElementById('loadingSuppr').style.display='none';document.getElementById('loading').style.display='block';document.getElementById('imloading').style.display='block';document.getElementById('loaded').style.display='none';if(window.XMLHttpRequest)OAjax=new XMLHttpRequest();else if(window.ActiveXObject)OAjax=new ActiveXObject('Microsoft.XMLHTTP');OAjax.open('POST',"Cart.php",true);OAjax.onreadystatechange=function(){if(OAjax.readyState==4&&OAjax.status==200){if(document.getElementById){if(OAjax.responseText=='true'){document.getElementById('cart').innerHTML=OAjax.responseText;document.getElementById('imloading').style.display='none';document.getElementById('loaded').style.display='block'}else{document.getElementById('cart').innerHTML=OAjax.responseText;document.getElementById('imloading').style.display='none';document.getElementById('loaded').style.display='block'}}}};OAjax.setRequestHeader('Content-type','application/x-www-form-urlencoded');OAjax.send('product_id='+prod)}function cacheload(){document.getElementById('imloading').style.display='block';document.getElementById('loaded').style.display='none';document.getElementById('loading').style.display='none';document.getElementById('imloadingsup').style.display='block';document.getElementById('loadedsup').style.display='none';document.getElementById('loadingSuppr').style.display='none'}function clearProduct(id){var OAjax;document.getElementById('loadingSuppr').style.display='block';document.getElementById('imloadingsup').style.display='block';document.getElementById('loadedsup').style.display='none';if(window.XMLHttpRequest)OAjax=new XMLHttpRequest();else if(window.ActiveXObject)OAjax=new ActiveXObject('Microsoft.XMLHTTP');OAjax.open('POST',"Cart.php",true);OAjax.onreadystatechange=function(){if(OAjax.readyState==4&&OAjax.status==200){if(document.getElementById){if(OAjax.responseText=='true'){document.getElementById('cart').innerHTML=OAjax.responseText;document.getElementById('imloadingsup').style.display='none';document.getElementById('loadedsup').style.display='block'}else{document.getElementById('cart').innerHTML=OAjax.responseText;document.getElementById('imloadingsup').style.display='none';document.getElementById('loadedsup').style.display='block'}}}};OAjax.setRequestHeader('Content-type','application/x-www-form-urlencoded');OAjax.send('clearProduct=true&id='+id)}function addProduct(element,dropon,event){sendData(element.id)}function inscriptionNomproto(){if(document.getElementById('ri_nom').value!=""&&document.getElementById('ri_prenom').value!=""){var url='inscrireNom.php';var rand=Math.random(9999);$('inscr').style.display="block";var pars='nom='+document.getElementById('ri_nom').value+'&prenom='+document.getElementById('ri_prenom').value+'&email='+document.getElementById('ri_email').value;var myAjax=new Ajax.Request(url,{method:'get',parameters:pars,onLoading:AttenteInscription,onComplete:ReponseInscription})}else{if(document.getElementById('ri_nom').value!=""&&document.getElementById('ri_prenom').value==""){alert("Veuillez renseigner votre prénom SVP")}if(document.getElementById('ri_nom').value==""&&document.getElementById('ri_prenom').value!=""){alert("Veuillez renseigner votre nom SVP")}if(document.getElementById('ri_nom').value==""&&document.getElementById('ri_prenom').value==""){alert("Veuillez renseigner votre nom et votre prénom SVP")}}}function AttenteInscription(){}function ReponseInscription(originalRequest){$('inscriptNom').innerHTML=originalRequest.responseText;$('inscr').style.display="none"}function sendDataproto(prod){var url='cart.php';var rand=Math.random(9999);var pars='product_id='+prod+'&rand='+rand;var myAjax=new Ajax.Request(url,{method:'get',parameters:pars,onLoading:showLoad,onComplete:showResponse})}function clearCart(){var url='cart.php';var rand=Math.random(9999);var pars='clear=true&rand='+rand;var myAjax=new Ajax.Request(url,{method:'get',parameters:pars,onLoading:showLoad,onComplete:showResponse})}function clearProductproto(id){var url='cart.php';var rand=Math.random(9999);var pars='clearProduct=true&id='+id+'&rand='+rand;var myAjax=new Ajax.Request(url,{method:'get',parameters:pars,onLoading:showLoad,onComplete:showResponse})}function showResponse(originalRequest){$('loading').style.display="none";$('clearCart').style.display="block";$('cart').innerHTML=originalRequest.responseText}function showLoad(){$('clearCart').style.display="none";$('loading').style.display="block"}function favoris(){if(navigator.appName!='Microsoft Internet Explorer'){window.sidebar.addPanel("Photo jpg - Banque d'image en ligne","http://www.photo-jpg.com","")}else{window.external.AddFavorite("http://www.photo-jpg.com","Photo jpg - Banque d'image en ligne")}}function Add_Event(obj_,event_,func_,mode_){if(obj_.addEventListener)obj_.addEventListener(event_,func_,mode_?mode_:false);else obj_.attachEvent('on'+event_,func_)}function GetScrollPage(){var Left;var Top;var DocRef;if(window.innerWidth){with(window){Left=pageXOffset;Top=pageYOffset}}else{if(document.documentElement&&document.documentElement.clientWidth)DocRef=document.documentElement;else DocRef=document.body;with(DocRef){Left=scrollLeft;Top=scrollTop}}return({top:Top,left:Left})}function ObjGetPosition(obj_){var PosX=0;var PosY=0;if(typeof(obj_)=='object')var Obj=obj_;else var Obj=document.getElementById(obj_);if(Obj){PosX=Obj.offsetLeft;PosY=Obj.offsetTop;if(Obj.offsetParent){while(Obj=Obj.offsetParent){if(Obj.offsetParent){PosX+=Obj.offsetLeft;PosY+=Obj.offsetTop}}}}return({left:PosX,top:PosY})}var IdTimer_1;var IdTimer_2;var O_DivScroll;var Rapport=1.0/20.0;var Mini=2*Rapport;function DIV_Scroll(id_){var Obj=document.getElementById(id_);this.Obj=Obj;if(Obj){Obj.style.position="absolute";var Pos=ObjGetPosition(id_);this.PosX=Pos.left;this.PosY=Pos.top;this.DebX=this.PosX;this.DebY=this.PosY;this.NewX=0;this.NewY=0;this.Move=DIV_Deplace}}function DIV_Deplace(x_,y_){if(arguments[0]!=null){this.PosX=x_;this.Obj.style.left=parseInt(x_)+"px"}if(arguments[1]!=null){this.PosY=y_;this.Obj.style.top=parseInt(y_)+"px"}}function DIV_Replace(x_,y_){var Delta_X=(x_-O_DivScroll.PosX)*Rapport;var Delta_Y=(y_-O_DivScroll.PosY)*Rapport;if(((Delta_Y<Mini)&&(Delta_Y>-Mini))&&((Delta_X<Mini)&&(Delta_X>-Mini))){clearInterval(IdTimer_1);O_DivScroll.Move(x_,y_)}else{O_DivScroll.Move(O_DivScroll.PosX+Delta_X,O_DivScroll.PosY+Delta_Y)}}function DIV_CheckScroll(){var Scroll=GetScrollPage();O_DivScroll.NewX=Scroll.left+O_DivScroll.DebX;O_DivScroll.NewY=Scroll.top+O_DivScroll.DebY;if((O_DivScroll.PosY!=O_DivScroll.NewY)||(O_DivScroll.PosX!=O_DivScroll.NewX)){clearInterval(IdTimer_1);IdTimer_1=setInterval("DIV_Replace("+O_DivScroll.NewX+","+O_DivScroll.NewY+")",10)}return(true)}function DIV_InitScroll(){O_DivScroll=new DIV_Scroll('DIV_MOVE');if(O_DivScroll.Obj)IdTimer_2=setInterval('DIV_CheckScroll()',100)}Add_Event(window,'load',DIV_InitScroll);jQuery.noConflict();var tb_pathToImage="images/loadingAnimation.gif";jQuery(document).ready(function(){tb_init('a.thickbox, area.thickbox, input.thickbox');imgLoader=new Image();imgLoader.src=tb_pathToImage});function tb_init(domChunk){jQuery(domChunk).click(function(){var t=this.title||this.name||null;var a=this.href||this.alt;var g=this.rel||false;tb_show(t,a,g);this.blur();return false})}function tb_show(caption,url,imageGroup){try{if(typeof document.body.style.maxHeight==="undefined"){jQuery("body","html").css({height:"100%",width:"100%"});jQuery("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){jQuery("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");jQuery("#TB_overlay").click(tb_remove)}}else{if(document.getElementById("TB_overlay")===null){jQuery("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");jQuery("#TB_overlay").click(tb_remove)}}if(tb_detectMacXFF()){jQuery("#TB_overlay").addClass("TB_overlayMacFFBGHack")}else{jQuery("#TB_overlay").addClass("TB_overlayBG")}if(caption===null){caption=""}jQuery("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");jQuery('#TB_load').show();var baseURL;if(url.indexOf("?")!==-1){baseURL=url.substr(0,url.indexOf("?"))}else{baseURL=url}var urlString=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var urlType=baseURL.toLowerCase().match(urlString);if(urlType=='.jpg'||urlType=='.jpeg'||urlType=='.png'||urlType=='.gif'||urlType=='.bmp'){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(imageGroup){TB_TempArray=jQuery("a[@rel="+imageGroup+"]").get();for(TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML===""));TB_Counter++){var urlTypeTemp=TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);if(!(TB_TempArray[TB_Counter].href==url)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>"}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>"}}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+(TB_TempArray.length)}}}imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var pagesize=tb_getPageSize();var x=pagesize[0]-150;var y=pagesize[1]-150;var imageWidth=imgPreloader.width;var imageHeight=imgPreloader.height;if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x;if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y}}else if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y;if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x}}TB_WIDTH=imageWidth+30;TB_HEIGHT=imageHeight+60;jQuery("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>"+"<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>");jQuery("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function goPrev(){if(jQuery(document).unbind("click",goPrev)){jQuery(document).unbind("click",goPrev)}jQuery("#TB_window").remove();jQuery("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,imageGroup);return false}jQuery("#TB_prev").click(goPrev)}if(!(TB_NextHTML==="")){function goNext(){jQuery("#TB_window").remove();jQuery("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,imageGroup);return false}jQuery("#TB_next").click(goNext)}document.onkeydown=function(e){if(e==null){keycode=event.keyCode}else{keycode=e.which}if(keycode==27){tb_remove()}else if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";goNext()}}else if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";goPrev()}}};tb_position();jQuery("#TB_load").remove();jQuery("#TB_ImageOff").click(tb_remove);jQuery("#TB_window").css({display:"block"})};imgPreloader.src=url}else{var queryString=url.replace(/^[^\?]+\??/,'');var params=tb_parseQuery(queryString);TB_WIDTH=(params['width']*1)+30||630;TB_HEIGHT=(params['height']*1)+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(url.indexOf('TB_iframe')!=-1){urlNoQuery=url.split('TB_');jQuery("#TB_iframeContent").remove();if(params['modal']!="true"){jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>")}else{jQuery("#TB_overlay").unbind();jQuery("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>")}}else{if(jQuery("#TB_window").css("display")!="block"){if(params['modal']!="true"){jQuery("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>")}else{jQuery("#TB_overlay").unbind();jQuery("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>")}}else{jQuery("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";jQuery("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";jQuery("#TB_ajaxContent")[0].scrollTop=0;jQuery("#TB_ajaxWindowTitle").html(caption)}}jQuery("#TB_closeWindowButton").click(tb_remove);if(url.indexOf('TB_inline')!=-1){jQuery("#TB_ajaxContent").append(jQuery('#'+params['inlineId']).children());jQuery("#TB_window").unload(function(){jQuery('#'+params['inlineId']).append(jQuery("#TB_ajaxContent").children())});tb_position();jQuery("#TB_load").remove();jQuery("#TB_window").css({display:"block"})}else if(url.indexOf('TB_iframe')!=-1){tb_position();if(jQuery.browser.safari){jQuery("#TB_load").remove();jQuery("#TB_window").css({display:"block"})}}else{jQuery("#TB_ajaxContent").load(url+="&random="+(new Date().getTime()),function(){tb_position();jQuery("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");jQuery("#TB_window").css({display:"block"})})}}if(!params['modal']){document.onkeyup=function(e){if(e==null){keycode=event.keyCode}else{keycode=e.which}if(keycode==27){tb_remove()}}}}catch(e){}}function tb_showIframe(){jQuery("#TB_load").remove();jQuery("#TB_window").css({display:"block"})}function tb_remove(){jQuery("#TB_imageOff").unbind("click");jQuery("#TB_closeWindowButton").unbind("click");jQuery("#TB_window").fadeOut("fast",function(){jQuery('#TB_window,#TB_overlay,#TB_HideSelect').trigger("unload").unbind().remove()});jQuery("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){jQuery("body","html").css({height:"auto",width:"auto"});jQuery("html").css("overflow","")}document.onkeydown="";document.onkeyup="";return false}function tb_position(){jQuery("#TB_window").css({marginLeft:'-'+parseInt((TB_WIDTH/2),10)+'px',width:TB_WIDTH+'px'});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){jQuery("#TB_window").css({marginTop:'-'+parseInt((TB_HEIGHT/2),10)+'px'})}}function tb_parseQuery(query){var Params={};if(!query){return Params}var Pairs=query.split(/[;&]/);for(var i=0;i<Pairs.length;i++){var KeyVal=Pairs[i].split('=');if(!KeyVal||KeyVal.length!=2){continue}var key=unescape(KeyVal[0]);var val=unescape(KeyVal[1]);val=val.replace(/\+/g,' ');Params[key]=val}return Params}function tb_getPageSize(){var de=document.documentElement;var w=window.innerWidth||self.innerWidth||(de&&de.clientWidth)||document.body.clientWidth;var h=window.innerHeight||self.innerHeight||(de&&de.clientHeight)||document.body.clientHeight;arrayPageSize=[w,h];return arrayPageSize}function tb_detectMacXFF(){var userAgent=navigator.userAgent.toLowerCase();if(userAgent.indexOf('mac')!=-1&&userAgent.indexOf('firefox')!=-1){return true}}function SDMenu(id){if(!document.getElementById||!document.getElementsByTagName)return false;this.menu=document.getElementById(id);this.submenus=this.menu.getElementsByTagName("div");this.remember=true;this.speed=6;this.markCurrent=true;this.oneSmOnly=false}SDMenu.prototype.init=function(){var mainInstance=this;for(var i=0;i<this.submenus.length;i++){this.collapseMenu(this.submenus[i]);this.submenus[i].getElementsByTagName("span")[0].onclick=function(){for(var j=0;j<mainInstance.submenus.length;j++){if(mainInstance.submenus[j].className!="collapsed")mainInstance.collapseMenu(mainInstance.submenus[j])}mainInstance.toggleMenu(this.parentNode)}}if(this.markCurrent){var links=this.menu.getElementsByTagName("a");for(var i=0;i<links.length;i++)if(links[i].href==document.location.href){links[i].className="current";break}}if(this.remember){var regex=new RegExp("sdmenu_"+encodeURIComponent(this.menu.id)+"=([01]+)");var match=regex.exec(document.cookie);if(match){var states=match[1].split("");for(var i=0;i<states.length;i++)this.submenus[i].className=(states[i]==0?"collapsed":"")}}};SDMenu.prototype.toggleMenu=function(submenu){if(submenu.className=="collapsed")this.expandMenu(submenu);else this.collapseMenu(submenu)};SDMenu.prototype.expandMenu=function(submenu){var fullHeight=submenu.getElementsByTagName("span")[0].offsetHeight;var links=submenu.getElementsByTagName("a");for(var i=0;i<links.length;i++)fullHeight+=links[i].offsetHeight;var moveBy=Math.round(this.speed*links.length);var mainInstance=this;var intId=setInterval(function(){var curHeight=submenu.offsetHeight;var newHeight=curHeight+moveBy;if(newHeight<fullHeight)submenu.style.height=newHeight+"px";else{clearInterval(intId);submenu.style.height="";submenu.className="";mainInstance.memorize()}},30);this.collapseOthers(submenu)};SDMenu.prototype.collapseMenu=function(submenu){var minHeight=submenu.getElementsByTagName("span")[0].offsetHeight;var moveBy=Math.round(this.speed*submenu.getElementsByTagName("a").length);var mainInstance=this;var intId=setInterval(function(){var curHeight=submenu.offsetHeight;var newHeight=curHeight-moveBy;if(newHeight>minHeight)submenu.style.height=newHeight+"px";else{clearInterval(intId);submenu.style.height="";submenu.className="collapsed";mainInstance.memorize()}},30)};SDMenu.prototype.collapseOthers=function(submenu){if(this.oneSmOnly){for(var i=0;i<this.submenus.length;i++)if(this.submenus[i]!=submenu&&this.submenus[i].className!="collapsed")this.collapseMenu(this.submenus[i])}};SDMenu.prototype.expandAll=function(){var oldOneSmOnly=this.oneSmOnly;this.oneSmOnly=false;for(var i=0;i<this.submenus.length;i++)if(this.submenus[i].className=="collapsed")this.expandMenu(this.submenus[i]);this.oneSmOnly=oldOneSmOnly};SDMenu.prototype.collapseAll=function(){for(var i=0;i<this.submenus.length;i++)if(this.submenus[i].className!="collapsed")this.collapseMenu(this.submenus[i])};SDMenu.prototype.memorize=function(){if(this.remember){var states=new Array();for(var i=0;i<this.submenus.length;i++)states.push(this.submenus[i].className=="collapsed"?0:1);var d=new Date();d.setTime(d.getTime()+(30*24*60*60*1000));document.cookie="sdmenu_"+encodeURIComponent(this.menu.id)+"="+states.join("")+"; expires="+d.toGMTString()+"; path=/"}};function gotoIdentification(nomprenom,id){var selectBox=document.getElementById('alertphtid');var elem=selectBox.options[selectBox.selectedIndex].value.split(';');if(elem.length==2){var nomprenom=elem[0];var idalerte=elem[1];document.location.href='#resultatidentification-'+idalerte+'.html%3Fajax%3Dtrue'}}function gotoIdentification2(nomprenom,id){document.location.href='#resultatidentification-'+id+'.html%3Fajax%3Dtrue'}function gotoTriRub(idrub){var selectBox=document.getElementById('rubtri');var elem=selectBox.options[selectBox.selectedIndex].value;document.location.href='#galerie-'+idrub+'.html%3Fajax%3Dtrue&tri='+elem}function fbs_click(){u=location.href;u=document.getElementById('fb').value;t=document.title;window.open('http://www.facebook.com/sharer.php?u='+encodeURIComponent(u)+'&t='+encodeURIComponent(t),'sharer','toolbar=0,status=0,width=626,height=436');return false}var myMenu;window.onload=function(){myMenu=new SDMenu("my_menu");myMenu.init()};jQuery(document).ready(function($){function load(num){$('#containerPrincipal').load(num)}$.history.init(function(hash){if(hash){$('#containerPrincipal').empty().html('<img src="/imagesdesign/loading_transparent.gif">');load(hash)}else{}});$("a[rel='history']").live('click',function(){$("html,body").animate({scrollTop:0},0);var hash=$(this).attr('href')+'?ajax=true';hash=hash.replace(/^.*#/,'');$.history.load(hash);return false});$("a[rel='none']").live('click',function(){return false});$("a[rel='diap']").live('click',function(){$('#diaporama').empty();$('#diaporama').html('<iframe id="framediapo" src="diaporamajquery.php?idrub='+$('#idrubri').val()+'" width="1034px" height="3024" style="z-index:10;" frameborder="0"></iframe>');return false});function scroller(){var affichage=10;var ID=jQuery(".myclass:last").attr("id");var test_nbrub=parseInt(ID)+affichage;if(test_nbrub<document.getElementById('nbrubencours').value){$('div#scroller').html('<img src="/imagesdesign/loading2.gif">')}jQuery.post("lstrubriques.php?IdRubrique="+document.getElementById('idrubriload').value+"&lastid="+ID+"&affichage="+affichage,function(data){if(data!=""){jQuery(".myclass:last").after(data)}jQuery('div#scroller').empty();document.getElementById('encours').value=0})};function scrollerphotos(){var affichage=24;var ID=jQuery(".myclasspht:last").attr("id");var test_nbpht=parseInt(ID)+affichage;if(test_nbpht<document.getElementById('nbphtencours').value){$('div#scrollerpht').html('<img src="/imagesdesign/loading2.gif">')}var tri=document.getElementById('tri').value;jQuery.post("lstphotosrubriques.php?IdRubrique="+document.getElementById('idrubriload').value+"&lastidpht="+ID+"&affichagepht="+affichage+"&tri="+tri,function(data){if(data!=""){jQuery(".myclasspht:last").after(data)}jQuery('div#scrollerpht').empty();document.getElementById('encourspht').value=0})};jQuery(window).scroll(function(){if((jQuery(window).scrollTop()+150)>=(jQuery(document).height()-jQuery(window).height())){if(document.getElementById('idrubriload')){if(document.getElementById('encours')&&document.getElementById('encours').value==0){document.getElementById('encours').value=1;scroller()}if(document.getElementById('encourspht')&&document.getElementById('encourspht').value==0){document.getElementById('encourspht').value=1;scrollerphotos()}}}})});function effaceinput(){document.getElementById('recherche14').recherche.value=''}function gorub(param){document.location.href=param}function va(){if(document.getElementById('recherche14').rubrique[document.getElementById('recherche14').rubrique.selectedIndex].value!=''){document.location.href=document.getElementById('recherche14').rubrique[document.getElementById('recherche14').rubrique.selectedIndex].value}}
