function initialize(){
	dhtmlHistory.initialize();
	dhtmlHistory.addListener(historyChange);
	var currentLocation = hashOff(window.location.hash);
	if(dhtmlHistory.isFirstLoad()){
		if(currentLocation!=null && currentLocation!=window.location.hash && currentLocation!=''){
			historyChange(currentLocation,currentLocation);
		}

	}

}
function hashOff(hashValue){
	if (hashValue == null || hashValue == undefined)
	return null;
	else if (hashValue == "")
	return "";
	else if (hashValue.length == 1 && hashValue.charAt(0) == "#")
	return "";
	else if (hashValue.length > 1 && hashValue.charAt(0) == "#")
	return hashValue.substring(1);
	else
	return hashValue;
}

function historyChange(newLocation,historyData){
	document.getElementsByTagName('input')['keywords'].value=historyData;
	ajax.makeRequest('POST','searche.php?keywords='+historyData,onResponse);
}