I've had panic attacks and insomnia for a few years now. I've been on Ambien and Xanax. My doctor has very recently prescribed trazodone to use in place of Ambien. The only problem is I work the graveyard shift 10 at night to 6 in the morning. Taking trazodone in the morning when I get home makes me sleep too long and I can't get my kids from school. My question is on my nights off would it be safe to take a trazodone and then the days I work when I come home and I have to take a nap could I instead take Ambien?