Please keep in mind historically it was not the "religious right" who started the governments involvement in issues conserning marriage.
Also please try to remember that even though the Republicans are ussually painted by thier opponents as being against such things as Gay rights, or Same Sex Marrige or basically (pro-religion) and the Democrats are ussually painted as being for such things as Socialism, or Disarmament of the population and or (pro athiest), that these are mainly stereotypical archtypes used for election purposes.
Look at all the promises Clinton made to the Gay Community during his initial bid for the White House and then turned around and broke like so much lip service.
Also please keep in mind that proponents of same sex marrige exist in both parties.
Gay, Straight, or otherwise. No political party has a monopoly on sexual prefference or religion despite what the media or fear mongering dogmatic spin doctors wish for you to think.