startList = function() {
     if (document.all&&document.getElementById) {
         navRoot = document.getElementById("menu");
         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","");
                  }
              }
         }
     }
	var informer = document.getElementById("informer_metal");
	var tab = null;
	if((informer != null)&&(informer.hasChildNodes())){
		var tab_index = 0;
		for(tab_index in informer.childNodes){
			if(informer.childNodes[tab_index].nodeName == "TABLE"){
				break;
			}
		}
		tab = informer.childNodes[tab_index].childNodes[0];
		tab.removeChild(tab.childNodes[13]);
		tab.removeChild(tab.childNodes[12]);
		tab.removeChild(tab.childNodes[11]);
		tab.removeChild(tab.childNodes[10]);
		tab.removeChild(tab.childNodes[9]);
		tab.removeChild(tab.childNodes[8]);
		tab.removeChild(tab.childNodes[7]);
		tab.removeChild(tab.childNodes[6]);
	}
}
window.onload=startList;

drawCopperGraph = function() {

	dt = new Date();
	var year1 = 0; 
	var year2 = 0; 

	if(dt.getYear() < 200){
		year1 = dt.getYear()-101;
		year2 = dt.getYear()-100;
	}else{
		year1 = dt.getYear()-1;
		year2 = dt.getYear();
	}

	str = '<img width="270px" height="200px" src="http://metal4u.ru/drawgraph.php?ind=2&from_year='+year1+'&from_month='+(dt.getMonth()+1)+'&from_day='+dt.getDate()+'&to_year='+year2+'&to_month='+(dt.getMonth()+1)+'&to_day='+dt.getDate()+'"></img>';
	document.write(str);
}

