/** Gradient v1.1.0 - (C) 2012, William Van Rensselaer - http://williamvanr.com/projects/ - Requires Color.js project
* Dual Licensed: MIT or GPL Version 2 license */
(function(p){var t=p.document,u=p.Math,v=u.random,x=u.floor,l=p.parseInt,y=p.parseFloat,A=Object.prototype.toString,r=Array.isArray||function(a){return"[object Array]"===A.call(a)},B=function(){var a=t.createElement("div");try{a.style.backgroundColor="rgba(0,0,0,0.5)"}catch(b){}return/rgba/.test(a.style.backgroundColor)}(),C=p.getComputedStyle?function(a,b){"borderColor"===b&&(b="borderTopColor");return t.defaultView.getComputedStyle(a,null).getPropertyValue(b.replace(/([A-Z]|^ms)/g,"-$1").toLowerCase())}:
function(a,b){return a.currentStyle[b]},s={slow:600,def:450,fast:300},w,z={},n=0,i=p.Color=function(a){if(!(this instanceof i))return new i(a);this.set(a)},h=p.Gradient=function(a){if(!(this instanceof h))return new h(a);this.set(a)};i.prototype=i.pt={set:function(a){a=i.parse(a);this.r=a[0];this.g=a[1];this.b=a[2];this.a="number"===typeof a[3]?a[3]:1;return this},toHex:function(){var a=i.rgbRange,b=a(this.r).toString(16),d=a(this.g).toString(16),a=a(this.b).toString(16);return"#"+(1===b.length?"0"+
b:b)+(1===d.length?"0"+d:d)+(1===a.length?"0"+a:a)},toRGB:function(){var a=i.rgbRange;return"rgb("+a(this.r)+","+a(this.g)+","+a(this.b)+")"},toString:function(){var a=i.rgbRange,a=a(this.r)+","+a(this.g)+","+a(this.b);return B?"rgba("+a+","+i.alphaRange(this.a)+")":"rgb("+a+")"},equals:function(a){return a instanceof i&&a.r===this.r&&a.g===this.g&&a.b===this.b&&a.a===this.a}};i.sps=40;i.rand=function(){return i([x(256*v()),x(256*v()),x(256*v()),1-v()])};i.rgbRange=function(a){return"number"===typeof a?
0>a?0:255a?0:1