Set the panel transparent, its alpha value to 100 and decrease it using a while loop (you may want to set the UNTOUCHABLE flag, too, when fading in/out). Proceed in the same way for fading in.
"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual