var RUZEE=window.RUZEE||{};
RUZEE.ShadedBorder={create:function(c){function W(b,a){for(k in a)if(/ie_/.test(k)){if(G)b.style[k.substr(3)]=a[k]}else b.style[k]=a[k]}function r(b){var a=document.createElement("div");a.className="sb-gen";W(a,b);return a}function l(b){b=b<0?0:b;if(b>0.99999)return"";return G?" filter:alpha(opacity="+b*100+");":" opacity:"+b+";"}function H(b,a,e){var f=e?g:m,i=a?n:o,h=a?C:-C,w=[],D=[],y=[],z=0,A=1;if(e){z=f-1;A=-1}for(e=0;e<f;++e){var O=i-1,X=-1;if(a){O=0;X=1}for(var Y=false,B=i-1;B>=0&&!Y;--B){var I=
'<div style="position:absolute; top:'+O+"px; left:"+z+"px; width:1px; height:1px; overflow:hidden; margin:0; padding:0;",t=e-s,p=B-J-h,q=Math.sqrt(t*t+p*p),E=false;if(d>0){if(t<0&&p<u&&p>=d||p<0&&t<u&&t>=d)w.push(I+l(F)+'" class="'+K+'"></div>');else if(q<u&&q>=d-1&&t>=0&&p>=0){var j=I;if(q>=u-1){j+=l((u-q)*F);E=true}else j+=l(F);w.push(j+'" class="'+K+'"></div>')}j=I+" z-index:2;"+(a?"background-position:0 -"+(d-p-1)+"px;":"background-image:none;");var Z=function(){a||(j=j.replace(/top\:\d+px/,"top:0px"));
j=j.replace(/height\:1px/,"height:"+(B+1)+"px");D.push(j+'" class="'+L+'"></div>');Y=true};if(t<0&&p<d||p<0&&t<d)Z();else if(q<d&&t>=0&&p>=0)if(q>=d-1){j+=l(d-q);E=true;D.push(j+'" class="'+L+'"></div>')}else Z();else E=true}else E=true;if(v>0&&E){q=Math.sqrt(e*e+B*B);q<v&&y.push(I+" z-index:0; "+l(1-q/v)+'" class="'+M+'"></div>')}O+=X}z+=A}b.innerHTML=y.concat(w.concat(D)).join("")}function ba(b){var a=[];a.push('<div style="position:relative; top:'+(n+o)+"px; height:2048px;  margin:0 "+(m-d-s)+
"px 0 "+(g-d-s)+"px;  padding:0; overflow:hidden; background-position:0 "+(n>0?-(d+J+C):"0")+'px;" class="'+L+'"></div>');var e='<div style="position:absolute; width:1px; top:'+(n+o)+"px; height:2048px; padding:0; margin:0;";if(v>0){for(var f=0;f<g-d-s;++f)a.push(e+" left:"+f+"px;"+l((f+1)/g)+'" class="'+M+'"></div>');for(f=0;f<m-d-s;++f)a.push(e+" right:"+f+"px;"+l((f+1)/m)+'" class="'+M+'"></div>')}if(x>0){f=" width:"+x+"px;"+l(F)+'" class="'+K+'"></div>';a.push(e+" left:"+(g-u-s)+"px;"+f);a.push(e+
" right:"+(m-u-s)+"px;"+f)}b.innerHTML=a.join("")}function $(b,a){for(var e=[],f=a?n:o,i=a?C:-C,h=0;h<f-i-J-d;++h)if(v>0)e.push('<div style="height:1px; overflow:hidden; position:absolute; margin:0; padding:0; width:100%; left:0px; '+(a?"top:":"bottom:")+h+"px;"+l((h+1)*1/f)+'" class="'+M+'"></div>');if(h>=x)e.push('<div style="height:1px; overflow:hidden; position:absolute; margin:0; padding:0; width:100%; left:0px; '+(a?"top:":"bottom:")+(h-x)+"px;"+l(F)+" height:"+x+'px;" class="'+K+'"></div>');
e.push('<div style="height:1px; overflow:hidden; position:absolute; margin:0; padding:0; width:100%; left:0px; '+(a?"background-position-y:0; top:":"background-image:none; bottom:")+h+"px; height:"+(d+J+i)+'px;" class="'+L+'"></div>');b.innerHTML=e.join("")}var G=/msie/i.test(navigator.userAgent)&&!window.opera,aa=G&&!window.XMLHttpRequest,v=c.shadow||0,d=c.corner||0,u=0,x=c.border||0,F=c.borderOpacity||1,N=v!=0,g=d>v?d:v,m=g,n=g,o=g;if(x>0){u=d;d-=x}var s=d!=0&&N?Math.round(g/3):0,J=s,C=Math.round(s/
2),L=d>0?"sb-inner":"sb-shadow",M="sb-shadow",K="sb-border";c=c.edges||"trlb";/t/i.test(c)||(n=0);/b/i.test(c)||(o=0);/l/i.test(c)||(g=0);/r/i.test(c)||(m=0);c={position:"absolute",left:"0",top:"0",width:g+"px",height:n+"px",ie_fontSize:"1px",overflow:"hidden",margin:"0",padding:"0"};var P=r(c);delete c.left;c.right="0";c.width=m+"px";var Q=r(c);delete c.top;c.bottom="0";c.height=o+"px";var R=r(c);delete c.right;c.left="0";c.width=g+"px";var S=r(c),T=r({position:"absolute",width:"100%",height:n+"px",
ie_fontSize:"1px",top:"0",left:"0",overflow:"hidden",margin:"0",padding:"0"});c=r({position:"relative",height:n+"px",ie_fontSize:"1px",margin:"0 "+m+"px 0 "+g+"px",overflow:"hidden",padding:"0"});T.appendChild(c);var U=r({position:"absolute",left:"0",bottom:"0",width:"100%",height:o+"px",ie_fontSize:"1px",overflow:"hidden",margin:"0",padding:"0"});N=r({position:"relative",height:o+"px",ie_fontSize:"1px",margin:"0 "+m+"px 0 "+g+"px",overflow:"hidden",padding:"0"});U.appendChild(N);var V=r({position:"absolute",
top:-o+"px",left:"0",width:"100%",height:"100%",overflow:"hidden",ie_fontSize:"1px",padding:"0",margin:"0"});H(P,true,true);H(Q,true,false);H(S,false,true);H(R,false,false);ba(V);$(c,true);$(N,false);needsCloning=false;return{render:function(b){if(typeof b=="string")b=document.getElementById(b);if(b.length!=undefined)for(var a=0;a<b.length;++a)this.render(b[a]);else{b.className+=" sb";W(b,{position:"relative",background:"transparent"});for(a=b.firstChild;a;){var e=a.nextSibling;a.nodeType==1&&a.className==
"sb-gen"&&b.removeChild(a);a=e}a=b.firstChild;var f=needsCloning?T.cloneNode(true):T,i=needsCloning?V.cloneNode(true):V,h=needsCloning?U.cloneNode(true):U;e=needsCloning?P.cloneNode(true):P;var w=needsCloning?Q.cloneNode(true):Q,D=needsCloning?S.cloneNode(true):S,y=needsCloning?R.cloneNode(true):R;b.insertBefore(e,a);b.insertBefore(w,a);b.insertBefore(D,a);b.insertBefore(y,a);b.insertBefore(f,a);b.insertBefore(i,a);b.insertBefore(h,a);if(aa){b.onmouseover=function(){this.className+=" hover"};b.onmouseout=
function(){this.className=this.className.replace(/ hover/,"")}}if(G){function z(){f.style.width=h.style.width=i.style.width=b.offsetWidth+"px";if(aa)i.firstChild.style.height=b.offsetHeight+"px";else for(var A=0;A<i.childNodes.length;++A)i.childNodes[A].style.height=b.offsetHeight-o-n+"px";w.style.right=y.style.right=null;w.style.left=y.style.left=b.offsetWidth-m+"px"}b.onresize=z;z()}needsCloning=true}}}}};document.write('  <style type="text/css">  .sb, .sbi, .sb *, .sbi * { position:relative; z-index:1; }  * html .sb, * html .sbi { height:1%; }  .sbi { display:inline-block; }  .sb-inner { background:#ddd; }    .sb-border { background:#bbb; }  </style>');
