var ID; 		//setTimeout ID

function startMove(){
    expandText('mnuExpand',-10,1,1,30);
}

//////////////////////////////////////////////////////////////////////////
//By William Boyd, @ terabyte.co.nz
/////////////////////////////////////////////////////////////////////////

ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ))

if (ns4) {
    layerRef="document.layers";
    styleRef="";
} else {
    layerRef="document.all";
    styleRef=".style";
}       

function mover()
{
    moveDivPlus('test',-60,10,6,4,0) //move ID'one' virtical down from -60 to 200, move 1 by 1, slow
}

function moveDivPlus(which, start, finish, step, speed, direct)
{
  if (ie4 || ns4){
  	if(eval(layerRef + '["' + which + '"]' + styleRef + '.visibility = "hidden"'))
    {
	    eval(layerRef + '["' + which + '"]' + styleRef + '.visibility = "visible"')
	}
   		 if (start < finish){
			if(direct == 0){				//virtical
   			   eval(layerRef + '["' + which +'"]' + styleRef + '.top = start');
			  	}else if(direct == 1){		//horizontal
				   eval(layerRef + '["' + which +'"]' + styleRef + '.left = start');
					}else if(direct == 2){	//diagonal
 				     eval(layerRef + '["' + which +'"]' + styleRef + '.top = start');
 				     eval(layerRef + '["' + which +'"]' + styleRef + '.left = start');
					}		
		      start=start+step; 
		      ID = setTimeout("moveDivPlus('"+which+"',"+start+","+finish+","+step+","+speed+","+direct+")",speed);
  	    }else{
		startMove();
		}
  }
}
