// JavaScript Document


function $(id) {
  return document.getElementById(id);
}
window.onload = function() {
  var Root = $("nav_li").getElementsByTagName("li");
  for (var i = 0; i < Root.length; i++) {
    c = Root[i];
    c.setAttribute("id", "show_" + i);
    var xp = function(i) {
      show(i);
    };
    c.onmouseover = dete_bibao(xp, i, c);
  }
}
function show(j) {
  for (var n = 0; n <= 10; n++) {
    if ($("show_" + n).className != "s") {
      $("show_" + n).className = "s";
    }
	
    if (n == j) {
      $("show_" + n).className = "over";
    }
  }
}
function dete_bibao(fn, params, obj) {
  return function() {
    fn.call(obj || window, params);
  }
}

