Add parent check in case this isn't in a colorbox/iframe