var curProtocol = window.location.protocol.split(':')[0]; if (curProtocol === 'https') { var curProtocol = window.location.protocol.split(':')[0]; document.write('