(function(j){Math.precision=function(a,e){e===void 0&&(e=0);return Math.round(a*Math.pow(10,e))/Math.pow(10,e)};var X=function(a,e){var c=this,d=a.find("img:first"),b=0,h=100,o=100,p=0,l=100,m=100,u=0,q=0,r,f,z=[],B=function(a){for(var d=0;d<z.length;d++)z[d].call(c,c,a)},t=function(d){var e=a.offset();r={l:e.left|0,t:e.top|0};clearTimeout(f);f=setTimeout(function(){A.call(c,d)},0);j(document).bind("mousemove",g).bind("mouseup",k);d.preventDefault()},g=function(d){clearTimeout(f);f=setTimeout(function(){A.call(c,
d)},0);d.stopPropagation();d.preventDefault();return!1},k=function(c){j(document).unbind("mouseup",k).unbind("mousemove",g);c.stopPropagation();c.preventDefault();return!1},A=function(d){var e=d.pageX-r.l,d=d.pageY-r.t,f=a.w,h=a.h;e<0?e=0:e>f&&(e=f);d<0?d=0:d>h&&(d=h);G.call(c,"xy",{x:e/f*o+b,y:d/h*m+p})},G=function(d,a,e){if(a===void 0){if(d===void 0||d==null)d="xy";switch(d.toLowerCase()){case "x":return u;case "y":return q;default:return{x:u,y:q}}}if(!(e!=null&&e==c)){var f=!1,g,r;d==null&&(d=
"xy");switch(d.toLowerCase()){case "x":g=a&&(a.x&&a.x|0||a|0)||0;break;case "y":r=a&&(a.y&&a.y|0||a|0)||0;break;default:g=a&&a.x&&a.x|0||0,r=a&&a.y&&a.y|0||0}g!=null&&(g<b?g=b:g>h&&(g=h),u!=g&&(u=g,f=!0));r!=null&&(r<p?r=p:r>l&&(r=l),q!=r&&(q=r,f=!0));f&&B.call(c,e||c)}},F=function(c){j.isFunction(c)&&z.push(c)};j.extend(!0,c,{val:G,range:function(c,d){if(d===void 0){if(c===void 0||c==null)c="all";switch(c.toLowerCase()){case "minx":return b;case "maxx":return h;case "rangex":return{minX:b,maxX:h,
rangeX:o};case "miny":return p;case "maxy":return l;case "rangey":return{minY:p,maxY:l,rangeY:m};default:return{minX:b,maxX:h,rangeX:o,minY:p,maxY:l,rangeY:m}}}var a,e,f,g;c==null&&(c="all");switch(c.toLowerCase()){case "minx":a=d&&(d.minX&&d.minX|0||d|0)||0;break;case "maxx":e=d&&(d.maxX&&d.maxX|0||d|0)||0;break;case "rangex":a=d&&d.minX&&d.minX|0||0;e=d&&d.maxX&&d.maxX|0||0;break;case "miny":f=d&&(d.minY&&d.minY|0||d|0)||0;break;case "maxy":g=d&&(d.maxY&&d.maxY|0||d|0)||0;break;case "rangey":f=
d&&d.minY&&d.minY|0||0;g=d&&d.maxY&&d.maxY|0||0;break;default:a=d&&d.minX&&d.minX|0||0,e=d&&d.maxX&&d.maxX|0||0,f=d&&d.minY&&d.minY|0||0,g=d&&d.maxY&&d.maxY|0||0}a!=null&&b!=a&&(b=a,o=h-b);e!=null&&h!=e&&(h=e,o=h-b);f!=null&&p!=f&&(p=f,m=l-p);g!=null&&l!=g&&(l=g,m=l-p)},bind:F,unbind:function(c){if(j.isFunction(c))for(var d;(d=j.inArray(c,z))!=-1;)z.splice(d,1)},destroy:function(){j(document).unbind("mouseup",k).unbind("mousemove",g);a.unbind("mousedown",t);z=d=a=null}});d.src=e.arrow&&e.arrow.image;
d.w=e.arrow&&e.arrow.width||d.width();d.h=e.arrow&&e.arrow.height||d.height();a.w=e.map&&e.map.width||a.width();a.h=e.map&&e.map.height||a.height();a.bind("mousedown",t);F.call(c,function(){var c=0,e=0,f=a.w,g=a.h,b=d.w,r=d.h;setTimeout(function(){o>0&&(c=u==h?f:u/o*f|0);m>0&&(e=q==l?g:q/m*g|0);b>=f?c=(f>>1)-(b>>1):c-=b>>1;r>=g?e=(g>>1)-(r>>1):e-=r>>1;d.css({left:c+"px",top:e+"px"})},0)})},ma=function(a,e,c,d){var b=this,a=a.find("td.Text input"),h=a.eq(3),o=a.eq(4),p=a.eq(5),l=a.length>7?a.eq(6):
null,m=a.eq(0),u=a.eq(1),q=a.eq(2),r=a.eq(a.length>7?7:6),f=a.length>7?a.eq(8):null,z=function(a){if(!(a.target.value==""&&a.target!=r.get(0)&&(c!=null&&a.target!=c.get(0)||c==null))){if(!g(a))return a;switch(a.target){case h.get(0):switch(a.keyCode){case 38:return h.val(k.call(b,(h.val()<<0)+1,0,255)),e.val("r",h.val(),a.target),!1;case 40:return h.val(k.call(b,(h.val()<<0)-1,0,255)),e.val("r",h.val(),a.target),!1}break;case o.get(0):switch(a.keyCode){case 38:return o.val(k.call(b,(o.val()<<0)+1,
0,255)),e.val("g",o.val(),a.target),!1;case 40:return o.val(k.call(b,(o.val()<<0)-1,0,255)),e.val("g",o.val(),a.target),!1}break;case p.get(0):switch(a.keyCode){case 38:return p.val(k.call(b,(p.val()<<0)+1,0,255)),e.val("b",p.val(),a.target),!1;case 40:return p.val(k.call(b,(p.val()<<0)-1,0,255)),e.val("b",p.val(),a.target),!1}break;case l&&l.get(0):switch(a.keyCode){case 38:return l.val(k.call(b,parseFloat(l.val())+1,0,100)),e.val("a",Math.precision(l.val()*255/100,d),a.target),!1;case 40:return l.val(k.call(b,
parseFloat(l.val())-1,0,100)),e.val("a",Math.precision(l.val()*255/100,d),a.target),!1}break;case m.get(0):switch(a.keyCode){case 38:return m.val(k.call(b,(m.val()<<0)+1,0,360)),e.val("h",m.val(),a.target),!1;case 40:return m.val(k.call(b,(m.val()<<0)-1,0,360)),e.val("h",m.val(),a.target),!1}break;case u.get(0):switch(a.keyCode){case 38:return u.val(k.call(b,(u.val()<<0)+1,0,100)),e.val("s",u.val(),a.target),!1;case 40:return u.val(k.call(b,(u.val()<<0)-1,0,100)),e.val("s",u.val(),a.target),!1}break;
case q.get(0):switch(a.keyCode){case 38:return q.val(k.call(b,(q.val()<<0)+1,0,100)),e.val("v",q.val(),a.target),!1;case 40:return q.val(k.call(b,(q.val()<<0)-1,0,100)),e.val("v",q.val(),a.target),!1}}}},B=function(a){if(!(a.target.value==""&&a.target!=r.get(0)&&(c!=null&&a.target!=c.get(0)||c==null))){if(!g(a))return a;switch(a.target){case h.get(0):h.val(k.call(b,h.val(),0,255));e.val("r",h.val(),a.target);break;case o.get(0):o.val(k.call(b,o.val(),0,255));e.val("g",o.val(),a.target);break;case p.get(0):p.val(k.call(b,
p.val(),0,255));e.val("b",p.val(),a.target);break;case l&&l.get(0):l.val(k.call(b,l.val(),0,100));e.val("a",Math.precision(l.val()*255/100,d),a.target);break;case m.get(0):m.val(k.call(b,m.val(),0,360));e.val("h",m.val(),a.target);break;case u.get(0):u.val(k.call(b,u.val(),0,100));e.val("s",u.val(),a.target);break;case q.get(0):q.val(k.call(b,q.val(),0,100));e.val("v",q.val(),a.target);break;case r.get(0):r.val(r.val().replace(/[^a-fA-F0-9]/g,"").toLowerCase().substring(0,6));c&&c.val(r.val());e.val("hex",
r.val()!=""?r.val():null,a.target);break;case c&&c.get(0):c.val(c.val().replace(/[^a-fA-F0-9]/g,"").toLowerCase().substring(0,6));r.val(c.val());e.val("hex",c.val()!=""?c.val():null,a.target);break;case f&&f.get(0):f.val(f.val().replace(/[^a-fA-F0-9]/g,"").toLowerCase().substring(0,2)),e.val("a",f.val()!=null?parseInt(f.val(),16):null,a.target)}}},t=function(a){if(e.val()!=null)switch(a.target){case h.get(0):h.val(e.val("r"));break;case o.get(0):o.val(e.val("g"));break;case p.get(0):p.val(e.val("b"));
break;case l&&l.get(0):l.val(Math.precision(e.val("a")*100/255,d));break;case m.get(0):m.val(e.val("h"));break;case u.get(0):u.val(e.val("s"));break;case q.get(0):q.val(e.val("v"));break;case r.get(0):case c&&c.get(0):r.val(e.val("hex"));c&&c.val(e.val("hex"));break;case f&&f.get(0):f.val(e.val("ahex").substring(6))}},g=function(c){switch(c.keyCode){case 9:case 16:case 29:case 37:case 39:return!1;case "c".charCodeAt():case "v".charCodeAt():if(c.ctrlKey)return!1}return!0},k=function(c,a,d){if(c==""||
isNaN(c))return a;if(c>d)return d;if(c<a)return a;return c},A=function(a,e){var b=a.val("all");e!=h.get(0)&&h.val(b!=null?b.r:"");e!=o.get(0)&&o.val(b!=null?b.g:"");e!=p.get(0)&&p.val(b!=null?b.b:"");l&&e!=l.get(0)&&l.val(b!=null?Math.precision(b.a*100/255,d):"");e!=m.get(0)&&m.val(b!=null?b.h:"");e!=u.get(0)&&u.val(b!=null?b.s:"");e!=q.get(0)&&q.val(b!=null?b.v:"");if(e!=r.get(0)&&(c&&e!=c.get(0)||!c))r.val(b!=null?b.hex:"");c&&e!=c.get(0)&&e!=r.get(0)&&c.val(b!=null?b.hex:"");f&&e!=f.get(0)&&f.val(b!=
null?b.ahex.substring(6):"")};j.extend(!0,b,{destroy:function(){h.add(o).add(p).add(l).add(m).add(u).add(q).add(r).add(c).add(f).unbind("keyup",B).unbind("blur",t);h.add(o).add(p).add(l).add(m).add(u).add(q).unbind("keydown",z);e.unbind(A);f=r=q=u=m=l=p=o=h=null}});h.add(o).add(p).add(l).add(m).add(u).add(q).add(r).add(c).add(f).bind("keyup",B).bind("blur",t);h.add(o).add(p).add(l).add(m).add(u).add(q).bind("keydown",z);e.bind(A)};j.jPicker={List:[],Color:function(a){var e=this,c,d,b,h,o,p,l,m=[],
u=function(c){for(var a=0;a<m.length;a++)m[a].call(e,e,c)},q=function(a,f,j){if(f===void 0){if(a===void 0||a==null||a=="")a="all";if(c==null)return null;switch(a.toLowerCase()){case "ahex":return H.rgbaToHex({r:c,g:d,b:b,a:h});case "hex":return q("ahex").substring(0,6);case "all":return{r:c,g:d,b:b,a:h,h:o,s:p,v:l,hex:q.call(e,"hex"),ahex:q.call(e,"ahex")};default:for(var f={},m=0;m<a.length;m++)switch(a.charAt(m)){case "r":a.length==1?f=c:f.r=c;break;case "g":a.length==1?f=d:f.g=d;break;case "b":a.length==
1?f=b:f.b=b;break;case "a":a.length==1?f=h:f.a=h;break;case "h":a.length==1?f=o:f.h=o;break;case "s":a.length==1?f=p:f.s=p;break;case "v":a.length==1?f=l:f.v=l}return f=={}?q.call(e,"all"):f}}if(!(j!=null&&j==e)){var t=!1;a==null&&(a="");if(f==null)c!=null&&(c=null,t=!0),d!=null&&(d=null,t=!0),b!=null&&(b=null,t=!0),h!=null&&(h=null,t=!0),o!=null&&(o=null,t=!0),p!=null&&(p=null,t=!0),l!=null&&(l=null,t=!0),t&&u.call(e,j||e);else switch(a.toLowerCase()){case "ahex":case "hex":f=H.hexToRgba(f&&(f.ahex||
f.hex)||f||"00000000");q.call(e,"rgba",{r:f.r,g:f.g,b:f.b,a:a=="ahex"?f.a:h!=null?h:255},j);break;default:if(f&&(f.ahex!=null||f.hex!=null)){q.call(e,"ahex",f.ahex||f.hex||"00000000",j);break}var g={},k=!1,A=!1;f.r!==void 0&&!a.indexOf("r")==-1&&(a+="r");f.g!==void 0&&!a.indexOf("g")==-1&&(a+="g");f.b!==void 0&&!a.indexOf("b")==-1&&(a+="b");f.a!==void 0&&!a.indexOf("a")==-1&&(a+="a");f.h!==void 0&&!a.indexOf("h")==-1&&(a+="h");f.s!==void 0&&!a.indexOf("s")==-1&&(a+="s");f.v!==void 0&&!a.indexOf("v")==
-1&&(a+="v");for(m=0;m<a.length;m++)switch(a.charAt(m)){case "r":if(A)continue;k=!0;g.r=f&&f.r&&f.r|0||f&&f|0||0;if(g.r<0)g.r=0;else if(g.r>255)g.r=255;if(c!=g.r)c=g.r,t=!0;break;case "g":if(A)continue;k=!0;g.g=f&&f.g&&f.g|0||f&&f|0||0;if(g.g<0)g.g=0;else if(g.g>255)g.g=255;if(d!=g.g)d=g.g,t=!0;break;case "b":if(A)continue;k=!0;g.b=f&&f.b&&f.b|0||f&&f|0||0;if(g.b<0)g.b=0;else if(g.b>255)g.b=255;if(b!=g.b)b=g.b,t=!0;break;case "a":g.a=f&&f.a!=null?f.a|0:f!=null?f|0:255;if(g.a<0)g.a=0;else if(g.a>255)g.a=
255;if(h!=g.a)h=g.a,t=!0;break;case "h":if(k)continue;A=!0;g.h=f&&f.h&&f.h|0||f&&f|0||0;if(g.h<0)g.h=0;else if(g.h>360)g.h=360;if(o!=g.h)o=g.h,t=!0;break;case "s":if(k)continue;A=!0;g.s=f&&f.s!=null?f.s|0:f!=null?f|0:100;if(g.s<0)g.s=0;else if(g.s>100)g.s=100;if(p!=g.s)p=g.s,t=!0;break;case "v":if(k)continue;A=!0;g.v=f&&f.v!=null?f.v|0:f!=null?f|0:100;if(g.v<0)g.v=0;else if(g.v>100)g.v=100;if(l!=g.v)l=g.v,t=!0}if(t){if(k)c=c||0,d=d||0,b=b||0,f=H.rgbToHsv({r:c,g:d,b:b}),o=f.h,p=f.s,l=f.v;else if(A)o=
o||0,p=p!=null?p:100,l=l!=null?l:100,f=H.hsvToRgb({h:o,s:p,v:l}),c=f.r,d=f.g,b=f.b;h=h!=null?h:255;u.call(e,j||e)}}}};j.extend(!0,e,{val:q,bind:function(a){j.isFunction(a)&&m.push(a)},unbind:function(a){if(j.isFunction(a))for(var c;(c=j.inArray(a,m))!=-1;)m.splice(c,1)},destroy:function(){m=null}});a&&(a.ahex!=null?q("ahex",a):a.hex!=null?q((a.a!=null?"a":"")+"hex",a.a!=null?{ahex:a.hex+H.intToHex(a.a)}:a):a.r!=null&&a.g!=null&&a.b!=null?q("rgb"+(a.a!=null?"a":""),a):a.h!=null&&a.s!=null&&a.v!=null&&
q("hsv"+(a.a!=null?"a":""),a))},ColorMethods:{hexToRgba:function(a){a=this.validateHex(a);if(a=="")return{r:null,g:null,b:null,a:null};var e="00",c="00",d="00",b="255";a.length==6&&(a+="ff");a.length>6?(e=a.substring(0,2),c=a.substring(2,4),d=a.substring(4,6),b=a.substring(6,a.length)):(a.length>4&&(e=a.substring(4,a.length),a=a.substring(0,4)),a.length>2&&(c=a.substring(2,a.length),a=a.substring(0,2)),a.length>0&&(d=a.substring(0,a.length)));return{r:this.hexToInt(e),g:this.hexToInt(c),b:this.hexToInt(d),
a:this.hexToInt(b)}},validateHex:function(a){a=a.toLowerCase().replace(/[^a-f0-9]/g,"");a.length>8&&(a=a.substring(0,8));return a},rgbaToHex:function(a){return this.intToHex(a.r)+this.intToHex(a.g)+this.intToHex(a.b)+this.intToHex(a.a)},intToHex:function(a){a=(a|0).toString(16);a.length==1&&(a="0"+a);return a.toLowerCase()},hexToInt:function(a){return parseInt(a,16)},rgbToHsv:function(a){var b=a.r/255,c=a.g/255,a=a.b/255,d={h:0,s:0,v:0},j=0,h=0;b>=c&&b>=a?(h=b,j=c>a?a:c):c>=a&&c>=b?(h=c,j=b>a?a:b):
(h=a,j=c>b?b:c);d.v=h;d.s=h?(h-j)/h:0;d.s?(j=h-j,d.h=b==h?(c-a)/j:c==h?2+(a-b)/j:4+(b-c)/j,d.h=parseInt(d.h*60),d.h<0&&(d.h+=360)):d.h=0;d.s=d.s*100|0;d.v=d.v*100|0;return d},hsvToRgb:function(a){var b={r:0,g:0,b:0,a:100},c=a.h,d=a.s,a=a.v;if(d==0)b.r=a==0?b.g=b.b=0:b.g=b.b=a*255/100|0;else{c==360&&(c=0);c/=60;d/=100;a/=100;var j=c|0,h=c-j,c=a*(1-d),o=a*(1-d*h),d=a*(1-d*(1-h));switch(j){case 0:b.r=a;b.g=d;b.b=c;break;case 1:b.r=o;b.g=a;b.b=c;break;case 2:b.r=c;b.g=a;b.b=d;break;case 3:b.r=c;b.g=o;
b.b=a;break;case 4:b.r=d;b.g=c;b.b=a;break;case 5:b.r=a,b.g=c,b.b=o}b.r=b.r*255|0;b.g=b.g*255|0;b.b=b.b*255|0}return b}}};var b=j.jPicker.Color,I=j.jPicker.List,H=j.jPicker.ColorMethods;j.fn.jPicker=function(a){var e=arguments;return this.each(function(){var c=this,d=j.extend(!0,{},j.fn.jPicker.defaults,a);if(j(c).get(0).nodeName.toLowerCase()=="input")if(j.extend(!0,d,{window:{bindToInput:!0,expandable:!0,input:j(c)}}),j(c).val()=="")d.color.active=new b({hex:null}),d.color.current=new b({hex:null});
else if(H.validateHex(j(c).val()))d.color.active=new b({hex:j(c).val(),a:d.color.active.val("a")}),d.color.current=new b({hex:j(c).val(),a:d.color.active.val("a")});d.window.expandable?j(c).after('<span class="jPicker"><span class="Icon"><span class="Color">&nbsp;</span><span class="Alpha">&nbsp;</span><span class="Image" title="Click To Open Color Picker">&nbsp;</span><span class="Container">&nbsp;</span></span></span>'):d.window.liveUpdate=!1;var S=parseFloat(navigator.appVersion.split("MSIE")[1])<
7&&document.body.filters,h=null,o=null,p=null,l=null,m=null,u=null,q=null,r=null,f=null,z=null,B=null,t=null,g=null,k=null,A=null,G=null,F=null,V=null,W=null,L=null,J=null,M=null,N=null,K=null,Y=null,O=null,Z=null,$=null,ba=function(a){var b=w.active,e=b.val("hex"),h,j;d.color.mode=a;switch(a){case "h":setTimeout(function(){y.call(c,o,"transparent");n.call(c,l,0);s.call(c,l,100);n.call(c,m,260);s.call(c,m,100);y.call(c,p,"transparent");n.call(c,q,0);s.call(c,q,100);n.call(c,r,260);s.call(c,r,100);
n.call(c,f,260);s.call(c,f,100);n.call(c,z,260);s.call(c,z,100);n.call(c,t,260);s.call(c,t,100)},0);g.range("all",{minX:0,maxX:100,minY:0,maxY:100});k.range("rangeY",{minY:0,maxY:360});if(b.val("ahex")==null)break;g.val("xy",{x:b.val("s"),y:100-b.val("v")},g);k.val("y",360-b.val("h"),k);break;case "s":setTimeout(function(){y.call(c,o,"transparent");n.call(c,l,-260);n.call(c,m,-520);n.call(c,q,-260);n.call(c,r,-520);n.call(c,t,260);s.call(c,t,100)},0);g.range("all",{minX:0,maxX:360,minY:0,maxY:100});
k.range("rangeY",{minY:0,maxY:100});if(b.val("ahex")==null)break;g.val("xy",{x:b.val("h"),y:100-b.val("v")},g);k.val("y",100-b.val("s"),k);break;case "v":setTimeout(function(){y.call(c,o,"000000");n.call(c,l,-780);n.call(c,m,260);y.call(c,p,e);n.call(c,q,-520);n.call(c,r,260);s.call(c,r,100);n.call(c,t,260);s.call(c,t,100)},0);g.range("all",{minX:0,maxX:360,minY:0,maxY:100});k.range("rangeY",{minY:0,maxY:100});if(b.val("ahex")==null)break;g.val("xy",{x:b.val("h"),y:100-b.val("s")},g);k.val("y",100-
b.val("v"),k);break;case "r":h=-1040;j=-780;g.range("all",{minX:0,maxX:255,minY:0,maxY:255});k.range("rangeY",{minY:0,maxY:255});if(b.val("ahex")==null)break;g.val("xy",{x:b.val("b"),y:255-b.val("g")},g);k.val("y",255-b.val("r"),k);break;case "g":h=-1560;j=-1820;g.range("all",{minX:0,maxX:255,minY:0,maxY:255});k.range("rangeY",{minY:0,maxY:255});if(b.val("ahex")==null)break;g.val("xy",{x:b.val("b"),y:255-b.val("r")},g);k.val("y",255-b.val("g"),k);break;case "b":h=-2080;j=-2860;g.range("all",{minX:0,
maxX:255,minY:0,maxY:255});k.range("rangeY",{minY:0,maxY:255});if(b.val("ahex")==null)break;g.val("xy",{x:b.val("r"),y:255-b.val("g")},g);k.val("y",255-b.val("b"),k);break;case "a":setTimeout(function(){y.call(c,o,"transparent");n.call(c,l,-260);n.call(c,m,-520);n.call(c,q,260);n.call(c,r,260);s.call(c,r,100);n.call(c,t,0);s.call(c,t,100)},0);g.range("all",{minX:0,maxX:360,minY:0,maxY:100});k.range("rangeY",{minY:0,maxY:255});if(b.val("ahex")==null)break;g.val("xy",{x:b.val("h"),y:100-b.val("v")},
g);k.val("y",255-b.val("a"),k);break;default:throw"Invalid Mode";}switch(a){case "s":case "v":case "a":setTimeout(function(){s.call(c,l,100);s.call(c,q,100);n.call(c,f,260);s.call(c,f,100);n.call(c,z,260);s.call(c,z,100)},0);break;case "r":case "g":case "b":setTimeout(function(){y.call(c,o,"transparent");y.call(c,p,"transparent");s.call(c,q,100);s.call(c,l,100);n.call(c,l,h);n.call(c,m,h-260);n.call(c,q,j-780);n.call(c,r,j-520);n.call(c,f,j);n.call(c,z,j-260);n.call(c,t,260);s.call(c,t,100)},0)}b.val("ahex")!=
null&&aa.call(c,b)},aa=function(a,b){(b==null||b!=k&&b!=g)&&na.call(c,a,b);setTimeout(function(){oa.call(c,a);pa.call(c,a);qa.call(c,a)},0)},ra=function(a,c){var b=w.active;if(!(c!=g&&b.val()==null)){var f=a.val("all");switch(d.color.mode){case "h":b.val("sv",{s:f.x,v:100-f.y},c);break;case "s":case "a":b.val("hv",{h:f.x,v:100-f.y},c);break;case "v":b.val("hs",{h:f.x,s:100-f.y},c);break;case "r":b.val("gb",{g:255-f.y,b:f.x},c);break;case "g":b.val("rb",{r:255-f.y,b:f.x},c);break;case "b":b.val("rg",
{r:f.x,g:255-f.y},c)}}},sa=function(a,c){var b=w.active;if(!(c!=k&&b.val()==null))switch(d.color.mode){case "h":b.val("h",{h:360-a.val("y")},c);break;case "s":b.val("s",{s:100-a.val("y")},c);break;case "v":b.val("v",{v:100-a.val("y")},c);break;case "r":b.val("r",{r:255-a.val("y")},c);break;case "g":b.val("g",{g:255-a.val("y")},c);break;case "b":b.val("b",{b:255-a.val("y")},c);break;case "a":b.val("a",255-a.val("y"),c)}},na=function(a,c){if(c!=g)switch(d.color.mode){case "h":var b=a.val("sv");g.val("xy",
{x:b!=null?b.s:100,y:100-(b!=null?b.v:100)},c);break;case "s":case "a":b=a.val("hv");g.val("xy",{x:b&&b.h||0,y:100-(b!=null?b.v:100)},c);break;case "v":b=a.val("hs");g.val("xy",{x:b&&b.h||0,y:100-(b!=null?b.s:100)},c);break;case "r":b=a.val("bg");g.val("xy",{x:b&&b.b||0,y:255-(b&&b.g||0)},c);break;case "g":b=a.val("br");g.val("xy",{x:b&&b.b||0,y:255-(b&&b.r||0)},c);break;case "b":b=a.val("rg"),g.val("xy",{x:b&&b.r||0,y:255-(b&&b.g||0)},c)}if(c!=k)switch(d.color.mode){case "h":k.val("y",360-(a.val("h")||
0),c);break;case "s":b=a.val("s");k.val("y",100-(b!=null?b:100),c);break;case "v":b=a.val("v");k.val("y",100-(b!=null?b:100),c);break;case "r":k.val("y",255-(a.val("r")||0),c);break;case "g":k.val("y",255-(a.val("g")||0),c);break;case "b":k.val("y",255-(a.val("b")||0),c);break;case "a":b=a.val("a"),k.val("y",255-(b!=null?b:255),c)}},oa=function(b){try{var a=b.val("all");L.css({backgroundColor:a&&"#"+a.hex||"transparent"});s.call(c,L,a&&Math.precision(a.a*100/255,4)||0)}catch(d){}},pa=function(a){switch(d.color.mode){case "h":y.call(c,
o,(new b({h:a.val("h")||0,s:100,v:100})).val("hex"));break;case "s":case "a":var f=a.val("s");s.call(c,m,100-(f!=null?f:100));break;case "v":f=a.val("v");s.call(c,l,f!=null?f:100);break;case "r":s.call(c,m,Math.precision((a.val("r")||0)/255*100,4));break;case "g":s.call(c,m,Math.precision((a.val("g")||0)/255*100,4));break;case "b":s.call(c,m,Math.precision((a.val("b")||0)/255*100))}a=a.val("a");s.call(c,u,Math.precision((255-(a||0))*100/255,4))},qa=function(a){switch(d.color.mode){case "h":var e=
a.val("a");s.call(c,B,Math.precision((255-(e||0))*100/255,4));break;case "s":var e=a.val("hva"),g=new b({h:e&&e.h||0,s:100,v:e!=null?e.v:100});y.call(c,p,g.val("hex"));s.call(c,r,100-(e!=null?e.v:100));s.call(c,B,Math.precision((255-(e&&e.a||0))*100/255,4));break;case "v":e=a.val("hsa");g=new b({h:e&&e.h||0,s:e!=null?e.s:100,v:100});y.call(c,p,g.val("hex"));s.call(c,B,Math.precision((255-(e&&e.a||0))*100/255,4));break;case "r":case "g":case "b":g=e=0;a=a.val("rgba");d.color.mode=="r"?(e=a&&a.b||0,
g=a&&a.g||0):d.color.mode=="g"?(e=a&&a.b||0,g=a&&a.r||0):d.color.mode=="b"&&(e=a&&a.r||0,g=a&&a.g||0);var h=g>e?e:g;s.call(c,r,e>g?Math.precision((e-g)/(255-g)*100,4):0);s.call(c,f,g>e?Math.precision((g-e)/(255-e)*100,4):0);s.call(c,z,Math.precision(h/255*100,4));s.call(c,B,Math.precision((255-(a&&a.a||0))*100/255,4));break;case "a":e=a.val("a"),y.call(c,p,a.val("hex")||"000000"),s.call(c,B,e!=null?0:100),s.call(c,t,e!=null?100:0)}},y=function(a,b){a.css({backgroundColor:b&&b.length==6&&"#"+b||"transparent"})},
E=function(a,b){S&&(b.indexOf("AlphaBar.png")!=-1||b.indexOf("Bars.png")!=-1||b.indexOf("Maps.png")!=-1)?(a.attr("pngSrc",b),a.css({backgroundImage:"none",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+b+"', sizingMethod='scale')"})):a.css({backgroundImage:"url('"+b+"')"})},n=function(a,b){a.css({top:b+"px"})},s=function(a,b){a.css({visibility:b>0?"visible":"hidden"});if(b>0&&b<100)if(S){var c=a.attr("pngSrc");c!=null&&(c.indexOf("AlphaBar.png")!=-1||c.indexOf("Bars.png")!=-1||
c.indexOf("Maps.png")!=-1)?a.css({filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+c+"', sizingMethod='scale') progid:DXImageTransform.Microsoft.Alpha(opacity="+b+")"}):a.css({opacity:Math.precision(b/100,4)})}else a.css({opacity:Math.precision(b/100,4)});else if(b==0||b==100)S?(c=a.attr("pngSrc"),c!=null&&(c.indexOf("AlphaBar.png")!=-1||c.indexOf("Bars.png")!=-1||c.indexOf("Maps.png")!=-1)?a.css({filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+c+"', sizingMethod='scale')"}):
a.css({opacity:""})):a.css({opacity:""})},ca=function(){w.active.val("ahex",w.current.val("ahex"))},ta=function(){w.current.val("ahex",w.active.val("ahex"))},da=function(a){j(this).parents("tbody:first").find('input:radio[value!="'+a.target.value+'"]').removeAttr("checked");ba.call(c,a.target.value)},ea=function(){ca.call(c)},fa=function(){ca.call(c);d.window.expandable&&T.call(c);j.isFunction(P)&&P.call(c,w.active,N)},ga=function(){ta.call(c);d.window.expandable&&T.call(c);j.isFunction(Q)&&Q.call(c,
w.active,M)},ha=function(){U.call(c)},ua=function(a){var b=a.val("hex");J.css({backgroundColor:b&&"#"+b||"transparent"});s.call(c,J,Math.precision((a.val("a")||0)*100/255,4))},va=function(a){var b=a.val("hex"),a=a.val("va");Y.css({backgroundColor:b&&"#"+b||"transparent"});s.call(c,O,Math.precision((255-(a&&a.a||0))*100/255,4));d.window.bindToInput&&d.window.updateInputColor&&d.window.input.css({backgroundColor:b&&"#"+b||"transparent",color:a==null||a.v>75?"#000000":"#ffffff"})},ka=function(a){G=parseInt(h.css("left"));
F=parseInt(h.css("top"));V=a.pageX;W=a.pageY;j(document).bind("mousemove",ia).bind("mouseup",ja);a.preventDefault()},ia=function(a){h.css({left:G-(V-a.pageX)+"px",top:F-(W-a.pageY)+"px"});d.window.expandable&&!j.support.boxModel&&h.prev().css({left:h.css("left"),top:h.css("top")});a.stopPropagation();a.preventDefault();return!1},ja=function(a){j(document).unbind("mousemove",ia).unbind("mouseup",ja);a.stopPropagation();a.preventDefault();return!1},la=function(a){a.preventDefault();a.stopPropagation();
w.active.val("ahex",j(this).attr("title")||null,a.target);return!1},Q=j.isFunction(e[1])&&e[1]||null,R=j.isFunction(e[2])&&e[2]||null,P=j.isFunction(e[3])&&e[3]||null,U=function(){w.current.val("ahex",w.active.val("ahex"));var a=function(){if(d.window.expandable&&!j.support.boxModel){var a=h.find("table:first");h.before("<iframe/>");h.prev().css({width:a.width(),height:h.height(),opacity:0,position:"absolute",left:h.css("left"),top:h.css("top")})}};d.window.expandable&&(j(document.body).children("div.jPicker.Container").css({zIndex:10}),
h.css({zIndex:20}));switch(d.window.effects.type){case "fade":h.fadeIn(d.window.effects.speed.show,a);break;case "slide":h.slideDown(d.window.effects.speed.show,a);break;default:h.show(d.window.effects.speed.show,a)}},T=function(){var a=function(){d.window.expandable&&h.css({zIndex:10});d.window.expandable&&!j.support.boxModel&&h.prev().remove()};switch(d.window.effects.type){case "fade":h.fadeOut(d.window.effects.speed.hide,a);break;case "slide":h.slideUp(d.window.effects.speed.hide,a);break;default:h.hide(d.window.effects.speed.hide,
a)}},wa=function(){var a=d.window,e=a.expandable?j(c).next().find(".Container:first"):null;h=a.expandable?j("<div/>"):j(c);h.addClass("jPicker Container");a.expandable&&h.hide();h.get(0).onselectstart=function(a){if(a.target.nodeName.toLowerCase()!=="input")return!1};var n=w.active.val("all");if(a.alphaPrecision<0)a.alphaPrecision=0;else if(a.alphaPrecision>2)a.alphaPrecision=2;var y='<table class="jPicker" cellpadding="0" cellspacing="0"><tbody>'+(a.expandable?'<tr><td class="Move" colspan="5">&nbsp;</td></tr>':
"")+'<tr><td rowspan="9"><h2 class="Title">'+(a.title||x.text.title)+'</h2><div class="Map"><span class="Map1">&nbsp;</span><span class="Map2">&nbsp;</span><span class="Map3">&nbsp;</span><img src="'+v.clientPath+v.colorMap.arrow.file+'" class="Arrow"/></div></td><td rowspan="9"><div class="Bar"><span class="Map1">&nbsp;</span><span class="Map2">&nbsp;</span><span class="Map3">&nbsp;</span><span class="Map4">&nbsp;</span><span class="Map5">&nbsp;</span><span class="Map6">&nbsp;</span><img src="'+
v.clientPath+v.colorBar.arrow.file+'" class="Arrow"/></div></td><td colspan="2" class="Preview">'+x.text.newColor+'<div><span class="Active" title="'+x.tooltips.colors.newColor+'">&nbsp;</span><span class="Current" title="'+x.tooltips.colors.currentColor+'">&nbsp;</span></div>'+x.text.currentColor+'</td><td rowspan="9" class="Button"><input type="button" class="Ok" value="'+x.text.ok+'" title="'+x.tooltips.buttons.ok+'"/><input type="button" class="Cancel" value="'+x.text.cancel+'" title="'+x.tooltips.buttons.cancel+
'"/><hr/><div class="Grid">&nbsp;</div></td></tr><tr class="Hue"><td class="Radio"><label title="'+x.tooltips.hue.radio+'"><input type="radio" value="h"'+(d.color.mode=="h"?' checked="checked"':"")+'/>H:</label></td><td class="Text"><input type="text" maxlength="3" value="'+(n!=null?n.h:"")+'" title="'+x.tooltips.hue.textbox+'"/>&nbsp;&deg;</td></tr><tr class="Saturation"><td class="Radio"><label title="'+x.tooltips.saturation.radio+'"><input type="radio" value="s"'+(d.color.mode=="s"?' checked="checked"':
"")+'/>S:</label></td><td class="Text"><input type="text" maxlength="3" value="'+(n!=null?n.s:"")+'" title="'+x.tooltips.saturation.textbox+'"/>&nbsp;%</td></tr><tr class="Value"><td class="Radio"><label title="'+x.tooltips.value.radio+'"><input type="radio" value="v"'+(d.color.mode=="v"?' checked="checked"':"")+'/>V:</label><br/><br/></td><td class="Text"><input type="text" maxlength="3" value="'+(n!=null?n.v:"")+'" title="'+x.tooltips.value.textbox+'"/>&nbsp;%<br/><br/></td></tr><tr class="Red"><td class="Radio"><label title="'+
x.tooltips.red.radio+'"><input type="radio" value="r"'+(d.color.mode=="r"?' checked="checked"':"")+'/>R:</label></td><td class="Text"><input type="text" maxlength="3" value="'+(n!=null?n.r:"")+'" title="'+x.tooltips.red.textbox+'"/></td></tr><tr class="Green"><td class="Radio"><label title="'+x.tooltips.green.radio+'"><input type="radio" value="g"'+(d.color.mode=="g"?' checked="checked"':"")+'/>G:</label></td><td class="Text"><input type="text" maxlength="3" value="'+(n!=null?n.g:"")+'" title="'+
x.tooltips.green.textbox+'"/></td></tr><tr class="Blue"><td class="Radio"><label title="'+x.tooltips.blue.radio+'"><input type="radio" value="b"'+(d.color.mode=="b"?' checked="checked"':"")+'/>B:</label></td><td class="Text"><input type="text" maxlength="3" value="'+(n!=null?n.b:"")+'" title="'+x.tooltips.blue.textbox+'"/></td></tr><tr class="Alpha"><td class="Radio">'+(a.alphaSupport?'<label title="'+x.tooltips.alpha.radio+'"><input type="radio" value="a"'+(d.color.mode=="a"?' checked="checked"':
"")+"/>A:</label>":"&nbsp;")+'</td><td class="Text">'+(a.alphaSupport?'<input type="text" maxlength="'+(3+a.alphaPrecision)+'" value="'+(n!=null?Math.precision(n.a*100/255,a.alphaPrecision):"")+'" title="'+x.tooltips.alpha.textbox+'"/>&nbsp;%':"&nbsp;")+'</td></tr><tr class="Hex"><td colspan="2" class="Text"><label title="'+x.tooltips.hex.textbox+'">#:<input type="text" maxlength="6" class="Hex" value="'+(n!=null?n.hex:"")+'"/></label>'+(a.alphaSupport?'<input type="text" maxlength="2" class="AHex" value="'+
(n!=null?n.ahex.substring(6):"")+'" title="'+x.tooltips.hex.alpha+'"/></td>':"&nbsp;")+"</tr></tbody></table>";a.expandable?(h.html(y),j(document.body).children("div.jPicker.Container").length==0?j(document.body).prepend(h):j(document.body).children("div.jPicker.Container:last").after(h),h.mousedown(function(){j(document.body).children("div.jPicker.Container").css({zIndex:10});h.css({zIndex:20})}),h.css({left:a.position.x=="left"?e.offset().left-530-(a.position.y=="center"?25:0)+"px":a.position.x==
"center"?e.offset().left-260+"px":a.position.x=="right"?e.offset().left-10+(a.position.y=="center"?25:0)+"px":a.position.x=="screenCenter"?(j(document).width()>>1)-260+"px":e.offset().left+parseInt(a.position.x)+"px",position:"absolute",top:a.position.y=="top"?e.offset().top-312+"px":a.position.y=="center"?e.offset().top-156+"px":a.position.y=="bottom"?e.offset().top+25+"px":e.offset().top+parseInt(a.position.y)+"px"})):(h=j(c),h.html(y));y=h.find("tbody:first");o=y.find("div.Map:first");p=y.find("div.Bar:first");
var D=o.find("span"),C=p.find("span");l=D.filter(".Map1:first");m=D.filter(".Map2:first");u=D.filter(".Map3:first");q=C.filter(".Map1:first");r=C.filter(".Map2:first");f=C.filter(".Map3:first");z=C.filter(".Map4:first");B=C.filter(".Map5:first");t=C.filter(".Map6:first");g=new X(o,{map:{width:v.colorMap.width,height:v.colorMap.height},arrow:{image:v.clientPath+v.colorMap.arrow.file,width:v.colorMap.arrow.width,height:v.colorMap.arrow.height}});g.bind(ra);k=new X(p,{map:{width:v.colorBar.width,height:v.colorBar.height},
arrow:{image:v.clientPath+v.colorBar.arrow.file,width:v.colorBar.arrow.width,height:v.colorBar.arrow.height}});k.bind(sa);A=new ma(y,w.active,a.expandable&&a.bindToInput?a.input:null,a.alphaPrecision);var D=n!=null?n.hex:null,H=y.find(".Preview"),C=y.find(".Button");L=H.find(".Active:first").css({backgroundColor:D&&"#"+D||"transparent"});J=H.find(".Current:first").css({backgroundColor:D&&"#"+D||"transparent"}).bind("click",ea);s.call(c,J,Math.precision(w.current.val("a")*100)/255,4);M=C.find(".Ok:first").bind("click",
ga);N=C.find(".Cancel:first").bind("click",fa);K=C.find(".Grid:first");setTimeout(function(){E.call(c,l,v.clientPath+"Maps.png");E.call(c,m,v.clientPath+"Maps.png");E.call(c,u,v.clientPath+"map-opacity.png");E.call(c,q,v.clientPath+"Bars.png");E.call(c,r,v.clientPath+"Bars.png");E.call(c,f,v.clientPath+"Bars.png");E.call(c,z,v.clientPath+"Bars.png");E.call(c,B,v.clientPath+"bar-opacity.png");E.call(c,t,v.clientPath+"AlphaBar.png");E.call(c,H.find("div:first"),v.clientPath+"preview-opacity.png")},
0);y.find("td.Radio input").bind("click",da);if(w.quickList&&w.quickList.length>0){C="";for(i=0;i<w.quickList.length;i++){(typeof w.quickList[i]).toString().toLowerCase()=="string"&&(w.quickList[i]=new b({hex:w.quickList[i]}));var G=w.quickList[i].val("a"),F=w.quickList[i].val("ahex");!a.alphaSupport&&F&&(F=F.substring(0,6)+"ff");var I=w.quickList[i].val("hex");C+='<span class="QuickColor"'+(F&&' title="#'+F+'"'||"")+' style="background-color:'+(I&&"#"+I||"")+";"+(I?"":"background-image:url("+v.clientPath+
"NoColor.png)")+(a.alphaSupport&&G&&G<255?";opacity:"+Math.precision(G/255,4)+";filter:Alpha(opacity="+Math.precision(G/2.55,4)+")":"")+'">&nbsp;</span>'}E.call(c,K,v.clientPath+"bar-opacity.png");K.html(C);K.find(".QuickColor").click(la)}ba.call(c,d.color.mode);w.active.bind(aa);j.isFunction(R)&&w.active.bind(R);w.current.bind(ua);a.expandable?(c.icon=e.parents(".Icon:first"),Y=c.icon.find(".Color:first").css({backgroundColor:D&&"#"+D||"transparent"}),O=c.icon.find(".Alpha:first"),E.call(c,O,v.clientPath+
"bar-opacity.png"),s.call(c,O,Math.precision((255-(n!=null?n.a:0))*100/255,4)),Z=c.icon.find(".Image:first").css({backgroundImage:"url('"+v.clientPath+v.picker.file+"')"}).bind("click",ha),a.bindToInput&&a.updateInputColor&&a.input.css({backgroundColor:D&&"#"+D||"transparent",color:n==null||n.v>75?"#000000":"#ffffff"}),$=y.find(".Move:first").bind("mousedown",ka),w.active.bind(va)):U.call(c)},v=d.images,x=d.localization,w={active:(typeof d.color.active).toString().toLowerCase()=="string"?new b({ahex:!d.window.alphaSupport&&
d.color.active?d.color.active.substring(0,6)+"ff":d.color.active}):new b({ahex:!d.window.alphaSupport&&d.color.active.val("ahex")?d.color.active.val("ahex").substring(0,6)+"ff":d.color.active.val("ahex")}),current:(typeof d.color.active).toString().toLowerCase()=="string"?new b({ahex:!d.window.alphaSupport&&d.color.active?d.color.active.substring(0,6)+"ff":d.color.active}):new b({ahex:!d.window.alphaSupport&&d.color.active.val("ahex")?d.color.active.val("ahex").substring(0,6)+"ff":d.color.active.val("ahex")}),
quickList:d.color.quickList};j.extend(!0,c,{commitCallback:Q,liveCallback:R,cancelCallback:P,color:w,show:U,hide:T,destroy:function(){h.find("td.Radio input").unbind("click",da);J.unbind("click",ea);N.unbind("click",fa);M.unbind("click",ga);if(d.window.expandable)Z.unbind("click",ha),$.unbind("mousedown",ka),c.icon=null;h.find(".QuickColor").unbind("click",la);t=B=z=f=r=q=u=m=l=p=o=null;g.destroy();g=null;k.destroy();k=null;A.destroy();R=P=Q=K=N=M=J=L=A=null;h.html("");for(i=0;i<I.length;i++)I[i]==
c&&I.splice(i,1)}});I.push(c);setTimeout(function(){wa.call(c)},0)})};j.fn.jPicker.defaults={window:{title:null,effects:{type:"slide",speed:{show:"slow",hide:"fast"}},position:{x:"screenCenter",y:"top"},expandable:!1,liveUpdate:!0,alphaSupport:!1,alphaPrecision:0,updateInputColor:!0},color:{mode:"h",active:new b({ahex:"#ffcc00ff"}),quickList:[new b({h:360,s:33,v:100}),new b({h:360,s:66,v:100}),new b({h:360,s:100,v:100}),new b({h:360,s:100,v:75}),new b({h:360,s:100,v:50}),new b({h:180,s:0,v:100}),
new b({h:30,s:33,v:100}),new b({h:30,s:66,v:100}),new b({h:30,s:100,v:100}),new b({h:30,s:100,v:75}),new b({h:30,s:100,v:50}),new b({h:180,s:0,v:90}),new b({h:60,s:33,v:100}),new b({h:60,s:66,v:100}),new b({h:60,s:100,v:100}),new b({h:60,s:100,v:75}),new b({h:60,s:100,v:50}),new b({h:180,s:0,v:80}),new b({h:90,s:33,v:100}),new b({h:90,s:66,v:100}),new b({h:90,s:100,v:100}),new b({h:90,s:100,v:75}),new b({h:90,s:100,v:50}),new b({h:180,s:0,v:70}),new b({h:120,s:33,v:100}),new b({h:120,s:66,v:100}),
new b({h:120,s:100,v:100}),new b({h:120,s:100,v:75}),new b({h:120,s:100,v:50}),new b({h:180,s:0,v:60}),new b({h:150,s:33,v:100}),new b({h:150,s:66,v:100}),new b({h:150,s:100,v:100}),new b({h:150,s:100,v:75}),new b({h:150,s:100,v:50}),new b({h:180,s:0,v:50}),new b({h:180,s:33,v:100}),new b({h:180,s:66,v:100}),new b({h:180,s:100,v:100}),new b({h:180,s:100,v:75}),new b({h:180,s:100,v:50}),new b({h:180,s:0,v:40}),new b({h:210,s:33,v:100}),new b({h:210,s:66,v:100}),new b({h:210,s:100,v:100}),new b({h:210,
s:100,v:75}),new b({h:210,s:100,v:50}),new b({h:180,s:0,v:30}),new b({h:240,s:33,v:100}),new b({h:240,s:66,v:100}),new b({h:240,s:100,v:100}),new b({h:240,s:100,v:75}),new b({h:240,s:100,v:50}),new b({h:180,s:0,v:20}),new b({h:270,s:33,v:100}),new b({h:270,s:66,v:100}),new b({h:270,s:100,v:100}),new b({h:270,s:100,v:75}),new b({h:270,s:100,v:50}),new b({h:180,s:0,v:10}),new b({h:300,s:33,v:100}),new b({h:300,s:66,v:100}),new b({h:300,s:100,v:100}),new b({h:300,s:100,v:75}),new b({h:300,s:100,v:50}),
new b({h:180,s:0,v:0}),new b({h:330,s:33,v:100}),new b({h:330,s:66,v:100}),new b({h:330,s:100,v:100}),new b({h:330,s:100,v:75}),new b({h:330,s:100,v:50}),new b]},images:{clientPath:UTIL.getDirectoryByScriptFileName("colorPicker.js")+"/img/",colorMap:{width:256,height:256,arrow:{file:"mappoint.gif",width:15,height:15}},colorBar:{width:20,height:256,arrow:{file:"rangearrows.gif",width:20,height:7}},picker:{file:"picker.gif",width:25,height:24}},localization:{text:{title:"Drag Markers To Pick A Color",
newColor:"new",currentColor:"current",ok:"OK",cancel:"Cancel"},tooltips:{colors:{newColor:"New Color - Press &ldquo;OK&rdquo; To Commit",currentColor:"Click To Revert To Original Color"},buttons:{ok:"Commit To This Color Selection",cancel:"Cancel And Revert To Original Color"},hue:{radio:"Set To &ldquo;Hue&rdquo; Color Mode",textbox:"Enter A &ldquo;Hue&rdquo; Value (0-360&deg;)"},saturation:{radio:"Set To &ldquo;Saturation&rdquo; Color Mode",textbox:"Enter A &ldquo;Saturation&rdquo; Value (0-100%)"},
value:{radio:"Set To &ldquo;Value&rdquo; Color Mode",textbox:"Enter A &ldquo;Value&rdquo; Value (0-100%)"},red:{radio:"Set To &ldquo;Red&rdquo; Color Mode",textbox:"Enter A &ldquo;Red&rdquo; Value (0-255)"},green:{radio:"Set To &ldquo;Green&rdquo; Color Mode",textbox:"Enter A &ldquo;Green&rdquo; Value (0-255)"},blue:{radio:"Set To &ldquo;Blue&rdquo; Color Mode",textbox:"Enter A &ldquo;Blue&rdquo; Value (0-255)"},alpha:{radio:"Set To &ldquo;Alpha&rdquo; Color Mode",textbox:"Enter A &ldquo;Alpha&rdquo; Value (0-100)"},
hex:{textbox:"Enter A &ldquo;Hex&rdquo; Color Value (#000000-#ffffff)",alpha:"Enter A &ldquo;Alpha&rdquo; Value (#00-#ff)"}}}}})(jQuery,"1.1.6");
