function getNonSecureUrl() {

	var secureProtocol = "https://";
	var url = top.location.href;
	
	
	if (url.indexOf(secureProtocol) != -1) {
		var temp = url.substring(secureProtocol.length, url.length);
		if (temp.indexOf(":") > -1) temp = temp.replace(":8443", ":8080");
		url = "http://" + temp;
		top.location.replace(url);
		
	}
}
getNonSecureUrl();