Here is the final result, it works like a dream, much quicker than any other hide/display script.. Just thought I'd share it with you...
function fnSwitch( objStyle, className ) { var r = objStyle.rules for ( var i = 0; i < r.length; i++ ) { if( r[i].selectorText == className ) { r[i].style.visibility = (r[i].style.visibility == 'hidden') ? 'visible' : 'hidden'; r[i].style.display = (r[i].style.display == 'none') ? 'inline' : 'none'; return; } } } fnSwitch( document.styleSheets[0], '.national' ); ***************************************************** The discussion list for http://webstandardsgroup.org/ *****************************************************