function createCSSClass(selector, style) { // using information found at: http://www.quirksmode.org/dom/w3c_css.html // doesn't work in older versions of Opera (< 9) due to lack of styleSheets support if(!document.styleSheets) return; if(document.getElementsByTagName("head").length == 0) return; var stylesheet; var mediaType; if(document.styleSheets.length > 0) { for(i = 0; i document.getElementsByTagName("head")[0].appendChild(styleSheetElement); // select it for(i = 0; i