Updated for FlexViewer 3.6