Welcome


Welcome input[type=”search”]’).focus(); }); $(‘#search input[type=”submit”]’).on(‘click’, function (event) { $(this).val(“Searching, please wait…”) }); $(‘#search, #search button.close’).on(‘click keyup’, function (event) { if (event.target == this || event.target.className == ‘close’ || event.keyCode == 27) { $(this).removeClass(‘open’); } }); // $(“.top-banner”).sticky({ topSpacing: 0, bottomSpacing: 384 }); // $(“.header .wrapper-container”).sticky({ topSpacing: 35, bottomSpacing: 384 }); // $(“.content .explore-column”).sticky({ topSpacing: 135 }); if ($(“#btnSubmit”).length > 0) { if (subject) { $(“#txtSubject”).val(subject); } $(“#btnSubmit”).click(function () { submitSuggestion(); return false; }); } setTimeout(function () { $(“.announcement”).slideDown(“slow”, function () { $(“.announcement .ticker”).vTicker(); }); }, 1000); if ($(‘.slideshow li’).length > 1) { $(‘.slideshow .bxslider’).bxSlider({ mode: ‘fade’, speed: 1000, pause: 15000, auto: true, pager: false, controls: true }); } $(“.products .quick_add a”).click(function () { var link = $(this); var product_id = link.attr(“product_id”); var quantity = 1; link.find(“span”).html(“Adding…”); clearTimeout(cart_popup_id); PSC.Website.Methods.AddItemToCart(product_id, quantity, function (result) { if (result.Success) { // update the totals $(“.top-banner .shopping .number”).html(result.Quantity); link.find(“span”).html(“Added!”); setTimeout(function () { link.find(“span”).html(“Quick Add”); }, 500); // update the popup clearTimeout(cart_popup_id); $(“#cart_added .image”).css(“background-image”, “url(“+app+result.Item.ImageUrl.replace(“{0}”, “thumbnail”)+”)”); $(“#cart_added .information span”).html(“You just added ” + result.Item.Title + ” to the shopping bag!”); $(“#cart_added”).slideDown(“fast”, function () { cart_popup_id = setTimeout(function () { $(“#cart_added”).slideUp(“slow”, function () { $(“#cart_added .image”).css(“background-image”, “”); $(“#cart_added .information span”).html(“”); }); }, 5000); }); } else { alert(“We’re sorry but that item could not be added to the bag at this time!”); link.find(“span”).html(“Quick Add”); } }, function () { alert(“We’re extremely sorry but that item could not be added to the bag at this time!”); link.find(“span”).html(“Quick Add”); }); return false; }); $(window).scroll(function () { setScroll(); }); setScroll(); }); function submitSuggestion() { var first_name = $get(“txtFirstName”).value; var last_name = $get(“txtLastName”).value; var telephone = $get(“txtTelephone”).value; var email = $get(“txtEmail”).value; var comments = $get(“txtComments”).value; if (first_name != “” && last_name != “” && email != “” && comments != null) { $get(“txtFirstName”).disabled = true; $get(“txtLastName”).disabled = true; $get(“txtTelephone”).disabled = true; $get(“txtEmail”).disabled = true; $get(“txtComments”).disabled = true; $(“#btnSubmit”).html(“Submitting, please wait…”); PSC.Website.Methods.SubmitSuggestion(first_name, last_name, email, telephone, comments, “General Contact”, 1, OnSubmitSuggestionSuccess, null, null); } else { alert(“Please fill out all the required fields first!”); } } function OnSubmitSuggestionSuccess(result, userContext, methodName) { $get(“txtFirstName”).disabled = false; $get(“txtLastName”).disabled = false; $get(“txtTelephone”).disabled = false; $get(“txtEmail”).disabled = false; $get(“txtComments”).disabled = false; if (result) { $(“#btnSubmit”).html(“Submit”); $get(“txtFirstName”).value = “”; $get(“txtLastName”).value = “”; $get(“txtTelephone”).value = “”; $get(“txtEmail”).value = “”; $get(“txtComments”).value = “”; $get(“lblStatus”).innerHTML = “Thank you, your suggesstion has been submitted!”; } else { $get(“lblStatus”).innerHTML = “Please check your email address and try again…”; $(“#btnSubmit”).html(“Submit”); } } function setScroll() { var position = $(window).scrollTop(); if (position 0) { // $.fancybox.open({ src: “#notice-window” }); //$(“.notice .close a”).click(function () { // $.fancybox.close(); // return false; //}); } }); $(function() { var $allVideos = $(“iframe[src^=’//player.vimeo.com’], iframe[src^=’//www.youtube.com’], object, embed”), $fluidEl = $(“figure”); console.log($allVideos.length); $allVideos.each(function() { $(this) // jQuery .data does not work on object/embed elements .attr(‘data-aspectRatio’, this.height / this.width) .removeAttr(‘height’) .removeAttr(‘width’); }); $(window).resize(function() { var newWidth = $fluidEl.width(); $allVideos.each(function() { var $el = $(this); $el .width(newWidth) .height(newWidth * $el.attr(‘data-aspectRatio’)); }); }).resize(); }); ]]> ]]>

Source