startList = function() {
        if (document.all && document.getElementById) {
                navRoot = document.getElementById("main");
                for (i=0; i < navRoot.childNodes.length; i++) {
                        node = navRoot.childNodes[i];
                        if (node.nodeName=="LI") {
                                node.onmouseover=function() {
                                        this.className+=" over";
                                }
                                node.onmouseout=function() {
                                        this.className=this.className.replace(" over", "");
                                }
                        }
                }
        }
}

window.onload=startList;


function switchStyle(s) {
  if (!document.getElementsByTagName) return;
  var el = document.getElementsByTagName("link");
  for (var i = 0; i < el.length; i++ ) { 
    if (el[i].getAttribute("rel").indexOf("style") != -1 && el[i].getAttribute("title")) {
      el[i].disabled = true;
      if (el[i].getAttribute("title") == s){
        el[i].disabled = false;
      }
    }
  }
}

function toggleRecommend() {
	if (document.getElementById('recommend').style.display=='block') {
		document.getElementById('recommend').style.display = 'none';
	}  else {
		document.getElementById('recommend').style.display = 'block';
	}
}

