var cur_href = document.location.href.replace(document.location.hash, "");
//cur_href = cur_href.replace(cur_href.substr(cur_href.lastIndexOf("/")),"");
if(cur_href!=tr_host && document.location.hash=='') {
	uri = uri.replace("/","#/");
	//alert(host+uri);
	document.location.href=host+uri;
	//document.location.hash=uri;
}