this.createContainer(options);
this.content.appendChild(this.titleDiv);
contentParam=Rico.$(contentParam);
- this.contentDiv=contentParam || document.createElement('div');
+ if (contentParam) {
+ this.contentDiv=contentParam
+ contentParam.parentNode.insertBefore(this.container,contentParam);
+ } else {
+ this.contentDiv=document.createElement('div');
+ }
this.content.appendChild(this.contentDiv);
// create title area