function serializeStyles(name) {
					var styleList, i, l, value;

					styleList = validStyles[name];
					if (styleList) {
						for (i = 0, l = styleList.length; i < l; i++) {
							name = styleList[i];
							value = styles[name];

							if (value !== undef && value.length > 0) {
								css += (css.length > 0 ? ' ' : '') + name + ': ' + value + ';';
							}
						}
					}
				}
Serializes the specified style object into a string.

@method serialize
@param {Object} styles Object to serialize as string for example: {border: '1px solid red'}
@param {String} elementName Optional element name, if specified only the styles that matches the schema will be serialized.
@return {String} String representation of the style object for example: border: 1px solid red.