function onYouTubeIframeAPIReady(){var n=$(".iFrameDiv");n.each(function(){function r(){}function u(){}var n=$(this).data("youtubelink"),t=$(this).data("youtubeid"),i=n.split("/v/"),f=new YT.Player("player"+t,{width:"100%",height:"100%",videoId:i[1],events:{onReady:r,onStateChange:u}})})}function fbshare(){var n=location.href,t=document.title;return window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(n)+"&t="+encodeURIComponent(t),"sharer","toolbar=0,status=0,width=626,height=436"),!1}$(function(){var n,t,i;$(".bodytext table").wrap("<div class='table-responsive'><\/div>");$("#collapsesearch").on("shown.bs.collapse",function(){document.getElementById("SearchKeywords").focus();document.getElementById("SearchKeywords").select()});$("#textSize").popover({html:!0,content:"<h2>"+document.getElementById("hfZoomText").value+"<\/h2>"});$("body").on("click",function(n){$(n.target).data("toggle")!=="popover"&&$(n.target).parents(".popover.in").length===0&&$('[data-toggle="popover"]').popover("hide")});$("body").on("hidden.bs.popover",function(n){$(n.target).data("bs.popover").inState.click=!1});n=$("div.employementblock");n.length>0&&$.getJSON("/api/vacancy").done(function(t){var i={positions:t};n.each(function(){ko.applyBindings(i,this)})});t=document.createElement("script");t.src="https://www.youtube.com/iframe_api";i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(t,i)})