$(".dropdown.mobile-view.keep-open").on({"shown.bs.dropdown":function(){this.closable=!1},click:function(n){var t=$(n.target);this.closable=t.hasClass("menu")?!0:!1},"hide.bs.dropdown":function(){return this.closable}});$(document).ready(function(){function t(n){var t=$(".social-media .twitter"),i=n[0],r=i.image,u=i.time,f=i.tweet;r===undefined&&(r="/Content/Images/twitter-hand.jpg");t.find(".photo").attr("style","background-image: url("+r+")");t.find(".timestamp").html(u);t.find(".message").html(f)}if($(".social-media").length!==0){window.fbAsyncInit=function(){FB.init({appId:"1743077345929558",xfbml:!0,version:"v3.1"});FB.api("/africom/posts?limit=1/","GET",{access_token:"1743077345929558|9e849c1be296043ef1b7821fe455035a",fields:"full_picture,created_time,story,application,description,message,type,name,source,object_id"},function(n){var t,i,r;n.error||(t=n.data[0],console.log(t),$(".social-media .facebook .message").html(t.message),i=new Date(t.created_time.replace("+",".")),r=i.toString("dd-MM-yy"),$(".social-media .facebook .timestamp").html(r),t.type==="photo"||t.type==="video"?($(".social-media .facebook .photo").attr("data-image-src",t.full_picture),$(".social-media .facebook img").attr("src",t.full_picture)):t.type==="status"?t.full_picture!==null&&($(".social-media .facebook .photo").attr("data-image-src",t.full_picture),$(".social-media .facebook img").attr("src",t.full_picture),$(".social-media .facebook .description").text(t.description),$(".social-media .facebook .description").attr("href",t.link)):t.type==="link"&&($(".social-media .facebook .name").text(t.name),t.full_picture!==null&&($(".social-media .facebook .photo").attr("data-image-src",t.full_picture),$(".social-media .facebook img").attr("src",t.full_picture),$(".social-media .facebook .description").text(t.description),$(".social-media .facebook .description").attr("href",t.link))))})},function(n,t,i){var r,u=n.getElementsByTagName(t)[0];n.getElementById(i)||(r=n.createElement(t),r.id=i,r.src="https://connect.facebook.net/en_US/sdk.js",u.parentNode.insertBefore(r,u))}(document,"script","facebook-jssdk"),function(n,t){typeof define=="function"&&define.amd?define([],t):typeof exports=="object"?module.exports=t():t()}(this,function(){function rt(n){if(p===null){for(var r=n.length,t=0,u=document.getElementById(w),i="<ul>";t<r;)i+="<li>"+n[t]+"<\/li>",t++;i+="<\/ul>";u.innerHTML=i}else p(n)}function tt(n){return n.replace(/<b[^>]*>(.*?)<\/b>/gi,function(n,t){return t}).replace(/class="(?!(tco-hidden|tco-display|tco-ellipsis))+.*?"|data-query-source=".*?"|dir=".*?"|rel=".*?"/gi,"")}function it(n){for(var i=n.getElementsByTagName("a"),t=i.length-1;t>=0;t--)i[t].setAttribute("target","_blank"),i[t].setAttribute("rel","noopener")}function r(n,t){for(var u=[],f=new RegExp("(^| )"+t+"( |$)"),r=n.getElementsByTagName("*"),i=0,e=r.length;i<e;i++)f.test(r[i].className)&&u.push(r[i]);return u}function o(n){var t,i;if(n!==undefined&&n.innerHTML.indexOf("data-image")>=0){if(t=n.innerHTML.match(/data-image=\"([A-z0-9]+:\/\/[A-z0-9]+\.[A-z0-9]+\.[A-z0-9]+\/[A-z0-9]+\/[A-z0-9\-]+)\"/ig),t!==null)for(i=0;i<t.length;i++)t[i]=t[i].match(/data-image=\"([A-z0-9]+:\/\/[A-z0-9]+\.[A-z0-9]+\.[A-z0-9]+\/[A-z0-9]+\/[A-z0-9\-]+)\"/i)[1],t[i]=decodeURIComponent(t[i])+".jpg";else t=n[2];return t}}var w="",n=20,b=!0,u=[],h=!1,c=!0,i=!0,a=null,v=!0,y=!0,p=null,k=!0,f=!1,d=!1,e=!0,l="en",g=!0,nt=!1,t=null,s={fetch:function(r){if(r.maxTweets===undefined&&(r.maxTweets=20),r.enableLinks===undefined&&(r.enableLinks=!0),r.showUser===undefined&&(r.showUser=!0),r.showTime===undefined&&(r.showTime=!0),r.dateFunction===undefined&&(r.dateFunction="default"),r.showRetweet===undefined&&(r.showRetweet=!0),r.customCallback===undefined&&(r.customCallback=null),r.showInteraction===undefined&&(r.showInteraction=!0),r.showImages===undefined&&(r.showImages=!1),r.useEmoji===undefined&&(r.useEmoji=!1),r.linksInNewWindow===undefined&&(r.linksInNewWindow=!0),r.showPermalinks===undefined&&(r.showPermalinks=!0),r.dataOnly===undefined&&(r.dataOnly=!1),h)u.push(r);else{h=!0;w=r.domId;n=r.maxTweets;b=r.enableLinks;i=r.showUser;c=r.showTime;y=r.showRetweet;a=r.dateFunction;p=r.customCallback;k=r.showInteraction;f=r.showImages;d=r.useEmoji;e=r.linksInNewWindow;g=r.showPermalinks;nt=r.dataOnly;var o=document.getElementsByTagName("head")[0];t!==null&&o.removeChild(t);t=document.createElement("script");t.type="text/javascript";t.src=r.list!==undefined?"https://syndication.twitter.com/timeline/list?callback=__twttrf.callback&dnt=false&list_slug="+r.list.listSlug+"&screen_name="+r.list.screenName+"&suppress_response_codes=true&lang="+(r.lang||l)+"&rnd="+Math.random():r.profile!==undefined?"https://syndication.twitter.com/timeline/profile?callback=__twttrf.callback&dnt=false&screen_name="+r.profile.screenName+"&suppress_response_codes=true&lang="+(r.lang||l)+"&rnd="+Math.random():r.likes!==undefined?"https://syndication.twitter.com/timeline/likes?callback=__twttrf.callback&dnt=false&screen_name="+r.likes.screenName+"&suppress_response_codes=true&lang="+(r.lang||l)+"&rnd="+Math.random():"https://cdn.syndication.twimg.com/widgets/timelines/"+r.id+"?&lang="+(r.lang||l)+"&callback=__twttrf.callback&suppress_response_codes=true&rnd="+Math.random();o.appendChild(t)}},callback:function(t){function kt(n){var t=n.getElementsByTagName("img")[0],r,i;return t?t.src=t.getAttribute("data-src-2x"):(r=n.getElementsByTagName("a")[0].getAttribute("href").split("twitter.com/")[1],i=document.createElement("img"),i.setAttribute("src","https://twitter.com/"+r+"/profile_image?size=bigger"),n.prepend(i)),n}var at,ut,pt,dt,ot,bt,wt;if(t===undefined||t.body===undefined){h=!1;u.length>0&&(s.fetch(u[0]),u.splice(0,1));return}d||(t.body=t.body.replace(/(<img[^c]*class="Emoji[^>]*>)|(<img[^c]*class="u-block[^>]*>)/g,""));f||(t.body=t.body.replace(/(<img[^c]*class="NaturalImage-image[^>]*>|(<img[^c]*class="CroppedImage-image[^>]*>))/g,""));i||(t.body=t.body.replace(/(<img[^c]*class="Avatar"[^>]*>)/g,""));at=document.createElement("div");at.innerHTML=t.body;typeof at.getElementsByClassName=="undefined"&&(v=!1);var et=[],w=[],ft=[],st=[],ht=[],lt=[],ct=[],p=0;if(v)for(ut=at.getElementsByClassName("timeline-Tweet");p<ut.length;)ut[p].getElementsByClassName("timeline-Tweet-retweetCredit").length>0?ht.push(!0):ht.push(!1),(!ht[p]||ht[p]&&y)&&(et.push(ut[p].getElementsByClassName("timeline-Tweet-text")[0]),lt.push(ut[p].getAttribute("data-tweet-id")),i&&w.push(kt(ut[p].getElementsByClassName("timeline-Tweet-author")[0])),ft.push(ut[p].getElementsByClassName("dt-updated")[0]),ct.push(ut[p].getElementsByClassName("timeline-Tweet-timestamp")[0]),ut[p].getElementsByClassName("timeline-Tweet-media")[0]!==undefined?st.push(ut[p].getElementsByClassName("timeline-Tweet-media")[0]):st.push(undefined)),p++;else for(ut=r(at,"timeline-Tweet");p<ut.length;)r(ut[p],"timeline-Tweet-retweetCredit").length>0?ht.push(!0):ht.push(!1),(!ht[p]||ht[p]&&y)&&(et.push(r(ut[p],"timeline-Tweet-text")[0]),lt.push(ut[p].getAttribute("data-tweet-id")),i&&w.push(kt(r(ut[p],"timeline-Tweet-author")[0])),ft.push(r(ut[p],"dt-updated")[0]),ct.push(r(ut[p],"timeline-Tweet-timestamp")[0]),r(ut[p],"timeline-Tweet-media")[0]!==undefined?st.push(r(ut[p],"timeline-Tweet-media")[0]):st.push(undefined)),p++;et.length>n&&(et.splice(n,et.length-n),w.splice(n,w.length-n),ft.splice(n,ft.length-n),ht.splice(n,ht.length-n),st.splice(n,st.length-n),ct.splice(n,ct.length-n));var yt=[],p=et.length,l=0;if(nt)while(l<p)yt.push({tweet:et[l].innerHTML,author:w[l]?w[l].innerHTML:"Unknown Author",author_data:{profile_url:w[l]?w[l].querySelector('[data-scribe="element:user_link"]').href:null,profile_image:w[l]?"https://twitter.com/"+w[l].querySelector('[data-scribe="element:screen_name"]').title.split("@")[1]+"/profile_image?size=bigger":null,profile_image_2x:w[l]?"https://twitter.com/"+w[l].querySelector('[data-scribe="element:screen_name"]').title.split("@")[1]+"/profile_image?size=original":null,screen_name:w[l]?w[l].querySelector('[data-scribe="element:screen_name"]').title:null,name:w[l]?w[l].querySelector('[data-scribe="element:name"]').title:null},time:ft[l].textContent,timestamp:ft[l].getAttribute("datetime").replace("+0000","Z").replace(/([\+\-])(\d\d)(\d\d)/,"$1$2:$3"),image:o(st[l])?o(st[l])[0]:undefined,images:o(st[l]),rt:ht[l],tid:lt[l],permalinkURL:ct[l]===undefined?"":ct[l].href}),l++;else while(l<p){if(typeof a!="string"){var gt=ft[l].getAttribute("datetime"),ni=new Date(ft[l].getAttribute("datetime").replace(/-/g,"/").replace("T"," ").split("+")[0]),vt=a(ni,gt);ft[l].setAttribute("aria-label",vt);et[l].textContent?v?ft[l].textContent=vt:(pt=document.createElement("p"),dt=document.createTextNode(vt),pt.appendChild(dt),pt.setAttribute("aria-label",vt),ft[l]=pt):ft[l].textContent=vt}if(ot="",b?(e&&(it(et[l]),i&&it(w[l])),i&&(ot+='<div class="user">'+tt(w[l].innerHTML)+"<\/div>"),ot+='<p class="tweet">'+tt(et[l].innerHTML)+"<\/p>",c&&(ot+=g?'<p class="timePosted"><a href="'+ct[l]+'">'+ft[l].getAttribute("aria-label")+"<\/a><\/p>":'<p class="timePosted">'+ft[l].getAttribute("aria-label")+"<\/p>")):et[l].textContent?(i&&(ot+='<p class="user">'+w[l].textContent+"<\/p>"),ot+='<p class="tweet">'+et[l].textContent+"<\/p>",c&&(ot+='<p class="timePosted">'+ft[l].textContent+"<\/p>")):(i&&(ot+='<p class="user">'+w[l].textContent+"<\/p>"),ot+='<p class="tweet">'+et[l].textContent+"<\/p>",c&&(ot+='<p class="timePosted">'+ft[l].textContent+"<\/p>")),k&&(ot+='<p class="interact"><a href="https://twitter.com/intent/tweet?in_reply_to='+lt[l]+'" class="twitter_reply_icon"'+(e?' target="_blank" rel="noopener">':">")+'Reply<\/a><a href="https://twitter.com/intent/retweet?tweet_id='+lt[l]+'" class="twitter_retweet_icon"'+(e?' target="_blank" rel="noopener">':">")+'Retweet<\/a><a href="https://twitter.com/intent/favorite?tweet_id='+lt[l]+'" class="twitter_fav_icon"'+(e?' target="_blank" rel="noopener">':">")+"Favorite<\/a><\/p>"),f&&st[l]!==undefined&&o(st[l])!==undefined)for(bt=o(st[l]),wt=0;wt<bt.length;wt++)ot+='<div class="media"><img src="'+bt[wt]+'" alt="Image from tweet" /><\/div>';f?yt.push(ot):!f&&et[l].textContent.length&&yt.push(ot);l++}rt(yt);h=!1;u.length>0&&(s.fetch(u[0]),u.splice(0,1))}};return window.__twttrf=s,window.twitterFetcher=s,s}),function(n){n.forEach(function(n){n.hasOwnProperty("prepend")||Object.defineProperty(n,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(){var t=Array.prototype.slice.call(arguments),n=document.createDocumentFragment();t.forEach(function(t){var i=t instanceof Node;n.appendChild(i?t:document.createTextNode(String(t)))});this.insertBefore(n,this.firstChild)}})})}([Element.prototype,Document.prototype,DocumentFragment.prototype]);var n={profile:{screenName:"USAfricaCommand"},maxTweets:1,showImages:!0,dataOnly:!0,customCallback:t};twitterFetcher.fetch(n)}});$(document).ready(function(){var n,t,i;if($(".content").length!=0){n=$(".recommended");t=$(".text").first().outerHeight();t<600&&n.hide();i=$(".section-nav-button").width();$(".section-nav-dropdown").width(i+22);$(".slider-nav").on("init",function(n,t){t.$slideTrack.children().length===0&&$(".photo-slider").hide()});$(".slider-for").slick({slidesToShow:1,slidesToScroll:1,adaptiveHeight:!0,arrows:!1,fade:!0,asNavFor:".slider-nav"});$(".slider-nav").slick({slidesToShow:5,slidesToScroll:1,asNavFor:".slider-for",dots:!1,arrows:!1,centerMode:!1,focusOnSelect:!0,responsive:[{breakpoint:1562,settings:{slidesToShow:4,slidesToScroll:1}},{breakpoint:1359,settings:{slidesToShow:3,slidesToScroll:1}},{breakpoint:991,settings:{slidesToShow:5,slidesToScroll:1}},{breakpoint:768,settings:{slidesToShow:2,slidesToScroll:1}}]})}});$(document).ready(function(){$(".home-rotator").length!==0&&$(".home-rotator").slick({dots:!0,infinite:!0,speed:500,fade:!0,cssEase:"linear",autoplay:!0,autoplaySpeed:1e4,swipe:!0,arrows:!0,pauseOnHover:!0,pauseOnDotsHover:!0,appendDots:$(".main-feature .nav-dots")})});$(document).ready(function(){if($(".content.country-page").length!=0){countryCode=$(".content .text .country-stats").data("country-code");var n="http://api.geonames.org/countryInfoJSON?country="+countryCode+"&formatted=true&lang=en&username=cits&style=full";$.getJSON(n,function(n){country=n.geonames[0];var t=$(".content .text .country-stats table");t.find("#country-name").html(country.countryName);t.find("#country-capital").html(country.capital);t.find("#country-area").html(country.areaInSqKm.replace(/\B(?=(\d{3})+(?!\d))/g,",")+" km²");t.find("#country-languages").html(country.languages);t.find("#country-population").html(country.population.replace(/\B(?=(\d{3})+(?!\d))/g,","));t.find("#country-currency").html(country.currencyCode)})}});$(document).ready(function(){$(".section-page").length!=0&&$(".section-photo-carousel").slick({centerMode:!0,slidesToShow:1,variableWidth:!0,responsive:[{breakpoint:480,settings:{arrows:!1}}]})});$(document).ready(function(){$(".search-results").length!=0&&$(".search-site").val("")});$form=$(".content #site-map");$form.on("click","div[data-container-urlslug]",function(n){var t=$(this),r,i;$(n.target).is("a")||(r=t.data("container-level"),i=t.data("container-urlslug"),$('ul[data-parent-urlslug="'+i+'"]').animate({height:"toggle"}))})