(function($){
$.registerLiquidCanvasPlugin({name:"rect",paint:function(_2){
_2.ctx.beginPath();
_2.ctx.rect(0,0,_2.width,_2.height);
_2.ctx.closePath();
if(this.action){
this.action.paint(_2);
}
}});
$.registerLiquidCanvasPlugin({name:"roundedRect",defaultOpts:{radius:20},paint:function(_3){
var _4=_3.ctx;
var _5=this.opts;
_4.beginPath();
_4.moveTo(0,_5.radius);
_4.lineTo(0,_3.height-_5.radius);
_4.quadraticCurveTo(0,_3.height,_5.radius,_3.height);
_4.lineTo(_3.width-_5.radius,_3.height);
_4.quadraticCurveTo(_3.width,_3.height,_3.width,_3.height-_5.radius);
_4.lineTo(_3.width,_5.radius);
_4.quadraticCurveTo(_3.width,0,_3.width-_5.radius,0);
_4.lineTo(_5.radius,0);
_4.quadraticCurveTo(0,0,0,_5.radius);
_4.closePath();
if(this.action){
this.action.paint(_3);
}
},shrink:function(_6,_7){
this.defaultShrink(_6,_7);
this.opts.radius-=_7;
}});
$.registerLiquidCanvasPlugin({name:"fill",defaultOpts:{color:"#aaa"},paint:function(_8){
_8.ctx.fillStyle=this.opts.color;
this.action.paint(_8);
_8.ctx.fill();
}});
$.registerLiquidCanvasPlugin({name:"image",defaultOpts:{url:"banner-05.jpg"},paint:function(_9){
var _a=new Image();
_a.src=this.opts.url;
_a.onload=function(){
_9.ctx.drawImage(this,0,0);
};
}});
$.registerLiquidCanvasPlugin({name:"blue",defaultOpts:{from:"#fff",to:"#99c"},paint:function(_b){
var _c=_b.ctx.createLinearGradient(0,0,0,_b.height);
_c.addColorStop(0,this.opts.from);
_c.addColorStop(1,this.opts.to);
_b.ctx.fillStyle=_c;
this.action.paint(_b);
_b.ctx.fill();
}});
$.registerLiquidCanvasPlugin({name:"gradient",defaultOpts:{from:"#fff",to:"#c99"},paint:function(_d){
var _e=_d.ctx.createLinearGradient(0,0,0,_d.height);
_e.addColorStop(0,this.opts.from);
_e.addColorStop(1,this.opts.to);
_d.ctx.fillStyle=_e;
this.action.paint(_d);
_d.ctx.fill();
}});
$.registerLiquidCanvasPlugin({name:"shadow",defaultOpts:{width:3,color:"#333",shift:3},paint:function(_f){
var sw=this.opts.width;
_f.ctx.fillStyle=this.opts.color;
_f.ctx.globalAlpha=0.2/sw;
for(var s=0;s<sw;++s){
this.action.paint(_f);
_f.ctx.fill();
this.action.shrink(_f,1);
}
_f.ctx.globalAlpha=1;
_f.ctx.translate(0,-this.opts.shift);
}});
$.registerLiquidCanvasPlugin({name:"border",defaultOpts:{color:"#c7c2f3",width:1},paint:function(_12){
var bw=this.opts.width;
_12.ctx.strokeStyle=this.opts.color;
_12.ctx.lineWidth=bw;
this.action.shrink(_12,bw/2);
this.action.paint(_12);
_12.ctx.stroke();
this.action.shrink(_12,bw/2);
}});
$.registerLiquidCanvasPlugin({name:"border2",defaultOpts:{color:"#1ff538",width:3},paint:function(_14){
var bw=this.opts.width;
_14.ctx.strokeStyle=this.opts.color;
_14.ctx.lineWidth=bw;
this.action.shrink(_14,bw/2);
this.action.paint(_14);
_14.ctx.stroke();
this.action.shrink(_14,bw/2);
}});
$.registerLiquidCanvasPlugin({name:"shadow_siro",defaultOpts:{width:1,color:"#93a8ab",shift:1},paint:function(_16){
var sw=this.opts.width;
_16.ctx.fillStyle=this.opts.color;
_16.ctx.globalAlpha=0.3/sw;
for(var s=0;s<sw;++s){
this.action.paint(_16);
_16.ctx.fill();
this.action.shrink(_16,1);
}
_16.ctx.globalAlpha=0.8;
_16.ctx.translate(0,-this.opts.shift);
}});
$.registerLiquidCanvasPlugin({name:"222222",defaultOpts:{from:"#111",to:"#000"},paint:function(_19){
var _1a=_19.ctx.createLinearGradient(0,0,0,_19.height);
_1a.addColorStop(0,this.opts.from);
_1a.addColorStop(1,this.opts.to);
_19.ctx.fillStyle=_1a;
this.action.paint(_19);
_19.ctx.fill();
}});
$.registerLiquidCanvasPlugin({name:"d4d4d0",defaultOpts:{from:"#fff",to:"#d4d4d0"},paint:function(_1b){
var _1c=_1b.ctx.createLinearGradient(0,0,0,_1b.height);
_1c.addColorStop(0,this.opts.from);
_1c.addColorStop(1,this.opts.to);
_1b.ctx.fillStyle=_1c;
this.action.paint(_1b);
_1b.ctx.fill();
}});
$.registerLiquidCanvasPlugin({name:"bbbbf6",defaultOpts:{from:"#fff",to:"#bbbbf6"},paint:function(_1d){
var _1e=_1d.ctx.createLinearGradient(0,0,0,_1d.height);
_1e.addColorStop(0,this.opts.from);
_1e.addColorStop(1,this.opts.to);
_1d.ctx.fillStyle=_1e;
this.action.paint(_1d);
_1d.ctx.fill();
}});
$.registerLiquidCanvasPlugin({name:"cc9999",defaultOpts:{from:"#fff",to:"#cc9999"},paint:function(_1f){
var _20=_1f.ctx.createLinearGradient(0,0,0,_1f.height);
_20.addColorStop(0,this.opts.from);
_20.addColorStop(1,this.opts.to);
_1f.ctx.fillStyle=_20;
this.action.paint(_1f);
_1f.ctx.fill();
}});
$.registerLiquidCanvasPlugin({name:"e0e0f0",defaultOpts:{from:"#fff",to:"#e0e0f0"},paint:function(_21){
var _22=_21.ctx.createLinearGradient(0,0,0,_21.height);
_22.addColorStop(0,this.opts.from);
_22.addColorStop(1,this.opts.to);
_21.ctx.fillStyle=_22;
this.action.paint(_21);
_21.ctx.fill();
}});
$.registerLiquidCanvasPlugin({name:"e3f8c4",defaultOpts:{from:"#fff",to:"#e3f8c4"},paint:function(_23){
var _24=_23.ctx.createLinearGradient(0,0,0,_23.height);
_24.addColorStop(0,this.opts.from);
_24.addColorStop(1,this.opts.to);
_23.ctx.fillStyle=_24;
this.action.paint(_23);
_23.ctx.fill();
}});
$.registerLiquidCanvasPlugin({name:"ffffff",defaultOpts:{from:"#fff",to:"#e0f6f9"},paint:function(_25){
var _26=_25.ctx.createLinearGradient(0,0,0,_25.height);
_26.addColorStop(0,this.opts.from);
_26.addColorStop(1,this.opts.to);
_25.ctx.fillStyle=_26;
this.action.paint(_25);
_25.ctx.fill();
}});
$.registerLiquidCanvasPlugin({name:"top",defaultOpts:{from:"#fff",to:"#fafbe0"},paint:function(_25){
var _26=_25.ctx.createLinearGradient(0,0,0,_25.height);
_26.addColorStop(0,this.opts.from);
_26.addColorStop(1,this.opts.to);
_25.ctx.fillStyle=_26;
this.action.paint(_25);
_25.ctx.fill();
}});
$.registerLiquidCanvasPlugin({name:"d0d0d0",defaultOpts:{from:"#f0f0f0",to:"#c0c0c0"},paint:function(_27){
var _28=_27.ctx.createLinearGradient(0,0,0,_27.height);
_28.addColorStop(0,this.opts.from);
_28.addColorStop(1,this.opts.to);
_27.ctx.fillStyle=_28;
this.action.paint(_27);
_27.ctx.fill();
}});
$.registerLiquidCanvasPlugin({name:"button2",defaultOpts:{from:"#64c3fa",to:"#2c76ff"},paint:function(_29){
var _2a=_29.ctx.createLinearGradient(0,0,0,_29.height);
_2a.addColorStop(0,this.opts.from);
_2a.addColorStop(1,this.opts.to);
_29.ctx.fillStyle=_2a;
this.action.paint(_29);
_29.ctx.fill();
}});
$.registerLiquidCanvasPlugin({name:"aka",defaultOpts:{from:"#f4e7e7",to:"#ffffff"},paint:function(_2b){
var _2c=_2b.ctx.createLinearGradient(0,0,0,_2b.height);
_2c.addColorStop(0,this.opts.from);
_2c.addColorStop(1,this.opts.to);
_2b.ctx.fillStyle=_2c;
this.action.paint(_2b);
_2b.ctx.fill();
}});
$.registerLiquidCanvasPlugin({name:"ao",defaultOpts:{from:"#cfdeff",to:"#fafafa"},paint:function(_2d){
var _2e=_2d.ctx.createLinearGradient(0,0,0,_2d.height);
_2e.addColorStop(0,this.opts.from);
_2e.addColorStop(1,this.opts.to);
_2d.ctx.fillStyle=_2e;
this.action.paint(_2d);
_2d.ctx.fill();
}});
$.registerLiquidCanvasPlugin({name:"orange",defaultOpts:{from:"#ffc851",to:"#ff5d25"},paint:function(_2f){
var _30=_2f.ctx.createLinearGradient(0,0,0,_2f.height);
_30.addColorStop(0,this.opts.from);
_30.addColorStop(1,this.opts.to);
_2f.ctx.fillStyle=_30;
this.action.paint(_2f);
_2f.ctx.fill();
}});
$.registerLiquidCanvasPlugin({name:"siro",defaultOpts:{from:"#ffffff",to:"#e6f6fa"},paint:function(_31){
var _32=_31.ctx.createLinearGradient(0,0,0,_31.height);
_32.addColorStop(0,this.opts.from);
_32.addColorStop(1,this.opts.to);
_31.ctx.fillStyle=_32;
this.action.paint(_31);
_31.ctx.fill();
}});
$.registerLiquidCanvasPlugin({name:"window",defaultOpts:{width:3,color:"#eef9ff",shift:2},paint:function(_33){
var sw=this.opts.width;
_33.ctx.fillStyle=this.opts.color;
_33.ctx.globalAlpha=1.8/sw;
for(var s=0;s<sw;++s){
this.action.paint(_33);
_33.ctx.fill();
this.action.shrink(_33,1);
}
_33.ctx.globalAlpha=1.8;
_33.ctx.translate(0,-this.opts.shift);
}});
})(jQuery);
$(window).load(function(){
$(".d4d4d0").liquidCanvas("[shadow border d4d4d0] => roundedRect{radius:8} ");
});
$(window).load(function(){
$(".bbbbf6").liquidCanvas("[shadow border bbbbf6] => roundedRect{radius:8} ");
});
$(window).load(function(){
$(".cc9999").liquidCanvas("[shadow border cc9999] => roundedRect{radius:8} ");
});
$(window).load(function(){
$(".e0e0f0").liquidCanvas("[shadow border e0e0f0] => roundedRect{radius:8} ");
});
$(window).load(function(){
$(".e3f8c4").liquidCanvas("[shadow border e3f8c4] => roundedRect{radius:8} ");
});
$(window).load(function(){
$(".ffffff").liquidCanvas("[shadow border{color:#348495;width:1} ffffff] => roundedRect{radius:7} ");
});
$(window).load(function(){
$(".top").liquidCanvas("[shadow border{color:#ffd100;width:1} top] => roundedRect{radius:6} ");
});
$(window).load(function(){
$(".d0d0d0").liquidCanvas("[shadow border d0d0d0] => roundedRect{radius:8} ");
});
$(window).load(function(){
$(".button2").liquidCanvas("[shadow border2 button2] => roundedRect{radius:10} ");
});
$(window).load(function(){
$(".window").liquidCanvas("[shadow border window ] => roundedRect{radius:9} ");
});
$(window).load(function(){
$(".222222").liquidCanvas("[shadow border{color:#fc3702;width:2} 222222] => roundedRect{radius:10} ");
});
$(window).load(function(){
$(".ao-window").liquidCanvas("[border{color:#a0c0d0;width:1} ao] => roundedRect{radius:6} ");
});
$(window).load(function(){
$(".aka-window").liquidCanvas("[border{color:#dfccc9;width:1} aka] => roundedRect{radius:6} ");
});
$(window).load(function(){
$(".orange-window").liquidCanvas("[border{color:#565656;width:1} orange] => roundedRect{radius:6} ");
});
$(window).load(function(){
$(".kuro-window").liquidCanvas("[border{color:#f0ff75;width:1} fill{color:#040404}] => roundedRect{radius:6} ");
});
$(window).load(function(){
$(".siro-window").liquidCanvas("[shadow_siro border{color:#5cacb5;width:1} siro] => roundedRect{radius:3} ");
});

