﻿String.prototype.startsWith = function(str) {return (this.match("^"+str)==str)}

var href = window.location.href.toLowerCase();

if(href.startsWith('https://')) {
	
	href = href.replace('https://', 'http://');
	
	document.location = href;
	
}
