Object Literal Syntax

Before you dive right in, it's a good idea to know what object literals look like. GlideParams is an object literal.

It would be possible to write the GlideParams properties out one at a time, as:

    GlideParams = new Object();
    GlideParams.START_SPEED = 400;
    GlideParams.HIDE_DELAY_MS = 300;
    GlideParams.SHOW_DELAY_MS = 300;
	

The above statement is equivalent to:

    GlideParams = { 
        START_SPEED : 400,
        HIDE_DELAY_MS : 300,
        SHOW_DELAY_MS : 200
     };
	

Object literals are clearer and more compact. You don't have to type GlideParams. before each property.

A few things to watch out for with object literals: