You use the camel case to get the z-index like so:
myElementZ = $(myElement).getStyle(zIndex);
Also, sometimes it can be a pain to realize that myElementZ is not an
integer. So, a parseInt(myElementZ) should guarantee that it can be
used for further calculations.
Not sure why you want to obtain any default values. IMHO, default
values can be notorious because of different browsers so the best way
to do things would be to always put your own value to it if it's
absolutely necessary.
One thing I frequently do is use a statement to get the topmost layer
z-index in the following way:
topZ_current = $$("div").invoke("getStyle", "zIndex").max();
Again, parseInt is required if you need the value for calculations,
which is probably the reason you did get it. Add 1 to it and place
your new element on top of the topmost layer...
Hope this helps you.