ie4 = (document.all && !document.getElementById);
nn4 = (document.layers);
ie5 = (document.all && document.getElementById);
nn6 = (document.addEventListener);
nn7 = nn6;
mozilla = nn7;


//
// Change CSS styles
//
// Rules can only be accessed by their index in the current Style Sheet so these two 
// should be synchronized
//
//

function printerColors() {
var fg='#000000';
var bg='#ffffff';

if(!document.styleSheets) return;
var theRules = new Array();
if (document.styleSheets[0].cssRules) theRules = document.styleSheets[0].cssRules;
// Microsoft
else if (document.styleSheets[0].rules) theRules = document.styleSheets[0].rules;
else return;

// link,visited,active
        theRules[0].style.color = fg; 
        theRules[1].style.color = fg;
        theRules[2].style.color = fg;
// BODY
        theRules[3].style.foregroundColor = fg;
        theRules[3].style.backgroundColor = bg;
// TABLE
        theRules[4].style.color = fg;
// TR
        theRules[5].style.color = fg;
// TD
        theRules[6].style.color = fg;
// UL 
        theRules[7].style.color = fg;
// LI 
        theRules[8].style.color = fg;
// H1 
        theRules[11].style.color = fg;
// H2 
        theRules[12].style.color = fg;
// H3 
        theRules[13].style.color = fg;
// H4 
        theRules[14].style.color = fg;
// H5 
        theRules[15].style.color = fg;
// H6 
        theRules[16].style.color = fg;
// P 
        theRules[17].style.color = fg;
// PRE 
        theRules[18].style.color = fg;
//  
        theRules[19].style.color = fg;
//  
        theRules[20].style.color = fg;
// .footnote 
        theRules[21].style.color = fg;
// .lastmod 
        theRules[22].style.color = fg;
//  
        theRules[23].style.color = fg;
//  
        theRules[24].style.color = fg;
// .inst 
        theRules[25].style.color = fg;
//  
        theRules[26].style.color = fg;


// if (confirm('Also try setProperty?'))
//        document.styleSheets[0].cssRules[1].style.setProperty('color','#00cc00',null);


}


