function drawPosition(context, xPos, yPos, rate)
{
console.log('drawing');
var size = 50 * rate;
var x = xPos * size;
function mouseActionPosition(e)
{
console.log('mouseActionPosition');
var $this = $(this),
context = $this.data('context'),
if(mapData)
{
console.log('yep');
mapData[2] = w / mapData[2];
$(".smwtable tr:not(:has(td.Localisation)):has(td.Position)").bind('mouseover mouseout', mouseActionPosition).data('context', context).data('xPos', mapData[0]).data('yPos', mapData[1]).data('rate', mapData[2]);