');window.setTimeout(function(){var e=_wf.url._getUrlObj().hash;e=e.split('#').join('');console.log(e);if(e=='texte-2014'||e=='interviews-2017'){console.log(e);opensub('Material')}else if(e==='presse-2014'){opensub('Presse')};$(window).on('hashchange',function(){console.log(location.hash)})},500);var globtemphtml;mainINT();window.setTimeout(function(){$('.loopitem a.collapsed').off('click.acco').on('click.acco',function(){$('.panel-collapse.collapse').removeClass('in')})},2000);function opensub(e){$('.maincont').off('click.sidemen');$('.innerinfo').html('{"name":"pagemodal", "loadexternal":true,"screencfg":{"pageurl":"JSON/m=page&id='+e+'"}}');$('.innerinfo').show();_wf.widget.findAndStartWidgets({searchIn:'.innerinfo'});window.setTimeout(function(){if(e==='Presse'){$('.innerinfo a').attr('href','page.php?al=2014#presse-2014')};$('.maincont').off('click.sidemen').on('click.sidemen',function(){$('.innerinfo').fadeOut(function(){$('.maincont').off('click.sidemen')})})},500)};function mainINT(){window.setTimeout(function(){$('.accordion .loopitem>.panel-heading>h4>a').off('click.mainclick').on('click.mainclick',function(){console.log('$(this).parent()',$(this).parent().parent());if(!$(this).parent().parent().hasClass('active')){loadMainclick();console.log('loadMainclick1')}else{reinsert();console.log('reinsert1');return!1};window.setTimeout(function(){_c2.apps._run({name:'imageenlarger'})},1500)})},1000)};function reinsert(){$('.filmpage').html(globtemphtml);_wf.widget.findAndStartWidgets({searchIn:'.filmpage'});loadMainclick()};function loadMainclick(){globtemphtml=$('.filmpage').html();window.setTimeout(function(){$('.widget-wrapper-pagelist.teasers .panel').off('click.panelclick').on('click.panelclick',function(){var e=$(this).find('a:not(.editbutton)').attr('href');e=_wf._strRight(e,'al=');$(this).find('a:not(.editbutton)').attr('href','javascript:$.noop()');$('.filmpage').html('{"name":"pagemodal", "loadexternal":true,"screencfg":{"pageurl":"JSON/m=page&id='+e+'"}}');_wf.widget.findAndStartWidgets({searchIn:'.filmpage'})})},1000)};}catch(e){ console.log("header page js error",e); }