|
|
Line 6,256: |
Line 6,256: |
| </script> | | </script> |
| <script src="https://2015.igem.org/Team:Mingdao/Javascript-museutils?action=raw&ctype=text/javascript" type="text/javascript"></script> | | <script src="https://2015.igem.org/Team:Mingdao/Javascript-museutils?action=raw&ctype=text/javascript" type="text/javascript"></script> |
− | <script>
| + | <script src="https://2015.igem.org/Team:Mingdao/Javascript-jquery.watch?action=raw&ctype=text/javascript" type="text/javascript"></script> |
− | (function(b){b.extend(b.fn,{watch:function(c,a,d){var f=document.createElement("div"),h=function(a,d){var a="on"+a,b=a in d;b||(d.setAttribute(a,"return;"),b=typeof d[a]=="function");"onpropertychange"==a&&jQuery.browser.msie&&jQuery.browser.version>=9&&(b=!1);return b};typeof a=="function"&&(d=a,a={});typeof d!="function"&&(d=function(){});a=b.extend({},{throttle:10},a);return this.each(function(){var i=b(this),g=function(){for(var a=i.data(),d=!1,b,f=0;f<a.props.length;f++)if(b=i.css(a.props[f]),
| + | <script src="https://2015.igem.org/Team:Mingdao/Javascript-jquery.musemenu?action=raw&ctype=text/javascript" type="text/javascript"></script> |
− | a.vals[f]!=b){a.vals[f]=b;d=!0;break}d&&a.cb&&a.cb.call(i,a)},j={props:c.split(","),cb:d,vals:[]};b.each(j.props,function(a){j.vals[a]=i.css(j.props[a])});i.data(j);if(h("DOMAttrModified",f))i.on("DOMAttrModified",d);else if(h("propertychange",f))i.on("propertychange",d);else setInterval(g,a.throttle)})}})})(jQuery);
| + | <script src="https://2015.igem.org/Team:Mingdao/Javascript-jquery.musepolyfill.bgsize?action=raw&ctype=text/javascript" type="text/javascript"></script> |
− | ;(function(){if(!("undefined"==typeof Muse||"undefined"==typeof Muse.assets)){var a=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]==b)return c;return-1}(Muse.assets.required,"jquery.watch.js");if(-1!=a){Muse.assets.required.splice(a,1);for(var a=document.getElementsByTagName("meta"),b=0,c=a.length;b<c;b++){var d=a[b];if("generator"==d.getAttribute("name")){"2014.0.0.264"!=d.getAttribute("content")&&Muse.assets.outOfDate.push("jquery.watch.js");break}}}}})();
| + | <script src="https://2015.igem.org/Team:Mingdao/Javascript-webpro?action=raw&ctype=text/javascript" type="text/javascript"></script> |
− | </script>
| + | |
− | <script>
| + | |
− | /*
| + | |
− | ADOBE CONFIDENTIAL
| + | |
− | ___________________
| + | |
| | | |
− | Copyright 2011 Adobe Systems Incorporated
| + | <script src="https://2015.igem.org/Team:Mingdao/Javascript-musewpslideshow?action=raw&ctype=text/javascript" type="text/javascript"></script> |
− | All Rights Reserved.
| + | |
− | | + | |
− | NOTICE: All information contained herein is, and remains
| + | |
− | the property of Adobe Systems Incorporated and its suppliers,
| + | |
− | if any. The intellectual and technical concepts contained
| + | |
− | herein are proprietary to Adobe Systems Incorporated and its
| + | |
− | suppliers and may be covered by U.S. and Foreign Patents,
| + | |
− | patents in process, and are protected by trade secret or copyright law.
| + | |
− | Dissemination of this information or reproduction of this material
| + | |
− | is strictly forbidden unless prior written permission is obtained
| + | |
− | from Adobe Systems Incorporated.
| + | |
− | */
| + | |
− | (function(a){a.fn.museMenu=function(){return this.each(function(){var b=a(this),c="absolute",d,f,g,l,h,i;if(b.css("position")=="fixed"){c="fixed";i=b;var j=Muse.Utils.getStyleSheetRuleById(Muse.Utils.getPageStyleSheet(),this.id);d=j?Muse.Utils.getRuleProperty(j,"top"):b.css("top");f=j?Muse.Utils.getRuleProperty(j,"left"):b.css("left");g=j?Muse.Utils.getRuleProperty(j,"right"):b.css("right");l=j?Muse.Utils.getRuleProperty(j,"bottom"):b.css("bottom");h=parseInt(b.css("margin-left"))}else for(j=b.parent();j.length>
| + | |
− | 0&&j.attr("id")!="page";){if(j.css("position")=="fixed"){c="fixed";i=j;var k=j.offset(),m=b.offset(),o=Muse.Utils.getStyleSheetRuleById(Muse.Utils.getPageStyleSheet(),j.attr("id")),q=o?Muse.Utils.getRuleProperty(o,"top"):j.css("top"),p=o?Muse.Utils.getRuleProperty(o,"left"):j.css("left"),n=o?Muse.Utils.getRuleProperty(o,"right"):j.css("right"),o=o?Muse.Utils.getRuleProperty(o,"bottom"):j.css("bottom");d=q&&q!="auto"?parseInt(q)+(m.top-k.top):q;f=p&&p!="auto"&&p.indexOf("%")==-1?parseInt(p)+(m.left-
| + | |
− | k.left):p;g=n&&n!="auto"&&n.indexOf("%")==-1?parseInt(n)+(k.left+j.width())-(m.left+b.width()):n;l=o&&o!="auto"?parseInt(o)+(k.top+j.height())-(m.top+b.height()):o;h=parseInt(j.css("margin-left"))+(p&&p.indexOf("%")!=-1?m.left-k.left:0);break}j=j.parent()}var s=a(),t=!1,v=b.find(".MenuItemContainer"),j=b.find(".MenuItem"),k=b.find(".SubMenu").add(j),w;k.on("mouseover",function(){t=!0});k.on("mouseleave",function(){t=!1;setTimeout(function(){t===!1&&(v.each(function(){a(this).data("hideSubmenu")()}),
| + | |
− | s=a())},300)});v.on("mouseleave",function(b){var c=a(b.target),d=c.closest(".SubMenu");w&&clearTimeout(w);d.length>0&&(w=setTimeout(function(){d.find(".MenuItemContainer").each(function(){a(this).data("hideSubmenu")()});s=c.closest(".MenuItemContainer").data("$parentMenuItemContainer")},300))});v.on("mouseenter",function(){clearTimeout(w)});j.each(function(){var j=a(this),k=j.siblings(".SubMenu"),m=j.closest(".MenuItemContainer"),n=m.parentsUntil(".MenuBar").filter(".MenuItemContainer").length===
| + | |
− | 0,o;if(n&&k.length>0)j.data("offsetContainerRaw",a("<div style='position:"+c+"' class='MenuBar popup_element'></div>").hide().appendTo("body")),k.show(),o=k.position().top,k.hide();m.data("$parentMenuItemContainer",m.parent().closest(".MenuItemContainer")).data("showSubmenuOnly",function(){if(n&&k.length>0){var a=j.data("offsetContainer"),p="undefined"!=typeof a,a=a||j.data("offsetContainerRaw");if(c!="fixed")p=m.offset(),a.css({left:p.left,top:p.top});else if(!p){var p=m.position(),q=0,s=0;g&&g!=
| + | |
− | "auto"&&(q=b.outerWidth()-p.left);l&&l!="auto"&&(s=o);a.css({left:f,top:d,right:g,bottom:l,marginLeft:h+p.left,marginRight:q,marginTop:p.top,marginBottom:s})}a.append(k).show();j.data("offsetContainer",a);i&&a&&i.data("hasScrollEffect")===!0&&a.cloneScrollEffectsFrom(i)}k.show();k.find(".SubMenu").hide()}).data("hideSubmenu",function(){var a=j.data("offsetContainer");a&&a.data("hasScrollEffect")===!0&&a.clearScrollEffects();k.hide()}).data("isDescendentOf",function(a){for(var b=m.data("$parentMenuItemContainer");b.length>
| + | |
− | 0;){if(a.index(b)>=0)return!0;b=b.data("$parentMenuItemContainer")}return!1});var p=function(){var b=s;b.length==0?m.data("showSubmenuOnly")():m.data("$parentMenuItemContainer").index(b)>=0?m.data("showSubmenuOnly")():m.siblings().index(b)>=0?(b.data("hideSubmenu")(),m.data("showSubmenuOnly")()):b.data("isDescendentOf")(m)?m.data("showSubmenuOnly")():b.data("isDescendentOf")(m.siblings(".MenuItemContainer"))?(m.siblings(".MenuItemContainer").each(function(){a(this).data("hideSubmenu")()}),m.data("showSubmenuOnly")()):
| + | |
− | b.get(0)==m.get(0)&&m.data("showSubmenuOnly")();s=m},q=null;j.on("mouseenter",function(){j.data("mouseEntered",!0);q=setTimeout(function(){p()},200);j.one("mouseleave",function(){clearTimeout(q);j.data("mouseEntered",!1)})});k.length&&(j.attr("aria-haspopup",!0),Muse.Browser.Features.Touch&&(j.click(function(){return k.is(":visible")}),a(document.documentElement).on(Muse.Browser.Features.Touch.End,Muse.Browser.Features.Touch.Listener(function(b){!k.is(":visible")&&a(b.target).closest(m).length>0?
| + | |
− | (b.stopPropagation(),Muse.Utils.redirectCancelled=!0,setTimeout(function(){Muse.Utils.redirectCancelled=!1},16),j.data("mouseEntered")&&setTimeout(function(){m.data("showSubmenuOnly")()},200)):k.is(":visible")&&a(b.target).closest(k).length==0&&a(b.target).closest(m).length==0&&m.data("hideSubmenu")()}))))});j.filter(".MuseMenuActive").each(function(){for(var b=a(this).closest(".MenuItemContainer").data("$parentMenuItemContainer");b&&b.length>0;)b.children(".MenuItem").addClass("MuseMenuActive"),
| + | |
− | b=b.data("$parentMenuItemContainer")})})}})(jQuery);
| + | |
− | ;(function(){if(!("undefined"==typeof Muse||"undefined"==typeof Muse.assets)){var a=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]==b)return c;return-1}(Muse.assets.required,"jquery.musemenu.js");if(-1!=a){Muse.assets.required.splice(a,1);for(var a=document.getElementsByTagName("meta"),b=0,c=a.length;b<c;b++){var d=a[b];if("generator"==d.getAttribute("name")){"2014.0.0.264"!=d.getAttribute("content")&&Muse.assets.outOfDate.push("jquery.musemenu.js");break}}}}})();
| + | |
− | </script>
| + | |
− | <script>
| + | |
− | /*
| + | |
− | ADOBE CONFIDENTIAL
| + | |
− | ___________________
| + | |
− | | + | |
− | Copyright 2011 Adobe Systems Incorporated
| + | |
− | All Rights Reserved.
| + | |
− | | + | |
− | NOTICE: All information contained herein is, and remains
| + | |
− | the property of Adobe Systems Incorporated and its suppliers,
| + | |
− | if any. The intellectual and technical concepts contained
| + | |
− | herein are proprietary to Adobe Systems Incorporated and its
| + | |
− | suppliers and may be covered by U.S. and Foreign Patents,
| + | |
− | patents in process, and are protected by trade secret or copyright law.
| + | |
− | Dissemination of this information or reproduction of this material
| + | |
− | is strictly forbidden unless prior written permission is obtained
| + | |
− | from Adobe Systems Incorporated.
| + | |
− | */
| + | |
− | (function(a){function b(a){var b=a.css("background-image");a.css("background-image","");var c=a.css("background-image");b!=c&&a.css("background-image",b);return c.replace(/^\s*url\(\"?/,"").replace(/['"]?\)$/,"")}if(!Muse.Browser.Features.checkCSSFeature("background-size")){var c=function(c){var d=a(c),f=b(d),j=document.createElement("img"),g=document.createElement("div"),l=this,k=!1,p=!1,q=!0,o={};a(g).css({overflow:"hidden",position:"absolute",top:"0px",left:"0px",width:c.clientWidth+"px",height:c.clientHeight+
| + | |
− | "px",marginBottom:"-"+c.clientHeight+"px",marginRight:"-"+c.clientWidth+"px",zIndex:"-1"}).addClass("museBgSizePolyfill");j.src=f;j.alt="";j.style.position="absolute";g.appendChild(j);c.children.length>0?c.insertBefore(g,c.children[0]):c.appendChild(g);if(c===document.body)d=a("html"),c=d.get(0),f=b(d),j.src=f,d.css("background-attachment")=="fixed"?(g.style.position="fixed",q=!1):g.style.position="absolute";else if(d.is("#page"))d.css("marginLeft").toLowerCase()=="auto"&&(p=!0),g.style.top=d.offset().top+
| + | |
− | parseInt(d.css("borderTopWidth"))+"px",g.style.bottom=parseInt(d.parent().css("paddingBottom"))+parseInt(d.css("borderBottomWidth"))+"px",g.style.left=d.offset().left+parseInt(d.css("borderLeftWidth"))+"px",g.style.right=d.offset().left+parseInt(d.css("borderRightWidth"))+"px",g.style.zIndex=0;else if(d.css("position")=="static")c.style.position="relative";this.reloadImage=function(){var a=b(d),f=d.css("background-color");if(a!=j.src)j.src=a;c.style.backgroundImage="none";c.style.backgroundColor=
| + | |
− | "transparent";g.style.backgroundColor=f;a=(d.css("background-position-x")+" "+d.css("background-position-y")).replace(/^\s+/,"").replace(/\s+$/,"").split(/\s+/);a.length==1&&a[0].indexOf("center")>=0&&a.push("center");if(d.data("hasBackgroundPositionScrollEffect")!=!0)for(var f=0,i=a.length;f<i;f++)switch(a[f]){case "center":case "50%":f==0?(j.style.right="",j.style.left="50%",j.style.marginLeft="-"+Math.ceil(j.offsetWidth/2)+"px"):(j.style.bottom="",j.style.top="50%",j.style.marginTop="-"+Math.ceil(j.offsetHeight/
| + | |
− | 2)+"px");break;case "left":j.style.right="";j.style.left="0px";j.style.marginLeft="0px";break;case "right":j.style.left="";j.style.right="0px";j.style.marginLeft="0px";break;case "top":j.style.bottom="";j.style.top="0px";j.style.marginTop="0px";break;case "bottom":j.style.top="";j.style.bottom="0px";j.style.marginTop="0px";break;default:f==0?(j.style.left=a[f],j.style.marginLeft="-"+Math.ceil(j.offsetWidth/2)+"px"):(j.style.top=a[f],j.style.marginTop="-"+Math.ceil(j.offsetHeight/2)+"px")}};this.resizeImage=
| + | |
− | function(a){var b=c.getBoundingClientRect(),f=c.scrollWidth-(Muse.Browser.Bugs.ScrollWidthHeightIncludesBorder?b.right-b.left-d.innerWidth():0),b=c.scrollHeight-(Muse.Browser.Bugs.ScrollWidthHeightIncludesBorder?b.bottom-b.top-d.innerHeight():0),f=!q?c.clientWidth:Math.max(f,c.clientWidth),b=!q?c.clientHeight:Math.max(b,c.clientHeight);!o[j.src]&&j.clientWidth&&(o[j.src]={width:j.clientWidth,height:j.clientHeight});var i=f/(o[j.src]?o[j.src].width:1),l=b/(o[j.src]?o[j.src].height:1);g.style.height=
| + | |
− | b+"px";g.style.marginBottom="-"+b+"px";g.style.width=f+"px";g.style.marginRight="-"+f+"px";i<l==a?(j.style.height=b+1+"px",j.style.width="auto"):(j.style.width=f+1+"px",j.style.height="auto")};this.update=function(){if(k){c.style.backgroundImage="";d.css("background-color","");var a=d.css("background-image").toLowerCase(),b=(c.currentStyle||window.getComputedStyle(c,null))["background-size"];b&&b.toLowerCase();if(a!="none"&&(b=="cover"||b=="contain")){if(l.reloadImage(),g.style.display="block",g.style.width=
| + | |
− | "0px",g.style.height="0px",l.resizeImage(b=="cover"),p)g.style.left=d.offset().left+parseInt(d.css("borderLeftWidth"))+"px",g.style.right=d.offset().left+parseInt(d.css("borderRightWidth"))+"px"}else g.style.display="none"}};if(j.complete||f=="none")k=!0;else a(j).one("load",function(){k=!0;l.update()});this.update()},d=[];a(".museBGSize").each(function(){var b=new c(this);this!==document.body?d.push(b):(a(window).resize(function(){setTimeout(function(){b.update()},10)}),a(window).load(function(){setTimeout(function(){b.update()},
| + | |
− | 10)}))});var f=d.length;f>0&&setInterval(function(){for(var a=0;a<f;a++)d[a].update()},Math.max(120,16*f))}})(jQuery);
| + | |
− | ;(function(){if(!("undefined"==typeof Muse||"undefined"==typeof Muse.assets)){var a=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]==b)return c;return-1}(Muse.assets.required,"jquery.musepolyfill.bgsize.js");if(-1!=a){Muse.assets.required.splice(a,1);for(var a=document.getElementsByTagName("meta"),b=0,c=a.length;b<c;b++){var d=a[b];if("generator"==d.getAttribute("name")){"2014.0.0.264"!=d.getAttribute("content")&&Muse.assets.outOfDate.push("jquery.musepolyfill.bgsize.js");break}}}}})();
| + | |
− | </script>
| + | |
− | <script>
| + | |
− | /*
| + | |
− | | + | |
− | Copyright (c) 2012. Adobe Systems Incorporated.
| + | |
− | All rights reserved.
| + | |
− | | + | |
− | Redistribution and use in source and binary forms, with or without
| + | |
− | modification, are permitted provided that the following conditions are met:
| + | |
− | | + | |
− | Redistributions of source code must retain the above copyright notice,
| + | |
− | this list of conditions and the following disclaimer.
| + | |
− | Redistributions in binary form must reproduce the above copyright notice,
| + | |
− | this list of conditions and the following disclaimer in the documentation
| + | |
− | and/or other materials provided with the distribution.
| + | |
− | Neither the name of Adobe Systems Incorporated nor the names of its
| + | |
− | contributors may be used to endorse or promote products derived from this
| + | |
− | software without specific prior written permission.
| + | |
− | | + | |
− | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
| + | |
− | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
| + | |
− | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
| + | |
− | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
| + | |
− | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
| + | |
− | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
| + | |
− | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
| + | |
− | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
| + | |
− | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
| + | |
− | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
| + | |
− | POSSIBILITY OF SUCH DAMAGE.
| + | |
− | */
| + | |
− | (function(a,b){function c(){}var d={version:0.1,inherit:function(a,b){var c=function(){};c.prototype=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.prototype._super=b},ensureArray:function(){var b=[],c=arguments.length;c>0&&(b=c>1||!a.isArray(arguments[0])?a.makeArray(arguments):arguments[0]);return b},scopedFind:function(b,c,d,h){for(var d=" "+d+" ",j=[],b=a(b).find(c),c=b.length,h=a(h)[0],i=0;i<c;i++)for(var l=b[i],m=l;m;){if(m.className&&(" "+m.className+" ").indexOf(d)!==-1){m===h&&
| + | |
− | j.push(l);break}m=m.parentNode}return a(j)}};a.extend(c.prototype,{bind:function(b,c,d){return a(this).bind(b,c,d)},unbind:function(b,c){return a(this).unbind(b,c)},trigger:function(b,c){var d=a.Event(b);a(this).trigger(d,c);return d}});d.EventDispatcher=c;b.WebPro=d})(jQuery,window,document);
| + | |
− | (function(a,b){var c=1;b.ImageLoader=function(c){b.EventDispatcher.call();var f=this;this.options=a.extend({},this.defaultOptions,c);this._currentEntry=null;this._queue=[];this._isRunning=this._needsSort=!1;this._loader=new Image;this._loadFunc=function(){f._handleLoad()};this._loadErrorFunc=function(){f._handleError()};this._timeoutFunc=function(){f.trigger("wp-image-loader-timeout",this._currentEntry);f._loadNext()}};b.inherit(b.ImageLoader,b.EventDispatcher);a.extend(b.ImageLoader.prototype,{defaultOptions:{timeoutInterval:1E3},
| + | |
− | add:function(d,f){if(d){urls=b.ensureArray(d);for(var g=0;g<urls.length;g++){var k=a.extend({reqId:c++,src:urls[g],width:0,height:0,priority:50,callback:null,data:null},f);this._queue.push(k);this._needsSort=!0;this.trigger("wp-image-loader-add",k)}this._isRunning&&!this._currentEntry&&this._loadNext()}},reprioritize:function(a,b){if(!(this._currentEntry&&this._currentEntry.src==a)){var c;for(c=0;c<this._queue.length;++c)if(this._queue[c].src==a)break;if(c!=0&&c<this._queue.length)this._queue=this._queue.splice(c,
| + | |
− | b?this._queue.length-c:1).concat(this._queue)}},start:function(){if(!this._isRunning)this._isRunning=!0,this._loadNext(),this.trigger("wp-image-loader-start")},stop:function(){if(this._isRunning)this._currentEntry&&this._queue.unshift(this._currentEntry),this._resetLoader(),this._isRunning=!1,this.trigger("wp-image-loader-stop")},clearQueue:function(){var a=this._isRunning;this.stop();this._queue.length=0;a&&this.start()},isQueueEmpty:function(){return this._queue.length==0},_loadNext:function(){var d;
| + | |
− | this._resetLoader();var a=this._queue;if(a.length){if(this._needsSort)d=this._queue=a.sort(function(a,b){var c=a.priority-b.priority;return c?c:a.reqId-b.reqId}),a=d,this._needsSort=!1;this._currentEntry=a=a.shift();var b=this._loader;b.onload=this._loadFunc;b.onerror=this._loadErrorFunc;b.src=a.src}},_resetLoader:function(){var a=this._loader;a.onload=null;a.onerror=null;this._currentEntry=a.src=null;if(this._timeoutTimerId)clearTimeout(this._timeoutTimerId),this._timeoutTimerId=0},_handleLoad:function(){var a=
| + | |
− | this._loader,b=this._currentEntry;b.width=a.width;b.height=a.height;b.callback&&b.callback(b.src,b.width,b.height,b.data);this.trigger("wp-image-loader-load-success",b);this._loadNext()},_handleError:function(){this.trigger("wp-image-loader-load-error",this._currentEntry);this._loadNext()}})})(jQuery,WebPro,window,document);
| + | |
− | (function(a,b){function c(){b.EventDispatcher.call(this);this._initialize.apply(this,arguments)}b.inherit(c,b.EventDispatcher);a.extend(c.prototype,{defaultOptions:{},_widgetName:"Widget",_initialize:function(){var b;this.plugins=[];var c=this.trigger("before-setup");c.isDefaultPrevented()||(b=this._setUp.apply(this,arguments),this.trigger("setup"));c=this.trigger("before-init-plugins");c.isDefaultPrevented()||(this._initializePlugins(b),this.trigger("init-plugins"));this.options=a.extend({},this.defaultOptions,
| + | |
− | b);c=this.trigger("before-extract-data");c.isDefaultPrevented()||(this._extractData(),this.trigger("extract-data"));c=this.trigger("before-transform-markup");c.isDefaultPrevented()||(this._transformMarkup(),this.trigger("transform-markup"));c=this.trigger("before-attach-behavior");c.isDefaultPrevented()||(this._attachBehavior(),this.trigger("attach-behavior"));c=this.trigger("before-ready");c.isDefaultPrevented()||(this._ready(),this.trigger("ready"))},_setUp:function(b,c){this.$element=a(b);return c},
| + | |
− | _initializePlugins:function(a){for(var a=a||{},b=((typeof a.useDefaultPlugins==="undefined"||a.useDefaultPlugins)&&this.defaultPlugins?this.defaultPlugins:[]).concat(a.plugins||[]),b=b.sort(function(a,b){a=typeof a.priority==="number"?a.priority:50;b=typeof b.priority==="number"?b.priority:50;return a-b}),c=0;c<b.length;c++){var k=b[c];k&&k.initialize&&k.initialize(this,a)}this.plugins=b},_extractData:function(){},_transformMarkup:function(){},_attachBehavior:function(){},_ready:function(){}});b.Widget=
| + | |
− | c;b.widget=function(c,f,g){var k=g&&f||b.Widget,g=g||f||{},f=function(){k.apply(this,arguments);this._widgetName=c};b.inherit(f,k);a.extend(f.prototype,g);f.prototype.defaultOptions=a.extend({},k.prototype.defaultOptions,g.defaultOptions);var g=c.split("."),h=g.length;namespace=h>1&&g[0]||"Widget";c=g[h-1];b[namespace][c]=f}})(jQuery,WebPro,window,document);
| + | |
− | (function(a,b){b.widget("Widget.Button",b.Widget,{defaultOptions:{hoverClass:"wp-button-hover",activeClass:"wp-button-down",disabledClass:"wp-button-disabled",disabled:!1,callback:null},_attachBehavior:function(){var b=this,d=function(f){b.mouseDown=!1;b.$element.removeClass(b.options.activeClass);!b.options.disabled&&b.options.callback&&b.options.callback.call(this,f);a(b.$element).off("mouseup",d)};this.mouseDown=!1;this.$element.on("mouseover",function(){b.options.disabled||b.$element.addClass(b.options.hoverClass+
| + | |
− | (b.mouseDown?" "+b.options.activeClass:""))}).on("mouseleave",function(){b.$element.removeClass(b.options.hoverClass+" "+b.options.activeClass);a(b.$element).off("mouseup",d)}).on("mousedown",function(){if(!b.options.disabled)b.mouseDown=!0,b.$element.addClass(b.options.activeClass),a(b.$element).on("mouseup",d)});this.disabled(this.options.disabled)},disabled:function(a){if(typeof a==="boolean")this.options.disabled=a,this.$element[a?"addClass":"removeClass"](this.options.disabledClass);return this.options.disabled}});
| + | |
− | a.fn.wpButton=function(a){this.each(function(){new b.Widget.Button(this,a)});return this}})(jQuery,WebPro,window,document);
| + | |
− | (function(a,b){b.widget("Widget.RadioGroup",b.Widget,{_widgetName:"radio-group",defaultOptions:{defaultIndex:0,hoverClass:"wp-radio-hover",downClass:"wp-radio-down",disabledClass:"wp-radio-disabled",checkedClass:"wp-radio-checked",disabled:!1,toggleStateEnabled:!1},_attachBehavior:function(){var a=this;this.buttons=[];this.activeElement=null;this.activeIndex=-1;this.$element.each(function(){a.buttons.push(a._addButtonBehavior(this))});this.disabled(this.options.disabled)},_addButtonBehavior:function(a){var d=
| + | |
− | this,f=new b.Widget.Button(a,{hoverClass:this.options.hoverClass,downClass:this.options.downClass,disabledClass:this.options.disabledClass,callback:function(b){return d._handleClick(b,f,a)}});return f},_handleClick:function(a,b,f){this.options.disabled||this.checkButton(f)},_getElementIndex:function(b){return b?a.inArray(b,this.$element.get()):-1},_getElementByIndex:function(a){return a>=0?this.$element.eq(a)[0]:null},_getElement:function(a){return typeof a==="number"?this._getElementByIndex(a):a},
| + | |
− | checkButton:function(b){var b=this._getElement(b),d=this.activeElement,f=this.options.checkedClass;b!==d?(d&&a(d).removeClass(f),b&&a(b).addClass(f)):this.options.toggleStateEnabled&&b&&(a(b).removeClass(f),b=null);this.activeElement=b;this.activeIndex=this._getElementIndex(b)},disabled:function(b){if(typeof b==="boolean")this.disabled=b,a.each(this.buttons,function(){this.disabled(b)});return this.options.disabled}});a.fn.wpRadioGroup=function(a){new b.Widget.RadioGroup(this,a);return this}})(jQuery,
| + | |
− | WebPro,window,document);
| + | |
− | (function(a,b){b.widget("Widget.TabGroup",b.Widget.RadioGroup,{defaultOptions:{defaultIndex:0,hoverClass:"wp-tab-hover",downClass:"wp-tab-down",disabledClass:"wp-tab-disabled",checkedClass:"wp-tab-active",disabled:!1,toggleStateEnabled:!1},selectTab:function(a){this.checkButton(a)},checkButton:function(a){var b=this._getElement(a),f=this._getElementIndex(b),b={tab:b,tabIndex:f};this.trigger("wp-tab-before-select",b);this._super.prototype.checkButton.apply(this,arguments);this.trigger("wp-tab-select",b)}});
| + | |
− | a.fn.wpTabGroup=function(a){new b.Widget.TabGroup(this,a);return this}})(jQuery,WebPro,window,document);
| + | |
− | (function(a,b){b.widget("Widget.PanelGroup",b.Widget,{_widgetName:"panel-group",defaultOptions:{defaultIndex:0,panelClass:"wp-panel",activeClass:"wp-panel-active",toggleStateEnabled:!1,tabGroups:null},_setUp:function(){var a=this;this.tabGroups=[];this._tabCallback=function(b,f){a._handleTabSelect(b,f)};this.showLock=0;this.tabDriver=null;return this._super.prototype._setUp.apply(this,arguments)},_attachBehavior:function(){this.activeElement=null;this.activeIndex=-1;this.$element.addClass(this.options.panelClass);
| + | |
− | var a=this.options.defaultIndex;typeof a==="number"&&a>=0&&this.showPanel(a);this.addTabGroup(this.options.tabGroups)},_getElementIndex:function(b){return b?a.inArray(b,this.$element.get()):-1},_getElementByIndex:function(a){return this.$element.eq(a)[0]},_getElement:function(a){return typeof a==="number"?this._getElementByIndex(a):a},showPanel:function(b){if(!this.showLock){++this.showLock;var d=this._getElement(b),f=this.activeElement,g=this.options.activeClass;if(d)if(d!==f){b={panel:d,panelIndex:this._getElementIndex(d)};
| + | |
− | this.trigger("wp-panel-before-show",b);f&&this.hidePanel(f);a(d).addClass(g);this.activeElement=d;this.activeIndex=this._getElementIndex(d);d=this.tabGroups;for(f=0;f<d.length;f++)g=d[f],g!==this.tabDriver&&g.selectTab(this.activeIndex);this.trigger("wp-panel-show",b)}else this.options.toggleStateEnabled&&this.hidePanel(d);--this.showLock}},hidePanel:function(b){if(b=typeof b==="number"?this.$element.eq(b)[0]:b){var d={panel:b,panelIndex:this._getElementIndex(b)};this.trigger("wp-panel-before-hide",
| + | |
− | d);a(b).removeClass(this.options.activeClass);if(b===this.activeElement)this.activeElement=null,this.activeIndex=-1;this.trigger("wp-panel-hide",d)}},_handleTabSelect:function(a,b){if(!this.showLock)this.tabDriver=a.target,this.showPanel(b.tabIndex),this.tabDriver=null},addTabGroup:function(c){if(c)for(var c=b.ensureArray(c),d=c.length,f=0;f<d;f++){var g=c[f];a.inArray(this.tabGroups,g)===-1&&(this.tabGroups.push(g),g.selectTab(this.activeIndex),g.bind("wp-tab-select",this._tabCallback))}},removeTabGroup:function(c){for(var c=
| + | |
− | b.ensureArray(c),d=c.length,f=0;f<d;f++){var g=c[f];sets=this.tabGroups;loc=a.inArray(sets,g);loc!==-1&&sets.splice(loc,1)}}});a.fn.wpPanelGroup=function(a){new b.Widget.PanelGroup(this,a);return this}})(jQuery,WebPro,window,document);
| + | |
− | (function(a,b){b.widget("Widget.Disclosure",b.Widget,{defaultOptions:{widgetClassName:"wp-disclosure-panels",tabClassName:"wp-disclosure-panels-tab",tabHoverClassName:"wp-disclosure-panels-tab-hover",tabDownClassName:"wp-disclosure-panels-tab-down",panelClassName:"wp-disclosure-panels-panel",tabActiveClassName:"wp-disclosure-panels-tab-active",panelActiveClassName:"wp-disclosure-panels-panel-active",defaultIndex:0,toggleStateEnabled:!1},_attachBehavior:function(){var a=this.$element[0],d=this.options.widgetClassName,
| + | |
− | f=b.scopedFind(a,"."+this.options.tabClassName,d,a),a=b.scopedFind(a,"."+this.options.panelClassName,d,a);this.tabs=new b.Widget.TabGroup(f,{hoverClass:this.options.tabHoverClassName,downClass:this.options.tabDownClassName,checkedClass:this.options.tabActiveClassName,toggleStateEnabled:this.options.toggleStateEnabled});this.panels=new b.Widget.PanelGroup(a,{panelClass:this.options.panelClassName,activeClass:this.options.panelActiveClassName,defaultIndex:this.options.defaultIndex,toggleStateEnabled:this.options.toggleStateEnabled});
| + | |
− | this.panels.addTabGroup(this.tabs)}});b.widget("Widget.TabbedPanels",b.Widget.Disclosure,{defaultOptions:{widgetClassName:"wp-tabbed-panels-panels",tabClassName:"wp-tabbed-panels-panels-tab",tabHoverClassName:"wp-tabbed-panels-panels-tab-hover",tabDownClassName:"wp-tabbed-panels-panels-tab-down",tabActiveClassName:"wp-tabbed-panels-panels-tab-active",panelClassName:"wp-tabbed-panels-panels-panel",panelActiveClassName:"wp-tabbed-panels-panels-panel-active",toggleStateEnabled:!1}});b.widget("Widget.Accordion",
| + | |
− | b.Widget.Disclosure,{defaultOptions:{widgetClassName:"wp-accordion",tabClassName:"wp-accordion-tab",tabHoverClassName:"wp-accordion-tab-hover",tabDownClassName:"wp-accordion-tab-down",tabActiveClassName:"wp-accordion-tab-active",panelClassName:"wp-accordion-panel",panelActiveClassName:"wp-accordion-panel-active",toggleStateEnabled:!1}})})(jQuery,WebPro,window,document);
| + | |
− | (function(a,b){b.Widget.Disclosure.DisplayPropertyTransitionPlugin={defaultOptions:{},initialize:function(b,d){var f=this;a.extend(d,a.extend({},f.defaultOptions,d));b.bind("attach-behavior",function(){f._attachBehavior(b)})},_attachBehavior:function(a){var a=a.panels,b=a.$element,f=a.activeIndex;a.bind("wp-panel-show",function(a,b){b.panel.style.display="block"});a.bind("wp-panel-hide",function(a,b){b.panel.style.display="none"});b.each(function(a){this.style.display=a!==f?"none":"block"})}};b.Widget.Disclosure.AccordionTransitionPlugin=
| + | |
− | {defaultOptions:{transitionDirection:"vertical",transitionDuration:500,dispatchTransitionEvents:!0},initialize:function(b,d){var f=this;a.extend(d,a.extend({},f.defaultOptions,d));b.bind("attach-behavior",function(){f._attachBehavior(b)})},_attachBehavior:function(b){var d=this,f=b.panels,g=f.$element,k=f.activeIndex,h=b.options.transitionDirection,j=b.options.widgetClassName==="AccordionWidget"?a(g[0]).closest("*[data-rotate]"):null;if(j&&j.length>0)b.options.marginBottom=Muse.Utils.getCSSIntValue(j,
| + | |
− | "margin-bottom"),b.options.originalHeight=j[0].scrollHeight;b.options.rotatedAccordion=j;f.bind("wp-panel-show",function(a,g){d._showPanel(b,g)});f.bind("wp-panel-hide",function(a,g){d._hidePanel(b,g)});g.each(function(b){if(b!==k){a(this).css("overflow","hidden");if(h==="vertical"||h==="both")this.style.height="0";if(h==="horizontal"||h==="both")this.style.width="0"}})},_updateMarginBottomForRotatedAccordion:function(a){a.options.rotatedAccordion.css("margin-bottom",Math.round(a.options.marginBottom-
| + | |
− | (a.options.rotatedAccordion[0].scrollHeight-a.options.originalHeight))+"px")},_transitionPanel:function(b,d,f){a("body").trigger("wp-page-height-change",d-b);if((b=f.options.rotatedAccordion)&&b.length>0){if(f.options.originalHeight==0&&"undefined"!==typeof d)f.options.marginBottom=Muse.Utils.getCSSIntValue(b,"margin-bottom"),f.options.originalHeight=b[0].scrollHeight;this._updateMarginBottomForRotatedAccordion(f)}},_showPanel:function(b,d){var f=b.options,g=f.transitionDirection,k=a(d.panel),h={},
| + | |
− | j=f.dispatchTransitionEvents,i=this,l=k.height(),m=function(a){a=parseInt(a.elem.style.height);i._transitionPanel(l,a,b);l=a};if(g==="vertical"||g==="both")h.height=k[0].scrollHeight+"px";if(g==="horizontal"||g==="both")h.width=k[0].scrollWidth+"px";k.stop(!0,!0).queue("animationFrameFx",a.animationFrameFx).animate(h,{duration:f.transitionDuration,progress:j?m:null,queue:"animationFrameFx",complete:function(){var a={overflow:""};if(g==="vertical"||g==="both")a.height="auto";if(g==="horizontal"||g===
| + | |
− | "both")a.width="auto";k.css(a);(a=b.options.rotatedAccordion)&&a.length>0&&i._updateMarginBottomForRotatedAccordion(b)}}).dequeue("animationFrameFx")},_hidePanel:function(b,d){var f=b.options,g=f.transitionDirection,k=a(d.panel),h={},j=f.dispatchTransitionEvents,i=this,l=k.height(),m=function(a){a=parseInt(a.elem.style.height);i._transitionPanel(l,a,b);l=a};if(g==="vertical"||g==="both")h.height="0";if(g==="horizontal"||g==="both")h.width="0";k.stop(!0,!0).queue("animationFrameFx",a.animationFrameFx).animate(h,
| + | |
− | {duration:f.transitionDuration,queue:"animationFrameFx",progress:j?m:null,complete:function(){k.css("overflow","hidden");var a=b.options.rotatedAccordion;a&&a.length>0&&i._updateMarginBottomForRotatedAccordion(b)}}).dequeue("animationFrameFx")}}})(jQuery,WebPro,window,document);
| + | |
− | (function(a,b){b.widget("Widget.SlideShowBase",b.Widget,{_widgetName:"slideshow-base",defaultOptions:{displayInterval:6E3,autoPlay:!1,loop:!0,playOnce:!1},_setUp:function(){var a=this;this._ssTimer=0;this._ssTimerTriggered=!1;this._ssTimerCallback=function(){a._ssTimerTriggered=!0;a.next();a._ssTimerTriggered=!1};return b.Widget.prototype._setUp.apply(this,arguments)},_ready:function(){this.options.autoPlay&&this.play()},play:function(a){e=this.trigger("wp-slideshow-before-play");e.isDefaultPrevented()||
| + | |
− | (this._startTimer(!1,a),this.trigger("wp-slideshow-play"))},stop:function(){e=this.trigger("wp-slideshow-before-stop");e.isDefaultPrevented()||(this._stopTimer(),this.trigger("wp-slideshow-stop"))},isPlaying:function(){return this._ssTimer!==0},_startTimer:function(a,b){this._stopTimer();var f=b?0:this.options.displayInterval;a&&(f+=this.options.transitionDuration);this._ssTimer=setTimeout(this._ssTimerCallback,f)},_stopTimer:function(){this._ssTimer&&clearTimeout(this._ssTimer);this._ssTimer=0},
| + | |
− | _executeCall:function(a,b){e=this.trigger("wp-slideshow-before-"+a);e.isDefaultPrevented()||(this["_"+a].apply(this,b)&&this.stop(),this.isPlaying()&&this._startTimer(!0),this.trigger("wp-slideshow-"+a))},first:function(){return this._executeCall("first",arguments)},last:function(){return this._executeCall("last",arguments)},previous:function(){return this._executeCall("previous",arguments)},next:function(){return this._executeCall("next",arguments)},goTo:function(){return this._executeCall("goTo",
| + | |
− | arguments)},close:function(){return this._executeCall("close",arguments)},_first:function(){},_last:function(){},_previous:function(){},_next:function(){},_goTo:function(){},_close:function(){}})})(jQuery,WebPro,window,document);
| + | |
− | (function(a,b){b.widget("Widget.ContentSlideShow",b.Widget.SlideShowBase,{_widgetName:"content-slideshow",defaultOptions:{slideshowClassName:"wp-slideshow",clipClassName:"wp-slideshow-clip",viewClassName:"wp-slideshow-view",slideClassName:"wp-slideshow-slide",slideLinkClassName:"wp-slideshow-slide-link",firstBtnClassName:"wp-slideshow-first-btn",lastBtnClassName:"wp-slideshow-last-btn",prevBtnClassName:"wp-slideshow-prev-btn",nextBtnClassName:"wp-slideshow-next-btn",playBtnClassName:"wp-slideshow-play-btn",
| + | |
− | stopBtnClassName:"wp-slideshow-stop-btn",closeBtnClassName:"wp-slideshow-close-btn",playingClassName:"wp-slideshow-playing"},_findWidgetElements:function(a){var d=this.$element[0];return b.scopedFind(d,a,this.options.slideshowClassName,d)},_attachBtnHandler:function(a,b){var f=this;this["$"+b+"Btn"]=this._findWidgetElements("."+a).bind("click",function(a){f[b]();a.preventDefault()})},_getAjaxSrcForImage:function(a){return a.data("src")},_reprioritizeImageLoadingIfRequired:function(b){!this._isLoaded(b)&&
| + | |
− | this._cssilLoader&&!this._cssilLoader.isQueueEmpty()&&(b=a(this.slides.$element[b]),this._cssilLoader.reprioritize(this._getAjaxSrcForImage(b.is("img")?b:b.find("img")),this.isPlaying()))},_attachBehavior:function(){var a=this,d=this.options;this._super.prototype._attachBehavior.call(this);this._panelShowCallback=function(){a._ssTimerTriggered||a.isPlaying()&&a._startTimer(!1)};this.$element.addClass(d.slideshowClassName);var f=this._findWidgetElements("."+d.slideClassName),g=this._findWidgetElements("."+
| + | |
− | d.slideLinkClassName),k=d.event==="click"&&d.deactivationEvent==="mouseout_click";this.slides=new b.Widget.PanelGroup(f,{defaultIndex:d.defaultIndex||0,toggleStateEnabled:k});this.slides.bind("wp-panel-show",this._panelShowCallback);this.tabs=null;if(g.length)this.tabs=new b.Widget.TabGroup(g,{defaultIndex:d.defaultIndex||0,toggleStateEnabled:k}),this.slides.addTabGroup(this.tabs);this.slides.bind("wp-panel-before-show",function(b,g){a._reprioritizeImageLoadingIfRequired(g.panelIndex)});this._attachBtnHandler(d.firstBtnClassName,
| + | |
− | "first");this._attachBtnHandler(d.lastBtnClassName,"last");this._attachBtnHandler(d.prevBtnClassName,"previous");this._attachBtnHandler(d.nextBtnClassName,"next");this._attachBtnHandler(d.playBtnClassName,"play");this._attachBtnHandler(d.stopBtnClassName,"stop");this._attachBtnHandler(d.closeBtnClassName,"close");this.bind("wp-slideshow-play",function(){this.$element.addClass(d.playingClassName)});this.bind("wp-slideshow-stop",function(){this.$element.removeClass(d.playingClassName)})},_first:function(){this.slides.showPanel(0)},
| + | |
− | _last:function(){var a=this.slides;a.showPanel(a.$element.length-1)},_previous:function(){var a=this.slides,b=a.$element.length,f=a.activeIndex,b=(f<1?b:f)-1;!this.options.loop&&0==f?this.isPlaying()&&this.stop():a.showPanel(b)},_next:function(){var a=this.slides,b=a.activeIndex,f=(b+1)%a.$element.length;!this.options.loop&&0==f?this.isPlaying()&&this.stop():this.options.playOnce&&0==f&&this.isPlaying()?this.stop():(!this.isPlaying()||this._isLoaded(b)&&this._isLoaded(f))&&a.showPanel(f)},_goTo:function(){var a=
| + | |
− | this.slides;a.showPanel.apply(a,arguments)},_close:function(){var a=this.slides;a.hidePanel(a.activeElement)},_isLoaded:function(b){if(this._csspIsImageSlideShow&&(b=a(this.slides.$element[b]),b=b.is("img")?b:b.find("img"),b.length>0&&(b.hasClass(this.options.imageIncludeClassName)||!b[0].complete)))return!1;return!0}})})(jQuery,WebPro,window,document);
| + | |
− | (function(a,b,c,d,f){b.Widget.ContentSlideShow.fadingTransitionPlugin={defaultOptions:{transitionDuration:500},initialize:function(b,c){var d=this;a.extend(c,a.extend({},d.defaultOptions,c));b.bind("attach-behavior",function(){d.attachBehavior(b)})},attachBehavior:function(b){var k=this,h=b.slides,j=h.$element,i=h.activeIndex,l=b._findWidgetElements("."+b.options.viewClassName);h.bind("wp-panel-show",function(c,d){k._showElement(b,a(d.panel));b.options.contentLayout_runtime==="stack"&&k._showElement(b,
| + | |
− | b.$closeBtn)}).bind("wp-panel-hide",function(c,d){k._hideElement(b,a(d.panel))});b.options.contentLayout_runtime==="stack"&&b.bind("wp-slideshow-close",function(){k._hideElement(b,b.$closeBtn)});for(var m=0;m<j.length;m++)if(m!==i)j[m].style.display="none";if(b.options.elastic==="fullWidth"){var o=a(c),q=a(d.body),p=function(c){c===f&&(c=Math.max(o.width(),parseInt(q.css("min-width"))));b.options.contentLayout_runtime!=="lightbox"&&l.css("left",l.position().left-l.offset().left);l.width(c);k._showElement(b,
| + | |
− | a(h.activeElement))};p();for(m=0;m<j.length;m++){var n=a(j[m]);n.width("100%");n.addClass("borderbox")}if(b.options.contentLayout_runtime==="lightbox")b._fstpPositionSlides=p;else o.on("orientationchange resize",function(){p()})}i===-1&&b.options.contentLayout_runtime==="stack"&&b.$closeBtn.hide();if(Muse.Browser.Features.Touch&&Muse.Browser.Features.Touch.Start=="touchstart"&&b.options.enableSwipe===!0){var t=b.options.transitionDuration;b._ftpSwipeNoInterrupt=!1;j.each(function(){var c=a(this);
| + | |
− | c.data("opacity",c.css("opacity"));var d=Muse.Utils.getCanvasDirection(c,"horizontal"),f=d.dir==="horizontal",h=d.reverse;c.swipe({triggerOnTouchEnd:!0,allowPageScroll:f?"vertical":"horizontal",threshold:75,swipeStatus:function(a,c,d,i){b.stop();if(c=="move"&&(f&&(d=="left"||d=="right")||!f&&(d=="up"||d=="down")))k._scrollTo(b,-1,i*(!h&&(d=="left"||d=="up")||h&&(d=="right"||d=="down")?1:-1),0);else if(c=="cancel")k._scrollTo(b,b.slides.activeIndex,0,t);else if(c=="end"){a=b.slides.activeIndex;c=-1;
| + | |
− | if(f&&(d=="right"&&!h||d=="left"&&h)||!f&&(d=="down"&&!h||d=="up"&&h))c=a-1<0?j.length-1:a-1;else if(f&&(d=="left"&&!h||d=="right"&&h)||!f&&(d=="up"&&!h||d=="down"&&h))c=a+1>j.length-1?0:a+1;c!=-1&&k._scrollTo(b,c,0,t)}}})})}},_showElement:function(a,b){var c=!1,d=function(){c||(c=!0,b.show().css("opacity",""))},f=setTimeout(d,a.options.transitionDuration+10);b.stop(!1,!0).fadeIn(a.options.transitionDuration,function(){clearTimeout(f);d()})},_hideElement:function(a,b){var c=!1,d=function(){c||(c=
| + | |
− | !0,b.hide().css("opacity",""))},f=setTimeout(d,a.options.transitionDuration+10);b.stop(!1,!0).fadeOut(a.options.transitionDuration,function(){clearTimeout(f);d()})},_scrollTo:function(b,c,d,f){if(!b._ftpSwipeNoInterrupt){var i=b.slides.$element,l=b.slides.activeIndex,m=c==-1;c==-1&&(c=d<0?l-1<0?i.length-1:l-1:l+1>i.length-1?0:l+1);var o=a(i[l]),q=a(i[c]);if(!m&&d==0||l==c){b._ftpSwipeNoInterrupt=!0;var p=0,n=!1,t=function(){if(!n&&(n=!0,q.show().css("opacity",""),c!=l&&b.slides.showPanel(c),++p==
| + | |
− | i.length))b._ftpSwipeNoInterrupt=!1};if(q.css("opacity")!=q.data("opacity")){var s=setTimeout(t,f+10);q.stop(!1,!0).animate({opacity:q.data("opacity")},f,function(){clearTimeout(s);t()})}else t();i.each(function(d){var h=a(this),o=!1,l=function(){if(!o&&(o=!0,h.hide().css("opacity",""),++p==i.length))b._ftpSwipeNoInterrupt=!1},q;d!=c&&(h.css("display")!="none"&&h.css("opacity")!=0?(q=setTimeout(l,f+10),h.stop(!1,!0).animate({opacity:0},f,function(){clearTimeout(q);l()})):l())})}else d=Math.abs(d),
| + | |
− | m=o.width(),d>m&&(d=m),d=q.data("opacity")*(d/m),m=o.data("opacity")*(1-d),o.stop(!1,!0).animate({opacity:m},f),q.stop(!1,!0).show().animate({opacity:d},f)}}};b.Widget.ContentSlideShow.filmstripTransitionPlugin={defaultOptions:{transitionDuration:500,transitionStyle:"horizontal"},initialize:function(b,c){var d=this;a.extend(c,a.extend({},d.defaultOptions,c));b.bind("attach-behavior",function(){d.attachBehavior(b)})},attachBehavior:function(b){var k=this,h=a(c),j=a(d.body),i=function(){return l.elastic===
| + | |
− | "fullWidth"?Math.max(h.width(),parseInt(j.css("min-width"))):p.width()},l=b.options,m=l.transitionStyle==="horizontal",o=b.slides,q=o.$element,p=b._findWidgetElements("."+l.clipClassName),n=b._findWidgetElements("."+l.viewClassName),t=i(),s=p.height(),u={top:"0",left:"0"},w=p.css("position");w!=="absolute"&&w!=="fixed"&&l.elastic!=="fullScreen"&&p.css("position","relative");n.css("position")!=="absolute"&&(u.position="relative");b._fstp$Clip=p;b._fstp$View=n;b._fstpStyleProp=m?"left":"top";b._fstpStylePropZero=
| + | |
− | m?"top":"left";o.bind("wp-panel-show",function(a,c){k._goToSlide(b,c.panel,l.transitionDuration);b.options.contentLayout_runtime==="stack"&&b.$closeBtn.stop(!0).fadeIn(l.transitionDuration)});b.options.contentLayout_runtime==="stack"&&b.bind("wp-slideshow-close",function(){p.css({opacity:0.99}).stop(!0).animate({opacity:0},{queue:!1,duration:l.transitionDuration,complete:function(){u[b._fstpStyleProp]=(m?p.width():p.height())+"px";u[b._fstpStylePropZero]="0";n.css(u);p.css({opacity:""})}});b.$closeBtn.stop(!0).fadeOut(l.transitionDuration)});
| + | |
− | b._fstpRequestType=null;b.bind("wp-slideshow-before-previous wp-slideshow-before-next",function(a){b._fstpRequestType=a.type.replace(/.*-/,"");b._fstpOldActiveIndex=b.slides.activeIndex}).bind("wp-slideshow-previous wp-slideshow-next",function(){b._fstpRequestType=null;b._fstpOldActiveIndex=-1});var z=function(a,c){if(a===f||c===f)a=i(),c=p.height();l.elastic==="fullWidth"&&(c=p.height(),p.width(a),l.contentLayout_runtime!=="lightbox"&&p.css("left",p.position().left-p.offset().left),n.width(a));for(var d=
| + | |
− | 0,h=m?a:c,j=b._fstpStyleProp,t=b._fstpStylePropZero,s=0;s<q.length;s++){var u=q[s].style;u[t]="0";u[j]=d+"px";u.margin="0";u.position="absolute";d+=h}k._goToSlide(b,o.activeElement,0);return d},w=z();if(l.elastic==="fullWidth")for(var v=0;v<q.length;v++){var D=a(q[v]);D.width("100%");D.addClass("borderbox")}if(l.elastic!=="off")if(l.contentLayout_runtime==="lightbox")b._fstpPositionSlides=z;else h.on("orientationchange resize",function(){z()});else u[m?"width":"height"]=w+"px",u[m?"height":"width"]=
| + | |
− | (m?s:t)+"px";o.activeElement||(u[b._fstpStyleProp]=(m?t:s)+"px",u[b._fstpStylePropZero]="0",b.options.contentLayout_runtime==="stack"&&b.$closeBtn.hide());u.overflow="visible";n.css(u);k._goToSlide(b,o.activeElement,l.transitionDuration)},_goToSlide:function(b,c,d){if(b){var f=a(c),i=b._fstp$View,l=b._fstpStyleProp,m=l==="left"?"offsetLeft":"offsetTop",o=l==="left"?"offsetWidth":"offsetHeight",q=c?-c[m]:b._fstp$Clip[0][o],p={};p[l]=q+"px";var n=b._fstpRequestType,t=b._fstpOldActiveIndex;if(n&&t!==
| + | |
− | -1){var s=b.slides.activeIndex,u=b.slides.$element.length-1;if(s!==t){var w=0;n==="previous"&&t===0&&s===u?w=-c[o]:n==="next"&&t===u&&s===0&&(b=b.slides.$element[t],w=b[m]+b[o]);w&&(p[l]=-w+"px",f.css(l,w+"px"))}}i.stop(!1,!0).animate(p,d,function(){w&&(f.css(l,-q+"px"),i.css(l,q+"px"))})}}};b.Widget.ContentSlideShow.swipeTransitionPlugin={defaultOptions:{transitionDuration:500,transitionStyle:"horizontal"},initialize:function(b,c){var d=this;a.extend(c,a.extend({},d.defaultOptions,c));b.bind("attach-behavior",
| + | |
− | function(){d.attachBehavior(b)})},attachBehavior:function(b){var k=this,h=a(c),j=a(d.body),i=function(){return l.elastic==="fullWidth"?Math.max(h.width(),parseInt(j.css("min-width"))):p.width()},l=b.options,m=l.transitionStyle==="horizontal",o=b.slides,q=o.$element,p=b._findWidgetElements("."+l.clipClassName),n=b._findWidgetElements("."+l.viewClassName),t=i(),s=p.height(),u=function(a,b){if(a===f||b===f)a=i(),b=p.height();return m?a:b},w=u();viewProps={top:"0",left:"0"};p.css("position")!=="absolute"&&
| + | |
− | l.elastic!=="fullScreen"&&p.css("position","relative");n.css("position")!=="absolute"&&(viewProps.position="relative");b._fstp$Clip=p;b._fstp$View=n;b._fstpStyleProp=m?"left":"top";b._fstpStylePropZero=m?"top":"left";o.bind("wp-panel-show",function(){var a=b.slides.activeIndex*u(),c=b.options.transitionDuration;a==0&&b.slides.activeIndex==0&&!l.shuffle&&b.isPlaying()&&(c=0);k._scrollTo(b,a,c);b.options.contentLayout_runtime==="stack"&&b.$closeBtn.stop(!0).fadeIn(c)});b.options.contentLayout_runtime===
| + | |
− | "stack"&&b.bind("wp-slideshow-close",function(){p.css({opacity:0.99}).stop(!0).animate({opacity:0},{queue:!1,duration:l.transitionDuration,complete:function(){k._scrollTo(b,-u(),0);p.css({opacity:""})}});b.$closeBtn.stop(!0).fadeOut(b.options.transitionDuration)});b._fstpRequestType=null;b.bind("wp-slideshow-before-previous wp-slideshow-before-next",function(a){b._fstpRequestType=a.type.replace(/.*-/,"");b._fstpOldActiveIndex=b.slides.activeIndex}).bind("wp-slideshow-previous wp-slideshow-next",function(){b._fstpRequestType=
| + | |
− | null;b._fstpOldActiveIndex=-1});var z=function(a,c){if(a===f||c===f)a=i(),c=p.height();l.elastic==="fullWidth"&&(c=p.height(),p.width(a),l.contentLayout_runtime!=="lightbox"&&p.css("left",p.position().left-p.offset().left),n.width(a));for(var d=0,h=m?a:c,j=b._fstpStyleProp,t=b._fstpStylePropZero,s=0;s<q.length;s++){var r=q[s].style;r[t]="0";r[j]=d+"px";r.margin="0";r.position="absolute";d+=h}n.css(m?"width":"height",d);k._scrollTo(b,o.activeIndex*h,0);return d},v=z();if(l.elastic==="fullWidth")for(var D=
| + | |
− | 0;D<q.length;D++){var A=a(q[D]);A.width("100%");A.addClass("borderbox")}if(l.elastic!=="off")if(l.lightboxEnabled_runtime)b._fstpPositionSlides=z;else h.on("orientationchange resize",function(){z()});else viewProps[m?"width":"height"]=v+"px",viewProps[m?"height":"width"]=(m?s:t)+"px";viewProps.overflow="visible";n.css(viewProps);var t=Muse.Utils.getCanvasDirection(n,l.transitionStyle),r=t.dir==="horizontal",y=t.reverse,H=b.options.transitionDuration;n.swipe({triggerOnTouchEnd:!0,allowPageScroll:r?
| + | |
− | "vertical":"horizontal",threshold:75,swipeStatus:function(a,c,d,f){b.stop();w=u();if(c=="move"&&(r&&(d=="left"||d=="right")||!r&&(d=="up"||d=="down")))d=w*b.slides.activeIndex+f*(!y&&(d=="left"||d=="up")||y&&(d=="right"||d=="down")?1:-1),k._scrollTo(b,d,0);else if(c=="cancel")d=w*b.slides.activeIndex,k._scrollTo(b,d,H);else if(c=="end"){a=-1;if(r&&(d=="right"&&!y||d=="left"&&y)||!r&&(d=="down"&&!y||d=="up"&&y))a=Math.max(b.slides.activeIndex-1,0);else if(r&&(d=="left"&&!y||d=="right"&&y)||!r&&(d==
| + | |
− | "up"&&!y||d=="down"&&y))a=Math.min(b.slides.activeIndex+1,n.children().length-1);a!=-1&&(d=w*a,k._scrollTo(b,d,H),a!=b.slides.activeIndex&&b.slides.showPanel(a))}}});o.activeElement?(t=o.activeIndex*w,k._scrollTo(b,t,0)):(k._scrollTo(b,-w,0),b.options.contentLayout_runtime==="stack"&&b.$closeBtn.hide())},_scrollTo:function(a,b,c){var g;var d=Muse.Browser.Features.checkCSSFeature("transition-duration"),f=Muse.Browser.Features.checkCSSFeature("transform");if(!(d===!1||f===!1)){var l=a._fstp$View.get(0);
| + | |
− | l.style[(d===!0?"":"-"+d.toLowerCase()+"-")+"transition-duration"]=(c/1E3).toFixed(1)+"s";b=-b;g=(c=a.options.transitionStyle==="horizontal")?b:0,a=g;b=c?0:b;f=(f===!0?"":"-"+f.toLowerCase()+"-")+"transform";c="translate3d("+a+"px, "+b+"px, 0px)";d=l.style[f];l.style[f]=c;l.style[f]===d&&d!==c&&(l.style[f]="translate("+a+"px, "+b+"px)")}}};b.Widget.ContentSlideShow.slideImageIncludePlugin={defaultOptions:{imageIncludeClassName:"wp-slideshow-slide-image-include",slideLoadingClassName:"wp-slideshow-slide-loading"},
| + | |
− | initialize:function(c,d){var f=this;a.extend(d,a.extend({},f.defaultOptions,d));c._cssilLoader=new b.ImageLoader;c.bind("attach-behavior",function(){f._attachBehavior(c)})},_attachBehavior:function(a){for(var b=this,c=a._cssilLoader,d=a._findWidgetElements("."+a.options.slideClassName),f=d.length,l="."+a.options.imageIncludeClassName,m=a.options.slideLoadingClassName,o=function(c,d,f,h){b._handleImageLoad(a,c,d,f,h)},q=0;q<f;q++){var p=d.eq(a._shuffleArray?a._shuffleArray[q]:q),n=p.is("img")?p:p.find(l),
| + | |
− | t=n[0];if(t){var s=a._getAjaxSrcForImage(n)||t.href;if(s)n={width:n.data("width"),height:n.data("height"),$ele:n,$slide:p},t.style.visibility="hidden",c.add(s,{callback:o,data:n}),p.addClass(m)}}a._cssilLoader.start()},_handleImageLoad:function(a,b,c,d,f){var l=f.$ele,m=l[0];m.src=b;a.options.elastic!=="off"?(l.data("imageWidth",c),l.data("imageHeight",d),a._csspPositionImage(m,a.options.heroFitting,a.options.elastic,c,d)):(m.width=f.width||c,m.height=f.height||d);m.style.visibility="";l.removeClass(a.options.imageIncludeClassName);
| + | |
− | f.$slide.removeClass(a.options.slideLoadingClassName);a.isPlaying()&&a.slides.$element[a.slides.activeIndex]==f.$slide[0]&&a._startTimer(!1)}};b.Widget.ContentSlideShow.shufflePlayPlugin={defaultOptions:{randomDefaultIndex:!0},initialize:function(b,c){var d=this;a.extend(c,a.extend({},d.defaultOptions,c));b._shuffleArray=[];b._shuffleNextDict={};b._realNext=b._next;b._next=function(){d._handleNext(b)};b._shufflePlayCount=1;b.bind("before-attach-behavior",function(){d._reshuffle(b);if(c.randomDefaultIndex&&
| + | |
− | typeof c.defaultIndex==="undefined")b.options.defaultIndex=b._shuffleArray[0]})},_fisherYatesArrayShuffle:function(a){if(a&&a.length)for(var b=a.length;--b;){var c=Math.floor(Math.random()*(b+1)),d=a[c];a[c]=a[b];a[b]=d}},_reshuffle:function(a){var b=a._shuffleArray,c={},d=a.slides?a.slides.$element.length:a._findWidgetElements("."+a.options.slideClassName).length;if(b.length!==d)for(var f=b.length=0;f<d;f++)b[f]=f;this._fisherYatesArrayShuffle(b);for(f=0;f<d;f++)c[b[f]]=b[(f+1)%d];a._shuffleNextDict=
| + | |
− | c;a._shufflePlayCount=1},_handleNext:function(a){if(a.isPlaying()){var b=a.slides.activeIndex,c=a._shuffleNextDict[b]||0;a._isLoaded(b)&&a._isLoaded(c)&&(a._goTo(c),++a._shufflePlayCount>=a.slides.$element.length&&(this._reshuffle(a),(!a.options.loop||a.options.playOnce)&&a.stop()))}else a._realNext()}}})(jQuery,WebPro,window,document);
| + | |
− | (function(a,b,c){b.widget("Widget.Form",b.Widget,{_widgetName:"form",defaultOptions:{validationEvent:"blur",errorStateSensitivity:"low",ajaxSubmit:!0,fieldWrapperClass:"field",formErrorClass:"form-error",formSubmittedClass:"form-submitted",formDeliveredClass:"form-delivered",focusClass:"focus",notEmptyClass:"not-empty",emptyClass:"empty",validClass:"valid",invalidClass:"invalid",requiredClass:"required"},validationTypes:{"always-valid":/.*/,email:/^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,
| + | |
− | alpha:/^[A-z\s]+$/,numeric:/^[0-9]+$/,phone:/^([0-9])?(\s)?(\([0-9]{3}\)|[0-9]{3}(\-)?)(\s)?[0-9]{3}(\s|\-)?[0-9]{4}(\s|\sext|\sx)?(\s)?[0-9]*$/,captcha:function(a){return a.data("captchaValid")},time:function(a){var a=a.find("input, textarea"),b=a.val().replace(/[^0-9:APM]/g,"");if(b.indexOf(":")!=-1&&b.match(/:/).length==1){var c=b.split(":"),k=parseInt(c[0]),c=parseInt(c[1]);if(k<0||k>24)return!0;if(c<0||c>59)return!0}else return!1;a.val(b);return!0}},_transformMarkup:function(){var b=this;b.hasCAPTCHA=
| + | |
− | !1;this.$element.find("."+this.options.fieldWrapperClass).each(function(){var c=a(this);if(c.attr("data-type")=="captcha")b.hasCAPTCHA=!0,c.find('input[name="CaptchaV2"]').remove(),c.find('input[name="muse_CaptchaV2"]').attr("name","CaptchaV2")})},_extractData:function(){this.event=this.options.validationEvent;this.errorSensitivity=this.options.errorStateSensitivity;this.classNames={focus:this.options.focusClass,blur:this.options.emptyClass,keydown:this.options.notEmptyClass}},_attachBehavior:function(){var b=
| + | |
− | this;this.$element.find("input, textarea").each(function(){var c=a(this);c.val()!=""&&c.removeClass(b.options.emptyClass)});this.$element.find("."+this.options.fieldWrapperClass).each(function(){var c=a(this);c.attr("data-type")=="captcha"&&(c.data("captchaValid",!1),c.find('input[name="CaptchaV2"]').keyup(function(){var g=a(this).val(),k=c.find('input[name="CaptchaHV2"]').val();b._validateCaptcha(k,g,function(a){c.data("captchaValid",a);c.data("error-state")&&b.errorSensitivity=="high"&&b._validate(c)})}));
| + | |
− | c.find("input, textarea").val()!=""&&c.addClass(b.classNames.keydown)});this.$element.find("input, textarea").bind("focus blur keydown change propertychange",function(c){var g=b.classNames[c.type],k=b.classNames.focus,h=b.classNames.keydown,j=b.classNames.blur,i=a(this),l=i.closest("."+b.options.fieldWrapperClass);switch(c.type){case "focus":l.addClass(g).removeClass(j);break;case "blur":l.removeClass(k);i.val()==""&&l.addClass(g).removeClass(h);break;case "keydown":l.addClass(g).removeClass(j);break;
| + | |
− | case "change":case "propertychange":i.val()!=""?l.addClass(h).removeClass(j):l.addClass(j).removeClass(h)}});switch(this.event){case "blur":case "keyup":this.$element.find("."+this.options.fieldWrapperClass+" input, ."+this.options.fieldWrapperClass+" textarea").bind(this.event,function(){b._validate(a(this).closest("."+b.options.fieldWrapperClass))});case "submit":this.$element.submit(function(c){var g=!0,k=b.$element.find("."+b.options.fieldWrapperClass).length-1;b.$element.find("."+b.options.fieldWrapperClass).each(function(h){if((g=
| + | |
− | b._validate(a(this))?g:!1)&&h==k&&b.options.ajaxSubmit)c.preventDefault(),b._submitForm();g||c.preventDefault()})})}},_validateCaptcha:function(b,c,g){c.length!=6?g(!1):a.get("/ValidateCaptcha.ashx",{key:b,answer:c},function(a){g(a=="true")})},_submitForm:function(){var b=this,f=this.options.formSubmittedClass,g=this.options.formDeliveredClass,k=this.options.formErrorClass,h=f+" "+g+" "+k,j=this.$element.find("input[type=submit], button");a.ajax({url:this.$element.attr("action"),type:"post",data:this.$element.serialize(),
| + | |
− | beforeSend:function(){b.$element.removeClass(h);b.$element.addClass(f);b.$element.find("."+b.options.fieldWrapperClass).removeClass(b.options.focusClass);j.attr("disabled","disabled")},complete:function(h){h&&(h.status>=400||h.responseText&&h.responseText.indexOf("<?php")>=0)&&alert("Form PHP script is missing from web server, or PHP is not configured correctly on your web hosting provider. Check if the form PHP script has been uploaded correctly, then contact your hosting provider about PHP configuration.");
| + | |
− | if(h&&h.responseText&&h.responseText.indexOf('"success": true')>0&&h.responseText.indexOf("<?php")<0)if(b.$element.addClass(g).removeClass(f),h.responseText.indexOf('"redirect":')>0){h=jQuery.parseJSON(h.responseText);c.location.href=h.FormResponse.redirect;return}else b.$element.find("input:not([type=submit]), textarea").each(function(){var c=a(this);c.val("");b.hasCAPTCHA&&c.attr("disabled","disabled")});else b.$element.addClass(k).removeClass(f);b.hasCAPTCHA||j.removeAttr("disabled")}})},_validate:function(a){var b=
| + | |
− | a.attr("data-type")||"always-valid",c=a.find("input, textarea"),k=this.validationTypes[b],b=a.attr("data-required")==="true",h=c.val()=="",c=k instanceof RegExp?Boolean(c.val().match(k)):k(a);if(b&&h)return this._switchState("required",a);if(!c)return this._switchState("invalid",a);return this._switchState("valid",a)},_switchState:function(a,b){function c(){i._validate(b)}var k=this.options.validClass,h=this.options.invalidClass,j=this.options.requiredClass;b.removeClass(k+" "+h+" "+j);if(a=="required"||
| + | |
− | a=="invalid"){a=="invalid"?b.addClass(h):b.addClass(j);if(this.errorSensitivity!="low"){var i=this,k=this.errorSensitivity=="high"?"keyup":"blur";b.data("error-state")||(b.data("error-state",!0),b.find("input, textarea").bind(k,c))}return!1}b.data("error-state")&&(this.errorSensitivity=="high"?this.event!="keyup"&&b.data("error-state",!1).find("input, textarea").unbind("keyup",c):this.errorSensitivity=="medium"&&this.event!="blur"&&b.data("error-state",!1).find("input, textarea").unbind("blur",c));
| + | |
− | b.addClass(k);return!0}});a.fn.wpForm=function(a){new b.Widget.Form(this,a);return this}})(jQuery,WebPro,window,document);
| + | |
− | ;(function(){if(!("undefined"==typeof Muse||"undefined"==typeof Muse.assets)){var a=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]==b)return c;return-1}(Muse.assets.required,"webpro.js");if(-1!=a){Muse.assets.required.splice(a,1);for(var a=document.getElementsByTagName("meta"),b=0,c=a.length;b<c;b++){var d=a[b];if("generator"==d.getAttribute("name")){"2014.0.0.264"!=d.getAttribute("content")&&Muse.assets.outOfDate.push("webpro.js");break}}}}})();
| + | |
− | <script>
| + | |
− | /*
| + | |
− | ADOBE CONFIDENTIAL
| + | |
− | ___________________
| + | |
− | | + | |
− | Copyright 2012 Adobe Systems Incorporated
| + | |
− | All Rights Reserved.
| + | |
− | | + | |
− | NOTICE: All information contained herein is, and remains
| + | |
− | the property of Adobe Systems Incorporated and its suppliers,
| + | |
− | if any. The intellectual and technical concepts contained
| + | |
− | herein are proprietary to Adobe Systems Incorporated and its
| + | |
− | suppliers and may be covered by U.S. and Foreign Patents,
| + | |
− | patents in process, and are protected by trade secret or copyright law.
| + | |
− | Dissemination of this information or reproduction of this material
| + | |
− | is strictly forbidden unless prior written permission is obtained
| + | |
− | from Adobe Systems Incorporated.
| + | |
− | */
| + | |
− | (function(a,b,c,d,f){c.Plugins.SlideShowCaptions={defaultOptions:{captionClassName:"SSSlideCaption"},initialize:function(b,c){var d=this;a.extend(c,a.extend({},d.defaultOptions,c));b.bind("attach-behavior",function(){d._attachBehavior(b)})},_attachBehavior:function(a){var b=a._findWidgetElements("."+a.options.captionClassName);if(b.length)a._sscpCaptions=b,b.css("display","none"),a.slides.bind("wp-panel-show",function(a,c){b.eq(c.panelIndex).css("display","block")}),a.slides.bind("wp-panel-hide",
| + | |
− | function(a,c){b.eq(c.panelIndex).css("display","none")}),a.bind("ready",function(){b.eq(a.slides.activeIndex).css("display","block")})}};c.Plugins.SlideShowLabel={defaultOptions:{labelClassName:"SlideShowLabel"},initialize:function(b,c){var d=this;a.extend(c,a.extend({},d.defaultOptions,c));b.bind("attach-behavior",function(){d._attachBehavior(b)})},_attachBehavior:function(a){var b=this,c=a._findWidgetElements("."+a.options.labelClassName);if(c.length)a._$sslpLabels=c,a.slides.bind("wp-panel-show",
| + | |
− | function(){b._updateLabels(a)}),a.bind("ready",function(){b._updateLabels(a)})},_findAllTextNodes:function(a,b){b=b||[];switch(a.nodeType){case 3:b.push(a);break;case 1:if(a.nodeName.toLowerCase()!=="script")for(var c=a.firstChild;c;)this._findAllTextNodes(c,b),c=c.nextSibling}a.nextSibling&&this._findAllTextNodes(a.nextSibling,b);return b},_updateLabels:function(a){var b=this,c=a.slides,d=c.activeIndex+1,f=c.$element.length;a._$sslpLabels.each(function(){for(var a=b._findAllTextNodes(this),c=a.length,
| + | |
− | g=0,h=function(a){return++g===1?d:g===2?f:a},p=0;p<c;p++){var n=a[p],s=n.nodeValue,t=s.replace(/\d+/g,h);if(t!==s)n.nodeValue=t}})}};c.Plugins.Lightbox={defaultOptions:{lightboxPartsSelector:".PamphletLightboxPart",closeBtnClassName:"PamphletCloseButton"},initialize:function(b,c){var d=this;a.extend(c,a.extend({},d.defaultOptions,c));b._sslbpAutoPlay=c.autoPlay;c.autoPlay=!1;b.bind("before-transform-markup",function(){d._beforeTransformMarkup(b)});b.bind("attach-behavior",function(){d._attachBehavior(b)})},
| + | |
− | _beforeTransformMarkup:function(a){a._sslbpShownInitially=!0;var b=a._findWidgetElements("."+a.options.slideClassName);if(b.filter(":hidden").length==0)a._sslbpSlideOffset=b.offset();else{a._sslbpShownInitially=!1;var d=a._findWidgetElements("."+a.options.viewClassName);a._sslbpSlideOffset={top:c.Utils.getCSSIntValue(d,"top")+c.Utils.getCSSIntValue(b,"top"),left:c.Utils.getCSSIntValue(d,"left")+c.Utils.getCSSIntValue(b,"left")}}},_attachBehavior:function(a){var b=this,d=a.options;a.tabs.$element.bind(d.event,
| + | |
− | function(){b._openLightbox(a)});a.slides.bind("wp-panel-before-show",function(){b._openLightbox(a)});if(c.Browser.Features.Touch&&d.elastic==="fullScreen")a.slides.$element.not("a[href]").on("click",function(){b._closeLightbox(a)});a._$sslbpCloseBtn=a._findWidgetElements("."+d.closeBtnClassName).bind("click",function(){b._closeLightbox(a)});b._initializeMarkup(a)},_initializeMarkup:function(b){var d=b.options,f=d.elastic!=="off",i=b._findWidgetElements("."+d.viewClassName),j=b.slides.$element,k=i,
| + | |
− | m=b._sslbpSlideOffset,o=j.outerWidth(),q=j.outerHeight(),p=b._findWidgetElements(d.lightboxPartsSelector),k=a(i[0].parentNode).filter("."+d.clipClassName);k.length===0&&(k=i);p.each(function(d,l){var i=a(l);if(i.css("position")!=="fixed"){var j=b._sslbpShownInitially?i.offset():{top:c.Utils.getCSSIntValue(i,"top"),left:c.Utils.getCSSIntValue(i,"left")},k={top:j.top-m.top};if(!f)k.left=j.left-m.left;i.css(k)}}).addClass("popup_element");var n=a('<div id="'+(i.attr("id")||"")+'"></div>').css({left:0,
| + | |
− | top:0,width:"auto",height:"auto",padding:0,margin:0,zIndex:"auto"}),s;f&&(s=a("<div/>"),d.elastic==="fullScreen"?s.addClass("fullscreen"):d.elastic==="fullWidth"&&s.addClass("fullwidth"),s.css({paddingLeft:i.css("padding-left"),paddingRight:i.css("padding-right"),paddingTop:i.css("padding-top"),paddingBottom:i.css("padding-bottom"),borderColor:i.css("border-left-color"),borderStyle:i.css("border-left-style"),borderLeftWidth:i.css("border-left-width"),borderRightWidth:i.css("border-right-width"),borderTopWidth:i.css("border-top-width"),
| + | |
− | borderBottomWidth:i.css("border-bottom-width")}),s.append(k),s.append(p),n.css({border:"none"}));i.removeAttr("id");var t=a("<div class='overlayWedge'></div>").insertBefore(j[0]);n.append(i.children().not("."+d.slideClassName));i.append(j);n.css({visibility:"hidden"}).appendTo(document.body);var i=n.outerWidth(),v=n.outerHeight();n.detach().css({visibility:""});k.css({position:d.elastic==="fullScreen"?"relative":"absolute",padding:0,left:d.elastic==="fullWidth"?"":0,top:0,borderWidth:0,background:"none"});
| + | |
− | d.elastic!=="fullScreen"&&k.css({width:o,height:q});d.transitionStyle==="fading"&&j.css({position:"absolute",left:0,top:0});var w;if(b._fstpPositionSlides||b._csspResizeFullScreenImages)w=function(a,c){b._fstpPositionSlides&&b._fstpPositionSlides(a,c);b._csspResizeFullScreenImages&&b._csspResizeFullScreenImages(b,b.slides.$element,d.heroFitting)};o=-o/2;q=-q/2;k=a("<div class='LightboxContent'></div>").css({position:"absolute"}).append(f?s:k);f||k.append(p);k.museOverlay({autoOpen:!1,offsetLeft:o,
| + | |
− | offsetTop:q,overlayExtraWidth:i,overlayExtraHeight:v,$overlaySlice:n,$overlayWedge:t,onClose:function(){b.stop();b.slides.hidePanel(b.slides.activeElement)},$elasticContent:s,resizeSlidesFn:w});if(a.browser.msie&&a.browser.version<9){var y=n[0];c.Utils.needPIE(function(){PIE.detach(y);PIE.attach(y)})}b._$sslbpOverlay=k;b._csspIsImageSlideShow||j.each(function(){c.Utils.detachIframesAndObjectsToPauseMedia(a(this))})},_openLightbox:function(b){var d=b._$sslbpOverlay;d.data("museOverlay").isOpen||(d.museOverlay("open"),
| + | |
− | b._sslbpAutoPlay&&b.play());b._csspIsImageSlideShow||c.Utils.attachIframesAndObjectsToResumeMedia(a(b.slides.activeElement))},_closeLightbox:function(b){b._$sslbpOverlay.data("museOverlay").isOpen&&(b._$sslbpOverlay.museOverlay("close"),b._csspIsImageSlideShow||c.Utils.detachIframesAndObjectsToPauseMedia(a(b.slides.activeElement)))}};c.Plugins.ContentSlideShow={defaultOptions:{displayInterval:3E3,transitionDuration:500,transitionStyle:"fading",contentLayout_runtime:"stack",event:"click",deactivationEvent:"none",
| + | |
− | hideAllContentsFirst:!1,shuffle:!1,resumeAutoplay:!1,resumeAutoplayInterval:3E3,elastic:"off"},slideShowOverrides:{slideshowClassName:"SlideShowWidget",viewClassName:"SlideShowContentPanel",slideClassName:"SSSlide",slideLinksClassName:"SSSlideLinks",slideLinkClassName:"SSSlideLink",slideLinkActiveClassName:"SSSlideLinkSelected",slideCountClassName:"SSSlideCount",firstBtnClassName:"SSFirstButton",lastBtnClassName:"SSLastButton",prevBtnClassName:"SSPreviousButton",nextBtnClassName:"SSNextButton",playBtnClassName:"SSPlayButton",
| + | |
− | stopBtnClassName:"SSStopButton",closeBtnClassName:"SSCloseButton",heroFitting:"fitContentProportionally",thumbFitting:"fillFrameProportionally",lightboxPartsSelector:".SlideShowCaptionPanel, .SSFirstButton, .SSPreviousButton, .SSNextButton, .SSLastButton, .SlideShowLabel, .SSCloseButton",lightboxEnabled_runtime:!1},compositionOverrides:{slideshowClassName:"PamphletWidget",viewClassName:"ContainerGroup",slideClassName:"Container",slideLinkClassName:"Thumb",slideLinkActiveClassName:"PamphletThumbSelected",
| + | |
− | prevBtnClassName:"PamphletPrevButton",nextBtnClassName:"PamphletNextButton",closeBtnClassName:"PamphletCloseButton",lightboxPartsSelector:".PamphletLightboxPart"},initialize:function(d,f){var h=this,i=d.$element.hasClass("SlideShowWidget"),j=i?h.slideShowOverrides:h.compositionOverrides;d._csspIsImageSlideShow=i;this._restartTimer=0;a.extend(f,a.extend({},h.defaultOptions,j,f));if(f.hideAllContentsFirst)f.defaultIndex=-1;if(f.lightboxEnabled_runtime)f.contentLayout_runtime="lightbox";if(f.elastic!==
| + | |
− | "off")d._csspPositionImage=h._positionImage;i&&(b.Widget.ContentSlideShow.slideImageIncludePlugin.initialize(d,f),c.Plugins.SlideShowLabel.initialize(d,f),c.Plugins.SlideShowCaptions.initialize(d,f));f.transitionStyle=="fading"?b.Widget.ContentSlideShow.fadingTransitionPlugin.initialize(d,f):c.Browser.Features.Touch&&c.Browser.Features.Touch.Start=="touchstart"&&f.enableSwipe===!0?b.Widget.ContentSlideShow.swipeTransitionPlugin.initialize(d,f):b.Widget.ContentSlideShow.filmstripTransitionPlugin.initialize(d,
| + | |
− | f);if(f.contentLayout_runtime==="lightbox"){if(f.elastic!=="off")d._csspResizeFullScreenImages=h._resizeFullScreenImages;c.Plugins.Lightbox.initialize(d,f)}f.shuffle===!0&&b.Widget.ContentSlideShow.shufflePlayPlugin.initialize(d,f);d.bind("transform-markup",function(){h._transformMarkup(d)});d.bind("attach-behavior",function(){h._attachBehavior(d)})},_transformMarkup:function(b){var d=b.options,f=b._findWidgetElements("."+d.viewClassName);if(d.transitionStyle!=="fading"){var i=a('<div class="'+d.clipClassName+
| + | |
− | '"/>'),j=b._findWidgetElements("."+d.slideClassName),b=j.outerWidth(),j=j.outerHeight();if(d.elastic==="fullScreen")i.addClass("fullscreen");else{var k={position:"relative",width:b+"px",height:j+"px",overflow:"hidden"},m=f.css("position");if(m==="absolute")k.position=m,k.left=f.css("left"),k.top=f.css("top");else if(m==="fixed"){var o=c.Utils.getStyleSheetRuleById(c.Utils.getPageStyleSheet(),f.get(0).id);k.position=m;k.left=c.Utils.getRuleProperty(o,"left");k.top=c.Utils.getRuleProperty(o,"top");
| + | |
− | k.bottom=c.Utils.getRuleProperty(o,"bottom");k.right=c.Utils.getRuleProperty(o,"right")}i.css(k)}d.elastic!=="fullScreen"&&f.css({width:b+"px",height:j+"px"});f.css({position:"relative",top:"0",left:"0",margin:"0",overflow:"hidden"}).wrap(i)}else m=f.css("position"),d.elastic!=="fullScreen"&&m!=="fixed"&&f.css({width:"0",height:"0"})},_attachBehavior:function(b){var f=this,h=b.options,i=b.tabs,j=b.slides.$element,k=h.slideLinkActiveClassName,m=h.contentLayout_runtime==="lightbox";if(h.elastic!=="off"&&
| + | |
− | (f._resizeFullScreenImages(b,b.slides.$element,h.heroFitting),!m))a(d).on("orientationchange resize",function(){f._resizeFullScreenImages(b,b.slides.$element,h.heroFitting)});if(m)h.hideAllContentsFirst=!0;if(i){var o=i.$element;h.event==="mouseover"&&o.bind("mouseenter",function(){var b=a(this);b.data("enter",!0);i.selectTab(o.index(b))});h.deactivationEvent==="mouseout_trigger"?o.bind("mouseleave",function(){var c=a(this);c.data("enter",!1);b.slides.hidePanel(o.index(c))}):h.deactivationEvent===
| + | |
− | "mouseout_both"&&(o.bind("mouseleave",function(){var c=a(this),d=o.index(c),f=j.eq(d);c.data("enter",!1);c.data("setTimeout")||(c.data("setTimeout",!0),setTimeout(function(){!f.data("enter")&&!c.data("enter")&&b.slides.hidePanel(d);c.data("setTimeout",!1)},300))}),j.bind("mouseenter",function(){a(this).data("enter",!0)}),j.bind("mouseleave",function(){var c=a(this),d=j.index(c),f=o.eq(d);c.data("enter",!1);f.data("setTimeout")||(f.data("setTimeout",!0),setTimeout(function(){!c.data("enter")&&!f.data("enter")&&
| + | |
− | b.slides.hidePanel(d);f.data("setTimeout",!1)},300))}))}i&&k&&(h.hideAllContentsFirst||i.$element.eq(i.options.defaultIndex).addClass(k),b.slides.bind("wp-panel-show",function(a,b){i.$element.eq(b.panelIndex).addClass(k)}).bind("wp-panel-hide",function(a,b){i.$element.eq(b.panelIndex).removeClass(k)}));f._attachStopOnClickHandler(b,b.$firstBtn);f._attachStopOnClickHandler(b,b.$lastBtn);f._attachStopOnClickHandler(b,b.$previousBtn);f._attachStopOnClickHandler(b,b.$nextBtn);f._attachStopOnClickHandler(b,
| + | |
− | b.$playBtn);f._attachStopOnClickHandler(b,b.$stopBtn);f._attachStopOnClickHandler(b,b.$closeBtn);i&&!m&&f._attachStopOnClickHandler(b,i.$element);b._csspIsImageSlideShow||(b.slides.bind("wp-panel-hide",function(b,d){c.Utils.detachIframesAndObjectsToPauseMedia(a(d.panel))}).bind("wp-panel-show",function(b,d){c.Utils.attachIframesAndObjectsToResumeMedia(a(d.panel))}),j.each(function(){(this!=b.slides.activeElement||h.hideAllContentsFirst)&&c.Utils.detachIframesAndObjectsToPauseMedia(a(this))}))},_startRestartTimer:function(a){this._stopRestartTimer();
| + | |
− | this._restartTimer=setTimeout(function(){a.play(!0)},a.options.resumeAutoplayInterval+a.options.transitionDuration)},_stopRestartTimer:function(){this._restartTimer&&clearTimeout(this._restartTimer);this._restartTimer=0},_attachStopOnClickHandler:function(a,b){var c=this;b.bind(a.options.event==="click"?"click":"mouseover",function(){a.stop();(a.options.autoPlay||a._sslbpAutoPlay)&&a.options.resumeAutoplay&&0<a.options.resumeAutoplayInterval&&c._startRestartTimer(a)})},_hitTest:function(a,b){b.outerWidth()===
| + | |
− | 0&&(b=b.children(".popup_anchor").children(".popup_element").eq(0));var c=b.offset(),c={x:c.left,y:c.top,width:b.outerWidth(),height:b.outerHeight()};return a.pageX>=c.x&&a.pageX<=c.x+c.width&&a.pageY>=c.y&&a.pageY<=c.y+c.height},_layoutThumbs:function(b){var d=b.options,f=c.Utils.getStyleValue;b._findWidgetElements("."+d.slideLinksClassName).each(function(){var b=a(this).find("."+d.slideLinkClassName);firstThumb=b[0];tWidth=f(firstThumb,"width");tHeight=f(firstThumb,"height");gapH=f(firstThumb,"margin-right");
| + | |
− | gapV=f(firstThumb,"margin-bottom");borderL=f(firstThumb,"border-left-width");borderR=f(firstThumb,"border-right-width");borderT=f(firstThumb,"border-top-width");borderB=f(firstThumb,"border-bottom-width");gWidth=f(this,"width");paddingL=f(this,"padding-left");paddingT=f(this,"padding-top");maxNumThumb=Math.floor((gWidth+gapH)/(tWidth+borderL+borderR+gapH));gStyle=this.runtimeStyle?this.runtimeStyle:this.style;numRow=Math.ceil(b.length/maxNumThumb);firstRowNum=b.length<maxNumThumb?b.length:maxNumThumb;
| + | |
− | leftPos=leftMostPos=c.Utils.pixelRound((gWidth-(tWidth+borderL+borderR)*firstRowNum-gapH*(firstRowNum-1))/2)+paddingL;topPos=paddingT;numInRow=1;gStyle.height=(tHeight+borderT+borderB)*numRow+gapV*(numRow-1)+"px";b.each(function(){numInRow>firstRowNum&&(numInRow=1,leftPos=leftMostPos,topPos+=tHeight+borderT+borderB+gapV);numInRow++>1&&(leftPos+=tWidth+borderL+borderR+gapH);var a=this.runtimeStyle?this.runtimeStyle:this.style;a.marginRight="0px";a.marginBottom="0px";a.left=leftPos+"px";a.top=topPos+
| + | |
− | "px"})})},_resizeFullScreenImages:function(b,c,d){c.each(function(){a(this).find("img").each(function(){this.complete&&!a(this).hasClass(b.options.imageIncludeClassName)&&b._csspPositionImage(this,d,b.options.elastic)})})},_setupImagePositioning:function(b,c,d,f){var j=this;c.each(function(){a(this).find("img").each(function(){var b=this;b.complete?j._positionImage(b,d,f):a(b).load(function(){j._positionImage(b,d,f)})})})},_positionImage:function(b,l,h,i,j){var k=a(d),m=b.runtimeStyle?b.runtimeStyle:
| + | |
− | b.style,o=h==="fullWidth"||h==="fullScreen",q=h==="fullHeight"||h==="fullScreen",p=l=="fitContentProportionally";$img=a(b);o=o?d.innerWidth?d.innerWidth:k.width():p?$img.data("width"):$img.parent().width();k=q?d.innerHeight?d.innerHeight:k.height():p?$img.data("height"):$img.parent().height();i=i!==f?i:c.Utils.getNaturalWidth(b);b=j!==f?j:c.Utils.getNaturalHeight(b);h!=="off"&&(i===0&&(i=$img.data("imageWidth")),b===0&&(b=$img.data("imageHeight")));if(o==i&&k==b)m.marginTop="0px",m.marginLeft="0px";
| + | |
− | else{q=i;j=b;if(l=="fillFrameProportionally"){if(h!=="off"||i>o&&b>k)l=i/o,h=b/k,l<h?(j=b/l,q=o):(j=k,q=i/h)}else if(l=="fitContentProportionally"&&(h!=="off"||i>o||b>k))l=i/o,h=b/k,l>h?(j=b/l,q=i/l):(j=b/h,q=i/h);m.width=c.Utils.pixelRound(q)+"px";m.height=c.Utils.pixelRound(j)+"px";m.marginTop=c.Utils.pixelRound((k-j)/2)+"px";m.marginLeft=c.Utils.pixelRound((o-q)/2)+"px"}}};a.extend(b.Widget.ContentSlideShow.slideImageIncludePlugin.defaultOptions,{imageIncludeClassName:"ImageInclude",slideLoadingClassName:"SSSlideLoading"});
| + | |
− | b.Widget.ContentSlideShow.prototype.defaultPlugins=[c.Plugins.ContentSlideShow];b.Widget.ContentSlideShow.prototype._getAjaxSrcForImage=function(b){for(var c=a(d).data("ResolutionManager").getDataSrcAttrName(),f=c.length,i,j=0;j<f;j++)if((i=b.data(c[j]))&&i.length)return i;return b.data("src")}})(jQuery,WebPro,Muse,window);
| + | |
− | ;(function(){if(!("undefined"==typeof Muse||"undefined"==typeof Muse.assets)){var a=function(a,b){for(var c=0,d=a.length;c<d;c++)if(a[c]==b)return c;return-1}(Muse.assets.required,"musewpslideshow.js");if(-1!=a){Muse.assets.required.splice(a,1);for(var a=document.getElementsByTagName("meta"),b=0,c=a.length;b<c;b++){var d=a[b];if("generator"==d.getAttribute("name")){"2014.0.0.264"!=d.getAttribute("content")&&Muse.assets.outOfDate.push("musewpslideshow.js");break}}}}})();
| + | |
− | </script> | + | |
| | | |
| <script src="https://2015.igem.org/Team:Mingdao/Javascript-jquery.museoverlay?action=raw&ctype=text/javascript" type="text/javascript"></script> | | <script src="https://2015.igem.org/Team:Mingdao/Javascript-jquery.museoverlay?action=raw&ctype=text/javascript" type="text/javascript"></script> |