").appendTo(mainNav); var sliderLine = $(".tab-slider"); var tabWidth = $("li.cs-tab").width(); tabWidth = (tabWidth / 2) - 13; if($("li.cs-tab.active").size()) { sliderLine.width($("li.cs-tab.active").width()).css("left", $("li.cs-tab.active").position().left + tabWidth).data("origLeft", sliderLine.position().left).data("origWidth", sliderLine.width()); } else { sliderLine.width($("li.cs-tab").eq(0).width()).css("left", $("li.cs-tab").eq(0).position().left + tabWidth).data("origLeft", sliderLine.position().left).data("origWidth", sliderLine.width());	} $("li.cs-tab").hover(function() { leftPos = $(this).position().left; sliderLine.stop().animate({ left: leftPos + tabWidth}); }); $(window).resize(function() { var sliderLine = $(".tab-slider"); var tabWidth = $("li.cs-tab").width(); tabWidth = (tabWidth / 2) - 13; if($("li.cs-tab.active").size()) { sliderLine.width($("li.cs-tab.active").width()).css("left", $("li.cs-tab.active").position().left + tabWidth).data("origLeft", sliderLine.position().left).data("origWidth", sliderLine.width()); } else { sliderLine.width($("li.cs-tab").eq(0).width()).css("left", $("li.cs-tab").eq(0).position().left + tabWidth).data("origLeft", sliderLine.position().left).data("origWidth", sliderLine.width());	} $("li.cs-tab").hover(function() { leftPos = $(this).position().left; sliderLine.stop().animate({ left: leftPos + tabWidth}); }); }); }, "GlobalIcons": function() { $("#gb-global-icons").creativeIcons({ "iconNum" : "8", "defaultIconSrc": "", "icons" : [ { "image": "Communication/10.png", "showText": true, "text": "Schedule a Tour", "url": "https://www.svmsnj.org/domain/1150", "target": "_self" }, { "image": "Communication/52.png", "showText": true, "text": "Contact Us", "url": "https://www.svmsnj.org/domain/18", "target": "_self" }, { "image": "Communication/65.png", "showText": true, "text": "eNewsletter", "url": "https://www.svmsnj.org/domain/82", "target": "_self" }, { "image": "Site Utility/1.png", "showText": true, "text": "Calendar", "url": "https://www.svmsnj.org/Page/10", "target": "_self" }, { "image": "Site Utility/25.png", "showText": true, "text": "Staff Directory", "url": "https://www.svmsnj.org/domain/19", "target": "_self" }, { "image": "Classroom/65.png", "showText": true, "text": "Family Handbook", "url": "https://www.svmsnj.org/cms/lib/NJ02226462/Centricity/Domain/1143/2019_2020_Handbook_09_05.pdf", "target": "_self" }, { "image": "People/54.png", "showText": true, "text": "Home & School Association", "url": "https://www.svmsnj.org/Page/78", "target": "_self" }, { "image": "Student Program/71.png", "showText": true, "text": "Daily Health Screening", "url": "https://www.studentehr.com/", "target": "_blank" } ], "siteID" : "8", "siteAlias" : "home", "calendarLink" : "/Page/10", "contactEmail" : "info@svmsnj.org", "allLoaded" : function(){ } }); }, "SocialIcons": function() { var socialIcons = [ { "show": true, "label": "Facebook", "class": "facebook", "url": "https://www.facebook.com/svmsnj", "target": "_blank" }, { "show": true, "label": "Twitter", "class": "twitter", "url": "https://www.twitter.com/svmsnj", "target": "_blank" }, { "show": true, "label": "YouTube", "class": "youtube", "url": "https://www.youtube.com/channel/UCjrgUhP2SnbWQ0fLIKxwO-A/", "target": "_blank" }, { "show": true, "label": "Instagram", "class": "instagram", "url": "https://www.instagram.com/svmsnj", "target": "_blank" }, { "show": false, "label": "LinkedIn", "class": "linkedin", "url": "#", "target": "_self" }, { "show": false, "label": "Pinterest", "class": "pinterest", "url": "#", "target": "_self" }, { "show": false, "label": "Flickr", "class": "flickr", "url": "#", "target": "_self" }, { "show": false, "label": "Peachjar", "class": "peachjar", "url": "#", "target": "_self" }, { "show": true, "label": "Vimeo", "class": "vimeo", "url": "https://vimeo.com/user75099377", "target": "_blank" }, { "show": false, "label": "RSS", "class": "rss", "url": "#", "target": "_self" } ]; var icons = ''; $.each(socialIcons, function(index, icon) { if(icon.show) { icons += '