function onChangeSiteLang(href){var i=location.href.indexOf("?");if(i>0)href+=location.href.substr(i);document.location.href=href;}$("#searchbox > input").click(function(){$(this).select();});var clickmessage="Le clic droit n'est pas autorisé sur les images de ce site!";function disableclick(e) {if( document.all ) { if( event.button == 2 || event.button == 3 ) { if( event.srcElement.tagName=="IMG" ) {if( clickmessage != "") alert( clickmessage );return false;} } }else if( document.layers ) { if( e.which == 3) { if( clickmessage != "") alert( clickmessage ); return false;} }else if( document.getElementById ){ if (e.which == 3 && e.target.tagName == "IMG" ){if( clickmessage != "" ) alert( clickmessage );return false;} } }function associateimages(){for(i=0;i0&&location.href.indexOf("twtheme=no")>0){$("#toolbar1").hide();$("#toolbar2").hide();$("#toolbar3").hide();$("#footersmall").hide();$("#footerfat").hide();if(parent&&location!=parent.location)$("#twclosepage").show();var idbmk=location.href;idbmk=idbmk.substring(idbmk.lastIndexOf("#")+1,idbmk.lastIndexOf("?"));if(idbmk!="")$("html,body").animate({scrollTop:$("#"+idbmk).offset().top},0);}$(".dropdown-toggle").dropdown();if($.cookie("cookieconsent")!="1"){$("#site").prepend("");}if(typeof onTOWebPageLoaded=="function") onTOWebPageLoaded();});