The purpose of this study is to determine whether quetiapine or risperidone are effective in treating mood symptoms, drug cravings and use in bipolar disorder with concurrent cocaine or methamphetamine dependence.