IMO a child needs a mother and father to thrive. That said, I believe that children available for adoption should be placed with eligible heterosexual couples. If these are not available, however, then I believe an eligible same sex couple should be considered. Last in line should be eligible single people, regardless of their sexual orientation.
No matter what the makeup of the home, it is my most fervent belief that the red tape which shackles children to horrid birth parents who have no interest in reclaiming the parent-child relationship (and which keeps the kids in foster care indefinitely) should be severed a lot sooner and a lot more decisively; similarly, I believe that the steep price tag attached to an adoption needs to be reduced to make it affordable for more couples.
With respect to marriage: I believe that gay marriage should only be legalized if polygamist marriage (in all its incarnations) is given legal status as well.