/* alternateStyles.js */
var altStyles = {
switchers : Array, // @Array: all Elements with className of 'altCss'
allStyleSheets : Array, // @Array: collection of all element objects
currentStyle : '', // @String: 'href' attribute of last set style sheet
currentStyleName : '', // @String: name of last set style sheet
cssSyntax : null, // @RegExp: replaces '_' in href with ' ' whitespace.
init : function() {
if ( !document.getElementById ) return;
this.switchers = document.getElementsByClassName('altCss');
this.cssSyntax = /_/g;
this.allStyleSheets = document.getElementsByTagName('link');
var switchersLen = this.switchers.length;
var i;
for ( i=0;i