function changeCssAttrib(cssElement, attribute, value){
  //	thx to www.shanolson.net for assisting with this function. :)

  usedStyles = document.styleSheets;

  var cssList    = 0;
  var safariName = cssElement;
	
  if(cssElement.substring(0,1) == "#"){  //  this is needed for safari
    safariName = "*[ID\"" + cssElement.substring(1) + "\"]";
  }

  if(usedStyles){  //  ie, mozilla

    if(usedStyles[0]['rules']){  //  different way for different browsers  (IE)
      cssList = 'rules';
    } else if(usedStyles[0]['cssRules']) {  //  (Mozilla)
      cssList = 'cssRules';
    }

    for( i=0; i<usedStyles.length; i++){  //  walk through all loaded files
      theCSS = usedStyles[i][cssList];
      for(j=0;j<theCSS.length;j++){  //  content of all styles
      
       if(theCSS[j].selectorText == cssElement || theCSS[j].selectorText == safariName){  //  get the desired element
          theCSS[j].style[attribute] = value;
         }
       }
    }
  } else {  //  opera
    name = cssElement.substring(1);
    if(cssElement.substring(0,1) == "#"){
      elem = document.getElementById(name);
      elem.style[attribute] = value;
    } else {
      elems = document.getElementsByTagName("div");
      for(i=0;i<elems.length;i++){
        if(elems[i].getAttribute("class") == name){
          elems[i].style[attribute] = value;
        }
      }
    }
  }
}
