function Matrix(){}PureCSSMatrix=function(){function d(a){a&&a!==null&&a!="none"?a instanceof Matrix?this.setMatrix(a):this.setMatrixValue(a):this.m=Matrix.I(3)}function e(b){var c=parseFloat(f(b));return b.match(a)&&(c=2*Math.PI*c/360),c}function f(a){return a.match(b)}function g(a){return Number(a).toFixed(6)}"use strict";var a=/deg$/,b=/([0-9.\-e]+)/g,c=/([a-zA-Z]+)\(([^\)]+)\)/g;return d.prototype.setMatrix=function(a){this.m=a},d.prototype.setMatrixValue=function(a){var b=Matrix.I(3),d;while((d=c.exec(a))!==null){var g=d[1].toLowerCase(),h=d[2].split(","),i;if(g=="matrix")i=Matrix.create([[parseFloat(h[0]),parseFloat(h[2]),parseFloat(f(h[4]))],[parseFloat(h[1]),parseFloat(h[3]),parseFloat(f(h[5]))],[0,0,1]]);else if(g=="translate")i=Matrix.I(3),i.elements[0][2]=parseFloat(f(h[0])),i.elements[1][2]=parseFloat(f(h[1]));else if(g=="scale"){var j=parseFloat(h[0]),k;h.length>1?k=parseFloat(h[1]):k=j,i=Matrix.create([[j,0,0],[0,k,0],[0,0,1]])}else g=="rotate"?i=Matrix.RotationZ(e(h[0])):g=="skew"||g=="skewx"?(i=Matrix.I(3),i.elements[0][1]=Math.tan(e(h[0]))):g=="skewy"?(i=Matrix.I(3),i.elements[1][0]=Math.tan(e(h[0]))):console.log("Problem with setMatrixValue",g,h);b=b.multiply(i)}this.m=b},d.prototype.multiply=function(a){return new d(this.m.multiply(a.m))},d.prototype.inverse=function(){return Math.abs(this.m.elements[0][0])<1e-6&&(this.m.elements[0][0]=0),new d(this.m.inverse())},d.prototype.translate=function(a,b){var c=Matrix.I(3);return c.elements[0][2]=a,c.elements[1][2]=b,new d(this.m.multiply(c))},d.prototype.scale=function(a,b){var c=Matrix.create([[a,0,0],[0,b,0],[0,0,1]]);return new d(this.m.multiply(c))},d.prototype.rotate=function(a){var b=Matrix.RotationZ(a);return new d(this.m.multiply(b))},d.prototype.toString=function(){var a=this.m.elements,b="";if($.browser.mozilla||$.browser.opera)b="px";return"matrix("+g(a[0][0])+", "+g(a[1][0])+", "+g(a[0][1])+", "+g(a[1][1])+", "+g(a[0][2])+b+", "+g(a[1][2])+b+")"},d.prototype.elements=function(){var a=this.m.elements;return{a:a[0][0],b:a[1][0],c:a[0][1],d:a[1][1],e:a[0][2],f:a[1][2]}},d}(),$.zoomooz||($.zoomooz={}),$.zoomooz.helpers=function(a,b){"use strict";var c=["-moz-","-webkit-","-o-","-ms-"];return b.forEachPrefix=function(a,b){for(var d=0;df.duration&&(clearInterval(c),c=null,i=1,g&&g())}function m(a){var b=a.elements(),c=b.a,d=b.b,e=b.c,f=b.d,g=b.e,h=b.f;if(Math.abs(c*f-d*e)<.01){console.log("fail!");return}var i=g,j=h,k=Math.sqrt(c*c+d*d);c/=k,d/=k;var l=c*e+d*f;e-=c*l,f-=d*l;var m=Math.sqrt(e*e+f*f);e/=m,f/=m,l/=m,c*f-d*e<0&&(c=-c,d=-d,e=-e,f=-f,k=-k,m=-m);var n=Math.atan2(d,c);return{tx:i,ty:j,r:n,k:Math.atan(l),sx:k,sy:m}}function n(a){var b="";return b+="translate("+w(a.tx,6)+"px,"+w(a.ty,6)+"px) ",b+="rotate("+w(a.r,6)+"rad) skewX("+w(a.k,6)+"rad) ",b+="scale("+w(a.sx,6)+","+w(a.sy,6)+")",b}function o(a){return a instanceof Array?"cubic-bezier("+w(a[0],6)+","+w(a[1],6)+","+w(a[2],6)+","+w(a[3],6)+")":a}function p(a,b){var c=[];if(a instanceof Array)c=a;else switch(a){case"linear":c=[0,0,1,1];break;case"ease":c=[.25,.1,.25,1];break;case"ease-in":c=[.42,0,1,1];break;case"ease-out":c=[0,0,.58,1];break;case"ease-in-out":c=[.42,0,.58,1]}var d=function(a){return r(a,c[0],c[1],c[2],c[3],b)};return d}function q(a,b,c,d,e){var f,g,h=(1-a)*(1-a)*(1-a);return f=b*3*a*a*(1-a)+d*3*a*(1-a)*(1-a)+h,g=c*3*a*a*(1-a)+e*3*a*(1-a)*(1-a)+h,{x:Math.abs(f),y:Math.abs(g)}}function r(a,b,c,d,e,f){function m(a){return((g*a+h)*a+i)*a}function n(a){return((j*a+k)*a+l)*a}function o(a){return(3*g*a+2*h)*a+i}function p(a){return 1/(200*a)}function q(a,b){return n(r(a,b))}function r(a,b){function i(a){return a>=0?a:0-a}var c,d,e,f,g,h;for(e=a,h=0;h<8;h++){f=m(e)-a;if(i(f)d)return d;while(cf?c=e:d=e,e=(d-c)*.5+c}return e}var g=0,h=0,i=0,j=0,k=0,l=0;return i=3*b,h=3*(d-b)-i,g=1-i-h,l=3*c,k=3*(e-c)-l,j=1-l-k,q(a,p(f))}function s(a){var b=g.getElementTransform(a),c;b?c=new PureCSSMatrix(b):c=new PureCSSMatrix;var d=m(c);return d.r=t(b),d}function t(a){var b=0,c;while((c=e.exec(a))!==null){var d=c[1].toLowerCase(),g=c[2].split(",");if(d=="matrix"){var h=d+"("+c[2]+")";b+=m(new PureCSSMatrix(h)).r}else if(d=="rotate"){var i=g[0],j=parseFloat(x(i));i.match(f)&&(j=2*Math.PI*j/360),b+=j}}return b}function u(a,b){if(Math.abs(a.r-b.r)>Math.PI)if(b.rMath.PI)b.r+=2*Math.PI;else while(Math.abs(a.r-b.r)>Math.PI)b.r-=2*Math.PI;return b}function v(a,b,c){var d={};for(var e in a)a.hasOwnProperty(e)&&(d[e]=a[e]+(b[e]-a[e])*c);return d}function w(a,b){b=Math.abs(parseInt(b,10))||0;var c=Math.pow(10,b);return Math.round(a*c)/c}function x(a){return a.match(d)}"use strict";var b,c,d=/([0-9.\-e]+)/g,e=/([a-z]+)\(([^\)]+)\)/g,f=/deg$/,g=a.zoomooz.helpers,h={duration:450,easing:"ease",nativeanimation:!1},i;jQuery.cssHooks.MsTransform={set:function(a,b){a.style.msTransform=b}},jQuery.cssHooks.MsTransformOrigin={set:function(a,b){a.style.msTransformOrigin=b}},a.fn.animateTransformation=function(b,c,d,e){c=jQuery.extend({},h,c);var f=a.browser.webkit&&c.nativeanimation;i&&(clearTimeout(i),i=null),f&&d&&(i=setTimeout(d,c.duration)),this.each(function(){var g=a(this);b||(b=new PureCSSMatrix);var h=s(g),i=u(h,m(b));f?(g.css(j(n(i),c.duration,c.easing)),e&&e()):k(g,h,i,c,d,e)})},a.fn.setTransformation=function(b){this.each(function(){var c=a(this),d=s(c),e=u(d,m(b));c.css(j(n(e)))})}}(jQuery),function(a){function d(b,d){var e=jQuery.extend({},d);a.zoomooz.defaultSettings||a.zoomooz.setup();var f=a.zoomooz.defaultSettings,g=jQuery.extend({},e);for(var h in f)f.hasOwnProperty(h)&&!g[h]&&(g[h]=b.data(h));for(var i=0;i';a("#debug").append(d)}function n(b,c){var d=b[0];if(!d||!d.ownerDocument)return null;var e=new PureCSSMatrix,f;if(d===d.ownerDocument.body){var g=jQuery.offset.bodyOffset(d);return f=new PureCSSMatrix,f=f.translate(g.left,g.top),e=e.multiply(f),e}var h;jQuery.offset.initialize?(jQuery.offset.initialize(),h={fixedPosition:jQuery.offset.supportsFixedPosition,doesNotAddBorder:jQuery.offset.doesNotAddBorder,doesAddBorderForTableAndCells:jQuery.support.doesAddBorderForTableAndCells,subtractsBorderForOverflowNotVisible:jQuery.offset.subtractsBorderForOverflowNotVisible}):h=jQuery.support;var i=d.offsetParent,j=d.ownerDocument,k,l=j.documentElement,m=j.body,n=c[0],o=j.defaultView,q;o?q=o.getComputedStyle(d,null):q=d.currentStyle;var r=d.offsetTop,s=d.offsetLeft,t=p().translate(s,r);t=t.multiply(p(d)),e=t.multiply(e);while((d=d.parentNode)&&d!==n){r=0,s=0;if(h.fixedPosition&&q.position==="fixed")break;k=o?o.getComputedStyle(d,null):d.currentStyle,r-=d.scrollTop,s-=d.scrollLeft,d===i&&(r+=d.offsetTop,s+=d.offsetLeft,h.doesNotAddBorder&&(!h.doesAddBorderForTableAndCells||!/^t(able|d|h)$/i.test(d.nodeName))&&(r+=parseFloat(k.borderTopWidth)||0,s+=parseFloat(k.borderLeftWidth)||0),i=d.offsetParent),h.subtractsBorderForOverflowNotVisible&&k.overflow!=="visible"&&(r+=parseFloat(k.borderTopWidth)||0,s+=parseFloat(k.borderLeftWidth)||0),q=k,d.offsetParent==n&&(r-=parseFloat(a(d.offsetParent).css("margin-top"))||0,s-=parseFloat(a(d.offsetParent).css("margin-left"))||0),t=p().translate(s,r),t=t.multiply(p(d)),e=t.multiply(e)}r=0,s=0;if(q.position==="relative"||q.position==="static")r+=m.offsetTop,s+=m.offsetLeft;h.fixedPosition&&q.position==="fixed"&&(r+=Math.max(l.scrollTop,m.scrollTop),s+=Math.max(l.scrollLeft,m.scrollLeft));var u=(new PureCSSMatrix).translate(s,r);return e=e.multiply(u),e}function o(a){return Number(a).toFixed(6)}function p(a){var c=b.getElementTransform(a);return c?new PureCSSMatrix(c):new PureCSSMatrix}"use strict";var b=a.zoomooz.helpers,c=["duration","easing","nativeanimation"];e(),a.zoomooz||(a.zoomooz={}),a.zoomooz.setup=function(b){a.zoomooz.defaultSettings=jQuery.extend(f(),b)},a.fn.zoomSettings=function(b){var c;return this.each(function(){var e=a(this);c=d(e,b)}),c},a.fn.zoomTo=function(b,c){return this.each(function(){var d=a(this);c||(b=d.zoomSettings(b)),g(d,b),b.debug?(a("#debug").length===0?a(b.root).append('
'):a("#debug").html(""),l(d,b)):a("#debug").length!==0&&a("#debug").html("")}),this}}(jQuery),function(a){function c(b,d,e){b.addClass("zoomTarget"),e.animationendcallback||(e.closeclick?e.animationendcallback=function(){a(".selectedZoomTarget").removeClass("selectedZoomTarget zoomNotClickable"),b.addClass("selectedZoomTarget")}:e.animationendcallback=function(){a(".selectedZoomTarget").removeClass("selectedZoomTarget zoomNotClickable"),b.addClass("selectedZoomTarget zoomNotClickable")});var f=d.closest(".zoomContainer");f.length!=0&&(e.root=f);var g=e.root;if(!g.hasClass("zoomTarget")){var h=g.zoomSettings({});h.animationendcallback=function(){var b=a(this);a(".selectedZoomTarget").removeClass("selectedZoomTarget zoomNotClickable"),b.addClass("selectedZoomTarget zoomNotClickable"),b.parent().addClass("selectedZoomTarget zoomNotClickable")},c(g,g,h),c(g.parent(),g,h),g.click()}b.on("click",function(a){e.closeclick&&d.hasClass("selectedZoomTarget")?e.root.click():d.zoomTo(e),a.stopPropagation()})}function d(){function c(a){var c="-webkit-touch-callout: "+(a?"default":"none")+";";return b.forEachPrefix(function(b){c+=b+"user-select:"+(a?"text":"none")+";"},!0),c}var a=document.createElement("style");a.type="text/css",a.innerHTML=".zoomTarget{"+c(!1)+"}"+".zoomTarget:hover{cursor:pointer!important;}"+".zoomNotClickable{"+c(!0)+"}"+".zoomNotClickable:hover{cursor:auto!important;}"+".zoomContainer{position:relative;padding:1px;margin:-1px;}",document.getElementsByTagName("head")[0].appendChild(a)}"use strict",a.zoomooz||(a.zoomooz={});var b=a.zoomooz.helpers;a.fn.zoomTarget=function(b){this.each(function(){var d=a(this).zoomSettings(b);c(a(this),a(this),d)})},d(),a(document).ready(function(){a(".zoomTarget").zoomTarget()})}(jQuery),function(a){"use strict",a.zoomooz||(a.zoomooz={}),a.fn.zoomContainer=function(a){},a(document).ready(function(){a(".zoomContainer").zoomContainer()})}(jQuery);var Sylvester={version:"0.1.3",precision:1e-6};Matrix.prototype={dup:function(){return Matrix.create(this.elements)},canMultiplyFromLeft:function(a){var b=a.elements||a;return typeof b[0][0]=="undefined"&&(b=Matrix.create(b).elements),this.elements[0].length==b.length},multiply:function(a){var b=a.modulus?!0:!1,c=a.elements||a;typeof c[0][0]=="undefined"&&(c=Matrix.create(c).elements);if(!this.canMultiplyFromLeft(c))return null;var d=this.elements.length,e=d,f,g,h=c[0].length,i,j=this.elements[0].length,k=[],l,m,n;do{f=e-d,k[f]=[],g=h;do{i=h-g,l=0,m=j;do n=j-m,l+=this.elements[f][n]*c[n][i];while(--m);k[f][i]=l}while(--g)}while(--d);var c=Matrix.create(k);return b?c.col(1):c},isSquare:function(){return this.elements.length==this.elements[0].length},toRightTriangular:function(){var a=this.dup(),b,c=this.elements.length,d=c,e,f,g=this.elements[0].length,h;do{e=d-c;if(a.elements[e][e]==0)for(j=e+1;j=b&&k[c].push(l);while(--f);e.elements[c]=i;for(d=0;d