"//" would load content over https if served with ssl, and over http if served normally.

Some more info: http://blog.httpwatch.com/2010/02/10/using-protocol-relative-urls-to-switch-between-http-and-https/