javascript error "object expected" in Mobile Adapter in sharepoint 2010

javascript error "object expected" in Mobile Adapter in sharepoint 2010

I am developing a very simple web part mobile adpater. It just outputs "hello world". The mobile web part renders fine, but when i click on arrow image next to the Web part title , it throws javascript error "object expected" on "ExpandCollapse" function. I am viewing the page, by adding "?mobile=1" in my pc browser. I m using IE8. Please help.

When I looked at the HTML source of the rendered page, I noticed, the above errror is caused because  javascript function ExpandCollapse was not rendered.

Contacted MS Support...and they confirmed it is the design issue with the publishing website....

Copyright © 2007-2012 www.chuibin.com Chuibin Copyright