SAK-25531 Tutorial not working
changed dialog target to "window" to keep it centered better
also, cleaned up the duplicate code now that the new library is different


git-svn-id: https://source.sakaiproject.org/svn/reference/trunk@133233 66ffb92e-73f9-0310-93c1-f5514f145a0a