function browserdetect(){var a=navigator.userAgent.toLowerCase();this.isIE=a.indexOf("msie")>-1;if(this.isIE){this.ieVer=/msie\s(\d\.\d)/.exec(a)[1];this.quirksMode=!document.compatMode||document.compatMode.indexOf("BackCompat")>-1;this.get_style=function(a,c){if(!(c in a.currentStyle))return"";var b=/^([\d.]+)(\w*)/.exec(a.currentStyle[c]);if(!b)return a.currentStyle[c];if(b[1]==0)return"0";if(b[2]&&b[2]!=="px"){var e=a.style.left,d=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;a.style.left=b[1]+b[2];b[0]=a.style.pixelLeft;a.style.left=e;a.runtimeStyle.left=d}return b[0]};this.supportsCorners=false}else{this.ieVer=this.quirksMode=0;this.get_style=function(b,a){a=a.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();return document.defaultView.getComputedStyle(b,"").getPropertyValue(a)};this.isSafari=a.indexOf("safari")!=-1;this.isWebKit=a.indexOf("webkit")!=-1;this.isOp="opera"in window;if(this.isOp)this.supportsCorners=(this.isOp=window.opera.version())>=10.5;else{if(!this.isWebkit)if(!(this.isMoz=a.indexOf("firefox")!==-1))for(var b=document.childNodes.length;--b>=0;)if("style"in document.childNodes[b]){this.isMoz="MozBorderRadius"in document.childNodes[b];break}this.supportsCorners=this.isWebKit||this.isMoz}}}var curvyBrowser=new browserdetect;if(curvyBrowser.isIE)try{document.execCommand("BackgroundImageCache",false,true)}catch(e){}function curvyCnrSpec(a){this.selectorText=a;this.tlR=this.trR=this.blR=this.brR=0;this.tlu=this.tru=this.blu=this.bru="";this.antiAlias=true}curvyCnrSpec.prototype.setcorner=function(c,d,a,b){if(!c){this.tlR=this.trR=this.blR=this.brR=parseInt(a);this.tlu=this.tru=this.blu=this.bru=b}else{propname=c.charAt(0)+d.charAt(0);this[propname+"R"]=parseInt(a);this[propname+"u"]=b}};curvyCnrSpec.prototype.get=function(a){if(/^(t|b)(l|r)(R|u)$/.test(a))return this[a];if(/^(t|b)(l|r)Ru$/.test(a)){var d=a.charAt(0)+a.charAt(1);return this[d+"R"]+this[d+"u"]}if(/^(t|b)Ru?$/.test(a)){var b=a.charAt(0);b+=this[b+"lR"]>this[b+"rR"]?"l":"r";var c=this[b+"R"];if(a.length===3&&a.charAt(2)==="u")c+=this[b="u"];return c}throw new Error("Don't recognize property "+a);};curvyCnrSpec.prototype.radiusdiff=function(a){if(a!=="t"&&a!=="b")throw new Error("Param must be 't' or 'b'");return Math.abs(this[a+"lR"]-this[a+"rR"])};curvyCnrSpec.prototype.setfrom=function(a){this.tlu=this.tru=this.blu=this.bru="px";if("tl"in a)this.tlR=a.tl.radius;if("tr"in a)this.trR=a.tr.radius;if("bl"in a)this.blR=a.bl.radius;if("br"in a)this.brR=a.br.radius;if("antiAlias"in a)this.antiAlias=a.antiAlias};curvyCnrSpec.prototype.cloneOn=function(c){var g=["tl","tr","bl","br"],a=0,d,b;for(d in g)if(!isNaN(d)){b=this[g[d]+"u"];if(b!==""&&b!=="px"){a=new curvyCnrSpec;break}}if(!a)a=this;else{var e,f,h=curvyBrowser.get_style(c,"left");for(d in g)if(!isNaN(d)){e=g[d];b=this[e+"u"];f=this[e+"R"];if(b!=="px"){var h=c.style.left;c.style.left=f+b;f=c.style.pixelLeft;c.style.left=h}a[e+"R"]=f;a[e+"u"]="px"}c.style.left=h}return a};curvyCnrSpec.prototype.radiusSum=function(a){if(a!=="t"&&a!=="b")throw new Error("Param must be 't' or 'b'");return this[a+"lR"]+this[a+"rR"]};curvyCnrSpec.prototype.radiusCount=function(b){var a=0;if(this[b+"lR"])++a;if(this[b+"rR"])++a;return a};curvyCnrSpec.prototype.cornerNames=function(){var a=[];this.tlR&&a.push("tl");this.trR&&a.push("tr");this.blR&&a.push("bl");this.brR&&a.push("br");return a};function operasheet(e){var c=document.styleSheets.item(e).ownerNode.text;c=c.replace(/\/\*(\n|\r|.)*?\*\//g,"");var g=new RegExp("^\\s*([\\w.#][-\\w.#, ]+)[\\n\\s]*\\{([^}]+border-((top|bottom)-(left|right)-)?radius[^}]*)\\}","mg"),b;this.rules=[];while((b=g.exec(c))!==null){var f=new RegExp("(..)border-((top|bottom)-(left|right)-)?radius:\\s*([\\d.]+)(in|em|px|ex|pt)","g"),a,d=new curvyCnrSpec(b[1]);while((a=f.exec(b[2]))!==null)a[1]!=="z-"&&d.setcorner(a[3],a[4],a[5],a[6]);this.rules.push(d)}}operasheet.contains_border_radius=function(a){return/border-((top|bottom)-(left|right)-)?radius/.test(document.styleSheets.item(a).ownerNode.text)};function curvyCorners(){var b,a,e,c,h;if(typeof arguments[0]!=="object")throw curvyCorners.newError("First parameter of curvyCorners() must be an object.");if(arguments[0]instanceof curvyCnrSpec){c=arguments[0];if(!c.selectorText&&typeof arguments[1]==="string")c.selectorText=arguments[1]}else{if(typeof arguments[1]!=="object"&&typeof arguments[1]!=="string")throw curvyCorners.newError("Second parameter of curvyCorners() must be an object or a class name.");a=arguments[1];if(typeof a!=="string")a="";if(a!==""&&a.charAt(0)!=="."&&"autoPad"in arguments[0])a="."+a;c=new curvyCnrSpec(a);c.setfrom(arguments[0])}if(c.selectorText){h=0;var f=c.selectorText.replace(/\s+$/,"").split(/,\s*/);e=[];for(b=0;b<f.length;++b){if((a=f[b].lastIndexOf("#"))!==-1)f[b]=f[b].substr(a);e=e.concat(curvyCorners.getElementsBySelector(f[b].split(/\s+/)))}}else{h=1;e=arguments}for(b=h,a=e.length;b<a;++b){var d=e[b],g=false;if(!d.className)d.className="curvyIgnore";else{g=d.className.indexOf("curvyIgnore")!==-1;if(!g)d.className+=" curvyIgnore"}if(!g){if(d.className.indexOf("curvyRedraw")!==-1){if(typeof curvyCorners.redrawList==="undefined")curvyCorners.redrawList=[];curvyCorners.redrawList.push({node:d,spec:c,copy:d.cloneNode(false)})}var i=new curvyObject(c,d);i.applyCorners()}}}curvyCorners.prototype.applyCornersToAll=function(){throw curvyCorners.newError("This function is now redundant. Just call curvyCorners(). See documentation.");};curvyCorners.redraw=function(){if(curvyBrowser.supportsCorners)return;if(!curvyCorners.redrawList)throw curvyCorners.newError("curvyCorners.redraw() has nothing to redraw.");var g=curvyCorners.block_redraw;curvyCorners.block_redraw=true;for(var f in curvyCorners.redrawList){if(isNaN(f))continue;var b=curvyCorners.redrawList[f];if(!b.node.clientWidth)continue;for(var d=b.copy.cloneNode(false),a=b.node.firstChild;a!=null;a=a.nextSibling)if(a.className==="autoPadDiv")break;if(!a){curvyCorners.alert("Couldn't find autoPad DIV");break}b.node.parentNode.replaceChild(d,b.node);for(var e=a.getElementsByTagName("script"),c=e.length-1;c>=0;--c)e[c].parentNode.removeChild(e[c]);while(a.firstChild)d.appendChild(a.removeChild(a.firstChild));b=new curvyObject(b.spec,b.node=d);b.applyCorners()}curvyCorners.block_redraw=g};curvyCorners.adjust=function(c,b,d){if(!curvyBrowser.supportsCorners){if(!curvyCorners.redrawList)throw curvyCorners.newError("curvyCorners.adjust() has nothing to adjust.");for(var e=curvyCorners.redrawList.length,a=0;a<e;++a)if(curvyCorners.redrawList[a].node===c)break;if(a===e)throw curvyCorners.newError("Object not redrawable");c=curvyCorners.redrawList[a].copy}if(b.indexOf(".")===-1)c[b]=d;else eval("obj."+b+"='"+d+"'")};curvyCorners.handleWinResize=function(){!curvyCorners.block_redraw&&curvyCorners.redraw()};curvyCorners.setWinResize=function(a){curvyCorners.block_redraw=!a};curvyCorners.newError=function(a){return new Error("curvyCorners Error:\n"+a)};curvyCorners.alert=function(a){(typeof curvyCornersVerbose==="undefined"||curvyCornersVerbose)&&alert(a)};function curvyObject(){var f;this.box=arguments[1];this.settings=arguments[0];this.topContainer=this.bottomContainer=this.shell=f=null;var b=this.box.clientWidth;if("canHaveChildren"in this.box&&!this.box.canHaveChildren||this.box.tagName==="TABLE")throw new Error(this.errmsg("You cannot apply corners to "+this.box.tagName+" elements.","Error"));if(!b&&curvyBrowser.isIE){this.box.style.zoom=1;b=this.box.clientWidth}if(!b&&curvyBrowser.get_style(this.box,"display")==="inline"){this.box.style.display="inline-block";curvyCorners.alert(this.errmsg("Converting inline element to inline-block","warning"));b=this.box.clientWidth}if(!b){if(!this.box.parentNode)throw this.newError("box has no parent!");for(f=this.box;true;f=f.parentNode){if(!f||f.tagName==="BODY"){this.applyCorners=function(){};curvyCorners.alert(this.errmsg("zero-width box with no accountable parent","warning"));return}if(curvyBrowser.get_style(f,"display")==="none")break}var E=f.style.display;f.style.display="block";b=this.box.clientWidth}if(!b){curvyCorners.alert(this.errmsg("zero-width box, cannot display","error"));this.applyCorners=function(){};return}if(arguments[0]instanceof curvyCnrSpec)this.spec=arguments[0].cloneOn(this.box);else{this.spec=new curvyCnrSpec("");this.spec.setfrom(this.settings)}var D=curvyBrowser.get_style(this.box,"borderTopWidth"),x=curvyBrowser.get_style(this.box,"borderBottomWidth"),y=curvyBrowser.get_style(this.box,"borderLeftWidth"),A=curvyBrowser.get_style(this.box,"borderRightWidth"),t=curvyBrowser.get_style(this.box,"borderTopColor"),p=curvyBrowser.get_style(this.box,"borderBottomColor"),q=curvyBrowser.get_style(this.box,"borderLeftColor"),r=curvyBrowser.get_style(this.box,"borderRightColor"),C=curvyBrowser.get_style(this.box,"borderTopStyle"),u=curvyBrowser.get_style(this.box,"borderBottomStyle"),v=curvyBrowser.get_style(this.box,"borderLeftStyle"),w=curvyBrowser.get_style(this.box,"borderRightStyle"),n=curvyBrowser.get_style(this.box,"backgroundColor"),m=curvyBrowser.get_style(this.box,"backgroundImage"),o=curvyBrowser.get_style(this.box,"backgroundRepeat"),a,d;if(this.box.currentStyle&&this.box.currentStyle.backgroundPositionX){a=curvyBrowser.get_style(this.box,"backgroundPositionX");d=curvyBrowser.get_style(this.box,"backgroundPositionY")}else{a=curvyBrowser.get_style(this.box,"backgroundPosition");a=a.split(" ");d=a.length===2?a[1]:0;a=a[0]}var F=curvyBrowser.get_style(this.box,"position"),H=curvyBrowser.get_style(this.box,"paddingTop"),s=curvyBrowser.get_style(this.box,"paddingBottom"),G=curvyBrowser.get_style(this.box,"paddingLeft"),B=curvyBrowser.get_style(this.box,"paddingRight"),J=curvyBrowser.get_style(this.box,"border"),g=curvyBrowser.ieVer>7?curvyBrowser.get_style(this.box,"filter"):null,h=this.spec.get("tR"),j=this.spec.get("bR"),e=function(a){if(typeof a==="number")return a;if(typeof a!=="string")throw new Error("unexpected styleToNPx type "+typeof a);var b=/^[-\d.]([a-z]+)$/.exec(a);if(b&&b[1]!="px")throw new Error("Unexpected unit "+b[1]);if(isNaN(a=parseInt(a)))a=0;return a},I=function(a){return a<=0?"0":a+"px"};try{this.borderWidth=e(D);this.borderWidthB=e(x);this.borderWidthL=e(y);this.borderWidthR=e(A);this.boxColour=curvyObject.format_colour(n);this.topPadding=e(H);this.bottomPadding=e(s);this.leftPadding=e(G);this.rightPadding=e(B);this.boxWidth=b;this.boxHeight=this.box.clientHeight;this.borderColour=curvyObject.format_colour(t);this.borderColourB=curvyObject.format_colour(p);this.borderColourL=curvyObject.format_colour(q);this.borderColourR=curvyObject.format_colour(r);this.borderString=this.borderWidth+"px "+C+" "+this.borderColour;this.borderStringB=this.borderWidthB+"px "+u+" "+this.borderColourB;this.borderStringL=this.borderWidthL+"px "+v+" "+this.borderColourL;this.borderStringR=this.borderWidthR+"px "+w+" "+this.borderColourR;this.backgroundImage=m!="none"?m:"";this.backgroundRepeat=o}catch(K){throw this.newError(K.message);}var k=this.boxHeight,i=b;if(curvyBrowser.isOp){a=e(a);d=e(d);if(a){var l=i+this.borderWidthL+this.borderWidthR;if(a>l)a=l;a=l/a*100+"%"}if(d){var l=k+this.borderWidth+this.borderWidthB;if(d>l)d=l;d=l/d*100+"%"}}if(!curvyBrowser.quirksMode){this.boxWidth-=this.leftPadding+this.rightPadding;this.boxHeight-=this.topPadding+this.bottomPadding}this.contentContainer=document.createElement("div");if(g)this.contentContainer.style.filter=g;while(this.box.firstChild)this.contentContainer.appendChild(this.box.removeChild(this.box.firstChild));if(F!="absolute")this.box.style.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=i+this.borderWidthL+this.borderWidthR+"px";this.box.style.height=k+this.borderWidth+this.borderWidthB+"px";var c=document.createElement("div");c.style.position="absolute";if(g)c.style.filter=g;if(curvyBrowser.quirksMode)c.style.width=i+this.borderWidthL+this.borderWidthR+"px";else c.style.width=i+"px";c.style.height=I(k+this.borderWidth+this.borderWidthB-h-j);c.style.padding="0";c.style.top=h+"px";c.style.left="0";if(this.borderWidthL)c.style.borderLeft=this.borderStringL;if(this.borderWidth&&!h)c.style.borderTop=this.borderString;if(this.borderWidthR)c.style.borderRight=this.borderStringR;if(this.borderWidthB&&!j)c.style.borderBottom=this.borderStringB;c.style.backgroundColor=n;c.style.backgroundImage=this.backgroundImage;c.style.backgroundRepeat=this.backgroundRepeat;c.style.direction="ltr";this.shell=this.box.appendChild(c);b=curvyBrowser.get_style(this.shell,"width");if(b===""||b==="auto"||b.indexOf("%")!==-1)throw this.newError("Shell width is "+b);this.boxWidth=b!=""&&b!="auto"&&b.indexOf("%")==-1?parseInt(b):this.shell.clientWidth;this.applyCorners=function(){this.backgroundPosX=this.backgroundPosY=0;if(this.backgroundObject){var I=function(a,c,b){if(a===0)return 0;var d;return a==="right"||a==="bottom"?b-c:a==="center"?(b-c)/2:a.indexOf("%")>0?(b-c)*100/parseInt(a):e(a)};this.backgroundPosX=I(a,this.backgroundObject.width,i);this.backgroundPosY=I(d,this.backgroundObject.height,k)}else if(this.backgroundImage){this.backgroundPosX=e(a);this.backgroundPosY=e(d)}if(h){m=document.createElement("div");m.style.width=this.boxWidth+"px";m.style.fontSize="1px";m.style.overflow="hidden";m.style.position="absolute";m.style.paddingLeft=this.borderWidth+"px";m.style.paddingRight=this.borderWidth+"px";m.style.height=h+"px";m.style.top=-h+"px";m.style.left=-this.borderWidthL+"px";this.topContainer=this.shell.appendChild(m)}if(j){var m=document.createElement("div");m.style.width=this.boxWidth+"px";m.style.fontSize="1px";m.style.overflow="hidden";m.style.position="absolute";m.style.paddingLeft=this.borderWidthB+"px";m.style.paddingRight=this.borderWidthB+"px";m.style.height=j+"px";m.style.bottom=-j+"px";m.style.left=-this.borderWidthL+"px";this.bottomContainer=this.shell.appendChild(m)}var K=this.spec.cornerNames();for(var M in K)if(!isNaN(M)){var r=K[M],c=this.spec[r+"R"],L,t,s,C;if(r=="tr"||r=="tl"){L=this.borderWidth;t=this.borderColour;C=this.borderWidth}else{L=this.borderWidthB;t=this.borderColourB;C=this.borderWidthB}s=c-C;var l=document.createElement("div");l.style.height=this.spec.get(r+"Ru");l.style.width=this.spec.get(r+"Ru");l.style.position="absolute";l.style.fontSize="1px";l.style.overflow="hidden";for(var p,F,v=g?parseInt(/alpha\(opacity.(\d+)\)/.exec(g)[1]):100,o=0;o<c;++o){var w=o+1>=s?-1:Math.floor(Math.sqrt(Math.pow(s,2)-Math.pow(o+1,2)))-1;if(s!=c)var y=o>=s?-1:Math.ceil(Math.sqrt(Math.pow(s,2)-Math.pow(o,2))),B=o+1>=c?-1:Math.floor(Math.sqrt(Math.pow(c,2)-Math.pow(o+1,2)))-1;var P=o>=c?-1:Math.ceil(Math.sqrt(Math.pow(c,2)-Math.pow(o,2)));w>-1&&this.drawPixel(o,0,this.boxColour,v,w+1,l,true,c);if(s!=c)if(this.spec.antiAlias){for(p=w+1;p<y;++p)if(this.backgroundImage!=""){var N=curvyObject.pixelFraction(o,p,s)*100;this.drawPixel(o,p,t,v,1,l,N>=30,c)}else if(this.boxColour!=="transparent"){var O=curvyObject.BlendColour(this.boxColour,t,curvyObject.pixelFraction(o,p,s));this.drawPixel(o,p,O,v,1,l,false,c)}else this.drawPixel(o,p,t,v>>1,1,l,false,c);if(B>=y){if(y==-1)y=0;this.drawPixel(o,y,t,v,B-y+1,l,false,0)}F=t;p=B}else B>w&&this.drawPixel(o,w+1,t,v,B-w,l,false,0);else{F=this.boxColour;p=w}if(this.spec.antiAlias&&this.boxColour!=="transparent")while(++p<P)this.drawPixel(o,p,F,curvyObject.pixelFraction(o,p,c)*v,1,l,C<=0,c)}for(var G=0,Q=l.childNodes.length;G<Q;++G){var q=l.childNodes[G],u=parseInt(q.style.top),x=parseInt(q.style.left),D=parseInt(q.style.height);if(r=="tl"||r=="bl")q.style.left=c-x-1+"px";if(r=="tr"||r=="tl")q.style.top=c-D-u+"px";q.style.backgroundRepeat=this.backgroundRepeat;if(this.backgroundImage)switch(r){case"tr":q.style.backgroundPosition=this.backgroundPosX-this.borderWidthL+c-i-x+"px "+(this.backgroundPosY+D+u+this.borderWidth-c)+"px";break;case"tl":q.style.backgroundPosition=this.backgroundPosX-c+x+1+this.borderWidthL+"px "+(this.backgroundPosY-c+D+u+this.borderWidth)+"px";break;case"bl":q.style.backgroundPosition=this.backgroundPosX-c+x+1+this.borderWidthL+"px "+(this.backgroundPosY-k-this.borderWidth+(curvyBrowser.quirksMode?u:-u)+c)+"px";break;case"br":if(curvyBrowser.quirksMode)q.style.backgroundPosition=this.backgroundPosX-this.borderWidthL-i+c-x+"px "+(this.backgroundPosY-k-this.borderWidth+u+c)+"px";else q.style.backgroundPosition=this.backgroundPosX-this.borderWidthL-i+c-x+"px "+(this.backgroundPosY-k-this.borderWidth+c-u)+"px"}}switch(r){case"tl":l.style.top=l.style.left="0";this.topContainer.appendChild(l);break;case"tr":l.style.top=l.style.right="0";this.topContainer.appendChild(l);break;case"bl":l.style.bottom=l.style.left="0";this.bottomContainer.appendChild(l);break;case"br":l.style.bottom=l.style.right="0";this.bottomContainer.appendChild(l)}}var A={t:this.spec.radiusdiff("t"),b:this.spec.radiusdiff("b")};for(z in A){if(typeof z==="function")continue;if(!this.spec.get(z+"R"))continue;if(A[z]){var H=this.spec[z+"lR"]<this.spec[z+"rR"]?z+"l":z+"r",b=document.createElement("div");b.style.height=A[z]+"px";b.style.width=this.spec.get(H+"Ru");b.style.position="absolute";b.style.fontSize="1px";b.style.overflow="hidden";b.style.backgroundColor=this.boxColour;if(g)b.style.filter=g;b.style.backgroundImage=this.backgroundImage;b.style.backgroundRepeat=this.backgroundRepeat;switch(H){case"tl":b.style.bottom=b.style.left="0";b.style.borderLeft=this.borderStringL;b.style.backgroundPosition=this.backgroundPosX+"px "+(this.borderWidth+this.backgroundPosY-this.spec.tlR)+"px";this.topContainer.appendChild(b);break;case"tr":b.style.bottom=b.style.right="0";b.style.borderRight=this.borderStringR;b.style.backgroundPosition=this.backgroundPosX-this.boxWidth+this.spec.trR+"px "+(this.borderWidth+this.backgroundPosY-this.spec.trR)+"px";this.topContainer.appendChild(b);break;case"bl":b.style.top=b.style.left="0";b.style.borderLeft=this.borderStringL;b.style.backgroundPosition=this.backgroundPosX+"px "+(this.backgroundPosY-this.borderWidth-this.boxHeight+A[z]+this.spec.blR)+"px";this.bottomContainer.appendChild(b);break;case"br":b.style.top=b.style.right="0";b.style.borderRight=this.borderStringR;b.style.backgroundPosition=this.borderWidthL+this.backgroundPosX-this.boxWidth+this.spec.brR+"px "+(this.backgroundPosY-this.borderWidth-this.boxHeight+A[z]+this.spec.brR)+"px";this.bottomContainer.appendChild(b)}}var n=document.createElement("div");if(g)n.style.filter=g;n.style.position="relative";n.style.fontSize="1px";n.style.overflow="hidden";n.style.width=this.fillerWidth(z);n.style.backgroundColor=this.boxColour;n.style.backgroundImage=this.backgroundImage;n.style.backgroundRepeat=this.backgroundRepeat;switch(z){case"t":if(this.topContainer){if(curvyBrowser.quirksMode)n.style.height=100+h+"px";else n.style.height=100+h-this.borderWidth+"px";n.style.marginLeft=this.spec.tlR?this.spec.tlR-this.borderWidthL+"px":"0";n.style.borderTop=this.borderString;if(this.backgroundImage){var J=this.spec.tlR?this.borderWidthL+this.backgroundPosX-this.spec.tlR+"px ":this.backgroundPosX+"px ";n.style.backgroundPosition=J+this.backgroundPosY+"px";this.shell.style.backgroundPosition=this.backgroundPosX+"px "+(this.backgroundPosY-h+this.borderWidthL)+"px"}this.topContainer.appendChild(n)}break;case"b":if(this.bottomContainer){if(curvyBrowser.quirksMode)n.style.height=j+"px";else n.style.height=j-this.borderWidthB+"px";n.style.marginLeft=this.spec.blR?this.spec.blR-this.borderWidthL+"px":"0";n.style.borderBottom=this.borderStringB;if(this.backgroundImage){var J=this.spec.blR?this.backgroundPosX+this.borderWidthL-this.spec.blR+"px ":this.backgroundPosX+"px ";n.style.backgroundPosition=J+(this.backgroundPosY-k-this.borderWidth+j)+"px"}this.bottomContainer.appendChild(n)}}}this.contentContainer.style.position="absolute";this.contentContainer.className="autoPadDiv";this.contentContainer.style.left=this.borderWidthL+"px";this.contentContainer.style.paddingTop=this.topPadding+"px";this.contentContainer.style.top=this.borderWidth+"px";this.contentContainer.style.paddingLeft=this.leftPadding+"px";this.contentContainer.style.paddingRight=this.rightPadding+"px";z=i;if(!curvyBrowser.quirksMode)z-=this.leftPadding+this.rightPadding;this.contentContainer.style.width=z+"px";this.contentContainer.style.textAlign=curvyBrowser.get_style(this.box,"textAlign");this.box.style.textAlign="left";this.box.appendChild(this.contentContainer);if(f)f.style.display=E};if(this.backgroundImage){a=this.backgroundCheck(a);d=this.backgroundCheck(d);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("curvyObject.dispatch(this.holdingElement);")}}}}curvyObject.prototype.backgroundCheck=function(a){if(a==="top"||a==="left"||parseInt(a)===0)return 0;if(!/^[-\d.]+px$/.test(a)&&!this.backgroundObject){this.backgroundObject=new Image;var b=function(b){var a=/url\("?([^'"]+)"?\)/.exec(b);return a?a[1]:b};this.backgroundObject.src=b(this.backgroundImage)}return a};curvyObject.dispatch=function(a){if("dispatch"in a)a.dispatch();else throw a.newError("No dispatch function");};curvyObject.prototype.drawPixel=function(c,d,h,b,i,g,j,e){var a=document.createElement("div");a.style.height=i+"px";a.style.width="1px";a.style.position="absolute";a.style.fontSize="1px";a.style.overflow="hidden";var f=this.spec.get("tR");a.style.backgroundColor=h;if(j&&this.backgroundImage!=""){a.style.backgroundImage=this.backgroundImage;a.style.backgroundPosition="-"+(this.boxWidth-(e-c)+this.borderWidth)+"px -"+(this.boxHeight+f+d-this.borderWidth)+"px"}b!=100&&curvyObject.setOpacity(a,b);a.style.top=d+"px";a.style.left=c+"px";g.appendChild(a)};curvyObject.prototype.fillerWidth=function(c){var a,b;a=curvyBrowser.quirksMode?0:this.spec.radiusCount(c)*this.borderWidthL;if((b=this.boxWidth-this.spec.radiusSum(c)+a)<0)throw this.newError("Radius exceeds box width");return b+"px"};curvyObject.prototype.errmsg=function(d,c){var a="\ntag: "+this.box.tagName;if(this.box.id)a+="\nid: "+this.box.id;if(this.box.className)a+="\nclass: "+this.box.className;var b;if((b=this.box.parentNode)===null)a+="\n(box has no parent)";else{a+="\nParent tag: "+b.tagName;if(b.id)a+="\nParent ID: "+b.id;if(b.className)a+="\nParent class: "+b.className}if(c===undefined)c="warning";return"curvyObject "+c+":\n"+d+a};curvyObject.prototype.newError=function(a){return new Error(this.errmsg(a,"exception"))};curvyObject.IntToHex=function(b){var a=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F"];return a[b>>>4]+""+a[b&15]};curvyObject.BlendColour=function(b,c,a){if(b==="transparent"||c==="transparent")throw this.newError("Cannot blend with transparent");if(b.charAt(0)!=="#")b=curvyObject.format_colour(b);if(c.charAt(0)!=="#")c=curvyObject.format_colour(c);var k=parseInt(b.substr(1,2),16),g=parseInt(b.substr(3,2),16),i=parseInt(b.substr(5,2),16),l=parseInt(c.substr(1,2),16),h=parseInt(c.substr(3,2),16),j=parseInt(c.substr(5,2),16);if(a>1||a<0)a=1;var f=Math.round(k*a+l*(1-a));if(f>255)f=255;if(f<0)f=0;var d=Math.round(g*a+h*(1-a));if(d>255)d=255;if(d<0)d=0;var e=Math.round(i*a+j*(1-a));if(e>255)e=255;if(e<0)e=0;return"#"+curvyObject.IntToHex(f)+curvyObject.IntToHex(d)+curvyObject.IntToHex(e)};curvyObject.pixelFraction=function(e,f,j){var g,i=j*j,b=new Array(2),c=new Array(2),d=0,h="",a=Math.sqrt(i-Math.pow(e,2));if(a>=f&&a<f+1){h="Left";b[d]=0;c[d]=a-f;++d}a=Math.sqrt(i-Math.pow(f+1,2));if(a>=e&&a<e+1){h+="Top";b[d]=a-e;c[d]=1;++d}a=Math.sqrt(i-Math.pow(e+1,2));if(a>=f&&a<f+1){h+="Right";b[d]=1;c[d]=a-f;++d}a=Math.sqrt(i-Math.pow(f,2));if(a>=e&&a<e+1){h+="Bottom";b[d]=a-e;c[d]=0}switch(h){case"LeftRight":g=Math.min(c[0],c[1])+(Math.max(c[0],c[1])-Math.min(c[0],c[1]))/2;break;case"TopRight":g=1-(1-b[0])*(1-c[1])/2;break;case"TopBottom":g=Math.min(b[0],b[1])+(Math.max(b[0],b[1])-Math.min(b[0],b[1]))/2;break;case"LeftBottom":g=c[0]*b[1]/2;break;default:g=1}return g};curvyObject.rgb2Array=function(a){var b=a.substring(4,a.indexOf(")"));return b.split(", ")};curvyObject.rgb2Hex=function(c){try{var a=curvyObject.rgb2Array(c),g=parseInt(a[0]),d=parseInt(a[1]),e=parseInt(a[2]),b="#"+curvyObject.IntToHex(g)+curvyObject.IntToHex(d)+curvyObject.IntToHex(e)}catch(h){var f="getMessage"in h?h.getMessage():h.message;throw new Error("Error ("+f+") converting RGB value to Hex in rgb2Hex");}return b};curvyObject.setOpacity=function(a,b){b=b==100?99.999:b;if(curvyBrowser.isSafari&&a.tagName!="IFRAME"){var c=curvyObject.rgb2Array(a.style.backgroundColor),f=parseInt(c[0]),d=parseInt(c[1]),e=parseInt(c[2]);a.style.backgroundColor="rgba("+f+", "+d+", "+e+", "+b/100+")"}else if(typeof a.style.opacity!=="undefined")a.style.opacity=b/100;else if(typeof a.style.MozOpacity!=="undefined")a.style.MozOpacity=b/100;else if(typeof a.style.filter!=="undefined")a.style.filter="alpha(opacity="+b+")";else if(typeof a.style.KHTMLOpacity!=="undefined")a.style.KHTMLOpacity=b/100};curvyCorners.addEvent=function(a,b,c,d){if(a.addEventListener){a.addEventListener(b,c,d);return true}if(a.attachEvent)return a.attachEvent("on"+b,c);a["on"+b]=c;return false};if(typeof addEvent==="undefined")addEvent=curvyCorners.addEvent;curvyObject.getComputedColour=function(e){var a=document.createElement("DIV");a.style.backgroundColor=e;document.body.appendChild(a);if(window.getComputedStyle){var c=document.defaultView.getComputedStyle(a,null).getPropertyValue("background-color");a.parentNode.removeChild(a);if(c.substr(0,3)==="rgb")c=curvyObject.rgb2Hex(c);return c}else{var b=document.body.createTextRange();b.moveToElementText(a);b.execCommand("ForeColor",false,e);var d=b.queryCommandValue("ForeColor"),f="rgb("+(d&255)+", "+((d&65280)>>8)+", "+((d&16711680)>>16)+")";a.parentNode.removeChild(a);b=null;return curvyObject.rgb2Hex(f)}};curvyObject.format_colour=function(a){if(a!=""&&a!="transparent")if(a.substr(0,3)==="rgb")a=curvyObject.rgb2Hex(a);else if(a.charAt(0)!=="#")a=curvyObject.getComputedColour(a);else if(a.length===4)a="#"+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)+a.charAt(3)+a.charAt(3);return a};curvyCorners.getElementsByClass=function(a,g){var e=[];if(g===undefined)g=document;a=a.split(".");var d="*";if(a.length===1){d=a[0];a=false}else{if(a[0])d=a[0];a=a[1]}var b,c,f;if(d.charAt(0)==="#"){c=document.getElementById(d.substr(1));c&&e.push(c)}else{c=g.getElementsByTagName(d);f=c.length;if(a){var h=new RegExp("(^|\\s)"+a+"(\\s|$)");for(b=0;b<f;++b)h.test(c[b].className)&&e.push(c[b])}else for(b=0;b<f;++b)e.push(c[b])}return e};curvyCorners.getElementsBySelector=function(c,b){var a,e=c[0];if(b===undefined)b=document;if(e.indexOf("#")!==-1)a=[b.getElementById(e.substr(1))];else a=curvyCorners.getElementsByClass(e,b);if(c.length>1){for(var d=[],f=a.length;--f>=0;)d=d.concat(curvyCorners.getElementsBySelector(c.slice(1),a[f]));a=d}return a};if(curvyBrowser.supportsCorners){var curvyCornersNoAutoScan=true;curvyCorners.init=function(){}}else{curvyCorners.scanStyles=function(){function d(a){if(!parseInt(a))return"px";var b=/^[\d.]+(\w+)$/.exec(a);return b[1]}var a,b,c;if(curvyBrowser.isIE){function e(j){var b=j.style;if(curvyBrowser.ieVer>6)var c=b["-moz-border-radius"]||0,h=b["-moz-border-radius-topright"]||0,g=b["-moz-border-radius-topleft"]||0,f=b["-moz-border-radius-bottomright"]||0,e=b["-moz-border-radius-bottomleft"]||0;else var c=b["moz-border-radius"]||0,h=b["moz-border-radius-topright"]||0,g=b["moz-border-radius-topleft"]||0,f=b["moz-border-radius-bottomright"]||0,e=b["moz-border-radius-bottomleft"]||0;if(c){var a=c.split("/");a=a[0].split(/\s+/);a[a.length-1]===""&&a.pop();switch(a.length){case 3:g=a[0];h=e=a[1];f=a[2];c=false;break;case 2:g=f=a[0];h=e=a[1];c=false;case 1:break;case 4:g=a[0];h=a[1];f=a[2];e=a[3];c=false;break;default:curvyCorners.alert("Illegal corners specification: "+c)}}if(c||g||h||f||e){var i=new curvyCnrSpec(j.selectorText);if(c)i.setcorner(null,null,parseInt(c),d(c));else{h&&i.setcorner("t","r",parseInt(h),d(h));g&&i.setcorner("t","l",parseInt(g),d(g));e&&i.setcorner("b","l",parseInt(e),d(e));f&&i.setcorner("b","r",parseInt(f),d(f))}curvyCorners(i)}}for(a=0;a<document.styleSheets.length;++a)try{if(document.styleSheets[a].imports)for(b=0;b<document.styleSheets[a].imports.length;++b)for(c=0;c<document.styleSheets[a].imports[b].rules.length;++c)e(document.styleSheets[a].imports[b].rules[c]);for(b=0;b<document.styleSheets[a].rules.length;++b)e(document.styleSheets[a].rules[b])}catch(f){typeof curvyCornersVerbose!=="undefined"&&curvyCornersVerbose&&alert(f.message+" - ignored")}}else if(curvyBrowser.isOp){for(a=0;a<document.styleSheets.length;++a)if(operasheet.contains_border_radius(a)){c=new operasheet(a);for(b in c.rules)!isNaN(b)&&curvyCorners(c.rules[b])}}else curvyCorners.alert("Scanstyles does nothing in Webkit/Firefox/Opera")};curvyCorners.init=function(){if(arguments.callee.done)return;arguments.callee.done=true;if(curvyBrowser.isWebKit&&curvyCorners.init.timer){clearInterval(curvyCorners.init.timer);curvyCorners.init.timer=null}curvyCorners.scanStyles()}}if(typeof curvyCornersNoAutoScan==="undefined"||curvyCornersNoAutoScan===false)if(curvyBrowser.isOp)document.addEventListener("DOMContentLoaded",curvyCorners.init,false);else curvyCorners.addEvent(window,"load",curvyCorners.init,false);
