
function testurl(){
if(document.location.hash && document.location.hash.indexOf('!') > -1) {

//document.location = new String(document.location).replace('#!/','');

//if(document.location.hash!='#!/'){
	//alert(document.location.hash+"|"+document.location.hash.indexOf('!'));
document.location = "http://" + HOST + "/" + HFOLDER + document.location.hash.replace('#!','');
//}
}else{
	var hash = document.location.href.substring(document.location.href.indexOf(HFOLDER)+HFOLDER.length);
	document.location.hash = "!"+hash;
	}

}


	/*
function initOnLoad(sElementName) {
var oElement = (sElementName == "body") ? document[sElementName] :
document.getElementById(sElementName);
if(oElement != null && typeof(oElement) != "undefined") { testurl(); }
else { setTimeout(function() { initOnLoad(sElementName); }, 0); }
}


initOnLoad("body"); */



testurl();
