(function(A){function B(C){this.selectorText=C;
this.tlR=this.trR=this.blR=this.brR=0;
this.tlu=this.tru=this.blu=this.bru="";
this.antiAlias=true
}B.prototype.setcorner=function(D,E,C,F){if(!D){this.tlR=this.trR=this.blR=this.brR=parseInt(C);
this.tlu=this.tru=this.blu=this.bru=F
}else{propname=D.charAt(0)+E.charAt(0);
this[propname+"R"]=parseInt(C);
this[propname+"u"]=F
}};
B.prototype.get=function(F){if(/^(t|b)(l|r)(R|u)$/.test(F)){return this[F]
}if(/^(t|b)(l|r)Ru$/.test(F)){var E=F.charAt(0)+F.charAt(1);
return this[E+"R"]+this[E+"u"]
}if(/^(t|b)Ru?$/.test(F)){var D=F.charAt(0);
D+=this[D+"lR"]>this[D+"rR"]?"l":"r";
var C=this[D+"R"];
if(F.length===3&&F.charAt(2)==="u"){C+=this[D="u"]
}return C
}throw new Error("Don't recognize property "+F)
};
B.prototype.radiusdiff=function(C){if(C!=="t"&&C!=="b"){throw new Error("Param must be 't' or 'b'")
}return Math.abs(this[C+"lR"]-this[C+"rR"])
};
B.prototype.setfrom=function(C){this.tlu=this.tru=this.blu=this.bru="px";
if("tl" in C){this.tlR=C.tl.radius
}if("tr" in C){this.trR=C.tr.radius
}if("bl" in C){this.blR=C.bl.radius
}if("br" in C){this.brR=C.br.radius
}if("antiAlias" in C){this.antiAlias=C.antiAlias
}};
B.prototype.cloneOn=function(I){var G=["tl","tr","bl","br"];
var J=0;
var E,C;
for(E in G){if(!isNaN(E)){C=this[G[E]+"u"];
if(C!==""&&C!=="px"){J=new B;
break
}}}if(!J){J=this
}else{var D,F,H=curvyBrowser.get_style(I,"left");
for(E in G){if(!isNaN(E)){D=G[E];
C=this[D+"u"];
F=this[D+"R"];
if(C!=="px"){var H=I.style.left;
I.style.left=F+C;
F=I.style.pixelLeft;
I.style.left=H
}J[D+"R"]=F;
J[D+"u"]="px"
}}I.style.left=H
}return J
};
B.prototype.radiusSum=function(C){if(C!=="t"&&C!=="b"){throw new Error("Param must be 't' or 'b'")
}return this[C+"lR"]+this[C+"rR"]
};
B.prototype.radiusCount=function(C){var D=0;
if(this[C+"lR"]){++D
}if(this[C+"rR"]){++D
}return D
};
B.prototype.cornerNames=function(){var C=[];
if(this.tlR){C.push("tl")
}if(this.trR){C.push("tr")
}if(this.blR){C.push("bl")
}if(this.brR){C.push("br")
}return C
};
if(typeof redrawList==="undefined"){redrawList=new Array
}A.fn.corner=function(D){var J=false;
var H,F,C;
try{H=(document.body.style.WebkitBorderRadius!==undefined)
}catch(G){}try{F=(document.body.style.MozBorderRadius!==undefined)
}catch(G){}try{C=(document.body.style.BorderRadius!==undefined)
}catch(G){}if(H||F||C){J=true
}if(D instanceof B){E=D
}else{var D=jQuery.extend({tl:{radius:8},tr:{radius:8},bl:{radius:8},br:{radius:8},antiAlias:true},D);
var E=new B(this);
E.setfrom(D)
}function I(){this.box=arguments[1];
this.settings=arguments[0];
var o=A(this.box);
var h;
this.masterCorners=new Array();
this.topContainer=this.bottomContainer=this.shell=h=null;
var d=o.innerWidth();
if(o.is("table")){throw new Error("You cannot apply corners to "+this.box.tagName+" elements.","Error")
}if(o.css("display")==="inline"){o.css("display","inline-block")
}if(!d){this.applyCorners=function(){};
return 
}if(arguments[0] instanceof B){this.spec=arguments[0].cloneOn(this.box)
}else{this.spec=new B("");
this.spec.setfrom(this.settings)
}var N=o.css("borderTopWidth")?o.css("borderTopWidth"):0;
var q=o.css("borderBottomWidth")?o.css("borderBottomWidth"):0;
var k=o.css("borderLeftWidth")?o.css("borderLeftWidth"):0;
var f=o.css("borderRightWidth")?o.css("borderRightWidth"):0;
var L=o.css("borderTopColor");
var K=o.css("borderBottomColor");
var r=o.css("borderLeftColor");
var m=o.css("borderRightColor");
var s=o.css("borderTopStyle");
var V=o.css("borderBottomStyle");
var T=o.css("borderLeftStyle");
var O=o.css("borderRightStyle");
var M=o.css("backgroundColor");
var b=o.css("backgroundImage");
var l=o.css("backgroundRepeat");
var Z,Y;
Z=o.css("backgroundPositionX")?o.css("backgroundPositionX"):0;
Y=o.css("backgroundPositionY")?o.css("backgroundPositionY"):0;
var R=o.css("position");
var v=o.css("paddingTop");
var p=o.css("paddingBottom");
var a=o.css("paddingLeft");
var n=o.css("paddingRight");
var U=o.css("border");
var c=jQuery.browser.version>7&&A.browser.msie?o.css("filter"):null;
var Q=this.spec.get("tR");
var W=this.spec.get("bR");
var X=function(t){if(typeof t==="number"){return t
}if(typeof t!=="string"){throw new Error("unexpected styleToNPx type "+typeof t)
}var e=/^[-\d.]([a-z]+)$/.exec(t);
if(e&&e[1]!="px"){throw new Error("Unexpected unit "+e[1])
}if(isNaN(t=parseInt(t))){t=0
}return t
};
var g=function(e){return e<=0?"0":e+"px"
};
try{this.borderWidth=X(N);
this.borderWidthB=X(q);
this.borderWidthL=X(k);
this.borderWidthR=X(f);
this.boxColour=I.format_colour(M);
this.topPadding=X(v);
this.bottomPadding=X(p);
this.leftPadding=X(a);
this.rightPadding=X(n);
this.boxWidth=d;
this.boxHeight=o.innerHeight();
this.borderColour=I.format_colour(L);
this.borderColourB=I.format_colour(K);
this.borderColourL=I.format_colour(r);
this.borderColourR=I.format_colour(m);
this.borderString=this.borderWidth+"px "+s+" "+this.borderColour;
this.borderStringB=this.borderWidthB+"px "+V+" "+this.borderColourB;
this.borderStringL=this.borderWidthL+"px "+T+" "+this.borderColourL;
this.borderStringR=this.borderWidthR+"px "+O+" "+this.borderColourR;
this.backgroundImage=(b!="none"&&b!="initial")?b:"";
this.backgroundRepeat=l
}catch(u){}var j=this.boxHeight;
var P=d;
if(A.browser.opera){Z=X(Z);
Y=X(Y);
if(Z){var i=P+this.borderWidthL+this.borderWidthR;
if(Z>i){Z=i
}Z=(i/Z*100)+"%"
}if(Y){var i=j+this.borderWidth+this.borderWidthB;
if(Y>i){Y=i
}Y=(i/Y*100)+"%"
}}this.contentContainer=document.createElement("div");
if(c){this.contentContainer.style.filter=c
}while(this.box.firstChild){this.contentContainer.appendChild(this.box.removeChild(this.box.firstChild))
}if(R!="absolute"){o.css("position","relative")
}this.box.style.padding="0";
this.box.style.border=this.box.style.backgroundImage="none";
this.box.style.backgroundColor="transparent";
this.box.style.width=(P+this.borderWidthL+this.borderWidthR)+"px";
this.box.style.height=(j+this.borderWidth+this.borderWidthB)+"px";
var S=document.createElement("div");
A(S).css({width:P+"px",padding:"0",position:"absolute",height:g(j+this.borderWidth+this.borderWidthB-Q-W),top:Q+"px",left:"0",backgroundColor:M,backgroundImage:this.backgroundImage,backgroundRepeat:this.backgroundRepeat,direction:"ltr"});
if(c){A(S).css("filter","filter")
}if(this.borderWidthL){A(S).css("borderLeft",this.borderStringL)
}if(this.borderWidth&&!Q){A(S).css("borderTop",this.borderString)
}if(this.borderWidthR){A(S).css("borderRight",this.borderStringR)
}if(this.borderWidthB&&!W){A(S).css("borderBottom",this.borderStringB)
}this.shell=this.box.appendChild(S);
d=A(this.shell).css("width");
if(d===""||d==="auto"||d.indexOf("%")!==-1){throw Error("Shell width is "+d)
}this.boxWidth=(d!=""&&d!="auto"&&d.indexOf("%")==-1)?parseInt(d):A(this.shell).width();
this.applyCorners=function(){this.backgroundPosX=this.backgroundPosY=0;
if(this.backgroundObject){var AL=function(Ae,t,Ad){if(Ae===0){return 0
}var Ac;
if(Ae==="right"||Ae==="bottom"){return Ad-t
}if(Ae==="center"){return(Ad-t)/2
}if(Ae.indexOf("%")>0){return(Ad-t)/(100/parseInt(Ae))
}return X(Ae)
};
this.backgroundPosX=AL(Z,this.backgroundObject.width,P);
this.backgroundPosY=AL(Y,this.backgroundObject.height,j)
}else{if(this.backgroundImage){this.backgroundPosX=X(Z);
this.backgroundPosY=X(Y)
}}if(Q){AK=document.createElement("div");
A(AK).css({width:this.boxWidth+"px",fontSize:"1px",overflow:"hidden",position:"absolute",paddingLeft:this.borderWidth+"px",paddingRight:this.borderWidth+"px",height:Q+"px",top:-Q+"px",left:-this.borderWidthL+"px"});
this.topContainer=this.shell.appendChild(AK)
}if(W){var AK=document.createElement("div");
A(AK).css({width:this.boxWidth+"px",fontSize:"1px",overflow:"hidden",position:"absolute",paddingLeft:this.borderWidthB+"px",paddingRight:this.borderWidthB+"px",height:W+"px",bottom:-W+"px",left:-this.borderWidthL+"px"});
this.bottomContainer=this.shell.appendChild(AK)
}var AU=this.spec.cornerNames();
for(var AY in AU){if(!isNaN(AY)){var AQ=AU[AY];
var AR=this.spec[AQ+"R"];
var AS,AV,AA,AT;
if(AQ=="tr"||AQ=="tl"){AS=this.borderWidth;
AV=this.borderColour;
AT=this.borderWidth
}else{AS=this.borderWidthB;
AV=this.borderColourB;
AT=this.borderWidthB
}AA=AR-AT;
var AJ=document.createElement("div");
A(AJ).css({position:"absolute","font-size":"1px",overflow:"hidden"}).height(this.spec.get(AQ+"Ru")).width(this.spec.get(AQ+"Ru"));
var AH,AG,AF;
var AD=c?parseInt(/alpha\(opacity.(\d+)\)/.exec(c)[1]):100;
for(AH=0;
AH<AR;
++AH){var AC=(AH+1>=AA)?-1:Math.floor(Math.sqrt(Math.pow(AA,2)-Math.pow(AH+1,2)))-1;
if(AA!=AR){var y=(AH>=AA)?-1:Math.ceil(Math.sqrt(Math.pow(AA,2)-Math.pow(AH,2)));
var w=(AH+1>=AR)?-1:Math.floor(Math.sqrt(Math.pow(AR,2)-Math.pow((AH+1),2)))-1
}var e=(AH>=AR)?-1:Math.ceil(Math.sqrt(Math.pow(AR,2)-Math.pow(AH,2)));
if(AC>-1){this.drawPixel(AH,0,this.boxColour,AD,(AC+1),AJ,true,AR)
}if(AA!=AR){if(this.spec.antiAlias){for(AG=AC+1;
AG<y;
++AG){if(this.backgroundImage!=""){var x=I.pixelFraction(AH,AG,AA)*100;
this.drawPixel(AH,AG,AV,AD,1,AJ,x>=30,AR)
}else{if(this.boxColour!=="transparent"){var AP=I.BlendColour(this.boxColour,AV,I.pixelFraction(AH,AG,AA));
this.drawPixel(AH,AG,AP,AD,1,AJ,false,AR)
}else{this.drawPixel(AH,AG,AV,AD>>1,1,AJ,false,AR)
}}}if(w>=y){if(y==-1){y=0
}this.drawPixel(AH,y,AV,AD,(w-y+1),AJ,false,0)
}AF=AV;
AG=w
}else{if(w>AC){this.drawPixel(AH,(AC+1),AV,AD,(w-AC),AJ,false,0)
}}}else{AF=this.boxColour;
AG=AC
}if(this.spec.antiAlias&&this.boxColour!=="transparent"){while(++AG<e){this.drawPixel(AH,AG,AF,(I.pixelFraction(AH,AG,AR)*AD),1,AJ,AT<=0,AR)
}}}for(var AN=0,AX=AJ.childNodes.length;
AN<AX;
++AN){var AI=AJ.childNodes[AN];
var AW=parseInt(A(AI).css("top"));
var Aa=parseInt(A(AI).css("left"));
var Ab=parseInt(A(AI).css("height"));
if(AQ=="tl"||AQ=="bl"){A(AI).css("left",(AR-Aa-1)+"px")
}if(AQ=="tr"||AQ=="tl"){A(AI).css("top",(AR-Ab-AW)+"px")
}A(AI).css("backgroundRepeat",this.backgroundRepeat);
if(this.backgroundImage){switch(AQ){case"tr":A(AI).css("backgroundPosition",(this.backgroundPosX-this.borderWidthL+AR-P-Aa)+"px "+(this.backgroundPosY+Ab+AW+this.borderWidth-AR)+"px");
break;
case"tl":A(AI).css("backgroundPosition",(this.backgroundPosX-AR+Aa+1+this.borderWidthL)+"px "+(this.backgroundPosY-AR+Ab+AW+this.borderWidth)+"px");
break;
case"bl":A(AI).css("backgroundPosition",(this.backgroundPosX-AR+Aa+1+this.borderWidthL)+"px "+(this.backgroundPosY-j-this.borderWidth+(!jQuery.support.boxModel?AW:-AW)+AR)+"px");
break;
case"br":if(!jQuery.support.boxModel){A(AI).css("backgroundPosition",(this.backgroundPosX-this.borderWidthL-P+AR-Aa)+"px "+(this.backgroundPosY-j-this.borderWidth+AW+AR)+"px")
}else{A(AI).css("backgroundPosition",(this.backgroundPosX-this.borderWidthL-P+AR-Aa)+"px "+(this.backgroundPosY-j-this.borderWidth+AR-AW)+"px")
}}}}switch(AQ){case"tl":A(AJ).css("top",AJ.style.left="0");
this.topContainer.appendChild(AJ);
break;
case"tr":A(AJ).css("top",AJ.style.right="0");
this.topContainer.appendChild(AJ);
break;
case"bl":A(AJ).css("bottom",AJ.style.left="0");
this.bottomContainer.appendChild(AJ);
break;
case"br":A(AJ).css("bottom",AJ.style.right="0");
this.bottomContainer.appendChild(AJ)
}}}var AM={t:this.spec.radiusdiff("t"),b:this.spec.radiusdiff("b")};
for(z in AM){if(typeof z==="function"){continue
}if(!this.spec.get(z+"R")){continue
}if(AM[z]){var AZ=(this.spec[z+"lR"]<this.spec[z+"rR"])?z+"l":z+"r";
var AB=document.createElement("div");
A(AB).css({height:AM[z]+"px",width:this.spec.get(AZ+"Ru"),position:"absolute",fontSize:"1px",overflow:"hidden",backgroundColor:this.boxColour,backgroundImage:this.backgroundImage,backgroundRepeat:this.backgroundRepeat});
if(c){A(AB).css("filter","filter")
}switch(AZ){case"tl":A(AB).css({bottom:"",left:"0",borderLeft:this.borderStringL,backgroundPosition:this.backgroundPosX+"px "+(this.borderWidth+this.backgroundPosY-this.spec.tlR)+"px"});
this.topContainer.appendChild(AB);
break;
case"tr":A(AB).css({bottom:"",right:"0",borderRight:this.borderStringR,backgroundPosition:(this.backgroundPosX-this.boxWidth+this.spec.trR)+"px "+(this.borderWidth+this.backgroundPosY-this.spec.trR)+"px"});
this.topContainer.appendChild(AB);
break;
case"bl":A(AB).css({top:"",left:"0",borderLeft:this.borderStringL,backgroundPosition:this.backgroundPosX+"px "+(this.backgroundPosY-this.borderWidth-this.boxHeight+AM[z]+this.spec.blR)+"px"});
this.bottomContainer.appendChild(AB);
break;
case"br":A(AB).css({top:"",right:"0",borderRight:this.borderStringR,backgroundPosition:(this.borderWidthL+this.backgroundPosX-this.boxWidth+this.spec.brR)+"px "+(this.backgroundPosY-this.borderWidth-this.boxHeight+AM[z]+this.spec.brR)+"px"});
this.bottomContainer.appendChild(AB)
}}var AE=document.createElement("div");
if(c){A(AE).css("filter","filter")
}A(AE).css({position:"relative",fontSize:"1px",overflow:"hidden",width:this.fillerWidth(z),backgroundColor:this.boxColour,backgroundImage:this.backgroundImage,backgroundRepeat:this.backgroundRepeat});
switch(z){case"t":if(this.topContainer){if(!jQuery.support.boxModel){A(AE).css("height",100+Q+"px")
}else{A(AE).css("height",100+Q-this.borderWidth+"px")
}A(AE).css("marginLeft",this.spec.tlR?(this.spec.tlR-this.borderWidthL)+"px":"0");
A(AE).css("borderTop",this.borderString);
if(this.backgroundImage){var AO=this.spec.tlR?(this.borderWidthL+this.backgroundPosX-this.spec.tlR)+"px ":this.backgroundPosX+"px ";
A(AE).css("backgroundPosition",AO+this.backgroundPosY+"px");
A(this.shell).css("backgroundPosition",this.backgroundPosX+"px "+(this.backgroundPosY-Q+this.borderWidthL)+"px")
}this.topContainer.appendChild(AE)
}break;
case"b":if(this.bottomContainer){if(!jQuery.support.boxModel){A(AE).css("height",W+"px")
}else{A(AE).css("height",W-this.borderWidthB+"px")
}A(AE).css("marginLeft",this.spec.blR?(this.spec.blR-this.borderWidthL)+"px":"0");
A(AE).css("borderBottom",this.borderStringB);
if(this.backgroundImage){var AO=this.spec.blR?(this.backgroundPosX+this.borderWidthL-this.spec.blR)+"px ":this.backgroundPosX+"px ";
A(AE).css("backgroundPosition",AO+(this.backgroundPosY-j-this.borderWidth+W)+"px")
}this.bottomContainer.appendChild(AE)
}}}z=P;
if(jQuery.support.boxModel){z-=this.leftPadding+this.rightPadding
}A(this.contentContainer).css({position:"absolute",left:this.borderWidthL+"px",paddingTop:this.topPadding+"px",top:this.borderWidth+"px",paddingLeft:this.leftPadding+"px",paddingRight:this.rightPadding+"px",width:z+"px",textAlign:o.css("textAlign")}).addClass("autoPadDiv");
o.css("textAlign","left").addClass("hasCorners");
this.box.appendChild(this.contentContainer);
if(h){A(h).css("display",boxDispSave)
}};
if(this.backgroundImage){Z=this.backgroundCheck(Z);
Y=this.backgroundCheck(Y);
if(this.backgroundObject){this.backgroundObject.holdingElement=this;
this.dispatch=this.applyCorners;
this.applyCorners=function(){if(this.backgroundObject.complete){this.dispatch()
}else{this.backgroundObject.onload=new Function("$(this.holdingElement).dispatch();")
}}
}}}I.prototype.backgroundCheck=function(L){if(L==="top"||L==="left"||parseInt(L)===0){return 0
}if(!(/^[-\d.]+px$/.test(L))&&!this.backgroundObject){this.backgroundObject=new Image;
var K=function(N){var M=/url\("?([^'"]+)"?\)/.exec(N);
return(M?M[1]:N)
};
this.backgroundObject.src=K(this.backgroundImage)
}return L
};
I.prototype.drawPixel=function(T,Q,K,P,R,S,M,O){var L=document.createElement("div");
A(L).css({height:R+"px",width:"1px",position:"absolute","font-size":"1px",overflow:"hidden",top:Q+"px",left:T+"px","background-color":K});
var N=this.spec.get("tR");
if(M&&this.backgroundImage!=""){A(L).css({"background-position":"-"+(this.boxWidth-(O-T)+this.borderWidth)+"px -"+((this.boxHeight+N+Q)-this.borderWidth)+"px","background-image":this.backgroundImage})
}if(P!=100){A(L).css({opacity:(P/100)})
}S.appendChild(L)
};
I.prototype.fillerWidth=function(L){var K,M;
K=!jQuery.support.boxModel?0:this.spec.radiusCount(L)*this.borderWidthL;
if((M=this.boxWidth-this.spec.radiusSum(L)+K)<0){throw Error("Radius exceeds box width")
}return M+"px"
};
I.getComputedColour=function(O){var P=document.createElement("DIV");
P.style.backgroundColor=O;
document.body.appendChild(P);
if(window.getComputedStyle){var N=document.defaultView.getComputedStyle(P,null).getPropertyValue("background-color");
P.parentNode.removeChild(P);
if(N.substr(0,3)==="rgb"){N=I.rgb2Hex(N)
}return N
}else{var K=document.body.createTextRange();
K.moveToElementText(P);
K.execCommand("ForeColor",false,O);
var L=K.queryCommandValue("ForeColor");
var M="rgb("+(L&255)+", "+((L&65280)>>8)+", "+((L&16711680)>>16)+")";
P.parentNode.removeChild(P);
K=null;
return I.rgb2Hex(M)
}};
I.BlendColour=function(V,T,Q){if(V==="transparent"||T==="transparent"){throw Error("Cannot blend with transparent")
}if(V.charAt(0)!=="#"){V=I.format_colour(V)
}if(T.charAt(0)!=="#"){T=I.format_colour(T)
}var N=parseInt(V.substr(1,2),16);
var U=parseInt(V.substr(3,2),16);
var P=parseInt(V.substr(5,2),16);
var M=parseInt(T.substr(1,2),16);
var S=parseInt(T.substr(3,2),16);
var O=parseInt(T.substr(5,2),16);
if(Q>1||Q<0){Q=1
}var R=Math.round((N*Q)+(M*(1-Q)));
if(R>255){R=255
}if(R<0){R=0
}var L=Math.round((U*Q)+(S*(1-Q)));
if(L>255){L=255
}if(L<0){L=0
}var K=Math.round((P*Q)+(O*(1-Q)));
if(K>255){K=255
}if(K<0){K=0
}return"#"+I.IntToHex(R)+I.IntToHex(L)+I.IntToHex(K)
};
I.IntToHex=function(L){var K=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];
return K[L>>>4]+""+K[L&15]
};
I.pixelFraction=function(R,Q,K){var T;
var O=K*K;
var L=new Array(2);
var P=new Array(2);
var S=0;
var M="";
var N=Math.sqrt(O-Math.pow(R,2));
if(N>=Q&&N<(Q+1)){M="Left";
L[S]=0;
P[S]=N-Q;
++S
}N=Math.sqrt(O-Math.pow(Q+1,2));
if(N>=R&&N<(R+1)){M+="Top";
L[S]=N-R;
P[S]=1;
++S
}N=Math.sqrt(O-Math.pow(R+1,2));
if(N>=Q&&N<(Q+1)){M+="Right";
L[S]=1;
P[S]=N-Q;
++S
}N=Math.sqrt(O-Math.pow(Q,2));
if(N>=R&&N<(R+1)){M+="Bottom";
L[S]=N-R;
P[S]=0
}switch(M){case"LeftRight":T=Math.min(P[0],P[1])+((Math.max(P[0],P[1])-Math.min(P[0],P[1]))/2);
break;
case"TopRight":T=1-(((1-L[0])*(1-P[1]))/2);
break;
case"TopBottom":T=Math.min(L[0],L[1])+((Math.max(L[0],L[1])-Math.min(L[0],L[1]))/2);
break;
case"LeftBottom":T=P[0]*L[1]/2;
break;
default:T=1
}return T
};
I.rgb2Hex=function(L){try{var M=I.rgb2Array(L);
var Q=parseInt(M[0]);
var O=parseInt(M[1]);
var K=parseInt(M[2]);
var N="#"+I.IntToHex(Q)+I.IntToHex(O)+I.IntToHex(K)
}catch(P){alert("There was an error converting the RGB value to Hexadecimal in function rgb2Hex")
}return N
};
I.rgb2Array=function(K){var L=K.substring(4,K.indexOf(")"));
return L.split(", ")
};
I.format_colour=function(K){if(K!=""&&K!="transparent"){if(K.substr(0,3)==="rgb"){K=I.rgb2Hex(K)
}else{if(K.charAt(0)!=="#"){K=getComputedColour(K)
}else{if(K.length===4){K="#"+K.charAt(1)+K.charAt(1)+K.charAt(2)+K.charAt(2)+K.charAt(3)+K.charAt(3)
}}}}return K
};
return this.each(function(){if(!A(this).is(".hasCorners")){if(J){if(E.get("tlR")){A(this).css({"border-top-left-radius":E.get("tlR")+"px","-moz-border-radius-topleft":E.get("tlR")+"px","-webkit-border-top-left-radius":E.get("tlR")+"px"})
}if(E.get("trR")){A(this).css({"border-top-right-radius":E.get("trR")+"px","-moz-border-radius-topright":E.get("trR")+"px","-webkit-border-top-right-radius":E.get("trR")+"px"})
}if(E.get("blR")){A(this).css({"border-bottom-left-radius":E.get("blR")+"px","-moz-border-radius-bottomleft":E.get("blR")+"px","-webkit-border-bottom-left-radius":E.get("blR")+"px"})
}if(E.get("brR")){A(this).css({"border-bottom-right-radius":E.get("brR")+"px","-moz-border-radius-bottomright":E.get("brR")+"px","-webkit-border-bottom-right-radius":E.get("brR")+"px"})
}}else{if(!A(this).is(".drawn")){A(this).addClass("drawn");
thestyles=A(this).attr("style");
if(thestyles=="undefined"){thestyles=""
}redrawList.push({node:this,spec:E,style:thestyles,copy:A(this).clone(true)})
}var K=new I(E,this);
K.applyCorners()
}}})
};
A.fn.removeCorners=function(){return this.each(function(C,D){thisdiv=D;
A.each(redrawList,function(E,F){if(F.node==thisdiv&&A(".autoPadDiv",thisdiv).size()>0){A(thisdiv).html(A(thisdiv).children(".autoPadDiv:first").contents());
style=F.style=="undefined"?F.style:"";
A(thisdiv).removeClass("hasCorners").attr("style",style);
return false
}})
})
};
A.fn.redrawCorners=function(){return this.each(function(C,D){thisdiv=D;
A.each(redrawList,function(E,F){if(F.node==thisdiv){A(thisdiv).corner(F.spec);
return false
}})
})
};
A.fn.dispatch=function(){return this.each(function(C,D){obj=D;
if("dispatch" in obj){obj.dispatch()
}else{throw Error("No dispatch function")
}})
};
A(function(){if(A.browser.msie){try{document.execCommand("BackgroundImageCache",false,true)
}catch(M){}function N(Q){if(!parseInt(Q)){return"px"
}var R=/^[\d.]+(\w+)$/.exec(Q);
return R[1]
}var P,I,G;
function C(X){var S=X.style;
if(jQuery.browser.version>6){var Q=S["-moz-border-radius"]||0;
var R=S["-moz-border-radius-topright"]||0;
var V=S["-moz-border-radius-topleft"]||0;
var U=S["-moz-border-radius-bottomright"]||0;
var W=S["-moz-border-radius-bottomleft"]||0
}else{var Q=S["moz-border-radius"]||0;
var R=S["moz-border-radius-topright"]||0;
var V=S["moz-border-radius-topleft"]||0;
var U=S["moz-border-radius-bottomright"]||0;
var W=S["moz-border-radius-bottomleft"]||0
}if(Q){var Y=Q.split("/");
Y=Y[0].split(/\s+/);
if(Y[Y.length-1]===""){Y.pop()
}switch(Y.length){case 3:V=Y[0];
R=W=Y[1];
U=Y[2];
Q=false;
break;
case 2:V=U=Y[0];
R=W=Y[1];
Q=false;
case 1:break;
case 4:V=Y[0];
R=Y[1];
U=Y[2];
W=Y[3];
Q=false;
break;
default:alert("Illegal corners specification: "+Q)
}}if(Q||V||R||U||W){var T=new B(X.selectorText);
if(Q){T.setcorner(null,null,parseInt(Q),N(Q))
}else{if(R){T.setcorner("t","r",parseInt(R),N(R))
}if(V){T.setcorner("t","l",parseInt(V),N(V))
}if(W){T.setcorner("b","l",parseInt(W),N(W))
}if(U){T.setcorner("b","r",parseInt(U),N(U))
}}A(X.selectorText).corner(T)
}}for(P=0;
P<document.styleSheets.length;
++P){try{if(document.styleSheets[P].imports){for(I=0;
I<document.styleSheets[P].imports.length;
++I){for(G=0;
G<document.styleSheets[P].imports[I].rules.length;
++G){C(document.styleSheets[P].imports[I].rules[G])
}}}for(I=0;
I<document.styleSheets[P].rules.length;
++I){C(document.styleSheets[P].rules[I])
}}catch(M){}}}else{if(A.browser.opera){try{checkStandard=(document.body.style.BorderRadius!==undefined)
}catch(F){}if(!checkStandard){function D(Q){return/border-((top|bottom)-(left|right)-)?radius/.test(document.styleSheets.item(Q).ownerNode.text)
}rules=[];
for(P=0;
P<document.styleSheets.length;
++P){if(D(P)){var H=document.styleSheets.item(sheetnumber).ownerNode.text;
H=H.replace(/\/\*(\n|\r|.)*?\*\//g,"");
var K=new RegExp("^\\s*([\\w.#][-\\w.#, ]+)[\\n\\s]*\\{([^}]+border-((top|bottom)-(left|right)-)?radius[^}]*)\\}","mg");
var J;
while((J=K.exec(H))!==null){var E=new RegExp("(..)border-((top|bottom)-(left|right)-)?radius:\\s*([\\d.]+)(in|em|px|ex|pt)","g");
var L,O=new B(J[1]);
while((L=E.exec(J[2]))!==null){if(L[1]!=="z-"){O.setcorner(L[3],L[4],L[5],L[6])
}rules.push(O)
}}}}for(I in rules){if(!isNaN(I)){A(rules[I].selectorText).corner(rules[I])
}}}}}})
})(jQuery);
jQuery(function(A){jQuery(".revoke").corner({tl:{radius:10},tr:{radius:10},bl:{radius:10},br:{radius:10}});
jQuery(".appBox").corner({tl:{radius:4},tr:{radius:4},bl:{radius:4},br:{radius:4}});
jQuery("#appExplanation, #appExplanation p").corner({tl:{radius:4},tr:{radius:4},bl:{radius:4},br:{radius:4}});
jQuery(".api #leftContent p").each(function(){if(jQuery(this).hasClass("nobg")){}else{jQuery(this).corner({tl:{radius:4},tr:{radius:4},bl:{radius:4},br:{radius:4}})
}})
});