// Check if user is using secure connection

currentURL = document.URL;

if (currentURL.indexOf("https://") >= 0 && (!(currentURL.indexOf("ssl") >= 0) && !(currentURL.indexOf("ssl") >= 0))) {
	newURL = currentURL.replace(new RegExp(/^https:\/\/.*maximumguidedtours.com(.*)/i),"http://www.maximumguidedtours.com$1");
//	alert(newURL);
	location.replace(newURL);
}
