﻿function addHistory (newHash)

{
	
	unFocus.History.addHistory(newHash);

}



function onHistoryChange (newHash)

{
	document.getElementById(flashojt).recieveState(newHash);
	document.title = "Naked City Taphouse - "+newHash;

}

function flashLoaded(newHash)

{

	if(newHash){
		
		unFocus.History.addHistory(newHash);
		document.title = "Naked City Taphouse - "+newHash;
	}

}

function getFlashVarsFromHash () 

{

	var result = "";



	if(location.hash != "")

	{

		result = location.hash;

		result = result.replace("#","");

	}



	return result;

}



unFocus.History.addEventListener('historyChange', onHistoryChange);
