function paintObj(a){

	var moveObjectStyle=document.all(a.id).style

	moveObjectStyle.left=a.X
	
	moveObjectStyle.top=a.Y

}

movingObjectCounter=0

function movingObject(X,Y, moveType, id, goX, goY){

	this.X=X		//the left pixel of the box
	this.Y=Y		//the left pixel of the box
	
	this.initX=X		//the top pixel of the box
	this.initY=Y		//the top pixel of the box

	this.offX=0		
	this.id=id
	this.offY=0

	this.moving=0	//0 means box is at reast, 1 means it is moving
	
	this.goX=15
	this.goY=15
	
	this.moveType=moveType
	
	this.setz=null
	if(this.id){
	movingObjectCollection[movingObjectCounter]=this
	
	movingObjectCounter++}

	
}


function SetZIndx(){
	
	for(f=0;f<movingObjectCounter;f++){
	
		document.all(movingObjectCollection[f].id).style.zIndex=1
	}

	document.all(CurrentMovingObject.id).style.zIndex=99
}




function activateMovement(a){

	document.onmousemove = a.moveType

	CurrentMovingObject=a

	moving=a.moving

//** if currently moving (=1) set shape to stop (=0)

if(moving==1)
	{a.moving=0
}
else
	{a.moving=1

//** offX and offY measure the top left position of the box in relation to the
//** mouse so that the mouse can stay in touch with the box

	a.offX=event.x-a.X

	a.offY=event.y-a.Y
}


if(a.setz!=null)
a.setz()

}// end mouseClick function


function storeObjects(){


}