window.onload=function(){oldonload();AddCss('/plekit/niftycorner');NiftyLoad()};\r
else window.onload=function(){AddCss('/plekit/niftycorner');NiftyLoad()};\r
\r
+/* xxx local change : pass a path as parameter */\r
function AddCss(path){\r
niftyCss=true;\r
var l=CreateEl("link");\r
}\r
}\r
\r
+/* local addition\r
+ * accept element rather than selectors */\r
+function pleRounded(element,options){\r
+var i,top="",bottom="",v=new Array();\r
+if(options!=""){\r
+ options=options.replace("left","tl bl");\r
+ options=options.replace("right","tr br");\r
+ options=options.replace("top","tr tl");\r
+ options=options.replace("bottom","br bl");\r
+ options=options.replace("transparent","alias");\r
+ if(options.find("tl")){\r
+ top="both";\r
+ if(!options.find("tr")) top="left";\r
+ }\r
+ else if(options.find("tr")) top="right";\r
+ if(options.find("bl")){\r
+ bottom="both";\r
+ if(!options.find("br")) bottom="left";\r
+ }\r
+ else if(options.find("br")) bottom="right";\r
+ }\r
+if(top=="" && bottom=="" && !options.find("none")){top="both";bottom="both";}\r
+ FixIE(element);\r
+ if(top!="") AddTop(element,top,options);\r
+ if(bottom!="") AddBottom(element,bottom,options);\r
+}\r
+\r
+\r
function AddTop(el,side,options){\r
var d=CreateEl("b"),lim=4,border="",p,i,btype="r",bk,color;\r
d.style.marginLeft="-"+getPadding(el,"Left")+"px";\r