
var animalarray = new Array();
var animaltimer;

var hov = new Array();

function timeouthover(position,id) {
	hov[position] = setTimeout("remove_el('"+id+"')",550);
}



function remoteTimeout(id) {
	var w = whichHover(id);
	clearTimeout(hov[w]);
	hov[w] = -1;
}

function remoteSetTimeout(id) {
	var w = whichHover(id);
	timeouthover(w,id);
}

function whichHover(id) {
	var ind;
	switch (id) {
		case 'hover':
			ind = 0;
		break;
		case 'hover1':
			ind = 1;
		break;
		case 'hover2':
			ind = 2;
		break;
		case 'hover3':
			ind = 3;
		break;
	}
	return ind;
}		



/*
addEvent(window,'load',HoverConstruct);



function removeHover(position) {
	this.splice(position,1);
}




function MakeHover(id)
{
	var mh = new HoverConstruct(id);
	return animalarray.push(mh);
}


function HoverConstruct(id)
{
	// define properties 
	this.id            = id; // the Current row ID
	this.timerID       = -1; // the Current Menu's Delay timer
	
	// define methods 
	this.remH = removeHover;

	return this;
}
*/