/*
 * Compressed by JSA(www.xidea.org)
 */
jQuery.fn.corner=function(C){function B($){var $=parseInt($).toString(16);return($.length<2)?"0"+$:$}function E(_){for(;_&&_.nodeName.toLowerCase()!="html";_=_.parentNode){var $=jQuery.css(_,"backgroundColor");if($.indexOf("rgb")>=0){rgb=$.match(/\d+/g);return"#"+B(rgb[0])+B(rgb[1])+B(rgb[2])}if($&&$!="transparent")return $}return"#ffffff"}function I($){switch(_){case"round":return Math.round(A*(1-Math.cos(Math.asin($/A))));case"cool":return Math.round(A*(1+Math.cos(Math.asin($/A))));case"sharp":return Math.round(A*(1-Math.cos(Math.acos($/A))));case"bite":return Math.round(A*(Math.cos(Math.asin((A-$-1)/A))));case"slide":return Math.round(A*(Math.atan2($,A/$)));case"jut":return Math.round(A*(Math.atan2(A,(A-$-1))));case"curl":return Math.round(A*(Math.atan($)));case"tear":return Math.round(A*(Math.cos($)));case"wicked":return Math.round(A*(Math.tan($)));case"long":return Math.round(A*(Math.sqrt($)));case"sculpt":return Math.round(A*(Math.log((A-$-1),A)));case"dog":return($&1)?($+1):A;case"dog2":return($&2)?($+1):A;case"dog3":return($&3)?($+1):A;case"fray":return($%2)*A;case"notch":return A;case"bevel":return $+1}}C=(C||"").toLowerCase();var K=/keep/.test(C),J=((C.match(/cc:(#[0-9a-f]+)/)||[])[1]),D=((C.match(/sc:(#[0-9a-f]+)/)||[])[1]),A=parseInt((C.match(/(\d+)px/)||[])[1])||10,G=/round|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dog/,_=((C.match(G)||["round"])[0]),H={T:0,B:1},$={TL:/top|tl/.test(C),TR:/top|tr/.test(C),BL:/bottom|bl/.test(C),BR:/bottom|br/.test(C)};if(!$.TL&&!$.TR&&!$.BL&&!$.BR)$={TL:1,TR:1,BL:1,BR:1};var F=document.createElement("div");F.style.overflow="hidden";F.style.height="1px";F.style.backgroundColor=D||"transparent";F.style.borderStyle="solid";return this.each(function(G){var C={T:parseInt(jQuery.css(this,"paddingTop"))||0,R:parseInt(jQuery.css(this,"paddingRight"))||0,B:parseInt(jQuery.css(this,"paddingBottom"))||0,L:parseInt(jQuery.css(this,"paddingLeft"))||0};if(jQuery.browser.msie)this.style.zoom=1;if(!K)this.style.border="none";F.style.borderColor=J||E(this.parentNode);var B=jQuery.curCSS(this,"height");for(var N in H){var M=H[N];F.style.borderStyle="none "+($[N+"R"]?"solid":"none")+" none "+($[N+"L"]?"solid":"none");var D=document.createElement("div"),O=D.style;M?this.appendChild(D):this.insertBefore(D,this.firstChild);if(M&&B!="auto"){if(jQuery.css(this,"position")=="static")this.style.position="relative";O.position="absolute";O.bottom=O.left=O.padding=O.margin="0";if(jQuery.browser.msie)O.setExpression("width","this.parentNode.offsetWidth");else O.width="100%"}else O.margin=!M?"-"+C.T+"px -"+C.R+"px "+(C.T-A)+"px -"+C.L+"px":(C.B-A)+"px -"+C.R+"px -"+C.B+"px -"+C.L+"px";for(var P=0;P<A;P++){var _=Math.max(0,I(P)),L=F.cloneNode(false);L.style.borderWidth="0 "+($[N+"R"]?_:0)+"px 0 "+($[N+"L"]?_:0)+"px";M?D.appendChild(L):D.insertBefore(L,D.firstChild)}}})}