var bfCss={};
bfCss.getCss=function(g,e,b,d,a){b=typeof b=="undefined"?0:b;d=typeof d=="undefined"?0:d;a=typeof a=="undefined"?document:a;for(var h=0;h<a.styleSheets.length;h++){try{var c=a.styleSheets[h][sRules],i=c.length}catch(l){continue}for(var k=0;k<i;k++){var f=c[k].selectorText.toLowerCase().replace(/'/g,'"');if(d&&f.indexOf(g)!=-1||!d&&f==g){if(e.indexOf("-")>=0)e=e.replace(/\-(\w)/g,function(n,m){return m.toUpperCase()});g=a.styleSheets[h][sRules][k].style[e];if(b){var j;g=(j=g.match(/^[0-9]+/))?parseInt(j[0]):
0}return g}}}};bfCss.rmvCssSelector=function(g,e){for(var b=0;b<document.styleSheets.length;b++){try{var d=document.styleSheets[b][sRules],a=d.length}catch(h){continue}for(var c=0;c<a;c++)if(d[c].selectorText.search(g)!=-1){if(d[c].selectorText.search(e)!=-1){d=d[c].cssText.replace(", ."+e,"");document.styleSheets[b].deleteRule(c);document.styleSheets[b].insertRule(d,c)}return}}};
bfCss.addCssSelector=function(g,e){for(var b=0;b<document.styleSheets.length;b++){try{var d=document.styleSheets[b][sRules],a=d.length}catch(h){continue}for(var c=0;c<a;c++)if(d[c].selectorText.search(g)!=-1){if(d[c].selectorText.search(e)==-1){d=d[c].cssText.replace(" {",", ."+e+" {");document.styleSheets[b].deleteRule(c);document.styleSheets[b].insertRule(d,c)}return}}};
bfCss.changeCss=function(g,e,b,d,a,h){d=typeof d=="undefined"?0:d;a=typeof a=="undefined"?document:a;h=typeof h=="undefined"?"":h;if(g.indexOf("_hover")!=-1)hHover={};if(BrowserDetect.browser=="Explorer"&&b.search("!important"))b=b.replace(/ !important/,"");for(var c=0;c<a.styleSheets.length;c++){try{var i=a.styleSheets[c][sRules],l=i.length}catch(k){continue}if(h.length==0||a.styleSheets[c].href.indexOf(h)>=0)for(var f=0;f<l;f++)if(d&&i[f].selectorText.indexOf(g)!=-1||!d&&i[f].selectorText==g){g=
i[f].style[e];if(typeof i[f].style.setProperty=="function"){b=(d=b.indexOf("!important")!=-1?1:0)?b.substr(0,b.length-11):b;h={background:"background",backgroundColor:"background-color",backgroundPosition:"background-position",backgroundRepeat:"background-repeat",backgroundImage:"background-image",border:"border",borderStyle:"border-style",borderLeftStyle:"border-left-style",borderRightStyle:"border-right-style",borderTopStyle:"border-top-style",borderBottomStyle:"border-bottom-style",borderWidth:"border-width",
borderLeftWidth:"border-left-width",borderRightWidth:"border-right-width",borderTopWidth:"border-top-width",borderBottomWidth:"border-bottom-width",borderLeftColor:"border-left-color",borderRightColor:"border-right-color",borderTopColor:"border-top-color",borderBottomColor:"border-bottom-color",borderColor:"border-color",marginTop:"margin-top",marginBottom:"margin-bottom",marginLeft:"margin-left",marginRight:"margin-right",paddingLeft:"padding-left",paddingRight:"padding-right",paddingTop:"padding-top",
paddingBottom:"padding-bottom",fontSize:"font-size",fontFamily:"font-family",fontWeight:"font-weight",fontStyle:"font-style",textAlign:"text-align",lineHeight:"line-height",verticalAlign:"vertical-align"};if(b.length==0)a.styleSheets[c][sRules][f].style.removeProperty(typeof h[e]!="undefined"?h[e]:e);else{a.styleSheets[c][sRules][f].style.setProperty(typeof h[e]!="undefined"?h[e]:e,b,d==1?"important":"");if(b!=a.styleSheets[c][sRules][f].style[e]&&b!=g)a.styleSheets[c][sRules][f].style.setProperty(typeof h[e]!=
"undefined"?h[e]:e,b,"important")}if(e.indexOf("border")!=-1){var j=null;for(c=0;c<a.styleSheets.length;c++){try{i=a.styleSheets[c][sRules];l=i.length}catch(n){continue}for(f=0;f<l;f++)if(i[f].selectorText==".table_plain"){j=i[f].style;break}}a=function(){j.setProperty("border-collapse","collapse","")};if(j!=null){j.setProperty("border-collapse","separate","");setTimeout(a,10)}}}else if(b.length==0){i=e.replace(/\-(\w)/g,function(p,o){return o.toUpperCase()});if(typeof{margin:1,padding:1,border:1}[i]==
"undefined")a.styleSheets[c][sRules][f].style.removeAttribute(i);else try{a.styleSheets[c][sRules][f].style.removeAttribute(i+"Top");a.styleSheets[c][sRules][f].style.removeAttribute(i+"Right");a.styleSheets[c][sRules][f].style.removeAttribute(i+"Bottom");a.styleSheets[c][sRules][f].style.removeAttribute(i+"Left")}catch(m){__error("bfCss.changeCss(): |sRules>"+sRules+"<| : |sCssRule>"+i+"<|","bf.css.class.js","183")}}else try{a.styleSheets[c][sRules][f].style[e]=b}catch(q){__error("bfCss.changeCss(): |sRules>"+
sRules+"<| : |sVal>"+b+"<| : |sElement>"+e+"<|","bf.css.class.js","195")}return}}};
bfCss.switchScheme=function(g,e){for(var b=document.getElementsByTagName("link"),d=_scheme.replace(/css\/$/,""),a=0;a<b.length;a++)b[a].href=b[a].href.replace(d,"/schemes/"+g+"/");b=document.getElementsByTagName("img");for(a=0;a<b.length;a++)b[a].src=b[a].src.indexOf("/iconsets")>=0?b[a].src.replace(_iconset,"/iconsets/"+e+"/"):b[a].src.replace(d,"/schemes/"+g+"/");b=document.getElementsByTagName("div");for(a=0;a<b.length;a++)if(b[a].style.backgroundImage.indexOf("url")>=0)b[a].style.backgroundImage=
b[a].style.backgroundImage.indexOf("/iconsets")>=0?b[a].style.backgroundImage.replace(_iconset,"/iconsets/"+e+"/"):b[a].style.backgroundImage.replace(d,"/schemes/"+g+"/");_scheme="/schemes/"+g+"/css/";_iconset="/iconsets/"+e+"/"};

