function prepareMenu() {
  var list = document.getElementById("menu").getElementsByTagName("ul")[0];
  var list_items = list.getElementsByTagName("li");
  var item_class;
  var classType;
  if(list_items[0].getAttribute("className")!=null) {
    classType = "className";
  }
  else {
    classType = "class";
  }
  for(var i=0; i<list_items.length; i++) {
    item_class = list_items[i].getAttribute(classType);
    if(item_class != "image") {
      list_items[i].setAttribute("onmouseover", function() { 
        this.setAttribute(classType, "hover");
      });
      list_items[i].setAttribute("onmouseout", function() {
        this.setAttribute(classType,"normal");
      });
      list_items[i].setAttribute(classType, "normal");
      var image = document.createElement("img");
      image.setAttribute("src", "/images/star.gif");
      list_items[i].insertBefore(image,list_items[i].getElementsByTagName("a")[0]);
    }
  }
}

/*var asynchronous = new Asynchronous();
asynchronous.complete = function(status, statusText, responseText, responseXML, called_url) {
    switch(called_url) {

      case 'linkschunk.htm':
        document.getElementById("image1").width = 267;
	document.getElementById("image2").width = 265;
        document.getElementById("image3").width = 265;
        break;

      default:
        document.getElementById("mainTable").width = 750;
        document.getElementById("image1").width = 256;
        document.getElementById("image2").width = 250;
        document.getElementById("image3").width = 250;
        break;
    }
    document.getElementById("insertplace").innerHTML = responseText;
}

var strHref = window.location.href;
var pageName = strHref.substr(strHref.indexOf(".com/")+5,strHref.indexOf(".htm"));
var chuck = "chuck";
*/
addLoadEvent(prepareMenu);
//addLoadEvent(function() {asynchronous.call('homechunk.htm');});
