function figScale(){
	figScale.prototype = new GControl();
	figScale.prototype.initialize = function (map){
		var container = document.createElement("div");
		container.style.backgroundColor = "transparent";
		container.style.filter = "alpha(opacity=80)";
		container.style.MozOpacity=".8";
        var imageNew = document.createElement('img');
        imageNew.src = "imgs/escalaValores.png";
        imageNew.width = 230;
        imageNew.height = 40;
        container.appendChild(imageNew);
        //var tbl = document.createElement("table");
//        tbl.style.width= 160;
//        tbl.style.border = "4px";
//        tbl.cellPadding = "0px";
//        this.setTextStyle_(tbl);
//        var tblBody = document.createElement("tbody");
//        var row = document.createElement("tr");
//         for (var j = 0; j < 2; j++) {
//            var row = document.createElement("tr");
//            if(j==0)
//            {
//                for (var i = 0; i<=7 ; i ++) {
                    // Create a <td> element and a text node, make the text
                    // node the contents of the <td>, and put the <td> at
                    // the end of the table row
//                    var cell = document.createElement("td");
//                    var cellText = document.createTextNode(i);
//                    cell.width = 18;
//                    cell.align = "center";
//                    cell.appendChild(cellText);
//                    row.appendChild(cell);
//                }
//            }
//            else
//            {
//                var cell = document.createElement("td");
//                    var cellText = document.createTextNode("DIAS CON CONDICIONES FAVORABLES");
//                    cell.align = "center";
//                    cell.width = 28;
//                    cell.colSpan = 8;
//                    cell.appendChild(cellText);
//                    row.appendChild(cell);
//            }
            // add the row to the end of the table body
//            tblBody.appendChild(row);
//        }
//               
//        tbl.appendChild(tblBody);
//        container.appendChild(tbl);

        //GEvent.addListener(map,"mousemove", function(point) {
//            lngDiv.firstChild.src = "../imgs/escala.png";
//        });
		map.getContainer().appendChild(container);
		return container;
	}
	figScale.prototype.getDefaultPosition = function() 
	{  
		return new GControlPosition(G_ANCHOR_BOTTOM_LEFT, new GSize(3, 54));
	}
	figScale.prototype.setTextStyle_ = function(text) 
	{  
		text.style.color = "#ddd";
		text.style.fontSize="10px";
		text.style.fontVariant="small-caps";
		text.style.fontFamily="Calibri";
		text.style.textAlign="justify";
	}
}