/* HTTPS Enforcer v1.0. Copyright © Dazdezines.
This script may be used freely as long as this
copyright message is left unchanged.
If you use Dreamweaver - get the Free DW Extension @
http://www.dazdezines.com/mme. */

if (top.location.protocol == 'file:') {
//alert('This is document is not online, i.e. Not hosted on a webserver.\rThis document needs to be hosted on a webserver supporting\rHTTPS services for this function to work.');
}
else if (top.location.protocol != 'http:') {
//alert('This page does not require https (encrypted data).\nAfter clicking on the "OK" this page will automatically reload without the HTTPS protocol.');
	if (top.location.protocol == 'https:') {
	var secureHref = document.location.href.split('https://').join('http://');
	document.location.href = secureHref;
	}
}