Good Job, looks quite professional. =]
styling tip : With multiple vars that are being set to the same thing you can just use '='
ie
PHP Code:
....
tile =
canMove =
canClose = true;
canResize =
canMaximize = false;
....
also, you can save lines by using
position =
{ x, y};
extent =
{ width, height};
in this format you can do operations which you can't do in the "x y" format.