function setVegasCont(){(bgGallery.length>0||$("#wrapper_mbYTP_video").length>0||$("#vegasCont").css("background")!="")&&($(window).width()>770?$("#vegasCont, #vegasCont > div").attr("style","height:{0}px;background-size: 100% {0}px !important;".format($(window).height()-$("header").height())):$("#vegasCont").attr("style","height:{0}px !important;background-size: {1}px {0}px !important;".format($(window).width()/2.23,$(window).width())))}function jsFnc(){$(".video-play").click(function(){$dlg=$("#dialogYoutube"),$("#dialogYoutube .popup-close, #mask").click(function(){clsDlg()}),$("#mask").show().css({zIndex:9}),$("#dialogYoutube iframe").attr("src",$dlg.attr("data-src")),$dlg.css({width:$(window).width()*.9,height:$(window).height()*(keyValue.isMobile?.7:.9)}).show()});try{$(".player").mb_YTPlayer()}catch(n){}try{bgGallery.length>1&&setTimeout(function(){$("#vegasCont").vegas({transition:vegasTransition,timer:!1,transitionDuration:2e3,slides:bgGallery})},2e3)}catch(n){}$(window).resize(function(){setVegasCont()}),$(window).scroll(function(){$(".youtubeCont iframe").length>0&&typeof $(".youtubeCont iframe").attr("src")=="undefined"&&$(".youtubeCont iframe").attr("src",$(".youtubeCont iframe").attr("data-src"))}),keyValue.isMobile==!1&&$("#vegasCont").height()==""&&setVegasCont(),$('.intro-content-cont .intro-text > span, .recommendsCont ul.ul-gallery li>div .item-summary [itemprop="reviewBody"] span.more').click(function(){$(this).hide(),$(this).parent().find(">div:last-child").show()})}function clsDlg(){$("#mask").hide().css({zIndex:1}),$dlg.hide(),$("#dialogYoutube iframe").attr("src","")}$(function(){keyValue.isMobile?setTimeout(jsFnc(),2e3):jsFnc()})