function businessImgSwitch(){var n=[];n[0]="/assets/images/business-banner-one.jpg";n[1]="/assets/images/business-banner-two.jpg";n[2]="/assets/images/education-banner-two.jpg";switchImage($("#business-banner"),n)}function benefitsImgSwitch(){var n=[];n[0]="/assets/images/business-banner-six.jpg";n[1]="/assets/images/business-banner-four.jpg";switchImage($("#benefits-banner"),n)}function eduImgSwitch(){var n=[];n[0]="/assets/images/education-banner-one.jpg";n[1]="/assets/images/education-banner-two.jpg";n[2]="/assets/images/education-banner-three.jpg";n[3]="/assets/images/education-banner-four.jpg";n[4]="/assets/images/education-banner-five.jpg";n[5]="/assets/images/education-banner-six.jpg";n[6]="/assets/images/education-banner-seven.jpg";switchImage($("#education-banner"),n)}function eduinstImgSwitch(){var n=[];n[0]="/assets/images/eduinst-banner-one.jpg";n[1]="/assets/images/eduinst-banner-two.jpg";n[2]="/assets/images/eduinst-banner-three.jpg";n[3]="/assets/images/education-banner-five.jpg";n[4]="/assets/images/eduinst-banner-five.jpg";n[5]="/assets/images/education-banner-six.jpg";switchImage($("#institution-banner"),n)}function contactImgSwitch(){var n=[];n[0]="/assets/images/contact-banner-one.jpg";n[1]="/assets/images/contact-banner-two.jpg";n[2]="/assets/images/contact-banner-three.jpg";n[3]="/assets/images/contact-banner-four.jpg";n[4]="/assets/images/contact-banner-five.jpg";switchImage($("#contact-banner"),n)}function supportImgSwitch(){var n=[];n[0]="/assets/images/support-banner-two.jpg";n[1]="/assets/images/support-banner-four.jpg";switchImage($("#support-banner"),n)}function switchImage(n,t){var i=t.length,r=Math.floor(i*Math.random());n.css({"background-image":"url("+t[r]+")"})}(function(n){n.fn.hoverIntent=function(t,i){var r={sensitivity:7,interval:100,timeout:0};r=n.extend(r,i?{over:t,out:i}:t);var u,f,e,o,s=function(n){u=n.pageX;f=n.pageY},h=function(t,i){if(i.hoverIntent_t=clearTimeout(i.hoverIntent_t),Math.abs(e-u)+Math.abs(o-f)<r.sensitivity)return n(i).unbind("mousemove",s),i.hoverIntent_s=1,r.over.apply(i,[t]);e=u;o=f;i.hoverIntent_t=setTimeout(function(){h(t,i)},r.interval)},l=function(n,t){return t.hoverIntent_t=clearTimeout(t.hoverIntent_t),t.hoverIntent_s=0,r.out.apply(t,[n])},c=function(t){for(var u=(t.type=="mouseover"?t.fromElement:t.toElement)||t.relatedTarget,f,i;u&&u!=this;)try{u=u.parentNode}catch(t){u=this}if(u==this)return!1;f=jQuery.extend({},t);i=this;i.hoverIntent_t&&(i.hoverIntent_t=clearTimeout(i.hoverIntent_t));t.type=="mouseover"?(e=f.pageX,o=f.pageY,n(i).bind("mousemove",s),i.hoverIntent_s!=1&&(i.hoverIntent_t=setTimeout(function(){h(f,i)},r.interval))):(n(i).unbind("mousemove",s),i.hoverIntent_s==1&&(i.hoverIntent_t=setTimeout(function(){l(f,i)},r.timeout)))};return this.mouseover(c).mouseout(c)}})(jQuery);!function(){function i(){}function e(n){return r.retinaImageSuffix+n}function t(n,t){var i,r;(this.path=n||"","undefined"!=typeof t&&null!==t)?(this.at_2x_path=t,this.perform_check=!1):(void 0!==document.createElement?(i=document.createElement("a"),i.href=this.path,i.pathname=i.pathname.replace(f,e),this.at_2x_path=i.href):(r=this.path.split("?"),r[0]=r[0].replace(f,e),this.at_2x_path=r.join("?")),this.perform_check=!0)}function u(n){this.el=n;this.path=new t(this.el.getAttribute("src"),this.el.getAttribute("data-at2x"));var i=this;this.path.check_2x_variant(function(n){n&&i.swap()})}var n="undefined"==typeof exports?window:exports,r={retinaImageSuffix:"@2x",check_mime_type:!0,force_original_dimensions:!0},f;n.Retina=i;i.configure=function(n){null===n&&(n={});for(var t in n)n.hasOwnProperty(t)&&(r[t]=n[t])};i.init=function(t){null===t&&(t=n);var i=t.onload||function(){};t.onload=function(){for(var t,r=document.getElementsByTagName("img"),f=[],n=0;n<r.length;n+=1)t=r[n],t.getAttributeNode("data-no-retina")||f.push(new u(t));i()}};i.isRetina=function(){return n.devicePixelRatio>1?!0:n.matchMedia&&n.matchMedia("(-webkit-min-device-pixel-ratio: 1.5), (min--moz-device-pixel-ratio: 1.5), (-o-min-device-pixel-ratio: 3/2), (min-resolution: 1.5dppx)").matches?!0:!1};f=/\.\w+$/;n.RetinaImagePath=t;t.confirmed_paths=[];t.prototype.is_external=function(){return!(!this.path.match(/^https?\:/i)||this.path.match("//"+document.domain))};t.prototype.check_2x_variant=function(n){var i,u=this;return this.is_external()?n(!1):this.perform_check||"undefined"==typeof this.at_2x_path||null===this.at_2x_path?this.at_2x_path in t.confirmed_paths?n(!0):(i=new XMLHttpRequest,i.open("HEAD",this.at_2x_path),i.onreadystatechange=function(){if(4!==i.readyState)return n(!1);if(i.status>=200&&i.status<=399){if(r.check_mime_type){var f=i.getResponseHeader("Content-Type");if(null===f||!f.match(/^image/i))return n(!1)}return t.confirmed_paths.push(u.at_2x_path),n(!0)}return n(!1)},i.send(),void 0):n(!0)};n.RetinaImage=u;u.prototype.swap=function(n){function i(){t.el.complete?(r.force_original_dimensions&&(t.el.setAttribute("width",t.el.offsetWidth),t.el.setAttribute("height",t.el.offsetHeight)),t.el.setAttribute("src",n)):setTimeout(i,5)}"undefined"==typeof n&&(n=this.path.at_2x_path);var t=this;i()};i.isRetina()&&i.init(n)}(),function(n){n.extend(n,{placeholder:{browser_supported:function(){return this._supported!==undefined?this._supported:this._supported=!!("placeholder"in n('<input type="text">')[0])},shim:function(t){var i={color:"#fff",cls:"placeholder",selector:"input[placeholder], textarea[placeholder]"};return n.extend(i,t),!this.browser_supported()&&n(i.selector)._placeholder_shim(i)}}});n.extend(n.fn,{_placeholder_shim:function(t){function i(t){var i=n(t).offsetParent().offset(),r=n(t).offset();return{top:r.top-i.top,left:r.left-i.left,width:n(t).width()}}function r(t){var u=t.data("target");if(typeof u!="undefined"){t.css(i(u));n(window).one("resize",function(){r(t)})}}return this.each(function(){var u=n(this),o,e;if(u.is(":visible")){if(u.data("placeholder"))return o=u.data("placeholder"),o.css(i(u)),!0;e={};u.is("textarea")||u.css("height")=="auto"||(e={lineHeight:u.css("height"),whiteSpace:"nowrap"});var s=u.css("box-sizing")==="border-box",h=u.is("textarea"),f=n("<label />").text(u.attr("placeholder")).addClass(t.cls).css(n.extend({position:"absolute",display:"inline",float:"none",overflow:"hidden",textAlign:"left",color:t.color,cursor:"text",paddingTop:!h&&s?"0":u.css("padding-top"),paddingRight:u.css("padding-right"),paddingBottom:!h&&s?"0":u.css("padding-bottom"),paddingLeft:u.css("padding-left"),fontSize:u.css("font-size"),fontFamily:u.css("font-family"),fontStyle:u.css("font-style"),fontWeight:u.css("font-weight"),textTransform:u.css("text-transform"),backgroundColor:"transparent",zIndex:99},e)).css(i(this)).attr("for",this.id).data("target",u).click(function(){n(this).data("target").is(":disabled")||n(this).data("target").focus()}).insertBefore(this);u.data("placeholder",f).keydown(function(){f.hide()}).blur(function(){f[u.val().length?"hide":"show"]()}).triggerHandler("blur");n(window).one("resize",function(){r(f)})}})}})}(jQuery);jQuery(document).add(window).bind("ready load",function(){jQuery.placeholder&&jQuery.placeholder.shim()});var headerHeight=107;$(document).ready(function(){function e(){var n=window.navigator.userAgent,t=n.indexOf("MSIE "),i=n.indexOf("Trident/");return t>0||i>0}function c(){for(t=$(window).height();n.length>0;)n.pop();$(".no-touch .parallax-feature").each(function(){var t=$(this),i={element:t,top:t.offset().top,contHeight:t.height()};n.push(i)})}function f(){var f=$(this).scrollTop();o&&s.css({opacity:1-f/400});u&&(h.each(function(){$(this).css({"background-position":"50%"+f*.2+"px"})}),$.each(n,function(n,i){var r=f+t-i.top;r>0&&i.element.css({"background-position":"50%"+(r-i.contHeight)*-.2+"px"})}));f<=i?r.removeClass("addOp"):f>=i&&r.addClass("addOp")}var t,i,r,u;$(".carousel").carousel();$(".scroll-link").click(function(n){var t=$(this).data("scrollto");$("html, body").animate({scrollTop:$("#"+t).offset().top-headerHeight},1e3);n.preventDefault()});$(".drop-trigger").click(function(n){n.preventDefault();var t=$(this).data("container");if($("#"+t).is(":visible")){$("html, body").animate({scrollTop:$("#"+t).offset().top-headerHeight},1e3);return}$("#"+t).slideDown(600,function(){$("html, body").animate({scrollTop:$("#"+t).offset().top-headerHeight},1e3)})});$(".closeDrop").click(function(n){n.preventDefault();$(this).parents(".main").slideUp(600)});$("#jobs-list li .open-job-desc").click(function(n){var t=$(this).parents("li").find(".job-description").is(":visible");(n.preventDefault(),$(this).parents("ul").find(".job-description:visible").slideToggle(),t)||$(this).parents("li").find(".job-description").slideToggle()});$("#mobile-nav-button").click(function(n){$(".navigation ul").slideToggle(300);$(this).toggleClass("active");n.preventDefault()});$(".product-image-thumbs img").click(function(){var n=$(this),t=n.parent().data("url");$(".product-image-container img").stop().attr("src",t)});$(".prod-selector a").click(function(n){var t=$(this),i=t.parents(".single-price-con"),r=$(".single-color:not(:has(a.selected))");i.find(".single-color").removeClass("faded");i.find(".color-selector").children("a").removeClass("selected");t.addClass("selected");r.addClass("faded");n.preventDefault()});t=$(window).height();$(window).on("scroll",function(){f()});$(window).on("resize",function(){});i=30;r=$("#navigation, .subnav");u=!e()&&$("html.touch").length==0;u||$(".page-banner, .about-feature ").css("background-attachment","scroll");var o=$("html.touch").length==0,s=$(".title-container"),n=[],h=$(".no-touch .page-banner.fifty");c();f()});$(document).ready(function(){businessImgSwitch();eduImgSwitch();eduinstImgSwitch();supportImgSwitch();benefitsImgSwitch()})