// JavaScript Document

var link = redirect(false);
//location.replace(link);
window.location = link;

function redirect(hash) {
	
		var protocol = location.protocol + "//",
		    host = location.host,
		    path = location.href.split(host)[1];
		
		if (path == "/" || path == "/#") {
			return "/Home/";
		}
		
		if (hash) {
			path = path.replace(/#\/?/g, "");
		} else if (!(/\//.test(path.charAt(0)))) {
			path = "/" + path;
		}
		
		return (protocol + host + (hash ? "" : "/#") + path);

}