rem: DynamicCSS.applyCSSRule=function(cssRules,cssArray){ for(rule in cssRules){ if(typeof cssRules[rule] == 'function') continue;  if(cssRules[rule].selectorText){ if(cssRules[rule].selectorText.search(/:+/)==-1){    cssElements = cssRules[rule].selectorText.split(","); for(k=0;k<cssElements.length;k++){ cssElement = cssElements[k].split(".");  tagName=cssElement[0].toLowerCase().trim(); className=cssElement[1];  if(!tagName) tagName='all'; if(!cssArray[tagName]) cssArray[tagName]=new Array();  if(className){ if(tagName=='all') cssName=className; else cssName='<'+className+'>'; } else{ className='none'; if(tagName=='all') cssName=HTMLArea._lc("Default", 'DynamicCSS'); else cssName='<'+HTMLArea._lc("Default", 'DynamicCSS')+'>'; } cssArray[tagName][className]=cssName; DynamicCSS.cssLength++; } } }  else if(cssRules[rule].styleSheet){ cssArray=DynamicCSS.applyCSSRule(cssRules[rule].styleSheet.cssRules,cssArray); } } return cssArray; 
add: DynamicCSS.applyCSSRule=function(_b,_c){ for(rule in _b){ if(typeof _b[rule]=="function"){ continue; } if(_b[rule].selectorText){ if(_b[rule].selectorText.search(/:+/)==-1){ cssElements=_b[rule].selectorText.split(","); for(k=0;k<cssElements.length;k++){ cssElement=cssElements[k].split("."); tagName=cssElement[0].toLowerCase().trim(); className=cssElement[1]; if(!tagName){ tagName="all"; } if(!_c[tagName]){ _c[tagName]=new Array(); } if(className){ if(tagName=="all"){ cssName=className; }else{ cssName="<"+className+">"; } }else{ className="none"; if(tagName=="all"){ cssName=HTMLArea._lc("Default","DynamicCSS"); }else{ cssName="<"+HTMLArea._lc("Default","DynamicCSS")+">"; } } _c[tagName][className]=cssName; DynamicCSS.cssLength++; } } }else{ if(_b[rule].styleSheet){ _c=DynamicCSS.applyCSSRule(_b[rule].styleSheet.cssRules,_c); } } } return _c; 
context: DynamicCSS.applyCSSRule=function(cssRules,cssArray){    for(rule in cssRules){        if(typeof cssRules[rule] == 'function') continue;        // StyleRule        if(cssRules[rule].selectorText){            if(cssRules[rule].selectorText.search(/:+/)==-1){                // split equal Styles (Mozilla-specific) e.q. head, body {border:0px}                // for ie not relevant. returns allways one element                cssElements = cssRules[rule].selectorText.split(",");                for(k=0;k<cssElements.length;k++){                    cssElement = cssElements[k].split(".");                    tagName=cssElement[0].toLowerCase().trim();                    className=cssElement[1];                    if(!tagName) tagName='all';                    if(!cssArray[tagName]) cssArray[tagName]=new Array();                    if(className){                        if(tagName=='all') cssName=className;                        else cssName='<'+className+'>';                    }                    else{                        className='none';                        if(tagName=='all') cssName=HTMLArea._lc("Default", 'DynamicCSS');                        else cssName='<'+HTMLArea._lc("Default", 'DynamicCSS')+'>';                    }                    cssArray[tagName][className]=cssName;                    DynamicCSS.cssLength++;                }            }        }        // ImportRule (Mozilla)        else if(cssRules[rule].styleSheet){            cssArray=DynamicCSS.applyCSSRule(cssRules[rule].styleSheet.cssRules,cssArray);        }    }    return cssArray;};
meta: 6015	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6015/d8776708e0e10dfa0ab6ee1d0fa9e512d8d16348/dynamiccss.js/clean/packages/acs-templating/www/resources/xinha-nightly/plugins/DynamicCSS/dynamiccss.js