Team:Valencia UPV/Templates:customJS

function Init(t){1!=t&&(_afterResize(),_slider_full(),_topNav(),_megaNavHorizontal(),_sideNav(),_stickyFooter()),_toggle(),_modalAutoLoad(),jQuery("a[data-toggle=tooltip], button[data-toggle=tooltip], span[data-toggle=tooltip]").tooltip()}function _afterResize(){jQuery(window).on("load",function(){"use strict";jQuery(window).resize(function(){window.afterResizeApp&&clearTimeout(window.afterResizeApp),window.afterResizeApp=setTimeout(function(){_slider_full(),window.width=jQuery(window).width(),window.height=jQuery(window).height(),jQuery(".flexslider").length>0&&jQuery(".flexslider").resize()},300)})})}function loadScript(t,e){if(_arr[t])e&&e();else{_arr[t]=!0;var i=document.getElementsByTagName("body")[0],n=document.createElement("script");n.type="text/javascript",n.src=t,n.onload=e,i.appendChild(n)}}function _slider_full(){_headerHeight=0,jQuery("#header").hasClass("transparent")||jQuery("#header").hasClass("translucent")?_headerHeight=0:(_headerHeight=jQuery("#header").outerHeight()||0,jQuery("#topBar").length>0&&(_topBarHeight=jQuery("#topBar").outerHeight()||0,_headerHeight+=_topBarHeight)),_screenHeight=jQuery(window).height()-_headerHeight,jQuery("#header").hasClass("static")&&(_screenHeight=jQuery(window).height()),jQuery("#slider").hasClass("halfheight")&&jQuery("#slider.halfheight").height(_screenHeight/2),jQuery("#slider").hasClass("thirdheight")&&jQuery("#slider.thirdheight").height(_screenHeight/1.5),jQuery("#slider").hasClass("fullheight")&&(jQuery("#slider.fullheight").height(_screenHeight),jQuery("#slider.fullheight-min").css({"min-height":_screenHeight+"px"})),window.width<960&&jQuery("#slider.mobile-fullheight").height(_screenHeight)}function _topNav(){function t(){(o=jQuery(document).scrollTop())>100?jQuery("#toTop").is(":hidden")&&jQuery("#toTop").show():jQuery("#toTop").is(":visible")&&jQuery("#toTop").hide()}function e(){jQuery("#sidepanel_overlay").unbind(),jQuery("#sidepanel_overlay").bind("click",function(){jQuery("a#sidepanel_btn").trigger("click")})}window.scrollTop=0,window._cmScroll=0;var i=jQuery("#header");jQuery(window).scroll(function(){t()});var n=!1;if(jQuery("#topMain a.dropdown-toggle").bind("click",function(t){"#"==jQuery(this).attr("href")&&t.preventDefault(),n=jQuery(this).parent().hasClass("resp-active"),jQuery("#topMain").find(".resp-active").removeClass("resp-active"),n||jQuery(this).parents("li").addClass("resp-active")}),jQuery("li.search i.fa").click(function(){jQuery("#header .search-box").is(":visible")?jQuery("#header .search-box").fadeOut(300):(jQuery(".search-box").fadeIn(300),jQuery("#header .search-box form input").focus(),jQuery("#header li.quick-cart div.quick-cart-box").is(":visible")&&jQuery("#header li.quick-cart div.quick-cart-box").fadeOut(300))}),0!=jQuery("#header li.search i.fa").size()&&(jQuery("#header .search-box, #header li.search i.fa").on("click",function(t){t.stopPropagation()}),jQuery("body").on("click",function(){jQuery("#header li.search .search-box").is(":visible")&&jQuery("#header .search-box").fadeOut(300)})),jQuery(document).bind("click",function(){jQuery("#header li.search .search-box").is(":visible")&&jQuery("#header .search-box").fadeOut(300)}),jQuery("#closeSearch").bind("click",function(t){t.preventDefault(),jQuery("#header .search-box").fadeOut(300)}),jQuery("button#page-menu-mobile").bind("click",function(){jQuery(this).next("ul").slideToggle(150)}),jQuery("li.quick-cart>a").click(function(t){t.preventDefault();var e=jQuery("li.quick-cart div.quick-cart-box");e.is(":visible")?e.fadeOut(300):(e.fadeIn(300),jQuery("li.search .search-box").is(":visible")&&jQuery(".search-box").fadeOut(300))}),0!=jQuery("li.quick-cart>a").size()&&(jQuery("li.quick-cart").on("click",function(t){t.stopPropagation()}),jQuery("body").on("click",function(){jQuery("li.quick-cart div.quick-cart-box").is(":visible")&&jQuery("li.quick-cart div.quick-cart-box").fadeOut(300)})),jQuery("#page-menu ul.menu-scrollTo>li").bind("click",function(t){var e=jQuery("a",this).attr("href");jQuery("a",this).hasClass("external")||(t.preventDefault(),jQuery("#page-menu ul.menu-scrollTo>li").removeClass("active"),jQuery(this).addClass("active"),jQuery(e).length>0&&(_padding_top=0,jQuery("#header").hasClass("sticky")&&(_padding_top=jQuery(e).css("padding-top"),_padding_top=_padding_top.replace("px","")),jQuery("html,body").animate({scrollTop:jQuery(e).offset().top-_padding_top},800,"easeInOutExpo")))}),window.currentScroll=0,jQuery("button.btn-mobile").bind("click",function(t){t.preventDefault(),jQuery(this).toggleClass("btn-mobile-active"),jQuery("html").removeClass("noscroll"),jQuery("#menu-overlay").remove(),jQuery("#topNav div.nav-main-collapse").hide(0),jQuery(this).hasClass("btn-mobile-active")?(jQuery("#topNav div.nav-main-collapse").show(0),jQuery("html").addClass("noscroll"),jQuery("body").append(''),window.currentScroll=jQuery(window).scrollTop()):jQuery("html,body").animate({scrollTop:currentScroll},300,"easeInOutExpo")}),i.hasClass("bottom"))i.addClass("dropup"),window.homeHeight=jQuery(window).outerHeight()-55,i.hasClass("sticky")&&(window.isOnTop=!0,jQuery(window).scroll(function(){jQuery(document).scrollTop()>window.homeHeight/2?i.removeClass("dropup"):i.addClass("dropup")}),jQuery(window).scroll(function(){jQuery(document).scrollTop()>window.homeHeight?!0===window.isOnTop&&(jQuery("#header").addClass("fixed"),i.removeClass("dropup"),window.isOnTop=!1):!1===window.isOnTop&&(jQuery("#header").removeClass("fixed"),i.addClass("dropup"),window.isOnTop=!0)}),jQuery(window).resize(function(){window.homeHeight=jQuery(window).outerHeight()}));else if(i.hasClass("sticky")){if(_topBar_H=jQuery("#topBar").outerHeight()||0,window.width<=992&&_topBar_H<1){o=jQuery(document).scrollTop();_header_H=i.outerHeight()||0,i.addClass("fixed"),jQuery("body").css({"padding-top":_header_H+"px"})}jQuery(window).scroll(function(){if(window.width>992&&_topBar_H<1||_topBar_H>0){var t=jQuery(document).scrollTop();t>_topBar_H?(i.addClass("fixed"),_header_H=i.outerHeight()||0,i.hasClass("transparent")||i.hasClass("translucent")||jQuery("body").css({"padding-top":_header_H+"px"})):(i.hasClass("transparent")||i.hasClass("translucent")||jQuery("body").css({"padding-top":"0px"}),i.removeClass("fixed"))}if(i.hasClass("transparent")){var e=jQuery("#topNav div.nav-main-collapse"),n=e.attr("data-switch-default")||"",o=e.attr("data-switch-scroll")||"";""==n&&""==o||(t>0?window._cmScroll<1&&(e.removeClass(n,o).addClass(o),window._cmScroll=1):t<1&&(e.removeClass(n,o).addClass(n),window._cmScroll=0))}})}else if(i.hasClass("static")&&i.hasClass("transparent")){if(_topBar_H=jQuery("#topBar").outerHeight()||0,window.width<=992&&_topBar_H<1){var o=jQuery(document).scrollTop();_header_H=i.outerHeight()||0,i.addClass("fixed")}jQuery(window).scroll(function(){(window.width>992&&_topBar_H<1||_topBar_H>0)&&(jQuery(document).scrollTop()>_topBar_H?(i.addClass("fixed"),_header_H=i.outerHeight()||0):i.removeClass("fixed"))})}else i.hasClass("static");if(jQuery("#slidetop a.slidetop-toggle").bind("click",function(){jQuery("#slidetop .container").slideToggle(150,function(){jQuery("#slidetop .container").is(":hidden")?jQuery("#slidetop").removeClass("active"):jQuery("#slidetop").addClass("active")})}),jQuery(document).keyup(function(t){27==t.keyCode&&jQuery("#slidetop").hasClass("active")&&jQuery("#slidetop .container").slideToggle(150,function(){jQuery("#slidetop").removeClass("active")})}),jQuery("a#sidepanel_btn").bind("click",function(t){t.preventDefault(),r="right",jQuery("#sidepanel").hasClass("sidepanel-inverse")&&(r="left"),jQuery("#sidepanel").is(":hidden")?(jQuery("body").append(''),"left"==r?jQuery("#sidepanel").stop().show().animate({left:"0px"},150):jQuery("#sidepanel").stop().show().animate({right:"0px"},150)):(jQuery("#sidepanel_overlay").remove(),"left"==r?jQuery("#sidepanel").stop().animate({left:"-300px"},300):jQuery("#sidepanel").stop().animate({right:"-300px"},300),setTimeout(function(){jQuery("#sidepanel").hide()},500)),e()}),jQuery("#sidepanel_close").bind("click",function(t){t.preventDefault(),jQuery("a#sidepanel_btn").trigger("click")}),jQuery(document).keyup(function(t){27==t.keyCode&&jQuery("#sidepanel").is(":visible")&&jQuery("a#sidepanel_btn").trigger("click")}),jQuery("#sidebar_vertical_btn").length>0&&jQuery("body").hasClass("menu-vertical-hide")){if(_paddingStatusL=jQuery("#mainMenu.sidebar-vertical").css("left"),_paddingStatusR=jQuery("#mainMenu.sidebar-vertical").css("right"),parseInt(_paddingStatusL)<0)r="left";else if(parseInt(_paddingStatusR)<0)r="right";else var r="left";jQuery("#sidebar_vertical_btn").bind("click",function(t){_paddingStatus=jQuery("#mainMenu.sidebar-vertical").css(r),parseInt(_paddingStatus)<0?"right"==r?jQuery("#mainMenu.sidebar-vertical").stop().animate({right:"0px"},200):jQuery("#mainMenu.sidebar-vertical").stop().animate({left:"0px"},200):"right"==r?jQuery("#mainMenu.sidebar-vertical").stop().animate({right:"-263px"},200):jQuery("#mainMenu.sidebar-vertical").stop().animate({left:"-263px"},200)}),jQuery(window).scroll(function(){_paddingStatus=parseInt(jQuery("#mainMenu.sidebar-vertical").css(r)),_paddingStatus>=0&&("right"==r?jQuery("#mainMenu.sidebar-vertical").stop().animate({right:"-263px"},200):jQuery("#mainMenu.sidebar-vertical").stop().animate({left:"-263px"},200))})}jQuery("#topBar").length>0&&jQuery("#topNav ul").addClass("has-topBar"),jQuery(window).scroll(function(){window.width<769&&(jQuery("#header li.quick-cart div.quick-cart-box").is(":visible")&&jQuery("#header li.quick-cart div.quick-cart-box").fadeOut(0),jQuery("#header li.search .search-box").is(":visible")&&jQuery("#header .search-box").fadeOut(0))})}function _megaNavHorizontal(){function t(){jQuery("#main-nav-overlay").remove(),jQuery("#header nav.main-nav").addClass("min-nav-active"),jQuery("body").append(''),jQuery("#header button.nav-toggle-close").bind("click",function(){jQuery("#header nav.main-nav").removeClass("min-nav-active")}),jQuery("#main-nav-overlay, #header").mouseover(function(){e()})}function e(){jQuery("#main-nav-overlay").remove(),jQuery("#header nav.main-nav").removeClass("min-nav-active")}if(jQuery("#wrapper nav.main-nav").length>0){var i=jQuery("#slider").width(),n=jQuery("#wrapper nav.main-nav").height();jQuery("#wrapper nav.main-nav>div>ul>li>.main-nav-submenu").css({"min-height":n+"px"}),jQuery("#wrapper nav.main-nav>div>ul>li.main-nav-expanded>.main-nav-submenu").css({width:i+"px"}),jQuery("#wrapper nav.main-nav>div>ul>li").bind("click",function(t){var e=jQuery(this);jQuery("div",e).hasClass("main-nav-open")||jQuery("#wrapper nav.main-nav>div>ul>li>.main-nav-submenu").removeClass("main-nav-open"),jQuery("div",e).toggleClass("main-nav-open")})}var o=jQuery("#header>.container").width()-278,r=jQuery("#header nav.main-nav").height();jQuery("#header nav.main-nav>div>ul>li>.main-nav-submenu").css({"min-height":r+"px"}),jQuery("#header nav.main-nav>div>ul>li.main-nav-expanded>.main-nav-submenu").css({width:o+"px"}),jQuery("#header nav.main-nav>div>ul>li").bind("click",function(t){var e=jQuery(this);jQuery("div",e).hasClass("main-nav-open")||jQuery("#header nav.main-nav>div>ul>li>.main-nav-submenu").removeClass("main-nav-open"),jQuery("div",e).toggleClass("main-nav-open")}),window.width>767?jQuery("#header button.nav-toggle").mouseover(function(e){e.preventDefault(),t()}):jQuery("#header button.nav-toggle").bind("click",function(e){e.preventDefault(),t()}),jQuery("body").on("click","#header button.nav-toggle, #header nav.main-nav",function(t){t.stopPropagation()}),jQuery("#header button.nav-toggle, #header nav.main-nav").mouseover(function(t){t.stopPropagation()}),jQuery(document).bind("click",function(){e()}),jQuery("nav.main-nav>div>ul>li a").bind("click",function(t){"#"==jQuery(this).attr("href")&&t.preventDefault()})}function _sideNav(){jQuery("div.side-nav").each(function(){var t=jQuery("ul",this);jQuery("button",this).bind("click",function(){t.slideToggle(300)})}),jQuery("div.side-nav>ul>li>a.dropdown-toggle").bind("click",function(t){t.preventDefault(),jQuery(this).next("ul").slideToggle(200),jQuery(this).closest("li").toggleClass("active")})}function _stickyFooter(){function t(){e=n.height(),i=jQuery(window).scrollTop()+jQuery(window).height()-e+"px",jQuery(document.body).height()+e>jQuery(window).height()?n.css({position:"absolute"}).stop().animate({top:i},0):n.css({position:"static"})}if(jQuery("#footer").hasClass("sticky")){var e=0,i=0,n=jQuery("#footer.sticky");t(),jQuery(window).scroll(t).resize(t)}}function _toggle(){jQuery("div.toggle.active > p").addClass("preview-active"),jQuery("div.toggle.active > div.toggle-content").slideDown(400),jQuery("div.toggle > label").click(function(t){var e=jQuery(this).parent(),i=jQuery(this).parents("div.toggle"),n=!1;if(i.hasClass("toggle-accordion")&&void 0!==t.originalEvent&&i.find("div.toggle.active > label").trigger("click"),e.toggleClass("active"),e.find("> p").get(0)){var o=(n=e.find("> p")).css("height"),r=n.css("height");n.css("height","auto"),n.css("height",o)}var a=e.find("> div.toggle-content");e.hasClass("active")?(jQuery(n).animate({height:r},350,function(){jQuery(this).addClass("preview-active")}),a.slideDown(350)):(jQuery(n).animate({height:25},350,function(){jQuery(this).removeClass("preview-active")}),a.slideUp(350))})}function _modalAutoLoad(){jQuery("div.modal").length>0&&jQuery("div.modal").each(function(){var t=jQuery(this),e=t.attr("id"),i=t.attr("data-autoload")||!1;""!=e&&"hidden"==localStorage.getItem(e)&&(i="false"),"true"==i&&jQuery(window).on("load",function(){var e=t.attr("data-autoload-delay")||1e3;setTimeout(function(){t.modal("toggle")},parseInt(e))}),jQuery("input.loadModalHide",this).bind("click",function(){jQuery(this).is(":checked")?(localStorage.setItem(e,"hidden"),console.log("[Modal Autoload #"+e+"] Added to localStorage")):(localStorage.removeItem(e),console.log("[Modal Autoload #"+e+"] Removed from localStorage"))})})}function _lightbox(){var t=jQuery(".lightbox");t.length>0&&loadScript("https://2017.igem.org/Team:Valencia_UPV/Templates:magnificPopupMinJS?action=raw&ctype=text/javascript",function(){if(void 0===jQuery.magnificPopup)return!1;jQuery.extend(!0,jQuery.magnificPopup.defaults,{tClose:"Close",tLoading:"Loading...",gallery:{tPrev:"Previous",tNext:"Next",tCounter:"%curr% / %total%"},image:{tError:"Image not loaded!"},ajax:{tError:"Content not loaded!"}}),t.each(function(){var t=jQuery(this),e=t.attr("data-plugin-options"),i={},n={type:"image",fixedContentPos:!1,fixedBgPos:!1,mainClass:"mfp-no-margins mfp-with-zoom",closeOnContentClick:!0,closeOnBgClick:!0,image:{verticalFit:!0},zoom:{enabled:!1,duration:300},gallery:{enabled:!1,navigateByImgClick:!0,preload:[0,1],arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',tPrev:"Previous",tNext:"Next",tCounter:'%curr% / %total%'}};t.data("plugin-options")&&(i=jQuery.extend({},n,e,t.data("plugin-options"))),jQuery(this).magnificPopup(i)})})}function _widget_flickr(){var t=jQuery(".widget-flickr");t.length>0&&loadScript("https://2017.igem.org/Team:Valencia_UPV/Templates:jflickrfeedMinJS?action=raw&ctype=text/javascript",function(){jQuery().jflickrfeed&&jQuery(".widget-flickr")&&t.each(function(){var t=jQuery(this),e=t.attr("data-id"),i=t.attr("data-limit")||14;t.jflickrfeed({limit:parseInt(i),qstrings:{id:e},itemTemplate:'
  • <a href="Template:Image" title="Template:Title"><img src="Template:Image s" alt="Template:Title" width="63" height="63" /></a>
  • '},function(t){_lightbox()})})})}function wheel(t){t.preventDefault()}function disable_scroll(){window.addEventListener&&window.addEventListener("DOMMouseScroll",wheel,!1),window.onmousewheel=document.onmousewheel=wheel}function enable_scroll(){window.removeEventListener&&window.removeEventListener("DOMMouseScroll",wheel,!1),window.onmousewheel=document.onmousewheel=document.onkeydown=null}function enable_overlay(){jQuery("span.global-overlay").remove(),jQuery("body").append('')}function disable_overlay(){jQuery("span.global-overlay").remove()}function _loadTetherBS4(){!function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e(require,exports,module):t.Tether=e()}(this,function(t,e,i){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){var e=t.getBoundingClientRect(),i={};for(var n in e)i[n]=e[n];if(t.ownerDocument!==document){var r=t.ownerDocument.defaultView.frameElement;if(r){var a=o(r);i.top+=a.top,i.bottom+=a.top,i.left+=a.left,i.right+=a.left}}return i}function r(t){var e=(getComputedStyle(t)||{}).position,i=[];if("fixed"===e)return[t];for(var n=t;(n=n.parentNode)&&n&&1===n.nodeType;){var o=void 0;try{o=getComputedStyle(n)}catch(t){}if(void 0===o||null===o)return i.push(n),i;var r=o,a=r.overflow,s=r.overflowX,l=r.overflowY;/(auto|scroll)/.test(a+l+s)&&("absolute"!==e||["relative","absolute","fixed"].indexOf(o.position)>=0)&&i.push(n)}return i.push(t.ownerDocument.body),t.ownerDocument!==document&&i.push(t.ownerDocument.defaultView),i}function a(){_&&document.body.removeChild(_),_=null}function s(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var i=e.documentElement,n=o(t),r=S();return n.top-=r.top,n.left-=r.left,void 0===n.width&&(n.width=document.body.scrollWidth-n.left-n.right),void 0===n.height&&(n.height=document.body.scrollHeight-n.top-n.bottom),n.top=n.top-i.clientTop,n.left=n.left-i.clientLeft,n.right=e.body.clientWidth-n.width-n.left,n.bottom=e.body.clientHeight-n.height-n.top,n}function l(t){return t.offsetParent||document.documentElement}function u(){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");c(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var i=t.offsetWidth;e.style.overflow="scroll";var n=t.offsetWidth;i===n&&(n=e.clientWidth),document.body.removeChild(e);var o=i-n;return{width:o,height:o}}function c(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var i in e)({}).hasOwnProperty.call(e,i)&&(t[i]=e[i])}),t}function d(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var i=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),n=p(t).replace(i," ");v(t,n)}}function h(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{d(t,e);var i=p(t)+" "+e;v(t,i)}}function f(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=p(t);return new RegExp("(^| )"+e+"( |$)","gi").test(i)}function p(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function v(t,e){t.setAttribute("class",e)}function g(t,e,i){i.forEach(function(i){-1===e.indexOf(i)&&f(t,i)&&d(t,i)}),e.forEach(function(e){f(t,e)||h(t,e)})}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function y(t,e){var i=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+i>=e&&e>=t-i}function b(){return"undefined"!=typeof performance&&void 0!==performance.now?performance.now():+new Date}function w(){for(var t={top:0,left:0},e=arguments.length,i=Array(e),n=0;e>n;n++)i[n]=arguments[n];return i.forEach(function(e){var i=e.top,n=e.left;"string"==typeof i&&(i=parseFloat(i,10)),"string"==typeof n&&(n=parseFloat(n,10)),t.top+=i,t.left+=n}),t}function j(t,e){return"string"==typeof t.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeof t.top&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top,10)/100*e.height),t}function Q(t,e){return"scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),void 0!==e.nodeType&&function(){var t=e,i=s(e),n=i,o=getComputedStyle(e);if(e=[n.left,n.top,i.width+n.left,i.height+n.top],t.ownerDocument!==document){var r=t.ownerDocument.defaultView;e[0]+=r.pageXOffset,e[1]+=r.pageYOffset,e[2]+=r.pageXOffset,e[3]+=r.pageYOffset}X.forEach(function(t,i){"Top"===(t=t[0].toUpperCase()+t.substr(1))||"Left"===t?e[i]+=parseFloat(o["border"+t+"Width"]):e[i]-=parseFloat(o["border"+t+"Width"])})}(),e}var C=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),x=void 0;void 0===x&&(x={modules:[]});var _=null,O=function(){var t=0;return function(){return++t}}(),k={},S=function(){var t=_;t||((t=document.createElement("div")).setAttribute("data-tether-id",O()),c(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),_=t);var e=t.getAttribute("data-tether-id");return void 0===k[e]&&(k[e]=o(t),M(function(){delete k[e]})),k[e]},E=[],M=function(t){E.push(t)},T=function(){for(var t=void 0;t=E.pop();)t()},P=function(){function t(){n(this,t)}return C(t,[{key:"on",value:function(t,e,i){var n=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:i,once:n})}},{key:"once",value:function(t,e,i){this.on(t,e,i,!0)}},{key:"off",value:function(t,e){if(void 0!==this.bindings&&void 0!==this.bindings[t])if(void 0===e)delete this.bindings[t];else for(var i=0;i<this.bindings[t].length;)this.bindings[t][i].handler===e?this.bindings[t].splice(i,1):++i}},{key:"trigger",value:function(t){if(void 0!==this.bindings&&this.bindings[t]){for(var e=0,i=arguments.length,n=Array(i>1?i-1:0),o=1;i>o;o++)n[o-1]=arguments[o];for(;e<this.bindings[t].length;){var r=this.bindings[t][e],a=r.handler,s=r.ctx,l=r.once,u=s;void 0===u&&(u=this),a.apply(u,n),l?this.bindings[t].splice(e,1):++e}}}}]),t}();x.Utils={getActualBoundingClientRect:o,getScrollParents:r,getBounds:s,getOffsetParent:l,extend:c,addClass:h,removeClass:d,hasClass:f,updateClasses:g,defer:M,flush:T,uniqueId:O,Evented:P,getScrollBarSize:u,removeUtilElements:a};var A=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),C=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),H=function(t,e,i){for(var n=!0;n;){var o=t,r=e,a=i;n=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,r);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(a)}var u=Object.getPrototypeOf(o);if(null===u)return;t=u,e=r,i=a,n=!0,s=u=void 0}};if(void 0===x)throw new Error("You must include the utils.js file before tether.js");var B=x.Utils,r=B.getScrollParents,s=B.getBounds,l=B.getOffsetParent,c=B.extend,h=B.addClass,d=B.removeClass,g=B.updateClasses,M=B.defer,T=B.flush,u=B.getScrollBarSize,a=B.removeUtilElements,I=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],i=0;i<e.length;++i){var n=e[i];if(void 0!==t.style[n])return n}}(),N=[],z=function(){N.forEach(function(t){t.position(!1)}),T()};!function(){var t=null,e=null,i=null,n=function n(){return void 0!==e&&e>16?(e=Math.min(e-16,250),void(i=setTimeout(n,250))):void(void 0!==t&&b()-t<10||(null!=i&&(clearTimeout(i),i=null),t=b(),z(),e=b()-t))};"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,n)})}();var L={center:"center",left:"right",right:"left"},D={middle:"middle",top:"bottom",bottom:"top"},q={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},W=function(t,e){var i=t.left,n=t.top;return"auto"===i&&(i=L[e.left]),"auto"===n&&(n=D[e.top]),{left:i,top:n}},F=function(t){var e=t.left,i=t.top;return void 0!==q[t.left]&&(e=q[t.left]),void 0!==q[t.top]&&(i=q[t.top]),{left:e,top:i}},V=function(t){var e=t.split(" "),i=A(e,2);return{top:i[0],left:i[1]}},U=V,Y=function(t){function e(t){var i=this;n(this,e),H(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.position=this.position.bind(this),N.push(this),this.history=[],this.setOptions(t,!1),x.modules.forEach(function(t){void 0!==t.initialize&&t.initialize.call(i)}),this.position()}return m(e,t),C(e,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return void 0!==e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var e=this,i=arguments.length<=1||void 0===arguments[1]||arguments[1],n={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=c(n,t);var o=this.options,a=o.element,s=o.target,l=o.targetModifier;if(this.element=a,this.target=s,this.targetModifier=l,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if(void 0===e[t])throw new Error("Tether Error: Both element and target must be defined");void 0!==e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),h(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&h(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=U(this.options.targetAttachment),this.attachment=U(this.options.attachment),this.offset=V(this.options.offset),this.targetOffset=V(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=r(this.target),!1!==this.options.enabled&&this.enable(i)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return s(this.target);if("visible"===this.targetModifier)return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:((r={height:(t=s(this.target)).height,width:t.width,top:t.top,left:t.left}).height=Math.min(r.height,t.height-(pageYOffset-t.top)),r.height=Math.min(r.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),r.height=Math.min(innerHeight,r.height),r.height-=2,r.width=Math.min(r.width,t.width-(pageXOffset-t.left)),r.width=Math.min(r.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),r.width=Math.min(innerWidth,r.width),r.width-=2,r.top<pageYOffset&&(r.top=pageYOffset),r.left<pageXOffset&&(r.left=pageXOffset),r);if("scroll-handle"===this.targetModifier){var t=void 0,e=this.target;e===document.body?(e=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=s(e);var i=getComputedStyle(e),n=0;(e.scrollWidth>e.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(n=15);var o=t.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-n,r={width:15,height:.975*o*(o/e.scrollHeight),left:t.left+t.width-parseFloat(i.borderLeftWidth)-15},a=0;408>o&&this.target===document.body&&(a=-11e-5*Math.pow(o,2)-.00727*o+22.58),this.target!==document.body&&(r.height=Math.max(r.height,24));var l=this.target.scrollTop/(e.scrollHeight-o);return r.top=l*(o-r.height-a)+t.top+parseFloat(i.borderTopWidth),this.target===document.body&&(r.height=Math.max(r.height,24)),r}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return void 0===this._cache&&(this._cache={}),void 0===this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&h(this.target,this.getClass("enabled")),h(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function(){var t=this;d(this.target,this.getClass("enabled")),d(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function(){var t=this;this.disable(),N.forEach(function(e,i){e===t&&N.splice(i,1)}),0===N.length&&a()}},{key:"updateAttachClasses",value:function(t,e){var i=this;t=t||this.attachment,e=e||this.targetAttachment;var n=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var o=this._addAttachClasses;t.top&&o.push(this.getClass("element-attached")+"-"+t.top),t.left&&o.push(this.getClass("element-attached")+"-"+t.left),e.top&&o.push(this.getClass("target-attached")+"-"+e.top),e.left&&o.push(this.getClass("target-attached")+"-"+e.left);var r=[];n.forEach(function(t){r.push(i.getClass("element-attached")+"-"+t),r.push(i.getClass("target-attached")+"-"+t)}),M(function(){void 0!==i._addAttachClasses&&(g(i.element,i._addAttachClasses,r),!1!==i.options.addTargetClasses&&g(i.target,i._addAttachClasses,r),delete i._addAttachClasses)})}},{key:"position",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var i=W(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,i);var n=this.cache("element-bounds",function(){return s(t.element)}),o=n.width,r=n.height;if(0===o&&0===r&&void 0!==this.lastSize){var a=this.lastSize;o=a.width,r=a.height}else this.lastSize={width:o,height:r};var c=this.cache("target-bounds",function(){return t.getTargetBounds()}),d=c,h=j(F(this.attachment),{width:o,height:r}),f=j(F(i),d),p=j(this.offset,{width:o,height:r}),v=j(this.targetOffset,d);h=w(h,p),f=w(f,v);for(var g=c.left+f.left-h.left,m=c.top+f.top-h.top,y=0;y<x.modules.length;++y){var b=x.modules[y].position.call(this,{left:g,top:m,targetAttachment:i,targetPos:c,elementPos:n,offset:h,targetOffset:f,manualOffset:p,manualTargetOffset:v,scrollbarSize:O,attachment:this.attachment});if(!1===b)return!1;void 0!==b&&"object"==typeof b&&(m=b.top,g=b.left)}var Q={page:{top:m,left:g},viewport:{top:m-pageYOffset,bottom:pageYOffset-m-r+innerHeight,left:g-pageXOffset,right:pageXOffset-g-o+innerWidth}},C=this.target.ownerDocument,_=C.defaultView,O=void 0;return C.body.scrollWidth>_.innerWidth&&(O=this.cache("scrollbar-size",u),Q.viewport.bottom-=O.height),C.body.scrollHeight>_.innerHeight&&(O=this.cache("scrollbar-size",u),Q.viewport.right-=O.width),(-1===["","static"].indexOf(C.body.style.position)||-1===["","static"].indexOf(C.body.parentElement.style.position))&&(Q.page.bottom=C.body.scrollHeight-m-r,Q.page.right=C.body.scrollWidth-g-o),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var e=t.cache("target-offsetparent",function(){return l(t.target)}),i=t.cache("target-offsetparent-bounds",function(){return s(e)}),n=getComputedStyle(e),o=i,r={};if(["Top","Left","Bottom","Right"].forEach(function(t){r[t.toLowerCase()]=parseFloat(n["border"+t+"Width"])}),i.right=C.body.scrollWidth-i.left-o.width+r.right,i.bottom=C.body.scrollHeight-i.top-o.height+r.bottom,Q.page.top>=i.top+r.top&&Q.page.bottom>=i.bottom&&Q.page.left>=i.left+r.left&&Q.page.right>=i.right){var a=e.scrollTop,u=e.scrollLeft;Q.offset={top:Q.page.top-i.top+a-r.top,left:Q.page.left-i.left+u-r.left}}}(),this.move(Q),this.history.unshift(Q),this.history.length>3&&this.history.pop(),e&&T(),!0}}},{key:"move",value:function(t){var e=this;if(void 0!==this.element.parentNode){var i={};for(var n in t){i[n]={};for(var o in t[n]){for(var r=!1,a=0;a<this.history.length;++a){var s=this.history[a];if(void 0!==s[n]&&!y(s[n][o],t[n][o])){r=!0;break}}r||(i[n][o]=!0)}}var u={top:"",left:"",right:"",bottom:""},d=function(t,i){if(!1!==(void 0!==e.options.optimizations?e.options.optimizations.gpu:null)){var n=void 0,o=void 0;t.top?(u.top=0,n=i.top):(u.bottom=0,n=-i.bottom),t.left?(u.left=0,o=i.left):(u.right=0,o=-i.right),u[I]="translateX("+Math.round(o)+"px) translateY("+Math.round(n)+"px)","msTransform"!==I&&(u[I]+=" translateZ(0)")}else t.top?u.top=i.top+"px":u.bottom=i.bottom+"px",t.left?u.left=i.left+"px":u.right=i.right+"px"},h=!1;if((i.page.top||i.page.bottom)&&(i.page.left||i.page.right)?(u.position="absolute",d(i.page,t.page)):(i.viewport.top||i.viewport.bottom)&&(i.viewport.left||i.viewport.right)?(u.position="fixed",d(i.viewport,t.viewport)):void 0!==i.offset&&i.offset.top&&i.offset.left?function(){u.position="absolute";var n=e.cache("target-offsetparent",function(){return l(e.target)});l(e.element)!==n&&M(function(){e.element.parentNode.removeChild(e.element),n.appendChild(e.element)}),d(i.offset,t.offset),h=!0}():(u.position="absolute",d({top:!0,left:!0},t.page)),!h){for(var f=!0,p=this.element.parentNode;p&&1===p.nodeType&&"BODY"!==p.tagName;){if("static"!==getComputedStyle(p).position){f=!1;break}p=p.parentNode}f||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var v={},g=!1;for(var o in u){var m=u[o];this.element.style[o]!==m&&(g=!0,v[o]=m)}g&&M(function(){c(e.element.style,v)})}}}]),e}(P);Y.modules=[],x.position=z;var R=c(Y,x),A=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),s=(B=x.Utils).getBounds,c=B.extend,g=B.updateClasses,M=B.defer,X=["left","top","right","bottom"];x.modules.push({position:function(t){var e=this,i=t.top,n=t.left,o=t.targetAttachment;if(!this.options.constraints)return!0;var r=this.cache("element-bounds",function(){return s(e.element)}),a=r.height,l=r.width;if(0===l&&0===a&&void 0!==this.lastSize){var u=this.lastSize;l=u.width,a=u.height}var d=this.cache("target-bounds",function(){return e.getTargetBounds()}),h=d.height,f=d.width,p=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,i=t.pinnedClass;e&&p.push(e),i&&p.push(i)}),p.forEach(function(t){["left","top","right","bottom"].forEach(function(e){p.push(t+"-"+e)})});var v=[],m=c({},o),y=c({},this.attachment);return this.options.constraints.forEach(function(t){var r=t.to,s=t.attachment,u=t.pin;void 0===s&&(s="");var c=void 0,d=void 0;if(s.indexOf(" ")>=0){var p=s.split(" "),g=A(p,2);d=g[0],c=g[1]}else c=d=s;var b=Q(e,r);("target"===d||"both"===d)&&(i<b[1]&&"top"===m.top&&(i+=h,m.top="bottom"),i+a>b[3]&&"bottom"===m.top&&(i-=h,m.top="top")),"together"===d&&("top"===m.top&&("bottom"===y.top&&i<b[1]?(i+=h,m.top="bottom",i+=a,y.top="top"):"top"===y.top&&i+a>b[3]&&i-(a-h)>=b[1]&&(i-=a-h,m.top="bottom",y.top="bottom")),"bottom"===m.top&&("top"===y.top&&i+a>b[3]?(i-=h,m.top="top",i-=a,y.top="bottom"):"bottom"===y.top&&i<b[1]&&i+(2*a-h)<=b[3]&&(i+=a-h,m.top="top",y.top="top")),"middle"===m.top&&(i+a>b[3]&&"top"===y.top?(i-=a,y.top="bottom"):i<b[1]&&"bottom"===y.top&&(i+=a,y.top="top"))),("target"===c||"both"===c)&&(n<b[0]&&"left"===m.left&&(n+=f,m.left="right"),n+l>b[2]&&"right"===m.left&&(n-=f,m.left="left")),"together"===c&&(n<b[0]&&"left"===m.left?"right"===y.left?(n+=f,m.left="right",n+=l,y.left="left"):"left"===y.left&&(n+=f,m.left="right",n-=l,y.left="right"):n+l>b[2]&&"right"===m.left?"left"===y.left?(n-=f,m.left="left",n-=l,y.left="right"):"right"===y.left&&(n-=f,m.left="left",n+=l,y.left="left"):"center"===m.left&&(n+l>b[2]&&"left"===y.left?(n-=l,y.left="right"):n<b[0]&&"right"===y.left&&(n+=l,y.left="left"))),("element"===d||"both"===d)&&(i<b[1]&&"bottom"===y.top&&(i+=a,y.top="top"),i+a>b[3]&&"top"===y.top&&(i-=a,y.top="bottom")),("element"===c||"both"===c)&&(n<b[0]&&("right"===y.left?(n+=l,y.left="left"):"center"===y.left&&(n+=l/2,y.left="left")),n+l>b[2]&&("left"===y.left?(n-=l,y.left="right"):"center"===y.left&&(n-=l/2,y.left="right"))),"string"==typeof u?u=u.split(",").map(function(t){return t.trim()}):!0===u&&(u=["top","left","right","bottom"]),u=u||[];var w=[],j=[];i<b[1]&&(u.indexOf("top")>=0?(i=b[1],w.push("top")):j.push("top")),i+a>b[3]&&(u.indexOf("bottom")>=0?(i=b[3]-a,w.push("bottom")):j.push("bottom")),n<b[0]&&(u.indexOf("left")>=0?(n=b[0],w.push("left")):j.push("left")),n+l>b[2]&&(u.indexOf("right")>=0?(n=b[2]-l,w.push("right")):j.push("right")),w.length&&function(){var t=void 0;t=void 0!==e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),v.push(t),w.forEach(function(e){v.push(t+"-"+e)})}(),j.length&&function(){var t=void 0;t=void 0!==e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),v.push(t),j.forEach(function(e){v.push(t+"-"+e)})}(),(w.indexOf("left")>=0||w.indexOf("right")>=0)&&(y.left=m.left=!1),(w.indexOf("top")>=0||w.indexOf("bottom")>=0)&&(y.top=m.top=!1),(m.top!==o.top||m.left!==o.left||y.top!==e.attachment.top||y.left!==e.attachment.left)&&(e.updateAttachClasses(y,m),e.trigger("update",{attachment:y,targetAttachment:m}))}),M(function(){!1!==e.options.addTargetClasses&&g(e.target,v,p),g(e.element,v,p)}),{top:i,left:n}}});var s=(B=x.Utils).getBounds,g=B.updateClasses,M=B.defer;x.modules.push({position:function(t){var e=this,i=t.top,n=t.left,o=this.cache("element-bounds",function(){return s(e.element)}),r=o.height,a=o.width,l=this.getTargetBounds(),u=i+r,c=n+a,d=[];i<=l.bottom&&u>=l.top&&["left","right"].forEach(function(t){var e=l[t];(e===n||e===c)&&d.push(t)}),n<=l.right&&c>=l.left&&["top","bottom"].forEach(function(t){var e=l[t];(e===i||e===u)&&d.push(t)});var h=[],f=[],p=["left","top","right","bottom"];return h.push(this.getClass("abutted")),p.forEach(function(t){h.push(e.getClass("abutted")+"-"+t)}),d.length&&f.push(this.getClass("abutted")),d.forEach(function(t){f.push(e.getClass("abutted")+"-"+t)}),M(function(){!1!==e.options.addTargetClasses&&g(e.target,f,h),g(e.element,f,h)}),!0}});A=function(){function t(t,e){var i=[],n=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(i.push(a.value),!e||i.length!==e);n=!0);}catch(t){o=!0,r=t}finally{try{!n&&s.return&&s.return()}finally{if(o)throw r}}return i}return function(e,i){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,i);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return x.modules.push({position:function(t){var e=t.top,i=t.left;if(this.options.shift){var n=this.options.shift;"function"==typeof this.options.shift&&(n=this.options.shift.call(this,{top:e,left:i}));var o=void 0,r=void 0;if("string"==typeof n){(n=n.split(" "))[1]=n[1]||n[0];var a=A(n,2);o=a[0],r=a[1],o=parseFloat(o,10),r=parseFloat(r,10)}else o=n.top,r=n.left;return e+=o,i+=r,{top:e,left:i}}}}),R})}window.width=jQuery(window).width(),window.height=jQuery(window).height(),jQuery(window).ready(function(){jQuery.fn.extend({size:function(){return this.length}}),_loadTetherBS4(),loadScript("https://2017.igem.org/Team:Valencia_UPV/Templates:bootstrapMin?action=raw&ctype=text/javascript",function(){jQuery("body").hasClass("enable-materialdesign")&&loadScript("https://2017.igem.org/Team:Valencia_UPV/Templates:materialMin?action=raw&ctype=text/javascript"),Init(!1)}),jQuery("html").hasClass("chrome")&&jQuery("body").hasClass("smoothscroll")&&navigator.platform.indexOf("Mac")<0&&loadScript("https://2017.igem.org/Team:Valencia_UPV/Templates:smoothScroll?action=raw&ctype=text/javascript",function(){jQuery.smoothScroll()})}),jQuery("#preloader").length>0&&jQuery(window).on("load",function(){jQuery("#preloader").fadeOut(1e3,function(){jQuery("#preloader").remove()})});var _arr={},isMobile={iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)||navigator.userAgent.match(/WPDesktop/i)},any:function(){return isMobile.iOS()||isMobile.Android()||isMobile.BlackBerry()||isMobile.Opera()||isMobile.Windows()}};Number.prototype.formatMoney=function(t,e,i){var n=this,t=isNaN(t=Math.abs(t))?2:t,e=void 0==e?".":e,i=void 0==i?",":i,o=n<0?"-":"",r=String(parseInt(n=Math.abs(Number(n)||0).toFixed(t))),a=(a=r.length)>3?a%3:0;return o+(a?r.substr(0,a)+i:"")+r.substr(a).replace(/(\d{3})(?=\d)/g,"$1"+i)+(t?e+Math.abs(n-r).toFixed(t).slice(2):"")},function(t){t.fn.appear=function(e,i){var n=t.extend({data:void 0,one:!0,accX:0,accY:0},i);return this.each(function(){var i=t(this);if(i.appeared=!1,e){var o=t(window),r=function(){if(i.is(":visible")){var t=o.scrollLeft(),e=o.scrollTop(),r=i.offset(),a=r.left,s=r.top,l=n.accX,u=n.accY,c=i.height(),d=o.height(),h=i.width(),f=o.width();s+c+u>=e&&s<=e+d+u&&a+h+l>=t&&a<=t+f+l?i.appeared||i.trigger("appear",n.data):i.appeared=!1}else i.appeared=!1},a=function(){if(i.appeared=!0,n.one){o.unbind("scroll",r);var a=t.inArray(r,t.fn.appear.checks);a>=0&&t.fn.appear.checks.splice(a,1)}e.apply(this,arguments)};n.one?i.one("appear",n.data,a):i.bind("appear",n.data,a),o.scroll(r),t.fn.appear.checks.push(r),r()}else i.trigger("appear",n.data)})},t.extend(t.fn.appear,{checks:[],timeout:null,checkAll:function(){var e=t.fn.appear.checks.length;if(e>0)for(;e--;)t.fn.appear.checks[e]()},run:function(){t.fn.appear.timeout&&clearTimeout(t.fn.appear.timeout),t.fn.appear.timeout=setTimeout(t.fn.appear.checkAll,20)}}),t.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],function(e,i){var n=t.fn[i];n&&(t.fn[i]=function(){var e=n.apply(this,arguments);return t.fn.appear.run(),e})})}(jQuery),jQuery.fn.parallax=function(t,e,i){function n(){var n=jQuery(window).scrollTop();o=i?function(t){return t.outerHeight(!0)}:function(t){return t.height()},a.each(function(){var i=jQuery(this),a=i.offset().top,s=o(i);if(!(n>a+s||a>n+window.height)){var l=Math.round((r-n)*e);i.css("backgroundPosition",t+" "+l+"px")}})}var o,r,a=jQuery(this);(arguments.length<1||null===t)&&(t="50%"),(arguments.length<2||null===e)&&(e=.1),(arguments.length<3||null===i)&&(i=!0),a.each(function(){(r=a.offset().top)<window.height&&(r=0)}),jQuery(window).bind("scroll",n).resize(n),n()},jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,i,n,o){return jQuery.easing[jQuery.easing.def](t,e,i,n,o)},easeInQuad:function(t,e,i,n,o){return n*(e/=o)*e+i},easeOutQuad:function(t,e,i,n,o){return-n*(e/=o)*(e-2)+i},easeInOutQuad:function(t,e,i,n,o){return(e/=o/2)<1?n/2*e*e+i:-n/2*(--e*(e-2)-1)+i},easeInCubic:function(t,e,i,n,o){return n*(e/=o)*e*e+i},easeOutCubic:function(t,e,i,n,o){return n*((e=e/o-1)*e*e+1)+i},easeInOutCubic:function(t,e,i,n,o){return(e/=o/2)<1?n/2*e*e*e+i:n/2*((e-=2)*e*e+2)+i},easeInQuart:function(t,e,i,n,o){return n*(e/=o)*e*e*e+i},easeOutQuart:function(t,e,i,n,o){return-n*((e=e/o-1)*e*e*e-1)+i},easeInOutQuart:function(t,e,i,n,o){return(e/=o/2)<1?n/2*e*e*e*e+i:-n/2*((e-=2)*e*e*e-2)+i},easeInQuint:function(t,e,i,n,o){return n*(e/=o)*e*e*e*e+i},easeOutQuint:function(t,e,i,n,o){return n*((e=e/o-1)*e*e*e*e+1)+i},easeInOutQuint:function(t,e,i,n,o){return(e/=o/2)<1?n/2*e*e*e*e*e+i:n/2*((e-=2)*e*e*e*e+2)+i},easeInSine:function(t,e,i,n,o){return-n*Math.cos(e/o*(Math.PI/2))+n+i},easeOutSine:function(t,e,i,n,o){return n*Math.sin(e/o*(Math.PI/2))+i},easeInOutSine:function(t,e,i,n,o){return-n/2*(Math.cos(Math.PI*e/o)-1)+i},easeInExpo:function(t,e,i,n,o){return 0==e?i:n*Math.pow(2,10*(e/o-1))+i},easeOutExpo:function(t,e,i,n,o){return e==o?i+n:n*(1-Math.pow(2,-10*e/o))+i},easeInOutExpo:function(t,e,i,n,o){return 0==e?i:e==o?i+n:(e/=o/2)<1?n/2*Math.pow(2,10*(e-1))+i:n/2*(2-Math.pow(2,-10*--e))+i},easeInCirc:function(t,e,i,n,o){return-n*(Math.sqrt(1-(e/=o)*e)-1)+i},easeOutCirc:function(t,e,i,n,o){return n*Math.sqrt(1-(e=e/o-1)*e)+i},easeInOutCirc:function(t,e,i,n,o){return(e/=o/2)<1?-n/2*(Math.sqrt(1-e*e)-1)+i:n/2*(Math.sqrt(1-(e-=2)*e)+1)+i},easeInElastic:function(t,e,i,n,o){var r=1.70158,a=0,s=n;if(0==e)return i;if(1==(e/=o))return i+n;if(a||(a=.3*o),s<Math.abs(n)){s=n;r=a/4}else r=a/(2*Math.PI)*Math.asin(n/s);return-s*Math.pow(2,10*(e-=1))*Math.sin((e*o-r)*(2*Math.PI)/a)+i},easeOutElastic:function(t,e,i,n,o){var r=1.70158,a=0,s=n;if(0==e)return i;if(1==(e/=o))return i+n;if(a||(a=.3*o),s<Math.abs(n)){s=n;r=a/4}else r=a/(2*Math.PI)*Math.asin(n/s);return s*Math.pow(2,-10*e)*Math.sin((e*o-r)*(2*Math.PI)/a)+n+i},easeInOutElastic:function(t,e,i,n,o){var r=1.70158,a=0,s=n;if(0==e)return i;if(2==(e/=o/2))return i+n;if(a||(a=o*(.3*1.5)),s<Math.abs(n)){s=n;r=a/4}else r=a/(2*Math.PI)*Math.asin(n/s);return e<1?s*Math.pow(2,10*(e-=1))*Math.sin((e*o-r)*(2*Math.PI)/a)*-.5+i:s*Math.pow(2,-10*(e-=1))*Math.sin((e*o-r)*(2*Math.PI)/a)*.5+n+i},easeInBack:function(t,e,i,n,o,r){return void 0==r&&(r=1.70158),n*(e/=o)*e*((r+1)*e-r)+i},easeOutBack:function(t,e,i,n,o,r){return void 0==r&&(r=1.70158),n*((e=e/o-1)*e*((r+1)*e+r)+1)+i},easeInOutBack:function(t,e,i,n,o,r){return void 0==r&&(r=1.70158),(e/=o/2)<1?n/2*(e*e*((1+(r*=1.525))*e-r))+i:n/2*((e-=2)*e*((1+(r*=1.525))*e+r)+2)+i},easeInBounce:function(t,e,i,n,o){return n-jQuery.easing.easeOutBounce(t,o-e,0,n,o)+i},easeOutBounce:function(t,e,i,n,o){return(e/=o)<1/2.75?n*(7.5625*e*e)+i:e<2/2.75?n*(7.5625*(e-=1.5/2.75)*e+.75)+i:e<2.5/2.75?n*(7.5625*(e-=2.25/2.75)*e+.9375)+i:n*(7.5625*(e-=2.625/2.75)*e+.984375)+i},easeInOutBounce:function(t,e,i,n,o){return e<o/2?.5*jQuery.easing.easeInBounce(t,2*e,0,n,o)+i:.5*jQuery.easing.easeOutBounce(t,2*e-o,0,n,o)+.5*n+i}}),function(){var t,e,i,n,o,r=function(t,e){return function(){return t.apply(e,arguments)}},a=[].indexOf||function(t){for(var e=0,i=this.length;i>e;e++)if(e in this&&this[e]===t)return e;return-1};e=function(){function t(){}return t.prototype.extend=function(t,e){var i,n;for(i in e)n=e[i],null==t[i]&&(t[i]=n);return t},t.prototype.isMobile=function(t){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)},t.prototype.addEvent=function(t,e,i){return null!=t.addEventListener?t.addEventListener(e,i,!1):null!=t.attachEvent?t.attachEvent("on"+e,i):t[e]=i},t.prototype.removeEvent=function(t,e,i){return null!=t.removeEventListener?t.removeEventListener(e,i,!1):null!=t.detachEvent?t.detachEvent("on"+e,i):delete t[e]},t.prototype.innerHeight=function(){return"innerHeight"in window?window.innerHeight:document.documentElement.clientHeight},t}(),i=this.WeakMap||this.MozWeakMap||(i=function(){function t(){this.keys=[],this.values=[]}return t.prototype.get=function(t){var e,i,n,o;for(e=i=0,n=(o=this.keys).length;n>i;e=++i)if(o[e]===t)return this.values[e]},t.prototype.set=function(t,e){var i,n,o,r;for(i=n=0,o=(r=this.keys).length;o>n;i=++n)if(r[i]===t)return void(this.values[i]=e);return this.keys.push(t),this.values.push(e)},t}()),t=this.MutationObserver||this.WebkitMutationObserver||this.MozMutationObserver||(t=function(){function t(){"undefined"!=typeof console&&null!==console&&console.warn("MutationObserver is not supported by your browser."),"undefined"!=typeof console&&null!==console&&console.warn("WOW.js cannot detect dom mutations, please call .sync() after loading new content.")}return t.notSupported=!0,t.prototype.observe=function(){},t}()),n=this.getComputedStyle||function(t){return this.getPropertyValue=function(e){var i;return"float"===e&&(e="styleFloat"),o.test(e)&&e.replace(o,function(t,e){return e.toUpperCase()}),(null!=(i=t.currentStyle)?i[e]:void 0)||null},this},o=/(\-([a-z]){1})/g,this.WOW=function(){function o(t){null==t&&(t={}),this.scrollCallback=r(this.scrollCallback,this),this.scrollHandler=r(this.scrollHandler,this),this.start=r(this.start,this),this.scrolled=!0,this.config=this.util().extend(t,this.defaults),this.animationNameCache=new i}return o.prototype.defaults={boxClass:"wow",animateClass:"animated",offset:0,mobile:!0,live:!0,callback:null},o.prototype.init=function(){var t;return this.element=window.document.documentElement,"interactive"===(t=document.readyState)||"complete"===t?this.start():this.util().addEvent(document,"DOMContentLoaded",this.start),this.finished=[]},o.prototype.start=function(){var e,i,n,o;if(this.stopped=!1,this.boxes=function(){var t,i,n,o;for(o=[],t=0,i=(n=this.element.querySelectorAll("."+this.config.boxClass)).length;i>t;t++)e=n[t],o.push(e);return o}.call(this),this.all=function(){var t,i,n,o;for(o=[],t=0,i=(n=this.boxes).length;i>t;t++)e=n[t],o.push(e);return o}.call(this),this.boxes.length)if(this.disabled())this.resetStyle();else for(o=this.boxes,i=0,n=o.length;n>i;i++)e=o[i],this.applyStyle(e,!0);return this.disabled()||(this.util().addEvent(window,"scroll",this.scrollHandler),this.util().addEvent(window,"resize",this.scrollHandler),this.interval=setInterval(this.scrollCallback,50)),this.config.live?new t(function(t){return function(e){var i,n,o,r,a;for(a=[],o=0,r=e.length;r>o;o++)n=e[o],a.push(function(){var t,e,o,r;for(r=[],t=0,e=(o=n.addedNodes||[]).length;e>t;t++)i=o[t],r.push(this.doSync(i));return r}.call(t));return a}}(this)).observe(document.body,{childList:!0,subtree:!0}):void 0},o.prototype.stop=function(){return this.stopped=!0,this.util().removeEvent(window,"scroll",this.scrollHandler),this.util().removeEvent(window,"resize",this.scrollHandler),null!=this.interval?clearInterval(this.interval):void 0},o.prototype.sync=function(){return t.notSupported?this.doSync(this.element):void 0},o.prototype.doSync=function(t){var e,i,n,o,r;if(null==t&&(t=this.element),1===t.nodeType){for(r=[],i=0,n=(o=(t=t.parentNode||t).querySelectorAll("."+this.config.boxClass)).length;n>i;i++)e=o[i],a.call(this.all,e)<0?(this.boxes.push(e),this.all.push(e),this.stopped||this.disabled()?this.resetStyle():this.applyStyle(e,!0),r.push(this.scrolled=!0)):r.push(void 0);return r}},o.prototype.show=function(t){return this.applyStyle(t),t.className=t.className+" "+this.config.animateClass,null!=this.config.callback?this.config.callback(t):void 0},o.prototype.applyStyle=function(t,e){var i,n,o;return n=t.getAttribute("data-wow-duration"),i=t.getAttribute("data-wow-delay"),o=t.getAttribute("data-wow-iteration"),this.animate(function(r){return function(){return r.customStyle(t,e,n,i,o)}}(this))},o.prototype.animate="requestAnimationFrame"in window?function(t){return window.requestAnimationFrame(t)}:function(t){return t()},o.prototype.resetStyle=function(){var t,e,i,n,o;for(o=[],e=0,i=(n=this.boxes).length;i>e;e++)t=n[e],o.push(t.style.visibility="visible");return o},o.prototype.customStyle=function(t,e,i,n,o){return e&&this.cacheAnimationName(t),t.style.visibility=e?"hidden":"visible",i&&this.vendorSet(t.style,{animationDuration:i}),n&&this.vendorSet(t.style,{animationDelay:n}),o&&this.vendorSet(t.style,{animationIterationCount:o}),this.vendorSet(t.style,{animationName:e?"none":this.cachedAnimationName(t)}),t},o.prototype.vendors=["moz","webkit"],o.prototype.vendorSet=function(t,e){var i,n,o,r;r=[];for(i in e)n=e[i],t[""+i]=n,r.push(function(){var e,r,a,s;for(s=[],e=0,r=(a=this.vendors).length;r>e;e++)o=a[e],s.push(t[""+o+i.charAt(0).toUpperCase()+i.substr(1)]=n);return s}.call(this));return r},o.prototype.vendorCSS=function(t,e){var i,o,r,a,s,l;for(i=(o=n(t)).getPropertyCSSValue(e),a=0,s=(l=this.vendors).length;s>a;a++)r=l[a],i=i||o.getPropertyCSSValue("-"+r+"-"+e);return i},o.prototype.animationName=function(t){var e;try{e=this.vendorCSS(t,"animation-name").cssText}catch(i){e=n(t).getPropertyValue("animation-name")}return"none"===e?"":e},o.prototype.cacheAnimationName=function(t){return this.animationNameCache.set(t,this.animationName(t))},o.prototype.cachedAnimationName=function(t){return this.animationNameCache.get(t)},o.prototype.scrollHandler=function(){return this.scrolled=!0},o.prototype.scrollCallback=function(){var t;return!this.scrolled||(this.scrolled=!1,this.boxes=function(){var e,i,n,o;for(o=[],e=0,i=(n=this.boxes).length;i>e;e++)(t=n[e])&&(this.isVisible(t)?this.show(t):o.push(t));return o}.call(this),this.boxes.length||this.config.live)?void 0:this.stop()},o.prototype.offsetTop=function(t){for(var e;void 0===t.offsetTop;)t=t.parentNode;for(e=t.offsetTop;t=t.offsetParent;)e+=t.offsetTop;return e},o.prototype.isVisible=function(t){var e,i,n,o,r;return i=t.getAttribute("data-wow-offset")||this.config.offset,r=window.pageYOffset,o=r+Math.min(this.element.clientHeight,this.util().innerHeight())-i,n=this.offsetTop(t),e=n+t.clientHeight,o>=n&&e>=r},o.prototype.util=function(){return null!=this._util?this._util:this._util=new e},o.prototype.disabled=function(){return!this.config.mobile&&this.util().isMobile(navigator.userAgent)},o}()}.call(this),function(t,e,i){function n(t,e){return typeof t===e}function o(t){var e=C.className,i=j._config.classPrefix||"";if(x&&(e=e.baseVal),j._config.enableJSClass){var n=new RegExp("(^|\\s)"+i+"no-js(\\s|$)");e=e.replace(n,"$1"+i+"js$2")}j._config.enableClasses&&(e+=" "+i+t.join(" "+i),x?C.className.baseVal=e:C.className=e)}function r(){return"function"!=typeof e.createElement?e.createElement(arguments[0]):x?e.createElementNS.call(e,"http://www.w3.org/2000/svg",arguments[0]):e.createElement.apply(e,arguments)}function a(t,e){if("object"==typeof t)for(var i in t)S(t,i)&&a(i,t[i]);else{var n=(t=t.toLowerCase()).split("."),r=j[n[0]];if(2==n.length&&(r=r[n[1]]),void 0!==r)return j;e="function"==typeof e?e():e,1==n.length?j[n[0]]=e:(!j[n[0]]||j[n[0]]instanceof Boolean||(j[n[0]]=new Boolean(j[n[0]])),j[n[0]][n[1]]=e),o([(e&&0!=e?"":"no-")+n.join("-")]),j._trigger(t,e)}return j}function s(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,i){return e+i.toUpperCase()}).replace(/^-/,"")}function l(t,e){return!!~(""+t).indexOf(e)}function u(){var t=e.body;return t||(t=r(x?"svg":"body"),t.fake=!0),t}function c(t,i,n,o){var a,s,l,c,d="modernizr",h=r("div"),f=u();if(parseInt(n,10))for(;n--;)l=r("div"),l.id=o?o[n]:d+(n+1),h.appendChild(l);return a=r("style"),a.type="text/css",a.id="s"+d,(f.fake?f:h).appendChild(a),f.appendChild(h),a.styleSheet?a.styleSheet.cssText=t:a.appendChild(e.createTextNode(t)),h.id=d,f.fake&&(f.style.background="",f.style.overflow="hidden",c=C.style.overflow,C.style.overflow="hidden",C.appendChild(f)),s=i(h,t),f.fake?(f.parentNode.removeChild(f),C.style.overflow=c,C.offsetHeight):h.parentNode.removeChild(h),!!s}function d(t,e){return function(){return t.apply(e,arguments)}}function h(t,e,i){var o;for(var r in t)if(t[r]in e)return!1===i?t[r]:(o=e[t[r]],n(o,"function")?d(o,i||e):o);return!1}function f(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function p(e,n){var o=e.length;if("CSS"in t&&"supports"in t.CSS){for(;o--;)if(t.CSS.supports(f(e[o]),n))return!0;return!1}if("CSSSupportsRule"in t){for(var r=[];o--;)r.push("("+f(e[o])+":"+n+")");return r=r.join(" or "),c("@supports ("+r+") { #modernizr { position: absolute; } }",function(t){return"absolute"==getComputedStyle(t,null).position})}return i}function v(t,e,o,a){function u(){d&&(delete B.style,delete B.modElem)}if(a=!n(a,"undefined")&&a,!n(o,"undefined")){var c=p(t,o);if(!n(c,"undefined"))return c}for(var d,h,f,v,g,m=["modernizr","tspan","samp"];!B.style&&m.length;)d=!0,B.modElem=r(m.shift()),B.style=B.modElem.style;for(f=t.length,h=0;f>h;h++)if(v=t[h],g=B.style[v],l(v,"-")&&(v=s(v)),B.style[v]!==i){if(a||n(o,"undefined"))return u(),"pfx"!=e||v;try{B.style[v]=o}catch(t){}if(B.style[v]!=g)return u(),"pfx"!=e||v}return u(),!1}function g(t,e,i,o,r){var a=t.charAt(0).toUpperCase()+t.slice(1),s=(t+" "+T.join(a+" ")+a).split(" ");return n(e,"string")||n(e,"undefined")?v(s,e,o,r):(s=(t+" "+O.join(a+" ")+a).split(" "),h(s,e,i))}function m(t,e,n){return g(t,i,i,e,n)}var y=[],b=[],w={_version:"3.3.1",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var i=this;setTimeout(function(){e(i[t])},0)},addTest:function(t,e,i){b.push({name:t,fn:e,options:i})},addAsyncTest:function(t){b.push({name:null,fn:t})}},j=function(){};j.prototype=w,j=new j;var Q=w._config.usePrefixes?" -webkit- -moz- -o- -ms- ".split(" "):["",""];w._prefixes=Q;var C=e.documentElement,x="svg"===C.nodeName.toLowerCase();x||function(t,e){function i(t,e){var i=t.createElement("p"),n=t.getElementsByTagName("head")[0]||t.documentElement;return i.innerHTML="x<style>"+e+"</style>",n.insertBefore(i.lastChild,n.firstChild)}function n(){var t=g.elements;return"string"==typeof t?t.split(" "):t}function o(t){var e=v[t[f]];return e||(e={},p++,t[f]=p,v[p]=e),e}function r(t,i,n){if(i||(i=e),u)return i.createElement(t);n||(n=o(i));var r;return r=n.cache[t]?n.cache[t].cloneNode():h.test(t)?(n.cache[t]=n.createElem(t)).cloneNode():n.createElem(t),!r.canHaveChildren||d.test(t)||r.tagUrn?r:n.frag.appendChild(r)}function a(t,e){e.cache||(e.cache={},e.createElem=t.createElement,e.createFrag=t.createDocumentFragment,e.frag=e.createFrag()),t.createElement=function(i){return g.shivMethods?r(i,t,e):e.createElem(i)},t.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+n().join().replace(/[\w\-:]+/g,function(t){return e.createElem(t),e.frag.createElement(t),'c("'+t+'")'})+");return n}")(g,e.frag)}function s(t){t||(t=e);var n=o(t);return!g.shivCSS||l||n.hasCSS||(n.hasCSS=!!i(t,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),u||a(t,n),t}var l,u,c=t.html5||{},d=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,h=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,f="_html5shiv",p=0,v={};!function(){try{var t=e.createElement("a");t.innerHTML="<xyz></xyz>",l="hidden"in t,u=1==t.childNodes.length||function(){e.createElement("a");var t=e.createDocumentFragment();return void 0===t.cloneNode||void 0===t.createDocumentFragment||void 0===t.createElement}()}catch(t){l=!0,u=!0}}();var g={elements:c.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:"3.7.3",shivCSS:!1!==c.shivCSS,supportsUnknownElements:u,shivMethods:!1!==c.shivMethods,type:"default",shivDocument:s,createElement:r,createDocumentFragment:function(t,i){if(t||(t=e),u)return t.createDocumentFragment();for(var r=(i=i||o(t)).frag.cloneNode(),a=0,s=n(),l=s.length;l>a;a++)r.createElement(s[a]);return r},addElements:function(t,e){var i=g.elements;"string"!=typeof i&&(i=i.join(" ")),"string"!=typeof t&&(t=t.join(" ")),g.elements=i+" "+t,s(e)}};t.html5=g,s(e),"object"==typeof module&&module.exports&&(module.exports=g)}(void 0!==t?t:this,e);var _="Moz O ms Webkit",O=w._config.usePrefixes?_.toLowerCase().split(" "):[];w._domPrefixes=O;var k=function(){var t=!("onblur"in e.documentElement);return function(e,n){var o;return!!e&&(n&&"string"!=typeof n||(n=r(n||"div")),e="on"+e,!(o=e in n)&&t&&(n.setAttribute||(n=r("div")),n.setAttribute(e,""),o="function"==typeof n[e],n[e]!==i&&(n[e]=i),n.removeAttribute(e)),o)}}();w.hasEvent=k,j.addTest("video",function(){var t=r("video"),e=!1;try{(e=!!t.canPlayType)&&(e=new Boolean(e),e.ogg=t.canPlayType('video/ogg; codecs="theora"').replace(/^no$/,""),e.h264=t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/,""),e.webm=t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,""),e.vp9=t.canPlayType('video/webm; codecs="vp9"').replace(/^no$/,""),e.hls=t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(/^no$/,""))}catch(t){}return e});var S;!function(){var t={}.hasOwnProperty;S=n(t,"undefined")||n(t.call,"undefined")?function(t,e){return e in t&&n(t.constructor.prototype[e],"undefined")}:function(e,i){return t.call(e,i)}}(),w._l={},w.on=function(t,e){this._l[t]||(this._l[t]=[]),this._l[t].push(e),j.hasOwnProperty(t)&&setTimeout(function(){j._trigger(t,j[t])},0)},w._trigger=function(t,e){if(this._l[t]){var i=this._l[t];setTimeout(function(){var t;for(t=0;t<i.length;t++)(0,i[t])(e)},0),delete this._l[t]}},j._q.push(function(){w.addTest=a});var E="CSS"in t&&"supports"in t.CSS,M="supportsCSS"in t;j.addTest("supports",E||M);var T=w._config.usePrefixes?_.split(" "):[];w._cssomPrefixes=T;var P=function(e){var n,o=Q.length,r=t.CSSRule;if(void 0===r)return i;if(!e)return!1;if(e=e.replace(/^@/,""),(n=e.replace(/-/g,"_").toUpperCase()+"_RULE")in r)return"@"+e;for(var a=0;o>a;a++){var s=Q[a];if(s.toUpperCase()+"_"+n in r)return"@-"+s.toLowerCase()+"-"+e}return!1};w.atRule=P;var A=w.testStyles=c,H={elem:r("modernizr")};j._q.push(function(){delete H.elem});var B={style:H.elem.style};j._q.unshift(function(){delete B.style}),w.testProp=function(t,e,n){return v([t],i,e,n)},w.testAllProps=g,w.prefixed=function(t,e,i){return 0===t.indexOf("@")?P(t):(-1!=t.indexOf("-")&&(t=s(t)),e?g(t,e,i):g(t,"pfx"))},w.testAllProps=m,j.addTest("csstransitions",m("transition","all",!0)),j.addTest("csstransforms3d",function(){var t=!!m("perspective","1px",!0),e=j._config.usePrefixes;if(t&&(!e||"webkitPerspective"in C.style)){var i;j.supports?i="@supports (perspective: 1px)":(i="@media (transform-3d)",e&&(i+=",(-webkit-transform-3d)")),A("#modernizr{width:0;height:0}"+(i+="{#modernizr{width:7px;height:18px;margin:0;padding:0;border:0}}"),function(e){t=7===e.offsetWidth&&18===e.offsetHeight})}return t}),function(){var t,e,i,o,r,a,s;for(var l in b)if(b.hasOwnProperty(l)){if(t=[],(e=b[l]).name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(i=0;i<e.options.aliases.length;i++)t.push(e.options.aliases[i].toLowerCase());for(o=n(e.fn,"function")?e.fn():e.fn,r=0;r<t.length;r++)a=t[r],s=a.split("."),1===s.length?j[s[0]]=o:(!j[s[0]]||j[s[0]]instanceof Boolean||(j[s[0]]=new Boolean(j[s[0]])),j[s[0]][s[1]]=o),y.push((o?"":"no-")+s.join("-"))}}(),o(y),delete w.addTest,delete w.addAsyncTest;for(var I=0;I<j._q.length;I++)j._q[I]();t.Modernizr=j}(window,document);