Why not

    cross = $("#cross_" + id);

and then

    cross.css({'left': cx, 'top': cy});

?