function cut(data)
{
   var temp = new Array();
   if(data.length==null)  return false;
   for(var i = 0; i < data.length; i++)
   {
      temp[i] = new Array();
      temp[i][0] = data[i][0];
      temp[i][1] = data[i][1];
      temp[i][2] = data[i][2];
   }
   return temp;
}
function extendcss()
{
   var output = new String();
   with( this )
   {
  	   for(var i = 0; i < items.length; i++ )
  	   {
         output += setStyleSheet(items[i].names.myself, style);
 	 	 }
	  }
   document.write('<style type="text/css">'+ output+ '</style>');
}
menulist.prototype.layover = function(obj)
{
   for(var i = 0; i < this.items.length; i++)
   {
      var oItem = document.getElementById( this.oHover.items[i].names.myself );
      oItem.onmouseover = new Function(obj+ '.closing.closed = 0; ');
      oItem.onmouseout = new Function(obj+ '.outlist(); ');
      oItem.onclick = new Function(obj+ '.seturl('+i+'); return true; ');
   }
   return true;
}
menulist.prototype.oHover = null;
menulist.prototype.layerselect = function(j)
{
   with( this )
   {
      res = this.positem( items[j].names.myself );
      this.extShow( oHover.items[j].names.myself, res[0], res[1], this.zIndex);
   }
   return true;
}
menulist.prototype.layerdeselect = function(j)
{
   with( this.oHover.items[j] )
   {
      this.hide( names.myself, 'hidden'); 
   }
   return true;
}
menulist.prototype.positem = function(parent)
{
   item_y = getLayerEmbedTop(parent);
   item_x = getLayerEmbedLeft(parent);
   item_y += this.volumeH;
   item_x += this.volumeW;
   return [item_x, item_y];
}
menulist.prototype.volumeH = 0;
menulist.prototype.volumeW = 0;
menulist.prototype.seturl = function(j)
{
   with( this.items[j] )
   {
      document.getElementById(names.anchor).click();
   }
   return true;
}
menulist.prototype.extShow = function(name, left, top, zIndex)
{
   this.show( name, left, top, zIndex);
}