converted Guidedog into a jQuery plugin