var ____prototype_ae_IE9JumpList=____prototype_ae_IE9JumpList||{};(function(jumplist){if(!navigator.userAgent.toLowerCase().match(/msie (9|10)(\.?[0-9]*)*/)){return}var options={siteName:'Hachette Vins',applicationName:'Hachette Vins',startURL:'http://www.hachette-vins.com',shortcutIcon:'http://ie9pinning.blob.core.windows.net/files/JumpList/634581313162144297/Main-d:/_work/svn/91/www/hachette-vins.com/favicon.ico',tooltip:'',rssFeedURL:'http://buildmypinnedsite.com/RSSFeed?feed=',categoryTitle:'',defaultTaskIcon:'',notifications:true,navButtonColor:false,latestFeedItemDate:0,pollInterval:30000,staticTasks:[{name:'Le Guide Hachette des Vins',action:'http://www.hachette-vins.com/le-guide-hachette-des-vins/',icon:'',target:'tab'},{name:'Mets et vins',action:'http://www.hachette-vins.com/mets-vins/',icon:'',target:'tab'},{name:'Forum',action:'http://www.hachette-vins.com/forum/',icon:'',target:'tab'},{name:'Blog',action:'http://www.hachette-vins.com/blog/',icon:'',target:'tab'}],prompt:true,barSiteName:'Hachette Vins'};var lib={dom:{meta:function(name,content){var meta=document.createElement('meta');meta.setAttribute('name',name);meta.setAttribute('content',content);return meta},link:function(rel,href){var link=document.createElement('link');link.setAttribute('rel',rel);link.setAttribute('href',href);return link},div:function(){return document.createElement('div')}},net:{getJSONP:function(URL){var script=document.createElement('script');script.type='text/javascript';script.src=URL+(URL.indexOf('?')!=-1?'&':'?')+Date.now();var head=document.getElementsByTagName('head')[0];head.insertBefore(script,head.firstChild)}}};jumplist.parseRSSFeed=function parseRSSFeed(news){try{if(window.external.msIsSiteMode()){window.external.msSiteModeClearJumpList();window.external.msSiteModeCreateJumpList(options.categoryTitle);try{if(news.rss&&news.rss.channel&&news.rss.channel.item){for(var items=news.rss.channel.item.slice(0,10),numItems=items.length,i=numItems-1,task,pubDate,newItems=0,taskTitle='';i>=0;i--){task=items[i];pubDate=Date.parse(task.pubDate);taskTitle=task.title?(typeof task.title=='string'?task.title:task.title['#cdata-section']||''):'';window.external.msSiteModeAddJumpListItem(taskTitle,task.link,options.defaultTaskIcon);if(pubDate>options.latestFeedItemDate){newItems++;options.latestFeedItemDate=pubDate}}}else if(news.feed&&news.feed.entry){for(var items=news.feed.entry.slice(0,10),numItems=items.length,i=numItems-1,task,pubDate,newItems=0,taskTitle='',link={};i>=0;i--){task=items[i];pubDate=Date.parse(task.published);taskTitle=task.title?(typeof task.title=='string'?task.title:(task.title['#cdata-section']?task.title['#cdata-section']:task.title['#text']||'')):'';if(task.link){if(typeof task.link=='string'){link['@href']=task.link||'#'}else if(Object.prototype.toString.call(task.link)==='[object Array]'){link=task.link[0]}else{link=task.link}}window.external.msSiteModeAddJumpListItem(taskTitle,link['@href']||'#',options.defaultTaskIcon);if(pubDate>options.latestFeedItemDate){newItems++;options.latestFeedItemDate=pubDate}}}if(options.notifications&&newItems){window.external.msSiteModeSetIconOverlay('http://buildmypinnedsite.com/icons/overlays/star-notice.ico',numItems+' unread items')}}catch(ex){}window.external.msSiteModeShowJumpList()}else{}}catch(ex){}window.setTimeout(____prototype_ae_IE9JumpList.poll,options.pollInterval)};document.addEventListener('DOMContentLoaded',function(){try{document.getElementsByTagName('body')[0].onfocus=function(){window.external.msSiteModeClearIconOverlay()}}catch(err){}var head=document.getElementsByTagName('head');if(!head){return}head=head[0];var links=document.getElementsByTagName('link'),remove=[];for(var i=0,rel;i<links.length;i++){rel=links[i].getAttribute('rel');if(!rel){continue}rel=rel.toLowerCase().replace(/^\s+|\s+$/g,'').replace(/\s+/g,' ');if(rel=='icon'||rel=='shortcut icon'){remove.push(links[i])}}for(i=0;i<remove.length;i++){head.removeChild(remove[i])}if(options.shortcutIcon){head.appendChild(lib.dom.link('shortcut icon',options.shortcutIcon))}head.appendChild(lib.dom.meta('application-name',options.applicationName));head.appendChild(lib.dom.meta('msapplication-tooltip',options.tooltip));if(options.navButtonColor){head.appendChild(lib.dom.meta('msapplication-navbutton-color',options.navButtonColor))}if(options.startURL){head.appendChild(lib.dom.meta('msapplication-starturl',options.startURL))}for(var i=0,task;i<options.staticTasks.length;i++){task=options.staticTasks[i];head.appendChild(lib.dom.meta('msapplication-task','name='+task.name+';action-uri='+task.action+';icon-uri='+task.icon+';window-type='+task.target))}if(options.prompt&&!window.external.msIsSiteMode()&&sessionStorage.getItem('hideIE9SitePinningBar')!='1'){var bar=lib.dom.div();var barHTML='<div style="z-index:1000;position:relative;border: 1px solid #E1E1E1; padding: 5px 9px 2px 9px; background: #fff url(http://buildmypinnedsite.com/PinImages/Bar/bar-background.png) repeat-x scroll 0 100%;"><table cellspacing="0" cellpadding="0" style="width: 100%; border: 0 none; border-collapse: collapse;"><tbody><tr><td><div style="background: transparent url('+options.shortcutIcon.replace(/\.ico$/,".png")+') no-repeat scroll 0 3px; background-size: 20px 20px; width: 260px; padding-left: 26px; min-height: 30px; font-weight: bold; font-size:14px;">Ajouter '+(options.barSiteName||options.siteName)+'  comme un site favoris</div></td><td><div style="display: inline-block;padding-right: 40px; position: relative;text-align: right;"><strong style="font-weight: bold; font-size: 18px;">Faites glisser cette icône dans votre barre des tâches <img src="http://buildmypinnedsite.com/PinImages/Bar/arrow-icon.png" /></strong><div style="color:#797c85; font-size: 12px;">ou, <a href="#" onclick="window.external.msAddSiteMode(); return false" style="color: #6CABBA; text-decoration: underline;">cliquez ici</a> pour ajouter ce site à votre menu démarrer </div><div style="position: absolute; right:-120px; top: -13px; width: 164px; height: 143px; background: transparent url(http://buildmypinnedsite.com/PinImages/Bar/drag-icon-placeholder.png) no-repeat scroll 0 0;"><img class="msPinSite" style="position: absolute; top:17px; left:16px;cursor: move; width: 32px; height: 32px;" src="'+options.shortcutIcon.replace(/\.ico$/,".png")+'" /></div></div></td><td><div style="position: relative; float: right; width: 80px; min-height: 30px; padding-left: 23px; padding-right: 30px; background: transparent url(http://buildmypinnedsite.com/PinImages/Bar/info-icon.png) no-repeat scroll 0 6px;"><a style="font-size: 12px; color: #6CABBA; text-decoration: underline;" href="http://www.beautyoftheweb.com/#/productguide/clean/seamless-with-windows-7" target="_blank">En savoir plus...</a><div onclick="document.getElementById(\'___ie9sitepinning__bar_container\').style.display=\'none\';window.sessionStorage.setItem(\'hideIE9SitePinningBar\', \'1\')" style="background: transparent url(http://buildmypinnedsite.com/PinImages/Bar/close-button.png) no-repeat scroll 0 0;position: absolute;top: 0; right: 0;display: block; width: 18px; height: 18px; cursor: pointer; float: right;"></div></div></td></tbody></table></div>';bar.setAttribute('style',"position: absolute; top: 0; left: 20px; width: 95%; margin:0; padding:0; border: 0 none; border-bottom:1px solid #707070; color: #1c1f26; background: transparent none no-repeat scroll 0 0; font-family: 'Segoe UI', Arial, tahoma, sans-serif; line-height: 18px; box-shadow: 0 1px 5px rgba(140,140,140,0.7);");bar.id='___ie9sitepinning__bar_container';bar.innerHTML=barHTML;document.getElementsByTagName('body')[0].appendChild(bar)}jumplist.poll=function(){lib.net.getJSONP(options.rssFeedURL,jumplist.parseRSSFeed)};window.setTimeout(jumplist.poll,30)})})(____prototype_ae_IE9JumpList);
