if (top.location.protocol == 'http:') {
	var secureHref = document.location.href.split('http://').join('https://');
	document.location.href = secureHref;
}