function setHistory(h, t) {
	hash = h;
	subtitle = t;
	unFocus.History.addHistory(h);
}

function onHistoryChange(h) {
	
	if (hash != h) {
		hash = h;
		try { 
			document.getElementById(so_id).updateFlashHistory(h); 
		}
		catch (err) {
			//alert('error')
		}
	}
	document.title = siteName +" "+ subtitle;
}

unFocus.History.addEventListener("historyChange", onHistoryChange);
hash = unFocus.History.getCurrent();
hash = hash.toLowerCase();
onHistoryChange(hash);