function switchStyleSheet() {
	current = getActiveStyleSheet();
	switch(current) {
		case "headercss" :
			setActiveStyleSheet('alternate1');
			break;
		case "alternate1" :
			setActiveStyleSheet('alternate2');
			break
		default :
			setActiveStyleSheet('headercss');
	}
	setTimeout('switchStyleSheet()',10000);
}
		
function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {
			a.disabled = true;
			if(a.getAttribute("title") == title) {
      	a.disabled = false;
	  	}
    }
  }
}
		
function getActiveStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {
    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) {
    	return a.getAttribute("title");
    }
  }
  return null;
}

function switchButton(button,src) {
	document.getElementById(button).src = src;
}

//setTimeout('switchStyleSheet()',10000);