/****************************************************************
 *  http://blue-anvil.com                                       *
 *  http://code.google.com/p/jquerycurvycorners/                *
*/
(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(j){var g=["tl","tr","bl","br"];var k=0;var e,c;for(e in g){if(!isNaN(e)){c=this[g[e]+"u"];if(c!==""&&c!=="px"){k=new b;break}}}if(!k){k=this}else{var d,f,h=curvyBrowser.get_style(j,"left");for(e in g){if(!isNaN(e)){d=g[e];c=this[d+"u"];f=this[d+"R"];if(c!=="px"){var h=j.style.left;j.style.left=f+c;f=j.style.pixelLeft;j.style.left=h}k[d+"R"]=f;k[d+"u"]="px"}}j.style.left=h}return k};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 P=a(this.box);var I;this.masterCorners=new Array();this.topContainer=this.bottomContainer=this.shell=I=null;var F=P.innerWidth();if(P.is("table")){throw new Error("You cannot apply corners to "+this.box.tagName+" elements.","Error")}if(P.css("display")==="inline"){P.css("display","inline-block")}if(!F){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=P.css("borderTopWidth")?P.css("borderTopWidth"):0;var R=P.css("borderBottomWidth")?P.css("borderBottomWidth"):0;var L=P.css("borderLeftWidth")?P.css("borderLeftWidth"):0;var G=P.css("borderRightWidth")?P.css("borderRightWidth"):0;var l=P.css("borderTopColor");var k=P.css("borderBottomColor");var S=P.css("borderLeftColor");var N=P.css("borderRightColor");var T=P.css("borderTopStyle");var w=P.css("borderBottomStyle");var u=P.css("borderLeftStyle");var o=P.css("borderRightStyle");var m=P.css("backgroundColor");var D=P.css("backgroundImage");var M=P.css("backgroundRepeat");var B,A;B=P.css("backgroundPositionX")?P.css("backgroundPositionX"):0;A=P.css("backgroundPositionY")?P.css("backgroundPositionY"):0;var r=P.css("position");var V=P.css("paddingTop");var Q=P.css("paddingBottom");var C=P.css("paddingLeft");var O=P.css("paddingRight");var v=P.css("border");var E=jQuery.browser.version>7&&a.browser.msie?P.css("filter"):null;var q=this.spec.get("tR");var x=this.spec.get("bR");var y=function(W){if(typeof W==="number"){return W}if(typeof W!=="string"){throw new Error("unexpected styleToNPx type "+typeof W)}var t=/^[-\d.]([a-z]+)$/.exec(W);if(t&&t[1]!="px"){throw new Error("Unexpected unit "+t[1])}if(isNaN(W=parseInt(W))){W=0}return W};var H=function(t){return t<=0?"0":t+"px"};try{this.borderWidth=y(n);this.borderWidthB=y(R);this.borderWidthL=y(L);this.borderWidthR=y(G);this.boxColour=i.format_colour(m);this.topPadding=y(V);this.bottomPadding=y(Q);this.leftPadding=y(C);this.rightPadding=y(O);this.boxWidth=F;this.boxHeight=P.innerHeight();this.borderColour=i.format_colour(l);this.borderColourB=i.format_colour(k);this.borderColourL=i.format_colour(S);this.borderColourR=i.format_colour(N);this.borderString=this.borderWidth+"px "+T+" "+this.borderColour;this.borderStringB=this.borderWidthB+"px "+w+" "+this.borderColourB;this.borderStringL=this.borderWidthL+"px "+u+" "+this.borderColourL;this.borderStringR=this.borderWidthR+"px "+o+" "+this.borderColourR;this.backgroundImage=(D!="none"&&D!="initial")?D:"";this.backgroundRepeat=M}catch(U){}var K=this.boxHeight;var p=F;if(a.browser.opera){B=y(B);A=y(A);if(B){var J=p+this.borderWidthL+this.borderWidthR;if(B>J){B=J}B=(J/B*100)+"%"}if(A){var J=K+this.borderWidth+this.borderWidthB;if(A>J){A=J}A=(J/A*100)+"%"}}this.contentContainer=document.createElement("div");if(E){this.contentContainer.style.filter=E}while(this.box.firstChild){this.contentContainer.appendChild(this.box.removeChild(this.box.firstChild))}if(r!="absolute"){P.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=(K+this.borderWidth+this.borderWidthB)+"px";var s=document.createElement("div");a(s).css({width:p+"px",padding:"0",position:"absolute",height:H(K+this.borderWidth+this.borderWidthB-q-x),top:q+"px",left:"0",backgroundColor:m,backgroundImage:this.backgroundImage,backgroundRepeat:this.backgroundRepeat,direction:"ltr"});if(E){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&&!x){a(s).css("borderBottom",this.borderStringB)}this.shell=this.box.appendChild(s);F=a(this.shell).css("width");if(F===""||F==="auto"||F.indexOf("%")!==-1){throw Error("Shell width is "+F)}this.boxWidth=(F!=""&&F!="auto"&&F.indexOf("%")==-1)?parseInt(F):a(this.shell).width();this.applyCorners=function(){this.backgroundPosX=this.backgroundPosY=0;if(this.backgroundObject){var al=function(aG,t,aF){if(aG===0){return 0}var aE;if(aG==="right"||aG==="bottom"){return aF-t}if(aG==="center"){return(aF-t)/2}if(aG.indexOf("%")>0){return(aF-t)/(100/parseInt(aG))}return y(aG)};this.backgroundPosX=al(B,this.backgroundObject.width,p);this.backgroundPosY=al(A,this.backgroundObject.height,K)}else{if(this.backgroundImage){this.backgroundPosX=y(B);this.backgroundPosY=y(A)}}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(x){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:x+"px",bottom:-x+"px",left:-this.borderWidthL+"px"});this.bottomContainer=this.shell.appendChild(ak)}var av=this.spec.cornerNames();for(var az in av){if(!isNaN(az)){var aq=av[az];var ar=this.spec[aq+"R"];var at,aw,aa,au;if(aq=="tr"||aq=="tl"){at=this.borderWidth;aw=this.borderColour;au=this.borderWidth}else{at=this.borderWidthB;aw=this.borderColourB;au=this.borderWidthB}aa=ar-au;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=/alpha\(opacity.(\d+)\)/;var ad=aD.test(E)[1]?parseInt(aD.exec(E)[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 Z=(ah>=aa)?-1:Math.ceil(Math.sqrt(Math.pow(aa,2)-Math.pow(ah,2)));var X=(ah+1>=ar)?-1:Math.floor(Math.sqrt(Math.pow(ar,2)-Math.pow((ah+1),2)))-1}var W=(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<Z;++ag){if(this.backgroundImage!=""){var Y=i.pixelFraction(ah,ag,aa)*100;this.drawPixel(ah,ag,aw,ad,1,aj,Y>=30,ar)}else{if(this.boxColour!=="transparent"){var ap=i.BlendColour(this.boxColour,aw,i.pixelFraction(ah,ag,aa));this.drawPixel(ah,ag,ap,ad,1,aj,false,ar)}else{this.drawPixel(ah,ag,aw,ad>>1,1,aj,false,ar)}}}if(X>=Z){if(Z==-1){Z=0}this.drawPixel(ah,Z,aw,ad,(X-Z+1),aj,false,0)}af=aw;ag=X}else{if(X>ac){this.drawPixel(ah,(ac+1),aw,ad,(X-ac),aj,false,0)}}}else{af=this.boxColour;ag=ac}if(this.spec.antiAlias&&this.boxColour!=="transparent"){while(++ag<W){this.drawPixel(ah,ag,af,(i.pixelFraction(ah,ag,ar)*ad),1,aj,au<=0,ar)}}}for(var an=0,ay=aj.childNodes.length;an<ay;++an){var ai=aj.childNodes[an];var ax=parseInt(a(ai).css("top"));var aB=parseInt(a(ai).css("left"));var aC=parseInt(a(ai).css("height"));if(aq=="tl"||aq=="bl"){a(ai).css("left",(ar-aB-1)+"px")}if(aq=="tr"||aq=="tl"){a(ai).css("top",(ar-aC-ax)+"px")}a(ai).css("backgroundRepeat",this.backgroundRepeat);if(this.backgroundImage){switch(aq){case"tr":a(ai).css("backgroundPosition",(this.backgroundPosX-this.borderWidthL+ar-p-aB)+"px "+(this.backgroundPosY+aC+ax+this.borderWidth-ar)+"px");break;case"tl":a(ai).css("backgroundPosition",(this.backgroundPosX-ar+aB+1+this.borderWidthL)+"px "+(this.backgroundPosY-ar+aC+ax+this.borderWidth)+"px");break;case"bl":a(ai).css("backgroundPosition",(this.backgroundPosX-ar+aB+1+this.borderWidthL)+"px "+(this.backgroundPosY-K-this.borderWidth+(!jQuery.support.boxModel?ax:-ax)+ar)+"px");break;case"br":if(!jQuery.support.boxModel){a(ai).css("backgroundPosition",(this.backgroundPosX-this.borderWidthL-p+ar-aB)+"px "+(this.backgroundPosY-K-this.borderWidth+ax+ar)+"px")}else{a(ai).css("backgroundPosition",(this.backgroundPosX-this.borderWidthL-p+ar-aB)+"px "+(this.backgroundPosY-K-this.borderWidth+ar-ax)+"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 aA=(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(aA+"Ru"),position:"absolute",fontSize:"1px",overflow:"hidden",backgroundColor:this.boxColour,backgroundImage:this.backgroundImage,backgroundRepeat:this.backgroundRepeat});if(E){a(ab).css("filter","filter")}switch(aA){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(E){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",x+"px")}else{a(ae).css("height",x-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-K-this.borderWidth+x)+"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:P.css("textAlign")}).addClass("autoPadDiv");P.css("textAlign","left").addClass("hasCorners");this.box.appendChild(this.contentContainer);if(I){a(I).css("display",boxDispSave)}};if(this.backgroundImage){B=this.backgroundCheck(B);A=this.backgroundCheck(A);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(s,q,k){var u;var o=k*k;var l=new Array(2);var p=new Array(2);var t=0;var m="";var n=Math.sqrt(o-Math.pow(s,2));if(n>=q&&n<(q+1)){m="Left";l[t]=0;p[t]=n-q;++t}n=Math.sqrt(o-Math.pow(q+1,2));if(n>=s&&n<(s+1)){m+="Top";l[t]=n-s;p[t]=1;++t}n=Math.sqrt(o-Math.pow(s+1,2));if(n>=q&&n<(q+1)){m+="Right";l[t]=1;p[t]=n-q;++t}n=Math.sqrt(o-Math.pow(q,2));if(n>=s&&n<(s+1)){m+="Bottom";l[t]=n-s;p[t]=0}switch(m){case"LeftRight":u=Math.min(p[0],p[1])+((Math.max(p[0],p[1])-Math.min(p[0],p[1]))/2);break;case"TopRight":u=1-(((1-l[0])*(1-p[1]))/2);break;case"TopBottom":u=Math.min(l[0],l[1])+((Math.max(l[0],l[1])-Math.min(l[0],l[1]))/2);break;case"LeftBottom":u=p[0]*l[1]/2;break;default:u=1}return u};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")}})}})(jQuery);
