/*jRoll - https://fitsbach.github.io/jRoll/ //Version - 0.1.5//Licensed unter the GNU General Public License - gnu.org/licenses/gpl.html////Copyright (c) 2016 Jimmy Fitzback */function HexToRGB(i){var s=/^#([\da-fA-F]{2})([\da-fA-F]{2})([\da-fA-F]{2})$/,r=s.exec(i),a="rgb("+parseInt(r[1],16)+","+parseInt(r[2],16)+","+parseInt(r[3],16)+");";return a}!function(i){i.fn.jRoll=function(s){var r=i.extend({radius:100,animation:"heartbeat",colors:["#003056","#04518C","#00A1D9","#47D9BF","#F2D03B"],monocolor:!1},s);switch(r.colors.length){case 0:r.colors=["#003056","#04518C","#00A1D9","#47D9BF","#F2D03B"];break;case 1:r.colors[1]="#04518C",r.colors[2]="#00A1D9";break;case 2:r.colors[2]="#00A1D9",r.colors[3]="#47D9BF",r.colors[4]="#F2D03B";break;case 3:r.colors[3]="#47D9BF",r.colors[4]="#F2D03B";break;case 4:r.colors[4]="#F2D03B"}switch(1==r.monocolor&&(r.colors[1]=r.colors[0],r.colors[2]=r.colors[0],r.colors[3]=r.colors[0],r.colors[4]=r.colors[0]),r.animation){case"heartbeat":i(this).css("width",2*r.radius+"px").css("height",2*r.radius+"px").css("overflow","hidden");var a="animation: heartbeatIn 1s linear 0s infinite;",e="animation: heartbeatMid 1s linear 0.3s infinite;",t="animation: heartbeatOut 1s linear 0.315s infinite;",d=r.radius/4,l=r.radius/3,n=r.radius/2,c=i(''),o=i(''),u=i('');i(this).append(c).append(o).append(u);break;case"pulse":i(this).css("width",2*r.radius+"px").css("height",2*r.radius+"px").css("overflow","hidden");var a="animation: pulseIn 1s linear 0s infinite;",e="animation: pulseMid 1s linear 0s infinite;",t="animation: pulseOut 1s linear 0s infinite;",d=r.radius/4,l=r.radius/3,n=r.radius/2,p=r.radius/12,c=i(''),o=i(''),u=i('');i(this).append(c).append(o).append(u);break;case"slicedspinner":i(this).css("width",2*r.radius+"px").css("height",2*r.radius+"px").css("overflow","hidden"),i(this).css("animation","slicedspinner 1s linear 0s infinite");var h=i(''),g=i(''),f=i(''),x=i('');i(this).append(h).append(g).append(f).append(x);break;case"halfslicedspinner":i(this).css("width",2*r.radius+"px").css("height",2*r.radius+"px").css("overflow","hidden"),i(this).css("animation","slicedspinner 1s linear 0s infinite");var h=i(''),g=i('');i(this).append(h).append(g);break;case"gyroscope":i(this).css("width",2*r.radius+"px").css("height",2*r.radius+"px").css("overflow","hidden").css("animation","gyroscope3D 2s linear 0s infinite");var a="animation: gyroscopeIn 2s linear 0s infinite;z-index:1;",t="animation: gyroscopeOut 2s linear 0s infinite;z-index:2;",d=r.radius/4,n=r.radius/2,p=r.radius/12,c=i(''),u=i('');i(this).append(c).append(u);break;case"wave":r.colors.length<=3&&(r.colors[3]="#DB9E36"),i(this).css("width",2*r.radius+"px").css("height",2*r.radius+"px").css("overflow","hidden");var v="animation: waveOut 1.5s linear 0s infinite;",y="animation: waveMid 1.5s linear 0s infinite;",m="animation: waveIn 1.5s linear 0s infinite;",w="animation: waveCenter 1.5s linear 0s infinite;",p=r.radius/12,k=i(''),b=i(''),q=i(''),R=i('');i(this).append(k).append(b).append(q).append(R);break;case"jumpdots":r.colors.length<=3&&(r.colors[3]="#DB9E36",r.colors[4]="#BD4932"),i(this).css("width",2*r.radius+"px").css("height",2*r.radius+"px").css("overflow","hidden").css("animation","jumpdotdiv 2s linear 1s infinite");var D="animation: jumpdots 2s linear 0s infinite;margin-left:calc(50% - "+r.radius/12*8+"px);margin-top:"+r.radius+"px;",j="animation: jumpdots 2s linear 0.2s infinite;margin-left:calc(50% - "+r.radius/12*4+"px);margin-top:"+r.radius+"px;",B="animation: jumpdots 2s linear 0.4s infinite;margin-left:calc(50%);margin-top:"+r.radius+"px;",F="animation: jumpdots 2s linear 0.6s infinite;margin-left:calc(50% - "+r.radius/12*-4+"px);margin-top:"+r.radius+"px;",z="animation: jumpdots 2s linear 0.8s infinite;margin-left:calc(50% - "+r.radius/12*-8+"px);margin-top:"+r.radius+"px;",G=i(''),I=i(''),Z=i(''),A=i(''),O=i('');i(this).append(G).append(I).append(Z).append(A).append(O);break;case"3dots":i(this).css("width",2*r.radius+"px").css("height",2*r.radius+"px").css("overflow","hidden");var D="animation: suspensionpoint 3s linear -2s infinite;margin-left:calc(50% - "+r.radius/4/2*4+"px);margin-top: calc(50% - "+r.radius/4/2+"px);",j="animation: suspensionpoint 3s linear -1s infinite;margin-left:calc(50% - "+r.radius/4/2*4+"px);margin-top: calc(50% - "+r.radius/4/2+"px);",B="animation: suspensionpoint 3s linear 0s infinite;margin-left:calc(50% - "+r.radius/4/2*4+"px);margin-top: calc(50% - "+r.radius/4/2+"px);",G=i(''),I=i(''),Z=i('');i(this).append(G).append(I).append(Z);break;case"popdot":i(this).css("width",2*r.radius+"px").css("height",2*r.radius+"px").css("overflow","hidden");var G=i('');i(this).append(G);break;case"hordots":i(this).css("width",2*r.radius+"px").css("height",2*r.radius+"px").css("overflow","hidden");var D="animation: spreaddot1-hor 1s linear 0s infinite;margin-left:"+r.radius+"px;margin-top:"+r.radius+"px;",j="animation: spreaddot2-hor 1s linear 0.5s infinite;margin-left:"+r.radius+"px;margin-top:"+r.radius+"px;",B="animation: spreaddot3-hor 1s linear 0s infinite;margin-left:"+r.radius+"px;margin-top:"+r.radius+"px;z-index:100",F="animation: spreaddot4-hor 1s linear 0.5s infinite;margin-left:"+r.radius+"px;margin-top:"+r.radius+"px;",z="animation: spreaddot5-hor 1s linear 0s infinite;margin-left:"+r.radius+"px;margin-top:"+r.radius+"px;",G=i(''),I=i(''),Z=i(''),A=i(''),O=i('');i(this).append(G).append(I).append(Z).append(A).append(O);break;case"verdots":i(this).css("width",2*r.radius+"px").css("height",2*r.radius+"px").css("overflow","hidden");var D="animation: spreaddot1-ver 1s linear 0s infinite;margin-left:calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;",j="animation: spreaddot2-ver 1s linear 0.5s infinite;margin-left:calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;",B="animation: spreaddot3-ver 1s linear 0s infinite;margin-left:calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;z-index:100",F="animation: spreaddot4-ver 1s linear 0.5s infinite;margin-left:calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;",z="animation: spreaddot5-ver 1s linear 0s infinite;margin-left:calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;",G=i(''),I=i(''),Z=i(''),A=i(''),O=i('');i(this).append(G).append(I).append(Z).append(A).append(O);break;case"spreaddots":i(this).css("width",2*r.radius+"px").css("height",2*r.radius+"px").css("overflow","hidden");var D="animation: spreaddot1-all 1s linear 0s infinite;margin-left: calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;",j="animation: spreaddot2-all 1s linear 0s infinite;margin-left: calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;",B="animation: spreaddot3-all 1s linear 0s infinite;margin-left: calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;z-index:100",F="animation: spreaddot4-all 1s linear 0s infinite;margin-left: calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;",z="animation: spreaddot5-all 1s linear 0s infinite;margin-left: calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;",G=i(''),I=i(''),Z=i(''),A=i(''),O=i('');i(this).append(G).append(I).append(Z).append(A).append(O);break;case"trailedspreaddots":var X=HexToRGB(r.colors[0]),S=HexToRGB(r.colors[1]),C=HexToRGB(r.colors[4]),H=HexToRGB(r.colors[3]);console.log(X),i(this).css("width",2*r.radius+"px").css("height",2*r.radius+"px").css("overflow","hidden");var D="animation: spreaddot1-all 1s linear 0s infinite;margin-left: calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;",M="animation: trailedspreadrect1-all 1s linear 0s infinite;margin-left: calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;transform: rotateZ(45deg);z-index:-100;",j="animation: spreaddot2-all 1s linear 0s infinite;margin-left: calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;",T="animation: trailedspreadrect2-all 1s linear 0s infinite;margin-left: calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;transform: rotateZ(45deg);z-index:-100;",B="animation: dspreaddot3-all 1s linear 0s infinite;margin-left: calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;z-index:100",F="animation: spreaddot4-all 1s linear 0s infinite;margin-left: calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;",E="animation: trailedspreadrect4-all 1s linear 0s infinite;margin-left: calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;transform: rotateZ(45deg);z-index:-100;",z="animation: spreaddot5-all 1s linear 0s infinite;margin-left: calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;",Q="animation: trailedspreadrect5-all 1s linear 0s infinite;margin-left: calc(50% - "+r.radius/12+"px);margin-top:"+r.radius+"px;transform: rotateZ(45deg);z-index:-100;",G=i(''),$=i(''),I=i(''),J=i(''),Z=i(''),A=i(''),K=i(''),O=i(''),L=i('');i(this).append(G).append($).append(I).append(J).append(Z).append(A).append(K).append(O).append(L);break;case"circledots":i(this).css("width",2*r.radius+"px").css("height",2*r.radius+"px").css("overflow","hidden").css("animation","circledotdiv 3s linear 0s infinite");var D="animation: circledot1 1.5s linear 0s infinite;margin-left:"+(r.radius-r.radius/16)+"px;margin-top:"+(r.radius-r.radius/16)+"px;",j="animation: circledot2 1.5s linear 0s infinite;margin-left:"+(r.radius-r.radius/16)+"px;margin-top:"+(r.radius-r.radius/16)+"px;",B="animation: circledot3 1.5s linear 0s infinite;margin-left:"+(r.radius-r.radius/16)+"px;margin-top:"+(r.radius-r.radius/16)+"px;z-index:100",F="animation: circledot4 1.5s linear 0s infinite;margin-left:"+(r.radius-r.radius/16)+"px;margin-top:"+(r.radius-r.radius/16)+"px;",z="animation: circledot5 1.5s linear 0s infinite;margin-left:"+(r.radius-r.radius/16)+"px;margin-top:"+(r.radius-r.radius/16)+"px;",N="animation: circledot6 1.5s linear 0s infinite;margin-left:"+(r.radius-r.radius/16)+"px;margin-top:"+(r.radius-r.radius/16)+"px;",P="animation: circledot7 1.5s linear 0s infinite;margin-left:"+(r.radius-r.radius/16)+"px;margin-top:"+(r.radius-r.radius/16)+"px;",U="animation: circledot8 1.5s linear 0s infinite;margin-left:"+(r.radius-r.radius/16)+"px;margin-top:"+(r.radius-r.radius/16)+"px;",G=i(''),I=i(''),Z=i(''),A=i(''),O=i(''),V=i(''),W=i(''),Y=i('');i(this).append(G).append(I).append(Z).append(A).append(O).append(V).append(W).append(Y);break;case"squares":i(this).css("width",2*r.radius+"px").css("height",2*r.radius+"px").css("overflow","hidden");var D="animation: squares 4.5s linear 0s infinite;margin-left:"+(r.radius-r.radius/16*4)+"px;margin-top:"+(r.radius-r.radius/16*4)+"px;",j="animation: squares 4.5s linear 0.5s infinite;margin-left:"+(r.radius-r.radius/16)+"px;margin-top:"+(r.radius-r.radius/16*4)+"px;",B="animation: squares 4.5s linear 1s infinite;margin-left:"+(r.radius-r.radius/16*-2)+"px;margin-top:"+(r.radius-r.radius/16*4)+"px;z-index:100",F="animation: squares 4.5s linear 1.5s infinite;margin-left:"+(r.radius-r.radius/16*4)+"px;margin-top:"+(r.radius-r.radius/16)+"px;",_="animation: squares 4.5s linear 2s infinite;margin-left:"+(r.radius-r.radius/16)+"px;margin-top:"+(r.radius-r.radius/16)+"px;",N="animation: squares 4.5s linear 2.5s infinite;margin-left:"+(r.radius-r.radius/16*-2)+"px;margin-top:"+(r.radius-r.radius/16)+"px;",P="animation: squares 4.5s linear 3s infinite;margin-left:"+(r.radius-r.radius/16*4)+"px;margin-top:"+(r.radius-r.radius/16*-2)+"px;",U="animation: squares 4.5s linear 3.5s infinite;margin-left:"+(r.radius-r.radius/16)+"px;margin-top:"+(r.radius-r.radius/16*-2)+"px;",ii="animation: squares 4.5s linear 4s infinite;margin-left:"+(r.radius-r.radius/16*-2)+"px;margin-top:"+(r.radius-r.radius/16*-2)+"px;",G=i(''),I=i(''),Z=i(''),A=i(''),si=i(''),V=i(''),W=i(''),Y=i(''),ri=i('');i(this).append(G).append(I).append(Z).append(A).append(si).append(V).append(W).append(Y).append(ri);break;case"3Dsquares":i(this).css("width",2*r.radius+"px").css("height",2*r.radius+"px").css("overflow","hidden").css("animation","threedsqdiv 1s linear 0s infinite");var D="margin-left:"+(r.radius-r.radius/16*4)+"px;margin-top:"+(r.radius-r.radius/16*4)+"px;",j="margin-left:"+(r.radius-r.radius/16)+"px;margin-top:"+(r.radius-r.radius/16*4)+"px;",B="margin-left:"+(r.radius-r.radius/16*-2)+"px;margin-top:"+(r.radius-r.radius/16*4)+"px;z-index:100",F="margin-left:"+(r.radius-r.radius/16*4)+"px;margin-top:"+(r.radius-r.radius/16)+"px;",_="margin-left:"+(r.radius-r.radius/16)+"px;margin-top:"+(r.radius-r.radius/16)+"px;",N="margin-left:"+(r.radius-r.radius/16*-2)+"px;margin-top:"+(r.radius-r.radius/16)+"px;",P="margin-left:"+(r.radius-r.radius/16*4)+"px;margin-top:"+(r.radius-r.radius/16*-2)+"px;",U="margin-left:"+(r.radius-r.radius/16)+"px;margin-top:"+(r.radius-r.radius/16*-2)+"px;",ii="margin-left:"+(r.radius-r.radius/16*-2)+"px;margin-top:"+(r.radius-r.radius/16*-2)+"px;",ai=i("