function show(show){
      if(document.styleSheets[0].cssRules){
       for (var S = 0; S < document.styleSheets.length; S++)
        for (var R = 0; R < document.styleSheets[S].cssRules.length; R++)
         if (document.styleSheets[S].cssRules[R].selectorText == show)
          document.styleSheets[S].cssRules[R].style['display'] = 'block';
      } else if(document.styleSheets[0].rules){
       for (var S = 0; S < document.styleSheets.length; S++)
        for (var R = 0; R < document.styleSheets[S].rules.length; R++)
         if (document.styleSheets[S].rules[R].selectorText.toLowerCase() == show)
          document.styleSheets[S].rules[R].style['display'] = 'block';
      }
}

function hide(hide){
      if(document.styleSheets[0].cssRules){
       for (var S = 0; S < document.styleSheets.length; S++)
        for (var R = 0; R < document.styleSheets[S].cssRules.length; R++)
         if (document.styleSheets[S].cssRules[R].selectorText == hide)
          document.styleSheets[S].cssRules[R].style['display'] = 'none';
      } else if(document.styleSheets[0].rules) {
       for (var S = 0; S < document.styleSheets.length; S++)
        for (var R = 0; R < document.styleSheets[S].rules.length; R++)
         if (document.styleSheets[S].rules[R].selectorText.toLowerCase() == hide)
          document.styleSheets[S].rules[R].style['display'] = 'none';
      }
}
