function renderSearchListResults(n,t,i){if(n.length)$.template("newsItemTemplate",t),$.tmpl("newsItemTemplate",n).appendTo(i);else{var r=$("<li>This search has no results.<\/li>");$(i).addClass("no-results").append(r)}}function markItemsAsSaved(){var n=getCheckboxIdsArray(newsListing.newsItemChecks+":checked"),t=$(newsListing.newsItemChecks+":checked");t.prop("checked",!1);$("#mynews-bar-selectAll").prop("checked",!1);$.each(n,function(n,t){var r=$("#chk-ln-"+t),i;r.closest("li").addClass("saved-article");i=$("#chk-ia-"+t);i.closest("li").addClass("saved-article")})}function retrySaveArticles(n){newsListing.saveAllNews(!0,n)}function getCheckboxIdsArray(n){var t=[];return $(n).each(function(){var n=$(this).attr("id");n&&(n=n.replace("chk-ln-",""),n=n.replace("chk-ia-",""),$.inArray(n,t)===-1&&t.push(n))}),t}function submitViewArticlesForm(n,t){if(t===!0?$("#hdnPrintMode").val("true"):$("#hdnPrintMode").val("false"),newsListing.getSelectedArticleIds().length==0){utility.showDialog("Alert","Please select one or more articles.",!0);return}if(newsListing.getSelectedArticleIds().length>n){utility.showDialog("Alert","Only up to "+n+" articles can be selected at once.",!0);return}document.getElementById("viewAllForm").submit()}function showResponsiveMenuForHopscotch(){$("#responsive-menu-bar").addClass("showing-sub-menu");$(".responsive-menu-icon").addClass("clicked");$("#main-menu").addClass("menu-visible");$("#main-menu").css({opacity:1,display:"block"})}function hideResponsiveMenuForHopscotch(){$("#responsive-menu-bar").removeClass("showing-sub-menu");$(".responsive-menu-icon").removeClass("clicked");$("#main-menu").removeClass("menu-visible");$("#main-menu").css({opacity:"",display:""})}var newsListing=newsListing||{},newsBar;newsListing.newsItemChecks=".news-list .item :checkbox";newsListing.chSelectAll="#mynews-bar-selectAll";newsListing.loadSavedSearch=function(n,t,i,r,u,f){$(t).hasClass("loading")||$(t).parent().hasClass("expanded")||$(t).parent().hasClass("loaded")||($(t).addClass("loading"),$(t).append("<img src='/news-assets/content/images/ajax-loader.gif' class='load-more-ajax' />"),$.ajax({type:"POST",url:"/subscriber/news/search/loadsavedsearch/",data:{name:n,count:i},success:function(n){renderSearchListResults(n,u,r);n.length<i&&$(t).parent().find("a.load-more").remove();$(t).parent().removeClass("collapsed");$(t).parent().addClass("expanded");$(t).parent().addClass("loaded");$(t).find("img").remove();$(t).removeClass("loading");typeof f=="function"&&f()},dataType:"json"}))};newsListing.loadMoreSavedSearch=function(n,t,i,r,u,f,e){var o;$(t).hasClass("loading")||($(t).addClass("loading"),o=$(r).find("li").map(function(){return this.id.substring(10)}),utility.animate(t),$.ajax({type:"POST",url:"/subscriber/news/search/loadsavedsearch/",data:{start:f,name:n,count:i*2},success:function(n){for(var f=0;f<o.length;f++)n=$.grep(n,function(n){return n.Article.Id!=o[f]});$.template("newsItemTemplate",u);$.tmpl("newsItemTemplate",n.slice(0,i)).appendTo(r);n.length<i&&$(t).parent().find("a.load-more").remove();utility.diAnimate(t);$(t).removeClass("loading");typeof e=="function"&&e()},dataType:"json"}))};newsListing.loadSearchItems=function(n,t,i,r,u,f,e,o,s){$.ajax({type:"POST",url:n,dataType:"json",data:t,success:function(n){if(n.success===!1){s(n.error);return}$.template("newsItemTemplate",e);$.tmpl("newsItemTemplate",n.articles).appendTo(r);n.articles.length<n.totalResults?$(i).parent().find("a.load-more").css("display","block"):$(i).parent().find("a.load-more").hide();$.template("searchSummaryTemplate",o);t.totalResults=n.totalResults;t.hasMoreResults=n.articles.length<n.totalResults;$(u).html($.tmpl("searchSummaryTemplate",t));$(r).show();$(u).show();n.totalResults&&$(f).show();s()},error:function(n){console.log(n)}})};newsListing.loadManyArticles=function(n,t,i,r){$(t).each(function(){var t=$(this).attr("articleId"),u;if(!t){i();return}u=$(this);newsListing.loadArticle(n,t,u,i,r)})};newsListing.loadLatestSpecialPublication=function(n,t){$.ajax({type:"GET",url:n,dataType:"json",contentType:"application/json; charset=utf-8",success:function(n){if($(t,".loading-spinner").remove(),n.Error){$(t).replaceWith(n.Error);return}$.template("latestSpecialPublicationTemplate",newsListing.loadLatestSpecialPublicationTemplate());$(t).replaceWith($.tmpl("latestSpecialPublicationTemplate",n))}})};newsListing.loadMostReadArticles=function(n,t,i,r,u){$.ajax({type:"GET",url:n,dataType:"json",contentType:"application/json; charset=utf-8",success:function(n){if(n.error){u&&u();return}$.template("mostReadArticleTemplate",newsListing.mostReadArticleTemplate());$.tmpl("mostReadArticleTemplate",n.articles,{isLoggedIn:i}).appendTo(t);r&&r()}})};newsListing.loadArticle=function(n,t,i,r,u){$.ajax({type:"GET",url:n+"?articleId="+t,dataType:"json",contentType:"application/json; charset=utf-8",success:function(n){if(n.error){i.remove();r()===0&&u==="True"&&newsListing.appendPrintCss();return}$(i).attr("loaded","true");$.template("articleTemplate",newsListing.articleViewTemplate());$.tmpl("articleTemplate",n).appendTo(i);r()===0&&u==="True"&&newsListing.appendPrintCss()}})};newsListing.appendPrintCss=function(){window.print()};newsListing.loadMoreSearchItems=function(n,t,i,r,u,f){var o=f==="icb"?"/subscriber/icb/loadmore/":"/subscriber/news/search/loadmore/",e;$(t).hasClass("loading")||($(t).addClass("loading"),e=$(i).find("li").map(function(){return this.id.substring(10)}),utility.animate(t),$.ajax({type:"POST",url:o,dataType:"json",contentType:"application/json; charset=utf-8",data:JSON.stringify(n),success:function(f){f.articles=newsListing.filterExistingArticles(f.articles,e);$.template("newsItemTemplate",r);$.tmpl("newsItemTemplate",f.articles.slice(0,n.PageSize)).appendTo(i);utility.diAnimate(t);$(t).removeClass("loading");f.articles.length+e.length>=f.totalResults&&$(t).parent().find("a.load-more").hide();u()},error:function(n){console.log(n)}}))};newsListing.filterExistingArticles=function(n,t){for(var i=0;i<t.length;i++)n=$.grep(n,function(n){return n.Article.Id!=t[i]});return n};newsListing.loadMoreItems=function(n,t,i,r,u,f){if(i==undefined){f&&f([]);return}if(!$(n).hasClass("loading")){$(n).addClass("loading");utility.animate(n);var e="/subscriber/news/home/loadmore/?time="+i+"&type="+t+"&count="+r*2,o=$(u).find("li").map(function(){return this.id.substring(10)});$.getJSON(e,function(t){t=newsListing.filterExistingArticles(t,o);utility.diAnimate(n);$(n).removeClass("loading");f&&f(t);newsListing.setIndeterminate()})}};newsListing.loadNewItems=function(n,t,i,r){if(t==undefined){r&&r([]);return}var u="/subscriber/news/home/LatestArticles/?time="+t+"&type="+n,f=$(i).find("li").map(function(){return this.id.substring(10)});$.getJSON(u,function(n){n=newsListing.filterExistingArticles(n,f);r&&r(n);newsListing.setIndeterminate()})};newsListing.loadLatestTopStory=function(n,t){var i=$(n).find(".epsilon a").attr("href");$.getJSON("/subscriber/news/home/LatestTopStory/",function(n){n=n.Url===i?null:n;t&&t(n)})};newsListing.loadLatestSpecialPublicationTemplate=function(){return"<a  id='latest-special-publication' target='${TargetValue}' href='${Url}'><div id='special-publication' class='column medium-6'><div class='special-publication-header'>Special Publication<\/div><div class='cover-image' style='background-image:url(\"${ThumbnailUrl}\"); filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"${ThumbnailUrl}\", sizingMethod=\"scale\")'><\/div><div class='item'><span class='date'>${ReleaseDate}<\/span><\/div><\/div><\/a>"};newsListing.mostReadArticleTemplate=function(){return' <div class="item row"><div class=\' column large-9 no-padded\'><div class="${IcbItemCssClass}"> <span class="icb-slug">${IcbSlug}<\/span><\/div><a href="${Url}" articleId="${Article.Id}"><div class="headline">${HeadlineWithoutSlug}<\/div><div class=\'text\'>${SearchSummary}<\/div><\/div><\/a><div class=" column large-3 no-padded"><span class=\'date\'>${Date}<\/span><\/div>{{if !IsFree && !isLoggedIn}}<a class=\'lockout\' href=\'${Url}\'>&nbsp;<\/a>{{/if}}<\/div>'};newsListing.articleViewTemplate=function(){return"<div class='article-view article-slug ${article.LatestNewsItemCssClass}'><h3 class='heading color-coded'>${article.Headline}<\/h3><div class='details notranslate'><img src='/news-assets/Content/images/logo.png' alt='ICIS News' />${article.Details}<\/div><p>{{html article.Article.Body}}<\/p><\/div><hr />"};newsListing.searchSummaryTemplate=function(){return"<li><h3 class='zeta'>Your search:<\/h3><\/li><li><label>Total results:<\/label><span id='totalResults' class='comment notranslate'>{{if hasMoreResults}}about ${newsListing.getApproxSearchResults(totalResults)}{{else}}${totalResults}{{/if}}<\/span><\/li>{{if AllWords!=''}}<li><label>With all the words:<\/label><span class='comment notranslate filter-value truncate' title='${AllWords}'>${AllWords}<\/span><\/li>{{/if}}{{if ExactPhrase!=''}}<li><label>With exact phrase:<\/label><span class='comment notranslate filter-value truncate' title='${ExactPhrase}'>${ExactPhrase}<\/span><\/li>{{/if}}{{if AtLeastOne!=''}}<li><label>With at least one of the words:<\/label><span class='comment notranslate filter-value truncate' title='${AtLeastOne}'>${AtLeastOne}<\/span><\/li>{{/if}}{{if Excluding!=''}}<li><label>Without the words:<\/label><span class='comment notranslate filter-value truncate' title='${Excluding}'>${Excluding}<\/span><\/li>{{/if}}{{if BooleanSearch!=''}}<li><label>Boolean Search:<\/label><span class='comment notranslate filter-value truncate' title='${BooleanSearch}'>${BooleanSearch}<\/span><\/li>{{/if}}{{if StartDate!=''}}<li><label>From:<\/label><span class='comment notranslate filter-value'>${StartDate}<\/span><\/li>{{/if}}{{if EndDate!=''}}<li><label>To:<\/label><span class='comment notranslate filter-value'>${EndDate}<\/span><\/li>{{/if}}"};newsListing.icbSearchSummaryTemplate=function(){return"<li><h3 class='zeta'>Your search:<\/h3><\/li><li><label>Total results:<\/label><span id='totalResults' class='comment notranslate'>{{if hasMoreResults}}about ${newsListing.getApproxSearchResults(totalResults)}{{else}}${totalResults}{{/if}}<\/span><\/li>{{if AllWords!=''}}<li><label>With all the words:<\/label><span class='comment notranslate filter-value truncate' title='${AllWords}'>${AllWords}<\/span><\/li>{{/if}}{{if ExactPhrase!=''}}<li><label>With exact phrase:<\/label><span class='comment notranslate filter-value truncate' title='${ExactPhrase}'>${ExactPhrase}<\/span><\/li>{{/if}}{{if AtLeastOne!=''}}<li><label>With at least one of the words:<\/label><span class='comment notranslate filter-value truncate' title='${AtLeastOne}'>${AtLeastOne}<\/span><\/li>{{/if}}{{if Excluding!=''}}<li><label>Without the words:<\/label><span class='comment notranslate filter-value truncate' title='${Excluding}'>${Excluding}<\/span><\/li>{{/if}}{{if StartDate!=''}}<li><label>From:<\/label><span class='comment notranslate filter-value'>${StartDate}<\/span><\/li>{{/if}}{{if EndDate!=''}}<li><label>To:<\/label><span class='comment notranslate filter-value'>${EndDate}<\/span><\/li>{{/if}}"};newsListing.insightAnalysisItemTemplate=function(){return"<li id='article-2-${Article.Id}' class='${SavedArticleCssClass} article-slug ${InsightAnalysisItemCssClass}'>\t<div class='row item'>\t\t<div class='columns large-10 no-padded'>\t\t\t<div class='check-wrapper color-coded'>\t\t\t\t<input type='checkbox' id='chk-ia-${Article.Id}' />\t\t\t<\/div>\t\t\t<div class='slug-wrapper'>\t\t\t\t<span class='slug notranslate'>${InsightAnalysisSlug}<\/span>\t\t\t<\/div>\t\t\t<div class='headline-wrapper'>\t\t\t\t<a href='${Url}' class='headline truncate' title='${Headline}'>\t\t\t\t\t${Headline}\t\t\t\t<\/a>\t\t\t\t<div class='brief'>\t\t\t\t\t${ShortBody}\t\t\t\t<\/div>\t\t\t\t<div class='details notranslate'>\t\t\t\t\t${Details}\t\t\t\t<\/div>\t\t\t<\/div>\t\t<\/div>\t\t<div class='columns large-2 hide-for-medium-down img-wrapper'>\t\t\t<div class='img img-${InsightAnalysisItemCssClass}'>\t\t\t<\/div>\t\t<\/div>\t<\/div>\t<input type='hidden' value='${Date}' class='timeStamp' /><\/li>"};newsListing.latestNewsItemTemplate=function(n){var t="${TimeSpan}";return n==="TimeStamp"&&(t="${Date}"),"<li id='article-1-${Article.Id}' class='${SavedArticleCssClass} article-slug ${LatestNewsItemCssClass}'>   <div class='row item'>\t  <div class='check-wrapper color-coded'>\t\t\t<input type='checkbox' id='chk-ln-${Article.Id}' />\t  <\/div>\t  <div class='headline-wrapper'>\t\t\t<a href='${Url}' class='headline truncate' title='${Headline}' slug='${LatestNewsSlug}'>\t\t\t\t<span class='slug notranslate'>${LatestNewsSlug} &nbsp;<\/span> ${Headline}\t\t\t<\/a>\t\t\t<div class='slug-and-date'>\t\t\t   <div class='slug notranslate'>${LatestNewsSlug}<\/div>\t\t\t   <div class='date notranslate' title='${Tooltip}'>"+t+"<\/div>\t\t\t<\/div>\t  <\/div>\t  <div class='timespan-wrapper'>\t\t <span class='date notranslate' title='${Tooltip}'>"+t+"<\/span>\t  <\/div>\t<\/div>   <input type='hidden' value='${Date}' class='timeStamp' /><\/li>"};newsListing.topStoryItemTemplate=function(){return"<div class='topstory-wrapper ${InsightAnalysisItemCssClass}'>            <h1 class='epsilon'>              <a href='${Url}' title='${Headline}' >                ${Headline}              <\/a>            <\/h1>            <div class='columns medium-7 no-padded '>              <p class='brief'>${Article.Body}<\/p>              <div id='author-wrapper' class='details'>                <img alt='author' src='${AuthorImageUrl}'>                <div id='details'>                  <div>                    By <a class='notranslate' href='mailto:${AuthorEmailAddress}' >${Author}<\/a>                  <\/div>                  <div class='notranslate'>${Date}<\/div>                  <div>Source: <span class='notranslate'>${Source}<\/span><\/div>                <\/div>              <\/div>            <\/div>          <div class='columns medium-5 no-padded text-right'>            <img src='${ThumbnailUrl}' alt='${ThumbnailAltText}'>          <\/div>        <\/div>"};newsListing.searchResultItemTemplate=function(n,t){var i="${TimeSpan}";return n==="TimeStamp"&&(i="${Date}"),"<li id='article-1-${Article.Id}' class='${SavedArticleCssClass} article-slug ${LatestNewsItemCssClass}'>   <div class='row item'>\t  <div class='check-wrapper'>\t\t\t<input type='checkbox' id='chk-ln-${Article.Id}' />\t  <\/div>\t  <div class='headline-wrapper color-coded'>\t\t\t<a href='${Url}' class='headline truncate' title='${Headline}' slug='${LatestNewsSlug}'>\t\t\t\t<span class='slug notranslate'>${LatestNewsSlug} &nbsp;<\/span> ${Headline}\t\t\t<\/a>"+(t?"{{if SearchSummary !='' }}<div class='search-summary-wrapper'>{{html SearchSummary}}<\/div>{{/if}}":"")+"<div class='slug-and-date'>\t\t\t   <div class='slug notranslate'>${LatestNewsSlug}<\/div>\t\t\t   <div class='date notranslate' title='${Tooltip}'>"+i+"<\/div>\t\t\t<\/div>\t  <\/div>\t  <div class='timespan-wrapper'>\t\t <span class='date notranslate' title='${Tooltip}'>"+i+"<\/span>\t  <\/div>\t<\/div>   <input type='hidden' value='${Date}' class='timeStamp' /><\/li>"};newsListing.summariseHeadlines=function(n){n=n||{containerSelector:".latest-news .small-12",headlineSelector:".latest-news .item a.headline"};var i=$(n.headlineSelector),t=.17;window.innerWidth<=640&&(t=.18);window.title=t;i.each(function(){var r=$(this).find(".slug").first(),o=r.css("display")==="none"?0:r.width(),s=$(n.containerSelector).width()-o,u=$(this).attr("title"),i=$(this).attr("slug"),f=i!=null?i.length:0,e=parseInt(s*t)-f,h=f>0?"<span class='slug'>"+i+"<\/span> "+utility.ellipsis(u,e):utility.ellipsis(u,e);$(this).html(h)})};newsListing.setIndeterminate=function(){var t=$(newsListing.newsItemChecks+":checked").length,n=$(newsListing.newsItemChecks+":not(:checked)").length;$(newsListing.chSelectAll).prop("indeterminate",!1);t>0&&n!==0?$(newsListing.chSelectAll).prop("indeterminate",!0):$("#mynews-bar-selectAll").prop("checked",n===0)};newsListing.checkAllItems=function(){$(newsListing.newsItemChecks).prop("checked",!0);newsListing.updateSelectedIdsHiddenVal()};newsListing.unCheckAllItems=function(){$(newsListing.chSelectAll).prop("checked",!1);$(newsListing.chSelectAll).prop("indeterminate",!1);$(newsListing.newsItemChecks).prop("checked",!1);newsListing.updateSelectedIdsHiddenVal()};newsListing.saveAllNews=function(n,t){var i=newsListing.getSelectedArticleIds(),r=t==="icb"?"/subscriber/icb/savearticles/":"/subscriber/news/account/savearticles/",u={selectedArticles:i,acknowledgeMaxAllowedReached:n};if(!i.length){utility.showDialog("Alert","Please select one or more articles to save.",!0,!1,null);return}$.ajax({type:"POST",url:r,data:u,success:function(i){if(i.Success)n?markItemsAsSaved():utility.showDialog("Success",i.Message,!0,!1,markItemsAsSaved);else if(i.MaxAllowedSavedArticlesExceeded)utility.showDialog("Alert","You have reached the maximum number of articles you can save. If you choose to continue, newly selected articles will replace any previously saved articles.",!0,!0,function(){retrySaveArticles(t)},"I understand this. Don't show this to me again");else utility.showDialog("Alert",i.Message,!0,!1,null)},error:function(){utility.showDialog("Error","No article have been saved.",!0,!1,null)},dataType:"json",traditional:!0})};newsListing.saveArticle=function(n,t){var i=t==="icb"?"/subscriber/icb/savearticles/":"/subscriber/news/account/savearticles/",r={selectedArticles:[n],acknowledgeMaxAllowedReached:!1,channel:t};$.ajax({type:"POST",url:i,data:r,success:function(n){if(n.Success)utility.showDialog("Success",n.Message,!0,!1);else if(n.MaxAllowedSavedArticlesExceeded)utility.showDialog("Alert","You have reached the maximum number of articles you can save. If you choose to continue, newly selected articles will replace any previously saved articles.",!0,!0,function(){retrySaveArticles(t)},"I understand this. Don't show this to me again");else utility.showDialog("Alert",n.Message,!0,!1,null)},error:function(){utility.showDialog("Error","No article have been saved.",!0,!1,null)},dataType:"json",traditional:!0})};newsListing.removeSavedArticles=function(n,t){var i=newsListing.getSelectedArticleIds(),r=n==="icb"?"/subscriber/icb/removearticles/":"/subscriber/news/account/removearticles/",u={selectedArticles:i};if(!i.length){utility.showDialog("Alert","Please select one or more articles.",!0,!1,null);return}utility.showDialog("Alert","You are about to remove "+i.length+" article"+(i.length>1?"s":"")+" from your saved articles.\n Are you sure?",!0,!0,function(){$.ajax({type:"POST",url:r,data:u,success:function(){t()},error:function(){utility.showDialog("Error","No article have been removed.",!0)},dataType:"json",traditional:!0})})};newsListing.updateSelectedIdsHiddenVal=function(){$("#hdnSelectedArticleIds").val(getCheckboxIdsArray(newsListing.newsItemChecks+":checked"))};newsListing.getSelectedArticleIds=function(){var n=$("#hdnSelectedArticleIds").val();return n?n.split(","):[]};newsListing.getApproxSearchResults=function(n){for(var r=n.toString().length,t=1,i=0;i<r-2;i++)t*=10;return Math.round(n/t)*t};newsBar=newsBar||{};newsBar.setUpNewsBarActions=function(n){$("#mynews-bar-selectAll").change(function(){this.checked?newsListing.checkAllItems():newsListing.unCheckAllItems()});$("#mynews-bar-selectAll").click(function(){var n=$(newsListing.newsItemChecks+":checked").length,t=$(newsListing.newsItemChecks+":not(:checked)").length;utility.browserIsIe()&&(this.checked&&n>0&&$(this).prop("checked",t===0),$(this).change())});$("#mynews-bar .action a.clear-all").click(function(){newsListing.unCheckAllItems()});$(document).on("change",".item :checkbox",function(){newsListing.setIndeterminate();newsListing.updateSelectedIdsHiddenVal()});$("#mynews-bar .action a.save-all").click(function(){$(this).attr("channel")==="icb"?newsListing.saveAllNews(!1,"icb"):newsListing.saveAllNews(!1)});$("#mynews-bar .action a.view-all").click(function(){submitViewArticlesForm(n,!1)});$("#mynews-bar .action a.print-all").click(function(){submitViewArticlesForm(n,!0)})};window.icbTours=window.icbTours||{};icbTours.homeTour={id:"icbHomeTour",i18n:{doneBtn:"Done"},steps:[{title:"Welcome",content:"Welcome to the new ICIS Chemical Business Magazine channel. Take the tour.",target:".show-for-medium-up #Magazine",placement:"bottom",fixedElement:!0,yOffset:-4,xOffset:-100,arrowOffset:120},{title:"Latest from ICB",content:"Keep up to date with the most important stories throughout the week.",target:"#latest-stories",placement:"top"},{title:"Latest issue",content:"Click here to view the latest issue.",target:"#latest-issue",placement:"bottom",xOffset:-10,yOffset:-300,arrowOffset:130},{title:"Search past issues",content:"Click here to access past issues.",target:"#all-issues-menu-item",placement:"bottom"},{title:"Search",content:"Search articles across our extensive archive.",target:"#search-menu-item",placement:"bottom",xOffset:-260,arrowOffset:260},{title:"Save articles",content:"Access saved articles here to read at your convenience.",target:"#saved-articles-menu-item",placement:"bottom",xOffset:-200,arrowOffset:230},{title:"Chemical Profiles",content:"Find a profile in a few clicks with our Chemical A-Z.",target:"#chemical-profiles-menu-item",placement:"bottom",xOffset:-150,arrowOffset:180}],multipage:!1,onEnd:function(){$.cookie(icbTours.homeTour.id,"true",{expires:1e4,path:"/subscriber/"})},onClose:function(){$.cookie(icbTours.homeTour.id,"true",{expires:1e4,path:"/subscriber/"})}};icbTours.responsiveHomeTour={id:"icbResponsiveHomeTour",i18n:{doneBtn:"Done"},steps:[{title:"Welcome",content:"Welcome to the new ICIS Chemical Business Magazine channel. Take the tour.",target:"#responsive-menu-bar",placement:"bottom",fixedElement:!0,yOffset:-4,arrowOffset:120,width:280},{title:"Latest from ICB",content:"Keep up to date with the most important stories throughout the week.",target:"#latest-stories",placement:"top",xOffset:-9,width:280},{title:"Latest issue",content:"Click here to view the latest issue.",target:"#latest-issue",placement:"top",xOffset:-9,arrowOffset:130,width:280,onNext:function(){showResponsiveMenuForHopscotch()}},{title:"Search past issues",content:"Click here to access past issues.",target:"#all-issues-menu-item",placement:"bottom",yOffset:-10,width:280,onNext:function(){hideResponsiveMenuForHopscotch()}},{title:"Search",content:"Search articles across our extensive archive.",target:".responsive-search-icon-wrapper",placement:"bottom",xOffset:-220,yOffset:-10,arrowOffset:220,width:280,onNext:function(){showResponsiveMenuForHopscotch()}},{title:"Save articles",content:"Access saved articles here to read at your convenience.",target:"#saved-articles-menu-item",placement:"bottom",yOffset:-10,width:280,onNext:function(){showResponsiveMenuForHopscotch()}},{title:"Chemical Profiles",content:"Find a profile in a few clicks with our Chemical A-Z.",target:"#chemical-profiles-menu-item",placement:"bottom",yOffset:-10,width:280}],multipage:!1,onStart:function(){var n=hopscotch.getCurrStepNum();(n===3||n===5||n===6)&&showResponsiveMenuForHopscotch()},onEnd:function(){$.cookie(icbTours.homeTour.id,"true",{expires:1e4,path:"/subscriber/"});hideResponsiveMenuForHopscotch()},onClose:function(){$.cookie(icbTours.homeTour.id,"true",{expires:1e4,path:"/subscriber/"})}}