1function sevenhills_sc_init_actions(){setTimeout(function(){sevenhills_sc_animation()},600);jQuery("body").on("click",".show_popup_menuitem",function(a){sevenhills_menuitems_show_popup(jQuery(this));a.preventDefault();return false}).on("click",".close_menuitem, .popup_menuitem",function(b){var a=jQuery(b.target);if(a.hasClass("popup_menuitem")||a.hasClass("close_menuitem")||a.parent().hasClass("close_menuitem")){sevenhills_menuitems_hide_popup();b.preventDefault();return false}});sevenhills_sc_init(jQuery("body").eq(0))}function sevenhills_sc_resize_actions(){sevenhills_sc_sliders_resize()}function sevenhills_sc_scroll_actions(){sevenhills_sc_animation()}function sevenhills_sc_animation(){jQuery('[data-animation^="animated"]:not(.animated)').each(function(){if(jQuery(this).offset().top<jQuery(window).scrollTop()+jQuery(window).height()){jQuery(this).addClass(jQuery(this).data("animation"))}})}function sevenhills_sc_init(a){if(window.sevenhills_theme_sc_init){sevenhills_theme_sc_init(a)}if(a.find(".sc_accordion:not(.inited)").length>0){a.find(".sc_accordion:not(.inited)").each(function(){var b=jQuery(this).data("active");if(isNaN(b)){b=0}else{b=Math.max(0,b)}jQuery(this).addClass("inited").accordion({active:b,heightStyle:"content",header:"> .sc_accordion_item > .sc_accordion_title",create:function(c,d){sevenhills_sc_init(d.panel);if(window.sevenhills_init_hidden_elements){sevenhills_init_hidden_elements(d.panel)}d.header.each(function(){jQuery(this).parent().addClass("sc_active")})},activate:function(c,d){sevenhills_sc_init(d.newPanel);if(window.sevenhills_init_hidden_elements){sevenhills_init_hidden_elements(d.newPanel)}d.newHeader.each(function(){jQuery(this).parent().addClass("sc_active")});d.oldHeader.each(function(){jQuery(this).parent().removeClass("sc_active")})}})})}if(a.find(".sc_blogger.layout_polaroid .photostack:not(.inited)").length>0){a.find(".sc_blogger.layout_polaroid .photostack:not(.inited)").each(function(){var b=jQuery(this);var c=b.attr("id");if(c==undefined){c="photostack_"+Math.random();c=c.replace(".","");b.attr("id",c)}setTimeout(function(){b.addClass("inited").parent().height("auto");new Photostack(b.get(0),{callback:function(d){}})},10)})}if(a.find(".sc_blogger .sc_scroll_horizontal .sc_scroll_wrapper:not(.inited)").length>0){a.find(".sc_blogger .sc_scroll_horizontal .sc_scroll_wrapper:not(.inited)").each(function(){var c=jQuery(this);var b=0;c.find(".isotope_item").each(function(){b+=jQuery(this).outerWidth()});c.addClass("inited").width(b)})}if(a.find(".sc_form:not(.inited) form").length>0){a.find(".sc_form:not(.inited) form").each(function(){jQuery(this).addClass("inited");jQuery(this).submit(function(b){sevenhills_sc_form_validate(jQuery(this));b.preventDefault();return false});if(jQuery(this).find(".js__datepicker").length>0){jQuery(this).find(".js__datepicker").pickadate({onOpen:function(){jQuery("pre").css("overflow","hidden")},onClose:function(){jQuery("pre").css("overflow","")},monthsShort:["Jan","Feb","Mar","Apr","May","June","July","Aug","Sept","Oct","Nov","Dec"],showMonthsShort:true,format:"dd.mm.yyyy",formatSubmit:"yyyy-mm-dd",min:true})}if(jQuery(this).find(".js__timepicker").length>0){jQuery(this).find(".js__timepicker").pickatime()}})}if(a.find(".sc_countdown:not(.inited)").length>0){a.find(".sc_countdown:not(.inited)").each(function(){jQuery(this).addClass("inited");var b=jQuery(this).attr("id");var d=new Date();var i=d.getFullYear()+"-"+(d.getMonth()<9?"0":"")+(d.getMonth()+1)+"-"+(d.getDate()<10?"0":"")+d.getDate()+" "+(d.getHours()<10?"0":"")+d.getHours()+":"+(d.getMinutes()<10?"0":"")+d.getMinutes()+":"+(d.getSeconds()<10?"0":"")+d.getSeconds();var c=1;var j=jQuery(this).data("date");var g=j.split("-");var h=jQuery(this).data("time");var e=h.split(":");if(e.length<3){e[2]="00"}var f=j+" "+h;if(i<f){jQuery(this).find(".sc_countdown_placeholder").countdown({until:new Date(g[0],g[1]-1,g[2],e[0],e[1],e[2]),tickInterval:c,onTick:sevenhills_countdown})}else{jQuery(this).find(".sc_countdown_placeholder").countdown({since:new Date(g[0],g[1]-1,g[2],e[0],e[1],e[2]),tickInterval:c,onTick:sevenhills_countdown})}})}if(a.find(".sc_emailer:not(.inited)").length>0){a.find(".sc_emailer:not(.inited)").addClass("inited").on("click",".sc_emailer_button",function(h){var d=jQuery(this).parents("form");var c=jQuery(this).parents(".sc_emailer");if(c.hasClass("sc_emailer_opened")){if(d.length>0&&d.find("input").val()!=""){var g=jQuery(this).data("group");var b=d.find("input").val();var f=new RegExp(SEVENHILLS_STORAGE.email_mask);if(!f.test(b)){d.find("input").get(0).focus();
1sevenhills_message_warning(SEVENHILLS_STORAGE.strings["email_not_valid"])}else{jQuery.post(SEVENHILLS_STORAGE.ajax_url,{action:"emailer_submit",nonce:SEVENHILLS_STORAGE.ajax_nonce,group:g,email:b}).done(function(i){var k={};try{k=JSON.parse(i)}catch(j){k={error:SEVENHILLS_STORAGE.ajax_error};console.log(i)}if(k.error===""){sevenhills_message_info(SEVENHILLS_STORAGE.strings["email_confirm"].replace("%s",b));d.find("input").val("")}else{sevenhills_message_warning(k.error)}})}}else{d.get(0).submit()}}else{c.addClass("sc_emailer_opened")}h.preventDefault();return false})}if(a.find(".sc_googlemap:not(.inited)").length>0){a.find(".sc_googlemap:not(.inited)").each(function(){if(jQuery(this).parents("div:hidden,article:hidden").length>0){return}var e=jQuery(this).addClass("inited");var b=e.attr("id");var d=e.data("zoom");var c=e.data("style");var f=[];e.find(".sc_googlemap_marker").each(function(){var g=jQuery(this);f.push({point:g.data("point"),address:g.data("address"),latlng:g.data("latlng"),description:g.data("description"),title:g.data("title")})});sevenhills_googlemap_init(jQuery("#"+b).get(0),{style:c,zoom:d,markers:f})})}if(a.find(".sc_infobox.sc_infobox_closeable:not(.inited)").length>0){a.find(".sc_infobox.sc_infobox_closeable:not(.inited)").addClass("inited").on("click",function(b){jQuery(this).slideUp();b.preventDefault();return false})}if(a.find(".sc_matches:not(.inited)").length>0){a.find(".sc_matches:not(.inited)").each(function(){jQuery(this).find(".sc_matches_next .sc_matches_list .sc_match").on("click",function(){jQuery(this).parents(".sc_matches").find(".sc_matches_current .sc_match").hide();var b=jQuery(this).data("item");jQuery(b).fadeIn()})})}if(a.find(".sc_players_table:not(.inited)").length>0){a.find(".sc_players_table:not(.inited)").addClass("inited").on("click",".sort",function(d){var c=jQuery(this).parents(".sc_players_table");var f=jQuery(c).attr("id");var b=jQuery(c).data("sort")=="asc"?"desc":"asc";jQuery.post(SEVENHILLS_STORAGE.ajax_url,{action:"sort_by_points",nonce:SEVENHILLS_STORAGE.ajax_nonce,sort:b,table:SEVENHILLS_STORAGE["ajax_"+f]}).done(function(g){var i={};try{i=JSON.parse(g)}catch(h){i={error:SEVENHILLS_STORAGE.ajax_error};console.log(g)}if(i.error===""){jQuery(c).find(".sc_table").remove();jQuery(c).find("script").after(i.data);jQuery(c).data("sort",b);sevenhills_select_players_category(jQuery(c).find(".sc_players_table_category select"))}});d.preventDefault();return false})}if(a.find(".sc_players_table_category:not(.inited)").length>0){a.find(".sc_players_table_category:not(.inited)").addClass("inited").on("change",function(){sevenhills_select_players_category(jQuery(this))})}if(a.find(".sc_popup_link:not(.inited)").length>0){a.find(".sc_popup_link:not(.inited)").each(function(){var b=jQuery(this).attr("href");jQuery(this).addClass("inited").magnificPopup({type:"inline",removalDelay:500,midClick:true,callbacks:{beforeOpen:function(){this.st.mainClass="mfp-zoom-in"},open:function(){sevenhills_sc_init(jQuery(b));sevenhills_resize_actions();if(window.sevenhills_init_hidden_elements){sevenhills_init_hidden_elements(jQuery(b))}},close:function(){}}})})}if(a.find(".sc_recent_news_header_category_item_more:not(.inited)").length>0){a.find(".sc_recent_news_header_category_item_more:not(.inited)").each(function(){jQuery(this).addClass("inited").on("click",function(b){jQuery(this).toggleClass("opened").find(".sc_recent_news_header_more_categories").slideToggle();b.preventDefault();return false})})}if(a.find(".search_wrap:not(.inited)").length>0){a.find(".search_wrap:not(.inited)").each(function(){jQuery(this).addClass("inited").on("click",".search_submit",function(d){var c=jQuery(this).parents(".search_wrap");if(!c.hasClass("search_state_fixed")){if(c.hasClass("search_state_opened")){if(c.find(".search_field").val()!=""){c.find("form").get(0).submit()}else{c.removeClass("search_state_opened").addClass("search_state_closed").find(".search_results").fadeOut()}}else{c.removeClass("search_state_closed").addClass("search_state_opened").find(".search_field").get(0).focus()}}else{if(c.find(".search_field").val()!=""){c.find("form").get(0).submit()}else{c.find(".search_field").val("");c.find(".search_results").fadeOut()}}d.preventDefault();return false}).on("click",".search_results_close",function(c){jQuery(this).parent().fadeOut();c.preventDefault();return false}).on("click",".search_more",function(c){if(jQuery(this).parents(".search_wrap").find(".search_field").val()!=""){jQuery(this).parents(".search_wrap").find("form").get(0).submit()}c.preventDefault();return false});if(jQuery(this).hasClass("search_ajax")){var b=null;jQuery(this).find(".search_field").keyup(function(f){var c=jQuery(this);var d=c.val();if(b){clearTimeout(b);b=null}if(d.length>=SEVENHILLS_STORAGE.ajax_search_min_length){b=setTimeout(function(){jQuery.post(SEVENHILLS_STORAGE.ajax_url,{action:"ajax_search",nonce:SEVENHILLS_STORAGE.ajax_nonce,text:d}).done(function(g){clearTimeout(b);b=null;var i={};try{i=JSON.parse(g)}
1catch(h){i={error:SEVENHILLS_STORAGE.ajax_error};console.log(g)}if(i.error===""){c.parents(".search_ajax").find(".search_results_content").empty().append(i.data);c.parents(".search_ajax").find(".search_results").fadeIn()}else{sevenhills_message_warning(SEVENHILLS_STORAGE.strings["search_error"])}})},SEVENHILLS_STORAGE.ajax_search_delay)}})}})}if(a.find(".sc_pan:not(.inited_pan)").length>0){a.find(".sc_pan:not(.inited_pan)").each(function(){if(jQuery(this).parents("div:hidden,article:hidden").length>0){return}var c=jQuery(this).addClass("inited_pan");var b=c.parent();b.mousemove(function(j){var i={};var f=0;var h=c.width(),l=c.height();var d=b.width(),g=b.height();var k=b.offset();if(c.hasClass("sc_pan_vertical")){c.css("top",-Math.floor((j.pageY-k.top)/g*(l-g)))}if(c.hasClass("sc_pan_horizontal")){c.css("left",-Math.floor((j.pageX-k.left)/d*(h-d)))}});b.mouseout(function(d){c.css({left:0,top:0})})})}if(a.find(".sc_scroll:not(.inited)").length>0){a.find(".sc_scroll:not(.inited)").each(function(){if(jQuery(this).parents("div:hidden,article:hidden").length>0){return}SEVENHILLS_STORAGE.scroll_init_counter=0;sevenhills_sc_init_scroll_area(jQuery(this))})}if(a.find(".sc_slider_swiper:not(.inited)").length>0){a.find(".sc_slider_swiper:not(.inited)").each(function(){if(jQuery(this).parents("div:hidden,article:hidden").length>0){return}jQuery(this).addClass("inited");sevenhills_sc_slider_autoheight(jQuery(this));if(jQuery(this).parents(".sc_slider_pagination_area").length>0){jQuery(this).parents(".sc_slider_pagination_area").find(".sc_slider_pagination .post_item").eq(0).addClass("active")}var g=jQuery(this).attr("id");if(g==undefined){g="swiper_"+Math.random();g=g.replace(".","");jQuery(this).attr("id",g)}jQuery(this).addClass(g);jQuery(this).find(".slides .swiper-slide").css("position","relative");var c=jQuery(this).width();if(c==0){c=jQuery(this).parent().width()}var e=jQuery(this).data("slides-per-view");if(e==undefined){e=1}var f=jQuery(this).data("slides-min-width");if(f==undefined){f=50}if(c/e<f){e=Math.max(1,Math.floor(c/f))}var d=jQuery(this).data("slides-space");if(d==undefined){d=0}if(SEVENHILLS_STORAGE.swipers===undefined){SEVENHILLS_STORAGE.swipers={}}SEVENHILLS_STORAGE.swipers[g]=new Swiper("."+g,{calculateHeight:!jQuery(this).hasClass("sc_slider_height_fixed"),resizeReInit:true,autoResize:true,loop:true,grabCursor:true,nextButton:jQuery(this).hasClass("sc_slider_controls")?"#"+g+" .sc_slider_next":false,prevButton:jQuery(this).hasClass("sc_slider_controls")?"#"+g+" .sc_slider_prev":false,pagination:jQuery(this).hasClass("sc_slider_pagination")?"#"+g+" .sc_slider_pagination_wrap":false,paginationClickable:true,autoplay:jQuery(this).hasClass("sc_slider_noautoplay")?false:(isNaN(jQuery(this).data("interval"))?7000:jQuery(this).data("interval")),autoplayDisableOnInteraction:false,initialSlide:0,slidesPerView:e,loopedSlides:e,spaceBetween:d,speed:600,onFirstInit:function(m){var j=jQuery(m.container);if(!j.hasClass("sc_slider_height_auto")){return}var i=j.find(".swiper-slide").eq(1);var l=i.data("height_auto");if(l>0){var n=parseInt(i.css("paddingTop")),k=parseInt(i.css("paddingBottom"));i.height(l);j.height(l+(isNaN(n)?0:n)+(isNaN(k)?0:k));j.find(".swiper-wrapper").height(l+(isNaN(n)?0:n)+(isNaN(k)?0:k))}},onSlideChangeStart:function(n){var k=jQuery(n.container);if(!k.hasClass("sc_slider_height_auto")){return}var j=n.activeIndex;var i=k.find(".swiper-slide").eq(j);var m=i.data("height_auto");if(m>0){var o=parseInt(i.css("paddingTop")),l=parseInt(i.css("paddingBottom"));i.height(m);k.height(m+(isNaN(o)?0:o)+(isNaN(l)?0:l));k.find(".swiper-wrapper").height(m+(isNaN(o)?0:o)+(isNaN(l)?0:l))}},onSlideChangeEnd:function(l,k){var j=jQuery(l.container);if(j.parents(".sc_slider_pagination_area").length>0){var i=j.parents(".sc_slider_pagination_area").find(".sc_slider_pagination .post_item");var h=l.activeIndex>i.length?0:l.activeIndex-1;sevenhills_sc_change_active_pagination_in_slider(j,h)}}});jQuery(this).data("settings",{mode:"horizontal"});var b=jQuery(this).find(".slides").data("current-slide");if(b>0){SEVENHILLS_STORAGE.swipers[g].slideTo(b-1)}sevenhills_sc_prepare_slider_navi(jQuery(this))});sevenhills_sc_sliders_resize()}if(a.find(".sc_skills_item:not(.inited)").length>0){sevenhills_sc_init_skills(a);jQuery(window).scroll(function(){sevenhills_sc_init_skills(a)})}
1if(a.find(".sc_skills_arc:not(.inited)").length>0){sevenhills_sc_init_skills_arc(a);jQuery(window).scroll(function(){sevenhills_sc_init_skills_arc(a)})}if(a.find(".sc_tabs:not(.inited):not(.no_jquery_ui),.tabs_area:not(.inited)").length>0){a.find(".sc_tabs:not(.inited):not(.no_jquery_ui),.tabs_area:not(.inited)").each(function(){var b=jQuery(this).data("active");if(isNaN(b)){b=0}else{b=Math.max(0,b)}jQuery(this).addClass("inited").tabs({active:b,show:{effect:"fadeIn",duration:300},hide:{effect:"fadeOut",duration:300},create:function(c,d){sevenhills_sc_init(d.panel);if(window.sevenhills_init_hidden_elements){sevenhills_init_hidden_elements(d.panel)}},activate:function(c,d){sevenhills_sc_init(d.newPanel);if(window.sevenhills_init_hidden_elements){sevenhills_init_hidden_elements(d.newPanel)}}})})}if(a.find(".sc_tabs.no_jquery_ui:not(.inited)").length>0){a.find(".sc_tabs.no_jquery_ui:not(.inited)").each(function(){jQuery(this).addClass("inited").on("click",".sc_tabs_titles li a",function(c){if(!jQuery(this).parent().hasClass("sc_tabs_active")){var b=jQuery(this).parent().siblings(".sc_tabs_active").find("a").attr("href");var d=jQuery(this).attr("href");jQuery(this).parent().addClass("sc_tabs_active").siblings().removeClass("sc_tabs_active");jQuery(b).fadeOut(function(){jQuery(d).fadeIn(function(){sevenhills_sc_init(jQuery(this));if(window.sevenhills_init_hidden_elements){sevenhills_init_hidden_elements(jQuery(this))}})})}c.preventDefault();return false});jQuery(this).find(".sc_tabs_titles li").eq(0).addClass("sc_tabs_active");jQuery(this).find(".sc_tabs_content").eq(0).fadeIn(function(){sevenhills_sc_init(jQuery(this));if(window.sevenhills_init_hidden_elements){sevenhills_init_hidden_elements(jQuery(this))}})})}if(a.find(".sc_toggles .sc_toggles_title:not(.inited)").length>0){a.find(".sc_toggles .sc_toggles_title:not(.inited)").addClass("inited").on("click",function(){jQuery(this).toggleClass("ui-state-active").parent().toggleClass("sc_active");jQuery(this).parent().find(".sc_toggles_content").slideToggle(300,function(){sevenhills_sc_init(jQuery(this).parent().find(".sc_toggles_content"));if(window.sevenhills_init_hidden_elements){sevenhills_init_hidden_elements(jQuery(this).parent().find(".sc_toggles_content"))}})})}if(a.find(".sc_zoom:not(.inited)").length>0){a.find(".sc_zoom:not(.inited)").each(function(){if(jQuery(this).parents("div:hidden,article:hidden").length>0){return}jQuery(this).addClass("inited");jQuery(this).find("img").elevateZoom({zoomType:"lens",lensShape:"round",lensSize:200,lensBorderSize:4,lensBorderColour:"#ccc"})})}}function sevenhills_sc_init_scroll_area(d){if(!sevenhills_check_images_complete(d)&&SEVENHILLS_STORAGE.scroll_init_counter++<30){setTimeout(function(){sevenhills_sc_init_scroll_area(d)},200);return}d.addClass("inited");var e=d.attr("id");if(e==undefined){e="scroll_"+Math.random();e=e.replace(".","");d.attr("id",e)}d.addClass(e);var b=d.parent();var c=b.attr("id");if(c==undefined){c="scroll_wrap_"+Math.random();c=c.replace(".","");b.attr("id",c)}b.addClass(c);var a=d.find("#"+e+"_bar");if(a.length>0&&!a.hasClass(e+"_bar")){a.addClass(e+"_bar")}if(d.hasClass("sc_scroll_horizontal")){d.find(".sc_scroll_wrapper > .sc_scroll_slide").css("width","auto");d.find(".sc_scroll_wrapper").css("width",d.find(".sc_scroll_wrapper > .sc_scroll_slide").width()+10);d.find(".sc_scroll_wrapper > .sc_scroll_slide").css("width","100%")}if(SEVENHILLS_STORAGE.swipers===undefined){SEVENHILLS_STORAGE.swipers={}}SEVENHILLS_STORAGE.swipers[e]=new Swiper("."+e,{calculateHeight:false,resizeReInit:true,autoResize:true,freeMode:true,freeModeFluid:true,grabCursor:true,mode:d.hasClass("sc_scroll_vertical")?"vertical":"horizontal",direction:d.hasClass("sc_scroll_vertical")?"vertical":"horizontal",slidesPerView:d.hasClass("sc_scroll")?"auto":1,nextButton:b.hasClass("sc_scroll_controls")?"#"+c+" .sc_scroll_next":false,prevButton:b.hasClass("sc_scroll_controls")?"#"+c+" .sc_scroll_prev":false,scrollbar:"."+e+"_bar",scrollbarHide:true});d.data("settings",{mode:"horizontal"})}function sevenhills_sc_prepare_slider_navi(b){var a=null;a=b.siblings(".sc_slider_pagination");if(a.length>0){a.on("click",".post_item",function(d){var c=jQuery(this).parents(".sc_slider_pagination_area").find(".swiper-slider-container");var f=c.attr("id");SEVENHILLS_STORAGE.swipers[f].slideTo(jQuery(this).index()+1);d.preventDefault();return false})}}function sevenhills_sc_change_active_pagination_in_slider(e,a){var g=e.parents(".sc_slider_pagination_area").find(".sc_slider_pagination");if(g.length==0){return}g.find(".post_item").removeClass("active").eq(a).addClass("active");var c=g.height();var f=g.find(".active").offset().top-g.offset().top;var d=g.find(".sc_scroll_wrapper").offset().top-g.offset().top;var b=g.find(".active").height();if(f<0){g.find(".sc_scroll_wrapper").css({transform:"translate3d(0px, 0px, 0px)","transition-duration":"0.3s"})}else{if(c<=f+b){g.find(".sc_scroll_wrapper").css({transform:"translate3d(0px, -"+(Math.abs(d)+f-c/4)+"px, 0px)","transition-duration":"0.3s"})}}}
1function sevenhills_sc_slider_autoheight(a){if(a.hasClass(".sc_slider_height_auto")){a.find(".swiper-slide").each(function(){if(jQuery(this).data("height_auto")==undefined){jQuery(this).attr("data-height_auto",jQuery(this).height())}})}}function sevenhills_sc_sliders_resize(){var b=arguments[0]!==undefined?arguments[0]:".sc_slider_swiper.inited";var a=arguments[1]!==undefined?arguments[1]:true;jQuery(b).each(function(){var i=jQuery(this).attr("id");var d=jQuery(this).width();var g=jQuery(this).data("last-width");if(isNaN(g)){g=0}if(g==0||g!=d){var e=jQuery(this).data("slides-per-view");if(e==undefined){e=1}var f=jQuery(this).data("slides-min-width");if(f==undefined){f=50}if(d/e<f){e=Math.max(1,Math.floor(d/f))}jQuery(this).data("last-width",d);if(SEVENHILLS_STORAGE.swipers[i].params.slidesPerView!=e){SEVENHILLS_STORAGE.swipers[i].params.slidesPerView=e;SEVENHILLS_STORAGE.swipers[i].params.loopedSlides=e}}if(a&&!jQuery(this).hasClass("sc_slider_height_fixed")){var c=0;if(jQuery(this).find(".swiper-slide > img").length>0){jQuery(this).find(".swiper-slide > img").each(function(){if(jQuery(this).height()>c){c=jQuery(this).height()}});jQuery(this).height(c)}else{if(jQuery(this).find(".swiper-slide").css("backgroundImage")!="none"){c=Math.floor(d/16*9);jQuery(this).height(c).find(".swiper-slide").height(c)}}}});jQuery(".sc_slider_pagination_area").each(function(){var c=jQuery(this).find(".sc_slider").height();if(c){jQuery(this).height(c);jQuery(this).find(".sc_slider_pagination").height(c);jQuery(this).find(".sc_slider_pagination .sc_scroll_vertical").height(c)}})}function sevenhills_sc_init_skills(a){if(arguments.length==0){var a=jQuery("body")}var b=jQuery(window).scrollTop()+jQuery(window).height();a.find(".sc_skills_item:not(.inited)").each(function(){var u=jQuery(this);var d=u.offset().top;if(b>d){u.addClass("inited");var w=u.parents(".sc_skills").eq(0);var h=w.data("type");var z=(h=="pie"&&w.hasClass("sc_skills_compact_on"))?u.find(".sc_skills_data .pie"):u.find(".sc_skills_total").eq(0);var i=parseInt(z.data("start"));var r=parseInt(z.data("stop"));var v=parseInt(z.data("max"));var y=Math.round(i/v*100);var x=Math.round(r/v*100);var j=z.data("ed");var c=parseInt(z.data("duration"));var s=parseInt(z.data("speed"));var l=parseInt(z.data("step"));if(h=="bar"){var p=w.data("dir");var n=u.find(".sc_skills_count").eq(0);if(p=="horizontal"){n.css("width",y+"%").animate({width:x+"%"},c)}else{if(p=="vertical"){n.css("height",y+"%").animate({height:x+"%"},c)}}sevenhills_sc_animate_skills_counter(i,r,s-(p!="unknown"?5:0),l,j,z)}else{if(h=="counter"){sevenhills_sc_animate_skills_counter(i,r,s-5,l,j,z)}else{if(h=="pie"){var t=parseInt(z.data("steps"));var o=z.data("bg_color");var k=z.data("border_color");var m=parseInt(z.data("cutout"));var q=z.data("easing");var g={segmentShowStroke:false,segmentStrokeColor:k,segmentStrokeWidth:1,percentageInnerCutout:m,animationSteps:t,animationEasing:q,animateRotate:true,animateScale:false};var f=[];z.each(function(){var B=jQuery(this).data("color");var C=parseInt(jQuery(this).data("stop"));var A=Math.round(C/v*100);f.push({value:A,color:B})});if(z.length==1){sevenhills_sc_animate_skills_counter(i,r,Math.round(1500/t),l,j,z);f.push({value:100-x,color:o})}var e=u.find("canvas");e.attr({width:u.width(),height:u.width()}).css({width:u.width(),height:u.height()});new Chart(e.get(0).getContext("2d")).Doughnut(f,g)}}}}})}function sevenhills_sc_animate_skills_counter(f,b,e,d,a,c){f=Math.min(b,f+d);c.text(f+a);if(f<b){setTimeout(function(){sevenhills_sc_animate_skills_counter(f,b,e,d,a,c)},e)}}function sevenhills_sc_init_skills_arc(a){if(arguments.length==0){var a=jQuery("body")}a.find(".sc_skills_arc:not(.inited)").each(function(){var f=jQuery(this);f.addClass("inited");var d=f.find(".sc_skills_data .arc");var e=f.find(".sc_skills_arc_canvas").eq(0);var g=f.find(".sc_skills_legend").eq(0);var b=Math.round(f.width()-g.width());var i=Math.floor(b/2);var h={random:function(c,j){return Math.floor((Math.random()*(j-c+1))+c)},diagram:function(){var l=Raphael(e.attr("id"),b,b),j=Math.round(b/2/d.length),c=j,k=Math.round(((b-20)/2-c)/d.length),n=Math.round(b/9/d.length),m=400;
1l.circle(i,i,Math.round(b/2)).attr({stroke:"none",fill:SEVENHILLS_STORAGE.theme_skin_bg_color?SEVENHILLS_STORAGE.theme_skin_bg_color:"#ffffff"});var o=l.text(i,i,f.data("caption")).attr({font:Math.round(c*0.75)+'px "'+SEVENHILLS_STORAGE.theme_font+'"',fill:SEVENHILLS_STORAGE.theme_skin_color?SEVENHILLS_STORAGE.theme_skin_color:"#909090"}).toFront();c-=Math.round(k/2);l.customAttributes.arc=function(C,q,r){var D=3.6*C,p=D==360?359.99:D,u=h.random(91,240),B=(u-p)*Math.PI/180,w=u*Math.PI/180,A=i+r*Math.cos(w),t=i-r*Math.sin(w),z=i+r*Math.cos(B),s=i-r*Math.sin(B),E=[["M",A,t],["A",r,r,0,+(p>180),1,z,s]];return{path:E,stroke:q}};d.each(function(r){var q=jQuery(this),p=q.find(".color").val(),s=q.find(".percent").val(),v=q.find(".text").text();c+=k;var u=l.path().attr({arc:[s,p,c],"stroke-width":n});u.mouseover(function(){this.animate({"stroke-width":j,opacity:0.75},1000,"elastic");if(Raphael.type!="VML"){this.toFront()}o.stop().animate({opacity:0},m,">",function(){this.attr({text:(v?v+"\n":"")+s+"%"}).animate({opacity:1},m,"<")})}).mouseout(function(){this.stop().animate({"stroke-width":n,opacity:1},m*4,"elastic");o.stop().animate({opacity:0}
1,m,">",function(){o.attr({text:f.data("caption")}).animate({opacity:1},m,"<")})})})}};h.diagram()})}function sevenhills_countdown(e){var a=jQuery(this).parent();for(var c=3;c<e.length;c++){var b=(e[c]<10?"0":"")+e[c];a.find(".sc_countdown_item").eq(c-3).find(".sc_countdown_digits span").addClass("hide");for(var d=b.length-1;d>=0;d--){a.find(".sc_countdown_item").eq(c-3).find(".sc_countdown_digits span").eq(d+(c==3&&b.length<3?1:0)).removeClass("hide").text(b.substr(d,1))}}}function sevenhills_sc_form_validate(d){var c=d.attr("action");if(c==""){return false}d.find("input").removeClass("error_fields_class");var b=false;var a=d.data("formtype")=="form_custom";if(!a){b=sevenhills_form_validate(d,{error_message_show:true,error_message_time:4000,error_message_class:"sc_infobox sc_infobox_style_error",error_fields_class:"error_fields_class",exit_after_first_error:false,rules:[{field:"username",min_length:{value:1,message:SEVENHILLS_STORAGE.strings["name_empty"]},max_length:{value:60,message:SEVENHILLS_STORAGE.strings["name_long"]}},{field:"email",min_length:{value:7,message:SEVENHILLS_STORAGE.strings["email_empty"]},max_length:{value:60,message:SEVENHILLS_STORAGE.strings["email_long"]},mask:{value:SEVENHILLS_STORAGE.email_mask,message:SEVENHILLS_STORAGE.strings["email_not_valid"]}},{field:"subject",min_length:{value:1,message:SEVENHILLS_STORAGE.strings["subject_empty"]},max_length:{value:100,message:SEVENHILLS_STORAGE.strings["subject_long"]}},{field:"message",min_length:{value:1,message:SEVENHILLS_STORAGE.strings["text_empty"]},max_length:{value:SEVENHILLS_STORAGE.contacts_maxlength,message:SEVENHILLS_STORAGE.strings["text_long"]}}]})}if(!b&&c!="#"){jQuery.post(c,{action:"send_form",nonce:SEVENHILLS_STORAGE.ajax_nonce,type:d.data("formtype"),data:d.serialize()}).done(function(g){var j={};try{j=JSON.parse(g)}catch(i){j={error:SEVENHILLS_STORAGE.ajax_error};console.log(g)}var f=d.find(".result").toggleClass("sc_infobox_style_error",false).toggleClass("sc_infobox_style_success",false);if(j.error===""){d.get(0).reset();f.addClass("sc_infobox_style_success").html(SEVENHILLS_STORAGE.strings["send_complete"]);var h=d.find('input[name="return_url"]');if(h.length>0&&h.val()!=""){setTimeout(function(){window.location.href=h.val()},3300)}}else{f.addClass("sc_infobox_style_error").html(SEVENHILLS_STORAGE.strings["send_error"]+" "+j.error)}f.fadeIn().delay(3000).fadeOut()})}return !b}function sevenhills_select_players_category(c){var b=c.find(":selected").data("cat");var a=c.parents(".sc_players_table");if(b=="all"){jQuery(a).find(".sc_table tr:nth-child(n+2)").show()}else{jQuery(a).find(".sc_table tr:nth-child(n+2)").hide();jQuery(a).find(".sc_table tr").each(function(){var d=jQuery(this).data("cat");if(d!=null&&d.indexOf(b)!=-1){jQuery(this).show()}})}}function sevenhills_menuitems_show_popup(a){if(typeof SEVENHILLS_STORAGE.menuitem_load=="undefined"){SEVENHILLS_STORAGE.menuitem_load=false;SEVENHILLS_STORAGE.menuitems_list=[]}
1else{if(SEVENHILLS_STORAGE.menuitem_load){return}}jQuery("#page_preloader").data("bg-color",jQuery("#page_preloader").css("background-color")).css({display:"block",opacity:0,backgroundColor:"transparent"}).animate({opacity:0.8},300);if(SEVENHILLS_STORAGE.menuitems_list.length==0){var c=a.parents(".sc_menuitems").attr("id");SEVENHILLS_STORAGE.menuitems_list=SEVENHILLS_STORAGE.menuitems[c].split(",")}var b=a.attr("rel");SEVENHILLS_STORAGE.menuitem_load=true;jQuery.post(SEVENHILLS_STORAGE.ajax_url,{action:"ajax_menuitem",nonce:SEVENHILLS_STORAGE.ajax_nonce,text:b}).done(function(d){SEVENHILLS_STORAGE.menuitem_load=false;var h={};try{h=JSON.parse(d)}catch(g){h={error:SEVENHILLS_STORAGE.ajax_error+"<br>"+d}}jQuery("#page_preloader").animate({opacity:0},500,function(){jQuery(this).css({display:"none",backgroundColor:jQuery(this).data("bg-color")})});if(h.error===""){var f=0;if(jQuery(".popup_menuitem").length==0){jQuery("body").append('<div id="overlay"></div><div class="popup_menuitem"></div>');jQuery("#overlay").fadeIn(500)}else{f=500;jQuery(".popup_menuitem").fadeOut(f)}setTimeout(function(){jQuery(".popup_menuitem").html(h.data);jQuery(".popup_menuitem .sc_menuitems_wrap").append("<a class='close_menuitem' href='#'><span class='icon-cancel'></span></a>");if(SEVENHILLS_STORAGE.menuitems_list.length>1){var e=0;for(var j=0;j<SEVENHILLS_STORAGE.menuitems_list.length;j++){if(SEVENHILLS_STORAGE.menuitems_list[j]===b){e=j;break}}var l=(e-1+SEVENHILLS_STORAGE.menuitems_list.length)%SEVENHILLS_STORAGE.menuitems_list.length;var k=(e+1)%SEVENHILLS_STORAGE.menuitems_list.length;jQuery(".popup_menuitem .sc_menuitems_wrap .sc_menuitem_content").append("<a class='prev_menuitem prevnext_menuitem show_popup_menuitem' rel='"+SEVENHILLS_STORAGE.menuitems_list[l]+"' href='#'><span class='icon-left'></span></a><a class='next_menuitem prevnext_menuitem show_popup_menuitem' rel='"+SEVENHILLS_STORAGE.menuitems_list[k]+"' href='#'><span class='icon-right'></span></a>")}jQuery(".popup_menuitem").fadeIn(500)},f)}else{sevenhills_message_warning(SEVENHILLS_STORAGE.strings["search_error"])}})}function sevenhills_menuitems_hide_popup(){jQuery("#overlay").fadeOut();jQuery(".popup_menuitem").fadeOut(function(){SEVENHILLS_STORAGE.menuitem_load=false;SEVENHILLS_STORAGE.menuitems_list=[];jQuery("#overlay").remove();jQuery(this).remove()})};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.