if you lift the sunroof to the first, lower setting, you can see a red catch that holds in a bar on the handle to the roof.
if you push this handle and just mess about with the handle a bit the bar will come out and the handle will come free, then just get out the car and lift the glass all the way up, and slide the 2 bits of metal at the front out of the roof bit!
sorry some of those words arent very technical but havent got a clue how to explain it, i found it one day just messing about with stuff in the car!