如图,AB是⊙O的直径,HG是弦,且HC⊥HG于H,交AB于C,GD⊥HG于G,交AB于D.求证:AC=BD.