function supLine(pname,oname){
  this.objName=oname
  this.pic=document.images[pname]
  this.x=1
  this.pic.width=1
  this.timing=100
  this.steps=5
  
  this.setX=function(x){
    this.x=x
    this.pic.width=this.x
  }
  
  this.changeX=function(dx){
    this.setX(this.x+dx)
  }
  
  this.change=function(x){
    if (this.x==x) return
    this.endX=x
    this.dx=parseInt((x-this.x)/this.steps)
    this.counter=this.steps
    this.oneStep(x)	
  }
  
  this.oneStep=function(endX){
    if (this.endX!=endX) return
    this.changeX(this.dx)
    this.counter--
    if (this.counter) window.setTimeout(this.objName+".oneStep("+endX+")",this.timing)
    else this.setX(endX)
  }
}

function showMenu(ind){
	if (firstX) document.getElementById('it'+firstX).className=""
	if (ind) document.getElementById('it'+ind).className="sfhover"
	myline(x[ind])
}

function hideMenu(ind){
	if (ind) document.getElementById('it'+ind).className=""
	if (firstX) document.getElementById('it'+firstX).className="sfhover"	
	myline(x[firstX])
}  

function myline(a) {
    //if (pict.counter) return  	
	//pict.change(a)
	pict.setX(a)
}

var i = new Image();
i.src = "i/mark2.gif";