implemented jquery.dimensions

fixed some problems with padding, margins and borders
reworked drawingoperation

Signed-off-by: Andreas Tempsch <andreas.tempsch@schmutterer-partner.at>