function map(){
	this.elements=[]
	this.size=function(){return this.elements.length}
	this.put=function(_key,_value){this.elements.push({key:_key, value:_value})}
	this.get = function(_key){
		try{
			for(i = 0;i<this.elements.length;i++){
				if (this.elements[i].key == _key) {return this.elements[i].value}
			}
   		}catch(e) {
			return null;  
		}
	}
}
function formatNodes(nodes){
	var nodesForFF=new Array()
	var j=0
	for(i=0;i<nodes.length;i++)
	{
		if(nodes[i].nodeType==1){
			nodesForFF[j]=nodes[i]
			j++
		}
	}
	return nodesForFF;
}

