function checkNotSsl(){
	var https="https://";
	var http="http://";
	if(window.location.href.indexOf(https)==0){
		window.location.href=window.location.href.replace(https,http);
	}
}
checkNotSsl();
