 bordercolor = "#666666";
 tdcolor = "#eeeeee"
 chcolor = "#e0e0e0";
 function AddMenu(pObj){
   rDiv = document.createElement("<div onmouseout='this.style.display=\"none\"' style='word-break:keep-all'>");
   aDiv = document.createElement("div");
   oTab = document.createElement("<table cellspacing=1 cellpadding=0 bgcolor='"+bordercolor+"' width=200>");
   aDiv.style.filter = "progid:DXImageTransform.Microsoft.Shadow(Strength=2, Direction=125, color=black)";
   rDiv.style.position = "relative";
   rDiv.name = "menu";
   rDiv.style.display = "none";
   rDiv.style.top =-22;
   rDiv.style.left = 159;
   aDiv.style.position = "absolute";
   aDiv.style.top = 0;
   aDiv.style.left = 0;
   aDiv.appendChild(oTab);
   rDiv.appendChild(aDiv)
   pObj.appendChild(rDiv);
   pObj.attachEvent("onmouseover",function(){Mover(pObj)});
 }
 function AddItem(pObj,url,text){
   tObj = pObj.getElementsByTagName("table");
   if(tObj!=null){
     rObj = tObj[0].insertRow();
	 cObj = rObj.insertCell();
	 cObj.style.background = tdcolor;
	 cObj.align = "left";
	 cObj.height = 25
	 cObj.onmouseover = new Function("this.style.background=chcolor")
	 cObj.onmouseout = new Function("this.style.background=tdcolor")
	 cObj.innerHTML = "&nbsp;&nbsp;<a href="+url+" class='downmenu'>"+text+"</a>";
   }
 }
 function CreMenu(){
   this.AddMenu = AddMenu;
   this.AddItem = AddItem;
 }
 function Mover(obj){
   dObj = obj.getElementsByTagName("div");
   aObj = document.body.getElementsByTagName("div");
   for(i=0;i<aObj.length;i++){
     if(aObj[i].name == "menu"){
       aObj[i].style.display="none";
	 }
   }
   dObj[0].style.display = "";
 }

